blob: fc3a79e353c505ce07d02ad6d3936ee169cbda33 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
a.rottmann84e63352003-03-24 09:42:16 +00003# Generated by GNU Autoconf 2.57.
drh75897232000-05-29 14:26:00 +00004#
a.rottmann84e63352003-03-24 09:42:16 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
drh71eb93e2001-09-28 01:34:43 +00006# Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
drh75897232000-05-29 14:26:00 +0000242
drh71eb93e2001-09-28 01:34:43 +0000243# Find the correct PATH separator. Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
a.rottmann84e63352003-03-24 09:42:16 +0000248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
drh71eb93e2001-09-28 01:34:43 +0000250 esac
a.rottmann84e63352003-03-24 09:42:16 +0000251 PATH_SEPARATOR=$lt_cv_sys_path_separator
drh71eb93e2001-09-28 01:34:43 +0000252fi
253
a.rottmann84e63352003-03-24 09:42:16 +0000254
drh71eb93e2001-09-28 01:34:43 +0000255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
a.rottmann84e63352003-03-24 09:42:16 +0000284
drh71eb93e2001-09-28 01:34:43 +0000285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
a.rottmann84e63352003-03-24 09:42:16 +0000318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +0000319 for dir in $PATH /usr/ucb; do
drh71eb93e2001-09-28 01:34:43 +0000320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
a.rottmann84e63352003-03-24 09:42:16 +0000328 IFS="$save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
drh71eb93e2001-09-28 01:34:43 +0000400
drh71eb93e2001-09-28 01:34:43 +0000401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
drh75897232000-05-29 14:26:00 +0000412ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000413ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000414cross_compiling=no
415subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000416MFLAGS=
417MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
a.rottmann84e63352003-03-24 09:42:16 +0000425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
drh71eb93e2001-09-28 01:34:43 +0000432ac_unique_file="src/sqlite.h.in"
a.rottmann84e63352003-03-24 09:42:16 +0000433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447# include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452# include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463# include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR ENCODING BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TARGET_TCL_LIBS TARGET_TCL_INC TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE LIBOBJS LTLIBOBJS'
471ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000472
473# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000474ac_init_help=
475ac_init_version=false
drh75897232000-05-29 14:26:00 +0000476# The variables have the same names as the options, with
477# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000478cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000479exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000480no_create=
drh75897232000-05-29 14:26:00 +0000481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
drh75897232000-05-29 14:26:00 +0000489verbose=
490x_includes=NONE
491x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
drh75897232000-05-29 14:26:00 +0000511ac_prev=
512for ac_option
513do
drh75897232000-05-29 14:26:00 +0000514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
drh71eb93e2001-09-28 01:34:43 +0000521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
drh71eb93e2001-09-28 01:34:43 +0000525 case $ac_option in
drh75897232000-05-29 14:26:00 +0000526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000530 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000531
532 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000533 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000535 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000551 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000552
553 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000555 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000561
562 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +0000563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000564 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000571 *) ac_optarg=yes ;;
572 esac
drh71eb93e2001-09-28 01:34:43 +0000573 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000582 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
drh71eb93e2001-09-28 01:34:43 +0000588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000594
595 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000596 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000597 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000598 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000605 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000610 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000615 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000622 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000631 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000636 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000643 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000657 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000662 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000669 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000676 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000693 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000703 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000714 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000719 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000724 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000731 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000734 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000736 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
drh71eb93e2001-09-28 01:34:43 +0000741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000743
744 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +0000745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000746 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000750 ac_package=`echo $ac_package| sed 's/-/_/g'`
drh71eb93e2001-09-28 01:34:43 +0000751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
drh75897232000-05-29 14:26:00 +0000753 *) ac_optarg=yes ;;
754 esac
drh71eb93e2001-09-28 01:34:43 +0000755 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000756
757 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +0000758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000759 # Reject names that are not valid shell variable names.
drh71eb93e2001-09-28 01:34:43 +0000760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000775 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000782 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000783
drh71eb93e2001-09-28 01:34:43 +0000784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000787 ;;
788
drh71eb93e2001-09-28 01:34:43 +0000789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
drh75897232000-05-29 14:26:00 +0000799 *)
drh71eb93e2001-09-28 01:34:43 +0000800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000814fi
815
drh71eb93e2001-09-28 01:34:43 +0000816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000818do
drh71eb93e2001-09-28 01:34:43 +0000819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000823 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000824 esac
825done
826
drh71eb93e2001-09-28 01:34:43 +0000827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
a.rottmann84e63352003-03-24 09:42:16 +0000834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
drh71eb93e2001-09-28 01:34:43 +0000835 { (exit 1); exit 1; }; };;
836 esac
837done
drh75897232000-05-29 14:26:00 +0000838
drh71eb93e2001-09-28 01:34:43 +0000839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000841# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000842build=$build_alias
843host=$host_alias
844target=$target_alias
drh75897232000-05-29 14:26:00 +0000845
a.rottmann84e63352003-03-24 09:42:16 +0000846# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000861
a.rottmann84e63352003-03-24 09:42:16 +0000862
drh75897232000-05-29 14:26:00 +0000863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
a.rottmann84e63352003-03-24 09:42:16 +0000867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +0000888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000889 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000890 else
a.rottmann84e63352003-03-24 09:42:16 +0000891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +0000892 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000893 fi
894fi
a.rottmann84e63352003-03-24 09:42:16 +0000895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
drh75897232000-05-29 14:26:00 +0000931
drh71eb93e2001-09-28 01:34:43 +0000932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000938 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000939\`configure' configures this package to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE. See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958
a.rottmann84e63352003-03-24 09:42:16 +0000959_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000960
a.rottmann84e63352003-03-24 09:42:16 +0000961 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000962Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
964 [$ac_default_prefix]
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +0000988_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000989
a.rottmann84e63352003-03-24 09:42:16 +0000990 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000991
992System types:
993 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +0000994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000996fi
997
998if test -n "$ac_init_help"; then
999
a.rottmann84e63352003-03-24 09:42:16 +00001000 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001001
1002Optional Features:
1003 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1004 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a.rottmann84e63352003-03-24 09:42:16 +00001005 --enable-shared=PKGS build shared libraries default=yes
1006 --enable-static=PKGS build static libraries default=yes
1007 --enable-fast-install=PKGS optimize for fast installation default=yes
drh71eb93e2001-09-28 01:34:43 +00001008 --disable-libtool-lock avoid locking (might break parallel builds)
1009 --enable-utf8 Use UTF-8 encodings
1010
1011Optional Packages:
1012 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1013 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann84e63352003-03-24 09:42:16 +00001014 --with-gnu-ld assume the C compiler uses GNU ld default=no
1015 --with-pic try to use only PIC/non-PIC objects default=use both
drh71eb93e2001-09-28 01:34:43 +00001016 --with-hints=FILE Read configuration options from FILE
1017
1018Some influential environment variables:
1019 CC C compiler command
1020 CFLAGS C compiler flags
1021 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1022 nonstandard directory <lib dir>
1023 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024 headers in a nonstandard directory <include dir>
1025 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001026
1027Use these variables to override the choices made by `configure' or to help
1028it to find libraries and programs with nonstandard names/locations.
1029
a.rottmann84e63352003-03-24 09:42:16 +00001030_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001031fi
1032
1033if test "$ac_init_help" = "recursive"; then
1034 # If there are subdirs, report their specific --help.
1035 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001036 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1037 test -d $ac_dir || continue
1038 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001039
a.rottmann84e63352003-03-24 09:42:16 +00001040if test "$ac_dir" != .; then
1041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1042 # A "../" for each directory in $ac_dir_suffix.
1043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1044else
1045 ac_dir_suffix= ac_top_builddir=
1046fi
drh71eb93e2001-09-28 01:34:43 +00001047
a.rottmann84e63352003-03-24 09:42:16 +00001048case $srcdir in
1049 .) # No --srcdir option. We are building in place.
1050 ac_srcdir=.
1051 if test -z "$ac_top_builddir"; then
1052 ac_top_srcdir=.
1053 else
1054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1055 fi ;;
1056 [\\/]* | ?:[\\/]* ) # Absolute path.
1057 ac_srcdir=$srcdir$ac_dir_suffix;
1058 ac_top_srcdir=$srcdir ;;
1059 *) # Relative path.
1060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1062esac
1063# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1064# absolute.
1065ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1066ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1067ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1068ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1069
1070 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001071 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001072 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001073 echo
a.rottmann84e63352003-03-24 09:42:16 +00001074 $SHELL $ac_srcdir/configure.gnu --help=recursive
1075 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001076 echo
a.rottmann84e63352003-03-24 09:42:16 +00001077 $SHELL $ac_srcdir/configure --help=recursive
1078 elif test -f $ac_srcdir/configure.ac ||
1079 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001080 echo
1081 $ac_configure --help
1082 else
a.rottmann84e63352003-03-24 09:42:16 +00001083 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001084 fi
1085 cd $ac_popdir
1086 done
1087fi
1088
1089test -n "$ac_init_help" && exit 0
1090if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001091 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001092
a.rottmann84e63352003-03-24 09:42:16 +00001093Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
drh71eb93e2001-09-28 01:34:43 +00001094Free Software Foundation, Inc.
1095This configure script is free software; the Free Software Foundation
1096gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001097_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001098 exit 0
1099fi
1100exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001101cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001102This file contains any messages produced by compilers while
1103running configure, to aid debugging if configure makes a mistake.
1104
1105It was created by $as_me, which was
a.rottmann84e63352003-03-24 09:42:16 +00001106generated by GNU Autoconf 2.57. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001107
1108 $ $0 $@
1109
a.rottmann84e63352003-03-24 09:42:16 +00001110_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001111{
1112cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001113## --------- ##
1114## Platform. ##
1115## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001116
1117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1118uname -m = `(uname -m) 2>/dev/null || echo unknown`
1119uname -r = `(uname -r) 2>/dev/null || echo unknown`
1120uname -s = `(uname -s) 2>/dev/null || echo unknown`
1121uname -v = `(uname -v) 2>/dev/null || echo unknown`
1122
1123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1125
1126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1129hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1133
drh71eb93e2001-09-28 01:34:43 +00001134_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001135
1136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1137for as_dir in $PATH
1138do
1139 IFS=$as_save_IFS
1140 test -z "$as_dir" && as_dir=.
1141 echo "PATH: $as_dir"
1142done
1143
drh71eb93e2001-09-28 01:34:43 +00001144} >&5
1145
a.rottmann84e63352003-03-24 09:42:16 +00001146cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001147
a.rottmann84e63352003-03-24 09:42:16 +00001148
1149## ----------- ##
1150## Core tests. ##
1151## ----------- ##
1152
1153_ACEOF
1154
drh71eb93e2001-09-28 01:34:43 +00001155
1156# Keep a trace of the command line.
1157# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001158# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001159# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001160# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001161ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001162ac_configure_args0=
1163ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001164ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001165ac_must_keep_next=false
1166for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001167do
a.rottmann84e63352003-03-24 09:42:16 +00001168 for ac_arg
1169 do
1170 case $ac_arg in
1171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 continue ;;
1175 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1176 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1177 esac
1178 case $ac_pass in
1179 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1180 2)
1181 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1182 if test $ac_must_keep_next = true; then
1183 ac_must_keep_next=false # Got value, back to normal.
1184 else
1185 case $ac_arg in
1186 *=* | --config-cache | -C | -disable-* | --disable-* \
1187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1189 | -with-* | --with-* | -without-* | --without-* | --x)
1190 case "$ac_configure_args0 " in
1191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1192 esac
1193 ;;
1194 -* ) ac_must_keep_next=true ;;
1195 esac
1196 fi
1197 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1198 # Get rid of the leading space.
1199 ac_sep=" "
1200 ;;
1201 esac
1202 done
drh71eb93e2001-09-28 01:34:43 +00001203done
a.rottmann84e63352003-03-24 09:42:16 +00001204$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1205$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001206
1207# When interrupted or exit'd, cleanup temporary files, and complete
1208# config.log. We remove comments because anyway the quotes in there
1209# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001210# WARNING: Be sure not to use single quotes in there, as some shells,
1211# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001212trap 'exit_status=$?
1213 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001214 {
1215 echo
1216
1217 cat <<\_ASBOX
1218## ---------------- ##
1219## Cache variables. ##
1220## ---------------- ##
1221_ASBOX
1222 echo
1223 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001224{
1225 (set) 2>&1 |
1226 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1227 *ac_space=\ *)
1228 sed -n \
1229 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1231 ;;
1232 *)
1233 sed -n \
1234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1235 ;;
1236 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001237}
1238 echo
1239
1240 cat <<\_ASBOX
1241## ----------------- ##
1242## Output variables. ##
1243## ----------------- ##
1244_ASBOX
1245 echo
1246 for ac_var in $ac_subst_vars
1247 do
1248 eval ac_val=$`echo $ac_var`
1249 echo "$ac_var='"'"'$ac_val'"'"'"
1250 done | sort
1251 echo
1252
1253 if test -n "$ac_subst_files"; then
1254 cat <<\_ASBOX
1255## ------------- ##
1256## Output files. ##
1257## ------------- ##
1258_ASBOX
1259 echo
1260 for ac_var in $ac_subst_files
1261 do
1262 eval ac_val=$`echo $ac_var`
1263 echo "$ac_var='"'"'$ac_val'"'"'"
1264 done | sort
1265 echo
1266 fi
1267
1268 if test -s confdefs.h; then
1269 cat <<\_ASBOX
1270## ----------- ##
1271## confdefs.h. ##
1272## ----------- ##
1273_ASBOX
1274 echo
1275 sed "/^$/d" confdefs.h | sort
1276 echo
1277 fi
1278 test "$ac_signal" != 0 &&
1279 echo "$as_me: caught signal $ac_signal"
1280 echo "$as_me: exit $exit_status"
1281 } >&5
1282 rm -f core core.* *.core &&
1283 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001284 exit $exit_status
1285 ' 0
1286for ac_signal in 1 2 13 15; do
1287 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1288done
1289ac_signal=0
1290
1291# confdefs.h avoids OS command line length limits that DEFS can exceed.
1292rm -rf conftest* confdefs.h
1293# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1294echo >confdefs.h
1295
a.rottmann84e63352003-03-24 09:42:16 +00001296# Predefined preprocessor variables.
1297
1298cat >>confdefs.h <<_ACEOF
1299#define PACKAGE_NAME "$PACKAGE_NAME"
1300_ACEOF
1301
1302
1303cat >>confdefs.h <<_ACEOF
1304#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1305_ACEOF
1306
1307
1308cat >>confdefs.h <<_ACEOF
1309#define PACKAGE_VERSION "$PACKAGE_VERSION"
1310_ACEOF
1311
1312
1313cat >>confdefs.h <<_ACEOF
1314#define PACKAGE_STRING "$PACKAGE_STRING"
1315_ACEOF
1316
1317
1318cat >>confdefs.h <<_ACEOF
1319#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1320_ACEOF
1321
1322
drh71eb93e2001-09-28 01:34:43 +00001323# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001324# Prefer explicitly selected file to automatically selected ones.
1325if test -z "$CONFIG_SITE"; then
1326 if test "x$prefix" != xNONE; then
1327 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1328 else
1329 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1330 fi
1331fi
1332for ac_site_file in $CONFIG_SITE; do
1333 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001334 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001335echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001336 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001337 . "$ac_site_file"
1338 fi
1339done
1340
1341if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001342 # Some versions of bash will fail to source /dev/null (special
1343 # files actually), so we avoid doing that.
1344 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001345 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001346echo "$as_me: loading cache $cache_file" >&6;}
1347 case $cache_file in
1348 [\\/]* | ?:[\\/]* ) . $cache_file;;
1349 *) . ./$cache_file;;
1350 esac
1351 fi
drh75897232000-05-29 14:26:00 +00001352else
a.rottmann84e63352003-03-24 09:42:16 +00001353 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001354echo "$as_me: creating cache $cache_file" >&6;}
1355 >$cache_file
1356fi
1357
1358# Check that the precious variables saved in the cache have kept the same
1359# value.
1360ac_cache_corrupted=false
1361for ac_var in `(set) 2>&1 |
1362 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1364 eval ac_new_set=\$ac_env_${ac_var}_set
1365 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1366 eval ac_new_val="\$ac_env_${ac_var}_value"
1367 case $ac_old_set,$ac_new_set in
1368 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001369 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001370echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1371 ac_cache_corrupted=: ;;
1372 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001373 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001374echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1375 ac_cache_corrupted=: ;;
1376 ,);;
1377 *)
1378 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann84e63352003-03-24 09:42:16 +00001379 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001380echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001381 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001382echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001383 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001384echo "$as_me: current value: $ac_new_val" >&2;}
1385 ac_cache_corrupted=:
1386 fi;;
1387 esac
a.rottmann84e63352003-03-24 09:42:16 +00001388 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001389 if test "$ac_new_set" = set; then
1390 case $ac_new_val in
1391 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001392 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1393 *) ac_arg=$ac_var=$ac_new_val ;;
1394 esac
1395 case " $ac_configure_args " in
1396 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1397 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001398 esac
1399 fi
1400done
1401if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001402 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001403echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001404 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001405echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1406 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001407fi
1408
1409ac_ext=c
drh75897232000-05-29 14:26:00 +00001410ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1413ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001414
a.rottmann84e63352003-03-24 09:42:16 +00001415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
drh75897232000-05-29 14:26:00 +00001433
1434# The following RCS revision string applies to configure.in
a.rottmann84e63352003-03-24 09:42:16 +00001435# $Revision: 1.13 $
drh75897232000-05-29 14:26:00 +00001436
1437#########
drh71eb93e2001-09-28 01:34:43 +00001438# Programs needed
drh75897232000-05-29 14:26:00 +00001439#
drh71eb93e2001-09-28 01:34:43 +00001440# Check whether --enable-shared or --disable-shared was given.
1441if test "${enable_shared+set}" = set; then
1442 enableval="$enable_shared"
1443 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001444case $enableval in
1445yes) enable_shared=yes ;;
1446no) enable_shared=no ;;
1447*)
1448 enable_shared=no
1449 # Look at the argument we got. We use all the common list separators.
1450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1451 for pkg in $enableval; do
1452 if test "X$pkg" = "X$p"; then
1453 enable_shared=yes
1454 fi
1455 done
1456 IFS="$ac_save_ifs"
1457 ;;
1458esac
drh71eb93e2001-09-28 01:34:43 +00001459else
1460 enable_shared=yes
1461fi;
drh71eb93e2001-09-28 01:34:43 +00001462# Check whether --enable-static or --disable-static was given.
1463if test "${enable_static+set}" = set; then
1464 enableval="$enable_static"
1465 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001466case $enableval in
1467yes) enable_static=yes ;;
1468no) enable_static=no ;;
1469*)
1470 enable_static=no
1471 # Look at the argument we got. We use all the common list separators.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1473 for pkg in $enableval; do
1474 if test "X$pkg" = "X$p"; then
1475 enable_static=yes
1476 fi
1477 done
1478 IFS="$ac_save_ifs"
1479 ;;
1480esac
drh71eb93e2001-09-28 01:34:43 +00001481else
1482 enable_static=yes
1483fi;
drh71eb93e2001-09-28 01:34:43 +00001484# Check whether --enable-fast-install or --disable-fast-install was given.
1485if test "${enable_fast_install+set}" = set; then
1486 enableval="$enable_fast_install"
1487 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001488case $enableval in
1489yes) enable_fast_install=yes ;;
1490no) enable_fast_install=no ;;
1491*)
1492 enable_fast_install=no
1493 # Look at the argument we got. We use all the common list separators.
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1495 for pkg in $enableval; do
1496 if test "X$pkg" = "X$p"; then
1497 enable_fast_install=yes
1498 fi
1499 done
1500 IFS="$ac_save_ifs"
1501 ;;
1502esac
drh71eb93e2001-09-28 01:34:43 +00001503else
1504 enable_fast_install=yes
1505fi;
drh71eb93e2001-09-28 01:34:43 +00001506ac_aux_dir=
1507for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1508 if test -f $ac_dir/install-sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install-sh -c"
1511 break
1512 elif test -f $ac_dir/install.sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install.sh -c"
1515 break
1516 elif test -f $ac_dir/shtool; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/shtool install -c"
1519 break
1520 fi
1521done
1522if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001523 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001524echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1525 { (exit 1); exit 1; }; }
1526fi
1527ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531# Make sure we can run config.sub.
1532$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001533 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001534echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535 { (exit 1); exit 1; }; }
1536
a.rottmann84e63352003-03-24 09:42:16 +00001537echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001538echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539if test "${ac_cv_build+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541else
1542 ac_cv_build_alias=$build_alias
1543test -z "$ac_cv_build_alias" &&
1544 ac_cv_build_alias=`$ac_config_guess`
1545test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001546 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001547echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548 { (exit 1); exit 1; }; }
1549ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001552 { (exit 1); exit 1; }; }
1553
1554fi
a.rottmann84e63352003-03-24 09:42:16 +00001555echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001556echo "${ECHO_T}$ac_cv_build" >&6
1557build=$ac_cv_build
1558build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
a.rottmann84e63352003-03-24 09:42:16 +00001562
1563echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001564echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565if test "${ac_cv_host+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_host_alias=$host_alias
1569test -z "$ac_cv_host_alias" &&
1570 ac_cv_host_alias=$ac_cv_build_alias
1571ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001573echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576fi
a.rottmann84e63352003-03-24 09:42:16 +00001577echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001578echo "${ECHO_T}$ac_cv_host" >&6
1579host=$ac_cv_host
1580host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
a.rottmann84e63352003-03-24 09:42:16 +00001584
drh71eb93e2001-09-28 01:34:43 +00001585ac_ext=c
1586ac_cpp='$CPP $CPPFLAGS'
1587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001593echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
a.rottmann84e63352003-03-24 09:42:16 +00001601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
drh71eb93e2001-09-28 01:34:43 +00001613done
1614
1615fi
1616fi
1617CC=$ac_cv_prog_CC
1618if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001619 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001620echo "${ECHO_T}$CC" >&6
1621else
a.rottmann84e63352003-03-24 09:42:16 +00001622 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001623echo "${ECHO_T}no" >&6
1624fi
1625
1626fi
1627if test -z "$ac_cv_prog_CC"; then
1628 ac_ct_CC=$CC
1629 # Extract the first word of "gcc", so it can be a program name with args.
1630set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001631echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 if test -n "$ac_ct_CC"; then
1637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638else
a.rottmann84e63352003-03-24 09:42:16 +00001639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_ac_ct_CC="gcc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650done
drh71eb93e2001-09-28 01:34:43 +00001651done
1652
1653fi
1654fi
1655ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001658echo "${ECHO_T}$ac_ct_CC" >&6
1659else
a.rottmann84e63352003-03-24 09:42:16 +00001660 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001661echo "${ECHO_T}no" >&6
1662fi
1663
1664 CC=$ac_ct_CC
1665else
1666 CC="$ac_cv_prog_CC"
1667fi
1668
1669if test -z "$CC"; then
1670 if test -n "$ac_tool_prefix"; then
1671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1672set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001673echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1680else
a.rottmann84e63352003-03-24 09:42:16 +00001681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_CC="${ac_tool_prefix}cc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1691 fi
1692done
drh71eb93e2001-09-28 01:34:43 +00001693done
1694
1695fi
1696fi
1697CC=$ac_cv_prog_CC
1698if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001699 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001700echo "${ECHO_T}$CC" >&6
1701else
a.rottmann84e63352003-03-24 09:42:16 +00001702 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001703echo "${ECHO_T}no" >&6
1704fi
1705
1706fi
1707if test -z "$ac_cv_prog_CC"; then
1708 ac_ct_CC=$CC
1709 # Extract the first word of "cc", so it can be a program name with args.
1710set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001711echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718else
a.rottmann84e63352003-03-24 09:42:16 +00001719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="cc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1729 fi
1730done
drh71eb93e2001-09-28 01:34:43 +00001731done
1732
1733fi
1734fi
1735ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001738echo "${ECHO_T}$ac_ct_CC" >&6
1739else
a.rottmann84e63352003-03-24 09:42:16 +00001740 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001741echo "${ECHO_T}no" >&6
1742fi
1743
1744 CC=$ac_ct_CC
1745else
1746 CC="$ac_cv_prog_CC"
1747fi
1748
1749fi
1750if test -z "$CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001753echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760else
1761 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1770 ac_prog_rejected=yes
1771 continue
1772 fi
1773 ac_cv_prog_CC="cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777done
drh71eb93e2001-09-28 01:34:43 +00001778done
1779
1780if test $ac_prog_rejected = yes; then
1781 # We found a bogon in the path, so make sure we never use it.
1782 set dummy $ac_cv_prog_CC
1783 shift
1784 if test $# != 0; then
1785 # We chose a different compiler from the bogus one.
1786 # However, it has the same basename, so the bogon will be chosen
1787 # first if we set CC to just the basename; use the full file name.
1788 shift
a.rottmann84e63352003-03-24 09:42:16 +00001789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001790 fi
1791fi
1792fi
1793fi
1794CC=$ac_cv_prog_CC
1795if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001796 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001797echo "${ECHO_T}$CC" >&6
1798else
a.rottmann84e63352003-03-24 09:42:16 +00001799 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$CC"; then
1805 if test -n "$ac_tool_prefix"; then
1806 for ac_prog in cl
1807 do
1808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001810echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1817else
a.rottmann84e63352003-03-24 09:42:16 +00001818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829done
drh71eb93e2001-09-28 01:34:43 +00001830done
1831
1832fi
1833fi
1834CC=$ac_cv_prog_CC
1835if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001836 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001837echo "${ECHO_T}$CC" >&6
1838else
a.rottmann84e63352003-03-24 09:42:16 +00001839 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001840echo "${ECHO_T}no" >&6
1841fi
1842
1843 test -n "$CC" && break
1844 done
1845fi
1846if test -z "$CC"; then
1847 ac_ct_CC=$CC
1848 for ac_prog in cl
1849do
1850 # Extract the first word of "$ac_prog", so it can be a program name with args.
1851set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001852echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859else
a.rottmann84e63352003-03-24 09:42:16 +00001860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871done
drh71eb93e2001-09-28 01:34:43 +00001872done
1873
1874fi
1875fi
1876ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001879echo "${ECHO_T}$ac_ct_CC" >&6
1880else
a.rottmann84e63352003-03-24 09:42:16 +00001881 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001882echo "${ECHO_T}no" >&6
1883fi
1884
1885 test -n "$ac_ct_CC" && break
1886done
1887
1888 CC=$ac_ct_CC
1889fi
1890
1891fi
1892
a.rottmann84e63352003-03-24 09:42:16 +00001893
1894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&5
1896echo "$as_me: error: no acceptable C compiler found in \$PATH
1897See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001898 { (exit 1); exit 1; }; }
1899
1900# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001901echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001902 "checking for C compiler version" >&5
1903ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001905 (eval $ac_compiler --version </dev/null >&5) 2>&5
1906 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001908 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001910 (eval $ac_compiler -v </dev/null >&5) 2>&5
1911 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001913 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001915 (eval $ac_compiler -V </dev/null >&5) 2>&5
1916 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001918 (exit $ac_status); }
1919
1920cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001921#line $LINENO "configure"
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001927
1928int
1929main ()
1930{
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00001937ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00001938# Try to create an executable without -o first, disregard a.out.
1939# It will help us diagnose broken compilers, and finding out an intuition
1940# of exeext.
a.rottmann84e63352003-03-24 09:42:16 +00001941echo "$as_me:$LINENO: checking for C compiler default output" >&5
drh71eb93e2001-09-28 01:34:43 +00001942echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1943ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00001944if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001945 (eval $ac_link_default) 2>&5
1946 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001948 (exit $ac_status); }; then
1949 # Find the output, starting from the most likely. This scheme is
1950# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1951# resort.
a.rottmann84e63352003-03-24 09:42:16 +00001952
1953# Be careful to initialize this variable, since it used to be cached.
1954# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1955ac_cv_exeext=
1956# b.out is created by i960 compilers.
1957for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1958do
1959 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00001960 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00001961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1962 ;;
1963 conftest.$ac_ext )
1964 # This is the source file.
1965 ;;
1966 [ab].out )
1967 # We found the default executable, but exeext='' is most
1968 # certainly right.
1969 break;;
1970 *.* )
1971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1972 # FIXME: I believe we export ac_cv_exeext for Libtool,
1973 # but it would be cool to find out if it's true. Does anybody
1974 # maintain Libtool? --akim.
1975 export ac_cv_exeext
1976 break;;
1977 * )
1978 break;;
drh71eb93e2001-09-28 01:34:43 +00001979 esac
1980done
1981else
1982 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001983sed 's/^/| /' conftest.$ac_ext >&5
1984
1985{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1986See \`config.log' for more details." >&5
1987echo "$as_me: error: C compiler cannot create executables
1988See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001989 { (exit 77); exit 77; }; }
1990fi
1991
1992ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00001993echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001994echo "${ECHO_T}$ac_file" >&6
1995
1996# Check the compiler produces executables we can run. If not, either
1997# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00001998echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00001999echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2000# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2001# If not cross compiling, check that we can run a simple program.
2002if test "$cross_compiling" != yes; then
2003 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002005 (eval $ac_try) 2>&5
2006 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002008 (exit $ac_status); }; }; then
2009 cross_compiling=no
2010 else
2011 if test "$cross_compiling" = maybe; then
2012 cross_compiling=yes
2013 else
a.rottmann84e63352003-03-24 09:42:16 +00002014 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2015If you meant to cross compile, use \`--host'.
2016See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002017echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002018If you meant to cross compile, use \`--host'.
2019See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002020 { (exit 1); exit 1; }; }
2021 fi
2022 fi
2023fi
a.rottmann84e63352003-03-24 09:42:16 +00002024echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002025echo "${ECHO_T}yes" >&6
2026
a.rottmann84e63352003-03-24 09:42:16 +00002027rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002028ac_clean_files=$ac_clean_files_save
2029# Check the compiler produces executables we can run. If not, either
2030# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002031echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002032echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002033echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002034echo "${ECHO_T}$cross_compiling" >&6
2035
a.rottmann84e63352003-03-24 09:42:16 +00002036echo "$as_me:$LINENO: checking for suffix of executables" >&5
2037echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002039 (eval $ac_link) 2>&5
2040 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002042 (exit $ac_status); }; then
2043 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2044# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2045# work properly (i.e., refer to `conftest.exe'), while it won't with
2046# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002047for ac_file in conftest.exe conftest conftest.*; do
2048 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002049 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2052 export ac_cv_exeext
2053 break;;
2054 * ) break;;
2055 esac
2056done
2057else
a.rottmann84e63352003-03-24 09:42:16 +00002058 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2059See \`config.log' for more details." >&5
2060echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2061See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002062 { (exit 1); exit 1; }; }
2063fi
2064
2065rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002066echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002067echo "${ECHO_T}$ac_cv_exeext" >&6
2068
2069rm -f conftest.$ac_ext
2070EXEEXT=$ac_cv_exeext
2071ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002072echo "$as_me:$LINENO: checking for suffix of object files" >&5
2073echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002074if test "${ac_cv_objext+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002078#line $LINENO "configure"
2079/* confdefs.h. */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002084
2085int
2086main ()
2087{
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002095 (eval $ac_compile) 2>&5
2096 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002098 (exit $ac_status); }; then
2099 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2100 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2103 break;;
2104 esac
2105done
2106else
2107 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2111See \`config.log' for more details." >&5
2112echo "$as_me: error: cannot compute suffix of object files: cannot compile
2113See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002114 { (exit 1); exit 1; }; }
2115fi
2116
2117rm -f conftest.$ac_cv_objext conftest.$ac_ext
2118fi
a.rottmann84e63352003-03-24 09:42:16 +00002119echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002120echo "${ECHO_T}$ac_cv_objext" >&6
2121OBJEXT=$ac_cv_objext
2122ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002123echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002124echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2125if test "${ac_cv_c_compiler_gnu+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002129#line $LINENO "configure"
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002135
2136int
2137main ()
2138{
2139#ifndef __GNUC__
2140 choke me
2141#endif
2142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002149 (eval $ac_compile) 2>&5
2150 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002152 (exit $ac_status); } &&
2153 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002155 (eval $ac_try) 2>&5
2156 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002158 (exit $ac_status); }; }; then
2159 ac_compiler_gnu=yes
2160else
2161 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002162sed 's/^/| /' conftest.$ac_ext >&5
2163
drh71eb93e2001-09-28 01:34:43 +00002164ac_compiler_gnu=no
2165fi
2166rm -f conftest.$ac_objext conftest.$ac_ext
2167ac_cv_c_compiler_gnu=$ac_compiler_gnu
2168
2169fi
a.rottmann84e63352003-03-24 09:42:16 +00002170echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002171echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2172GCC=`test $ac_compiler_gnu = yes && echo yes`
2173ac_test_CFLAGS=${CFLAGS+set}
2174ac_save_CFLAGS=$CFLAGS
2175CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002176echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002177echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2178if test "${ac_cv_prog_cc_g+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002182#line $LINENO "configure"
2183/* confdefs.h. */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002188
2189int
2190main ()
2191{
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002199 (eval $ac_compile) 2>&5
2200 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002205 (eval $ac_try) 2>&5
2206 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002208 (exit $ac_status); }; }; then
2209 ac_cv_prog_cc_g=yes
2210else
2211 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002212sed 's/^/| /' conftest.$ac_ext >&5
2213
drh71eb93e2001-09-28 01:34:43 +00002214ac_cv_prog_cc_g=no
2215fi
2216rm -f conftest.$ac_objext conftest.$ac_ext
2217fi
a.rottmann84e63352003-03-24 09:42:16 +00002218echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002219echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2220if test "$ac_test_CFLAGS" = set; then
2221 CFLAGS=$ac_save_CFLAGS
2222elif test $ac_cv_prog_cc_g = yes; then
2223 if test "$GCC" = yes; then
2224 CFLAGS="-g -O2"
2225 else
2226 CFLAGS="-g"
2227 fi
2228else
2229 if test "$GCC" = yes; then
2230 CFLAGS="-O2"
2231 else
2232 CFLAGS=
2233 fi
2234fi
a.rottmann84e63352003-03-24 09:42:16 +00002235echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2236echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2237if test "${ac_cv_prog_cc_stdc+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239else
2240 ac_cv_prog_cc_stdc=no
2241ac_save_CC=$CC
2242cat >conftest.$ac_ext <<_ACEOF
2243#line $LINENO "configure"
2244/* confdefs.h. */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h. */
2249#include <stdarg.h>
2250#include <stdio.h>
2251#include <sys/types.h>
2252#include <sys/stat.h>
2253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2254struct buf { int x; };
2255FILE * (*rcsopen) (struct buf *, struct stat *, int);
2256static char *e (p, i)
2257 char **p;
2258 int i;
2259{
2260 return p[i];
2261}
2262static char *f (char * (*g) (char **, int), char **p, ...)
2263{
2264 char *s;
2265 va_list v;
2266 va_start (v,p);
2267 s = g (p, va_arg (v,int));
2268 va_end (v);
2269 return s;
2270}
2271int test (int i, double x);
2272struct s1 {int (*f) (int a);};
2273struct s2 {int (*f) (double a);};
2274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2275int argc;
2276char **argv;
2277int
2278main ()
2279{
2280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285# Don't try gcc -ansi; that turns off useful extensions and
2286# breaks some systems' header files.
2287# AIX -qlanglvl=ansi
2288# Ultrix and OSF/1 -std1
2289# HP-UX 10.20 and later -Ae
2290# HP-UX older versions -Aa -D_HPUX_SOURCE
2291# SVR4 -Xc -D__EXTENSIONS__
2292for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2293do
2294 CC="$ac_save_CC $ac_arg"
2295 rm -f conftest.$ac_objext
2296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 ac_cv_prog_cc_stdc=$ac_arg
2308break
2309else
2310 echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
2312
2313fi
2314rm -f conftest.$ac_objext
2315done
2316rm -f conftest.$ac_ext conftest.$ac_objext
2317CC=$ac_save_CC
2318
2319fi
2320
2321case "x$ac_cv_prog_cc_stdc" in
2322 x|xno)
2323 echo "$as_me:$LINENO: result: none needed" >&5
2324echo "${ECHO_T}none needed" >&6 ;;
2325 *)
2326 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2327echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2328 CC="$CC $ac_cv_prog_cc_stdc" ;;
2329esac
2330
drh71eb93e2001-09-28 01:34:43 +00002331# Some people use a C++ compiler to compile C. Since we use `exit',
2332# in C++ we need to declare it. In case someone uses the same compiler
2333# for both compiling C and C++ we need to have the C++ compiler decide
2334# the declaration of exit, since it's the most demanding environment.
2335cat >conftest.$ac_ext <<_ACEOF
2336#ifndef __cplusplus
2337 choke me
2338#endif
2339_ACEOF
2340rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002342 (eval $ac_compile) 2>&5
2343 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002345 (exit $ac_status); } &&
2346 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002348 (eval $ac_try) 2>&5
2349 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002351 (exit $ac_status); }; }; then
2352 for ac_declaration in \
2353 ''\
2354 '#include <stdlib.h>' \
2355 'extern "C" void std::exit (int) throw (); using std::exit;' \
2356 'extern "C" void std::exit (int); using std::exit;' \
2357 'extern "C" void exit (int) throw ();' \
2358 'extern "C" void exit (int);' \
2359 'void exit (int);'
2360do
2361 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002362#line $LINENO "configure"
2363/* confdefs.h. */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002368#include <stdlib.h>
2369$ac_declaration
2370int
2371main ()
2372{
2373exit (42);
2374 ;
2375 return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002380 (eval $ac_compile) 2>&5
2381 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002386 (eval $ac_try) 2>&5
2387 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002389 (exit $ac_status); }; }; then
2390 :
2391else
2392 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002393sed 's/^/| /' conftest.$ac_ext >&5
2394
drh71eb93e2001-09-28 01:34:43 +00002395continue
2396fi
2397rm -f conftest.$ac_objext conftest.$ac_ext
2398 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002399#line $LINENO "configure"
2400/* confdefs.h. */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002405$ac_declaration
2406int
2407main ()
2408{
2409exit (42);
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002416 (eval $ac_compile) 2>&5
2417 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002419 (exit $ac_status); } &&
2420 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002422 (eval $ac_try) 2>&5
2423 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002425 (exit $ac_status); }; }; then
2426 break
2427else
2428 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002429sed 's/^/| /' conftest.$ac_ext >&5
2430
drh71eb93e2001-09-28 01:34:43 +00002431fi
2432rm -f conftest.$ac_objext conftest.$ac_ext
2433done
2434rm -f conftest*
2435if test -n "$ac_declaration"; then
2436 echo '#ifdef __cplusplus' >>confdefs.h
2437 echo $ac_declaration >>confdefs.h
2438 echo '#endif' >>confdefs.h
2439fi
2440
2441else
2442 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002443sed 's/^/| /' conftest.$ac_ext >&5
2444
drh71eb93e2001-09-28 01:34:43 +00002445fi
2446rm -f conftest.$ac_objext conftest.$ac_ext
2447ac_ext=c
2448ac_cpp='$CPP $CPPFLAGS'
2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
a.rottmann84e63352003-03-24 09:42:16 +00002453# Find the correct PATH separator. Usually this is `:', but
2454# DJGPP uses `;' like DOS.
2455if test "X${PATH_SEPARATOR+set}" != Xset; then
2456 UNAME=${UNAME-`uname 2>/dev/null`}
2457 case X$UNAME in
2458 *-DOS) lt_cv_sys_path_separator=';' ;;
2459 *) lt_cv_sys_path_separator=':' ;;
2460 esac
2461 PATH_SEPARATOR=$lt_cv_sys_path_separator
2462fi
2463
2464
drh71eb93e2001-09-28 01:34:43 +00002465# Check whether --with-gnu-ld or --without-gnu-ld was given.
2466if test "${with_gnu_ld+set}" = set; then
2467 withval="$with_gnu_ld"
2468 test "$withval" = no || with_gnu_ld=yes
2469else
2470 with_gnu_ld=no
2471fi;
2472ac_prog=ld
2473if test "$GCC" = yes; then
2474 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann84e63352003-03-24 09:42:16 +00002475 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
drh71eb93e2001-09-28 01:34:43 +00002476echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2477 case $host in
2478 *-*-mingw*)
2479 # gcc leaves a trailing carriage return which upsets mingw
2480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2481 *)
2482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2483 esac
2484 case $ac_prog in
2485 # Accept absolute paths.
a.rottmann84e63352003-03-24 09:42:16 +00002486 [\\/]* | [A-Za-z]:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002487 re_direlt='/[^/][^/]*/\.\./'
2488 # Canonicalize the path of ld
2489 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2490 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2491 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2492 done
2493 test -z "$LD" && LD="$ac_prog"
2494 ;;
2495 "")
2496 # If it fails, then pretend we aren't using GCC.
2497 ac_prog=ld
2498 ;;
2499 *)
2500 # If it is relative, then search for the first ld in PATH.
2501 with_gnu_ld=unknown
2502 ;;
2503 esac
2504elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002505 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002506echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2507else
a.rottmann84e63352003-03-24 09:42:16 +00002508 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002509echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2510fi
2511if test "${lt_cv_path_LD+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -z "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002516 for ac_dir in $PATH; do
drh71eb93e2001-09-28 01:34:43 +00002517 test -z "$ac_dir" && ac_dir=.
2518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2519 lt_cv_path_LD="$ac_dir/$ac_prog"
2520 # Check to see if the program is GNU ld. I'd rather use --version,
2521 # but apparently some GNU ld's only accept -v.
2522 # Break only if it was the GNU/non-GNU ld that we prefer.
2523 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2524 test "$with_gnu_ld" != no && break
2525 else
2526 test "$with_gnu_ld" != yes && break
2527 fi
2528 fi
2529 done
a.rottmann84e63352003-03-24 09:42:16 +00002530 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002531else
2532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2533fi
2534fi
2535
2536LD="$lt_cv_path_LD"
2537if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002538 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002539echo "${ECHO_T}$LD" >&6
2540else
a.rottmann84e63352003-03-24 09:42:16 +00002541 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002542echo "${ECHO_T}no" >&6
2543fi
a.rottmann84e63352003-03-24 09:42:16 +00002544test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002545echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2546 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002547echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002548echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2549if test "${lt_cv_prog_gnu_ld+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2553if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2554 lt_cv_prog_gnu_ld=yes
2555else
2556 lt_cv_prog_gnu_ld=no
2557fi
2558fi
a.rottmann84e63352003-03-24 09:42:16 +00002559echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002560echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2561with_gnu_ld=$lt_cv_prog_gnu_ld
2562
a.rottmann84e63352003-03-24 09:42:16 +00002563
2564echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002565echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2566if test "${lt_cv_ld_reload_flag+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569 lt_cv_ld_reload_flag='-r'
2570fi
a.rottmann84e63352003-03-24 09:42:16 +00002571echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002572echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2573reload_flag=$lt_cv_ld_reload_flag
a.rottmann84e63352003-03-24 09:42:16 +00002574test -n "$reload_flag" && reload_flag=" $reload_flag"
drh71eb93e2001-09-28 01:34:43 +00002575
a.rottmann84e63352003-03-24 09:42:16 +00002576echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002577echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2578if test "${lt_cv_path_NM+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 if test -n "$NM"; then
2582 # Let the user override the test.
2583 lt_cv_path_NM="$NM"
2584else
a.rottmann84e63352003-03-24 09:42:16 +00002585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002586 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
drh71eb93e2001-09-28 01:34:43 +00002587 test -z "$ac_dir" && ac_dir=.
2588 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2589 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2590 # Check to see if the nm accepts a BSD-compat flag.
2591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2592 # nm: unknown option "B" ignored
2593 # Tru64's nm complains that /dev/null is an invalid object file
2594 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2595 lt_cv_path_NM="$tmp_nm -B"
2596 break
2597 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2598 lt_cv_path_NM="$tmp_nm -p"
2599 break
2600 else
2601 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2602 continue # so that we can try to find one that supports BSD flags
2603 fi
2604 fi
2605 done
a.rottmann84e63352003-03-24 09:42:16 +00002606 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002607 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2608fi
2609fi
drh71eb93e2001-09-28 01:34:43 +00002610
a.rottmann84e63352003-03-24 09:42:16 +00002611NM="$lt_cv_path_NM"
2612echo "$as_me:$LINENO: result: $NM" >&5
2613echo "${ECHO_T}$NM" >&6
2614
2615echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2616echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2617if test "${lt_cv_path_SED+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 # Loop through the user's path and test for sed and gsed.
2621# Then use that list of sed's as ones to test for truncation.
2622as_executable_p="test -f"
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_prog in sed gsed; do
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2631 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2632 fi
2633 done
2634 done
2635done
2636
2637 # Create a temporary directory, and hook for its removal unless debugging.
2638$debug ||
2639{
2640 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2641 trap '{ (exit 1); exit 1; }' 1 2 13 15
2642}
2643
2644# Create a (secure) tmp directory for tmp files.
2645: ${TMPDIR=/tmp}
2646{
2647 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2648 test -n "$tmp" && test -d "$tmp"
2649} ||
2650{
2651 tmp=$TMPDIR/sed$$-$RANDOM
2652 (umask 077 && mkdir $tmp)
2653} ||
2654{
2655 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2656 { (exit 1); exit 1; }
2657}
2658 _max=0
2659 _count=0
2660 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2661 # along with /bin/sed that truncates output.
2662 for _sed in $_sed_list /usr/xpg4/bin/sed; do
2663 test ! -f ${_sed} && break
2664 cat /dev/null > "$tmp/sed.in"
2665 _count=0
2666 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2667 # Check for GNU sed and select it if it is found.
2668 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
2669 lt_cv_path_SED=${_sed}
2670 break
2671 fi
2672 while true; do
2673 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2674 mv "$tmp/sed.tmp" "$tmp/sed.in"
2675 cp "$tmp/sed.in" "$tmp/sed.nl"
2676 echo >>"$tmp/sed.nl"
2677 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
2678 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
2679 # 40000 chars as input seems more than enough
2680 test $_count -gt 10 && break
2681 _count=`expr $_count + 1`
2682 if test $_count -gt $_max; then
2683 _max=$_count
2684 lt_cv_path_SED=$_sed
2685 fi
2686 done
2687 done
2688 rm -rf "$tmp"
2689
2690fi
2691
2692if test "X$SED" != "X"; then
2693 lt_cv_path_SED=$SED
2694else
2695 SED=$lt_cv_path_SED
2696fi
2697echo "$as_me:$LINENO: result: $SED" >&5
2698echo "${ECHO_T}$SED" >&6
2699
2700echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002701echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2702LN_S=$as_ln_s
2703if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002704 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002705echo "${ECHO_T}yes" >&6
2706else
a.rottmann84e63352003-03-24 09:42:16 +00002707 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002708echo "${ECHO_T}no, using $LN_S" >&6
2709fi
2710
a.rottmann84e63352003-03-24 09:42:16 +00002711echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2712echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002713if test "${lt_cv_deplibs_check_method+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716 lt_cv_file_magic_cmd='$MAGIC_CMD'
2717lt_cv_file_magic_test_file=
2718lt_cv_deplibs_check_method='unknown'
2719# Need to set the preceding variable on all platforms that support
2720# interlibrary dependencies.
2721# 'none' -- dependencies not supported.
2722# `unknown' -- same as none, but documents that we really don't know.
2723# 'pass_all' -- all dependencies passed with no checks.
2724# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002725# 'file_magic [[regex]]' -- check by looking for files in library path
drh71eb93e2001-09-28 01:34:43 +00002726# which responds to the $file_magic_cmd with a given egrep regex.
2727# If you have `file' or equivalent on your system and you're not sure
2728# whether `pass_all' will *always* work, you probably want this one.
2729
2730case $host_os in
2731aix4* | aix5*)
2732 lt_cv_deplibs_check_method=pass_all
2733 ;;
2734
2735beos*)
2736 lt_cv_deplibs_check_method=pass_all
2737 ;;
2738
2739bsdi4*)
2740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2741 lt_cv_file_magic_cmd='/usr/bin/file -L'
2742 lt_cv_file_magic_test_file=/shlib/libc.so
2743 ;;
2744
2745cygwin* | mingw* | pw32*)
2746 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2747 lt_cv_file_magic_cmd='$OBJDUMP -f'
2748 ;;
2749
2750darwin* | rhapsody*)
2751 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2752 lt_cv_file_magic_cmd='/usr/bin/file -L'
2753 case "$host_os" in
a.rottmann84e63352003-03-24 09:42:16 +00002754 rhapsody* | darwin1.[012])
2755 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
drh71eb93e2001-09-28 01:34:43 +00002756 ;;
2757 *) # Darwin 1.3 on
2758 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2759 ;;
2760 esac
2761 ;;
2762
2763freebsd*)
2764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2765 case $host_cpu in
2766 i*86 )
2767 # Not sure whether the presence of OpenBSD here was a mistake.
2768 # Let's accept both of them until this is cleared up.
2769 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2770 lt_cv_file_magic_cmd=/usr/bin/file
2771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2772 ;;
2773 esac
2774 else
2775 lt_cv_deplibs_check_method=pass_all
2776 fi
2777 ;;
2778
2779gnu*)
2780 lt_cv_deplibs_check_method=pass_all
2781 ;;
2782
a.rottmann84e63352003-03-24 09:42:16 +00002783hpux10.20*|hpux11*)
2784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
drh71eb93e2001-09-28 01:34:43 +00002785 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann84e63352003-03-24 09:42:16 +00002786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
drh71eb93e2001-09-28 01:34:43 +00002787 ;;
2788
a.rottmann84e63352003-03-24 09:42:16 +00002789irix5* | irix6* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002790 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00002791 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002792 # this will be overridden with pass_all, but let us keep it just in case
2793 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2794 ;;
2795 *)
2796 case $LD in
2797 *-32|*"-32 ") libmagic=32-bit;;
2798 *-n32|*"-n32 ") libmagic=N32;;
2799 *-64|*"-64 ") libmagic=64-bit;;
2800 *) libmagic=never-match;;
2801 esac
2802 # this will be overridden with pass_all, but let us keep it just in case
2803 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2804 ;;
2805 esac
2806 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2807 lt_cv_deplibs_check_method=pass_all
2808 ;;
2809
2810# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00002811linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00002812 case $host_cpu in
a.rottmann84e63352003-03-24 09:42:16 +00002813 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
drh71eb93e2001-09-28 01:34:43 +00002814 lt_cv_deplibs_check_method=pass_all ;;
2815 *)
2816 # glibc up to 2.1.1 does not perform some relocations on ARM
2817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2818 esac
2819 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2820 ;;
2821
2822netbsd*)
2823 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2825 else
2826 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2827 fi
2828 ;;
2829
2830newos6*)
2831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2832 lt_cv_file_magic_cmd=/usr/bin/file
2833 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2834 ;;
2835
a.rottmann84e63352003-03-24 09:42:16 +00002836openbsd*)
2837 lt_cv_file_magic_cmd=/usr/bin/file
2838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2841 else
2842 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2843 fi
drh71eb93e2001-09-28 01:34:43 +00002844 ;;
2845
2846osf3* | osf4* | osf5*)
2847 # this will be overridden with pass_all, but let us keep it just in case
2848 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2849 lt_cv_file_magic_test_file=/shlib/libc.so
2850 lt_cv_deplibs_check_method=pass_all
2851 ;;
2852
2853sco3.2v5*)
2854 lt_cv_deplibs_check_method=pass_all
2855 ;;
2856
2857solaris*)
2858 lt_cv_deplibs_check_method=pass_all
2859 lt_cv_file_magic_test_file=/lib/libc.so
2860 ;;
2861
a.rottmann84e63352003-03-24 09:42:16 +00002862sysv5uw[78]* | sysv4*uw2*)
2863 lt_cv_deplibs_check_method=pass_all
2864 ;;
2865
drh71eb93e2001-09-28 01:34:43 +00002866sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2867 case $host_vendor in
2868 motorola)
2869 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]'
2870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2871 ;;
2872 ncr)
2873 lt_cv_deplibs_check_method=pass_all
2874 ;;
2875 sequent)
2876 lt_cv_file_magic_cmd='/bin/file'
2877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2878 ;;
2879 sni)
2880 lt_cv_file_magic_cmd='/bin/file'
2881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2882 lt_cv_file_magic_test_file=/lib/libc.so
2883 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002884 siemens)
2885 lt_cv_deplibs_check_method=pass_all
2886 ;;
drh71eb93e2001-09-28 01:34:43 +00002887 esac
2888 ;;
drh71eb93e2001-09-28 01:34:43 +00002889esac
2890
2891fi
a.rottmann84e63352003-03-24 09:42:16 +00002892echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00002893echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2894file_magic_cmd=$lt_cv_file_magic_cmd
2895deplibs_check_method=$lt_cv_deplibs_check_method
drh71eb93e2001-09-28 01:34:43 +00002896
drh71eb93e2001-09-28 01:34:43 +00002897
drh71eb93e2001-09-28 01:34:43 +00002898
drh71eb93e2001-09-28 01:34:43 +00002899
drh71eb93e2001-09-28 01:34:43 +00002900
drh71eb93e2001-09-28 01:34:43 +00002901
drh71eb93e2001-09-28 01:34:43 +00002902
drh71eb93e2001-09-28 01:34:43 +00002903
2904# Check for command to grab the raw symbol name followed by C symbol from nm.
a.rottmann84e63352003-03-24 09:42:16 +00002905echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2906echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002907if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910
2911# These are sane defaults that work on at least a few old systems.
2912# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2913
2914# Character class describing NM global symbol codes.
2915symcode='[BCDEGRST]'
2916
2917# Regexp to match symbols that can be accessed directly from C.
2918sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2919
2920# Transform the above into a raw symbol and a C symbol.
2921symxfrm='\1 \2\3 \3'
2922
2923# Transform an extracted symbol line into a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00002924lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
drh71eb93e2001-09-28 01:34:43 +00002925
2926# Transform an extracted symbol line into symbol name and symbol address
a.rottmann84e63352003-03-24 09:42:16 +00002927lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
drh71eb93e2001-09-28 01:34:43 +00002928
2929# Define system-specific variables.
2930case $host_os in
2931aix*)
2932 symcode='[BCDT]'
2933 ;;
2934cygwin* | mingw* | pw32*)
2935 symcode='[ABCDGISTW]'
2936 ;;
2937hpux*) # Its linker distinguishes data from code symbols
a.rottmann84e63352003-03-24 09:42:16 +00002938 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2939 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'"
drh71eb93e2001-09-28 01:34:43 +00002940 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002941irix* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002942 symcode='[BCDEGRST]'
2943 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002944osf*)
2945 symcode='[BCDEGQRST]'
2946 ;;
drh71eb93e2001-09-28 01:34:43 +00002947solaris* | sysv5*)
2948 symcode='[BDT]'
2949 ;;
2950sysv4)
2951 symcode='[DFNSTU]'
2952 ;;
2953esac
2954
2955# Handle CRLF in mingw tool chain
2956opt_cr=
2957case $host_os in
2958mingw*)
2959 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2960 ;;
2961esac
2962
2963# If we're using GNU nm, then use its standard symbol codes.
2964if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2965 symcode='[ABCDGISTW]'
2966fi
2967
2968# Try without a prefix undercore, then with it.
2969for ac_symprfx in "" "_"; do
2970
2971 # Write the raw and C identifiers.
2972lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2973
2974 # Check to see that the pipe works correctly.
2975 pipe_works=no
drh71eb93e2001-09-28 01:34:43 +00002976 rm -f conftest*
2977 cat > conftest.$ac_ext <<EOF
2978#ifdef __cplusplus
2979extern "C" {
2980#endif
2981char nm_test_var;
2982void nm_test_func(){}
2983#ifdef __cplusplus
2984}
2985#endif
2986int main(){nm_test_var='a';nm_test_func();return(0);}
2987EOF
2988
a.rottmann84e63352003-03-24 09:42:16 +00002989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002990 (eval $ac_compile) 2>&5
2991 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002993 (exit $ac_status); }; then
2994 # Now try to grab the symbols.
2995 nlist=conftest.nm
a.rottmann84e63352003-03-24 09:42:16 +00002996 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002997 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2998 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003000 (exit $ac_status); } && test -s "$nlist"; then
3001 # Try sorting and uniquifying the output.
3002 if sort "$nlist" | uniq > "$nlist"T; then
3003 mv -f "$nlist"T "$nlist"
3004 else
3005 rm -f "$nlist"T
3006 fi
3007
3008 # Make sure that we snagged all the symbols we need.
3009 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3010 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3011 cat <<EOF > conftest.$ac_ext
3012#ifdef __cplusplus
3013extern "C" {
3014#endif
3015
3016EOF
3017 # Now generate the symbol file.
a.rottmann84e63352003-03-24 09:42:16 +00003018 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
drh71eb93e2001-09-28 01:34:43 +00003019
3020 cat <<EOF >> conftest.$ac_ext
3021#if defined (__STDC__) && __STDC__
a.rottmann84e63352003-03-24 09:42:16 +00003022# define lt_ptr void *
drh71eb93e2001-09-28 01:34:43 +00003023#else
a.rottmann84e63352003-03-24 09:42:16 +00003024# define lt_ptr char *
drh71eb93e2001-09-28 01:34:43 +00003025# define const
3026#endif
3027
3028/* The mapping between symbol names and symbols. */
3029const struct {
3030 const char *name;
a.rottmann84e63352003-03-24 09:42:16 +00003031 lt_ptr address;
drh71eb93e2001-09-28 01:34:43 +00003032}
3033lt_preloaded_symbols[] =
3034{
3035EOF
a.rottmann84e63352003-03-24 09:42:16 +00003036 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003037 cat <<\EOF >> conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003038 {0, (lt_ptr) 0}
drh71eb93e2001-09-28 01:34:43 +00003039};
3040
3041#ifdef __cplusplus
3042}
3043#endif
3044EOF
3045 # Now try linking the two files.
3046 mv conftest.$ac_objext conftstm.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00003047 save_LIBS="$LIBS"
3048 save_CFLAGS="$CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003049 LIBS="conftstm.$ac_objext"
a.rottmann84e63352003-03-24 09:42:16 +00003050 CFLAGS="$CFLAGS$no_builtin_flag"
3051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003052 (eval $ac_link) 2>&5
3053 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } && test -s conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00003056 pipe_works=yes
3057 fi
a.rottmann84e63352003-03-24 09:42:16 +00003058 LIBS="$save_LIBS"
3059 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003060 else
3061 echo "cannot find nm_test_func in $nlist" >&5
3062 fi
3063 else
3064 echo "cannot find nm_test_var in $nlist" >&5
3065 fi
3066 else
3067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3068 fi
3069 else
3070 echo "$progname: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3072 fi
3073 rm -f conftest* conftst*
3074
3075 # Do not use the global_symbol_pipe unless it works.
3076 if test "$pipe_works" = yes; then
3077 break
3078 else
3079 lt_cv_sys_global_symbol_pipe=
3080 fi
3081done
3082
3083fi
3084
a.rottmann84e63352003-03-24 09:42:16 +00003085global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
drh71eb93e2001-09-28 01:34:43 +00003086if test -z "$lt_cv_sys_global_symbol_pipe"; then
a.rottmann84e63352003-03-24 09:42:16 +00003087 global_symbol_to_cdecl=
3088 global_symbol_to_c_name_address=
3089else
3090 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3091 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
drh71eb93e2001-09-28 01:34:43 +00003092fi
a.rottmann84e63352003-03-24 09:42:16 +00003093if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3094then
3095 echo "$as_me:$LINENO: result: failed" >&5
drh71eb93e2001-09-28 01:34:43 +00003096echo "${ECHO_T}failed" >&6
3097else
a.rottmann84e63352003-03-24 09:42:16 +00003098 echo "$as_me:$LINENO: result: ok" >&5
drh71eb93e2001-09-28 01:34:43 +00003099echo "${ECHO_T}ok" >&6
3100fi
3101
a.rottmann84e63352003-03-24 09:42:16 +00003102ac_ext=c
3103ac_cpp='$CPP $CPPFLAGS'
3104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3108echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3109# On Suns, sometimes $CPP names a directory.
3110if test -n "$CPP" && test -d "$CPP"; then
3111 CPP=
3112fi
3113if test -z "$CPP"; then
3114 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
a.rottmann84e63352003-03-24 09:42:16 +00003117 # Double quotes because CPP needs to be expanded
3118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3119 do
3120 ac_preproc_ok=false
3121for ac_c_preproc_warn_flag in '' yes
3122do
3123 # Use a header file that comes with gcc, so configuring glibc
3124 # with a fresh cross-compiler works.
3125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3126 # <limits.h> exists even on freestanding compilers.
3127 # On the NeXT, cc -E runs the code through the compiler's parser,
3128 # not just through cpp. "Syntax error" is here to catch this case.
3129 cat >conftest.$ac_ext <<_ACEOF
3130#line $LINENO "configure"
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136#ifdef __STDC__
3137# include <limits.h>
3138#else
3139# include <assert.h>
3140#endif
3141 Syntax error
3142_ACEOF
3143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } >/dev/null; then
3151 if test -s conftest.err; then
3152 ac_cpp_err=$ac_c_preproc_warn_flag
3153 else
3154 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003155 fi
a.rottmann84e63352003-03-24 09:42:16 +00003156else
3157 ac_cpp_err=yes
3158fi
3159if test -z "$ac_cpp_err"; then
3160 :
3161else
3162 echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 # Broken: fails on valid input.
3166continue
3167fi
3168rm -f conftest.err conftest.$ac_ext
3169
3170 # OK, works on sane cases. Now check whether non-existent headers
3171 # can be detected and how.
3172 cat >conftest.$ac_ext <<_ACEOF
3173#line $LINENO "configure"
3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179#include <ac_nonexistent.h>
3180_ACEOF
3181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3191 else
3192 ac_cpp_err=
3193 fi
3194else
3195 ac_cpp_err=yes
3196fi
3197if test -z "$ac_cpp_err"; then
3198 # Broken: success on invalid input.
3199continue
3200else
3201 echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 # Passes both tests.
3205ac_preproc_ok=:
3206break
3207fi
3208rm -f conftest.err conftest.$ac_ext
3209
3210done
3211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212rm -f conftest.err conftest.$ac_ext
3213if $ac_preproc_ok; then
3214 break
3215fi
3216
3217 done
3218 ac_cv_prog_CPP=$CPP
3219
3220fi
3221 CPP=$ac_cv_prog_CPP
3222else
3223 ac_cv_prog_CPP=$CPP
3224fi
3225echo "$as_me:$LINENO: result: $CPP" >&5
3226echo "${ECHO_T}$CPP" >&6
3227ac_preproc_ok=false
3228for ac_c_preproc_warn_flag in '' yes
3229do
3230 # Use a header file that comes with gcc, so configuring glibc
3231 # with a fresh cross-compiler works.
3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 # <limits.h> exists even on freestanding compilers.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp. "Syntax error" is here to catch this case.
3236 cat >conftest.$ac_ext <<_ACEOF
3237#line $LINENO "configure"
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
3250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 else
3261 ac_cpp_err=
3262 fi
3263else
3264 ac_cpp_err=yes
3265fi
3266if test -z "$ac_cpp_err"; then
3267 :
3268else
3269 echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272 # Broken: fails on valid input.
3273continue
3274fi
3275rm -f conftest.err conftest.$ac_ext
3276
3277 # OK, works on sane cases. Now check whether non-existent headers
3278 # can be detected and how.
3279 cat >conftest.$ac_ext <<_ACEOF
3280#line $LINENO "configure"
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <ac_nonexistent.h>
3287_ACEOF
3288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 else
3299 ac_cpp_err=
3300 fi
3301else
3302 ac_cpp_err=yes
3303fi
3304if test -z "$ac_cpp_err"; then
3305 # Broken: success on invalid input.
3306continue
3307else
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 # Passes both tests.
3312ac_preproc_ok=:
3313break
3314fi
3315rm -f conftest.err conftest.$ac_ext
3316
3317done
3318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319rm -f conftest.err conftest.$ac_ext
3320if $ac_preproc_ok; then
3321 :
3322else
3323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3324See \`config.log' for more details." >&5
3325echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3326See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3328fi
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336
3337echo "$as_me:$LINENO: checking for egrep" >&5
3338echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3339if test "${ac_cv_prog_egrep+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3343 then ac_cv_prog_egrep='grep -E'
3344 else ac_cv_prog_egrep='egrep'
3345 fi
3346fi
3347echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3348echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3349 EGREP=$ac_cv_prog_egrep
3350
3351
3352echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3353echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3354if test "${ac_cv_header_stdc+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357 cat >conftest.$ac_ext <<_ACEOF
3358#line $LINENO "configure"
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
3364#include <stdlib.h>
3365#include <stdarg.h>
3366#include <string.h>
3367#include <float.h>
3368
3369int
3370main ()
3371{
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext
3378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 ac_cv_header_stdc=yes
3390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394ac_cv_header_stdc=no
3395fi
3396rm -f conftest.$ac_objext conftest.$ac_ext
3397
3398if test $ac_cv_header_stdc = yes; then
3399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3400 cat >conftest.$ac_ext <<_ACEOF
3401#line $LINENO "configure"
3402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
3407#include <string.h>
3408
3409_ACEOF
3410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3411 $EGREP "memchr" >/dev/null 2>&1; then
3412 :
3413else
3414 ac_cv_header_stdc=no
3415fi
3416rm -f conftest*
3417
3418fi
3419
3420if test $ac_cv_header_stdc = yes; then
3421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3422 cat >conftest.$ac_ext <<_ACEOF
3423#line $LINENO "configure"
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429#include <stdlib.h>
3430
3431_ACEOF
3432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433 $EGREP "free" >/dev/null 2>&1; then
3434 :
3435else
3436 ac_cv_header_stdc=no
3437fi
3438rm -f conftest*
3439
3440fi
3441
3442if test $ac_cv_header_stdc = yes; then
3443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3444 if test "$cross_compiling" = yes; then
3445 :
3446else
3447 cat >conftest.$ac_ext <<_ACEOF
3448#line $LINENO "configure"
3449/* confdefs.h. */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h. */
3454#include <ctype.h>
3455#if ((' ' & 0x0FF) == 0x020)
3456# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3457# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3458#else
3459# define ISLOWER(c) \
3460 (('a' <= (c) && (c) <= 'i') \
3461 || ('j' <= (c) && (c) <= 'r') \
3462 || ('s' <= (c) && (c) <= 'z'))
3463# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3464#endif
3465
3466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3467int
3468main ()
3469{
3470 int i;
3471 for (i = 0; i < 256; i++)
3472 if (XOR (islower (i), ISLOWER (i))
3473 || toupper (i) != TOUPPER (i))
3474 exit(2);
3475 exit (0);
3476}
3477_ACEOF
3478rm -f conftest$ac_exeext
3479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3480 (eval $ac_link) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 :
3490else
3491 echo "$as_me: program exited with status $ac_status" >&5
3492echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495( exit $ac_status )
3496ac_cv_header_stdc=no
3497fi
3498rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3499fi
3500fi
3501fi
3502echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3503echo "${ECHO_T}$ac_cv_header_stdc" >&6
3504if test $ac_cv_header_stdc = yes; then
3505
3506cat >>confdefs.h <<\_ACEOF
3507#define STDC_HEADERS 1
3508_ACEOF
3509
3510fi
3511
3512# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3523 inttypes.h stdint.h unistd.h
3524do
3525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3526echo "$as_me:$LINENO: checking for $ac_header" >&5
3527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3528if eval "test \"\${$as_ac_Header+set}\" = set"; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531 cat >conftest.$ac_ext <<_ACEOF
3532#line $LINENO "configure"
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
3537/* end confdefs.h. */
3538$ac_includes_default
3539
3540#include <$ac_header>
3541_ACEOF
3542rm -f conftest.$ac_objext
3543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -s conftest.$ac_objext'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3554 eval "$as_ac_Header=yes"
3555else
3556 echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559eval "$as_ac_Header=no"
3560fi
3561rm -f conftest.$ac_objext conftest.$ac_ext
3562fi
3563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3565if test `eval echo '${'$as_ac_Header'}'` = yes; then
3566 cat >>confdefs.h <<_ACEOF
3567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3568_ACEOF
3569
3570fi
3571
3572done
3573
3574
3575
3576for ac_header in dlfcn.h
3577do
3578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3579if eval "test \"\${$as_ac_Header+set}\" = set"; then
3580 echo "$as_me:$LINENO: checking for $ac_header" >&5
3581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3582if eval "test \"\${$as_ac_Header+set}\" = set"; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584fi
3585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3587else
3588 # Is the header compilable?
3589echo "$as_me:$LINENO: checking $ac_header usability" >&5
3590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3591cat >conftest.$ac_ext <<_ACEOF
3592#line $LINENO "configure"
3593/* confdefs.h. */
3594_ACEOF
3595cat confdefs.h >>conftest.$ac_ext
3596cat >>conftest.$ac_ext <<_ACEOF
3597/* end confdefs.h. */
3598$ac_includes_default
3599#include <$ac_header>
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_header_compiler=yes
3614else
3615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618ac_header_compiler=no
3619fi
3620rm -f conftest.$ac_objext conftest.$ac_ext
3621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3622echo "${ECHO_T}$ac_header_compiler" >&6
3623
3624# Is the header present?
3625echo "$as_me:$LINENO: checking $ac_header presence" >&5
3626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3627cat >conftest.$ac_ext <<_ACEOF
3628#line $LINENO "configure"
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634#include <$ac_header>
3635_ACEOF
3636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3638 ac_status=$?
3639 grep -v '^ *+' conftest.er1 >conftest.err
3640 rm -f conftest.er1
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null; then
3644 if test -s conftest.err; then
3645 ac_cpp_err=$ac_c_preproc_warn_flag
3646 else
3647 ac_cpp_err=
3648 fi
3649else
3650 ac_cpp_err=yes
3651fi
3652if test -z "$ac_cpp_err"; then
3653 ac_header_preproc=yes
3654else
3655 echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 ac_header_preproc=no
3659fi
3660rm -f conftest.err conftest.$ac_ext
3661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3662echo "${ECHO_T}$ac_header_preproc" >&6
3663
3664# So? What about this header?
3665case $ac_header_compiler:$ac_header_preproc in
3666 yes:no )
3667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3671 (
3672 cat <<\_ASBOX
3673## ------------------------------------ ##
3674## Report this to bug-autoconf@gnu.org. ##
3675## ------------------------------------ ##
3676_ASBOX
3677 ) |
3678 sed "s/^/$as_me: WARNING: /" >&2
3679 ;;
3680 no:yes )
3681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3687 (
3688 cat <<\_ASBOX
3689## ------------------------------------ ##
3690## Report this to bug-autoconf@gnu.org. ##
3691## ------------------------------------ ##
3692_ASBOX
3693 ) |
3694 sed "s/^/$as_me: WARNING: /" >&2
3695 ;;
drh71eb93e2001-09-28 01:34:43 +00003696esac
a.rottmann84e63352003-03-24 09:42:16 +00003697echo "$as_me:$LINENO: checking for $ac_header" >&5
3698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3699if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
a.rottmann84e63352003-03-24 09:42:16 +00003702 eval "$as_ac_Header=$ac_header_preproc"
3703fi
3704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3706
3707fi
3708if test `eval echo '${'$as_ac_Header'}'` = yes; then
3709 cat >>confdefs.h <<_ACEOF
3710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3711_ACEOF
3712
3713fi
3714
drh71eb93e2001-09-28 01:34:43 +00003715done
3716
drh71eb93e2001-09-28 01:34:43 +00003717
drh71eb93e2001-09-28 01:34:43 +00003718
drh71eb93e2001-09-28 01:34:43 +00003719
drh71eb93e2001-09-28 01:34:43 +00003720
drh71eb93e2001-09-28 01:34:43 +00003721
3722# Only perform the check for file, if the check method requires it
3723case $deplibs_check_method in
3724file_magic*)
3725 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
a.rottmann84e63352003-03-24 09:42:16 +00003726 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh71eb93e2001-09-28 01:34:43 +00003727echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3728if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else
3731 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003732 /*)
drh71eb93e2001-09-28 01:34:43 +00003733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3734 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003735 ?:/*)
3736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3737 ;;
3738 *)
3739 ac_save_MAGIC_CMD="$MAGIC_CMD"
3740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3741 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003742 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003743 test -z "$ac_dir" && ac_dir=.
3744 if test -f $ac_dir/${ac_tool_prefix}file; then
3745 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3746 if test -n "$file_magic_test_file"; then
3747 case $deplibs_check_method in
3748 "file_magic "*)
3749 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3752 egrep "$file_magic_regex" > /dev/null; then
3753 :
3754 else
3755 cat <<EOF 1>&2
3756
3757*** Warning: the command libtool uses to detect shared libraries,
3758*** $file_magic_cmd, produces output that libtool cannot recognize.
3759*** The result is that libtool may fail to recognize shared libraries
3760*** as such. This will affect the creation of libtool libraries that
3761*** depend on shared libraries, but programs linked with such libtool
3762*** libraries will work regardless of this problem. Nevertheless, you
3763*** may want to report the problem to your system manager and/or to
3764*** bug-libtool@gnu.org
3765
3766EOF
3767 fi ;;
3768 esac
3769 fi
3770 break
3771 fi
3772 done
a.rottmann84e63352003-03-24 09:42:16 +00003773 IFS="$ac_save_ifs"
3774 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003775 ;;
3776esac
3777fi
3778
3779MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3780if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003781 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003782echo "${ECHO_T}$MAGIC_CMD" >&6
3783else
a.rottmann84e63352003-03-24 09:42:16 +00003784 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003785echo "${ECHO_T}no" >&6
3786fi
3787
3788if test -z "$lt_cv_path_MAGIC_CMD"; then
3789 if test -n "$ac_tool_prefix"; then
a.rottmann84e63352003-03-24 09:42:16 +00003790 echo "$as_me:$LINENO: checking for file" >&5
drh71eb93e2001-09-28 01:34:43 +00003791echo $ECHO_N "checking for file... $ECHO_C" >&6
3792if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003796 /*)
drh71eb93e2001-09-28 01:34:43 +00003797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3798 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003799 ?:/*)
3800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3801 ;;
3802 *)
3803 ac_save_MAGIC_CMD="$MAGIC_CMD"
3804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3805 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003806 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003807 test -z "$ac_dir" && ac_dir=.
3808 if test -f $ac_dir/file; then
3809 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3810 if test -n "$file_magic_test_file"; then
3811 case $deplibs_check_method in
3812 "file_magic "*)
3813 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3816 egrep "$file_magic_regex" > /dev/null; then
3817 :
3818 else
3819 cat <<EOF 1>&2
3820
3821*** Warning: the command libtool uses to detect shared libraries,
3822*** $file_magic_cmd, produces output that libtool cannot recognize.
3823*** The result is that libtool may fail to recognize shared libraries
3824*** as such. This will affect the creation of libtool libraries that
3825*** depend on shared libraries, but programs linked with such libtool
3826*** libraries will work regardless of this problem. Nevertheless, you
3827*** may want to report the problem to your system manager and/or to
3828*** bug-libtool@gnu.org
3829
3830EOF
3831 fi ;;
3832 esac
3833 fi
3834 break
3835 fi
3836 done
a.rottmann84e63352003-03-24 09:42:16 +00003837 IFS="$ac_save_ifs"
3838 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003839 ;;
3840esac
3841fi
3842
3843MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3844if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003845 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003846echo "${ECHO_T}$MAGIC_CMD" >&6
3847else
a.rottmann84e63352003-03-24 09:42:16 +00003848 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003849echo "${ECHO_T}no" >&6
3850fi
3851
3852 else
3853 MAGIC_CMD=:
3854 fi
3855fi
3856
3857 fi
3858 ;;
3859esac
3860
a.rottmann84e63352003-03-24 09:42:16 +00003861if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3864echo "$as_me:$LINENO: checking for $ac_word" >&5
3865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866if test "${ac_cv_prog_RANLIB+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868else
3869 if test -n "$RANLIB"; then
3870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884done
3885
3886fi
3887fi
3888RANLIB=$ac_cv_prog_RANLIB
3889if test -n "$RANLIB"; then
3890 echo "$as_me:$LINENO: result: $RANLIB" >&5
3891echo "${ECHO_T}$RANLIB" >&6
3892else
3893 echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895fi
3896
3897fi
3898if test -z "$ac_cv_prog_RANLIB"; then
3899 ac_ct_RANLIB=$RANLIB
3900 # Extract the first word of "ranlib", so it can be a program name with args.
3901set dummy ranlib; ac_word=$2
3902echo "$as_me:$LINENO: checking for $ac_word" >&5
3903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907 if test -n "$ac_ct_RANLIB"; then
3908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_ac_ct_RANLIB="ranlib"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921done
3922done
3923
3924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3925fi
3926fi
3927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3928if test -n "$ac_ct_RANLIB"; then
3929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3930echo "${ECHO_T}$ac_ct_RANLIB" >&6
3931else
3932 echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
3934fi
3935
3936 RANLIB=$ac_ct_RANLIB
3937else
3938 RANLIB="$ac_cv_prog_RANLIB"
3939fi
3940
3941if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943set dummy ${ac_tool_prefix}strip; ac_word=$2
3944echo "$as_me:$LINENO: checking for $ac_word" >&5
3945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946if test "${ac_cv_prog_STRIP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 if test -n "$STRIP"; then
3950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964done
3965
3966fi
3967fi
3968STRIP=$ac_cv_prog_STRIP
3969if test -n "$STRIP"; then
3970 echo "$as_me:$LINENO: result: $STRIP" >&5
3971echo "${ECHO_T}$STRIP" >&6
3972else
3973 echo "$as_me:$LINENO: result: no" >&5
3974echo "${ECHO_T}no" >&6
3975fi
3976
3977fi
3978if test -z "$ac_cv_prog_STRIP"; then
3979 ac_ct_STRIP=$STRIP
3980 # Extract the first word of "strip", so it can be a program name with args.
3981set dummy strip; ac_word=$2
3982echo "$as_me:$LINENO: checking for $ac_word" >&5
3983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 if test -n "$ac_ct_STRIP"; then
3988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_ac_ct_STRIP="strip"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001done
4002done
4003
4004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4005fi
4006fi
4007ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4008if test -n "$ac_ct_STRIP"; then
4009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4010echo "${ECHO_T}$ac_ct_STRIP" >&6
4011else
4012 echo "$as_me:$LINENO: result: no" >&5
4013echo "${ECHO_T}no" >&6
4014fi
4015
4016 STRIP=$ac_ct_STRIP
4017else
4018 STRIP="$ac_cv_prog_STRIP"
4019fi
4020
4021
drh71eb93e2001-09-28 01:34:43 +00004022enable_dlopen=no
4023enable_win32_dll=no
4024
4025# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4026if test "${enable_libtool_lock+set}" = set; then
4027 enableval="$enable_libtool_lock"
4028
4029fi;
4030test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4031
a.rottmann84e63352003-03-24 09:42:16 +00004032# Some flags need to be propagated to the compiler or linker for good
4033# libtool support.
4034case $host in
4035*-*-irix6*)
4036 # Find out which ABI we are using.
4037 echo '#line 4037 "configure"' > conftest.$ac_ext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; then
4043 case `/usr/bin/file conftest.$ac_objext` in
4044 *32-bit*)
4045 LD="${LD-ld} -32"
4046 ;;
4047 *N32*)
4048 LD="${LD-ld} -n32"
4049 ;;
4050 *64-bit*)
4051 LD="${LD-ld} -64"
4052 ;;
4053 esac
4054 fi
4055 rm -rf conftest*
4056 ;;
4057
4058*-*-sco3.2v5*)
4059 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4060 SAVE_CFLAGS="$CFLAGS"
4061 CFLAGS="$CFLAGS -belf"
4062 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4063echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4064if test "${lt_cv_cc_needs_belf+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067
4068
4069 ac_ext=c
4070ac_cpp='$CPP $CPPFLAGS'
4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075 cat >conftest.$ac_ext <<_ACEOF
4076#line $LINENO "configure"
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext conftest$ac_exeext
4092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093 (eval $ac_link) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -s conftest$ac_exeext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 lt_cv_cc_needs_belf=yes
4104else
4105 echo "$as_me: failed program was:" >&5
4106sed 's/^/| /' conftest.$ac_ext >&5
4107
4108lt_cv_cc_needs_belf=no
4109fi
4110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4111 ac_ext=c
4112ac_cpp='$CPP $CPPFLAGS'
4113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116
4117fi
4118echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4119echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4120 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4121 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4122 CFLAGS="$SAVE_CFLAGS"
4123 fi
4124 ;;
4125
4126
4127esac
4128
4129# Sed substitution that helps us do robust quoting. It backslashifies
4130# metacharacters that are still active within double-quoted strings.
4131Xsed='sed -e s/^X//'
4132sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4133
4134# Same as above, but do not quote variable references.
4135double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4136
4137# Sed substitution to delay expansion of an escaped shell variable in a
4138# double_quote_subst'ed string.
4139delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4140
4141# Constants:
4142rm="rm -f"
4143
4144# Global variables:
4145default_ofile=libtool
4146can_build_shared=yes
4147
4148# All known linkers require a `.a' archive for static linking (except M$VC,
4149# which needs '.lib').
4150libext=a
4151ltmain="$ac_aux_dir/ltmain.sh"
4152ofile="$default_ofile"
4153with_gnu_ld="$lt_cv_prog_gnu_ld"
4154need_locks="$enable_libtool_lock"
4155
4156old_CC="$CC"
4157old_CFLAGS="$CFLAGS"
4158
4159# Set sane defaults for various variables
4160test -z "$AR" && AR=ar
4161test -z "$AR_FLAGS" && AR_FLAGS=cru
4162test -z "$AS" && AS=as
4163test -z "$CC" && CC=cc
4164test -z "$DLLTOOL" && DLLTOOL=dlltool
4165test -z "$LD" && LD=ld
4166test -z "$LN_S" && LN_S="ln -s"
4167test -z "$MAGIC_CMD" && MAGIC_CMD=file
4168test -z "$NM" && NM=nm
4169test -z "$OBJDUMP" && OBJDUMP=objdump
4170test -z "$RANLIB" && RANLIB=:
4171test -z "$STRIP" && STRIP=:
4172test -z "$ac_objext" && ac_objext=o
4173
4174if test x"$host" != x"$build"; then
4175 ac_tool_prefix=${host_alias}-
4176else
4177 ac_tool_prefix=
4178fi
4179
4180# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4181case $host_os in
4182linux-gnu*) ;;
4183linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4184esac
4185
4186case $host_os in
4187aix3*)
4188 # AIX sometimes has problems with the GCC collect2 program. For some
4189 # reason, if we set the COLLECT_NAMES environment variable, the problems
4190 # vanish in a puff of smoke.
4191 if test "X${COLLECT_NAMES+set}" != Xset; then
4192 COLLECT_NAMES=
4193 export COLLECT_NAMES
4194 fi
4195 ;;
4196esac
4197
4198# Determine commands to create old-style static archives.
4199old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4200old_postinstall_cmds='chmod 644 $oldlib'
4201old_postuninstall_cmds=
4202
4203if test -n "$RANLIB"; then
4204 case $host_os in
4205 openbsd*)
4206 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4207 ;;
4208 *)
4209 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4210 ;;
4211 esac
4212 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4213fi
4214
4215# Allow CC to be a program name with arguments.
4216set dummy $CC
4217compiler="$2"
4218
4219echo "$as_me:$LINENO: checking for objdir" >&5
4220echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4221rm -f .libs 2>/dev/null
4222mkdir .libs 2>/dev/null
4223if test -d .libs; then
4224 objdir=.libs
4225else
4226 # MS-DOS does not allow filenames that begin with a dot.
4227 objdir=_libs
4228fi
4229rmdir .libs 2>/dev/null
4230echo "$as_me:$LINENO: result: $objdir" >&5
4231echo "${ECHO_T}$objdir" >&6
4232
4233
4234
drh71eb93e2001-09-28 01:34:43 +00004235# Check whether --with-pic or --without-pic was given.
4236if test "${with_pic+set}" = set; then
4237 withval="$with_pic"
4238 pic_mode="$withval"
4239else
4240 pic_mode=default
4241fi;
4242test -z "$pic_mode" && pic_mode=default
4243
a.rottmann84e63352003-03-24 09:42:16 +00004244# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4245# in isolation, and that seeing it set (from the cache) indicates that
4246# the associated values are set (in the cache) correctly too.
4247echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh71eb93e2001-09-28 01:34:43 +00004248echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004249if test "${lt_cv_prog_cc_pic+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251else
4252 lt_cv_prog_cc_pic=
4253 lt_cv_prog_cc_shlib=
4254 lt_cv_prog_cc_wl=
4255 lt_cv_prog_cc_static=
4256 lt_cv_prog_cc_no_builtin=
4257 lt_cv_prog_cc_can_build_shared=$can_build_shared
4258
drh71eb93e2001-09-28 01:34:43 +00004259 if test "$GCC" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00004260 lt_cv_prog_cc_wl='-Wl,'
4261 lt_cv_prog_cc_static='-static'
drh71eb93e2001-09-28 01:34:43 +00004262
4263 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004264 aix*)
4265 # Below there is a dirty hack to force normal static linking with -ldl
4266 # The problem is because libdl dynamically linked with both libc and
4267 # libC (AIX C++ library), which obviously doesn't included in libraries
4268 # list by gcc. This cause undefined symbols with -static flags.
4269 # This hack allows C programs to be linked with "-static -ldl", but
4270 # not sure about C++ programs.
4271 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
drh71eb93e2001-09-28 01:34:43 +00004272 ;;
drh71eb93e2001-09-28 01:34:43 +00004273 amigaos*)
4274 # FIXME: we need at least 68020 code to build shared libraries, but
4275 # adding the `-m68020' flag to GCC prevents building anything better,
4276 # like `-m68040'.
a.rottmann84e63352003-03-24 09:42:16 +00004277 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00004278 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004279 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004280 # PIC is the default for these OSes.
4281 ;;
drh71eb93e2001-09-28 01:34:43 +00004282 darwin* | rhapsody*)
4283 # PIC is the default on this platform
4284 # Common symbols not allowed in MH_DYLIB files
a.rottmann84e63352003-03-24 09:42:16 +00004285 lt_cv_prog_cc_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00004286 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004287 cygwin* | mingw* | pw32* | os2*)
4288 # This hack is so that the source file can tell whether it is being
4289 # built for inclusion in a dll (and should export symbols for example).
4290 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004291 ;;
drh71eb93e2001-09-28 01:34:43 +00004292 sysv4*MP*)
4293 if test -d /usr/nec; then
a.rottmann84e63352003-03-24 09:42:16 +00004294 lt_cv_prog_cc_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00004295 fi
4296 ;;
drh71eb93e2001-09-28 01:34:43 +00004297 *)
a.rottmann84e63352003-03-24 09:42:16 +00004298 lt_cv_prog_cc_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00004299 ;;
4300 esac
4301 else
a.rottmann84e63352003-03-24 09:42:16 +00004302 # PORTME Check for PIC flags for the system compiler.
drh71eb93e2001-09-28 01:34:43 +00004303 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004304 aix3* | aix4* | aix5*)
4305 lt_cv_prog_cc_wl='-Wl,'
4306 # All AIX code is PIC.
drh71eb93e2001-09-28 01:34:43 +00004307 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00004308 # AIX 5 now supports IA64 processor
4309 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004310 else
a.rottmann84e63352003-03-24 09:42:16 +00004311 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00004312 fi
4313 ;;
4314
a.rottmann84e63352003-03-24 09:42:16 +00004315 hpux9* | hpux10* | hpux11*)
4316 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4317 lt_cv_prog_cc_wl='-Wl,'
4318 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4319 lt_cv_prog_cc_pic='+Z'
4320 ;;
4321
4322 irix5* | irix6* | nonstopux*)
4323 lt_cv_prog_cc_wl='-Wl,'
4324 lt_cv_prog_cc_static='-non_shared'
4325 # PIC (with -KPIC) is the default.
4326 ;;
4327
drh71eb93e2001-09-28 01:34:43 +00004328 cygwin* | mingw* | pw32* | os2*)
4329 # This hack is so that the source file can tell whether it is being
4330 # built for inclusion in a dll (and should export symbols for example).
a.rottmann84e63352003-03-24 09:42:16 +00004331 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004332 ;;
4333
4334 newsos6)
a.rottmann84e63352003-03-24 09:42:16 +00004335 lt_cv_prog_cc_pic='-KPIC'
4336 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004337 ;;
4338
4339 osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004340 # All OSF/1 code is PIC.
a.rottmann84e63352003-03-24 09:42:16 +00004341 lt_cv_prog_cc_wl='-Wl,'
4342 lt_cv_prog_cc_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00004343 ;;
4344
4345 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00004346 lt_cv_prog_cc_pic='-Kpic'
4347 lt_cv_prog_cc_static='-dn'
4348 lt_cv_prog_cc_shlib='-belf'
drh71eb93e2001-09-28 01:34:43 +00004349 ;;
4350
4351 solaris*)
a.rottmann84e63352003-03-24 09:42:16 +00004352 lt_cv_prog_cc_pic='-KPIC'
4353 lt_cv_prog_cc_static='-Bstatic'
4354 lt_cv_prog_cc_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00004355 ;;
4356
4357 sunos4*)
a.rottmann84e63352003-03-24 09:42:16 +00004358 lt_cv_prog_cc_pic='-PIC'
4359 lt_cv_prog_cc_static='-Bstatic'
4360 lt_cv_prog_cc_wl='-Qoption ld '
drh71eb93e2001-09-28 01:34:43 +00004361 ;;
4362
4363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann84e63352003-03-24 09:42:16 +00004364 lt_cv_prog_cc_pic='-KPIC'
4365 lt_cv_prog_cc_static='-Bstatic'
4366 lt_cv_prog_cc_wl='-Wl,'
4367 ;;
4368
4369 uts4*)
4370 lt_cv_prog_cc_pic='-pic'
4371 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004372 ;;
4373
4374 sysv4*MP*)
4375 if test -d /usr/nec ;then
a.rottmann84e63352003-03-24 09:42:16 +00004376 lt_cv_prog_cc_pic='-Kconform_pic'
4377 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004378 fi
4379 ;;
4380
drh71eb93e2001-09-28 01:34:43 +00004381 *)
a.rottmann84e63352003-03-24 09:42:16 +00004382 lt_cv_prog_cc_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00004383 ;;
4384 esac
4385 fi
4386
a.rottmann84e63352003-03-24 09:42:16 +00004387fi
drh71eb93e2001-09-28 01:34:43 +00004388
a.rottmann84e63352003-03-24 09:42:16 +00004389if test -z "$lt_cv_prog_cc_pic"; then
4390 echo "$as_me:$LINENO: result: none" >&5
4391echo "${ECHO_T}none" >&6
4392else
4393 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4394echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4395
4396 # Check to make sure the pic_flag actually works.
4397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4398echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4399 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
a.rottmann84e63352003-03-24 09:42:16 +00004402 save_CFLAGS="$CFLAGS"
4403 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4404 cat >conftest.$ac_ext <<_ACEOF
4405#line $LINENO "configure"
4406/* confdefs.h. */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004411
a.rottmann84e63352003-03-24 09:42:16 +00004412int
4413main ()
4414{
drh71eb93e2001-09-28 01:34:43 +00004415
a.rottmann84e63352003-03-24 09:42:16 +00004416 ;
4417 return 0;
4418}
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -s conftest.$ac_objext'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 case $host_os in
4433 hpux9* | hpux10* | hpux11*)
4434 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4435 # they create non-PIC objects. So, if there were any warnings, we
4436 # assume that PIC is not supported.
4437 if test -s conftest.err; then
4438 lt_cv_prog_cc_pic_works=no
4439 else
4440 lt_cv_prog_cc_pic_works=yes
4441 fi
4442 ;;
4443 *)
4444 lt_cv_prog_cc_pic_works=yes
4445 ;;
4446 esac
4447
drh71eb93e2001-09-28 01:34:43 +00004448else
a.rottmann84e63352003-03-24 09:42:16 +00004449 echo "$as_me: failed program was:" >&5
4450sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 lt_cv_prog_cc_pic_works=no
drh71eb93e2001-09-28 01:34:43 +00004453
4454fi
a.rottmann84e63352003-03-24 09:42:16 +00004455rm -f conftest.$ac_objext conftest.$ac_ext
4456 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00004457
a.rottmann84e63352003-03-24 09:42:16 +00004458fi
4459
4460
4461 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4462 lt_cv_prog_cc_pic=
4463 lt_cv_prog_cc_can_build_shared=no
4464 else
4465 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4466 fi
4467
4468 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4469echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4470fi
4471
4472# Check for any special shared library compilation flags.
4473if test -n "$lt_cv_prog_cc_shlib"; then
4474 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4475echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4476 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4477 else
4478 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4479echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4480 lt_cv_prog_cc_can_build_shared=no
4481 fi
4482fi
4483
4484echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4485echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4486if test "${lt_cv_prog_cc_static_works+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489 lt_cv_prog_cc_static_works=no
4490 save_LDFLAGS="$LDFLAGS"
4491 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4492 cat >conftest.$ac_ext <<_ACEOF
4493#line $LINENO "configure"
4494/* confdefs.h. */
4495_ACEOF
4496cat confdefs.h >>conftest.$ac_ext
4497cat >>conftest.$ac_ext <<_ACEOF
4498/* end confdefs.h. */
4499
4500int
4501main ()
4502{
4503
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.$ac_objext conftest$ac_exeext
4509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510 (eval $ac_link) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest$ac_exeext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 lt_cv_prog_cc_static_works=yes
4521else
4522 echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525fi
4526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4527 LDFLAGS="$save_LDFLAGS"
4528
4529fi
4530
4531
4532# Belt *and* braces to stop my trousers falling down:
4533test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4534echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4535echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4536
4537pic_flag="$lt_cv_prog_cc_pic"
4538special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4539wl="$lt_cv_prog_cc_wl"
4540link_static_flag="$lt_cv_prog_cc_static"
4541no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4542can_build_shared="$lt_cv_prog_cc_can_build_shared"
4543
4544
4545# Check to see if options -o and -c are simultaneously supported by compiler
4546echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00004547echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004548if test "${lt_cv_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
drh71eb93e2001-09-28 01:34:43 +00004551
a.rottmann84e63352003-03-24 09:42:16 +00004552$rm -r conftest 2>/dev/null
4553mkdir conftest
4554cd conftest
4555echo "int some_variable = 0;" > conftest.$ac_ext
4556mkdir out
4557# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4558# that will create temporary files in the current directory regardless of
4559# the output directory. Thus, making CWD read-only will cause this test
4560# to fail, enabling locking or at least warning the user not to do parallel
4561# builds.
4562chmod -w .
4563save_CFLAGS="$CFLAGS"
4564CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4565compiler_c_o=no
4566if { (eval echo configure:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4567 # The compiler can only warn and ignore the option if not recognized
4568 # So say no if there are warnings
4569 if test -s out/conftest.err; then
4570 lt_cv_compiler_c_o=no
4571 else
4572 lt_cv_compiler_c_o=yes
4573 fi
4574else
4575 # Append any errors to the config.log.
4576 cat out/conftest.err 1>&5
4577 lt_cv_compiler_c_o=no
4578fi
4579CFLAGS="$save_CFLAGS"
4580chmod u+w .
4581$rm conftest* out/*
4582rmdir out
4583cd ..
4584rmdir conftest
4585$rm -r conftest 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00004586
4587fi
drh71eb93e2001-09-28 01:34:43 +00004588
a.rottmann84e63352003-03-24 09:42:16 +00004589compiler_c_o=$lt_cv_compiler_c_o
4590echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4591echo "${ECHO_T}$compiler_c_o" >&6
4592
4593if test x"$compiler_c_o" = x"yes"; then
4594 # Check to see if we can write to a .lo
4595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4596echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4597 if test "${lt_cv_compiler_o_lo+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600
4601 lt_cv_compiler_o_lo=no
4602 save_CFLAGS="$CFLAGS"
4603 CFLAGS="$CFLAGS -c -o conftest.lo"
4604 save_objext="$ac_objext"
4605 ac_objext=lo
4606 cat >conftest.$ac_ext <<_ACEOF
4607#line $LINENO "configure"
4608/* confdefs.h. */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h. */
4613
4614int
4615main ()
4616{
4617int some_variable = 0;
4618 ;
4619 return 0;
4620}
4621_ACEOF
4622rm -f conftest.$ac_objext
4623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 # The compiler can only warn and ignore the option if not recognized
4635 # So say no if there are warnings
4636 if test -s conftest.err; then
4637 lt_cv_compiler_o_lo=no
4638 else
4639 lt_cv_compiler_o_lo=yes
4640 fi
4641
4642else
4643 echo "$as_me: failed program was:" >&5
4644sed 's/^/| /' conftest.$ac_ext >&5
4645
4646fi
4647rm -f conftest.$ac_objext conftest.$ac_ext
4648 ac_objext="$save_objext"
4649 CFLAGS="$save_CFLAGS"
4650
4651fi
4652
4653 compiler_o_lo=$lt_cv_compiler_o_lo
4654 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4655echo "${ECHO_T}$compiler_o_lo" >&6
4656else
4657 compiler_o_lo=no
4658fi
4659
4660# Check to see if we can do hard links to lock some files if needed
drh71eb93e2001-09-28 01:34:43 +00004661hard_links="nottested"
a.rottmann84e63352003-03-24 09:42:16 +00004662if test "$compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00004663 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00004664 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00004665echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4666 hard_links=yes
4667 $rm conftest*
4668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4669 touch conftest.a
4670 ln conftest.a conftest.b 2>&5 || hard_links=no
4671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00004672 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00004673echo "${ECHO_T}$hard_links" >&6
4674 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00004675 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00004676echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4677 need_locks=warn
4678 fi
4679else
4680 need_locks=no
4681fi
4682
a.rottmann84e63352003-03-24 09:42:16 +00004683if test "$GCC" = yes; then
4684 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4685 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4686echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4687 echo "int some_variable = 0;" > conftest.$ac_ext
4688 save_CFLAGS="$CFLAGS"
4689 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4690 compiler_rtti_exceptions=no
4691 cat >conftest.$ac_ext <<_ACEOF
4692#line $LINENO "configure"
4693/* confdefs.h. */
4694_ACEOF
4695cat confdefs.h >>conftest.$ac_ext
4696cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004698
a.rottmann84e63352003-03-24 09:42:16 +00004699int
4700main ()
4701{
4702int some_variable = 0;
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest.$ac_objext
4708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 # The compiler can only warn and ignore the option if not recognized
4720 # So say no if there are warnings
4721 if test -s conftest.err; then
4722 compiler_rtti_exceptions=no
4723 else
4724 compiler_rtti_exceptions=yes
drh71eb93e2001-09-28 01:34:43 +00004725 fi
a.rottmann84e63352003-03-24 09:42:16 +00004726
4727else
4728 echo "$as_me: failed program was:" >&5
4729sed 's/^/| /' conftest.$ac_ext >&5
4730
4731fi
4732rm -f conftest.$ac_objext conftest.$ac_ext
4733 CFLAGS="$save_CFLAGS"
4734 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4735echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4736
4737 if test "$compiler_rtti_exceptions" = "yes"; then
4738 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4739 else
4740 no_builtin_flag=' -fno-builtin'
4741 fi
4742fi
4743
4744# See if the linker supports building shared libraries.
4745echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4746echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4747
4748allow_undefined_flag=
4749no_undefined_flag=
4750need_lib_prefix=unknown
4751need_version=unknown
4752# when you set need_version to no, make sure it does not cause -set_version
4753# flags to be left without arguments
4754archive_cmds=
4755archive_expsym_cmds=
4756old_archive_from_new_cmds=
4757old_archive_from_expsyms_cmds=
4758export_dynamic_flag_spec=
4759whole_archive_flag_spec=
4760thread_safe_flag_spec=
4761hardcode_into_libs=no
4762hardcode_libdir_flag_spec=
4763hardcode_libdir_separator=
4764hardcode_direct=no
4765hardcode_minus_L=no
4766hardcode_shlibpath_var=unsupported
4767runpath_var=
4768link_all_deplibs=unknown
4769always_export_symbols=no
4770export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4771# include_expsyms should be a list of space-separated symbols to be *always*
4772# included in the symbol list
4773include_expsyms=
4774# exclude_expsyms can be an egrep regular expression of symbols to exclude
4775# it will be wrapped by ` (' and `)$', so one must not match beginning or
4776# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4777# as well as any symbol that contains `d'.
4778exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4779# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4780# platforms (ab)use it in PIC code, but their linkers get confused if
4781# the symbol is explicitly referenced. Since portable code cannot
4782# rely on this symbol name, it's probably fine to never include it in
4783# preloaded symbol tables.
4784extract_expsyms_cmds=
4785
4786case $host_os in
4787cygwin* | mingw* | pw32*)
4788 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4789 # When not using gcc, we currently assume that we are using
4790 # Microsoft Visual C++.
4791 if test "$GCC" != yes; then
drh71eb93e2001-09-28 01:34:43 +00004792 with_gnu_ld=no
a.rottmann84e63352003-03-24 09:42:16 +00004793 fi
4794 ;;
4795openbsd*)
4796 with_gnu_ld=no
4797 ;;
4798esac
drh71eb93e2001-09-28 01:34:43 +00004799
a.rottmann84e63352003-03-24 09:42:16 +00004800ld_shlibs=yes
4801if test "$with_gnu_ld" = yes; then
4802 # If archive_cmds runs LD, not CC, wlarc should be empty
4803 wlarc='${wl}'
drh71eb93e2001-09-28 01:34:43 +00004804
a.rottmann84e63352003-03-24 09:42:16 +00004805 # See if GNU ld supports shared libraries.
4806 case $host_os in
4807 aix3* | aix4* | aix5*)
4808 # On AIX, the GNU linker is very broken
4809 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4810 ld_shlibs=no
4811 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004812
4813*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4814*** to be unable to reliably create shared libraries on AIX.
4815*** Therefore, libtool is disabling shared libraries support. If you
4816*** really care for shared libraries, you may want to modify your PATH
4817*** so that a non-GNU linker is found, and then restart.
4818
4819EOF
a.rottmann84e63352003-03-24 09:42:16 +00004820 ;;
drh71eb93e2001-09-28 01:34:43 +00004821
a.rottmann84e63352003-03-24 09:42:16 +00004822 amigaos*)
4823 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)'
4824 hardcode_libdir_flag_spec='-L$libdir'
4825 hardcode_minus_L=yes
drh71eb93e2001-09-28 01:34:43 +00004826
a.rottmann84e63352003-03-24 09:42:16 +00004827 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4828 # that the semantics of dynamic libraries on AmigaOS, at least up
4829 # to version 4, is to share data among multiple programs linked
4830 # with the same dynamic library. Since this doesn't match the
4831 # behavior of shared libraries on other platforms, we can use
4832 # them.
4833 ld_shlibs=no
4834 ;;
drh71eb93e2001-09-28 01:34:43 +00004835
a.rottmann84e63352003-03-24 09:42:16 +00004836 beos*)
4837 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004838 allow_undefined_flag=unsupported
a.rottmann84e63352003-03-24 09:42:16 +00004839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4840 # support --undefined. This deserves some investigation. FIXME
4841 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4842 else
4843 ld_shlibs=no
4844 fi
4845 ;;
drh71eb93e2001-09-28 01:34:43 +00004846
a.rottmann84e63352003-03-24 09:42:16 +00004847 cygwin* | mingw* | pw32*)
4848 # hardcode_libdir_flag_spec is actually meaningless, as there is
4849 # no search path for DLLs.
4850 hardcode_libdir_flag_spec='-L$libdir'
4851 allow_undefined_flag=unsupported
4852 always_export_symbols=yes
drh71eb93e2001-09-28 01:34:43 +00004853
a.rottmann84e63352003-03-24 09:42:16 +00004854 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4855 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4856 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4857 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4858 else $CC -o impgen impgen.c ; fi)~
4859 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
drh71eb93e2001-09-28 01:34:43 +00004860
a.rottmann84e63352003-03-24 09:42:16 +00004861 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
drh71eb93e2001-09-28 01:34:43 +00004862
a.rottmann84e63352003-03-24 09:42:16 +00004863 # cygwin and mingw dlls have different entry points and sets of symbols
4864 # to exclude.
4865 # FIXME: what about values for MSVC?
4866 dll_entry=__cygwin_dll_entry@12
4867 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4868 case $host_os in
4869 mingw*)
4870 # mingw values
4871 dll_entry=_DllMainCRTStartup@12
4872 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4873 ;;
4874 esac
drh71eb93e2001-09-28 01:34:43 +00004875
a.rottmann84e63352003-03-24 09:42:16 +00004876 # mingw and cygwin differ, and it's simplest to just exclude the union
4877 # of the two symbol sets.
4878 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4879
4880 # recent cygwin and mingw systems supply a stub DllMain which the user
4881 # can override, but on older systems we have to supply one (in ltdll.c)
4882 if test "x$lt_cv_need_dllmain" = "xyes"; then
4883 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4884 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~
4885 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4886 else
4887 ltdll_obj=
4888 ltdll_cmds=
4889 fi
4890
4891 # Extract the symbol export list from an `--export-all' def file,
4892 # then regenerate the def file from the symbol export list, so that
4893 # the compiled dll only exports the symbol export list.
4894 # Be careful not to strip the DATA tag left be newer dlltools.
4895 export_symbols_cmds="$ltdll_cmds"'
4896 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4897 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4898
4899 # If the export-symbols file already is a .def file (1st line
4900 # is EXPORTS), use it as is.
4901 # If DATA tags from a recent dlltool are present, honour them!
4902 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4903 cp $export_symbols $output_objdir/$soname-def;
drh71eb93e2001-09-28 01:34:43 +00004904 else
a.rottmann84e63352003-03-24 09:42:16 +00004905 echo EXPORTS > $output_objdir/$soname-def;
4906 _lt_hint=1;
4907 cat $export_symbols | while read symbol; do
4908 set dummy \$symbol;
4909 case \$# in
4910 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4911 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4912 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4913 esac;
4914 _lt_hint=`expr 1 + \$_lt_hint`;
4915 done;
4916 fi~
4917 '"$ltdll_cmds"'
4918 $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~
4919 $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~
4920 $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~
4921 $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~
4922 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4923 ;;
drh71eb93e2001-09-28 01:34:43 +00004924
a.rottmann84e63352003-03-24 09:42:16 +00004925 netbsd*)
4926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4927 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4928 wlarc=
4929 else
4930 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4931 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4932 fi
4933 ;;
drh71eb93e2001-09-28 01:34:43 +00004934
a.rottmann84e63352003-03-24 09:42:16 +00004935 solaris* | sysv5*)
4936 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4937 ld_shlibs=no
4938 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004939
4940*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4941*** create shared libraries on Solaris systems. Therefore, libtool
4942*** is disabling shared libraries support. We urge you to upgrade GNU
4943*** binutils to release 2.9.1 or newer. Another option is to modify
4944*** your PATH or compiler configuration so that the native linker is
4945*** used, and then restart.
4946
4947EOF
a.rottmann84e63352003-03-24 09:42:16 +00004948 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4950 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4951 else
4952 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00004953 fi
a.rottmann84e63352003-03-24 09:42:16 +00004954 ;;
4955
4956 sunos4*)
4957 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4958 wlarc=
4959 hardcode_direct=yes
4960 hardcode_shlibpath_var=no
4961 ;;
4962
4963 *)
4964 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4967 else
4968 ld_shlibs=no
4969 fi
4970 ;;
4971 esac
4972
4973 if test "$ld_shlibs" = yes; then
4974 runpath_var=LD_RUN_PATH
4975 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4976 export_dynamic_flag_spec='${wl}--export-dynamic'
drh71eb93e2001-09-28 01:34:43 +00004977 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00004978 cygwin* | mingw* | pw32*)
a.rottmann84e63352003-03-24 09:42:16 +00004979 # dlltool doesn't understand --whole-archive et. al.
4980 whole_archive_flag_spec=
drh71eb93e2001-09-28 01:34:43 +00004981 ;;
drh71eb93e2001-09-28 01:34:43 +00004982 *)
a.rottmann84e63352003-03-24 09:42:16 +00004983 # ancient GNU ld didn't support --whole-archive et. al.
4984 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4985 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4986 else
4987 whole_archive_flag_spec=
4988 fi
drh71eb93e2001-09-28 01:34:43 +00004989 ;;
4990 esac
4991 fi
a.rottmann84e63352003-03-24 09:42:16 +00004992else
4993 # PORTME fill in a description of your system's linker (not GNU ld)
4994 case $host_os in
4995 aix3*)
4996 allow_undefined_flag=unsupported
4997 always_export_symbols=yes
4998 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'
4999 # Note: this linker hardcodes the directories in LIBPATH if there
5000 # are no directories specified by -L.
5001 hardcode_minus_L=yes
5002 if test "$GCC" = yes && test -z "$link_static_flag"; then
5003 # Neither direct hardcoding nor static linking is supported with a
5004 # broken collect2.
5005 hardcode_direct=unsupported
drh71eb93e2001-09-28 01:34:43 +00005006 fi
a.rottmann84e63352003-03-24 09:42:16 +00005007 ;;
5008
5009 aix4* | aix5*)
5010 if test "$host_cpu" = ia64; then
5011 # On IA64, the linker does run time linking by default, so we don't
5012 # have to do anything special.
5013 aix_use_runtimelinking=no
5014 exp_sym_flag='-Bexport'
5015 no_entry_flag=""
5016 else
5017 aix_use_runtimelinking=no
5018
5019 # Test if we are trying to use run time linking or normal
5020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5021 # need to do runtime linking.
5022 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5023 for ld_flag in $LDFLAGS; do
5024 case $ld_flag in
5025 *-brtl*)
5026 aix_use_runtimelinking=yes
5027 break
5028 ;;
5029 esac
5030 done
5031 esac
5032
5033 exp_sym_flag='-bexport'
5034 no_entry_flag='-bnoentry'
5035 fi
5036
5037 # When large executables or shared objects are built, AIX ld can
5038 # have problems creating the table of contents. If linking a library
5039 # or program results in "error TOC overflow" add -mminimal-toc to
5040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5042
5043 hardcode_direct=yes
5044 archive_cmds=''
5045 hardcode_libdir_separator=':'
5046 if test "$GCC" = yes; then
5047 case $host_os in aix4.[012]|aix4.[012].*)
5048 collect2name=`${CC} -print-prog-name=collect2`
5049 if test -f "$collect2name" && \
5050 strings "$collect2name" | grep resolve_lib_name >/dev/null
5051 then
5052 # We have reworked collect2
5053 hardcode_direct=yes
5054 else
5055 # We have old collect2
5056 hardcode_direct=unsupported
5057 # It fails to find uninstalled libraries when the uninstalled
5058 # path is not listed in the libpath. Setting hardcode_minus_L
5059 # to unsupported forces relinking
5060 hardcode_minus_L=yes
5061 hardcode_libdir_flag_spec='-L$libdir'
5062 hardcode_libdir_separator=
5063 fi
5064 esac
5065
5066 shared_flag='-shared'
5067 else
5068 # not using gcc
5069 if test "$host_cpu" = ia64; then
5070 shared_flag='${wl}-G'
5071 else
5072 if test "$aix_use_runtimelinking" = yes; then
5073 shared_flag='${wl}-G'
5074 else
5075 shared_flag='${wl}-bM:SRE'
5076 fi
5077 fi
5078 fi
5079
5080 # It seems that -bexpall can do strange things, so it is better to
5081 # generate a list of symbols to export.
5082 always_export_symbols=yes
5083 if test "$aix_use_runtimelinking" = yes; then
5084 # Warning - without using the other runtime loading flags (-brtl),
5085 # -berok will link without error, but may produce a broken library.
5086 allow_undefined_flag='-berok'
5087 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5088 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"
5089 else
5090 if test "$host_cpu" = ia64; then
5091 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5092 allow_undefined_flag="-z nodefs"
5093 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"
5094 else
5095 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5096 # Warning - without using the other run time loading flags,
5097 # -berok will link without error, but may produce a broken library.
5098 allow_undefined_flag='${wl}-berok'
5099 # This is a bit strange, but is similar to how AIX traditionally builds
5100 # it's shared libraries.
5101 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 $output_objdir/$libname$release.a $output_objdir/$soname'
5102 fi
5103 fi
5104 ;;
5105
5106 amigaos*)
5107 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)'
5108 hardcode_libdir_flag_spec='-L$libdir'
5109 hardcode_minus_L=yes
5110 # see comment about different semantics on the GNU ld section
5111 ld_shlibs=no
5112 ;;
5113
5114 cygwin* | mingw* | pw32*)
5115 # When not using gcc, we currently assume that we are using
5116 # Microsoft Visual C++.
5117 # hardcode_libdir_flag_spec is actually meaningless, as there is
5118 # no search path for DLLs.
5119 hardcode_libdir_flag_spec=' '
5120 allow_undefined_flag=unsupported
5121 # Tell ltmain to make .lib files, not .a files.
5122 libext=lib
5123 # FIXME: Setting linknames here is a bad hack.
5124 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5125 # The linker will automatically build a .lib file if we build a DLL.
5126 old_archive_from_new_cmds='true'
5127 # FIXME: Should let the user specify the lib program.
5128 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5129 fix_srcfile_path='`cygpath -w "$srcfile"`'
5130 ;;
5131
5132 darwin* | rhapsody*)
5133 case "$host_os" in
5134 rhapsody* | darwin1.[012])
5135 allow_undefined_flag='-undefined suppress'
5136 ;;
5137 *) # Darwin 1.3 on
5138 allow_undefined_flag='-flat_namespace -undefined suppress'
5139 ;;
5140 esac
5141 # FIXME: Relying on posixy $() will cause problems for
5142 # cross-compilation, but unfortunately the echo tests do not
5143 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5144 # `"' quotes if we put them in here... so don't!
5145 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)'
5146 # We need to add '_' to the symbols in $export_symbols first
5147 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5148 hardcode_direct=yes
5149 hardcode_shlibpath_var=no
5150 whole_archive_flag_spec='-all_load $convenience'
5151 ;;
5152
5153 freebsd1*)
5154 ld_shlibs=no
5155 ;;
5156
5157 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5158 # support. Future versions do this automatically, but an explicit c++rt0.o
5159 # does not break anything, and helps significantly (at the cost of a little
5160 # extra space).
5161 freebsd2.2*)
5162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5163 hardcode_libdir_flag_spec='-R$libdir'
5164 hardcode_direct=yes
5165 hardcode_shlibpath_var=no
5166 ;;
5167
5168 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5169 freebsd2*)
5170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5171 hardcode_direct=yes
5172 hardcode_minus_L=yes
5173 hardcode_shlibpath_var=no
5174 ;;
5175
5176 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5177 freebsd*)
5178 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5179 hardcode_libdir_flag_spec='-R$libdir'
5180 hardcode_direct=yes
5181 hardcode_shlibpath_var=no
5182 ;;
5183
5184 hpux9* | hpux10* | hpux11*)
5185 case $host_os in
5186 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' ;;
5187 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5188 esac
5189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5190 hardcode_libdir_separator=:
5191 hardcode_direct=yes
5192 hardcode_minus_L=yes # Not in the search PATH, but as the default
5193 # location of the library.
5194 export_dynamic_flag_spec='${wl}-E'
5195 ;;
5196
5197 irix5* | irix6* | nonstopux*)
5198 if test "$GCC" = yes; then
5199 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'
5200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5201 else
5202 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'
5203 hardcode_libdir_flag_spec='-rpath $libdir'
5204 fi
5205 hardcode_libdir_separator=:
5206 link_all_deplibs=yes
5207 ;;
5208
5209 netbsd*)
5210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5212 else
5213 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5214 fi
5215 hardcode_libdir_flag_spec='-R$libdir'
5216 hardcode_direct=yes
5217 hardcode_shlibpath_var=no
5218 ;;
5219
5220 newsos6)
5221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5222 hardcode_direct=yes
5223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5224 hardcode_libdir_separator=:
5225 hardcode_shlibpath_var=no
5226 ;;
5227
5228 openbsd*)
5229 hardcode_direct=yes
5230 hardcode_shlibpath_var=no
5231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5232 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5234 export_dynamic_flag_spec='${wl}-E'
5235 else
5236 case "$host_os" in
5237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5239 hardcode_libdir_flag_spec='-R$libdir'
5240 ;;
5241 *)
5242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5244 ;;
5245 esac
5246 fi
5247 ;;
5248
5249 os2*)
5250 hardcode_libdir_flag_spec='-L$libdir'
5251 hardcode_minus_L=yes
5252 allow_undefined_flag=unsupported
5253 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'
5254 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5255 ;;
5256
5257 osf3*)
5258 if test "$GCC" = yes; then
5259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5260 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'
5261 else
5262 allow_undefined_flag=' -expect_unresolved \*'
5263 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'
5264 fi
5265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5266 hardcode_libdir_separator=:
5267 ;;
5268
5269 osf4* | osf5*) # as osf3* with the addition of -msym flag
5270 if test "$GCC" = yes; then
5271 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5272 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'
5273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5274 else
5275 allow_undefined_flag=' -expect_unresolved \*'
5276 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'
5277 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5278 $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'
5279
5280 #Both c and cxx compiler support -rpath directly
5281 hardcode_libdir_flag_spec='-rpath $libdir'
5282 fi
5283 hardcode_libdir_separator=:
5284 ;;
5285
5286 sco3.2v5*)
5287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5288 hardcode_shlibpath_var=no
5289 runpath_var=LD_RUN_PATH
5290 hardcode_runpath_var=yes
5291 export_dynamic_flag_spec='${wl}-Bexport'
5292 ;;
5293
5294 solaris*)
5295 # gcc --version < 3.0 without binutils cannot create self contained
5296 # shared libraries reliably, requiring libgcc.a to resolve some of
5297 # the object symbols generated in some cases. Libraries that use
5298 # assert need libgcc.a to resolve __eprintf, for example. Linking
5299 # a copy of libgcc.a into every shared library to guarantee resolving
5300 # such symbols causes other problems: According to Tim Van Holder
5301 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5302 # (to the application) exception stack for one thing.
5303 no_undefined_flag=' -z defs'
5304 if test "$GCC" = yes; then
5305 case `$CC --version 2>/dev/null` in
5306 [12].*)
5307 cat <<EOF 1>&2
5308
5309*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5310*** create self contained shared libraries on Solaris systems, without
5311*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5312*** -no-undefined support, which will at least allow you to build shared
5313*** libraries. However, you may find that when you link such libraries
5314*** into an application without using GCC, you have to manually add
5315*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5316*** upgrade to a newer version of GCC. Another option is to rebuild your
5317*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5318
5319EOF
5320 no_undefined_flag=
5321 ;;
5322 esac
5323 fi
5324 # $CC -shared without GNU ld will not create a library from C++
5325 # object files and a static libstdc++, better avoid it by now
5326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5327 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5329 hardcode_libdir_flag_spec='-R$libdir'
5330 hardcode_shlibpath_var=no
5331 case $host_os in
5332 solaris2.[0-5] | solaris2.[0-5].*) ;;
5333 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5334 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5335 esac
5336 link_all_deplibs=yes
5337 ;;
5338
5339 sunos4*)
5340 if test "x$host_vendor" = xsequent; then
5341 # Use $CC to link under sequent, because it throws in some extra .o
5342 # files that make .init and .fini sections work.
5343 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5344 else
5345 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5346 fi
5347 hardcode_libdir_flag_spec='-L$libdir'
5348 hardcode_direct=yes
5349 hardcode_minus_L=yes
5350 hardcode_shlibpath_var=no
5351 ;;
5352
5353 sysv4)
5354 case $host_vendor in
5355 sni)
5356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5357 hardcode_direct=yes # is this really true???
5358 ;;
5359 siemens)
5360 ## LD is ld it makes a PLAMLIB
5361 ## CC just makes a GrossModule.
5362 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5363 reload_cmds='$CC -r -o $output$reload_objs'
5364 hardcode_direct=no
5365 ;;
5366 motorola)
5367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5368 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5369 ;;
5370 esac
5371 runpath_var='LD_RUN_PATH'
5372 hardcode_shlibpath_var=no
5373 ;;
5374
5375 sysv4.3*)
5376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5377 hardcode_shlibpath_var=no
5378 export_dynamic_flag_spec='-Bexport'
5379 ;;
5380
5381 sysv5*)
5382 no_undefined_flag=' -z text'
5383 # $CC -shared without GNU ld will not create a library from C++
5384 # object files and a static libstdc++, better avoid it by now
5385 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5386 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5387 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5388 hardcode_libdir_flag_spec=
5389 hardcode_shlibpath_var=no
5390 runpath_var='LD_RUN_PATH'
5391 ;;
5392
5393 uts4*)
5394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5395 hardcode_libdir_flag_spec='-L$libdir'
5396 hardcode_shlibpath_var=no
5397 ;;
5398
5399 dgux*)
5400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5401 hardcode_libdir_flag_spec='-L$libdir'
5402 hardcode_shlibpath_var=no
5403 ;;
5404
5405 sysv4*MP*)
5406 if test -d /usr/nec; then
5407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5408 hardcode_shlibpath_var=no
5409 runpath_var=LD_RUN_PATH
5410 hardcode_runpath_var=yes
5411 ld_shlibs=yes
5412 fi
5413 ;;
5414
5415 sysv4.2uw2*)
5416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5417 hardcode_direct=yes
5418 hardcode_minus_L=no
5419 hardcode_shlibpath_var=no
5420 hardcode_runpath_var=yes
5421 runpath_var=LD_RUN_PATH
5422 ;;
5423
5424 sysv5uw7* | unixware7*)
5425 no_undefined_flag='${wl}-z ${wl}text'
5426 if test "$GCC" = yes; then
5427 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5428 else
5429 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5430 fi
5431 runpath_var='LD_RUN_PATH'
5432 hardcode_shlibpath_var=no
5433 ;;
5434
5435 *)
5436 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00005437 ;;
5438 esac
5439fi
a.rottmann84e63352003-03-24 09:42:16 +00005440echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5441echo "${ECHO_T}$ld_shlibs" >&6
5442test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005443
a.rottmann84e63352003-03-24 09:42:16 +00005444# Check hardcoding attributes.
5445echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh71eb93e2001-09-28 01:34:43 +00005446echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5447hardcode_action=
5448if test -n "$hardcode_libdir_flag_spec" || \
a.rottmann84e63352003-03-24 09:42:16 +00005449 test -n "$runpath_var"; then
drh71eb93e2001-09-28 01:34:43 +00005450
5451 # We can hardcode non-existant directories.
5452 if test "$hardcode_direct" != no &&
5453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5454 # have to relink, otherwise we might link with an installed library
5455 # when we should be linking with a yet-to-be-installed one
a.rottmann84e63352003-03-24 09:42:16 +00005456 ## test "$hardcode_shlibpath_var" != no &&
drh71eb93e2001-09-28 01:34:43 +00005457 test "$hardcode_minus_L" != no; then
5458 # Linking always hardcodes the temporary library directory.
5459 hardcode_action=relink
5460 else
5461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5462 hardcode_action=immediate
5463 fi
5464else
5465 # We cannot hardcode anything, or else we can only hardcode existing
5466 # directories.
5467 hardcode_action=unsupported
5468fi
a.rottmann84e63352003-03-24 09:42:16 +00005469echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh71eb93e2001-09-28 01:34:43 +00005470echo "${ECHO_T}$hardcode_action" >&6
5471
drh71eb93e2001-09-28 01:34:43 +00005472striplib=
5473old_striplib=
a.rottmann84e63352003-03-24 09:42:16 +00005474echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh71eb93e2001-09-28 01:34:43 +00005475echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5476if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
a.rottmann84e63352003-03-24 09:42:16 +00005479 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00005480echo "${ECHO_T}yes" >&6
5481else
a.rottmann84e63352003-03-24 09:42:16 +00005482 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00005483echo "${ECHO_T}no" >&6
5484fi
5485
a.rottmann84e63352003-03-24 09:42:16 +00005486reload_cmds='$LD$reload_flag -o $output$reload_objs'
5487test -z "$deplibs_check_method" && deplibs_check_method=unknown
5488
5489# PORTME Fill in your ld.so characteristics
5490echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00005491echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5492library_names_spec=
5493libname_spec='lib$name'
5494soname_spec=
5495postinstall_cmds=
5496postuninstall_cmds=
5497finish_cmds=
5498finish_eval=
5499shlibpath_var=
5500shlibpath_overrides_runpath=unknown
5501version_type=none
5502dynamic_linker="$host_os ld.so"
5503sys_lib_dlsearch_path_spec="/lib /usr/lib"
5504sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
drh71eb93e2001-09-28 01:34:43 +00005505
5506case $host_os in
5507aix3*)
5508 version_type=linux
5509 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5510 shlibpath_var=LIBPATH
5511
a.rottmann84e63352003-03-24 09:42:16 +00005512 # AIX has no versioning support, so we append a major version to the name.
drh71eb93e2001-09-28 01:34:43 +00005513 soname_spec='${libname}${release}.so$major'
5514 ;;
5515
5516aix4* | aix5*)
5517 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00005518 need_lib_prefix=no
5519 need_version=no
5520 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005521 if test "$host_cpu" = ia64; then
5522 # AIX 5 supports IA64
5523 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5524 shlibpath_var=LD_LIBRARY_PATH
5525 else
5526 # With GCC up to 2.95.x, collect2 would create an import file
5527 # for dependence libraries. The import file would start with
5528 # the line `#! .'. This would cause the generated library to
5529 # depend on `.', always an invalid library. This was fixed in
5530 # development snapshots of GCC prior to 3.0.
5531 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005532 aix4 | aix4.[01] | aix4.[01].*)
5533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5534 echo ' yes '
5535 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5536 :
5537 else
5538 can_build_shared=no
5539 fi
5540 ;;
drh71eb93e2001-09-28 01:34:43 +00005541 esac
a.rottmann84e63352003-03-24 09:42:16 +00005542 # AIX (on Power*) has no versioning support, so currently we can
5543 # not hardcode correct soname into executable. Probably we can
5544 # add versioning support to collect2, so additional links can
5545 # be useful in future.
drh71eb93e2001-09-28 01:34:43 +00005546 if test "$aix_use_runtimelinking" = yes; then
5547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5548 # instead of lib<name>.a to let people know that these are not
5549 # typical AIX shared libraries.
5550 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5551 else
5552 # We preserve .a as extension for shared libraries through AIX4.2
5553 # and later when we are not doing run time linking.
5554 library_names_spec='${libname}${release}.a $libname.a'
5555 soname_spec='${libname}${release}.so$major'
5556 fi
5557 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00005558 fi
a.rottmann84e63352003-03-24 09:42:16 +00005559 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005560 ;;
5561
5562amigaos*)
5563 library_names_spec='$libname.ixlibrary $libname.a'
5564 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5565 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'
5566 ;;
5567
5568beos*)
5569 library_names_spec='${libname}.so'
5570 dynamic_linker="$host_os ld.so"
5571 shlibpath_var=LIBRARY_PATH
5572 ;;
5573
5574bsdi4*)
5575 version_type=linux
5576 need_version=no
5577 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5578 soname_spec='${libname}${release}.so$major'
5579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5580 shlibpath_var=LD_LIBRARY_PATH
5581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
a.rottmann84e63352003-03-24 09:42:16 +00005583 export_dynamic_flag_spec=-rdynamic
drh71eb93e2001-09-28 01:34:43 +00005584 # the default ld.so.conf also contains /usr/contrib/lib and
5585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5586 # libtool to hard-code these into programs
5587 ;;
5588
5589cygwin* | mingw* | pw32*)
5590 version_type=windows
5591 need_version=no
5592 need_lib_prefix=no
5593 case $GCC,$host_os in
5594 yes,cygwin*)
5595 library_names_spec='$libname.dll.a'
drh71eb93e2001-09-28 01:34:43 +00005596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5597 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5598 dldir=$destdir/`dirname \$dlpath`~
5599 test -d \$dldir || mkdir -p \$dldir~
5600 $install_prog .libs/$dlname \$dldir/$dlname'
5601 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5602 dlpath=$dir/\$dldll~
5603 $rm \$dlpath'
5604 ;;
5605 yes,mingw*)
5606 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
a.rottmann84e63352003-03-24 09:42:16 +00005607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
drh71eb93e2001-09-28 01:34:43 +00005608 ;;
5609 yes,pw32*)
5610 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5611 ;;
5612 *)
5613 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5614 ;;
5615 esac
5616 dynamic_linker='Win32 ld.exe'
5617 # FIXME: first we should search . and the directory the executable is in
5618 shlibpath_var=PATH
5619 ;;
5620
5621darwin* | rhapsody*)
5622 dynamic_linker="$host_os dyld"
5623 version_type=darwin
5624 need_lib_prefix=no
5625 need_version=no
5626 # FIXME: Relying on posixy $() will cause problems for
5627 # cross-compilation, but unfortunately the echo tests do not
5628 # yet detect zsh echo's removal of \ escapes.
5629 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)'
5630 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5631 shlibpath_overrides_runpath=yes
5632 shlibpath_var=DYLD_LIBRARY_PATH
5633 ;;
5634
a.rottmann84e63352003-03-24 09:42:16 +00005635freebsd1*)
5636 dynamic_linker=no
5637 ;;
5638
5639freebsd*-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005640 version_type=linux
5641 need_lib_prefix=no
5642 need_version=no
5643 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5644 soname_spec='${libname}${release}.so$major'
5645 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00005646 shlibpath_overrides_runpath=no
5647 hardcode_into_libs=yes
5648 dynamic_linker='GNU/FreeBSD ld.so'
drh71eb93e2001-09-28 01:34:43 +00005649 ;;
5650
5651freebsd*)
5652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5653 version_type=freebsd-$objformat
5654 case $version_type in
5655 freebsd-elf*)
5656 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5657 need_version=no
5658 need_lib_prefix=no
5659 ;;
5660 freebsd-*)
5661 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5662 need_version=yes
5663 ;;
5664 esac
5665 shlibpath_var=LD_LIBRARY_PATH
5666 case $host_os in
5667 freebsd2*)
5668 shlibpath_overrides_runpath=yes
5669 ;;
a.rottmann84e63352003-03-24 09:42:16 +00005670 *)
drh71eb93e2001-09-28 01:34:43 +00005671 shlibpath_overrides_runpath=no
5672 hardcode_into_libs=yes
5673 ;;
5674 esac
5675 ;;
5676
5677gnu*)
5678 version_type=linux
5679 need_lib_prefix=no
5680 need_version=no
5681 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5682 soname_spec='${libname}${release}.so$major'
5683 shlibpath_var=LD_LIBRARY_PATH
5684 hardcode_into_libs=yes
5685 ;;
5686
5687hpux9* | hpux10* | hpux11*)
5688 # Give a soname corresponding to the major version so that dld.sl refuses to
5689 # link against other versions.
a.rottmann84e63352003-03-24 09:42:16 +00005690 dynamic_linker="$host_os dld.sl"
drh71eb93e2001-09-28 01:34:43 +00005691 version_type=sunos
5692 need_lib_prefix=no
5693 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005694 shlibpath_var=SHLIB_PATH
5695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5696 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5697 soname_spec='${libname}${release}.sl$major'
drh71eb93e2001-09-28 01:34:43 +00005698 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5699 postinstall_cmds='chmod 555 $lib'
5700 ;;
5701
a.rottmann84e63352003-03-24 09:42:16 +00005702irix5* | irix6* | nonstopux*)
5703 case $host_os in
5704 nonstopux*) version_type=nonstopux ;;
5705 *) version_type=irix ;;
5706 esac
drh71eb93e2001-09-28 01:34:43 +00005707 need_lib_prefix=no
5708 need_version=no
5709 soname_spec='${libname}${release}.so$major'
5710 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5711 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005712 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00005713 libsuff= shlibsuff=
5714 ;;
5715 *)
5716 case $LD in # libtool.m4 will add one of these switches to LD
5717 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5718 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5719 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5720 *) libsuff= shlibsuff= libmagic=never-match;;
5721 esac
5722 ;;
5723 esac
5724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5725 shlibpath_overrides_runpath=no
5726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5728 ;;
5729
5730# No shared lib support for Linux oldld, aout, or coff.
a.rottmann84e63352003-03-24 09:42:16 +00005731linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
drh71eb93e2001-09-28 01:34:43 +00005732 dynamic_linker=no
5733 ;;
5734
5735# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00005736linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005737 version_type=linux
5738 need_lib_prefix=no
5739 need_version=no
5740 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5741 soname_spec='${libname}${release}.so$major'
5742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5743 shlibpath_var=LD_LIBRARY_PATH
5744 shlibpath_overrides_runpath=no
5745 # This implies no fast_install, which is unacceptable.
5746 # Some rework will be needed to allow for fast_install
5747 # before this can be enabled.
5748 hardcode_into_libs=yes
5749
5750 # We used to test for /lib/ld.so.1 and disable shared libraries on
5751 # powerpc, because MkLinux only supported shared libraries with the
5752 # GNU dynamic linker. Since this was broken with cross compilers,
5753 # most powerpc-linux boxes support dynamic linking these days and
5754 # people can always --disable-shared, the test was removed, and we
5755 # assume the GNU/Linux dynamic linker is in use.
5756 dynamic_linker='GNU/Linux ld.so'
5757 ;;
5758
5759netbsd*)
5760 version_type=sunos
5761 need_lib_prefix=no
5762 need_version=no
5763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5764 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5766 dynamic_linker='NetBSD (a.out) ld.so'
5767 else
5768 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5769 soname_spec='${libname}${release}.so$major'
5770 dynamic_linker='NetBSD ld.elf_so'
5771 fi
5772 shlibpath_var=LD_LIBRARY_PATH
5773 shlibpath_overrides_runpath=yes
5774 hardcode_into_libs=yes
5775 ;;
5776
5777newsos6)
5778 version_type=linux
5779 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5780 shlibpath_var=LD_LIBRARY_PATH
5781 shlibpath_overrides_runpath=yes
5782 ;;
5783
drh71eb93e2001-09-28 01:34:43 +00005784openbsd*)
5785 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00005786 need_lib_prefix=no
5787 need_version=no
5788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5789 case "$host_os" in
5790 openbsd2.[89] | openbsd2.[89].*)
5791 shlibpath_overrides_runpath=no
5792 ;;
5793 *)
5794 shlibpath_overrides_runpath=yes
5795 ;;
5796 esac
5797 else
5798 shlibpath_overrides_runpath=yes
5799 fi
drh71eb93e2001-09-28 01:34:43 +00005800 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5802 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00005803 ;;
5804
5805os2*)
5806 libname_spec='$name'
5807 need_lib_prefix=no
5808 library_names_spec='$libname.dll $libname.a'
5809 dynamic_linker='OS/2 ld.exe'
5810 shlibpath_var=LIBPATH
5811 ;;
5812
5813osf3* | osf4* | osf5*)
5814 version_type=osf
5815 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005816 need_lib_prefix=no
5817 soname_spec='${libname}${release}.so$major'
5818 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
drh71eb93e2001-09-28 01:34:43 +00005819 shlibpath_var=LD_LIBRARY_PATH
5820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
a.rottmann84e63352003-03-24 09:42:16 +00005822 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005823 ;;
5824
5825sco3.2v5*)
5826 version_type=osf
5827 soname_spec='${libname}${release}.so$major'
5828 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5829 shlibpath_var=LD_LIBRARY_PATH
5830 ;;
5831
5832solaris*)
5833 version_type=linux
5834 need_lib_prefix=no
5835 need_version=no
5836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5837 soname_spec='${libname}${release}.so$major'
5838 shlibpath_var=LD_LIBRARY_PATH
5839 shlibpath_overrides_runpath=yes
5840 hardcode_into_libs=yes
5841 # ldd complains unless libraries are executable
5842 postinstall_cmds='chmod +x $lib'
5843 ;;
5844
5845sunos4*)
5846 version_type=sunos
5847 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5849 shlibpath_var=LD_LIBRARY_PATH
5850 shlibpath_overrides_runpath=yes
5851 if test "$with_gnu_ld" = yes; then
5852 need_lib_prefix=no
5853 fi
5854 need_version=yes
5855 ;;
5856
5857sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5858 version_type=linux
5859 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5860 soname_spec='${libname}${release}.so$major'
5861 shlibpath_var=LD_LIBRARY_PATH
5862 case $host_vendor in
5863 sni)
5864 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00005865 need_lib_prefix=no
5866 export_dynamic_flag_spec='${wl}-Blargedynsym'
5867 runpath_var=LD_RUN_PATH
5868 ;;
5869 siemens)
5870 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00005871 ;;
5872 motorola)
5873 need_lib_prefix=no
5874 need_version=no
5875 shlibpath_overrides_runpath=no
5876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5877 ;;
5878 esac
5879 ;;
5880
a.rottmann84e63352003-03-24 09:42:16 +00005881uts4*)
5882 version_type=linux
5883 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5884 soname_spec='${libname}${release}.so$major'
5885 shlibpath_var=LD_LIBRARY_PATH
5886 ;;
5887
5888dgux*)
5889 version_type=linux
5890 need_lib_prefix=no
5891 need_version=no
5892 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5893 soname_spec='${libname}${release}.so$major'
5894 shlibpath_var=LD_LIBRARY_PATH
5895 ;;
5896
drh71eb93e2001-09-28 01:34:43 +00005897sysv4*MP*)
5898 if test -d /usr/nec ;then
5899 version_type=linux
5900 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5901 soname_spec='$libname.so.$major'
5902 shlibpath_var=LD_LIBRARY_PATH
5903 fi
5904 ;;
5905
drh71eb93e2001-09-28 01:34:43 +00005906*)
5907 dynamic_linker=no
5908 ;;
5909esac
a.rottmann84e63352003-03-24 09:42:16 +00005910echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00005911echo "${ECHO_T}$dynamic_linker" >&6
5912test "$dynamic_linker" = no && can_build_shared=no
5913
a.rottmann84e63352003-03-24 09:42:16 +00005914# Report the final consequences.
5915echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5916echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5917echo "$as_me:$LINENO: result: $can_build_shared" >&5
5918echo "${ECHO_T}$can_build_shared" >&6
5919
5920echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5921echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5922test "$can_build_shared" = "no" && enable_shared=no
5923
5924# On AIX, shared libraries and static libraries use the same namespace, and
5925# are all built from PIC.
5926case "$host_os" in
5927aix3*)
5928 test "$enable_shared" = yes && enable_static=no
5929 if test -n "$RANLIB"; then
5930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5931 postinstall_cmds='$RANLIB $lib'
5932 fi
5933 ;;
5934
5935aix4*)
5936 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5937 test "$enable_shared" = yes && enable_static=no
5938 fi
5939 ;;
5940esac
5941echo "$as_me:$LINENO: result: $enable_shared" >&5
5942echo "${ECHO_T}$enable_shared" >&6
5943
5944echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5945echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5946# Make sure either enable_shared or enable_static is yes.
5947test "$enable_shared" = yes || enable_static=yes
5948echo "$as_me:$LINENO: result: $enable_static" >&5
5949echo "${ECHO_T}$enable_static" >&6
5950
5951if test "$hardcode_action" = relink; then
5952 # Fast installation is not supported
5953 enable_fast_install=no
5954elif test "$shlibpath_overrides_runpath" = yes ||
5955 test "$enable_shared" = no; then
5956 # Fast installation is not necessary
5957 enable_fast_install=needless
5958fi
5959
5960variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5961if test "$GCC" = yes; then
5962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5963fi
5964
drh71eb93e2001-09-28 01:34:43 +00005965if test "x$enable_dlopen" != xyes; then
5966 enable_dlopen=unknown
5967 enable_dlopen_self=unknown
5968 enable_dlopen_self_static=unknown
5969else
5970 lt_cv_dlopen=no
5971 lt_cv_dlopen_libs=
5972
5973 case $host_os in
5974 beos*)
5975 lt_cv_dlopen="load_add_on"
5976 lt_cv_dlopen_libs=
5977 lt_cv_dlopen_self=yes
5978 ;;
5979
5980 cygwin* | mingw* | pw32*)
5981 lt_cv_dlopen="LoadLibrary"
5982 lt_cv_dlopen_libs=
5983 ;;
5984
5985 *)
a.rottmann84e63352003-03-24 09:42:16 +00005986 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00005987echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5988if test "${ac_cv_func_shl_load+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005992#line $LINENO "configure"
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005998/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00005999 which can conflict with char shl_load (); below.
6000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6001 <limits.h> exists even on freestanding compilers. */
6002#ifdef __STDC__
6003# include <limits.h>
6004#else
6005# include <assert.h>
6006#endif
drh71eb93e2001-09-28 01:34:43 +00006007/* Override any gcc2 internal prototype to avoid an error. */
6008#ifdef __cplusplus
6009extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00006010{
drh71eb93e2001-09-28 01:34:43 +00006011#endif
6012/* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6014char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00006015/* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018#if defined (__stub_shl_load) || defined (__stub___shl_load)
6019choke me
6020#else
a.rottmann84e63352003-03-24 09:42:16 +00006021char (*f) () = shl_load;
6022#endif
6023#ifdef __cplusplus
6024}
drh71eb93e2001-09-28 01:34:43 +00006025#endif
6026
a.rottmann84e63352003-03-24 09:42:16 +00006027int
6028main ()
6029{
6030return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00006031 ;
6032 return 0;
6033}
6034_ACEOF
6035rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006037 (eval $ac_link) 2>&5
6038 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006040 (exit $ac_status); } &&
6041 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006043 (eval $ac_try) 2>&5
6044 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006046 (exit $ac_status); }; }; then
6047 ac_cv_func_shl_load=yes
6048else
6049 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006050sed 's/^/| /' conftest.$ac_ext >&5
6051
drh71eb93e2001-09-28 01:34:43 +00006052ac_cv_func_shl_load=no
6053fi
6054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6055fi
a.rottmann84e63352003-03-24 09:42:16 +00006056echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006057echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6058if test $ac_cv_func_shl_load = yes; then
6059 lt_cv_dlopen="shl_load"
6060else
a.rottmann84e63352003-03-24 09:42:16 +00006061 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00006062echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6063if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 ac_check_lib_save_LIBS=$LIBS
6067LIBS="-ldld $LIBS"
6068cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006069#line $LINENO "configure"
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006075
6076/* Override any gcc2 internal prototype to avoid an error. */
6077#ifdef __cplusplus
6078extern "C"
6079#endif
6080/* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6082char shl_load ();
6083int
6084main ()
6085{
6086shl_load ();
6087 ;
6088 return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006093 (eval $ac_link) 2>&5
6094 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006096 (exit $ac_status); } &&
6097 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006099 (eval $ac_try) 2>&5
6100 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006102 (exit $ac_status); }; }; then
6103 ac_cv_lib_dld_shl_load=yes
6104else
6105 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006106sed 's/^/| /' conftest.$ac_ext >&5
6107
drh71eb93e2001-09-28 01:34:43 +00006108ac_cv_lib_dld_shl_load=no
6109fi
6110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6111LIBS=$ac_check_lib_save_LIBS
6112fi
a.rottmann84e63352003-03-24 09:42:16 +00006113echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006114echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6115if test $ac_cv_lib_dld_shl_load = yes; then
6116 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6117else
a.rottmann84e63352003-03-24 09:42:16 +00006118 echo "$as_me:$LINENO: checking for dlopen" >&5
6119echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6120if test "${ac_cv_func_dlopen+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123 cat >conftest.$ac_ext <<_ACEOF
6124#line $LINENO "configure"
6125/* confdefs.h. */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h. */
6130/* System header to define __stub macros and hopefully few prototypes,
6131 which can conflict with char dlopen (); below.
6132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6133 <limits.h> exists even on freestanding compilers. */
6134#ifdef __STDC__
6135# include <limits.h>
6136#else
6137# include <assert.h>
6138#endif
6139/* Override any gcc2 internal prototype to avoid an error. */
6140#ifdef __cplusplus
6141extern "C"
6142{
6143#endif
6144/* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146char dlopen ();
6147/* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150#if defined (__stub_dlopen) || defined (__stub___dlopen)
6151choke me
6152#else
6153char (*f) () = dlopen;
6154#endif
6155#ifdef __cplusplus
6156}
6157#endif
6158
6159int
6160main ()
6161{
6162return f != dlopen;
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
6168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 ac_cv_func_dlopen=yes
6180else
6181 echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184ac_cv_func_dlopen=no
6185fi
6186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187fi
6188echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6189echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6190if test $ac_cv_func_dlopen = yes; then
6191 lt_cv_dlopen="dlopen"
6192else
6193 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00006194echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6195if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 ac_check_lib_save_LIBS=$LIBS
6199LIBS="-ldl $LIBS"
6200cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006201#line $LINENO "configure"
6202/* confdefs.h. */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006207
6208/* Override any gcc2 internal prototype to avoid an error. */
6209#ifdef __cplusplus
6210extern "C"
6211#endif
6212/* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6214char dlopen ();
6215int
6216main ()
6217{
6218dlopen ();
6219 ;
6220 return 0;
6221}
6222_ACEOF
6223rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006225 (eval $ac_link) 2>&5
6226 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006231 (eval $ac_try) 2>&5
6232 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006234 (exit $ac_status); }; }; then
6235 ac_cv_lib_dl_dlopen=yes
6236else
6237 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006238sed 's/^/| /' conftest.$ac_ext >&5
6239
drh71eb93e2001-09-28 01:34:43 +00006240ac_cv_lib_dl_dlopen=no
6241fi
6242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6243LIBS=$ac_check_lib_save_LIBS
6244fi
a.rottmann84e63352003-03-24 09:42:16 +00006245echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006246echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6247if test $ac_cv_lib_dl_dlopen = yes; then
6248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6249else
a.rottmann84e63352003-03-24 09:42:16 +00006250 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00006251echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6252if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255 ac_check_lib_save_LIBS=$LIBS
6256LIBS="-lsvld $LIBS"
6257cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006258#line $LINENO "configure"
6259/* confdefs.h. */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006264
6265/* Override any gcc2 internal prototype to avoid an error. */
6266#ifdef __cplusplus
6267extern "C"
6268#endif
6269/* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6271char dlopen ();
6272int
6273main ()
6274{
6275dlopen ();
6276 ;
6277 return 0;
6278}
6279_ACEOF
6280rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006282 (eval $ac_link) 2>&5
6283 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006285 (exit $ac_status); } &&
6286 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006288 (eval $ac_try) 2>&5
6289 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006291 (exit $ac_status); }; }; then
6292 ac_cv_lib_svld_dlopen=yes
6293else
6294 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006295sed 's/^/| /' conftest.$ac_ext >&5
6296
drh71eb93e2001-09-28 01:34:43 +00006297ac_cv_lib_svld_dlopen=no
6298fi
6299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6300LIBS=$ac_check_lib_save_LIBS
6301fi
a.rottmann84e63352003-03-24 09:42:16 +00006302echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006303echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6304if test $ac_cv_lib_svld_dlopen = yes; then
6305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00006306else
6307 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6308echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6309if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 ac_check_lib_save_LIBS=$LIBS
6313LIBS="-ldld $LIBS"
6314cat >conftest.$ac_ext <<_ACEOF
6315#line $LINENO "configure"
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321
6322/* Override any gcc2 internal prototype to avoid an error. */
6323#ifdef __cplusplus
6324extern "C"
6325#endif
6326/* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328char dld_link ();
6329int
6330main ()
6331{
6332dld_link ();
6333 ;
6334 return 0;
6335}
6336_ACEOF
6337rm -f conftest.$ac_objext conftest$ac_exeext
6338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>&5
6340 ac_status=$?
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -s conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6349 ac_cv_lib_dld_dld_link=yes
6350else
6351 echo "$as_me: failed program was:" >&5
6352sed 's/^/| /' conftest.$ac_ext >&5
6353
6354ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00006355fi
a.rottmann84e63352003-03-24 09:42:16 +00006356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6357LIBS=$ac_check_lib_save_LIBS
6358fi
6359echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6360echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6361if test $ac_cv_lib_dld_dld_link = yes; then
6362 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6363fi
6364
drh71eb93e2001-09-28 01:34:43 +00006365
6366fi
6367
drh71eb93e2001-09-28 01:34:43 +00006368
6369fi
6370
a.rottmann84e63352003-03-24 09:42:16 +00006371
6372fi
6373
6374
6375fi
6376
6377
drh71eb93e2001-09-28 01:34:43 +00006378fi
6379
6380 ;;
6381 esac
6382
6383 if test "x$lt_cv_dlopen" != xno; then
6384 enable_dlopen=yes
6385 else
6386 enable_dlopen=no
6387 fi
6388
6389 case $lt_cv_dlopen in
6390 dlopen)
6391 save_CPPFLAGS="$CPPFLAGS"
a.rottmann84e63352003-03-24 09:42:16 +00006392 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00006393
6394 save_LDFLAGS="$LDFLAGS"
6395 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6396
6397 save_LIBS="$LIBS"
6398 LIBS="$lt_cv_dlopen_libs $LIBS"
6399
a.rottmann84e63352003-03-24 09:42:16 +00006400 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006401echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6402if test "${lt_cv_dlopen_self+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 if test "$cross_compiling" = yes; then :
6406 lt_cv_dlopen_self=cross
6407else
a.rottmann84e63352003-03-24 09:42:16 +00006408 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006409 lt_status=$lt_dlunknown
6410 cat > conftest.$ac_ext <<EOF
a.rottmann84e63352003-03-24 09:42:16 +00006411#line 6411 "configure"
drh71eb93e2001-09-28 01:34:43 +00006412#include "confdefs.h"
6413
6414#if HAVE_DLFCN_H
6415#include <dlfcn.h>
6416#endif
6417
6418#include <stdio.h>
6419
6420#ifdef RTLD_GLOBAL
6421# define LT_DLGLOBAL RTLD_GLOBAL
6422#else
6423# ifdef DL_GLOBAL
6424# define LT_DLGLOBAL DL_GLOBAL
6425# else
6426# define LT_DLGLOBAL 0
6427# endif
6428#endif
6429
6430/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6431 find out it does not work in some platform. */
6432#ifndef LT_DLLAZY_OR_NOW
6433# ifdef RTLD_LAZY
6434# define LT_DLLAZY_OR_NOW RTLD_LAZY
6435# else
6436# ifdef DL_LAZY
6437# define LT_DLLAZY_OR_NOW DL_LAZY
6438# else
6439# ifdef RTLD_NOW
6440# define LT_DLLAZY_OR_NOW RTLD_NOW
6441# else
6442# ifdef DL_NOW
6443# define LT_DLLAZY_OR_NOW DL_NOW
6444# else
6445# define LT_DLLAZY_OR_NOW 0
6446# endif
6447# endif
6448# endif
6449# endif
6450#endif
6451
6452#ifdef __cplusplus
6453extern "C" void exit (int);
6454#endif
6455
6456void fnord() { int i=42;}
6457int main ()
6458{
6459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6460 int status = $lt_dlunknown;
6461
6462 if (self)
6463 {
6464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6465 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6466 /* dlclose (self); */
6467 }
6468
6469 exit (status);
6470}
6471EOF
a.rottmann84e63352003-03-24 09:42:16 +00006472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006473 (eval $ac_link) 2>&5
6474 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006476 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6477 (./conftest; exit; ) 2>/dev/null
6478 lt_status=$?
6479 case x$lt_status in
6480 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6481 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6482 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6483 esac
6484 else :
6485 # compilation failed
6486 lt_cv_dlopen_self=no
6487 fi
6488fi
6489rm -fr conftest*
6490
a.rottmann84e63352003-03-24 09:42:16 +00006491
drh71eb93e2001-09-28 01:34:43 +00006492fi
a.rottmann84e63352003-03-24 09:42:16 +00006493echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00006494echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6495
6496 if test "x$lt_cv_dlopen_self" = xyes; then
6497 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00006498 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006499echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6500if test "${lt_cv_dlopen_self_static+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503 if test "$cross_compiling" = yes; then :
6504 lt_cv_dlopen_self_static=cross
6505else
a.rottmann84e63352003-03-24 09:42:16 +00006506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006507 lt_status=$lt_dlunknown
6508 cat > conftest.$ac_ext <<EOF
a.rottmann84e63352003-03-24 09:42:16 +00006509#line 6509 "configure"
drh71eb93e2001-09-28 01:34:43 +00006510#include "confdefs.h"
6511
6512#if HAVE_DLFCN_H
6513#include <dlfcn.h>
6514#endif
6515
6516#include <stdio.h>
6517
6518#ifdef RTLD_GLOBAL
6519# define LT_DLGLOBAL RTLD_GLOBAL
6520#else
6521# ifdef DL_GLOBAL
6522# define LT_DLGLOBAL DL_GLOBAL
6523# else
6524# define LT_DLGLOBAL 0
6525# endif
6526#endif
6527
6528/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6529 find out it does not work in some platform. */
6530#ifndef LT_DLLAZY_OR_NOW
6531# ifdef RTLD_LAZY
6532# define LT_DLLAZY_OR_NOW RTLD_LAZY
6533# else
6534# ifdef DL_LAZY
6535# define LT_DLLAZY_OR_NOW DL_LAZY
6536# else
6537# ifdef RTLD_NOW
6538# define LT_DLLAZY_OR_NOW RTLD_NOW
6539# else
6540# ifdef DL_NOW
6541# define LT_DLLAZY_OR_NOW DL_NOW
6542# else
6543# define LT_DLLAZY_OR_NOW 0
6544# endif
6545# endif
6546# endif
6547# endif
6548#endif
6549
6550#ifdef __cplusplus
6551extern "C" void exit (int);
6552#endif
6553
6554void fnord() { int i=42;}
6555int main ()
6556{
6557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6558 int status = $lt_dlunknown;
6559
6560 if (self)
6561 {
6562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6563 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6564 /* dlclose (self); */
6565 }
6566
6567 exit (status);
6568}
6569EOF
a.rottmann84e63352003-03-24 09:42:16 +00006570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006571 (eval $ac_link) 2>&5
6572 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006574 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6575 (./conftest; exit; ) 2>/dev/null
6576 lt_status=$?
6577 case x$lt_status in
6578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6580 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6581 esac
6582 else :
6583 # compilation failed
6584 lt_cv_dlopen_self_static=no
6585 fi
6586fi
6587rm -fr conftest*
6588
a.rottmann84e63352003-03-24 09:42:16 +00006589
drh71eb93e2001-09-28 01:34:43 +00006590fi
a.rottmann84e63352003-03-24 09:42:16 +00006591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00006592echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6593 fi
6594
6595 CPPFLAGS="$save_CPPFLAGS"
6596 LDFLAGS="$save_LDFLAGS"
6597 LIBS="$save_LIBS"
6598 ;;
6599 esac
6600
6601 case $lt_cv_dlopen_self in
6602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6603 *) enable_dlopen_self=unknown ;;
6604 esac
6605
6606 case $lt_cv_dlopen_self_static in
6607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6608 *) enable_dlopen_self_static=unknown ;;
6609 esac
6610fi
6611
drh71eb93e2001-09-28 01:34:43 +00006612
a.rottmann84e63352003-03-24 09:42:16 +00006613if test "$enable_shared" = yes && test "$GCC" = yes; then
6614 case $archive_cmds in
6615 *'~'*)
6616 # FIXME: we may have to deal with multi-command sequences.
6617 ;;
6618 '$CC '*)
6619 # Test whether the compiler implicitly links with -lc since on some
6620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6621 # to ld, don't add -lc before -lgcc.
6622 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6623echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6624 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627 $rm conftest*
6628 echo 'static int dummy;' > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006629
a.rottmann84e63352003-03-24 09:42:16 +00006630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631 (eval $ac_compile) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; then
6635 soname=conftest
6636 lib=conftest
6637 libobjs=conftest.$ac_objext
6638 deplibs=
6639 wl=$lt_cv_prog_cc_wl
6640 compiler_flags=-v
6641 linker_flags=-v
6642 verstring=
6643 output_objdir=.
6644 libname=conftest
6645 save_allow_undefined_flag=$allow_undefined_flag
6646 allow_undefined_flag=
6647 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6648 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }
6652 then
6653 lt_cv_archive_cmds_need_lc=no
6654 else
6655 lt_cv_archive_cmds_need_lc=yes
6656 fi
6657 allow_undefined_flag=$save_allow_undefined_flag
6658 else
6659 cat conftest.err 1>&5
6660 fi
6661fi
drh71eb93e2001-09-28 01:34:43 +00006662
a.rottmann84e63352003-03-24 09:42:16 +00006663 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6664echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6665 ;;
6666 esac
6667fi
6668need_lc=${lt_cv_archive_cmds_need_lc-yes}
drh71eb93e2001-09-28 01:34:43 +00006669
a.rottmann84e63352003-03-24 09:42:16 +00006670# The second clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00006671# libtool distribution, otherwise you forgot to ship ltmain.sh
6672# with your package, and you will get complaints that there are
6673# no rules to generate ltmain.sh.
6674if test -f "$ltmain"; then
a.rottmann84e63352003-03-24 09:42:16 +00006675 :
6676else
6677 # If there is no Makefile yet, we rely on a make rule to execute
6678 # `config.status --recheck' to rerun these tests and create the
6679 # libtool script then.
6680 test -f Makefile && make "$ltmain"
6681fi
6682
6683if test -f "$ltmain"; then
6684 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6685 $rm -f "${ofile}T"
6686
6687 echo creating $ofile
6688
drh71eb93e2001-09-28 01:34:43 +00006689 # Now quote all the things that may contain metacharacters while being
6690 # careful not to overquote the AC_SUBSTed values. We take copies of the
6691 # variables and quote the copies for generation of the libtool script.
a.rottmann84e63352003-03-24 09:42:16 +00006692 for var in echo old_CC old_CFLAGS SED \
6693 AR AR_FLAGS CC LD LN_S NM SHELL \
6694 reload_flag reload_cmds wl \
6695 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6696 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6697 library_names_spec soname_spec \
6698 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6699 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6700 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6701 old_striplib striplib file_magic_cmd export_symbols_cmds \
6702 deplibs_check_method allow_undefined_flag no_undefined_flag \
6703 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6704 global_symbol_to_c_name_address \
6705 hardcode_libdir_flag_spec hardcode_libdir_separator \
drh71eb93e2001-09-28 01:34:43 +00006706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann84e63352003-03-24 09:42:16 +00006707 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00006708
6709 case $var in
a.rottmann84e63352003-03-24 09:42:16 +00006710 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
drh71eb93e2001-09-28 01:34:43 +00006711 old_postinstall_cmds | old_postuninstall_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00006712 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6713 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6714 postinstall_cmds | postuninstall_cmds | \
6715 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00006716 # Double-quote double-evaled strings.
6717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6718 ;;
6719 *)
6720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6721 ;;
6722 esac
6723 done
6724
a.rottmann84e63352003-03-24 09:42:16 +00006725 cat <<__EOF__ > "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00006726#! $SHELL
6727
a.rottmann84e63352003-03-24 09:42:16 +00006728# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00006729# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6730# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6731#
a.rottmann84e63352003-03-24 09:42:16 +00006732# Copyright (C) 1996-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00006733# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6734#
6735# This program is free software; you can redistribute it and/or modify
6736# it under the terms of the GNU General Public License as published by
6737# the Free Software Foundation; either version 2 of the License, or
6738# (at your option) any later version.
6739#
6740# This program is distributed in the hope that it will be useful, but
6741# WITHOUT ANY WARRANTY; without even the implied warranty of
6742# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6743# General Public License for more details.
6744#
6745# You should have received a copy of the GNU General Public License
6746# along with this program; if not, write to the Free Software
6747# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6748#
6749# As a special exception to the GNU General Public License, if you
6750# distribute this file as part of a program that contains a
6751# configuration script generated by Autoconf, you may include it under
6752# the same distribution terms that you use for the rest of that program.
6753
a.rottmann84e63352003-03-24 09:42:16 +00006754# A sed that does not truncate output.
6755SED=$lt_SED
6756
drh71eb93e2001-09-28 01:34:43 +00006757# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann84e63352003-03-24 09:42:16 +00006758Xsed="${SED} -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00006759
6760# The HP-UX ksh and POSIX shell print the target directory to stdout
6761# if CDPATH is set.
6762if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6763
drh71eb93e2001-09-28 01:34:43 +00006764# ### BEGIN LIBTOOL CONFIG
6765
6766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6767
6768# Shell to use when invoking shell scripts.
6769SHELL=$lt_SHELL
6770
6771# Whether or not to build shared libraries.
6772build_libtool_libs=$enable_shared
6773
6774# Whether or not to build static libraries.
6775build_old_libs=$enable_static
6776
6777# Whether or not to add -lc for building shared libraries.
a.rottmann84e63352003-03-24 09:42:16 +00006778build_libtool_need_lc=$need_lc
drh71eb93e2001-09-28 01:34:43 +00006779
6780# Whether or not to optimize for fast installation.
6781fast_install=$enable_fast_install
6782
6783# The host system.
6784host_alias=$host_alias
6785host=$host
6786
6787# An echo program that does not interpret backslashes.
6788echo=$lt_echo
6789
6790# The archiver.
6791AR=$lt_AR
6792AR_FLAGS=$lt_AR_FLAGS
6793
a.rottmann84e63352003-03-24 09:42:16 +00006794# The default C compiler.
6795CC=$lt_CC
drh71eb93e2001-09-28 01:34:43 +00006796
6797# Is the compiler the GNU C compiler?
6798with_gcc=$GCC
6799
6800# The linker used to build libraries.
6801LD=$lt_LD
6802
6803# Whether we need hard or soft links.
6804LN_S=$lt_LN_S
6805
6806# A BSD-compatible nm program.
6807NM=$lt_NM
6808
6809# A symbol stripping program
6810STRIP=$STRIP
6811
6812# Used to examine libraries when file_magic_cmd begins "file"
6813MAGIC_CMD=$MAGIC_CMD
6814
6815# Used on cygwin: DLL creation program.
6816DLLTOOL="$DLLTOOL"
6817
6818# Used on cygwin: object dumper.
6819OBJDUMP="$OBJDUMP"
6820
6821# Used on cygwin: assembler.
6822AS="$AS"
6823
6824# The name of the directory that contains temporary libtool files.
6825objdir=$objdir
6826
6827# How to create reloadable object files.
6828reload_flag=$lt_reload_flag
6829reload_cmds=$lt_reload_cmds
6830
6831# How to pass a linker flag through the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00006832wl=$lt_wl
drh71eb93e2001-09-28 01:34:43 +00006833
6834# Object file suffix (normally "o").
6835objext="$ac_objext"
6836
6837# Old archive suffix (normally "a").
6838libext="$libext"
6839
6840# Executable file suffix (normally "").
6841exeext="$exeext"
6842
6843# Additional compiler flags for building library objects.
a.rottmann84e63352003-03-24 09:42:16 +00006844pic_flag=$lt_pic_flag
drh71eb93e2001-09-28 01:34:43 +00006845pic_mode=$pic_mode
6846
drh71eb93e2001-09-28 01:34:43 +00006847# Does compiler simultaneously support -c and -o options?
a.rottmann84e63352003-03-24 09:42:16 +00006848compiler_c_o=$lt_compiler_c_o
6849
6850# Can we write directly to a .lo ?
6851compiler_o_lo=$lt_compiler_o_lo
drh71eb93e2001-09-28 01:34:43 +00006852
6853# Must we lock files when doing compilation ?
6854need_locks=$lt_need_locks
6855
6856# Do we need the lib prefix for modules?
6857need_lib_prefix=$need_lib_prefix
6858
6859# Do we need a version for libraries?
6860need_version=$need_version
6861
6862# Whether dlopen is supported.
6863dlopen_support=$enable_dlopen
6864
6865# Whether dlopen of programs is supported.
6866dlopen_self=$enable_dlopen_self
6867
6868# Whether dlopen of statically linked programs is supported.
6869dlopen_self_static=$enable_dlopen_self_static
6870
6871# Compiler flag to prevent dynamic linking.
a.rottmann84e63352003-03-24 09:42:16 +00006872link_static_flag=$lt_link_static_flag
drh71eb93e2001-09-28 01:34:43 +00006873
6874# Compiler flag to turn off builtin functions.
a.rottmann84e63352003-03-24 09:42:16 +00006875no_builtin_flag=$lt_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00006876
6877# Compiler flag to allow reflexive dlopens.
6878export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6879
6880# Compiler flag to generate shared objects directly from archives.
6881whole_archive_flag_spec=$lt_whole_archive_flag_spec
6882
6883# Compiler flag to generate thread-safe objects.
6884thread_safe_flag_spec=$lt_thread_safe_flag_spec
6885
6886# Library versioning type.
6887version_type=$version_type
6888
6889# Format of library name prefix.
6890libname_spec=$lt_libname_spec
6891
6892# List of archive names. First name is the real one, the rest are links.
6893# The last name is the one that the linker finds with -lNAME.
6894library_names_spec=$lt_library_names_spec
6895
6896# The coded name of the library, if different from the real name.
6897soname_spec=$lt_soname_spec
6898
6899# Commands used to build and install an old-style archive.
6900RANLIB=$lt_RANLIB
6901old_archive_cmds=$lt_old_archive_cmds
6902old_postinstall_cmds=$lt_old_postinstall_cmds
6903old_postuninstall_cmds=$lt_old_postuninstall_cmds
6904
6905# Create an old-style archive from a shared archive.
6906old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6907
6908# Create a temporary old-style archive to link instead of a shared archive.
6909old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6910
6911# Commands used to build and install a shared archive.
6912archive_cmds=$lt_archive_cmds
6913archive_expsym_cmds=$lt_archive_expsym_cmds
6914postinstall_cmds=$lt_postinstall_cmds
6915postuninstall_cmds=$lt_postuninstall_cmds
6916
6917# Commands to strip libraries.
6918old_striplib=$lt_old_striplib
6919striplib=$lt_striplib
6920
drh71eb93e2001-09-28 01:34:43 +00006921# Method to check whether dependent libraries are shared objects.
6922deplibs_check_method=$lt_deplibs_check_method
6923
6924# Command to use when deplibs_check_method == file_magic.
6925file_magic_cmd=$lt_file_magic_cmd
6926
6927# Flag that allows shared libraries with undefined symbols to be built.
6928allow_undefined_flag=$lt_allow_undefined_flag
6929
6930# Flag that forces no undefined symbols.
6931no_undefined_flag=$lt_no_undefined_flag
6932
6933# Commands used to finish a libtool library installation in a directory.
6934finish_cmds=$lt_finish_cmds
6935
6936# Same as above, but a single script fragment to be evaled but not shown.
6937finish_eval=$lt_finish_eval
6938
6939# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann84e63352003-03-24 09:42:16 +00006940global_symbol_pipe=$lt_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00006941
6942# Transform the output of nm in a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00006943global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00006944
6945# Transform the output of nm in a C name address pair
a.rottmann84e63352003-03-24 09:42:16 +00006946global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00006947
6948# This is the shared library runtime path variable.
6949runpath_var=$runpath_var
6950
6951# This is the shared library path variable.
6952shlibpath_var=$shlibpath_var
6953
6954# Is shlibpath searched before the hard-coded library search path?
6955shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6956
6957# How to hardcode a shared library path into an executable.
6958hardcode_action=$hardcode_action
6959
6960# Whether we should hardcode library paths into libraries.
6961hardcode_into_libs=$hardcode_into_libs
6962
6963# Flag to hardcode \$libdir into a binary during linking.
6964# This must work even if \$libdir does not exist.
6965hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6966
6967# Whether we need a single -rpath flag with a separated argument.
6968hardcode_libdir_separator=$lt_hardcode_libdir_separator
6969
6970# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6971# resulting binary.
6972hardcode_direct=$hardcode_direct
6973
6974# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6975# resulting binary.
6976hardcode_minus_L=$hardcode_minus_L
6977
6978# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6979# the resulting binary.
6980hardcode_shlibpath_var=$hardcode_shlibpath_var
6981
6982# Variables whose values should be saved in libtool wrapper scripts and
6983# restored at relink time.
6984variables_saved_for_relink="$variables_saved_for_relink"
6985
6986# Whether libtool must link a program against all its dependency libraries.
6987link_all_deplibs=$link_all_deplibs
6988
6989# Compile-time system search path for libraries
6990sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6991
6992# Run-time system search path for libraries
6993sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6994
6995# Fix the shell variable \$srcfile for the compiler.
6996fix_srcfile_path="$fix_srcfile_path"
6997
6998# Set to yes if exported symbols are required.
6999always_export_symbols=$always_export_symbols
7000
7001# The commands to list exported symbols.
7002export_symbols_cmds=$lt_export_symbols_cmds
7003
7004# The commands to extract the exported symbol list from a shared archive.
7005extract_expsyms_cmds=$lt_extract_expsyms_cmds
7006
7007# Symbols that should not be listed in the preloaded symbols.
7008exclude_expsyms=$lt_exclude_expsyms
7009
7010# Symbols that must always be exported.
7011include_expsyms=$lt_include_expsyms
7012
7013# ### END LIBTOOL CONFIG
7014
7015__EOF__
7016
7017 case $host_os in
7018 aix3*)
a.rottmann84e63352003-03-24 09:42:16 +00007019 cat <<\EOF >> "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00007020
7021# AIX sometimes has problems with the GCC collect2 program. For some
7022# reason, if we set the COLLECT_NAMES environment variable, the problems
7023# vanish in a puff of smoke.
7024if test "X${COLLECT_NAMES+set}" != Xset; then
7025 COLLECT_NAMES=
7026 export COLLECT_NAMES
7027fi
7028EOF
7029 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007030 esac
drh71eb93e2001-09-28 01:34:43 +00007031
a.rottmann84e63352003-03-24 09:42:16 +00007032 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00007033 cygwin* | mingw* | pw32* | os2*)
a.rottmann84e63352003-03-24 09:42:16 +00007034 cat <<'EOF' >> "${ofile}T"
7035 # This is a source program that is used to create dlls on Windows
7036 # Don't remove nor modify the starting and closing comments
7037# /* ltdll.c starts here */
drh71eb93e2001-09-28 01:34:43 +00007038# #define WIN32_LEAN_AND_MEAN
7039# #include <windows.h>
7040# #undef WIN32_LEAN_AND_MEAN
7041# #include <stdio.h>
7042#
7043# #ifndef __CYGWIN__
7044# # ifdef __CYGWIN32__
7045# # define __CYGWIN__ __CYGWIN32__
7046# # endif
7047# #endif
7048#
7049# #ifdef __cplusplus
7050# extern "C" {
7051# #endif
7052# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7053# #ifdef __cplusplus
7054# }
7055# #endif
7056#
7057# #ifdef __CYGWIN__
7058# #include <cygwin/cygwin_dll.h>
7059# DECLARE_CYGWIN_DLL( DllMain );
7060# #endif
7061# HINSTANCE __hDllInstance_base;
7062#
7063# BOOL APIENTRY
7064# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7065# {
7066# __hDllInstance_base = hInst;
7067# return TRUE;
7068# }
7069# /* ltdll.c ends here */
a.rottmann84e63352003-03-24 09:42:16 +00007070 # This is a source program that is used to create import libraries
7071 # on Windows for dlls which lack them. Don't remove nor modify the
7072 # starting and closing comments
7073# /* impgen.c starts here */
7074# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00007075#
7076# This file is part of GNU libtool.
7077#
7078# This program is free software; you can redistribute it and/or modify
7079# it under the terms of the GNU General Public License as published by
7080# the Free Software Foundation; either version 2 of the License, or
7081# (at your option) any later version.
7082#
7083# This program is distributed in the hope that it will be useful,
7084# but WITHOUT ANY WARRANTY; without even the implied warranty of
7085# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7086# GNU General Public License for more details.
7087#
7088# You should have received a copy of the GNU General Public License
7089# along with this program; if not, write to the Free Software
7090# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7091# */
7092#
7093# #include <stdio.h> /* for printf() */
7094# #include <unistd.h> /* for open(), lseek(), read() */
7095# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7096# #include <string.h> /* for strdup() */
7097#
7098# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7099# #ifndef O_BINARY
7100# #define O_BINARY 0
7101# #endif
7102#
7103# static unsigned int
7104# pe_get16 (fd, offset)
7105# int fd;
7106# int offset;
7107# {
7108# unsigned char b[2];
7109# lseek (fd, offset, SEEK_SET);
7110# read (fd, b, 2);
7111# return b[0] + (b[1]<<8);
7112# }
7113#
7114# static unsigned int
7115# pe_get32 (fd, offset)
7116# int fd;
7117# int offset;
7118# {
7119# unsigned char b[4];
7120# lseek (fd, offset, SEEK_SET);
7121# read (fd, b, 4);
7122# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7123# }
7124#
7125# static unsigned int
7126# pe_as32 (ptr)
7127# void *ptr;
7128# {
7129# unsigned char *b = ptr;
7130# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7131# }
7132#
7133# int
7134# main (argc, argv)
7135# int argc;
7136# char *argv[];
7137# {
7138# int dll;
7139# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7140# unsigned long export_rva, export_size, nsections, secptr, expptr;
7141# unsigned long name_rvas, nexp;
7142# unsigned char *expdata, *erva;
7143# char *filename, *dll_name;
7144#
7145# filename = argv[1];
7146#
7147# dll = open(filename, O_RDONLY|O_BINARY);
7148# if (dll < 1)
7149# return 1;
7150#
7151# dll_name = filename;
7152#
7153# for (i=0; filename[i]; i++)
7154# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7155# dll_name = filename + i +1;
7156#
7157# pe_header_offset = pe_get32 (dll, 0x3c);
7158# opthdr_ofs = pe_header_offset + 4 + 20;
7159# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7160#
7161# if (num_entries < 1) /* no exports */
7162# return 1;
7163#
7164# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7165# export_size = pe_get32 (dll, opthdr_ofs + 100);
7166# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7167# secptr = (pe_header_offset + 4 + 20 +
7168# pe_get16 (dll, pe_header_offset + 4 + 16));
7169#
7170# expptr = 0;
7171# for (i = 0; i < nsections; i++)
7172# {
7173# char sname[8];
7174# unsigned long secptr1 = secptr + 40 * i;
7175# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7176# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7177# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7178# lseek(dll, secptr1, SEEK_SET);
7179# read(dll, sname, 8);
7180# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7181# {
7182# expptr = fptr + (export_rva - vaddr);
7183# if (export_rva + export_size > vaddr + vsize)
7184# export_size = vsize - (export_rva - vaddr);
7185# break;
7186# }
7187# }
7188#
7189# expdata = (unsigned char*)malloc(export_size);
7190# lseek (dll, expptr, SEEK_SET);
7191# read (dll, expdata, export_size);
7192# erva = expdata - export_rva;
7193#
7194# nexp = pe_as32 (expdata+24);
7195# name_rvas = pe_as32 (expdata+32);
7196#
7197# printf ("EXPORTS\n");
7198# for (i = 0; i<nexp; i++)
7199# {
7200# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7201# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7202# }
7203#
7204# return 0;
7205# }
7206# /* impgen.c ends here */
7207
7208EOF
7209 ;;
7210 esac
7211
7212 # We use sed instead of cat because bash on DJGPP gets confused if
7213 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7214 # text mode, it properly converts lines to CR/LF. This bash problem
7215 # is reportedly fixed, but why not run on old versions too?
a.rottmann84e63352003-03-24 09:42:16 +00007216 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00007217
a.rottmann84e63352003-03-24 09:42:16 +00007218 mv -f "${ofile}T" "$ofile" || \
7219 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
drh71eb93e2001-09-28 01:34:43 +00007220 chmod +x "$ofile"
drh71eb93e2001-09-28 01:34:43 +00007221fi
7222
drh71eb93e2001-09-28 01:34:43 +00007223
drh71eb93e2001-09-28 01:34:43 +00007224
drh71eb93e2001-09-28 01:34:43 +00007225
drh71eb93e2001-09-28 01:34:43 +00007226
7227# This can be used to rebuild libtool when needed
7228LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7229
7230# Always use our own libtool.
7231LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7232
7233# Prevent multiple expansion
7234
a.rottmann84e63352003-03-24 09:42:16 +00007235
drh71eb93e2001-09-28 01:34:43 +00007236# Find a good install program. We prefer a C program (faster),
7237# so one script is as good as another. But avoid the broken or
7238# incompatible versions:
7239# SysV /etc/install, /usr/sbin/install
7240# SunOS /usr/etc/install
7241# IRIX /sbin/install
7242# AIX /bin/install
7243# AmigaOS /C/install, which installs bootblocks on floppy discs
7244# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7245# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7246# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7247# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +00007248echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7249echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00007250if test -z "$INSTALL"; then
7251if test "${ac_cv_path_install+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253else
a.rottmann84e63352003-03-24 09:42:16 +00007254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 # Account for people who put trailing slashes in PATH elements.
7260case $as_dir/ in
7261 ./ | .// | /cC/* | \
7262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7263 /usr/ucb/* ) ;;
7264 *)
7265 # OSF1 and SCO ODT 3.0 have their own names for install.
7266 # Don't use installbsd from OSF since it installs stuff as root
7267 # by default.
7268 for ac_prog in ginstall scoinst install; do
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7271 if test $ac_prog = install &&
7272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7273 # AIX install. It has an incompatible calling convention.
7274 :
7275 elif test $ac_prog = install &&
7276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7277 # program-specific install script used by HP pwplus--don't use.
7278 :
7279 else
7280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7281 break 3
7282 fi
7283 fi
drh71eb93e2001-09-28 01:34:43 +00007284 done
a.rottmann84e63352003-03-24 09:42:16 +00007285 done
7286 ;;
7287esac
7288done
7289
drh71eb93e2001-09-28 01:34:43 +00007290
7291fi
7292 if test "${ac_cv_path_install+set}" = set; then
7293 INSTALL=$ac_cv_path_install
7294 else
7295 # As a last resort, use the slow shell script. We don't cache a
7296 # path for INSTALL within a source directory, because that will
7297 # break other packages using the cache if that directory is
7298 # removed, or if the path is relative.
7299 INSTALL=$ac_install_sh
7300 fi
7301fi
a.rottmann84e63352003-03-24 09:42:16 +00007302echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +00007303echo "${ECHO_T}$INSTALL" >&6
7304
7305# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7306# It thinks the first close brace ends the variable substitution.
7307test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7308
7309test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7310
7311test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7312
a.rottmann84e63352003-03-24 09:42:16 +00007313
drh75897232000-05-29 14:26:00 +00007314#########
7315# Set up an appropriate program prefix
7316#
7317if test "$program_prefix" = "NONE"; then
7318 program_prefix=""
7319fi
7320
a.rottmann84e63352003-03-24 09:42:16 +00007321
7322if test -f VERSION; then
7323 VERSION=`cat VERSION`
7324 echo "Version set to $VERSION"
7325fi
7326
7327
drh75897232000-05-29 14:26:00 +00007328#########
7329# Check to see if the --with-hints=FILE option is used. If there is none,
7330# then check for a files named "$host.hints" and ../$hosts.hints where
7331# $host is the hostname of the build system. If still no hints are
7332# found, try looking in $system.hints and ../$system.hints where
7333# $system is the result of uname -s.
7334#
drh71eb93e2001-09-28 01:34:43 +00007335
drh75897232000-05-29 14:26:00 +00007336# Check whether --with-hints or --without-hints was given.
7337if test "${with_hints+set}" = set; then
7338 withval="$with_hints"
7339 hints=$withval
drh71eb93e2001-09-28 01:34:43 +00007340fi;
drh75897232000-05-29 14:26:00 +00007341if test "$hints" = ""; then
7342 host=`hostname | sed 's/\..*//'`
7343 if test -r $host.hints; then
7344 hints=$host.hints
7345 else
7346 if test -r ../$host.hints; then
7347 hints=../$host.hints
7348 fi
7349 fi
7350fi
7351if test "$hints" = ""; then
7352 sys=`uname -s`
7353 if test -r $sys.hints; then
7354 hints=$sys.hints
7355 else
7356 if test -r ../$sys.hints; then
7357 hints=../$sys.hints
7358 fi
7359 fi
7360fi
7361if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +00007362 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +00007363echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +00007364 . $hints
7365fi
7366
7367#########
7368# Locate a compiler for the build machine. This compiler should
7369# generate command-line programs that run on the build machine.
7370#
7371default_build_cflags="-g"
7372if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +00007373 ac_ext=c
7374ac_cpp='$CPP $CPPFLAGS'
7375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7380set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007381echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383if test "${ac_cv_prog_CC+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007385else
7386 if test -n "$CC"; then
7387 ac_cv_prog_CC="$CC" # Let the user override the test.
7388else
a.rottmann84e63352003-03-24 09:42:16 +00007389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
drh71eb93e2001-09-28 01:34:43 +00007401done
7402
drh75897232000-05-29 14:26:00 +00007403fi
7404fi
drh71eb93e2001-09-28 01:34:43 +00007405CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007406if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007407 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007408echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007409else
a.rottmann84e63352003-03-24 09:42:16 +00007410 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007411echo "${ECHO_T}no" >&6
7412fi
7413
7414fi
7415if test -z "$ac_cv_prog_CC"; then
7416 ac_ct_CC=$CC
7417 # Extract the first word of "gcc", so it can be a program name with args.
7418set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007419echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 if test -n "$ac_ct_CC"; then
7425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7426else
a.rottmann84e63352003-03-24 09:42:16 +00007427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_ac_ct_CC="gcc"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438done
drh71eb93e2001-09-28 01:34:43 +00007439done
7440
7441fi
7442fi
7443ac_ct_CC=$ac_cv_prog_ac_ct_CC
7444if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007446echo "${ECHO_T}$ac_ct_CC" >&6
7447else
a.rottmann84e63352003-03-24 09:42:16 +00007448 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007449echo "${ECHO_T}no" >&6
7450fi
7451
7452 CC=$ac_ct_CC
7453else
7454 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +00007455fi
7456
7457if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +00007458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7460set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007461echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463if test "${ac_cv_prog_CC+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007465else
7466 if test -n "$CC"; then
7467 ac_cv_prog_CC="$CC" # Let the user override the test.
7468else
a.rottmann84e63352003-03-24 09:42:16 +00007469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_CC="${ac_tool_prefix}cc"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
drh71eb93e2001-09-28 01:34:43 +00007481done
7482
7483fi
7484fi
7485CC=$ac_cv_prog_CC
7486if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007487 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007488echo "${ECHO_T}$CC" >&6
7489else
a.rottmann84e63352003-03-24 09:42:16 +00007490 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007491echo "${ECHO_T}no" >&6
7492fi
7493
7494fi
7495if test -z "$ac_cv_prog_CC"; then
7496 ac_ct_CC=$CC
7497 # Extract the first word of "cc", so it can be a program name with args.
7498set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007499echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504 if test -n "$ac_ct_CC"; then
7505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7506else
a.rottmann84e63352003-03-24 09:42:16 +00007507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_ac_ct_CC="cc"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7517 fi
7518done
drh71eb93e2001-09-28 01:34:43 +00007519done
7520
7521fi
7522fi
7523ac_ct_CC=$ac_cv_prog_ac_ct_CC
7524if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007525 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007526echo "${ECHO_T}$ac_ct_CC" >&6
7527else
a.rottmann84e63352003-03-24 09:42:16 +00007528 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007529echo "${ECHO_T}no" >&6
7530fi
7531
7532 CC=$ac_ct_CC
7533else
7534 CC="$ac_cv_prog_CC"
7535fi
7536
7537fi
7538if test -z "$CC"; then
7539 # Extract the first word of "cc", so it can be a program name with args.
7540set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007541echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7543if test "${ac_cv_prog_CC+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 if test -n "$CC"; then
7547 ac_cv_prog_CC="$CC" # Let the user override the test.
7548else
drh75897232000-05-29 14:26:00 +00007549 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00007550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7558 ac_prog_rejected=yes
7559 continue
7560 fi
7561 ac_cv_prog_CC="cc"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565done
drh71eb93e2001-09-28 01:34:43 +00007566done
7567
drh75897232000-05-29 14:26:00 +00007568if test $ac_prog_rejected = yes; then
7569 # We found a bogon in the path, so make sure we never use it.
7570 set dummy $ac_cv_prog_CC
7571 shift
drh71eb93e2001-09-28 01:34:43 +00007572 if test $# != 0; then
drh75897232000-05-29 14:26:00 +00007573 # We chose a different compiler from the bogus one.
7574 # However, it has the same basename, so the bogon will be chosen
7575 # first if we set CC to just the basename; use the full file name.
7576 shift
a.rottmann84e63352003-03-24 09:42:16 +00007577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +00007578 fi
7579fi
7580fi
7581fi
drh71eb93e2001-09-28 01:34:43 +00007582CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007583if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007584 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007585echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007586else
a.rottmann84e63352003-03-24 09:42:16 +00007587 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007588echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007589fi
7590
drh71eb93e2001-09-28 01:34:43 +00007591fi
7592if test -z "$CC"; then
7593 if test -n "$ac_tool_prefix"; then
7594 for ac_prog in cl
7595 do
7596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007598echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7600if test "${ac_cv_prog_CC+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007602else
7603 if test -n "$CC"; then
7604 ac_cv_prog_CC="$CC" # Let the user override the test.
7605else
a.rottmann84e63352003-03-24 09:42:16 +00007606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607for as_dir in $PATH
7608do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7616 fi
7617done
drh71eb93e2001-09-28 01:34:43 +00007618done
7619
drh75897232000-05-29 14:26:00 +00007620fi
7621fi
drh71eb93e2001-09-28 01:34:43 +00007622CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007623if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007624 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007625echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007626else
a.rottmann84e63352003-03-24 09:42:16 +00007627 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007628echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007629fi
7630
drh71eb93e2001-09-28 01:34:43 +00007631 test -n "$CC" && break
7632 done
7633fi
7634if test -z "$CC"; then
7635 ac_ct_CC=$CC
7636 for ac_prog in cl
7637do
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007640echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644else
7645 if test -n "$ac_ct_CC"; then
7646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7647else
a.rottmann84e63352003-03-24 09:42:16 +00007648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655 ac_cv_prog_ac_ct_CC="$ac_prog"
7656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659done
drh71eb93e2001-09-28 01:34:43 +00007660done
drh75897232000-05-29 14:26:00 +00007661
drh71eb93e2001-09-28 01:34:43 +00007662fi
7663fi
7664ac_ct_CC=$ac_cv_prog_ac_ct_CC
7665if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007666 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007667echo "${ECHO_T}$ac_ct_CC" >&6
7668else
a.rottmann84e63352003-03-24 09:42:16 +00007669 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007670echo "${ECHO_T}no" >&6
7671fi
drh75897232000-05-29 14:26:00 +00007672
drh71eb93e2001-09-28 01:34:43 +00007673 test -n "$ac_ct_CC" && break
7674done
drh75897232000-05-29 14:26:00 +00007675
drh71eb93e2001-09-28 01:34:43 +00007676 CC=$ac_ct_CC
7677fi
7678
7679fi
7680
a.rottmann84e63352003-03-24 09:42:16 +00007681
7682test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7683See \`config.log' for more details." >&5
7684echo "$as_me: error: no acceptable C compiler found in \$PATH
7685See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00007686 { (exit 1); exit 1; }; }
7687
7688# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00007689echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00007690 "checking for C compiler version" >&5
7691ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00007692{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007693 (eval $ac_compiler --version </dev/null >&5) 2>&5
7694 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007696 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007698 (eval $ac_compiler -v </dev/null >&5) 2>&5
7699 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007701 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007702{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007703 (eval $ac_compiler -V </dev/null >&5) 2>&5
7704 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007706 (exit $ac_status); }
7707
a.rottmann84e63352003-03-24 09:42:16 +00007708echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00007709echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7710if test "${ac_cv_c_compiler_gnu+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007714#line $LINENO "configure"
7715/* confdefs.h. */
7716_ACEOF
7717cat confdefs.h >>conftest.$ac_ext
7718cat >>conftest.$ac_ext <<_ACEOF
7719/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00007720
drh71eb93e2001-09-28 01:34:43 +00007721int
7722main ()
7723{
7724#ifndef __GNUC__
7725 choke me
drh75897232000-05-29 14:26:00 +00007726#endif
drh75897232000-05-29 14:26:00 +00007727
drh71eb93e2001-09-28 01:34:43 +00007728 ;
7729 return 0;
7730}
7731_ACEOF
7732rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007734 (eval $ac_compile) 2>&5
7735 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007740 (eval $ac_try) 2>&5
7741 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007743 (exit $ac_status); }; }; then
7744 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +00007745else
drh71eb93e2001-09-28 01:34:43 +00007746 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007747sed 's/^/| /' conftest.$ac_ext >&5
7748
drh71eb93e2001-09-28 01:34:43 +00007749ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +00007750fi
drh71eb93e2001-09-28 01:34:43 +00007751rm -f conftest.$ac_objext conftest.$ac_ext
7752ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +00007753
drh71eb93e2001-09-28 01:34:43 +00007754fi
a.rottmann84e63352003-03-24 09:42:16 +00007755echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00007756echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7757GCC=`test $ac_compiler_gnu = yes && echo yes`
7758ac_test_CFLAGS=${CFLAGS+set}
7759ac_save_CFLAGS=$CFLAGS
7760CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00007761echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00007762echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7763if test "${ac_cv_prog_cc_g+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007765else
drh71eb93e2001-09-28 01:34:43 +00007766 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007767#line $LINENO "configure"
7768/* confdefs.h. */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007773
7774int
7775main ()
7776{
7777
7778 ;
7779 return 0;
7780}
7781_ACEOF
7782rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007784 (eval $ac_compile) 2>&5
7785 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007787 (exit $ac_status); } &&
7788 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007790 (eval $ac_try) 2>&5
7791 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007793 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00007794 ac_cv_prog_cc_g=yes
7795else
drh71eb93e2001-09-28 01:34:43 +00007796 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007797sed 's/^/| /' conftest.$ac_ext >&5
7798
drh71eb93e2001-09-28 01:34:43 +00007799ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +00007800fi
drh71eb93e2001-09-28 01:34:43 +00007801rm -f conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00007802fi
a.rottmann84e63352003-03-24 09:42:16 +00007803echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00007804echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +00007805if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +00007806 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +00007807elif test $ac_cv_prog_cc_g = yes; then
7808 if test "$GCC" = yes; then
7809 CFLAGS="-g -O2"
7810 else
7811 CFLAGS="-g"
7812 fi
7813else
7814 if test "$GCC" = yes; then
7815 CFLAGS="-O2"
7816 else
7817 CFLAGS=
7818 fi
7819fi
a.rottmann84e63352003-03-24 09:42:16 +00007820echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7821echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7822if test "${ac_cv_prog_cc_stdc+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825 ac_cv_prog_cc_stdc=no
7826ac_save_CC=$CC
7827cat >conftest.$ac_ext <<_ACEOF
7828#line $LINENO "configure"
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
7834#include <stdarg.h>
7835#include <stdio.h>
7836#include <sys/types.h>
7837#include <sys/stat.h>
7838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7839struct buf { int x; };
7840FILE * (*rcsopen) (struct buf *, struct stat *, int);
7841static char *e (p, i)
7842 char **p;
7843 int i;
7844{
7845 return p[i];
7846}
7847static char *f (char * (*g) (char **, int), char **p, ...)
7848{
7849 char *s;
7850 va_list v;
7851 va_start (v,p);
7852 s = g (p, va_arg (v,int));
7853 va_end (v);
7854 return s;
7855}
7856int test (int i, double x);
7857struct s1 {int (*f) (int a);};
7858struct s2 {int (*f) (double a);};
7859int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7860int argc;
7861char **argv;
7862int
7863main ()
7864{
7865return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7866 ;
7867 return 0;
7868}
7869_ACEOF
7870# Don't try gcc -ansi; that turns off useful extensions and
7871# breaks some systems' header files.
7872# AIX -qlanglvl=ansi
7873# Ultrix and OSF/1 -std1
7874# HP-UX 10.20 and later -Ae
7875# HP-UX older versions -Aa -D_HPUX_SOURCE
7876# SVR4 -Xc -D__EXTENSIONS__
7877for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7878do
7879 CC="$ac_save_CC $ac_arg"
7880 rm -f conftest.$ac_objext
7881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_prog_cc_stdc=$ac_arg
7893break
7894else
7895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898fi
7899rm -f conftest.$ac_objext
7900done
7901rm -f conftest.$ac_ext conftest.$ac_objext
7902CC=$ac_save_CC
7903
7904fi
7905
7906case "x$ac_cv_prog_cc_stdc" in
7907 x|xno)
7908 echo "$as_me:$LINENO: result: none needed" >&5
7909echo "${ECHO_T}none needed" >&6 ;;
7910 *)
7911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7912echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7913 CC="$CC $ac_cv_prog_cc_stdc" ;;
7914esac
7915
drh71eb93e2001-09-28 01:34:43 +00007916# Some people use a C++ compiler to compile C. Since we use `exit',
7917# in C++ we need to declare it. In case someone uses the same compiler
7918# for both compiling C and C++ we need to have the C++ compiler decide
7919# the declaration of exit, since it's the most demanding environment.
7920cat >conftest.$ac_ext <<_ACEOF
7921#ifndef __cplusplus
7922 choke me
7923#endif
7924_ACEOF
7925rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007927 (eval $ac_compile) 2>&5
7928 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007930 (exit $ac_status); } &&
7931 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007933 (eval $ac_try) 2>&5
7934 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007936 (exit $ac_status); }; }; then
7937 for ac_declaration in \
7938 ''\
7939 '#include <stdlib.h>' \
7940 'extern "C" void std::exit (int) throw (); using std::exit;' \
7941 'extern "C" void std::exit (int); using std::exit;' \
7942 'extern "C" void exit (int) throw ();' \
7943 'extern "C" void exit (int);' \
7944 'void exit (int);'
7945do
7946 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007947#line $LINENO "configure"
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007953#include <stdlib.h>
7954$ac_declaration
7955int
7956main ()
7957{
7958exit (42);
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007965 (eval $ac_compile) 2>&5
7966 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007968 (exit $ac_status); } &&
7969 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007971 (eval $ac_try) 2>&5
7972 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007974 (exit $ac_status); }; }; then
7975 :
7976else
7977 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007978sed 's/^/| /' conftest.$ac_ext >&5
7979
drh71eb93e2001-09-28 01:34:43 +00007980continue
7981fi
7982rm -f conftest.$ac_objext conftest.$ac_ext
7983 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007984#line $LINENO "configure"
7985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007990$ac_declaration
7991int
7992main ()
7993{
7994exit (42);
7995 ;
7996 return 0;
7997}
7998_ACEOF
7999rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008001 (eval $ac_compile) 2>&5
8002 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008007 (eval $ac_try) 2>&5
8008 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008010 (exit $ac_status); }; }; then
8011 break
8012else
8013 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008014sed 's/^/| /' conftest.$ac_ext >&5
8015
drh71eb93e2001-09-28 01:34:43 +00008016fi
8017rm -f conftest.$ac_objext conftest.$ac_ext
8018done
8019rm -f conftest*
8020if test -n "$ac_declaration"; then
8021 echo '#ifdef __cplusplus' >>confdefs.h
8022 echo $ac_declaration >>confdefs.h
8023 echo '#endif' >>confdefs.h
8024fi
8025
8026else
8027 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008028sed 's/^/| /' conftest.$ac_ext >&5
8029
drh71eb93e2001-09-28 01:34:43 +00008030fi
8031rm -f conftest.$ac_objext conftest.$ac_ext
8032ac_ext=c
8033ac_cpp='$CPP $CPPFLAGS'
8034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00008037
8038 if test "$cross_compiling" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008039 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
drh71eb93e2001-09-28 01:34:43 +00008040echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
8041 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00008042 fi
8043 BUILD_CC=$CC
8044 default_build_cflags=$CFLAGS
8045else
8046 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008047 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008048echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008049 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008050 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008051echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +00008052fi
a.rottmann84e63352003-03-24 09:42:16 +00008053echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008054echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008055if test "$config_BUILD_CFLAGS" != ""; then
8056 CFLAGS=$config_BUILD_CFLAGS
8057 BUILD_CFLAGS=$config_BUILD_CFLAGS
8058else
8059 BUILD_CFLAGS=$default_build_cflags
8060fi
a.rottmann84e63352003-03-24 09:42:16 +00008061echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008062echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008063if test "$config_BUILD_LIBS" != ""; then
8064 BUILD_LIBS=$config_BUILD_LIBS
8065fi
8066
a.rottmann84e63352003-03-24 09:42:16 +00008067
8068
8069
drh75897232000-05-29 14:26:00 +00008070##########
8071# Locate a compiler that converts C code into *.o files that run on
8072# the target machine.
8073#
a.rottmann84e63352003-03-24 09:42:16 +00008074echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008075echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008076if test "$config_TARGET_CC" != ""; then
8077 TARGET_CC=$config_TARGET_CC
8078else
8079 TARGET_CC=$BUILD_CC
8080fi
a.rottmann84e63352003-03-24 09:42:16 +00008081echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008082echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008083echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008084echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008085if test "$config_TARGET_CFLAGS" != ""; then
8086 TARGET_CFLAGS=$config_TARGET_CFLAGS
8087else
8088 TARGET_CFLAGS=$BUILD_CFLAGS
8089fi
a.rottmann84e63352003-03-24 09:42:16 +00008090echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008091echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008092echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +00008093echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008094if test "$config_TARGET_LINK" = ""; then
8095 TARGET_LINK=$TARGET_CC
8096else
8097 TARGET_LINK=$config_TARGET_LINK
8098fi
a.rottmann84e63352003-03-24 09:42:16 +00008099echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +00008100echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008101echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008102echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008103if test "$config_TARGET_TFLAGS" != ""; then
8104 TARGET_TFLAGS=$config_TARGET_TFLAGS
8105else
8106 TARGET_TFLAGS=$BUILD_CFLAGS
8107fi
8108if test "$config_TARGET_RANLIB" != ""; then
8109 TARGET_RANLIB=$config_TARGET_RANLIB
8110else
drh71eb93e2001-09-28 01:34:43 +00008111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8113set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008114echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8116if test "${ac_cv_prog_RANLIB+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008118else
8119 if test -n "$RANLIB"; then
8120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8121else
a.rottmann84e63352003-03-24 09:42:16 +00008122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133done
drh71eb93e2001-09-28 01:34:43 +00008134done
8135
drh75897232000-05-29 14:26:00 +00008136fi
8137fi
drh71eb93e2001-09-28 01:34:43 +00008138RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +00008139if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008140 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008141echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +00008142else
a.rottmann84e63352003-03-24 09:42:16 +00008143 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008144echo "${ECHO_T}no" >&6
8145fi
8146
8147fi
8148if test -z "$ac_cv_prog_RANLIB"; then
8149 ac_ct_RANLIB=$RANLIB
8150 # Extract the first word of "ranlib", so it can be a program name with args.
8151set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008152echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8154if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157 if test -n "$ac_ct_RANLIB"; then
8158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8159else
a.rottmann84e63352003-03-24 09:42:16 +00008160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
8165 for ac_exec_ext in '' $ac_executable_extensions; do
8166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8167 ac_cv_prog_ac_ct_RANLIB="ranlib"
8168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 break 2
8170 fi
8171done
drh71eb93e2001-09-28 01:34:43 +00008172done
8173
8174 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8175fi
8176fi
8177ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8178if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008179 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008180echo "${ECHO_T}$ac_ct_RANLIB" >&6
8181else
a.rottmann84e63352003-03-24 09:42:16 +00008182 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008183echo "${ECHO_T}no" >&6
8184fi
8185
8186 RANLIB=$ac_ct_RANLIB
8187else
8188 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +00008189fi
8190
8191 TARGET_RANLIB=$RANLIB
8192fi
8193if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +00008194 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +00008195else
8196 TARGET_AR='ar cr'
8197fi
a.rottmann84e63352003-03-24 09:42:16 +00008198echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008199echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008200
a.rottmann84e63352003-03-24 09:42:16 +00008201
8202
8203
8204
8205
8206
drh75897232000-05-29 14:26:00 +00008207# Set the $cross variable if we are cross-compiling. Make
8208# it 0 if we are not.
8209#
a.rottmann84e63352003-03-24 09:42:16 +00008210echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +00008211echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008212if test "$BUILD_CC" = "$TARGET_CC"; then
8213 cross=0
a.rottmann84e63352003-03-24 09:42:16 +00008214 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008215echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008216else
8217 cross=1
a.rottmann84e63352003-03-24 09:42:16 +00008218 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008219echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00008220fi
8221
drh297ecf12001-04-05 15:57:13 +00008222##########
8223# Are we using UTF-8 or iso8859 encodings?
8224#
8225# Check whether --enable-utf8 or --disable-utf8 was given.
8226if test "${enable_utf8+set}" = set; then
8227 enableval="$enable_utf8"
drh71eb93e2001-09-28 01:34:43 +00008228
drh297ecf12001-04-05 15:57:13 +00008229else
8230 enable_utf8=no
drh71eb93e2001-09-28 01:34:43 +00008231fi;
a.rottmann84e63352003-03-24 09:42:16 +00008232echo "$as_me:$LINENO: checking character encoding" >&5
drh71eb93e2001-09-28 01:34:43 +00008233echo $ECHO_N "checking character encoding... $ECHO_C" >&6
drh297ecf12001-04-05 15:57:13 +00008234if test "$enable_utf8" = "no"; then
8235 ENCODING=ISO8859
a.rottmann84e63352003-03-24 09:42:16 +00008236 echo "$as_me:$LINENO: result: iso8859" >&5
drh71eb93e2001-09-28 01:34:43 +00008237echo "${ECHO_T}iso8859" >&6
drh297ecf12001-04-05 15:57:13 +00008238else
8239 ENCODING=UTF8
a.rottmann84e63352003-03-24 09:42:16 +00008240 echo "$as_me:$LINENO: result: UTF-8" >&5
drh71eb93e2001-09-28 01:34:43 +00008241echo "${ECHO_T}UTF-8" >&6
drh297ecf12001-04-05 15:57:13 +00008242fi
8243
a.rottmann84e63352003-03-24 09:42:16 +00008244
drh75897232000-05-29 14:26:00 +00008245###########
8246# Lots of things are different if we are compiling for Windows using
8247# the CYGWIN environment. So check for that special case and handle
8248# things accordingly.
8249#
a.rottmann84e63352003-03-24 09:42:16 +00008250echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +00008251echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008252if test "$config_BUILD_EXEEXT" = ".exe"; then
8253 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +00008254 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008255echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008256else
a.rottmann84e63352003-03-24 09:42:16 +00008257 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +00008258echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +00008259fi
8260if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008261
8262case $host_os in
drh71eb93e2001-09-28 01:34:43 +00008263 *cygwin* ) CYGWIN=yes;;
8264 * ) CYGWIN=no;;
8265esac
drh75897232000-05-29 14:26:00 +00008266
drh75897232000-05-29 14:26:00 +00008267fi
8268if test "$CYGWIN" = "yes"; then
8269 BUILD_EXEEXT=.exe
8270else
8271 BUILD_EXEEXT=""
8272fi
8273if test "$cross" = "0"; then
8274 TARGET_EXEEXT=$BUILD_EXEEXT
8275else
8276 TARGET_EXEEXT=$config_TARGET_EXEEXT
8277fi
8278if test "$TARGET_EXEEXT" = ".exe"; then
8279 OS_UNIX=0
8280 OS_WIN=1
8281 tclsubdir=win
8282else
8283 OS_UNIX=1
8284 OS_WIN=0
8285 tclsubdir=unix
8286fi
8287TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN"
8288
a.rottmann84e63352003-03-24 09:42:16 +00008289
8290
8291
8292
8293
drh75897232000-05-29 14:26:00 +00008294##########
8295# Extract generic linker options from the environment.
8296#
8297if test "$config_TARGET_LIBS" != ""; then
8298 TARGET_LIBS=$config_TARGET_LIBS
8299else
8300 TARGET_LIBS=""
8301fi
8302
a.rottmann84e63352003-03-24 09:42:16 +00008303
drh75897232000-05-29 14:26:00 +00008304##########
8305# Figure out what C libraries are required to compile Tcl programs.
8306#
8307if test "$config_TARGET_TCL_LIBS" != ""; then
8308 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
8309else
8310 if test "$with_tcl" != ""; then
8311 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
8312 fi
8313 CC=$TARGET_CC
a.rottmann84e63352003-03-24 09:42:16 +00008314 echo "$as_me:$LINENO: checking for sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008315echo $ECHO_N "checking for sin... $ECHO_C" >&6
8316if test "${ac_cv_func_sin+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008318else
drh71eb93e2001-09-28 01:34:43 +00008319 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008320#line $LINENO "configure"
8321/* confdefs.h. */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008326/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008327 which can conflict with char sin (); below.
8328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8329 <limits.h> exists even on freestanding compilers. */
8330#ifdef __STDC__
8331# include <limits.h>
8332#else
8333# include <assert.h>
8334#endif
drh75897232000-05-29 14:26:00 +00008335/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008336#ifdef __cplusplus
8337extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008338{
drh71eb93e2001-09-28 01:34:43 +00008339#endif
drh75897232000-05-29 14:26:00 +00008340/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008341 builtin and then its argument prototype would still apply. */
8342char sin ();
drh75897232000-05-29 14:26:00 +00008343/* The GNU C library defines this for functions which it implements
8344 to always fail with ENOSYS. Some functions are actually named
8345 something starting with __ and the normal name is an alias. */
8346#if defined (__stub_sin) || defined (__stub___sin)
8347choke me
8348#else
a.rottmann84e63352003-03-24 09:42:16 +00008349char (*f) () = sin;
8350#endif
8351#ifdef __cplusplus
8352}
drh75897232000-05-29 14:26:00 +00008353#endif
8354
a.rottmann84e63352003-03-24 09:42:16 +00008355int
8356main ()
8357{
8358return f != sin;
drh71eb93e2001-09-28 01:34:43 +00008359 ;
8360 return 0;
8361}
8362_ACEOF
8363rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008365 (eval $ac_link) 2>&5
8366 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008368 (exit $ac_status); } &&
8369 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008371 (eval $ac_try) 2>&5
8372 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008374 (exit $ac_status); }; }; then
8375 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +00008376else
drh71eb93e2001-09-28 01:34:43 +00008377 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008378sed 's/^/| /' conftest.$ac_ext >&5
8379
drh71eb93e2001-09-28 01:34:43 +00008380ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +00008381fi
drh71eb93e2001-09-28 01:34:43 +00008382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00008383fi
a.rottmann84e63352003-03-24 09:42:16 +00008384echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008385echo "${ECHO_T}$ac_cv_func_sin" >&6
8386if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +00008387 LIBS=""
8388else
drh71eb93e2001-09-28 01:34:43 +00008389 LIBS="-lm"
drh75897232000-05-29 14:26:00 +00008390fi
8391
a.rottmann84e63352003-03-24 09:42:16 +00008392
8393echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00008394echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8395if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008397else
drh71eb93e2001-09-28 01:34:43 +00008398 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +00008399LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +00008400cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008401#line $LINENO "configure"
8402/* confdefs.h. */
8403_ACEOF
8404cat confdefs.h >>conftest.$ac_ext
8405cat >>conftest.$ac_ext <<_ACEOF
8406/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008407
drh75897232000-05-29 14:26:00 +00008408/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008409#ifdef __cplusplus
8410extern "C"
8411#endif
drh75897232000-05-29 14:26:00 +00008412/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008413 builtin and then its argument prototype would still apply. */
8414char dlopen ();
8415int
8416main ()
8417{
8418dlopen ();
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008425 (eval $ac_link) 2>&5
8426 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008431 (eval $ac_try) 2>&5
8432 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008434 (exit $ac_status); }; }; then
8435 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +00008436else
drh71eb93e2001-09-28 01:34:43 +00008437 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008438sed 's/^/| /' conftest.$ac_ext >&5
8439
drh71eb93e2001-09-28 01:34:43 +00008440ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +00008441fi
drh71eb93e2001-09-28 01:34:43 +00008442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8443LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +00008444fi
a.rottmann84e63352003-03-24 09:42:16 +00008445echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00008446echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8447if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008448 cat >>confdefs.h <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00008449#define HAVE_LIBDL 1
a.rottmann84e63352003-03-24 09:42:16 +00008450_ACEOF
drh75897232000-05-29 14:26:00 +00008451
8452 LIBS="-ldl $LIBS"
8453
drh75897232000-05-29 14:26:00 +00008454fi
8455
8456 otherlibs=$LIBS
8457 if test "$extra" != ""; then
8458 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +00008459 else
drh75897232000-05-29 14:26:00 +00008460 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +00008461 echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008462echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
8463if test "${ac_cv_search_Tcl_Init+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008465else
drh71eb93e2001-09-28 01:34:43 +00008466 ac_func_search_save_LIBS=$LIBS
8467ac_cv_search_Tcl_Init=no
8468cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008469#line $LINENO "configure"
8470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008475
drh71eb93e2001-09-28 01:34:43 +00008476/* Override any gcc2 internal prototype to avoid an error. */
8477#ifdef __cplusplus
8478extern "C"
8479#endif
8480/* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8482char Tcl_Init ();
8483int
8484main ()
8485{
8486Tcl_Init ();
8487 ;
8488 return 0;
8489}
8490_ACEOF
8491rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008493 (eval $ac_link) 2>&5
8494 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008499 (eval $ac_try) 2>&5
8500 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008502 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008503 ac_cv_search_Tcl_Init="none required"
8504else
drh71eb93e2001-09-28 01:34:43 +00008505 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008506sed 's/^/| /' conftest.$ac_ext >&5
8507
drh75897232000-05-29 14:26:00 +00008508fi
drh71eb93e2001-09-28 01:34:43 +00008509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510if test "$ac_cv_search_Tcl_Init" = no; then
8511 for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do
8512 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
8513 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008514#line $LINENO "configure"
8515/* confdefs.h. */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008520
drh71eb93e2001-09-28 01:34:43 +00008521/* Override any gcc2 internal prototype to avoid an error. */
8522#ifdef __cplusplus
8523extern "C"
8524#endif
8525/* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527char Tcl_Init ();
8528int
8529main ()
8530{
8531Tcl_Init ();
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008538 (eval $ac_link) 2>&5
8539 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008541 (exit $ac_status); } &&
8542 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008544 (eval $ac_try) 2>&5
8545 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008547 (exit $ac_status); }; }; then
8548 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +00008549break
8550else
drh71eb93e2001-09-28 01:34:43 +00008551 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008552sed 's/^/| /' conftest.$ac_ext >&5
8553
drh75897232000-05-29 14:26:00 +00008554fi
drh71eb93e2001-09-28 01:34:43 +00008555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8556 done
8557fi
8558LIBS=$ac_func_search_save_LIBS
8559fi
a.rottmann84e63352003-03-24 09:42:16 +00008560echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008561echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
8562if test "$ac_cv_search_Tcl_Init" != no; then
8563 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
8564
drh75897232000-05-29 14:26:00 +00008565fi
8566
drh75897232000-05-29 14:26:00 +00008567 fi
8568 TARGET_TCL_LIBS="$LIBS $otherlibs"
8569fi
8570
a.rottmann84e63352003-03-24 09:42:16 +00008571
drh75897232000-05-29 14:26:00 +00008572##########
8573# Figure out where to get the TCL header files.
8574#
a.rottmann84e63352003-03-24 09:42:16 +00008575echo "$as_me:$LINENO: checking TCL header files" >&5
drh71eb93e2001-09-28 01:34:43 +00008576echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008577found=no
8578if test "$config_TARGET_TCL_INC" != ""; then
8579 TARGET_TCL_INC=$config_TARGET_TCL_INC
8580 found=yes
8581else
8582 if test "$with_tcl" != ""; then
8583 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
8584 found=yes
8585 else
8586 TARGET_TCL_INC=""
8587 found=no
8588 fi
8589fi
8590if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008591 echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00008592echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +00008593else
a.rottmann84e63352003-03-24 09:42:16 +00008594 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00008595echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00008596 if test "${ac_cv_header_tcl_h+set}" = set; then
8597 echo "$as_me:$LINENO: checking for tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008598echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8599if test "${ac_cv_header_tcl_h+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008601fi
8602echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
8603echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
drh75897232000-05-29 14:26:00 +00008604else
a.rottmann84e63352003-03-24 09:42:16 +00008605 # Is the header compilable?
8606echo "$as_me:$LINENO: checking tcl.h usability" >&5
8607echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
8608cat >conftest.$ac_ext <<_ACEOF
8609#line $LINENO "configure"
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615$ac_includes_default
drh75897232000-05-29 14:26:00 +00008616#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +00008617_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008618rm -f conftest.$ac_objext
8619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620 (eval $ac_compile) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_header_compiler=yes
8631else
8632 echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635ac_header_compiler=no
8636fi
8637rm -f conftest.$ac_objext conftest.$ac_ext
8638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8639echo "${ECHO_T}$ac_header_compiler" >&6
8640
8641# Is the header present?
8642echo "$as_me:$LINENO: checking tcl.h presence" >&5
8643echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
8644cat >conftest.$ac_ext <<_ACEOF
8645#line $LINENO "configure"
8646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
8651#include <tcl.h>
8652_ACEOF
8653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8655 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008656 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00008657 rm -f conftest.er1
8658 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008660 (exit $ac_status); } >/dev/null; then
8661 if test -s conftest.err; then
8662 ac_cpp_err=$ac_c_preproc_warn_flag
8663 else
8664 ac_cpp_err=
8665 fi
drh75897232000-05-29 14:26:00 +00008666else
drh71eb93e2001-09-28 01:34:43 +00008667 ac_cpp_err=yes
8668fi
8669if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00008670 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00008671else
8672 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00008676fi
drh71eb93e2001-09-28 01:34:43 +00008677rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8679echo "${ECHO_T}$ac_header_preproc" >&6
8680
8681# So? What about this header?
8682case $ac_header_compiler:$ac_header_preproc in
8683 yes:no )
8684 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8685echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8687echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8688 (
8689 cat <<\_ASBOX
8690## ------------------------------------ ##
8691## Report this to bug-autoconf@gnu.org. ##
8692## ------------------------------------ ##
8693_ASBOX
8694 ) |
8695 sed "s/^/$as_me: WARNING: /" >&2
8696 ;;
8697 no:yes )
8698 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
8699echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
8701echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
8702 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8703echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8704 (
8705 cat <<\_ASBOX
8706## ------------------------------------ ##
8707## Report this to bug-autoconf@gnu.org. ##
8708## ------------------------------------ ##
8709_ASBOX
8710 ) |
8711 sed "s/^/$as_me: WARNING: /" >&2
8712 ;;
8713esac
8714echo "$as_me:$LINENO: checking for tcl.h" >&5
8715echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8716if test "${ac_cv_header_tcl_h+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718else
8719 ac_cv_header_tcl_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00008720fi
a.rottmann84e63352003-03-24 09:42:16 +00008721echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
drh71eb93e2001-09-28 01:34:43 +00008722echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008723
8724fi
drh71eb93e2001-09-28 01:34:43 +00008725if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +00008726 found=yes
drh75897232000-05-29 14:26:00 +00008727fi
8728
a.rottmann84e63352003-03-24 09:42:16 +00008729
drh75897232000-05-29 14:26:00 +00008730fi
8731if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +00008732 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +00008733 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00008734echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008735echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
8736if eval "test \"\${$as_ac_File+set}\" = set"; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008738else
drh71eb93e2001-09-28 01:34:43 +00008739 test "$cross_compiling" = yes &&
a.rottmann84e63352003-03-24 09:42:16 +00008740 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00008741echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8742 { (exit 1); exit 1; }; }
8743if test -r "$dir/include/tcl.h"; then
8744 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00008745else
drh71eb93e2001-09-28 01:34:43 +00008746 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00008747fi
8748fi
a.rottmann84e63352003-03-24 09:42:16 +00008749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00008750echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
8751if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00008752 found=yes
drh75897232000-05-29 14:26:00 +00008753fi
8754
8755 if test "$found" = "yes"; then
8756 TARGET_TCL_INC="-I$dir/include"
8757 break
8758 fi
8759 done
8760fi
drh6d313162000-09-21 13:01:35 +00008761if test "$found" = "no"; then
8762 TARGET_TCL_INC="-DNO_TCL=1"
8763fi
drh75897232000-05-29 14:26:00 +00008764
a.rottmann84e63352003-03-24 09:42:16 +00008765
drh75897232000-05-29 14:26:00 +00008766##########
8767# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +00008768# that use "readline()" library.
8769#
8770if test "$config_TARGET_READLINE_LIBS" != ""; then
8771 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
8772else
8773 CC=$TARGET_CC
8774 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +00008775 echo "$as_me:$LINENO: checking for library containing readline" >&5
drh71eb93e2001-09-28 01:34:43 +00008776echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6
8777if test "${ac_cv_search_readline+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008779else
drh71eb93e2001-09-28 01:34:43 +00008780 ac_func_search_save_LIBS=$LIBS
8781ac_cv_search_readline=no
8782cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008783#line $LINENO "configure"
8784/* confdefs.h. */
8785_ACEOF
8786cat confdefs.h >>conftest.$ac_ext
8787cat >>conftest.$ac_ext <<_ACEOF
8788/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008789
drh71eb93e2001-09-28 01:34:43 +00008790/* Override any gcc2 internal prototype to avoid an error. */
8791#ifdef __cplusplus
8792extern "C"
8793#endif
8794/* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8796char readline ();
8797int
8798main ()
8799{
8800readline ();
8801 ;
8802 return 0;
8803}
8804_ACEOF
8805rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008807 (eval $ac_link) 2>&5
8808 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008810 (exit $ac_status); } &&
8811 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008813 (eval $ac_try) 2>&5
8814 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008816 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008817 ac_cv_search_readline="none required"
8818else
drh71eb93e2001-09-28 01:34:43 +00008819 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008820sed 's/^/| /' conftest.$ac_ext >&5
8821
drh75897232000-05-29 14:26:00 +00008822fi
drh71eb93e2001-09-28 01:34:43 +00008823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8824if test "$ac_cv_search_readline" = no; then
8825 for ac_lib in readline; do
8826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8827 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008828#line $LINENO "configure"
8829/* confdefs.h. */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008834
drh71eb93e2001-09-28 01:34:43 +00008835/* Override any gcc2 internal prototype to avoid an error. */
8836#ifdef __cplusplus
8837extern "C"
8838#endif
8839/* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8841char readline ();
8842int
8843main ()
8844{
8845readline ();
8846 ;
8847 return 0;
8848}
8849_ACEOF
8850rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008852 (eval $ac_link) 2>&5
8853 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008858 (eval $ac_try) 2>&5
8859 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008861 (exit $ac_status); }; }; then
8862 ac_cv_search_readline="-l$ac_lib"
drh75897232000-05-29 14:26:00 +00008863break
8864else
drh71eb93e2001-09-28 01:34:43 +00008865 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008866sed 's/^/| /' conftest.$ac_ext >&5
8867
drh75897232000-05-29 14:26:00 +00008868fi
drh71eb93e2001-09-28 01:34:43 +00008869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8870 done
8871fi
8872LIBS=$ac_func_search_save_LIBS
8873fi
a.rottmann84e63352003-03-24 09:42:16 +00008874echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
drh71eb93e2001-09-28 01:34:43 +00008875echo "${ECHO_T}$ac_cv_search_readline" >&6
8876if test "$ac_cv_search_readline" != no; then
8877 test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS"
8878
drh75897232000-05-29 14:26:00 +00008879fi
8880
drh75897232000-05-29 14:26:00 +00008881 TARGET_READLINE_LIBS="$LIBS"
8882fi
8883
a.rottmann84e63352003-03-24 09:42:16 +00008884
drh75897232000-05-29 14:26:00 +00008885##########
8886# Figure out where to get the READLINE header files.
8887#
a.rottmann84e63352003-03-24 09:42:16 +00008888echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +00008889echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008890found=no
8891if test "$config_TARGET_READLINE_INC" != ""; then
8892 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
8893 found=yes
8894fi
8895if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008896 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00008897echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +00008898else
a.rottmann84e63352003-03-24 09:42:16 +00008899 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00008900echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00008901 if test "${ac_cv_header_readline_h+set}" = set; then
8902 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008903echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
8904if test "${ac_cv_header_readline_h+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008906fi
8907echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
8908echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +00008909else
a.rottmann84e63352003-03-24 09:42:16 +00008910 # Is the header compilable?
8911echo "$as_me:$LINENO: checking readline.h usability" >&5
8912echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
8913cat >conftest.$ac_ext <<_ACEOF
8914#line $LINENO "configure"
8915/* confdefs.h. */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h. */
8920$ac_includes_default
drh75897232000-05-29 14:26:00 +00008921#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +00008922_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008923rm -f conftest.$ac_objext
8924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -s conftest.$ac_objext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_header_compiler=yes
8936else
8937 echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940ac_header_compiler=no
8941fi
8942rm -f conftest.$ac_objext conftest.$ac_ext
8943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8944echo "${ECHO_T}$ac_header_compiler" >&6
8945
8946# Is the header present?
8947echo "$as_me:$LINENO: checking readline.h presence" >&5
8948echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
8949cat >conftest.$ac_ext <<_ACEOF
8950#line $LINENO "configure"
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956#include <readline.h>
8957_ACEOF
8958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8960 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008961 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00008962 rm -f conftest.er1
8963 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008965 (exit $ac_status); } >/dev/null; then
8966 if test -s conftest.err; then
8967 ac_cpp_err=$ac_c_preproc_warn_flag
8968 else
8969 ac_cpp_err=
8970 fi
drh75897232000-05-29 14:26:00 +00008971else
drh71eb93e2001-09-28 01:34:43 +00008972 ac_cpp_err=yes
8973fi
8974if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00008975 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00008976else
8977 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00008981fi
drh71eb93e2001-09-28 01:34:43 +00008982rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8984echo "${ECHO_T}$ac_header_preproc" >&6
8985
8986# So? What about this header?
8987case $ac_header_compiler:$ac_header_preproc in
8988 yes:no )
8989 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8990echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
8992echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
8993 (
8994 cat <<\_ASBOX
8995## ------------------------------------ ##
8996## Report this to bug-autoconf@gnu.org. ##
8997## ------------------------------------ ##
8998_ASBOX
8999 ) |
9000 sed "s/^/$as_me: WARNING: /" >&2
9001 ;;
9002 no:yes )
9003 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
9004echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
9006echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
9008echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
9009 (
9010 cat <<\_ASBOX
9011## ------------------------------------ ##
9012## Report this to bug-autoconf@gnu.org. ##
9013## ------------------------------------ ##
9014_ASBOX
9015 ) |
9016 sed "s/^/$as_me: WARNING: /" >&2
9017 ;;
9018esac
9019echo "$as_me:$LINENO: checking for readline.h" >&5
9020echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
9021if test "${ac_cv_header_readline_h+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00009025fi
a.rottmann84e63352003-03-24 09:42:16 +00009026echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +00009027echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009028
9029fi
drh71eb93e2001-09-28 01:34:43 +00009030if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +00009031 found=yes
drh75897232000-05-29 14:26:00 +00009032fi
9033
a.rottmann84e63352003-03-24 09:42:16 +00009034
drh75897232000-05-29 14:26:00 +00009035fi
9036if test "$found" = "no"; then
9037 for dir in /usr /usr/local /usr/local/readline /usr/contrib; do
drh71eb93e2001-09-28 01:34:43 +00009038 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009039echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009040echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
9041if eval "test \"\${$as_ac_File+set}\" = set"; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009043else
drh71eb93e2001-09-28 01:34:43 +00009044 test "$cross_compiling" = yes &&
a.rottmann84e63352003-03-24 09:42:16 +00009045 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00009046echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9047 { (exit 1); exit 1; }; }
9048if test -r "$dir/include/readline.h"; then
9049 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009050else
drh71eb93e2001-09-28 01:34:43 +00009051 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009052fi
9053fi
a.rottmann84e63352003-03-24 09:42:16 +00009054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009055echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9056if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009057 found=yes
drh75897232000-05-29 14:26:00 +00009058fi
9059
9060 if test "$found" = "yes"; then
9061 TARGET_READLINE_INC="-I$dir/include"
9062 break
9063 fi
drh71eb93e2001-09-28 01:34:43 +00009064 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009065echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009066echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
9067if eval "test \"\${$as_ac_File+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009069else
drh71eb93e2001-09-28 01:34:43 +00009070 test "$cross_compiling" = yes &&
a.rottmann84e63352003-03-24 09:42:16 +00009071 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00009072echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9073 { (exit 1); exit 1; }; }
9074if test -r "$dir/include/readline/readline.h"; then
9075 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009076else
drh71eb93e2001-09-28 01:34:43 +00009077 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009078fi
9079fi
a.rottmann84e63352003-03-24 09:42:16 +00009080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009081echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9082if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009083 found=yes
drh75897232000-05-29 14:26:00 +00009084fi
9085
9086 if test "$found" = "yes"; then
9087 TARGET_READLINE_INC="-I$dir/include/readline"
9088 break
9089 fi
9090 done
9091fi
9092if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +00009093 if test "$TARGET_READLINE_LIBS" = ""; then
9094 TARGET_HAVE_READLINE=0
9095 else
9096 TARGET_HAVE_READLINE=1
9097 fi
drh75897232000-05-29 14:26:00 +00009098else
9099 TARGET_HAVE_READLINE=0
9100fi
9101
a.rottmann84e63352003-03-24 09:42:16 +00009102
9103
drh75897232000-05-29 14:26:00 +00009104#########
drh2dfbbca2000-07-28 14:32:48 +00009105# Figure out whether or not we have a "usleep()" function.
9106#
a.rottmann84e63352003-03-24 09:42:16 +00009107echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009108echo $ECHO_N "checking for usleep... $ECHO_C" >&6
9109if test "${ac_cv_func_usleep+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +00009111else
drh71eb93e2001-09-28 01:34:43 +00009112 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009113#line $LINENO "configure"
9114/* confdefs.h. */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h. */
drh2dfbbca2000-07-28 14:32:48 +00009119/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009120 which can conflict with char usleep (); below.
9121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 <limits.h> exists even on freestanding compilers. */
9123#ifdef __STDC__
9124# include <limits.h>
9125#else
9126# include <assert.h>
9127#endif
drh2dfbbca2000-07-28 14:32:48 +00009128/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00009129#ifdef __cplusplus
9130extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009131{
drh71eb93e2001-09-28 01:34:43 +00009132#endif
drh2dfbbca2000-07-28 14:32:48 +00009133/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00009134 builtin and then its argument prototype would still apply. */
9135char usleep ();
drh2dfbbca2000-07-28 14:32:48 +00009136/* The GNU C library defines this for functions which it implements
9137 to always fail with ENOSYS. Some functions are actually named
9138 something starting with __ and the normal name is an alias. */
9139#if defined (__stub_usleep) || defined (__stub___usleep)
9140choke me
9141#else
a.rottmann84e63352003-03-24 09:42:16 +00009142char (*f) () = usleep;
9143#endif
9144#ifdef __cplusplus
9145}
drh2dfbbca2000-07-28 14:32:48 +00009146#endif
9147
a.rottmann84e63352003-03-24 09:42:16 +00009148int
9149main ()
9150{
9151return f != usleep;
drh71eb93e2001-09-28 01:34:43 +00009152 ;
9153 return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00009157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009158 (eval $ac_link) 2>&5
9159 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009161 (exit $ac_status); } &&
9162 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00009163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009164 (eval $ac_try) 2>&5
9165 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009167 (exit $ac_status); }; }; then
9168 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +00009169else
drh71eb93e2001-09-28 01:34:43 +00009170 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009171sed 's/^/| /' conftest.$ac_ext >&5
9172
drh71eb93e2001-09-28 01:34:43 +00009173ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +00009174fi
drh71eb93e2001-09-28 01:34:43 +00009175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +00009176fi
a.rottmann84e63352003-03-24 09:42:16 +00009177echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009178echo "${ECHO_T}$ac_cv_func_usleep" >&6
9179if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +00009180 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +00009181fi
9182
a.rottmann84e63352003-03-24 09:42:16 +00009183
drh2dfbbca2000-07-28 14:32:48 +00009184#########
drh75897232000-05-29 14:26:00 +00009185# Generate the output files.
9186#
a.rottmann84e63352003-03-24 09:42:16 +00009187 ac_config_files="$ac_config_files Makefile sqlite.pc"
drh71eb93e2001-09-28 01:34:43 +00009188cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +00009189# This file is a shell script that caches the results of configure
9190# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +00009191# scripts and configure runs, see configure's option --config-cache.
9192# It is not useful on other systems. If it contains results you don't
9193# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +00009194#
drh71eb93e2001-09-28 01:34:43 +00009195# config.status only pays attention to the cache file if you give it
9196# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +00009197#
a.rottmann84e63352003-03-24 09:42:16 +00009198# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +00009199# loading this file, other *unset* `ac_cv_foo' will be assigned the
9200# following values.
9201
9202_ACEOF
9203
drh75897232000-05-29 14:26:00 +00009204# The following way of writing the cache mishandles newlines in values,
9205# but we know of no workaround that is simple, portable, and efficient.
9206# So, don't put newlines in cache variables' values.
9207# Ultrix sh set writes to stderr and can't be redirected directly,
9208# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +00009209{
9210 (set) 2>&1 |
9211 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9212 *ac_space=\ *)
9213 # `set' does not quote correctly, so add quotes (double-quote
9214 # substitution turns \\\\ into \\, and sed turns \\ into \).
9215 sed -n \
9216 "s/'/'\\\\''/g;
9217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9218 ;;
9219 *)
9220 # `set' quotes correctly as required by POSIX, so do not add quotes.
9221 sed -n \
9222 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9223 ;;
9224 esac;
9225} |
9226 sed '
9227 t clear
9228 : clear
9229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9230 t end
9231 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9232 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +00009233if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +00009234 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +00009235 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9236 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +00009237 else
9238 echo "not updating unwritable cache $cache_file"
9239 fi
9240fi
9241rm -f confcache
9242
drh75897232000-05-29 14:26:00 +00009243test "x$prefix" = xNONE && prefix=$ac_default_prefix
9244# Let make expand exec_prefix.
9245test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9246
drh71eb93e2001-09-28 01:34:43 +00009247# VPATH may cause trouble with some makes, so we remove $(srcdir),
9248# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9249# trailing colons and then remove the whole line if VPATH becomes empty
9250# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +00009251if test "x$srcdir" = x.; then
drh71eb93e2001-09-28 01:34:43 +00009252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9253s/:*\$(srcdir):*/:/;
9254s/:*\${srcdir}:*/:/;
9255s/:*@srcdir@:*/:/;
9256s/^\([^=]*=[ ]*\):*/\1/;
9257s/:*$//;
9258s/^[^=]*=[ ]*$//;
9259}'
drh75897232000-05-29 14:26:00 +00009260fi
9261
drh75897232000-05-29 14:26:00 +00009262# Transform confdefs.h into DEFS.
9263# Protect against shell expansion while executing Makefile rules.
9264# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +00009265#
9266# If the first sed substitution is executed (which looks for macros that
9267# take arguments), then we branch to the quote section. Otherwise,
9268# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009269cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009270t clear
9271: clear
9272s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9273t quote
9274s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9275t quote
9276d
9277: quote
9278s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9279s,\[,\\&,g
9280s,\],\\&,g
9281s,\$,$$,g
9282p
a.rottmann84e63352003-03-24 09:42:16 +00009283_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009284# We use echo to avoid assuming a particular line-breaking character.
9285# The extra dot is to prevent the shell from consuming trailing
9286# line-breaks from the sub-command output. A line-break within
9287# single-quotes doesn't work because, if this script is created in a
9288# platform that uses two characters for line-breaks (e.g., DOS), tr
9289# would break.
9290ac_LF_and_DOT=`echo; echo .`
9291DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9292rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +00009293
a.rottmann84e63352003-03-24 09:42:16 +00009294
9295ac_libobjs=
9296ac_ltlibobjs=
9297for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9298 # 1. Remove the extension, and $U if already installed.
9299 ac_i=`echo "$ac_i" |
9300 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9301 # 2. Add them.
9302 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9303 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9304done
9305LIBOBJS=$ac_libobjs
9306
9307LTLIBOBJS=$ac_ltlibobjs
9308
9309
9310
drh75897232000-05-29 14:26:00 +00009311: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +00009312ac_clean_files_save=$ac_clean_files
9313ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +00009314{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +00009315echo "$as_me: creating $CONFIG_STATUS" >&6;}
9316cat >$CONFIG_STATUS <<_ACEOF
9317#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +00009318# Generated by $as_me.
drh75897232000-05-29 14:26:00 +00009319# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +00009320# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +00009321# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +00009322
drh71eb93e2001-09-28 01:34:43 +00009323debug=false
a.rottmann84e63352003-03-24 09:42:16 +00009324ac_cs_recheck=false
9325ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +00009326SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +00009327_ACEOF
drh75897232000-05-29 14:26:00 +00009328
drh71eb93e2001-09-28 01:34:43 +00009329cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009330## --------------------- ##
9331## M4sh Initialization. ##
9332## --------------------- ##
9333
drh71eb93e2001-09-28 01:34:43 +00009334# Be Bourne compatible
9335if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9336 emulate sh
9337 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +00009338 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9339 # is contrary to our usage. Disable this feature.
9340 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +00009341elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9342 set -o posix
drh75897232000-05-29 14:26:00 +00009343fi
drh71eb93e2001-09-28 01:34:43 +00009344
a.rottmann84e63352003-03-24 09:42:16 +00009345# Support unset when possible.
9346if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9347 as_unset=unset
9348else
9349 as_unset=false
9350fi
9351
9352
9353# Work around bugs in pre-3.0 UWIN ksh.
9354$as_unset ENV MAIL MAILPATH
9355PS1='$ '
9356PS2='> '
9357PS4='+ '
9358
9359# NLS nuisances.
9360for as_var in \
9361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9363 LC_TELEPHONE LC_TIME
9364do
9365 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9366 eval $as_var=C; export $as_var
9367 else
9368 $as_unset $as_var
9369 fi
9370done
9371
9372# Required to use basename.
9373if expr a : '\(a\)' >/dev/null 2>&1; then
9374 as_expr=expr
9375else
9376 as_expr=false
9377fi
9378
9379if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9380 as_basename=basename
9381else
9382 as_basename=false
9383fi
9384
9385
drh71eb93e2001-09-28 01:34:43 +00009386# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +00009387as_me=`$as_basename "$0" ||
9388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9389 X"$0" : 'X\(//\)$' \| \
9390 X"$0" : 'X\(/\)$' \| \
9391 . : '\(.\)' 2>/dev/null ||
9392echo X/"$0" |
9393 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9394 /^X\/\(\/\/\)$/{ s//\1/; q; }
9395 /^X\/\(\/\).*/{ s//\1/; q; }
9396 s/.*/./; q'`
9397
9398
9399# PATH needs CR, and LINENO needs CR and PATH.
9400# Avoid depending upon Character Ranges.
9401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9404as_cr_digits='0123456789'
9405as_cr_alnum=$as_cr_Letters$as_cr_digits
9406
9407# The user is always right.
9408if test "${PATH_SEPARATOR+set}" != set; then
9409 echo "#! /bin/sh" >conf$$.sh
9410 echo "exit 0" >>conf$$.sh
9411 chmod +x conf$$.sh
9412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9413 PATH_SEPARATOR=';'
9414 else
9415 PATH_SEPARATOR=:
9416 fi
9417 rm -f conf$$.sh
9418fi
9419
9420
9421 as_lineno_1=$LINENO
9422 as_lineno_2=$LINENO
9423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9424 test "x$as_lineno_1" != "x$as_lineno_2" &&
9425 test "x$as_lineno_3" = "x$as_lineno_2" || {
9426 # Find who we are. Look in the path if we contain no path at all
9427 # relative or not.
9428 case $0 in
9429 *[\\/]* ) as_myself=$0 ;;
9430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9436done
9437
9438 ;;
9439 esac
9440 # We did not find ourselves, most probably we were run as `sh COMMAND'
9441 # in which case we are not to be found in the path.
9442 if test "x$as_myself" = x; then
9443 as_myself=$0
9444 fi
9445 if test ! -f "$as_myself"; then
9446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9447echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9448 { (exit 1); exit 1; }; }
9449 fi
9450 case $CONFIG_SHELL in
9451 '')
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for as_base in sh bash ksh sh5; do
9458 case $as_dir in
9459 /*)
9460 if ("$as_dir/$as_base" -c '
9461 as_lineno_1=$LINENO
9462 as_lineno_2=$LINENO
9463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9464 test "x$as_lineno_1" != "x$as_lineno_2" &&
9465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9466 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9467 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9468 CONFIG_SHELL=$as_dir/$as_base
9469 export CONFIG_SHELL
9470 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9471 fi;;
9472 esac
9473 done
9474done
9475;;
9476 esac
9477
9478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9479 # uniformly replaced by the line number. The first 'sed' inserts a
9480 # line-number line before each line; the second 'sed' does the real
9481 # work. The second script uses 'N' to pair each line-number line
9482 # with the numbered line, and appends trailing '-' during
9483 # substitution so that $LINENO is not a special case at line end.
9484 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9485 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9486 sed '=' <$as_myself |
9487 sed '
9488 N
9489 s,$,-,
9490 : loop
9491 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9492 t loop
9493 s,-$,,
9494 s,^['$as_cr_digits']*\n,,
9495 ' >$as_me.lineno &&
9496 chmod +x $as_me.lineno ||
9497 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9498echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9499 { (exit 1); exit 1; }; }
9500
9501 # Don't try to exec as it changes $[0], causing all sort of problems
9502 # (the dirname of $[0] is not the place where we might find the
9503 # original and so on. Autoconf is especially sensible to this).
9504 . ./$as_me.lineno
9505 # Exit status is that of the last command.
9506 exit
9507}
9508
9509
9510case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9511 *c*,-n*) ECHO_N= ECHO_C='
9512' ECHO_T=' ' ;;
9513 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9514 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9515esac
drh71eb93e2001-09-28 01:34:43 +00009516
9517if expr a : '\(a\)' >/dev/null 2>&1; then
9518 as_expr=expr
9519else
9520 as_expr=false
9521fi
9522
9523rm -f conf$$ conf$$.exe conf$$.file
9524echo >conf$$.file
9525if ln -s conf$$.file conf$$ 2>/dev/null; then
9526 # We could just check for DJGPP; but this test a) works b) is more generic
9527 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9528 if test -f conf$$.exe; then
9529 # Don't use ln at all; we don't have any links
9530 as_ln_s='cp -p'
9531 else
9532 as_ln_s='ln -s'
9533 fi
9534elif ln conf$$.file conf$$ 2>/dev/null; then
9535 as_ln_s=ln
9536else
9537 as_ln_s='cp -p'
9538fi
9539rm -f conf$$ conf$$.exe conf$$.file
9540
a.rottmann84e63352003-03-24 09:42:16 +00009541if mkdir -p . 2>/dev/null; then
9542 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +00009543else
a.rottmann84e63352003-03-24 09:42:16 +00009544 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +00009545fi
9546
a.rottmann84e63352003-03-24 09:42:16 +00009547as_executable_p="test -f"
9548
9549# Sed expression to map a string onto a valid CPP name.
9550as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9551
9552# Sed expression to map a string onto a valid variable name.
9553as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9554
drh71eb93e2001-09-28 01:34:43 +00009555
9556# IFS
9557# We need space, tab and new line, in precisely that order.
9558as_nl='
9559'
9560IFS=" $as_nl"
9561
9562# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +00009563$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009564
9565exec 6>&1
9566
a.rottmann84e63352003-03-24 09:42:16 +00009567# Open the log real soon, to keep \$[0] and so on meaningful, and to
9568# report actual input values of CONFIG_FILES etc. instead of their
9569# values after options handling. Logging --version etc. is OK.
9570exec 5>>config.log
9571{
9572 echo
9573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9574## Running $as_me. ##
9575_ASBOX
9576} >&5
9577cat >&5 <<_CSEOF
9578
9579This file was extended by $as_me, which was
9580generated by GNU Autoconf 2.57. Invocation command line was
9581
9582 CONFIG_FILES = $CONFIG_FILES
9583 CONFIG_HEADERS = $CONFIG_HEADERS
9584 CONFIG_LINKS = $CONFIG_LINKS
9585 CONFIG_COMMANDS = $CONFIG_COMMANDS
9586 $ $0 $@
9587
9588_CSEOF
9589echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9590echo >&5
drh71eb93e2001-09-28 01:34:43 +00009591_ACEOF
9592
9593# Files that config.status was made for.
9594if test -n "$ac_config_files"; then
9595 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9596fi
9597
9598if test -n "$ac_config_headers"; then
9599 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9600fi
9601
9602if test -n "$ac_config_links"; then
9603 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9604fi
9605
9606if test -n "$ac_config_commands"; then
9607 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9608fi
9609
a.rottmann84e63352003-03-24 09:42:16 +00009610cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009611
9612ac_cs_usage="\
9613\`$as_me' instantiates files from templates according to the
9614current configuration.
9615
9616Usage: $0 [OPTIONS] [FILE]...
9617
9618 -h, --help print this help, then exit
9619 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +00009620 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +00009621 -d, --debug don't remove temporary files
9622 --recheck update $as_me by reconfiguring in the same conditions
9623 --file=FILE[:TEMPLATE]
9624 instantiate the configuration file FILE
9625
9626Configuration files:
9627$config_files
9628
9629Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +00009630_ACEOF
drh75897232000-05-29 14:26:00 +00009631
a.rottmann84e63352003-03-24 09:42:16 +00009632cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009633ac_cs_version="\\
9634config.status
a.rottmann84e63352003-03-24 09:42:16 +00009635configured by $0, generated by GNU Autoconf 2.57,
drh71eb93e2001-09-28 01:34:43 +00009636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +00009637
drh71eb93e2001-09-28 01:34:43 +00009638Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9639Free Software Foundation, Inc.
9640This config.status script is free software; the Free Software Foundation
9641gives unlimited permission to copy, distribute and modify it."
9642srcdir=$srcdir
9643INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +00009644_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009645
a.rottmann84e63352003-03-24 09:42:16 +00009646cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009647# If no file are specified by the user, then we need to provide default
9648# value. By we need to know if files were specified by the user.
9649ac_need_defaults=:
9650while test $# != 0
9651do
9652 case $1 in
9653 --*=*)
9654 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9655 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +00009656 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +00009657 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009658 -*)
9659 ac_option=$1
9660 ac_optarg=$2
9661 ac_shift=shift
9662 ;;
drh71eb93e2001-09-28 01:34:43 +00009663 *) # This is not an option, so the user has probably given explicit
9664 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009665 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +00009666 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +00009667 esac
9668
a.rottmann84e63352003-03-24 09:42:16 +00009669 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +00009670 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +00009671_ACEOF
9672cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +00009674 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +00009675 --version | --vers* | -V )
9676 echo "$ac_cs_version"; exit 0 ;;
9677 --he | --h)
9678 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +00009679 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +00009680Try \`$0 --help' for more information." >&5
9681echo "$as_me: error: ambiguous option: $1
9682Try \`$0 --help' for more information." >&2;}
9683 { (exit 1); exit 1; }; };;
9684 --help | --hel | -h )
9685 echo "$ac_cs_usage"; exit 0 ;;
9686 --debug | --d* | -d )
9687 debug=: ;;
9688 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +00009689 $ac_shift
9690 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +00009691 ac_need_defaults=false;;
9692 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +00009693 $ac_shift
9694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +00009695 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +00009696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9698 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +00009699
drh71eb93e2001-09-28 01:34:43 +00009700 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +00009701 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +00009702Try \`$0 --help' for more information." >&5
9703echo "$as_me: error: unrecognized option: $1
9704Try \`$0 --help' for more information." >&2;}
9705 { (exit 1); exit 1; }; } ;;
9706
9707 *) ac_config_targets="$ac_config_targets $1" ;;
9708
9709 esac
9710 shift
9711done
9712
a.rottmann84e63352003-03-24 09:42:16 +00009713ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +00009714
a.rottmann84e63352003-03-24 09:42:16 +00009715if $ac_cs_silent; then
9716 exec 6>/dev/null
9717 ac_configure_extra_args="$ac_configure_extra_args --silent"
9718fi
drh71eb93e2001-09-28 01:34:43 +00009719
9720_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009721cat >>$CONFIG_STATUS <<_ACEOF
9722if \$ac_cs_recheck; then
9723 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9724 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9725fi
drh71eb93e2001-09-28 01:34:43 +00009726
a.rottmann84e63352003-03-24 09:42:16 +00009727_ACEOF
9728
9729
9730
9731
9732
9733cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009734for ac_config_target in $ac_config_targets
9735do
9736 case "$ac_config_target" in
9737 # Handling of arguments.
9738 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
a.rottmann84e63352003-03-24 09:42:16 +00009739 "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;;
9740 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +00009741echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9742 { (exit 1); exit 1; }; };;
9743 esac
9744done
9745
9746# If the user did not use the arguments to specify the items to instantiate,
9747# then the envvar interface is used. Set only those that are not.
9748# We use the long form for the default assignment because of an extremely
9749# bizarre bug on SunOS 4.1.3.
9750if $ac_need_defaults; then
9751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9752fi
9753
a.rottmann84e63352003-03-24 09:42:16 +00009754# Have a temporary directory for convenience. Make it in the build tree
9755# simply because there is no reason to put it here, and in addition,
9756# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +00009757# Create a temporary directory, and hook for its removal unless debugging.
9758$debug ||
9759{
9760 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9761 trap '{ (exit 1); exit 1; }' 1 2 13 15
9762}
9763
9764# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +00009765
drh71eb93e2001-09-28 01:34:43 +00009766{
a.rottmann84e63352003-03-24 09:42:16 +00009767 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +00009768 test -n "$tmp" && test -d "$tmp"
9769} ||
9770{
a.rottmann84e63352003-03-24 09:42:16 +00009771 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +00009772 (umask 077 && mkdir $tmp)
9773} ||
9774{
a.rottmann84e63352003-03-24 09:42:16 +00009775 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +00009776 { (exit 1); exit 1; }
9777}
9778
a.rottmann84e63352003-03-24 09:42:16 +00009779_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009780
a.rottmann84e63352003-03-24 09:42:16 +00009781cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009782
9783#
9784# CONFIG_FILES section.
9785#
9786
9787# No need to generate the scripts if there are no CONFIG_FILES.
9788# This happens for instance when ./config.status config.h
9789if test -n "\$CONFIG_FILES"; then
9790 # Protect against being on the right side of a sed subst in config.status.
9791 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9792 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9793s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009794s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9795s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9796s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9797s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9798s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9799s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +00009800s,@exec_prefix@,$exec_prefix,;t t
9801s,@prefix@,$prefix,;t t
9802s,@program_transform_name@,$program_transform_name,;t t
9803s,@bindir@,$bindir,;t t
9804s,@sbindir@,$sbindir,;t t
9805s,@libexecdir@,$libexecdir,;t t
9806s,@datadir@,$datadir,;t t
9807s,@sysconfdir@,$sysconfdir,;t t
9808s,@sharedstatedir@,$sharedstatedir,;t t
9809s,@localstatedir@,$localstatedir,;t t
9810s,@libdir@,$libdir,;t t
9811s,@includedir@,$includedir,;t t
9812s,@oldincludedir@,$oldincludedir,;t t
9813s,@infodir@,$infodir,;t t
9814s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +00009815s,@build_alias@,$build_alias,;t t
9816s,@host_alias@,$host_alias,;t t
9817s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009818s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +00009819s,@ECHO_C@,$ECHO_C,;t t
9820s,@ECHO_N@,$ECHO_N,;t t
9821s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +00009822s,@LIBS@,$LIBS,;t t
9823s,@build@,$build,;t t
9824s,@build_cpu@,$build_cpu,;t t
9825s,@build_vendor@,$build_vendor,;t t
9826s,@build_os@,$build_os,;t t
9827s,@host@,$host,;t t
9828s,@host_cpu@,$host_cpu,;t t
9829s,@host_vendor@,$host_vendor,;t t
9830s,@host_os@,$host_os,;t t
9831s,@CC@,$CC,;t t
9832s,@CFLAGS@,$CFLAGS,;t t
9833s,@LDFLAGS@,$LDFLAGS,;t t
9834s,@CPPFLAGS@,$CPPFLAGS,;t t
9835s,@ac_ct_CC@,$ac_ct_CC,;t t
9836s,@EXEEXT@,$EXEEXT,;t t
9837s,@OBJEXT@,$OBJEXT,;t t
9838s,@LN_S@,$LN_S,;t t
9839s,@ECHO@,$ECHO,;t t
9840s,@RANLIB@,$RANLIB,;t t
9841s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9842s,@STRIP@,$STRIP,;t t
9843s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9844s,@CPP@,$CPP,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009845s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +00009846s,@LIBTOOL@,$LIBTOOL,;t t
9847s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9848s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9849s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9850s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009851s,@VERSION@,$VERSION,;t t
drh71eb93e2001-09-28 01:34:43 +00009852s,@BUILD_CC@,$BUILD_CC,;t t
9853s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
9854s,@BUILD_LIBS@,$BUILD_LIBS,;t t
9855s,@TARGET_CC@,$TARGET_CC,;t t
9856s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
9857s,@TARGET_LINK@,$TARGET_LINK,;t t
9858s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
9859s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
9860s,@TARGET_AR@,$TARGET_AR,;t t
9861s,@ENCODING@,$ENCODING,;t t
9862s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
9863s,@OS_UNIX@,$OS_UNIX,;t t
9864s,@OS_WIN@,$OS_WIN,;t t
9865s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
9866s,@TARGET_LIBS@,$TARGET_LIBS,;t t
9867s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
9868s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
9869s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
9870s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
9871s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009872s,@LIBOBJS@,$LIBOBJS,;t t
9873s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +00009874CEOF
9875
a.rottmann84e63352003-03-24 09:42:16 +00009876_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009877
a.rottmann84e63352003-03-24 09:42:16 +00009878 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009879 # Split the substitutions into bite-sized pieces for seds with
9880 # small command number limits, like on Digital OSF/1 and HP-UX.
9881 ac_max_sed_lines=48
9882 ac_sed_frag=1 # Number of current file.
9883 ac_beg=1 # First line for current file.
9884 ac_end=$ac_max_sed_lines # Line after last line for current file.
9885 ac_more_lines=:
9886 ac_sed_cmds=
9887 while $ac_more_lines; do
9888 if test $ac_beg -gt 1; then
9889 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9890 else
9891 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9892 fi
9893 if test ! -s $tmp/subs.frag; then
9894 ac_more_lines=false
9895 else
9896 # The purpose of the label and of the branching condition is to
9897 # speed up the sed processing (if there are no `@' at all, there
9898 # is no need to browse any of the substitutions).
9899 # These are the two extra sed commands mentioned above.
9900 (echo ':t
9901 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9902 if test -z "$ac_sed_cmds"; then
9903 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9904 else
9905 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9906 fi
9907 ac_sed_frag=`expr $ac_sed_frag + 1`
9908 ac_beg=$ac_end
9909 ac_end=`expr $ac_end + $ac_max_sed_lines`
9910 fi
9911 done
9912 if test -z "$ac_sed_cmds"; then
9913 ac_sed_cmds=cat
9914 fi
9915fi # test -n "$CONFIG_FILES"
9916
a.rottmann84e63352003-03-24 09:42:16 +00009917_ACEOF
9918cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009919for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9921 case $ac_file in
9922 - | *:- | *:-:* ) # input from stdin
9923 cat >$tmp/stdin
9924 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9925 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9926 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9928 * ) ac_file_in=$ac_file.in ;;
9929 esac
9930
9931 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +00009932 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
drh71eb93e2001-09-28 01:34:43 +00009934 X"$ac_file" : 'X\(//\)[^/]' \| \
9935 X"$ac_file" : 'X\(//\)$' \| \
9936 X"$ac_file" : 'X\(/\)' \| \
9937 . : '\(.\)' 2>/dev/null ||
9938echo X"$ac_file" |
9939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9941 /^X\(\/\/\)$/{ s//\1/; q; }
9942 /^X\(\/\).*/{ s//\1/; q; }
9943 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +00009944 { if $as_mkdir_p; then
9945 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +00009946 else
a.rottmann84e63352003-03-24 09:42:16 +00009947 as_dir="$ac_dir"
9948 as_dirs=
9949 while test ! -d "$as_dir"; do
9950 as_dirs="$as_dir $as_dirs"
9951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9952$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9953 X"$as_dir" : 'X\(//\)[^/]' \| \
9954 X"$as_dir" : 'X\(//\)$' \| \
9955 X"$as_dir" : 'X\(/\)' \| \
9956 . : '\(.\)' 2>/dev/null ||
9957echo X"$as_dir" |
9958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9960 /^X\(\/\/\)$/{ s//\1/; q; }
9961 /^X\(\/\).*/{ s//\1/; q; }
9962 s/.*/./; q'`
9963 done
9964 test ! -n "$as_dirs" || mkdir $as_dirs
9965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9966echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9967 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +00009968
a.rottmann84e63352003-03-24 09:42:16 +00009969 ac_builddir=.
9970
9971if test "$ac_dir" != .; then
9972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9973 # A "../" for each directory in $ac_dir_suffix.
9974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9975else
9976 ac_dir_suffix= ac_top_builddir=
9977fi
9978
9979case $srcdir in
9980 .) # No --srcdir option. We are building in place.
9981 ac_srcdir=.
9982 if test -z "$ac_top_builddir"; then
9983 ac_top_srcdir=.
9984 else
9985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9986 fi ;;
9987 [\\/]* | ?:[\\/]* ) # Absolute path.
9988 ac_srcdir=$srcdir$ac_dir_suffix;
9989 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +00009990 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +00009991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9993esac
9994# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9995# absolute.
9996ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9997ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9998ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9999ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10000
drh75897232000-05-29 14:26:00 +000010001
drh71eb93e2001-09-28 01:34:43 +000010002 case $INSTALL in
10003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000010004 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000010005 esac
10006
drh71eb93e2001-09-28 01:34:43 +000010007 if test x"$ac_file" != x-; then
a.rottmann84e63352003-03-24 09:42:16 +000010008 { echo "$as_me:$LINENO: creating $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +000010009echo "$as_me: creating $ac_file" >&6;}
10010 rm -f "$ac_file"
10011 fi
10012 # Let's still pretend it is `configure' which instantiates (i.e., don't
10013 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000010014 # /* config.h. Generated by config.status. */
10015 if test x"$ac_file" = x-; then
10016 configure_input=
10017 else
10018 configure_input="$ac_file. "
10019 fi
10020 configure_input=$configure_input"Generated from `echo $ac_file_in |
10021 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000010022
drh71eb93e2001-09-28 01:34:43 +000010023 # First look for the input files in the build tree, otherwise in the
10024 # src tree.
10025 ac_file_inputs=`IFS=:
10026 for f in $ac_file_in; do
10027 case $f in
10028 -) echo $tmp/stdin ;;
10029 [\\/$]*)
10030 # Absolute (can't be DOS-style, as IFS=:)
a.rottmann84e63352003-03-24 09:42:16 +000010031 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010032echo "$as_me: error: cannot find input file: $f" >&2;}
10033 { (exit 1); exit 1; }; }
10034 echo $f;;
10035 *) # Relative
10036 if test -f "$f"; then
10037 # Build tree
10038 echo $f
10039 elif test -f "$srcdir/$f"; then
10040 # Source tree
10041 echo $srcdir/$f
10042 else
10043 # /dev/null tree
a.rottmann84e63352003-03-24 09:42:16 +000010044 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010045echo "$as_me: error: cannot find input file: $f" >&2;}
10046 { (exit 1); exit 1; }; }
10047 fi;;
10048 esac
10049 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000010050_ACEOF
10051cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010052 sed "$ac_vpsub
10053$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000010054_ACEOF
10055cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010056:t
10057/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10058s,@configure_input@,$configure_input,;t t
10059s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010060s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000010061s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010062s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10063s,@builddir@,$ac_builddir,;t t
10064s,@abs_builddir@,$ac_abs_builddir,;t t
10065s,@top_builddir@,$ac_top_builddir,;t t
10066s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000010067s,@INSTALL@,$ac_INSTALL,;t t
10068" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10069 rm -f $tmp/stdin
10070 if test x"$ac_file" != x-; then
10071 mv $tmp/out $ac_file
10072 else
10073 cat $tmp/out
10074 rm -f $tmp/out
10075 fi
drh75897232000-05-29 14:26:00 +000010076
drh71eb93e2001-09-28 01:34:43 +000010077done
a.rottmann84e63352003-03-24 09:42:16 +000010078_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010079
a.rottmann84e63352003-03-24 09:42:16 +000010080cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010081
10082{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000010083_ACEOF
drh75897232000-05-29 14:26:00 +000010084chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000010085ac_clean_files=$ac_clean_files_save
10086
a.rottmann84e63352003-03-24 09:42:16 +000010087
drh71eb93e2001-09-28 01:34:43 +000010088# configure is writing to config.log, and then calls config.status.
10089# config.status does its own redirection, appending to config.log.
10090# Unfortunately, on DOS this fails, as config.log is still kept open
10091# by configure, so config.status won't be able to write to it; its
10092# output is simply discarded. So we exec the FD to /dev/null,
10093# effectively closing config.log, so it can be properly (re)opened and
10094# appended to by config.status. When coming back to configure, we
10095# need to make the FD available again.
10096if test "$no_create" != yes; then
10097 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000010098 ac_config_status_args=
10099 test "$silent" = yes &&
10100 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000010101 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000010102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000010103 exec 5>>config.log
10104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10105 # would make configure fail if this is the last instruction.
10106 $ac_cs_success || { (exit 1); exit 1; }
10107fi
drh75897232000-05-29 14:26:00 +000010108