blob: 58d3630866919e332aee064e7c24df7695a9d638 [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
paul2dc96f92003-04-20 11:46:34 +0000470ac_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 ALLOWATTACHMEM INMEMORYDB TEMP_STORE 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'
a.rottmann84e63352003-03-24 09:42:16 +0000471ac_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
paulb0208cc2003-04-13 18:26:49 +00001010 --enable-incore-db Support incore database
xdong28f79f72003-09-23 00:35:21 +00001011 --enable-releasemode Support libtool link to release mode
paulb0208cc2003-04-13 18:26:49 +00001012 --enable-tempdb-in-ram Use an in-ram database for temporary tables
drh71eb93e2001-09-28 01:34:43 +00001013
1014Optional Packages:
1015 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1016 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann84e63352003-03-24 09:42:16 +00001017 --with-gnu-ld assume the C compiler uses GNU ld default=no
1018 --with-pic try to use only PIC/non-PIC objects default=use both
drh71eb93e2001-09-28 01:34:43 +00001019 --with-hints=FILE Read configuration options from FILE
1020
1021Some influential environment variables:
1022 CC C compiler command
1023 CFLAGS C compiler flags
1024 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1025 nonstandard directory <lib dir>
1026 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1027 headers in a nonstandard directory <include dir>
1028 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001029
1030Use these variables to override the choices made by `configure' or to help
1031it to find libraries and programs with nonstandard names/locations.
1032
a.rottmann84e63352003-03-24 09:42:16 +00001033_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001034fi
1035
1036if test "$ac_init_help" = "recursive"; then
1037 # If there are subdirs, report their specific --help.
1038 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001039 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1040 test -d $ac_dir || continue
1041 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001042
a.rottmann84e63352003-03-24 09:42:16 +00001043if test "$ac_dir" != .; then
1044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1045 # A "../" for each directory in $ac_dir_suffix.
1046 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1047else
1048 ac_dir_suffix= ac_top_builddir=
1049fi
drh71eb93e2001-09-28 01:34:43 +00001050
a.rottmann84e63352003-03-24 09:42:16 +00001051case $srcdir in
1052 .) # No --srcdir option. We are building in place.
1053 ac_srcdir=.
1054 if test -z "$ac_top_builddir"; then
1055 ac_top_srcdir=.
1056 else
1057 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1058 fi ;;
1059 [\\/]* | ?:[\\/]* ) # Absolute path.
1060 ac_srcdir=$srcdir$ac_dir_suffix;
1061 ac_top_srcdir=$srcdir ;;
1062 *) # Relative path.
1063 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1064 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1065esac
1066# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1067# absolute.
1068ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1069ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1070ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1071ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1072
1073 cd $ac_dir
drh71eb93e2001-09-28 01:34:43 +00001074 # Check for guested configure; otherwise get Cygnus style configure.
a.rottmann84e63352003-03-24 09:42:16 +00001075 if test -f $ac_srcdir/configure.gnu; then
drh71eb93e2001-09-28 01:34:43 +00001076 echo
a.rottmann84e63352003-03-24 09:42:16 +00001077 $SHELL $ac_srcdir/configure.gnu --help=recursive
1078 elif test -f $ac_srcdir/configure; then
drh71eb93e2001-09-28 01:34:43 +00001079 echo
a.rottmann84e63352003-03-24 09:42:16 +00001080 $SHELL $ac_srcdir/configure --help=recursive
1081 elif test -f $ac_srcdir/configure.ac ||
1082 test -f $ac_srcdir/configure.in; then
drh71eb93e2001-09-28 01:34:43 +00001083 echo
1084 $ac_configure --help
1085 else
a.rottmann84e63352003-03-24 09:42:16 +00001086 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
drh71eb93e2001-09-28 01:34:43 +00001087 fi
1088 cd $ac_popdir
1089 done
1090fi
1091
1092test -n "$ac_init_help" && exit 0
1093if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001094 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001095
a.rottmann84e63352003-03-24 09:42:16 +00001096Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
drh71eb93e2001-09-28 01:34:43 +00001097Free Software Foundation, Inc.
1098This configure script is free software; the Free Software Foundation
1099gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001100_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001101 exit 0
1102fi
1103exec 5>config.log
a.rottmann84e63352003-03-24 09:42:16 +00001104cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001105This file contains any messages produced by compilers while
1106running configure, to aid debugging if configure makes a mistake.
1107
1108It was created by $as_me, which was
a.rottmann84e63352003-03-24 09:42:16 +00001109generated by GNU Autoconf 2.57. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001110
1111 $ $0 $@
1112
a.rottmann84e63352003-03-24 09:42:16 +00001113_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001114{
1115cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001116## --------- ##
1117## Platform. ##
1118## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001119
1120hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124uname -v = `(uname -v) 2>/dev/null || echo unknown`
1125
1126/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1128
1129/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1130/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1131/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1133/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1134/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1135/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1136
drh71eb93e2001-09-28 01:34:43 +00001137_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001138
1139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1140for as_dir in $PATH
1141do
1142 IFS=$as_save_IFS
1143 test -z "$as_dir" && as_dir=.
1144 echo "PATH: $as_dir"
1145done
1146
drh71eb93e2001-09-28 01:34:43 +00001147} >&5
1148
a.rottmann84e63352003-03-24 09:42:16 +00001149cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001150
a.rottmann84e63352003-03-24 09:42:16 +00001151
1152## ----------- ##
1153## Core tests. ##
1154## ----------- ##
1155
1156_ACEOF
1157
drh71eb93e2001-09-28 01:34:43 +00001158
1159# Keep a trace of the command line.
1160# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001161# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001162# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001163# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001164ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001165ac_configure_args0=
1166ac_configure_args1=
drh71eb93e2001-09-28 01:34:43 +00001167ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001168ac_must_keep_next=false
1169for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001170do
a.rottmann84e63352003-03-24 09:42:16 +00001171 for ac_arg
1172 do
1173 case $ac_arg in
1174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 continue ;;
1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1180 esac
1181 case $ac_pass in
1182 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1183 2)
1184 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1185 if test $ac_must_keep_next = true; then
1186 ac_must_keep_next=false # Got value, back to normal.
1187 else
1188 case $ac_arg in
1189 *=* | --config-cache | -C | -disable-* | --disable-* \
1190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1192 | -with-* | --with-* | -without-* | --without-* | --x)
1193 case "$ac_configure_args0 " in
1194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1195 esac
1196 ;;
1197 -* ) ac_must_keep_next=true ;;
1198 esac
1199 fi
1200 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1201 # Get rid of the leading space.
1202 ac_sep=" "
1203 ;;
1204 esac
1205 done
drh71eb93e2001-09-28 01:34:43 +00001206done
a.rottmann84e63352003-03-24 09:42:16 +00001207$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1208$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001209
1210# When interrupted or exit'd, cleanup temporary files, and complete
1211# config.log. We remove comments because anyway the quotes in there
1212# would cause problems or look ugly.
a.rottmann84e63352003-03-24 09:42:16 +00001213# WARNING: Be sure not to use single quotes in there, as some shells,
1214# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001215trap 'exit_status=$?
1216 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001217 {
1218 echo
1219
1220 cat <<\_ASBOX
1221## ---------------- ##
1222## Cache variables. ##
1223## ---------------- ##
1224_ASBOX
1225 echo
1226 # The following way of writing the cache mishandles newlines in values,
drh71eb93e2001-09-28 01:34:43 +00001227{
1228 (set) 2>&1 |
1229 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1230 *ac_space=\ *)
1231 sed -n \
1232 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1234 ;;
1235 *)
1236 sed -n \
1237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1238 ;;
1239 esac;
a.rottmann84e63352003-03-24 09:42:16 +00001240}
1241 echo
1242
1243 cat <<\_ASBOX
1244## ----------------- ##
1245## Output variables. ##
1246## ----------------- ##
1247_ASBOX
1248 echo
1249 for ac_var in $ac_subst_vars
1250 do
1251 eval ac_val=$`echo $ac_var`
1252 echo "$ac_var='"'"'$ac_val'"'"'"
1253 done | sort
1254 echo
1255
1256 if test -n "$ac_subst_files"; then
1257 cat <<\_ASBOX
1258## ------------- ##
1259## Output files. ##
1260## ------------- ##
1261_ASBOX
1262 echo
1263 for ac_var in $ac_subst_files
1264 do
1265 eval ac_val=$`echo $ac_var`
1266 echo "$ac_var='"'"'$ac_val'"'"'"
1267 done | sort
1268 echo
1269 fi
1270
1271 if test -s confdefs.h; then
1272 cat <<\_ASBOX
1273## ----------- ##
1274## confdefs.h. ##
1275## ----------- ##
1276_ASBOX
1277 echo
1278 sed "/^$/d" confdefs.h | sort
1279 echo
1280 fi
1281 test "$ac_signal" != 0 &&
1282 echo "$as_me: caught signal $ac_signal"
1283 echo "$as_me: exit $exit_status"
1284 } >&5
1285 rm -f core core.* *.core &&
1286 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001287 exit $exit_status
1288 ' 0
1289for ac_signal in 1 2 13 15; do
1290 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1291done
1292ac_signal=0
1293
1294# confdefs.h avoids OS command line length limits that DEFS can exceed.
1295rm -rf conftest* confdefs.h
1296# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1297echo >confdefs.h
1298
a.rottmann84e63352003-03-24 09:42:16 +00001299# Predefined preprocessor variables.
1300
1301cat >>confdefs.h <<_ACEOF
1302#define PACKAGE_NAME "$PACKAGE_NAME"
1303_ACEOF
1304
1305
1306cat >>confdefs.h <<_ACEOF
1307#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1308_ACEOF
1309
1310
1311cat >>confdefs.h <<_ACEOF
1312#define PACKAGE_VERSION "$PACKAGE_VERSION"
1313_ACEOF
1314
1315
1316cat >>confdefs.h <<_ACEOF
1317#define PACKAGE_STRING "$PACKAGE_STRING"
1318_ACEOF
1319
1320
1321cat >>confdefs.h <<_ACEOF
1322#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1323_ACEOF
1324
1325
drh71eb93e2001-09-28 01:34:43 +00001326# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001327# Prefer explicitly selected file to automatically selected ones.
1328if test -z "$CONFIG_SITE"; then
1329 if test "x$prefix" != xNONE; then
1330 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1331 else
1332 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1333 fi
1334fi
1335for ac_site_file in $CONFIG_SITE; do
1336 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001337 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001338echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001339 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001340 . "$ac_site_file"
1341 fi
1342done
1343
1344if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001345 # Some versions of bash will fail to source /dev/null (special
1346 # files actually), so we avoid doing that.
1347 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001348 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001349echo "$as_me: loading cache $cache_file" >&6;}
1350 case $cache_file in
1351 [\\/]* | ?:[\\/]* ) . $cache_file;;
1352 *) . ./$cache_file;;
1353 esac
1354 fi
drh75897232000-05-29 14:26:00 +00001355else
a.rottmann84e63352003-03-24 09:42:16 +00001356 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001357echo "$as_me: creating cache $cache_file" >&6;}
1358 >$cache_file
1359fi
1360
1361# Check that the precious variables saved in the cache have kept the same
1362# value.
1363ac_cache_corrupted=false
1364for ac_var in `(set) 2>&1 |
1365 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1367 eval ac_new_set=\$ac_env_${ac_var}_set
1368 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1369 eval ac_new_val="\$ac_env_${ac_var}_value"
1370 case $ac_old_set,$ac_new_set in
1371 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001372 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001373echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1374 ac_cache_corrupted=: ;;
1375 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001376 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001377echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1378 ac_cache_corrupted=: ;;
1379 ,);;
1380 *)
1381 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann84e63352003-03-24 09:42:16 +00001382 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001383echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001384 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001385echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001386 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001387echo "$as_me: current value: $ac_new_val" >&2;}
1388 ac_cache_corrupted=:
1389 fi;;
1390 esac
a.rottmann84e63352003-03-24 09:42:16 +00001391 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001392 if test "$ac_new_set" = set; then
1393 case $ac_new_val in
1394 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
a.rottmann84e63352003-03-24 09:42:16 +00001395 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1396 *) ac_arg=$ac_var=$ac_new_val ;;
1397 esac
1398 case " $ac_configure_args " in
1399 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1400 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001401 esac
1402 fi
1403done
1404if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001405 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001406echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001407 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001408echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1409 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001410fi
1411
1412ac_ext=c
drh75897232000-05-29 14:26:00 +00001413ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1416ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001417
a.rottmann84e63352003-03-24 09:42:16 +00001418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
drh75897232000-05-29 14:26:00 +00001436
1437# The following RCS revision string applies to configure.in
xdong28f79f72003-09-23 00:35:21 +00001438# $Revision: 1.18 $
drh75897232000-05-29 14:26:00 +00001439
1440#########
drh71eb93e2001-09-28 01:34:43 +00001441# Programs needed
drh75897232000-05-29 14:26:00 +00001442#
drh71eb93e2001-09-28 01:34:43 +00001443# Check whether --enable-shared or --disable-shared was given.
1444if test "${enable_shared+set}" = set; then
1445 enableval="$enable_shared"
1446 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001447case $enableval in
1448yes) enable_shared=yes ;;
1449no) enable_shared=no ;;
1450*)
1451 enable_shared=no
1452 # Look at the argument we got. We use all the common list separators.
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1454 for pkg in $enableval; do
1455 if test "X$pkg" = "X$p"; then
1456 enable_shared=yes
1457 fi
1458 done
1459 IFS="$ac_save_ifs"
1460 ;;
1461esac
drh71eb93e2001-09-28 01:34:43 +00001462else
1463 enable_shared=yes
1464fi;
drh71eb93e2001-09-28 01:34:43 +00001465# Check whether --enable-static or --disable-static was given.
1466if test "${enable_static+set}" = set; then
1467 enableval="$enable_static"
1468 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001469case $enableval in
1470yes) enable_static=yes ;;
1471no) enable_static=no ;;
1472*)
1473 enable_static=no
1474 # Look at the argument we got. We use all the common list separators.
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1476 for pkg in $enableval; do
1477 if test "X$pkg" = "X$p"; then
1478 enable_static=yes
1479 fi
1480 done
1481 IFS="$ac_save_ifs"
1482 ;;
1483esac
drh71eb93e2001-09-28 01:34:43 +00001484else
1485 enable_static=yes
1486fi;
drh71eb93e2001-09-28 01:34:43 +00001487# Check whether --enable-fast-install or --disable-fast-install was given.
1488if test "${enable_fast_install+set}" = set; then
1489 enableval="$enable_fast_install"
1490 p=${PACKAGE-default}
a.rottmann84e63352003-03-24 09:42:16 +00001491case $enableval in
1492yes) enable_fast_install=yes ;;
1493no) enable_fast_install=no ;;
1494*)
1495 enable_fast_install=no
1496 # Look at the argument we got. We use all the common list separators.
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1498 for pkg in $enableval; do
1499 if test "X$pkg" = "X$p"; then
1500 enable_fast_install=yes
1501 fi
1502 done
1503 IFS="$ac_save_ifs"
1504 ;;
1505esac
drh71eb93e2001-09-28 01:34:43 +00001506else
1507 enable_fast_install=yes
1508fi;
drh71eb93e2001-09-28 01:34:43 +00001509ac_aux_dir=
1510for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1511 if test -f $ac_dir/install-sh; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/install-sh -c"
1514 break
1515 elif test -f $ac_dir/install.sh; then
1516 ac_aux_dir=$ac_dir
1517 ac_install_sh="$ac_aux_dir/install.sh -c"
1518 break
1519 elif test -f $ac_dir/shtool; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/shtool install -c"
1522 break
1523 fi
1524done
1525if test -z "$ac_aux_dir"; then
a.rottmann84e63352003-03-24 09:42:16 +00001526 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
drh71eb93e2001-09-28 01:34:43 +00001527echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1528 { (exit 1); exit 1; }; }
1529fi
1530ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1533
1534# Make sure we can run config.sub.
1535$ac_config_sub sun4 >/dev/null 2>&1 ||
a.rottmann84e63352003-03-24 09:42:16 +00001536 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
drh71eb93e2001-09-28 01:34:43 +00001537echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1538 { (exit 1); exit 1; }; }
1539
a.rottmann84e63352003-03-24 09:42:16 +00001540echo "$as_me:$LINENO: checking build system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001541echo $ECHO_N "checking build system type... $ECHO_C" >&6
1542if test "${ac_cv_build+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545 ac_cv_build_alias=$build_alias
1546test -z "$ac_cv_build_alias" &&
1547 ac_cv_build_alias=`$ac_config_guess`
1548test -z "$ac_cv_build_alias" &&
a.rottmann84e63352003-03-24 09:42:16 +00001549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00001550echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1551 { (exit 1); exit 1; }; }
1552ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1554echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001555 { (exit 1); exit 1; }; }
1556
1557fi
a.rottmann84e63352003-03-24 09:42:16 +00001558echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh71eb93e2001-09-28 01:34:43 +00001559echo "${ECHO_T}$ac_cv_build" >&6
1560build=$ac_cv_build
1561build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
a.rottmann84e63352003-03-24 09:42:16 +00001565
1566echo "$as_me:$LINENO: checking host system type" >&5
drh71eb93e2001-09-28 01:34:43 +00001567echo $ECHO_N "checking host system type... $ECHO_C" >&6
1568if test "${ac_cv_host+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 ac_cv_host_alias=$host_alias
1572test -z "$ac_cv_host_alias" &&
1573 ac_cv_host_alias=$ac_cv_build_alias
1574ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
a.rottmann84e63352003-03-24 09:42:16 +00001575 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
drh71eb93e2001-09-28 01:34:43 +00001576echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1577 { (exit 1); exit 1; }; }
1578
1579fi
a.rottmann84e63352003-03-24 09:42:16 +00001580echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh71eb93e2001-09-28 01:34:43 +00001581echo "${ECHO_T}$ac_cv_host" >&6
1582host=$ac_cv_host
1583host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
a.rottmann84e63352003-03-24 09:42:16 +00001587
drh71eb93e2001-09-28 01:34:43 +00001588ac_ext=c
1589ac_cpp='$CPP $CPPFLAGS'
1590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1592ac_compiler_gnu=$ac_cv_c_compiler_gnu
1593if test -n "$ac_tool_prefix"; then
1594 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1595set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001596echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598if test "${ac_cv_prog_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 if test -n "$CC"; then
1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1603else
a.rottmann84e63352003-03-24 09:42:16 +00001604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607 IFS=$as_save_IFS
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 break 2
1614 fi
1615done
drh71eb93e2001-09-28 01:34:43 +00001616done
1617
1618fi
1619fi
1620CC=$ac_cv_prog_CC
1621if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001622 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001623echo "${ECHO_T}$CC" >&6
1624else
a.rottmann84e63352003-03-24 09:42:16 +00001625 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001626echo "${ECHO_T}no" >&6
1627fi
1628
1629fi
1630if test -z "$ac_cv_prog_CC"; then
1631 ac_ct_CC=$CC
1632 # Extract the first word of "gcc", so it can be a program name with args.
1633set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001634echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1641else
a.rottmann84e63352003-03-24 09:42:16 +00001642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_ac_ct_CC="gcc"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651 break 2
1652 fi
1653done
drh71eb93e2001-09-28 01:34:43 +00001654done
1655
1656fi
1657fi
1658ac_ct_CC=$ac_cv_prog_ac_ct_CC
1659if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001660 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001661echo "${ECHO_T}$ac_ct_CC" >&6
1662else
a.rottmann84e63352003-03-24 09:42:16 +00001663 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001664echo "${ECHO_T}no" >&6
1665fi
1666
1667 CC=$ac_ct_CC
1668else
1669 CC="$ac_cv_prog_CC"
1670fi
1671
1672if test -z "$CC"; then
1673 if test -n "$ac_tool_prefix"; then
1674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1675set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001676echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_prog_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681 if test -n "$CC"; then
1682 ac_cv_prog_CC="$CC" # Let the user override the test.
1683else
a.rottmann84e63352003-03-24 09:42:16 +00001684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_CC="${ac_tool_prefix}cc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693 break 2
1694 fi
1695done
drh71eb93e2001-09-28 01:34:43 +00001696done
1697
1698fi
1699fi
1700CC=$ac_cv_prog_CC
1701if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001702 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001703echo "${ECHO_T}$CC" >&6
1704else
a.rottmann84e63352003-03-24 09:42:16 +00001705 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001706echo "${ECHO_T}no" >&6
1707fi
1708
1709fi
1710if test -z "$ac_cv_prog_CC"; then
1711 ac_ct_CC=$CC
1712 # Extract the first word of "cc", so it can be a program name with args.
1713set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001714echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719 if test -n "$ac_ct_CC"; then
1720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721else
a.rottmann84e63352003-03-24 09:42:16 +00001722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_CC="cc"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1732 fi
1733done
drh71eb93e2001-09-28 01:34:43 +00001734done
1735
1736fi
1737fi
1738ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001741echo "${ECHO_T}$ac_ct_CC" >&6
1742else
a.rottmann84e63352003-03-24 09:42:16 +00001743 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001744echo "${ECHO_T}no" >&6
1745fi
1746
1747 CC=$ac_ct_CC
1748else
1749 CC="$ac_cv_prog_CC"
1750fi
1751
1752fi
1753if test -z "$CC"; then
1754 # Extract the first word of "cc", so it can be a program name with args.
1755set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001756echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758if test "${ac_cv_prog_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761 if test -n "$CC"; then
1762 ac_cv_prog_CC="$CC" # Let the user override the test.
1763else
1764 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766for as_dir in $PATH
1767do
1768 IFS=$as_save_IFS
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1773 ac_prog_rejected=yes
1774 continue
1775 fi
1776 ac_cv_prog_CC="cc"
1777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778 break 2
1779 fi
1780done
drh71eb93e2001-09-28 01:34:43 +00001781done
1782
1783if test $ac_prog_rejected = yes; then
1784 # We found a bogon in the path, so make sure we never use it.
1785 set dummy $ac_cv_prog_CC
1786 shift
1787 if test $# != 0; then
1788 # We chose a different compiler from the bogus one.
1789 # However, it has the same basename, so the bogon will be chosen
1790 # first if we set CC to just the basename; use the full file name.
1791 shift
a.rottmann84e63352003-03-24 09:42:16 +00001792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001793 fi
1794fi
1795fi
1796fi
1797CC=$ac_cv_prog_CC
1798if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001799 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001800echo "${ECHO_T}$CC" >&6
1801else
a.rottmann84e63352003-03-24 09:42:16 +00001802 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001803echo "${ECHO_T}no" >&6
1804fi
1805
1806fi
1807if test -z "$CC"; then
1808 if test -n "$ac_tool_prefix"; then
1809 for ac_prog in cl
1810 do
1811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001813echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815if test "${ac_cv_prog_CC+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 if test -n "$CC"; then
1819 ac_cv_prog_CC="$CC" # Let the user override the test.
1820else
a.rottmann84e63352003-03-24 09:42:16 +00001821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1831 fi
1832done
drh71eb93e2001-09-28 01:34:43 +00001833done
1834
1835fi
1836fi
1837CC=$ac_cv_prog_CC
1838if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001839 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001840echo "${ECHO_T}$CC" >&6
1841else
a.rottmann84e63352003-03-24 09:42:16 +00001842 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001843echo "${ECHO_T}no" >&6
1844fi
1845
1846 test -n "$CC" && break
1847 done
1848fi
1849if test -z "$CC"; then
1850 ac_ct_CC=$CC
1851 for ac_prog in cl
1852do
1853 # Extract the first word of "$ac_prog", so it can be a program name with args.
1854set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00001855echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00001856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860 if test -n "$ac_ct_CC"; then
1861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862else
a.rottmann84e63352003-03-24 09:42:16 +00001863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_ac_ct_CC="$ac_prog"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872 break 2
1873 fi
1874done
drh71eb93e2001-09-28 01:34:43 +00001875done
1876
1877fi
1878fi
1879ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00001881 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00001882echo "${ECHO_T}$ac_ct_CC" >&6
1883else
a.rottmann84e63352003-03-24 09:42:16 +00001884 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00001885echo "${ECHO_T}no" >&6
1886fi
1887
1888 test -n "$ac_ct_CC" && break
1889done
1890
1891 CC=$ac_ct_CC
1892fi
1893
1894fi
1895
a.rottmann84e63352003-03-24 09:42:16 +00001896
1897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1898See \`config.log' for more details." >&5
1899echo "$as_me: error: no acceptable C compiler found in \$PATH
1900See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001901 { (exit 1); exit 1; }; }
1902
1903# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00001904echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00001905 "checking for C compiler version" >&5
1906ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00001907{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001908 (eval $ac_compiler --version </dev/null >&5) 2>&5
1909 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001911 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001913 (eval $ac_compiler -v </dev/null >&5) 2>&5
1914 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001916 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00001917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001918 (eval $ac_compiler -V </dev/null >&5) 2>&5
1919 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001921 (exit $ac_status); }
1922
1923cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001924#line $LINENO "configure"
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001930
1931int
1932main ()
1933{
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00001940ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00001941# Try to create an executable without -o first, disregard a.out.
1942# It will help us diagnose broken compilers, and finding out an intuition
1943# of exeext.
a.rottmann84e63352003-03-24 09:42:16 +00001944echo "$as_me:$LINENO: checking for C compiler default output" >&5
drh71eb93e2001-09-28 01:34:43 +00001945echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1946ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
a.rottmann84e63352003-03-24 09:42:16 +00001947if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
drh71eb93e2001-09-28 01:34:43 +00001948 (eval $ac_link_default) 2>&5
1949 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00001950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001951 (exit $ac_status); }; then
1952 # Find the output, starting from the most likely. This scheme is
1953# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1954# resort.
a.rottmann84e63352003-03-24 09:42:16 +00001955
1956# Be careful to initialize this variable, since it used to be cached.
1957# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1958ac_cv_exeext=
1959# b.out is created by i960 compilers.
1960for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1961do
1962 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00001963 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00001964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1965 ;;
1966 conftest.$ac_ext )
1967 # This is the source file.
1968 ;;
1969 [ab].out )
1970 # We found the default executable, but exeext='' is most
1971 # certainly right.
1972 break;;
1973 *.* )
1974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975 # FIXME: I believe we export ac_cv_exeext for Libtool,
1976 # but it would be cool to find out if it's true. Does anybody
1977 # maintain Libtool? --akim.
1978 export ac_cv_exeext
1979 break;;
1980 * )
1981 break;;
drh71eb93e2001-09-28 01:34:43 +00001982 esac
1983done
1984else
1985 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1989See \`config.log' for more details." >&5
1990echo "$as_me: error: C compiler cannot create executables
1991See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001992 { (exit 77); exit 77; }; }
1993fi
1994
1995ac_exeext=$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00001996echo "$as_me:$LINENO: result: $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001997echo "${ECHO_T}$ac_file" >&6
1998
1999# Check the compiler produces executables we can run. If not, either
2000# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002001echo "$as_me:$LINENO: checking whether the C compiler works" >&5
drh71eb93e2001-09-28 01:34:43 +00002002echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004# If not cross compiling, check that we can run a simple program.
2005if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
a.rottmann84e63352003-03-24 09:42:16 +00002007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002008 (eval $ac_try) 2>&5
2009 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002011 (exit $ac_status); }; }; then
2012 cross_compiling=no
2013 else
2014 if test "$cross_compiling" = maybe; then
2015 cross_compiling=yes
2016 else
a.rottmann84e63352003-03-24 09:42:16 +00002017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018If you meant to cross compile, use \`--host'.
2019See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002020echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002021If you meant to cross compile, use \`--host'.
2022See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002023 { (exit 1); exit 1; }; }
2024 fi
2025 fi
2026fi
a.rottmann84e63352003-03-24 09:42:16 +00002027echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002028echo "${ECHO_T}yes" >&6
2029
a.rottmann84e63352003-03-24 09:42:16 +00002030rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002031ac_clean_files=$ac_clean_files_save
2032# Check the compiler produces executables we can run. If not, either
2033# the compiler is broken, or we cross compile.
a.rottmann84e63352003-03-24 09:42:16 +00002034echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002035echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002036echo "$as_me:$LINENO: result: $cross_compiling" >&5
drh71eb93e2001-09-28 01:34:43 +00002037echo "${ECHO_T}$cross_compiling" >&6
2038
a.rottmann84e63352003-03-24 09:42:16 +00002039echo "$as_me:$LINENO: checking for suffix of executables" >&5
2040echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002042 (eval $ac_link) 2>&5
2043 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002045 (exit $ac_status); }; then
2046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2047# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2048# work properly (i.e., refer to `conftest.exe'), while it won't with
2049# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002050for ac_file in conftest.exe conftest conftest.*; do
2051 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002052 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2055 export ac_cv_exeext
2056 break;;
2057 * ) break;;
2058 esac
2059done
2060else
a.rottmann84e63352003-03-24 09:42:16 +00002061 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2064See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002065 { (exit 1); exit 1; }; }
2066fi
2067
2068rm -f conftest$ac_cv_exeext
a.rottmann84e63352003-03-24 09:42:16 +00002069echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh71eb93e2001-09-28 01:34:43 +00002070echo "${ECHO_T}$ac_cv_exeext" >&6
2071
2072rm -f conftest.$ac_ext
2073EXEEXT=$ac_cv_exeext
2074ac_exeext=$EXEEXT
a.rottmann84e63352003-03-24 09:42:16 +00002075echo "$as_me:$LINENO: checking for suffix of object files" >&5
2076echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002077if test "${ac_cv_objext+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002081#line $LINENO "configure"
2082/* confdefs.h. */
2083_ACEOF
2084cat confdefs.h >>conftest.$ac_ext
2085cat >>conftest.$ac_ext <<_ACEOF
2086/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002087
2088int
2089main ()
2090{
2091
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096rm -f conftest.o conftest.obj
a.rottmann84e63352003-03-24 09:42:16 +00002097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002098 (eval $ac_compile) 2>&5
2099 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002101 (exit $ac_status); }; then
2102 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2103 case $ac_file in
a.rottmann84e63352003-03-24 09:42:16 +00002104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2106 break;;
2107 esac
2108done
2109else
2110 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of object files: cannot compile
2116See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002117 { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest.$ac_cv_objext conftest.$ac_ext
2121fi
a.rottmann84e63352003-03-24 09:42:16 +00002122echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00002123echo "${ECHO_T}$ac_cv_objext" >&6
2124OBJEXT=$ac_cv_objext
2125ac_objext=$OBJEXT
a.rottmann84e63352003-03-24 09:42:16 +00002126echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00002127echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2128if test "${ac_cv_c_compiler_gnu+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002132#line $LINENO "configure"
2133/* confdefs.h. */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002138
2139int
2140main ()
2141{
2142#ifndef __GNUC__
2143 choke me
2144#endif
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002152 (eval $ac_compile) 2>&5
2153 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002155 (exit $ac_status); } &&
2156 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002158 (eval $ac_try) 2>&5
2159 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002161 (exit $ac_status); }; }; then
2162 ac_compiler_gnu=yes
2163else
2164 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002165sed 's/^/| /' conftest.$ac_ext >&5
2166
drh71eb93e2001-09-28 01:34:43 +00002167ac_compiler_gnu=no
2168fi
2169rm -f conftest.$ac_objext conftest.$ac_ext
2170ac_cv_c_compiler_gnu=$ac_compiler_gnu
2171
2172fi
a.rottmann84e63352003-03-24 09:42:16 +00002173echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00002174echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2175GCC=`test $ac_compiler_gnu = yes && echo yes`
2176ac_test_CFLAGS=${CFLAGS+set}
2177ac_save_CFLAGS=$CFLAGS
2178CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00002179echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00002180echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2181if test "${ac_cv_prog_cc_g+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002185#line $LINENO "configure"
2186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002191
2192int
2193main ()
2194{
2195
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002202 (eval $ac_compile) 2>&5
2203 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002205 (exit $ac_status); } &&
2206 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002208 (eval $ac_try) 2>&5
2209 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_g=yes
2213else
2214 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002215sed 's/^/| /' conftest.$ac_ext >&5
2216
drh71eb93e2001-09-28 01:34:43 +00002217ac_cv_prog_cc_g=no
2218fi
2219rm -f conftest.$ac_objext conftest.$ac_ext
2220fi
a.rottmann84e63352003-03-24 09:42:16 +00002221echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00002222echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2223if test "$ac_test_CFLAGS" = set; then
2224 CFLAGS=$ac_save_CFLAGS
2225elif test $ac_cv_prog_cc_g = yes; then
2226 if test "$GCC" = yes; then
2227 CFLAGS="-g -O2"
2228 else
2229 CFLAGS="-g"
2230 fi
2231else
2232 if test "$GCC" = yes; then
2233 CFLAGS="-O2"
2234 else
2235 CFLAGS=
2236 fi
2237fi
a.rottmann84e63352003-03-24 09:42:16 +00002238echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2239echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2240if test "${ac_cv_prog_cc_stdc+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242else
2243 ac_cv_prog_cc_stdc=no
2244ac_save_CC=$CC
2245cat >conftest.$ac_ext <<_ACEOF
2246#line $LINENO "configure"
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252#include <stdarg.h>
2253#include <stdio.h>
2254#include <sys/types.h>
2255#include <sys/stat.h>
2256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2257struct buf { int x; };
2258FILE * (*rcsopen) (struct buf *, struct stat *, int);
2259static char *e (p, i)
2260 char **p;
2261 int i;
2262{
2263 return p[i];
2264}
2265static char *f (char * (*g) (char **, int), char **p, ...)
2266{
2267 char *s;
2268 va_list v;
2269 va_start (v,p);
2270 s = g (p, va_arg (v,int));
2271 va_end (v);
2272 return s;
2273}
2274int test (int i, double x);
2275struct s1 {int (*f) (int a);};
2276struct s2 {int (*f) (double a);};
2277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2278int argc;
2279char **argv;
2280int
2281main ()
2282{
2283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2284 ;
2285 return 0;
2286}
2287_ACEOF
2288# Don't try gcc -ansi; that turns off useful extensions and
2289# breaks some systems' header files.
2290# AIX -qlanglvl=ansi
2291# Ultrix and OSF/1 -std1
2292# HP-UX 10.20 and later -Ae
2293# HP-UX older versions -Aa -D_HPUX_SOURCE
2294# SVR4 -Xc -D__EXTENSIONS__
2295for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2296do
2297 CC="$ac_save_CC $ac_arg"
2298 rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 ac_cv_prog_cc_stdc=$ac_arg
2311break
2312else
2313 echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316fi
2317rm -f conftest.$ac_objext
2318done
2319rm -f conftest.$ac_ext conftest.$ac_objext
2320CC=$ac_save_CC
2321
2322fi
2323
2324case "x$ac_cv_prog_cc_stdc" in
2325 x|xno)
2326 echo "$as_me:$LINENO: result: none needed" >&5
2327echo "${ECHO_T}none needed" >&6 ;;
2328 *)
2329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2330echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2331 CC="$CC $ac_cv_prog_cc_stdc" ;;
2332esac
2333
drh71eb93e2001-09-28 01:34:43 +00002334# Some people use a C++ compiler to compile C. Since we use `exit',
2335# in C++ we need to declare it. In case someone uses the same compiler
2336# for both compiling C and C++ we need to have the C++ compiler decide
2337# the declaration of exit, since it's the most demanding environment.
2338cat >conftest.$ac_ext <<_ACEOF
2339#ifndef __cplusplus
2340 choke me
2341#endif
2342_ACEOF
2343rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002345 (eval $ac_compile) 2>&5
2346 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002348 (exit $ac_status); } &&
2349 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002351 (eval $ac_try) 2>&5
2352 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002354 (exit $ac_status); }; }; then
2355 for ac_declaration in \
2356 ''\
2357 '#include <stdlib.h>' \
2358 'extern "C" void std::exit (int) throw (); using std::exit;' \
2359 'extern "C" void std::exit (int); using std::exit;' \
2360 'extern "C" void exit (int) throw ();' \
2361 'extern "C" void exit (int);' \
2362 'void exit (int);'
2363do
2364 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002365#line $LINENO "configure"
2366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002371#include <stdlib.h>
2372$ac_declaration
2373int
2374main ()
2375{
2376exit (42);
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002383 (eval $ac_compile) 2>&5
2384 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002386 (exit $ac_status); } &&
2387 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002389 (eval $ac_try) 2>&5
2390 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002392 (exit $ac_status); }; }; then
2393 :
2394else
2395 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002396sed 's/^/| /' conftest.$ac_ext >&5
2397
drh71eb93e2001-09-28 01:34:43 +00002398continue
2399fi
2400rm -f conftest.$ac_objext conftest.$ac_ext
2401 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002402#line $LINENO "configure"
2403/* confdefs.h. */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002408$ac_declaration
2409int
2410main ()
2411{
2412exit (42);
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002419 (eval $ac_compile) 2>&5
2420 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002422 (exit $ac_status); } &&
2423 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00002424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002425 (eval $ac_try) 2>&5
2426 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002428 (exit $ac_status); }; }; then
2429 break
2430else
2431 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002432sed 's/^/| /' conftest.$ac_ext >&5
2433
drh71eb93e2001-09-28 01:34:43 +00002434fi
2435rm -f conftest.$ac_objext conftest.$ac_ext
2436done
2437rm -f conftest*
2438if test -n "$ac_declaration"; then
2439 echo '#ifdef __cplusplus' >>confdefs.h
2440 echo $ac_declaration >>confdefs.h
2441 echo '#endif' >>confdefs.h
2442fi
2443
2444else
2445 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002446sed 's/^/| /' conftest.$ac_ext >&5
2447
drh71eb93e2001-09-28 01:34:43 +00002448fi
2449rm -f conftest.$ac_objext conftest.$ac_ext
2450ac_ext=c
2451ac_cpp='$CPP $CPPFLAGS'
2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
a.rottmann84e63352003-03-24 09:42:16 +00002456# Find the correct PATH separator. Usually this is `:', but
2457# DJGPP uses `;' like DOS.
2458if test "X${PATH_SEPARATOR+set}" != Xset; then
2459 UNAME=${UNAME-`uname 2>/dev/null`}
2460 case X$UNAME in
2461 *-DOS) lt_cv_sys_path_separator=';' ;;
2462 *) lt_cv_sys_path_separator=':' ;;
2463 esac
2464 PATH_SEPARATOR=$lt_cv_sys_path_separator
2465fi
2466
2467
drh71eb93e2001-09-28 01:34:43 +00002468# Check whether --with-gnu-ld or --without-gnu-ld was given.
2469if test "${with_gnu_ld+set}" = set; then
2470 withval="$with_gnu_ld"
2471 test "$withval" = no || with_gnu_ld=yes
2472else
2473 with_gnu_ld=no
2474fi;
2475ac_prog=ld
2476if test "$GCC" = yes; then
2477 # Check if gcc -print-prog-name=ld gives a path.
a.rottmann84e63352003-03-24 09:42:16 +00002478 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
drh71eb93e2001-09-28 01:34:43 +00002479echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2480 case $host in
2481 *-*-mingw*)
2482 # gcc leaves a trailing carriage return which upsets mingw
2483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2484 *)
2485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2486 esac
2487 case $ac_prog in
2488 # Accept absolute paths.
a.rottmann84e63352003-03-24 09:42:16 +00002489 [\\/]* | [A-Za-z]:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002490 re_direlt='/[^/][^/]*/\.\./'
2491 # Canonicalize the path of ld
2492 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2493 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2494 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2495 done
2496 test -z "$LD" && LD="$ac_prog"
2497 ;;
2498 "")
2499 # If it fails, then pretend we aren't using GCC.
2500 ac_prog=ld
2501 ;;
2502 *)
2503 # If it is relative, then search for the first ld in PATH.
2504 with_gnu_ld=unknown
2505 ;;
2506 esac
2507elif test "$with_gnu_ld" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00002508 echo "$as_me:$LINENO: checking for GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002509echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2510else
a.rottmann84e63352003-03-24 09:42:16 +00002511 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002512echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2513fi
2514if test "${lt_cv_path_LD+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517 if test -z "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002519 for ac_dir in $PATH; do
drh71eb93e2001-09-28 01:34:43 +00002520 test -z "$ac_dir" && ac_dir=.
2521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2522 lt_cv_path_LD="$ac_dir/$ac_prog"
2523 # Check to see if the program is GNU ld. I'd rather use --version,
2524 # but apparently some GNU ld's only accept -v.
2525 # Break only if it was the GNU/non-GNU ld that we prefer.
2526 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2527 test "$with_gnu_ld" != no && break
2528 else
2529 test "$with_gnu_ld" != yes && break
2530 fi
2531 fi
2532 done
a.rottmann84e63352003-03-24 09:42:16 +00002533 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002534else
2535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2536fi
2537fi
2538
2539LD="$lt_cv_path_LD"
2540if test -n "$LD"; then
a.rottmann84e63352003-03-24 09:42:16 +00002541 echo "$as_me:$LINENO: result: $LD" >&5
drh71eb93e2001-09-28 01:34:43 +00002542echo "${ECHO_T}$LD" >&6
2543else
a.rottmann84e63352003-03-24 09:42:16 +00002544 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00002545echo "${ECHO_T}no" >&6
2546fi
a.rottmann84e63352003-03-24 09:42:16 +00002547test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00002548echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2549 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00002550echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002551echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2552if test "${lt_cv_prog_gnu_ld+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2556if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2557 lt_cv_prog_gnu_ld=yes
2558else
2559 lt_cv_prog_gnu_ld=no
2560fi
2561fi
a.rottmann84e63352003-03-24 09:42:16 +00002562echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh71eb93e2001-09-28 01:34:43 +00002563echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2564with_gnu_ld=$lt_cv_prog_gnu_ld
2565
a.rottmann84e63352003-03-24 09:42:16 +00002566
2567echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh71eb93e2001-09-28 01:34:43 +00002568echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2569if test "${lt_cv_ld_reload_flag+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572 lt_cv_ld_reload_flag='-r'
2573fi
a.rottmann84e63352003-03-24 09:42:16 +00002574echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh71eb93e2001-09-28 01:34:43 +00002575echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2576reload_flag=$lt_cv_ld_reload_flag
a.rottmann84e63352003-03-24 09:42:16 +00002577test -n "$reload_flag" && reload_flag=" $reload_flag"
drh71eb93e2001-09-28 01:34:43 +00002578
a.rottmann84e63352003-03-24 09:42:16 +00002579echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
drh71eb93e2001-09-28 01:34:43 +00002580echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2581if test "${lt_cv_path_NM+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 if test -n "$NM"; then
2585 # Let the user override the test.
2586 lt_cv_path_NM="$NM"
2587else
a.rottmann84e63352003-03-24 09:42:16 +00002588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002589 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
drh71eb93e2001-09-28 01:34:43 +00002590 test -z "$ac_dir" && ac_dir=.
2591 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2592 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2593 # Check to see if the nm accepts a BSD-compat flag.
2594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2595 # nm: unknown option "B" ignored
2596 # Tru64's nm complains that /dev/null is an invalid object file
2597 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2598 lt_cv_path_NM="$tmp_nm -B"
2599 break
2600 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2601 lt_cv_path_NM="$tmp_nm -p"
2602 break
2603 else
2604 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2605 continue # so that we can try to find one that supports BSD flags
2606 fi
2607 fi
2608 done
a.rottmann84e63352003-03-24 09:42:16 +00002609 IFS="$ac_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002610 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2611fi
2612fi
drh71eb93e2001-09-28 01:34:43 +00002613
a.rottmann84e63352003-03-24 09:42:16 +00002614NM="$lt_cv_path_NM"
2615echo "$as_me:$LINENO: result: $NM" >&5
2616echo "${ECHO_T}$NM" >&6
2617
2618echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2619echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2620if test "${lt_cv_path_SED+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 # Loop through the user's path and test for sed and gsed.
2624# Then use that list of sed's as ones to test for truncation.
2625as_executable_p="test -f"
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_prog in sed gsed; do
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2634 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2635 fi
2636 done
2637 done
2638done
2639
2640 # Create a temporary directory, and hook for its removal unless debugging.
2641$debug ||
2642{
2643 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2644 trap '{ (exit 1); exit 1; }' 1 2 13 15
2645}
2646
2647# Create a (secure) tmp directory for tmp files.
2648: ${TMPDIR=/tmp}
2649{
2650 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2651 test -n "$tmp" && test -d "$tmp"
2652} ||
2653{
2654 tmp=$TMPDIR/sed$$-$RANDOM
2655 (umask 077 && mkdir $tmp)
2656} ||
2657{
2658 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2659 { (exit 1); exit 1; }
2660}
2661 _max=0
2662 _count=0
2663 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2664 # along with /bin/sed that truncates output.
2665 for _sed in $_sed_list /usr/xpg4/bin/sed; do
2666 test ! -f ${_sed} && break
2667 cat /dev/null > "$tmp/sed.in"
2668 _count=0
2669 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2670 # Check for GNU sed and select it if it is found.
2671 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
2672 lt_cv_path_SED=${_sed}
2673 break
2674 fi
2675 while true; do
2676 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2677 mv "$tmp/sed.tmp" "$tmp/sed.in"
2678 cp "$tmp/sed.in" "$tmp/sed.nl"
2679 echo >>"$tmp/sed.nl"
2680 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
2681 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
2682 # 40000 chars as input seems more than enough
2683 test $_count -gt 10 && break
2684 _count=`expr $_count + 1`
2685 if test $_count -gt $_max; then
2686 _max=$_count
2687 lt_cv_path_SED=$_sed
2688 fi
2689 done
2690 done
2691 rm -rf "$tmp"
2692
2693fi
2694
2695if test "X$SED" != "X"; then
2696 lt_cv_path_SED=$SED
2697else
2698 SED=$lt_cv_path_SED
2699fi
2700echo "$as_me:$LINENO: result: $SED" >&5
2701echo "${ECHO_T}$SED" >&6
2702
2703echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh71eb93e2001-09-28 01:34:43 +00002704echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2705LN_S=$as_ln_s
2706if test "$LN_S" = "ln -s"; then
a.rottmann84e63352003-03-24 09:42:16 +00002707 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00002708echo "${ECHO_T}yes" >&6
2709else
a.rottmann84e63352003-03-24 09:42:16 +00002710 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh71eb93e2001-09-28 01:34:43 +00002711echo "${ECHO_T}no, using $LN_S" >&6
2712fi
2713
a.rottmann84e63352003-03-24 09:42:16 +00002714echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2715echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002716if test "${lt_cv_deplibs_check_method+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 lt_cv_file_magic_cmd='$MAGIC_CMD'
2720lt_cv_file_magic_test_file=
2721lt_cv_deplibs_check_method='unknown'
2722# Need to set the preceding variable on all platforms that support
2723# interlibrary dependencies.
2724# 'none' -- dependencies not supported.
2725# `unknown' -- same as none, but documents that we really don't know.
2726# 'pass_all' -- all dependencies passed with no checks.
2727# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00002728# 'file_magic [[regex]]' -- check by looking for files in library path
drh71eb93e2001-09-28 01:34:43 +00002729# which responds to the $file_magic_cmd with a given egrep regex.
2730# If you have `file' or equivalent on your system and you're not sure
2731# whether `pass_all' will *always* work, you probably want this one.
2732
2733case $host_os in
2734aix4* | aix5*)
2735 lt_cv_deplibs_check_method=pass_all
2736 ;;
2737
2738beos*)
2739 lt_cv_deplibs_check_method=pass_all
2740 ;;
2741
2742bsdi4*)
2743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2744 lt_cv_file_magic_cmd='/usr/bin/file -L'
2745 lt_cv_file_magic_test_file=/shlib/libc.so
2746 ;;
2747
2748cygwin* | mingw* | pw32*)
2749 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2750 lt_cv_file_magic_cmd='$OBJDUMP -f'
2751 ;;
2752
2753darwin* | rhapsody*)
2754 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2755 lt_cv_file_magic_cmd='/usr/bin/file -L'
2756 case "$host_os" in
a.rottmann84e63352003-03-24 09:42:16 +00002757 rhapsody* | darwin1.[012])
2758 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
drh71eb93e2001-09-28 01:34:43 +00002759 ;;
2760 *) # Darwin 1.3 on
2761 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2762 ;;
2763 esac
2764 ;;
2765
2766freebsd*)
2767 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2768 case $host_cpu in
2769 i*86 )
2770 # Not sure whether the presence of OpenBSD here was a mistake.
2771 # Let's accept both of them until this is cleared up.
2772 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2773 lt_cv_file_magic_cmd=/usr/bin/file
2774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2775 ;;
2776 esac
2777 else
2778 lt_cv_deplibs_check_method=pass_all
2779 fi
2780 ;;
2781
2782gnu*)
2783 lt_cv_deplibs_check_method=pass_all
2784 ;;
2785
a.rottmann84e63352003-03-24 09:42:16 +00002786hpux10.20*|hpux11*)
2787 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 +00002788 lt_cv_file_magic_cmd=/usr/bin/file
a.rottmann84e63352003-03-24 09:42:16 +00002789 lt_cv_file_magic_test_file=/usr/lib/libc.sl
drh71eb93e2001-09-28 01:34:43 +00002790 ;;
2791
a.rottmann84e63352003-03-24 09:42:16 +00002792irix5* | irix6* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002793 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00002794 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002795 # this will be overridden with pass_all, but let us keep it just in case
2796 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2797 ;;
2798 *)
2799 case $LD in
2800 *-32|*"-32 ") libmagic=32-bit;;
2801 *-n32|*"-n32 ") libmagic=N32;;
2802 *-64|*"-64 ") libmagic=64-bit;;
2803 *) libmagic=never-match;;
2804 esac
2805 # this will be overridden with pass_all, but let us keep it just in case
2806 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2807 ;;
2808 esac
2809 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2810 lt_cv_deplibs_check_method=pass_all
2811 ;;
2812
2813# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00002814linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00002815 case $host_cpu in
a.rottmann84e63352003-03-24 09:42:16 +00002816 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
drh71eb93e2001-09-28 01:34:43 +00002817 lt_cv_deplibs_check_method=pass_all ;;
2818 *)
2819 # glibc up to 2.1.1 does not perform some relocations on ARM
2820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2821 esac
2822 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2823 ;;
2824
2825netbsd*)
2826 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2827 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2828 else
2829 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2830 fi
2831 ;;
2832
2833newos6*)
2834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2835 lt_cv_file_magic_cmd=/usr/bin/file
2836 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2837 ;;
2838
a.rottmann84e63352003-03-24 09:42:16 +00002839openbsd*)
2840 lt_cv_file_magic_cmd=/usr/bin/file
2841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2844 else
2845 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2846 fi
drh71eb93e2001-09-28 01:34:43 +00002847 ;;
2848
2849osf3* | osf4* | osf5*)
2850 # this will be overridden with pass_all, but let us keep it just in case
2851 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2852 lt_cv_file_magic_test_file=/shlib/libc.so
2853 lt_cv_deplibs_check_method=pass_all
2854 ;;
2855
2856sco3.2v5*)
2857 lt_cv_deplibs_check_method=pass_all
2858 ;;
2859
2860solaris*)
2861 lt_cv_deplibs_check_method=pass_all
2862 lt_cv_file_magic_test_file=/lib/libc.so
2863 ;;
2864
a.rottmann84e63352003-03-24 09:42:16 +00002865sysv5uw[78]* | sysv4*uw2*)
2866 lt_cv_deplibs_check_method=pass_all
2867 ;;
2868
drh71eb93e2001-09-28 01:34:43 +00002869sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2870 case $host_vendor in
2871 motorola)
2872 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]'
2873 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2874 ;;
2875 ncr)
2876 lt_cv_deplibs_check_method=pass_all
2877 ;;
2878 sequent)
2879 lt_cv_file_magic_cmd='/bin/file'
2880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2881 ;;
2882 sni)
2883 lt_cv_file_magic_cmd='/bin/file'
2884 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2885 lt_cv_file_magic_test_file=/lib/libc.so
2886 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002887 siemens)
2888 lt_cv_deplibs_check_method=pass_all
2889 ;;
drh71eb93e2001-09-28 01:34:43 +00002890 esac
2891 ;;
drh71eb93e2001-09-28 01:34:43 +00002892esac
2893
2894fi
a.rottmann84e63352003-03-24 09:42:16 +00002895echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh71eb93e2001-09-28 01:34:43 +00002896echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2897file_magic_cmd=$lt_cv_file_magic_cmd
2898deplibs_check_method=$lt_cv_deplibs_check_method
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
drh71eb93e2001-09-28 01:34:43 +00002904
drh71eb93e2001-09-28 01:34:43 +00002905
drh71eb93e2001-09-28 01:34:43 +00002906
2907# Check for command to grab the raw symbol name followed by C symbol from nm.
a.rottmann84e63352003-03-24 09:42:16 +00002908echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2909echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002910if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913
2914# These are sane defaults that work on at least a few old systems.
2915# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2916
2917# Character class describing NM global symbol codes.
2918symcode='[BCDEGRST]'
2919
2920# Regexp to match symbols that can be accessed directly from C.
2921sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2922
2923# Transform the above into a raw symbol and a C symbol.
2924symxfrm='\1 \2\3 \3'
2925
2926# Transform an extracted symbol line into a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00002927lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
drh71eb93e2001-09-28 01:34:43 +00002928
2929# Transform an extracted symbol line into symbol name and symbol address
a.rottmann84e63352003-03-24 09:42:16 +00002930lt_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 +00002931
2932# Define system-specific variables.
2933case $host_os in
2934aix*)
2935 symcode='[BCDT]'
2936 ;;
2937cygwin* | mingw* | pw32*)
2938 symcode='[ABCDGISTW]'
2939 ;;
2940hpux*) # Its linker distinguishes data from code symbols
a.rottmann84e63352003-03-24 09:42:16 +00002941 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2942 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 +00002943 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002944irix* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00002945 symcode='[BCDEGRST]'
2946 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002947osf*)
2948 symcode='[BCDEGQRST]'
2949 ;;
drh71eb93e2001-09-28 01:34:43 +00002950solaris* | sysv5*)
2951 symcode='[BDT]'
2952 ;;
2953sysv4)
2954 symcode='[DFNSTU]'
2955 ;;
2956esac
2957
2958# Handle CRLF in mingw tool chain
2959opt_cr=
2960case $host_os in
2961mingw*)
2962 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2963 ;;
2964esac
2965
2966# If we're using GNU nm, then use its standard symbol codes.
2967if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2968 symcode='[ABCDGISTW]'
2969fi
2970
2971# Try without a prefix undercore, then with it.
2972for ac_symprfx in "" "_"; do
2973
2974 # Write the raw and C identifiers.
2975lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2976
2977 # Check to see that the pipe works correctly.
2978 pipe_works=no
drh71eb93e2001-09-28 01:34:43 +00002979 rm -f conftest*
2980 cat > conftest.$ac_ext <<EOF
2981#ifdef __cplusplus
2982extern "C" {
2983#endif
2984char nm_test_var;
2985void nm_test_func(){}
2986#ifdef __cplusplus
2987}
2988#endif
2989int main(){nm_test_var='a';nm_test_func();return(0);}
2990EOF
2991
a.rottmann84e63352003-03-24 09:42:16 +00002992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00002993 (eval $ac_compile) 2>&5
2994 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002996 (exit $ac_status); }; then
2997 # Now try to grab the symbols.
2998 nlist=conftest.nm
a.rottmann84e63352003-03-24 09:42:16 +00002999 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003000 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3001 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003003 (exit $ac_status); } && test -s "$nlist"; then
3004 # Try sorting and uniquifying the output.
3005 if sort "$nlist" | uniq > "$nlist"T; then
3006 mv -f "$nlist"T "$nlist"
3007 else
3008 rm -f "$nlist"T
3009 fi
3010
3011 # Make sure that we snagged all the symbols we need.
3012 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3013 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3014 cat <<EOF > conftest.$ac_ext
3015#ifdef __cplusplus
3016extern "C" {
3017#endif
3018
3019EOF
3020 # Now generate the symbol file.
a.rottmann84e63352003-03-24 09:42:16 +00003021 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
drh71eb93e2001-09-28 01:34:43 +00003022
3023 cat <<EOF >> conftest.$ac_ext
3024#if defined (__STDC__) && __STDC__
a.rottmann84e63352003-03-24 09:42:16 +00003025# define lt_ptr void *
drh71eb93e2001-09-28 01:34:43 +00003026#else
a.rottmann84e63352003-03-24 09:42:16 +00003027# define lt_ptr char *
drh71eb93e2001-09-28 01:34:43 +00003028# define const
3029#endif
3030
3031/* The mapping between symbol names and symbols. */
3032const struct {
3033 const char *name;
a.rottmann84e63352003-03-24 09:42:16 +00003034 lt_ptr address;
drh71eb93e2001-09-28 01:34:43 +00003035}
3036lt_preloaded_symbols[] =
3037{
3038EOF
a.rottmann84e63352003-03-24 09:42:16 +00003039 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003040 cat <<\EOF >> conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003041 {0, (lt_ptr) 0}
drh71eb93e2001-09-28 01:34:43 +00003042};
3043
3044#ifdef __cplusplus
3045}
3046#endif
3047EOF
3048 # Now try linking the two files.
3049 mv conftest.$ac_objext conftstm.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00003050 save_LIBS="$LIBS"
3051 save_CFLAGS="$CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003052 LIBS="conftstm.$ac_objext"
a.rottmann84e63352003-03-24 09:42:16 +00003053 CFLAGS="$CFLAGS$no_builtin_flag"
3054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003055 (eval $ac_link) 2>&5
3056 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && test -s conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00003059 pipe_works=yes
3060 fi
a.rottmann84e63352003-03-24 09:42:16 +00003061 LIBS="$save_LIBS"
3062 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00003063 else
3064 echo "cannot find nm_test_func in $nlist" >&5
3065 fi
3066 else
3067 echo "cannot find nm_test_var in $nlist" >&5
3068 fi
3069 else
3070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3071 fi
3072 else
3073 echo "$progname: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3075 fi
3076 rm -f conftest* conftst*
3077
3078 # Do not use the global_symbol_pipe unless it works.
3079 if test "$pipe_works" = yes; then
3080 break
3081 else
3082 lt_cv_sys_global_symbol_pipe=
3083 fi
3084done
3085
3086fi
3087
a.rottmann84e63352003-03-24 09:42:16 +00003088global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
drh71eb93e2001-09-28 01:34:43 +00003089if test -z "$lt_cv_sys_global_symbol_pipe"; then
a.rottmann84e63352003-03-24 09:42:16 +00003090 global_symbol_to_cdecl=
3091 global_symbol_to_c_name_address=
3092else
3093 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3094 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
drh71eb93e2001-09-28 01:34:43 +00003095fi
a.rottmann84e63352003-03-24 09:42:16 +00003096if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3097then
3098 echo "$as_me:$LINENO: result: failed" >&5
drh71eb93e2001-09-28 01:34:43 +00003099echo "${ECHO_T}failed" >&6
3100else
a.rottmann84e63352003-03-24 09:42:16 +00003101 echo "$as_me:$LINENO: result: ok" >&5
drh71eb93e2001-09-28 01:34:43 +00003102echo "${ECHO_T}ok" >&6
3103fi
3104
a.rottmann84e63352003-03-24 09:42:16 +00003105ac_ext=c
3106ac_cpp='$CPP $CPPFLAGS'
3107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3111echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3112# On Suns, sometimes $CPP names a directory.
3113if test -n "$CPP" && test -d "$CPP"; then
3114 CPP=
3115fi
3116if test -z "$CPP"; then
3117 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
a.rottmann84e63352003-03-24 09:42:16 +00003120 # Double quotes because CPP needs to be expanded
3121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122 do
3123 ac_preproc_ok=false
3124for ac_c_preproc_warn_flag in '' yes
3125do
3126 # Use a header file that comes with gcc, so configuring glibc
3127 # with a fresh cross-compiler works.
3128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129 # <limits.h> exists even on freestanding compilers.
3130 # On the NeXT, cc -E runs the code through the compiler's parser,
3131 # not just through cpp. "Syntax error" is here to catch this case.
3132 cat >conftest.$ac_ext <<_ACEOF
3133#line $LINENO "configure"
3134/* confdefs.h. */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
3138/* end confdefs.h. */
3139#ifdef __STDC__
3140# include <limits.h>
3141#else
3142# include <assert.h>
3143#endif
3144 Syntax error
3145_ACEOF
3146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } >/dev/null; then
3154 if test -s conftest.err; then
3155 ac_cpp_err=$ac_c_preproc_warn_flag
3156 else
3157 ac_cpp_err=
drh71eb93e2001-09-28 01:34:43 +00003158 fi
a.rottmann84e63352003-03-24 09:42:16 +00003159else
3160 ac_cpp_err=yes
3161fi
3162if test -z "$ac_cpp_err"; then
3163 :
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 # Broken: fails on valid input.
3169continue
3170fi
3171rm -f conftest.err conftest.$ac_ext
3172
3173 # OK, works on sane cases. Now check whether non-existent headers
3174 # can be detected and how.
3175 cat >conftest.$ac_ext <<_ACEOF
3176#line $LINENO "configure"
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182#include <ac_nonexistent.h>
3183_ACEOF
3184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } >/dev/null; then
3192 if test -s conftest.err; then
3193 ac_cpp_err=$ac_c_preproc_warn_flag
3194 else
3195 ac_cpp_err=
3196 fi
3197else
3198 ac_cpp_err=yes
3199fi
3200if test -z "$ac_cpp_err"; then
3201 # Broken: success on invalid input.
3202continue
3203else
3204 echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 # Passes both tests.
3208ac_preproc_ok=:
3209break
3210fi
3211rm -f conftest.err conftest.$ac_ext
3212
3213done
3214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3215rm -f conftest.err conftest.$ac_ext
3216if $ac_preproc_ok; then
3217 break
3218fi
3219
3220 done
3221 ac_cv_prog_CPP=$CPP
3222
3223fi
3224 CPP=$ac_cv_prog_CPP
3225else
3226 ac_cv_prog_CPP=$CPP
3227fi
3228echo "$as_me:$LINENO: result: $CPP" >&5
3229echo "${ECHO_T}$CPP" >&6
3230ac_preproc_ok=false
3231for ac_c_preproc_warn_flag in '' yes
3232do
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
3239 cat >conftest.$ac_ext <<_ACEOF
3240#line $LINENO "configure"
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246#ifdef __STDC__
3247# include <limits.h>
3248#else
3249# include <assert.h>
3250#endif
3251 Syntax error
3252_ACEOF
3253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
3263 else
3264 ac_cpp_err=
3265 fi
3266else
3267 ac_cpp_err=yes
3268fi
3269if test -z "$ac_cpp_err"; then
3270 :
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 # Broken: fails on valid input.
3276continue
3277fi
3278rm -f conftest.err conftest.$ac_ext
3279
3280 # OK, works on sane cases. Now check whether non-existent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3283#line $LINENO "configure"
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289#include <ac_nonexistent.h>
3290_ACEOF
3291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 else
3302 ac_cpp_err=
3303 fi
3304else
3305 ac_cpp_err=yes
3306fi
3307if test -z "$ac_cpp_err"; then
3308 # Broken: success on invalid input.
3309continue
3310else
3311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 # Passes both tests.
3315ac_preproc_ok=:
3316break
3317fi
3318rm -f conftest.err conftest.$ac_ext
3319
3320done
3321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322rm -f conftest.err conftest.$ac_ext
3323if $ac_preproc_ok; then
3324 :
3325else
3326 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3327See \`config.log' for more details." >&5
3328echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3329See \`config.log' for more details." >&2;}
3330 { (exit 1); exit 1; }; }
3331fi
3332
3333ac_ext=c
3334ac_cpp='$CPP $CPPFLAGS'
3335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
3339
3340echo "$as_me:$LINENO: checking for egrep" >&5
3341echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3342if test "${ac_cv_prog_egrep+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3346 then ac_cv_prog_egrep='grep -E'
3347 else ac_cv_prog_egrep='egrep'
3348 fi
3349fi
3350echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3351echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3352 EGREP=$ac_cv_prog_egrep
3353
3354
3355echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3356echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3357if test "${ac_cv_header_stdc+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 cat >conftest.$ac_ext <<_ACEOF
3361#line $LINENO "configure"
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367#include <stdlib.h>
3368#include <stdarg.h>
3369#include <string.h>
3370#include <float.h>
3371
3372int
3373main ()
3374{
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext
3381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382 (eval $ac_compile) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_header_stdc=yes
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397ac_cv_header_stdc=no
3398fi
3399rm -f conftest.$ac_objext conftest.$ac_ext
3400
3401if test $ac_cv_header_stdc = yes; then
3402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3403 cat >conftest.$ac_ext <<_ACEOF
3404#line $LINENO "configure"
3405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
3410#include <string.h>
3411
3412_ACEOF
3413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 $EGREP "memchr" >/dev/null 2>&1; then
3415 :
3416else
3417 ac_cv_header_stdc=no
3418fi
3419rm -f conftest*
3420
3421fi
3422
3423if test $ac_cv_header_stdc = yes; then
3424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3425 cat >conftest.$ac_ext <<_ACEOF
3426#line $LINENO "configure"
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#include <stdlib.h>
3433
3434_ACEOF
3435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 $EGREP "free" >/dev/null 2>&1; then
3437 :
3438else
3439 ac_cv_header_stdc=no
3440fi
3441rm -f conftest*
3442
3443fi
3444
3445if test $ac_cv_header_stdc = yes; then
3446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3447 if test "$cross_compiling" = yes; then
3448 :
3449else
3450 cat >conftest.$ac_ext <<_ACEOF
3451#line $LINENO "configure"
3452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h. */
3457#include <ctype.h>
3458#if ((' ' & 0x0FF) == 0x020)
3459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461#else
3462# define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467#endif
3468
3469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3470int
3471main ()
3472{
3473 int i;
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3477 exit(2);
3478 exit (0);
3479}
3480_ACEOF
3481rm -f conftest$ac_exeext
3482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 :
3493else
3494 echo "$as_me: program exited with status $ac_status" >&5
3495echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498( exit $ac_status )
3499ac_cv_header_stdc=no
3500fi
3501rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3502fi
3503fi
3504fi
3505echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507if test $ac_cv_header_stdc = yes; then
3508
3509cat >>confdefs.h <<\_ACEOF
3510#define STDC_HEADERS 1
3511_ACEOF
3512
3513fi
3514
3515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526 inttypes.h stdint.h unistd.h
3527do
3528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529echo "$as_me:$LINENO: checking for $ac_header" >&5
3530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 cat >conftest.$ac_ext <<_ACEOF
3535#line $LINENO "configure"
3536/* confdefs.h. */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h. */
3541$ac_includes_default
3542
3543#include <$ac_header>
3544_ACEOF
3545rm -f conftest.$ac_objext
3546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3547 (eval $ac_compile) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 eval "$as_ac_Header=yes"
3558else
3559 echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562eval "$as_ac_Header=no"
3563fi
3564rm -f conftest.$ac_objext conftest.$ac_ext
3565fi
3566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3568if test `eval echo '${'$as_ac_Header'}'` = yes; then
3569 cat >>confdefs.h <<_ACEOF
3570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3571_ACEOF
3572
3573fi
3574
3575done
3576
3577
3578
3579for ac_header in dlfcn.h
3580do
3581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3582if eval "test \"\${$as_ac_Header+set}\" = set"; then
3583 echo "$as_me:$LINENO: checking for $ac_header" >&5
3584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3585if eval "test \"\${$as_ac_Header+set}\" = set"; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587fi
3588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3590else
3591 # Is the header compilable?
3592echo "$as_me:$LINENO: checking $ac_header usability" >&5
3593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3594cat >conftest.$ac_ext <<_ACEOF
3595#line $LINENO "configure"
3596/* confdefs.h. */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h. */
3601$ac_includes_default
3602#include <$ac_header>
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 ac_header_compiler=yes
3617else
3618 echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621ac_header_compiler=no
3622fi
3623rm -f conftest.$ac_objext conftest.$ac_ext
3624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3625echo "${ECHO_T}$ac_header_compiler" >&6
3626
3627# Is the header present?
3628echo "$as_me:$LINENO: checking $ac_header presence" >&5
3629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3630cat >conftest.$ac_ext <<_ACEOF
3631#line $LINENO "configure"
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637#include <$ac_header>
3638_ACEOF
3639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 else
3650 ac_cpp_err=
3651 fi
3652else
3653 ac_cpp_err=yes
3654fi
3655if test -z "$ac_cpp_err"; then
3656 ac_header_preproc=yes
3657else
3658 echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ac_header_preproc=no
3662fi
3663rm -f conftest.err conftest.$ac_ext
3664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3665echo "${ECHO_T}$ac_header_preproc" >&6
3666
3667# So? What about this header?
3668case $ac_header_compiler:$ac_header_preproc in
3669 yes:no )
3670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3674 (
3675 cat <<\_ASBOX
3676## ------------------------------------ ##
3677## Report this to bug-autoconf@gnu.org. ##
3678## ------------------------------------ ##
3679_ASBOX
3680 ) |
3681 sed "s/^/$as_me: WARNING: /" >&2
3682 ;;
3683 no:yes )
3684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3690 (
3691 cat <<\_ASBOX
3692## ------------------------------------ ##
3693## Report this to bug-autoconf@gnu.org. ##
3694## ------------------------------------ ##
3695_ASBOX
3696 ) |
3697 sed "s/^/$as_me: WARNING: /" >&2
3698 ;;
drh71eb93e2001-09-28 01:34:43 +00003699esac
a.rottmann84e63352003-03-24 09:42:16 +00003700echo "$as_me:$LINENO: checking for $ac_header" >&5
3701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3702if eval "test \"\${$as_ac_Header+set}\" = set"; then
drh71eb93e2001-09-28 01:34:43 +00003703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
a.rottmann84e63352003-03-24 09:42:16 +00003705 eval "$as_ac_Header=$ac_header_preproc"
3706fi
3707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3709
3710fi
3711if test `eval echo '${'$as_ac_Header'}'` = yes; then
3712 cat >>confdefs.h <<_ACEOF
3713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3714_ACEOF
3715
3716fi
3717
drh71eb93e2001-09-28 01:34:43 +00003718done
3719
drh71eb93e2001-09-28 01:34:43 +00003720
drh71eb93e2001-09-28 01:34:43 +00003721
drh71eb93e2001-09-28 01:34:43 +00003722
drh71eb93e2001-09-28 01:34:43 +00003723
drh71eb93e2001-09-28 01:34:43 +00003724
3725# Only perform the check for file, if the check method requires it
3726case $deplibs_check_method in
3727file_magic*)
3728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
a.rottmann84e63352003-03-24 09:42:16 +00003729 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh71eb93e2001-09-28 01:34:43 +00003730echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3731if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003735 /*)
drh71eb93e2001-09-28 01:34:43 +00003736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3737 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003738 ?:/*)
3739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3740 ;;
3741 *)
3742 ac_save_MAGIC_CMD="$MAGIC_CMD"
3743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3744 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003745 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003746 test -z "$ac_dir" && ac_dir=.
3747 if test -f $ac_dir/${ac_tool_prefix}file; then
3748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3749 if test -n "$file_magic_test_file"; then
3750 case $deplibs_check_method in
3751 "file_magic "*)
3752 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3755 egrep "$file_magic_regex" > /dev/null; then
3756 :
3757 else
3758 cat <<EOF 1>&2
3759
3760*** Warning: the command libtool uses to detect shared libraries,
3761*** $file_magic_cmd, produces output that libtool cannot recognize.
3762*** The result is that libtool may fail to recognize shared libraries
3763*** as such. This will affect the creation of libtool libraries that
3764*** depend on shared libraries, but programs linked with such libtool
3765*** libraries will work regardless of this problem. Nevertheless, you
3766*** may want to report the problem to your system manager and/or to
3767*** bug-libtool@gnu.org
3768
3769EOF
3770 fi ;;
3771 esac
3772 fi
3773 break
3774 fi
3775 done
a.rottmann84e63352003-03-24 09:42:16 +00003776 IFS="$ac_save_ifs"
3777 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003778 ;;
3779esac
3780fi
3781
3782MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3783if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003784 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003785echo "${ECHO_T}$MAGIC_CMD" >&6
3786else
a.rottmann84e63352003-03-24 09:42:16 +00003787 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003788echo "${ECHO_T}no" >&6
3789fi
3790
3791if test -z "$lt_cv_path_MAGIC_CMD"; then
3792 if test -n "$ac_tool_prefix"; then
a.rottmann84e63352003-03-24 09:42:16 +00003793 echo "$as_me:$LINENO: checking for file" >&5
drh71eb93e2001-09-28 01:34:43 +00003794echo $ECHO_N "checking for file... $ECHO_C" >&6
3795if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 case $MAGIC_CMD in
a.rottmann84e63352003-03-24 09:42:16 +00003799 /*)
drh71eb93e2001-09-28 01:34:43 +00003800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3801 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003802 ?:/*)
3803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3804 ;;
3805 *)
3806 ac_save_MAGIC_CMD="$MAGIC_CMD"
3807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3808 ac_dummy="/usr/bin:$PATH"
drh71eb93e2001-09-28 01:34:43 +00003809 for ac_dir in $ac_dummy; do
drh71eb93e2001-09-28 01:34:43 +00003810 test -z "$ac_dir" && ac_dir=.
3811 if test -f $ac_dir/file; then
3812 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3813 if test -n "$file_magic_test_file"; then
3814 case $deplibs_check_method in
3815 "file_magic "*)
3816 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3819 egrep "$file_magic_regex" > /dev/null; then
3820 :
3821 else
3822 cat <<EOF 1>&2
3823
3824*** Warning: the command libtool uses to detect shared libraries,
3825*** $file_magic_cmd, produces output that libtool cannot recognize.
3826*** The result is that libtool may fail to recognize shared libraries
3827*** as such. This will affect the creation of libtool libraries that
3828*** depend on shared libraries, but programs linked with such libtool
3829*** libraries will work regardless of this problem. Nevertheless, you
3830*** may want to report the problem to your system manager and/or to
3831*** bug-libtool@gnu.org
3832
3833EOF
3834 fi ;;
3835 esac
3836 fi
3837 break
3838 fi
3839 done
a.rottmann84e63352003-03-24 09:42:16 +00003840 IFS="$ac_save_ifs"
3841 MAGIC_CMD="$ac_save_MAGIC_CMD"
drh71eb93e2001-09-28 01:34:43 +00003842 ;;
3843esac
3844fi
3845
3846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3847if test -n "$MAGIC_CMD"; then
a.rottmann84e63352003-03-24 09:42:16 +00003848 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh71eb93e2001-09-28 01:34:43 +00003849echo "${ECHO_T}$MAGIC_CMD" >&6
3850else
a.rottmann84e63352003-03-24 09:42:16 +00003851 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00003852echo "${ECHO_T}no" >&6
3853fi
3854
3855 else
3856 MAGIC_CMD=:
3857 fi
3858fi
3859
3860 fi
3861 ;;
3862esac
3863
a.rottmann84e63352003-03-24 09:42:16 +00003864if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869if test "${ac_cv_prog_RANLIB+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872 if test -n "$RANLIB"; then
3873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886done
3887done
3888
3889fi
3890fi
3891RANLIB=$ac_cv_prog_RANLIB
3892if test -n "$RANLIB"; then
3893 echo "$as_me:$LINENO: result: $RANLIB" >&5
3894echo "${ECHO_T}$RANLIB" >&6
3895else
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
3898fi
3899
3900fi
3901if test -z "$ac_cv_prog_RANLIB"; then
3902 ac_ct_RANLIB=$RANLIB
3903 # Extract the first word of "ranlib", so it can be a program name with args.
3904set dummy ranlib; ac_word=$2
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910 if test -n "$ac_ct_RANLIB"; then
3911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_RANLIB="ranlib"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925done
3926
3927 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3928fi
3929fi
3930ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3931if test -n "$ac_ct_RANLIB"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3933echo "${ECHO_T}$ac_ct_RANLIB" >&6
3934else
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
3937fi
3938
3939 RANLIB=$ac_ct_RANLIB
3940else
3941 RANLIB="$ac_cv_prog_RANLIB"
3942fi
3943
3944if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3946set dummy ${ac_tool_prefix}strip; ac_word=$2
3947echo "$as_me:$LINENO: checking for $ac_word" >&5
3948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949if test "${ac_cv_prog_STRIP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952 if test -n "$STRIP"; then
3953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966done
3967done
3968
3969fi
3970fi
3971STRIP=$ac_cv_prog_STRIP
3972if test -n "$STRIP"; then
3973 echo "$as_me:$LINENO: result: $STRIP" >&5
3974echo "${ECHO_T}$STRIP" >&6
3975else
3976 echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978fi
3979
3980fi
3981if test -z "$ac_cv_prog_STRIP"; then
3982 ac_ct_STRIP=$STRIP
3983 # Extract the first word of "strip", so it can be a program name with args.
3984set dummy strip; ac_word=$2
3985echo "$as_me:$LINENO: checking for $ac_word" >&5
3986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990 if test -n "$ac_ct_STRIP"; then
3991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
3995do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000 ac_cv_prog_ac_ct_STRIP="strip"
4001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004done
4005done
4006
4007 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4008fi
4009fi
4010ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4011if test -n "$ac_ct_STRIP"; then
4012 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4013echo "${ECHO_T}$ac_ct_STRIP" >&6
4014else
4015 echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
4017fi
4018
4019 STRIP=$ac_ct_STRIP
4020else
4021 STRIP="$ac_cv_prog_STRIP"
4022fi
4023
4024
drh71eb93e2001-09-28 01:34:43 +00004025enable_dlopen=no
4026enable_win32_dll=no
4027
4028# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4029if test "${enable_libtool_lock+set}" = set; then
4030 enableval="$enable_libtool_lock"
4031
4032fi;
4033test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4034
a.rottmann84e63352003-03-24 09:42:16 +00004035# Some flags need to be propagated to the compiler or linker for good
4036# libtool support.
4037case $host in
4038*-*-irix6*)
4039 # Find out which ABI we are using.
paulb0208cc2003-04-13 18:26:49 +00004040 echo '#line 4039 "configure"' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4047 *32-bit*)
4048 LD="${LD-ld} -32"
4049 ;;
4050 *N32*)
4051 LD="${LD-ld} -n32"
4052 ;;
4053 *64-bit*)
4054 LD="${LD-ld} -64"
4055 ;;
4056 esac
4057 fi
4058 rm -rf conftest*
4059 ;;
4060
4061*-*-sco3.2v5*)
4062 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4063 SAVE_CFLAGS="$CFLAGS"
4064 CFLAGS="$CFLAGS -belf"
4065 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4066echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4067if test "${lt_cv_cc_needs_belf+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070
4071
4072 ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078 cat >conftest.$ac_ext <<_ACEOF
4079#line $LINENO "configure"
4080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h. */
4085
4086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext conftest$ac_exeext
4095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096 (eval $ac_link) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -s conftest$ac_exeext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 lt_cv_cc_needs_belf=yes
4107else
4108 echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111lt_cv_cc_needs_belf=no
4112fi
4113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4114 ac_ext=c
4115ac_cpp='$CPP $CPPFLAGS'
4116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120fi
4121echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4122echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4123 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4124 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4125 CFLAGS="$SAVE_CFLAGS"
4126 fi
4127 ;;
4128
4129
4130esac
4131
4132# Sed substitution that helps us do robust quoting. It backslashifies
4133# metacharacters that are still active within double-quoted strings.
4134Xsed='sed -e s/^X//'
4135sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4136
4137# Same as above, but do not quote variable references.
4138double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4139
4140# Sed substitution to delay expansion of an escaped shell variable in a
4141# double_quote_subst'ed string.
4142delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4143
4144# Constants:
4145rm="rm -f"
4146
4147# Global variables:
4148default_ofile=libtool
4149can_build_shared=yes
4150
4151# All known linkers require a `.a' archive for static linking (except M$VC,
4152# which needs '.lib').
4153libext=a
4154ltmain="$ac_aux_dir/ltmain.sh"
4155ofile="$default_ofile"
4156with_gnu_ld="$lt_cv_prog_gnu_ld"
4157need_locks="$enable_libtool_lock"
4158
4159old_CC="$CC"
4160old_CFLAGS="$CFLAGS"
4161
4162# Set sane defaults for various variables
4163test -z "$AR" && AR=ar
4164test -z "$AR_FLAGS" && AR_FLAGS=cru
4165test -z "$AS" && AS=as
4166test -z "$CC" && CC=cc
4167test -z "$DLLTOOL" && DLLTOOL=dlltool
4168test -z "$LD" && LD=ld
4169test -z "$LN_S" && LN_S="ln -s"
4170test -z "$MAGIC_CMD" && MAGIC_CMD=file
4171test -z "$NM" && NM=nm
4172test -z "$OBJDUMP" && OBJDUMP=objdump
4173test -z "$RANLIB" && RANLIB=:
4174test -z "$STRIP" && STRIP=:
4175test -z "$ac_objext" && ac_objext=o
4176
4177if test x"$host" != x"$build"; then
4178 ac_tool_prefix=${host_alias}-
4179else
4180 ac_tool_prefix=
4181fi
4182
4183# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4184case $host_os in
4185linux-gnu*) ;;
4186linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4187esac
4188
4189case $host_os in
4190aix3*)
4191 # AIX sometimes has problems with the GCC collect2 program. For some
4192 # reason, if we set the COLLECT_NAMES environment variable, the problems
4193 # vanish in a puff of smoke.
4194 if test "X${COLLECT_NAMES+set}" != Xset; then
4195 COLLECT_NAMES=
4196 export COLLECT_NAMES
4197 fi
4198 ;;
4199esac
4200
4201# Determine commands to create old-style static archives.
4202old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4203old_postinstall_cmds='chmod 644 $oldlib'
4204old_postuninstall_cmds=
4205
4206if test -n "$RANLIB"; then
4207 case $host_os in
4208 openbsd*)
4209 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4210 ;;
4211 *)
4212 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4213 ;;
4214 esac
4215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4216fi
4217
4218# Allow CC to be a program name with arguments.
4219set dummy $CC
4220compiler="$2"
4221
4222echo "$as_me:$LINENO: checking for objdir" >&5
4223echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4224rm -f .libs 2>/dev/null
4225mkdir .libs 2>/dev/null
4226if test -d .libs; then
4227 objdir=.libs
4228else
4229 # MS-DOS does not allow filenames that begin with a dot.
4230 objdir=_libs
4231fi
4232rmdir .libs 2>/dev/null
4233echo "$as_me:$LINENO: result: $objdir" >&5
4234echo "${ECHO_T}$objdir" >&6
4235
4236
4237
drh71eb93e2001-09-28 01:34:43 +00004238# Check whether --with-pic or --without-pic was given.
4239if test "${with_pic+set}" = set; then
4240 withval="$with_pic"
4241 pic_mode="$withval"
4242else
4243 pic_mode=default
4244fi;
4245test -z "$pic_mode" && pic_mode=default
4246
a.rottmann84e63352003-03-24 09:42:16 +00004247# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4248# in isolation, and that seeing it set (from the cache) indicates that
4249# the associated values are set (in the cache) correctly too.
4250echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh71eb93e2001-09-28 01:34:43 +00004251echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004252if test "${lt_cv_prog_cc_pic+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255 lt_cv_prog_cc_pic=
4256 lt_cv_prog_cc_shlib=
4257 lt_cv_prog_cc_wl=
4258 lt_cv_prog_cc_static=
4259 lt_cv_prog_cc_no_builtin=
4260 lt_cv_prog_cc_can_build_shared=$can_build_shared
4261
drh71eb93e2001-09-28 01:34:43 +00004262 if test "$GCC" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00004263 lt_cv_prog_cc_wl='-Wl,'
4264 lt_cv_prog_cc_static='-static'
drh71eb93e2001-09-28 01:34:43 +00004265
4266 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004267 aix*)
4268 # Below there is a dirty hack to force normal static linking with -ldl
4269 # The problem is because libdl dynamically linked with both libc and
4270 # libC (AIX C++ library), which obviously doesn't included in libraries
4271 # list by gcc. This cause undefined symbols with -static flags.
4272 # This hack allows C programs to be linked with "-static -ldl", but
4273 # not sure about C++ programs.
4274 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
drh71eb93e2001-09-28 01:34:43 +00004275 ;;
drh71eb93e2001-09-28 01:34:43 +00004276 amigaos*)
4277 # FIXME: we need at least 68020 code to build shared libraries, but
4278 # adding the `-m68020' flag to GCC prevents building anything better,
4279 # like `-m68040'.
a.rottmann84e63352003-03-24 09:42:16 +00004280 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00004281 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004283 # PIC is the default for these OSes.
4284 ;;
drh71eb93e2001-09-28 01:34:43 +00004285 darwin* | rhapsody*)
4286 # PIC is the default on this platform
4287 # Common symbols not allowed in MH_DYLIB files
a.rottmann84e63352003-03-24 09:42:16 +00004288 lt_cv_prog_cc_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00004289 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004290 cygwin* | mingw* | pw32* | os2*)
4291 # This hack is so that the source file can tell whether it is being
4292 # built for inclusion in a dll (and should export symbols for example).
4293 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004294 ;;
drh71eb93e2001-09-28 01:34:43 +00004295 sysv4*MP*)
4296 if test -d /usr/nec; then
a.rottmann84e63352003-03-24 09:42:16 +00004297 lt_cv_prog_cc_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00004298 fi
4299 ;;
drh71eb93e2001-09-28 01:34:43 +00004300 *)
a.rottmann84e63352003-03-24 09:42:16 +00004301 lt_cv_prog_cc_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00004302 ;;
4303 esac
4304 else
a.rottmann84e63352003-03-24 09:42:16 +00004305 # PORTME Check for PIC flags for the system compiler.
drh71eb93e2001-09-28 01:34:43 +00004306 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00004307 aix3* | aix4* | aix5*)
4308 lt_cv_prog_cc_wl='-Wl,'
4309 # All AIX code is PIC.
drh71eb93e2001-09-28 01:34:43 +00004310 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00004311 # AIX 5 now supports IA64 processor
4312 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004313 else
a.rottmann84e63352003-03-24 09:42:16 +00004314 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00004315 fi
4316 ;;
4317
a.rottmann84e63352003-03-24 09:42:16 +00004318 hpux9* | hpux10* | hpux11*)
4319 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4320 lt_cv_prog_cc_wl='-Wl,'
4321 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4322 lt_cv_prog_cc_pic='+Z'
4323 ;;
4324
4325 irix5* | irix6* | nonstopux*)
4326 lt_cv_prog_cc_wl='-Wl,'
4327 lt_cv_prog_cc_static='-non_shared'
4328 # PIC (with -KPIC) is the default.
4329 ;;
4330
drh71eb93e2001-09-28 01:34:43 +00004331 cygwin* | mingw* | pw32* | os2*)
4332 # This hack is so that the source file can tell whether it is being
4333 # built for inclusion in a dll (and should export symbols for example).
a.rottmann84e63352003-03-24 09:42:16 +00004334 lt_cv_prog_cc_pic='-DDLL_EXPORT'
drh71eb93e2001-09-28 01:34:43 +00004335 ;;
4336
4337 newsos6)
a.rottmann84e63352003-03-24 09:42:16 +00004338 lt_cv_prog_cc_pic='-KPIC'
4339 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004340 ;;
4341
4342 osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004343 # All OSF/1 code is PIC.
a.rottmann84e63352003-03-24 09:42:16 +00004344 lt_cv_prog_cc_wl='-Wl,'
4345 lt_cv_prog_cc_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00004346 ;;
4347
4348 sco3.2v5*)
a.rottmann84e63352003-03-24 09:42:16 +00004349 lt_cv_prog_cc_pic='-Kpic'
4350 lt_cv_prog_cc_static='-dn'
4351 lt_cv_prog_cc_shlib='-belf'
drh71eb93e2001-09-28 01:34:43 +00004352 ;;
4353
4354 solaris*)
a.rottmann84e63352003-03-24 09:42:16 +00004355 lt_cv_prog_cc_pic='-KPIC'
4356 lt_cv_prog_cc_static='-Bstatic'
4357 lt_cv_prog_cc_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00004358 ;;
4359
4360 sunos4*)
a.rottmann84e63352003-03-24 09:42:16 +00004361 lt_cv_prog_cc_pic='-PIC'
4362 lt_cv_prog_cc_static='-Bstatic'
4363 lt_cv_prog_cc_wl='-Qoption ld '
drh71eb93e2001-09-28 01:34:43 +00004364 ;;
4365
4366 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
a.rottmann84e63352003-03-24 09:42:16 +00004367 lt_cv_prog_cc_pic='-KPIC'
4368 lt_cv_prog_cc_static='-Bstatic'
4369 lt_cv_prog_cc_wl='-Wl,'
4370 ;;
4371
4372 uts4*)
4373 lt_cv_prog_cc_pic='-pic'
4374 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004375 ;;
4376
4377 sysv4*MP*)
4378 if test -d /usr/nec ;then
a.rottmann84e63352003-03-24 09:42:16 +00004379 lt_cv_prog_cc_pic='-Kconform_pic'
4380 lt_cv_prog_cc_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00004381 fi
4382 ;;
4383
drh71eb93e2001-09-28 01:34:43 +00004384 *)
a.rottmann84e63352003-03-24 09:42:16 +00004385 lt_cv_prog_cc_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00004386 ;;
4387 esac
4388 fi
4389
a.rottmann84e63352003-03-24 09:42:16 +00004390fi
drh71eb93e2001-09-28 01:34:43 +00004391
a.rottmann84e63352003-03-24 09:42:16 +00004392if test -z "$lt_cv_prog_cc_pic"; then
4393 echo "$as_me:$LINENO: result: none" >&5
4394echo "${ECHO_T}none" >&6
4395else
4396 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4397echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4398
4399 # Check to make sure the pic_flag actually works.
4400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4401echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4402 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
a.rottmann84e63352003-03-24 09:42:16 +00004405 save_CFLAGS="$CFLAGS"
4406 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4407 cat >conftest.$ac_ext <<_ACEOF
4408#line $LINENO "configure"
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004414
a.rottmann84e63352003-03-24 09:42:16 +00004415int
4416main ()
4417{
drh71eb93e2001-09-28 01:34:43 +00004418
a.rottmann84e63352003-03-24 09:42:16 +00004419 ;
4420 return 0;
4421}
4422_ACEOF
4423rm -f conftest.$ac_objext
4424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 case $host_os in
4436 hpux9* | hpux10* | hpux11*)
4437 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4438 # they create non-PIC objects. So, if there were any warnings, we
4439 # assume that PIC is not supported.
4440 if test -s conftest.err; then
4441 lt_cv_prog_cc_pic_works=no
4442 else
4443 lt_cv_prog_cc_pic_works=yes
4444 fi
4445 ;;
4446 *)
4447 lt_cv_prog_cc_pic_works=yes
4448 ;;
4449 esac
4450
drh71eb93e2001-09-28 01:34:43 +00004451else
a.rottmann84e63352003-03-24 09:42:16 +00004452 echo "$as_me: failed program was:" >&5
4453sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 lt_cv_prog_cc_pic_works=no
drh71eb93e2001-09-28 01:34:43 +00004456
4457fi
a.rottmann84e63352003-03-24 09:42:16 +00004458rm -f conftest.$ac_objext conftest.$ac_ext
4459 CFLAGS="$save_CFLAGS"
drh71eb93e2001-09-28 01:34:43 +00004460
a.rottmann84e63352003-03-24 09:42:16 +00004461fi
4462
4463
4464 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4465 lt_cv_prog_cc_pic=
4466 lt_cv_prog_cc_can_build_shared=no
4467 else
4468 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4469 fi
4470
4471 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4472echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4473fi
4474
4475# Check for any special shared library compilation flags.
4476if test -n "$lt_cv_prog_cc_shlib"; then
4477 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4478echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4479 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4480 else
4481 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4482echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4483 lt_cv_prog_cc_can_build_shared=no
4484 fi
4485fi
4486
4487echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4488echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4489if test "${lt_cv_prog_cc_static_works+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492 lt_cv_prog_cc_static_works=no
4493 save_LDFLAGS="$LDFLAGS"
4494 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4495 cat >conftest.$ac_ext <<_ACEOF
4496#line $LINENO "configure"
4497/* confdefs.h. */
4498_ACEOF
4499cat confdefs.h >>conftest.$ac_ext
4500cat >>conftest.$ac_ext <<_ACEOF
4501/* end confdefs.h. */
4502
4503int
4504main ()
4505{
4506
4507 ;
4508 return 0;
4509}
4510_ACEOF
4511rm -f conftest.$ac_objext conftest$ac_exeext
4512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest$ac_exeext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 lt_cv_prog_cc_static_works=yes
4524else
4525 echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528fi
4529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4530 LDFLAGS="$save_LDFLAGS"
4531
4532fi
4533
4534
4535# Belt *and* braces to stop my trousers falling down:
4536test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4537echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4538echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4539
4540pic_flag="$lt_cv_prog_cc_pic"
4541special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4542wl="$lt_cv_prog_cc_wl"
4543link_static_flag="$lt_cv_prog_cc_static"
4544no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4545can_build_shared="$lt_cv_prog_cc_can_build_shared"
4546
4547
4548# Check to see if options -o and -c are simultaneously supported by compiler
4549echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh71eb93e2001-09-28 01:34:43 +00004550echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004551if test "${lt_cv_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
drh71eb93e2001-09-28 01:34:43 +00004554
a.rottmann84e63352003-03-24 09:42:16 +00004555$rm -r conftest 2>/dev/null
4556mkdir conftest
4557cd conftest
4558echo "int some_variable = 0;" > conftest.$ac_ext
4559mkdir out
4560# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4561# that will create temporary files in the current directory regardless of
4562# the output directory. Thus, making CWD read-only will cause this test
4563# to fail, enabling locking or at least warning the user not to do parallel
4564# builds.
4565chmod -w .
4566save_CFLAGS="$CFLAGS"
4567CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4568compiler_c_o=no
paulb0208cc2003-04-13 18:26:49 +00004569if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004570 # The compiler can only warn and ignore the option if not recognized
4571 # So say no if there are warnings
4572 if test -s out/conftest.err; then
4573 lt_cv_compiler_c_o=no
4574 else
4575 lt_cv_compiler_c_o=yes
4576 fi
4577else
4578 # Append any errors to the config.log.
4579 cat out/conftest.err 1>&5
4580 lt_cv_compiler_c_o=no
4581fi
4582CFLAGS="$save_CFLAGS"
4583chmod u+w .
4584$rm conftest* out/*
4585rmdir out
4586cd ..
4587rmdir conftest
4588$rm -r conftest 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00004589
4590fi
drh71eb93e2001-09-28 01:34:43 +00004591
a.rottmann84e63352003-03-24 09:42:16 +00004592compiler_c_o=$lt_cv_compiler_c_o
4593echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4594echo "${ECHO_T}$compiler_c_o" >&6
4595
4596if test x"$compiler_c_o" = x"yes"; then
4597 # Check to see if we can write to a .lo
4598 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4599echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4600 if test "${lt_cv_compiler_o_lo+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603
4604 lt_cv_compiler_o_lo=no
4605 save_CFLAGS="$CFLAGS"
4606 CFLAGS="$CFLAGS -c -o conftest.lo"
4607 save_objext="$ac_objext"
4608 ac_objext=lo
4609 cat >conftest.$ac_ext <<_ACEOF
4610#line $LINENO "configure"
4611/* confdefs.h. */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620int some_variable = 0;
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext
4626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 # The compiler can only warn and ignore the option if not recognized
4638 # So say no if there are warnings
4639 if test -s conftest.err; then
4640 lt_cv_compiler_o_lo=no
4641 else
4642 lt_cv_compiler_o_lo=yes
4643 fi
4644
4645else
4646 echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649fi
4650rm -f conftest.$ac_objext conftest.$ac_ext
4651 ac_objext="$save_objext"
4652 CFLAGS="$save_CFLAGS"
4653
4654fi
4655
4656 compiler_o_lo=$lt_cv_compiler_o_lo
4657 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4658echo "${ECHO_T}$compiler_o_lo" >&6
4659else
4660 compiler_o_lo=no
4661fi
4662
4663# Check to see if we can do hard links to lock some files if needed
drh71eb93e2001-09-28 01:34:43 +00004664hard_links="nottested"
a.rottmann84e63352003-03-24 09:42:16 +00004665if test "$compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00004666 # do not overwrite the value of need_locks provided by the user
a.rottmann84e63352003-03-24 09:42:16 +00004667 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh71eb93e2001-09-28 01:34:43 +00004668echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4669 hard_links=yes
4670 $rm conftest*
4671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4672 touch conftest.a
4673 ln conftest.a conftest.b 2>&5 || hard_links=no
4674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
a.rottmann84e63352003-03-24 09:42:16 +00004675 echo "$as_me:$LINENO: result: $hard_links" >&5
drh71eb93e2001-09-28 01:34:43 +00004676echo "${ECHO_T}$hard_links" >&6
4677 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00004678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00004679echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4680 need_locks=warn
4681 fi
4682else
4683 need_locks=no
4684fi
4685
a.rottmann84e63352003-03-24 09:42:16 +00004686if test "$GCC" = yes; then
4687 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4688 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4689echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4690 echo "int some_variable = 0;" > conftest.$ac_ext
4691 save_CFLAGS="$CFLAGS"
4692 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4693 compiler_rtti_exceptions=no
4694 cat >conftest.$ac_ext <<_ACEOF
4695#line $LINENO "configure"
4696/* confdefs.h. */
4697_ACEOF
4698cat confdefs.h >>conftest.$ac_ext
4699cat >>conftest.$ac_ext <<_ACEOF
4700/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004701
a.rottmann84e63352003-03-24 09:42:16 +00004702int
4703main ()
4704{
4705int some_variable = 0;
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710rm -f conftest.$ac_objext
4711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 # The compiler can only warn and ignore the option if not recognized
4723 # So say no if there are warnings
4724 if test -s conftest.err; then
4725 compiler_rtti_exceptions=no
4726 else
4727 compiler_rtti_exceptions=yes
drh71eb93e2001-09-28 01:34:43 +00004728 fi
a.rottmann84e63352003-03-24 09:42:16 +00004729
4730else
4731 echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
4734fi
4735rm -f conftest.$ac_objext conftest.$ac_ext
4736 CFLAGS="$save_CFLAGS"
4737 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4738echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4739
4740 if test "$compiler_rtti_exceptions" = "yes"; then
4741 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4742 else
4743 no_builtin_flag=' -fno-builtin'
4744 fi
4745fi
4746
4747# See if the linker supports building shared libraries.
4748echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4749echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4750
4751allow_undefined_flag=
4752no_undefined_flag=
4753need_lib_prefix=unknown
4754need_version=unknown
4755# when you set need_version to no, make sure it does not cause -set_version
4756# flags to be left without arguments
4757archive_cmds=
4758archive_expsym_cmds=
4759old_archive_from_new_cmds=
4760old_archive_from_expsyms_cmds=
4761export_dynamic_flag_spec=
4762whole_archive_flag_spec=
4763thread_safe_flag_spec=
4764hardcode_into_libs=no
4765hardcode_libdir_flag_spec=
4766hardcode_libdir_separator=
4767hardcode_direct=no
4768hardcode_minus_L=no
4769hardcode_shlibpath_var=unsupported
4770runpath_var=
4771link_all_deplibs=unknown
4772always_export_symbols=no
4773export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4774# include_expsyms should be a list of space-separated symbols to be *always*
4775# included in the symbol list
4776include_expsyms=
4777# exclude_expsyms can be an egrep regular expression of symbols to exclude
4778# it will be wrapped by ` (' and `)$', so one must not match beginning or
4779# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4780# as well as any symbol that contains `d'.
4781exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4782# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4783# platforms (ab)use it in PIC code, but their linkers get confused if
4784# the symbol is explicitly referenced. Since portable code cannot
4785# rely on this symbol name, it's probably fine to never include it in
4786# preloaded symbol tables.
4787extract_expsyms_cmds=
4788
4789case $host_os in
4790cygwin* | mingw* | pw32*)
4791 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4792 # When not using gcc, we currently assume that we are using
4793 # Microsoft Visual C++.
4794 if test "$GCC" != yes; then
drh71eb93e2001-09-28 01:34:43 +00004795 with_gnu_ld=no
a.rottmann84e63352003-03-24 09:42:16 +00004796 fi
4797 ;;
4798openbsd*)
4799 with_gnu_ld=no
4800 ;;
4801esac
drh71eb93e2001-09-28 01:34:43 +00004802
a.rottmann84e63352003-03-24 09:42:16 +00004803ld_shlibs=yes
4804if test "$with_gnu_ld" = yes; then
4805 # If archive_cmds runs LD, not CC, wlarc should be empty
4806 wlarc='${wl}'
drh71eb93e2001-09-28 01:34:43 +00004807
a.rottmann84e63352003-03-24 09:42:16 +00004808 # See if GNU ld supports shared libraries.
4809 case $host_os in
4810 aix3* | aix4* | aix5*)
4811 # On AIX, the GNU linker is very broken
4812 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4813 ld_shlibs=no
4814 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004815
4816*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4817*** to be unable to reliably create shared libraries on AIX.
4818*** Therefore, libtool is disabling shared libraries support. If you
4819*** really care for shared libraries, you may want to modify your PATH
4820*** so that a non-GNU linker is found, and then restart.
4821
4822EOF
a.rottmann84e63352003-03-24 09:42:16 +00004823 ;;
drh71eb93e2001-09-28 01:34:43 +00004824
a.rottmann84e63352003-03-24 09:42:16 +00004825 amigaos*)
4826 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)'
4827 hardcode_libdir_flag_spec='-L$libdir'
4828 hardcode_minus_L=yes
drh71eb93e2001-09-28 01:34:43 +00004829
a.rottmann84e63352003-03-24 09:42:16 +00004830 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4831 # that the semantics of dynamic libraries on AmigaOS, at least up
4832 # to version 4, is to share data among multiple programs linked
4833 # with the same dynamic library. Since this doesn't match the
4834 # behavior of shared libraries on other platforms, we can use
4835 # them.
4836 ld_shlibs=no
4837 ;;
drh71eb93e2001-09-28 01:34:43 +00004838
a.rottmann84e63352003-03-24 09:42:16 +00004839 beos*)
4840 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004841 allow_undefined_flag=unsupported
a.rottmann84e63352003-03-24 09:42:16 +00004842 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4843 # support --undefined. This deserves some investigation. FIXME
4844 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4845 else
4846 ld_shlibs=no
4847 fi
4848 ;;
drh71eb93e2001-09-28 01:34:43 +00004849
a.rottmann84e63352003-03-24 09:42:16 +00004850 cygwin* | mingw* | pw32*)
4851 # hardcode_libdir_flag_spec is actually meaningless, as there is
4852 # no search path for DLLs.
4853 hardcode_libdir_flag_spec='-L$libdir'
4854 allow_undefined_flag=unsupported
4855 always_export_symbols=yes
drh71eb93e2001-09-28 01:34:43 +00004856
a.rottmann84e63352003-03-24 09:42:16 +00004857 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4858 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4859 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4860 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4861 else $CC -o impgen impgen.c ; fi)~
4862 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
drh71eb93e2001-09-28 01:34:43 +00004863
a.rottmann84e63352003-03-24 09:42:16 +00004864 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 +00004865
a.rottmann84e63352003-03-24 09:42:16 +00004866 # cygwin and mingw dlls have different entry points and sets of symbols
4867 # to exclude.
4868 # FIXME: what about values for MSVC?
4869 dll_entry=__cygwin_dll_entry@12
4870 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4871 case $host_os in
4872 mingw*)
4873 # mingw values
4874 dll_entry=_DllMainCRTStartup@12
4875 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4876 ;;
4877 esac
drh71eb93e2001-09-28 01:34:43 +00004878
a.rottmann84e63352003-03-24 09:42:16 +00004879 # mingw and cygwin differ, and it's simplest to just exclude the union
4880 # of the two symbol sets.
4881 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4882
4883 # recent cygwin and mingw systems supply a stub DllMain which the user
4884 # can override, but on older systems we have to supply one (in ltdll.c)
4885 if test "x$lt_cv_need_dllmain" = "xyes"; then
4886 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4887 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~
4888 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4889 else
4890 ltdll_obj=
4891 ltdll_cmds=
4892 fi
4893
4894 # Extract the symbol export list from an `--export-all' def file,
4895 # then regenerate the def file from the symbol export list, so that
4896 # the compiled dll only exports the symbol export list.
4897 # Be careful not to strip the DATA tag left be newer dlltools.
4898 export_symbols_cmds="$ltdll_cmds"'
4899 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4900 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4901
4902 # If the export-symbols file already is a .def file (1st line
4903 # is EXPORTS), use it as is.
4904 # If DATA tags from a recent dlltool are present, honour them!
4905 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4906 cp $export_symbols $output_objdir/$soname-def;
drh71eb93e2001-09-28 01:34:43 +00004907 else
a.rottmann84e63352003-03-24 09:42:16 +00004908 echo EXPORTS > $output_objdir/$soname-def;
4909 _lt_hint=1;
4910 cat $export_symbols | while read symbol; do
4911 set dummy \$symbol;
4912 case \$# in
4913 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4914 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4915 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4916 esac;
4917 _lt_hint=`expr 1 + \$_lt_hint`;
4918 done;
4919 fi~
4920 '"$ltdll_cmds"'
4921 $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~
4922 $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~
4923 $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~
4924 $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~
4925 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4926 ;;
drh71eb93e2001-09-28 01:34:43 +00004927
a.rottmann84e63352003-03-24 09:42:16 +00004928 netbsd*)
4929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4931 wlarc=
4932 else
4933 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4934 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4935 fi
4936 ;;
drh71eb93e2001-09-28 01:34:43 +00004937
a.rottmann84e63352003-03-24 09:42:16 +00004938 solaris* | sysv5*)
4939 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4940 ld_shlibs=no
4941 cat <<EOF 1>&2
drh71eb93e2001-09-28 01:34:43 +00004942
4943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4944*** create shared libraries on Solaris systems. Therefore, libtool
4945*** is disabling shared libraries support. We urge you to upgrade GNU
4946*** binutils to release 2.9.1 or newer. Another option is to modify
4947*** your PATH or compiler configuration so that the native linker is
4948*** used, and then restart.
4949
4950EOF
a.rottmann84e63352003-03-24 09:42:16 +00004951 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4954 else
4955 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00004956 fi
a.rottmann84e63352003-03-24 09:42:16 +00004957 ;;
4958
4959 sunos4*)
4960 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4961 wlarc=
4962 hardcode_direct=yes
4963 hardcode_shlibpath_var=no
4964 ;;
4965
4966 *)
4967 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4970 else
4971 ld_shlibs=no
4972 fi
4973 ;;
4974 esac
4975
4976 if test "$ld_shlibs" = yes; then
4977 runpath_var=LD_RUN_PATH
4978 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4979 export_dynamic_flag_spec='${wl}--export-dynamic'
drh71eb93e2001-09-28 01:34:43 +00004980 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00004981 cygwin* | mingw* | pw32*)
a.rottmann84e63352003-03-24 09:42:16 +00004982 # dlltool doesn't understand --whole-archive et. al.
4983 whole_archive_flag_spec=
drh71eb93e2001-09-28 01:34:43 +00004984 ;;
drh71eb93e2001-09-28 01:34:43 +00004985 *)
a.rottmann84e63352003-03-24 09:42:16 +00004986 # ancient GNU ld didn't support --whole-archive et. al.
4987 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4988 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4989 else
4990 whole_archive_flag_spec=
4991 fi
drh71eb93e2001-09-28 01:34:43 +00004992 ;;
4993 esac
4994 fi
a.rottmann84e63352003-03-24 09:42:16 +00004995else
4996 # PORTME fill in a description of your system's linker (not GNU ld)
4997 case $host_os in
4998 aix3*)
4999 allow_undefined_flag=unsupported
5000 always_export_symbols=yes
5001 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'
5002 # Note: this linker hardcodes the directories in LIBPATH if there
5003 # are no directories specified by -L.
5004 hardcode_minus_L=yes
5005 if test "$GCC" = yes && test -z "$link_static_flag"; then
5006 # Neither direct hardcoding nor static linking is supported with a
5007 # broken collect2.
5008 hardcode_direct=unsupported
drh71eb93e2001-09-28 01:34:43 +00005009 fi
a.rottmann84e63352003-03-24 09:42:16 +00005010 ;;
5011
5012 aix4* | aix5*)
5013 if test "$host_cpu" = ia64; then
5014 # On IA64, the linker does run time linking by default, so we don't
5015 # have to do anything special.
5016 aix_use_runtimelinking=no
5017 exp_sym_flag='-Bexport'
5018 no_entry_flag=""
5019 else
5020 aix_use_runtimelinking=no
5021
5022 # Test if we are trying to use run time linking or normal
5023 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5024 # need to do runtime linking.
5025 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5026 for ld_flag in $LDFLAGS; do
5027 case $ld_flag in
5028 *-brtl*)
5029 aix_use_runtimelinking=yes
5030 break
5031 ;;
5032 esac
5033 done
5034 esac
5035
5036 exp_sym_flag='-bexport'
5037 no_entry_flag='-bnoentry'
5038 fi
5039
5040 # When large executables or shared objects are built, AIX ld can
5041 # have problems creating the table of contents. If linking a library
5042 # or program results in "error TOC overflow" add -mminimal-toc to
5043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5045
5046 hardcode_direct=yes
5047 archive_cmds=''
5048 hardcode_libdir_separator=':'
5049 if test "$GCC" = yes; then
5050 case $host_os in aix4.[012]|aix4.[012].*)
5051 collect2name=`${CC} -print-prog-name=collect2`
5052 if test -f "$collect2name" && \
5053 strings "$collect2name" | grep resolve_lib_name >/dev/null
5054 then
5055 # We have reworked collect2
5056 hardcode_direct=yes
5057 else
5058 # We have old collect2
5059 hardcode_direct=unsupported
5060 # It fails to find uninstalled libraries when the uninstalled
5061 # path is not listed in the libpath. Setting hardcode_minus_L
5062 # to unsupported forces relinking
5063 hardcode_minus_L=yes
5064 hardcode_libdir_flag_spec='-L$libdir'
5065 hardcode_libdir_separator=
5066 fi
5067 esac
5068
5069 shared_flag='-shared'
5070 else
5071 # not using gcc
5072 if test "$host_cpu" = ia64; then
5073 shared_flag='${wl}-G'
5074 else
5075 if test "$aix_use_runtimelinking" = yes; then
5076 shared_flag='${wl}-G'
5077 else
5078 shared_flag='${wl}-bM:SRE'
5079 fi
5080 fi
5081 fi
5082
5083 # It seems that -bexpall can do strange things, so it is better to
5084 # generate a list of symbols to export.
5085 always_export_symbols=yes
5086 if test "$aix_use_runtimelinking" = yes; then
5087 # Warning - without using the other runtime loading flags (-brtl),
5088 # -berok will link without error, but may produce a broken library.
5089 allow_undefined_flag='-berok'
5090 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5091 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"
5092 else
5093 if test "$host_cpu" = ia64; then
5094 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5095 allow_undefined_flag="-z nodefs"
5096 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"
5097 else
5098 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5099 # Warning - without using the other run time loading flags,
5100 # -berok will link without error, but may produce a broken library.
5101 allow_undefined_flag='${wl}-berok'
5102 # This is a bit strange, but is similar to how AIX traditionally builds
5103 # it's shared libraries.
5104 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'
5105 fi
5106 fi
5107 ;;
5108
5109 amigaos*)
5110 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)'
5111 hardcode_libdir_flag_spec='-L$libdir'
5112 hardcode_minus_L=yes
5113 # see comment about different semantics on the GNU ld section
5114 ld_shlibs=no
5115 ;;
5116
5117 cygwin* | mingw* | pw32*)
5118 # When not using gcc, we currently assume that we are using
5119 # Microsoft Visual C++.
5120 # hardcode_libdir_flag_spec is actually meaningless, as there is
5121 # no search path for DLLs.
5122 hardcode_libdir_flag_spec=' '
5123 allow_undefined_flag=unsupported
5124 # Tell ltmain to make .lib files, not .a files.
5125 libext=lib
5126 # FIXME: Setting linknames here is a bad hack.
5127 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5128 # The linker will automatically build a .lib file if we build a DLL.
5129 old_archive_from_new_cmds='true'
5130 # FIXME: Should let the user specify the lib program.
5131 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5132 fix_srcfile_path='`cygpath -w "$srcfile"`'
5133 ;;
5134
5135 darwin* | rhapsody*)
5136 case "$host_os" in
5137 rhapsody* | darwin1.[012])
5138 allow_undefined_flag='-undefined suppress'
5139 ;;
5140 *) # Darwin 1.3 on
5141 allow_undefined_flag='-flat_namespace -undefined suppress'
5142 ;;
5143 esac
5144 # FIXME: Relying on posixy $() will cause problems for
5145 # cross-compilation, but unfortunately the echo tests do not
5146 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5147 # `"' quotes if we put them in here... so don't!
5148 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)'
5149 # We need to add '_' to the symbols in $export_symbols first
5150 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5151 hardcode_direct=yes
5152 hardcode_shlibpath_var=no
5153 whole_archive_flag_spec='-all_load $convenience'
5154 ;;
5155
5156 freebsd1*)
5157 ld_shlibs=no
5158 ;;
5159
5160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5161 # support. Future versions do this automatically, but an explicit c++rt0.o
5162 # does not break anything, and helps significantly (at the cost of a little
5163 # extra space).
5164 freebsd2.2*)
5165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5166 hardcode_libdir_flag_spec='-R$libdir'
5167 hardcode_direct=yes
5168 hardcode_shlibpath_var=no
5169 ;;
5170
5171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5172 freebsd2*)
5173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5174 hardcode_direct=yes
5175 hardcode_minus_L=yes
5176 hardcode_shlibpath_var=no
5177 ;;
5178
5179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5180 freebsd*)
5181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5182 hardcode_libdir_flag_spec='-R$libdir'
5183 hardcode_direct=yes
5184 hardcode_shlibpath_var=no
5185 ;;
5186
5187 hpux9* | hpux10* | hpux11*)
5188 case $host_os in
5189 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' ;;
5190 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5191 esac
5192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5193 hardcode_libdir_separator=:
5194 hardcode_direct=yes
5195 hardcode_minus_L=yes # Not in the search PATH, but as the default
5196 # location of the library.
5197 export_dynamic_flag_spec='${wl}-E'
5198 ;;
5199
5200 irix5* | irix6* | nonstopux*)
5201 if test "$GCC" = yes; then
5202 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'
5203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5204 else
5205 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'
5206 hardcode_libdir_flag_spec='-rpath $libdir'
5207 fi
5208 hardcode_libdir_separator=:
5209 link_all_deplibs=yes
5210 ;;
5211
5212 netbsd*)
5213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5215 else
5216 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5217 fi
5218 hardcode_libdir_flag_spec='-R$libdir'
5219 hardcode_direct=yes
5220 hardcode_shlibpath_var=no
5221 ;;
5222
5223 newsos6)
5224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5225 hardcode_direct=yes
5226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5227 hardcode_libdir_separator=:
5228 hardcode_shlibpath_var=no
5229 ;;
5230
5231 openbsd*)
5232 hardcode_direct=yes
5233 hardcode_shlibpath_var=no
5234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5237 export_dynamic_flag_spec='${wl}-E'
5238 else
5239 case "$host_os" in
5240 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5242 hardcode_libdir_flag_spec='-R$libdir'
5243 ;;
5244 *)
5245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5247 ;;
5248 esac
5249 fi
5250 ;;
5251
5252 os2*)
5253 hardcode_libdir_flag_spec='-L$libdir'
5254 hardcode_minus_L=yes
5255 allow_undefined_flag=unsupported
5256 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'
5257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5258 ;;
5259
5260 osf3*)
5261 if test "$GCC" = yes; then
5262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5263 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'
5264 else
5265 allow_undefined_flag=' -expect_unresolved \*'
5266 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'
5267 fi
5268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5269 hardcode_libdir_separator=:
5270 ;;
5271
5272 osf4* | osf5*) # as osf3* with the addition of -msym flag
5273 if test "$GCC" = yes; then
5274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5275 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'
5276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5277 else
5278 allow_undefined_flag=' -expect_unresolved \*'
5279 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'
5280 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5281 $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'
5282
5283 #Both c and cxx compiler support -rpath directly
5284 hardcode_libdir_flag_spec='-rpath $libdir'
5285 fi
5286 hardcode_libdir_separator=:
5287 ;;
5288
5289 sco3.2v5*)
5290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5291 hardcode_shlibpath_var=no
5292 runpath_var=LD_RUN_PATH
5293 hardcode_runpath_var=yes
5294 export_dynamic_flag_spec='${wl}-Bexport'
5295 ;;
5296
5297 solaris*)
5298 # gcc --version < 3.0 without binutils cannot create self contained
5299 # shared libraries reliably, requiring libgcc.a to resolve some of
5300 # the object symbols generated in some cases. Libraries that use
5301 # assert need libgcc.a to resolve __eprintf, for example. Linking
5302 # a copy of libgcc.a into every shared library to guarantee resolving
5303 # such symbols causes other problems: According to Tim Van Holder
5304 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5305 # (to the application) exception stack for one thing.
5306 no_undefined_flag=' -z defs'
5307 if test "$GCC" = yes; then
5308 case `$CC --version 2>/dev/null` in
5309 [12].*)
5310 cat <<EOF 1>&2
5311
5312*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5313*** create self contained shared libraries on Solaris systems, without
5314*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5315*** -no-undefined support, which will at least allow you to build shared
5316*** libraries. However, you may find that when you link such libraries
5317*** into an application without using GCC, you have to manually add
5318*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5319*** upgrade to a newer version of GCC. Another option is to rebuild your
5320*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5321
5322EOF
5323 no_undefined_flag=
5324 ;;
5325 esac
5326 fi
5327 # $CC -shared without GNU ld will not create a library from C++
5328 # object files and a static libstdc++, better avoid it by now
5329 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5330 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5332 hardcode_libdir_flag_spec='-R$libdir'
5333 hardcode_shlibpath_var=no
5334 case $host_os in
5335 solaris2.[0-5] | solaris2.[0-5].*) ;;
5336 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5338 esac
5339 link_all_deplibs=yes
5340 ;;
5341
5342 sunos4*)
5343 if test "x$host_vendor" = xsequent; then
5344 # Use $CC to link under sequent, because it throws in some extra .o
5345 # files that make .init and .fini sections work.
5346 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5347 else
5348 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5349 fi
5350 hardcode_libdir_flag_spec='-L$libdir'
5351 hardcode_direct=yes
5352 hardcode_minus_L=yes
5353 hardcode_shlibpath_var=no
5354 ;;
5355
5356 sysv4)
5357 case $host_vendor in
5358 sni)
5359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5360 hardcode_direct=yes # is this really true???
5361 ;;
5362 siemens)
5363 ## LD is ld it makes a PLAMLIB
5364 ## CC just makes a GrossModule.
5365 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5366 reload_cmds='$CC -r -o $output$reload_objs'
5367 hardcode_direct=no
5368 ;;
5369 motorola)
5370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5371 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5372 ;;
5373 esac
5374 runpath_var='LD_RUN_PATH'
5375 hardcode_shlibpath_var=no
5376 ;;
5377
5378 sysv4.3*)
5379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5380 hardcode_shlibpath_var=no
5381 export_dynamic_flag_spec='-Bexport'
5382 ;;
5383
5384 sysv5*)
5385 no_undefined_flag=' -z text'
5386 # $CC -shared without GNU ld will not create a library from C++
5387 # object files and a static libstdc++, better avoid it by now
5388 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5389 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5390 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5391 hardcode_libdir_flag_spec=
5392 hardcode_shlibpath_var=no
5393 runpath_var='LD_RUN_PATH'
5394 ;;
5395
5396 uts4*)
5397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5398 hardcode_libdir_flag_spec='-L$libdir'
5399 hardcode_shlibpath_var=no
5400 ;;
5401
5402 dgux*)
5403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5404 hardcode_libdir_flag_spec='-L$libdir'
5405 hardcode_shlibpath_var=no
5406 ;;
5407
5408 sysv4*MP*)
5409 if test -d /usr/nec; then
5410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5411 hardcode_shlibpath_var=no
5412 runpath_var=LD_RUN_PATH
5413 hardcode_runpath_var=yes
5414 ld_shlibs=yes
5415 fi
5416 ;;
5417
5418 sysv4.2uw2*)
5419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5420 hardcode_direct=yes
5421 hardcode_minus_L=no
5422 hardcode_shlibpath_var=no
5423 hardcode_runpath_var=yes
5424 runpath_var=LD_RUN_PATH
5425 ;;
5426
5427 sysv5uw7* | unixware7*)
5428 no_undefined_flag='${wl}-z ${wl}text'
5429 if test "$GCC" = yes; then
5430 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5431 else
5432 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5433 fi
5434 runpath_var='LD_RUN_PATH'
5435 hardcode_shlibpath_var=no
5436 ;;
5437
5438 *)
5439 ld_shlibs=no
drh71eb93e2001-09-28 01:34:43 +00005440 ;;
5441 esac
5442fi
a.rottmann84e63352003-03-24 09:42:16 +00005443echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5444echo "${ECHO_T}$ld_shlibs" >&6
5445test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00005446
a.rottmann84e63352003-03-24 09:42:16 +00005447# Check hardcoding attributes.
5448echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh71eb93e2001-09-28 01:34:43 +00005449echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5450hardcode_action=
5451if test -n "$hardcode_libdir_flag_spec" || \
a.rottmann84e63352003-03-24 09:42:16 +00005452 test -n "$runpath_var"; then
drh71eb93e2001-09-28 01:34:43 +00005453
5454 # We can hardcode non-existant directories.
5455 if test "$hardcode_direct" != no &&
5456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5457 # have to relink, otherwise we might link with an installed library
5458 # when we should be linking with a yet-to-be-installed one
a.rottmann84e63352003-03-24 09:42:16 +00005459 ## test "$hardcode_shlibpath_var" != no &&
drh71eb93e2001-09-28 01:34:43 +00005460 test "$hardcode_minus_L" != no; then
5461 # Linking always hardcodes the temporary library directory.
5462 hardcode_action=relink
5463 else
5464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5465 hardcode_action=immediate
5466 fi
5467else
5468 # We cannot hardcode anything, or else we can only hardcode existing
5469 # directories.
5470 hardcode_action=unsupported
5471fi
a.rottmann84e63352003-03-24 09:42:16 +00005472echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh71eb93e2001-09-28 01:34:43 +00005473echo "${ECHO_T}$hardcode_action" >&6
5474
drh71eb93e2001-09-28 01:34:43 +00005475striplib=
5476old_striplib=
a.rottmann84e63352003-03-24 09:42:16 +00005477echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh71eb93e2001-09-28 01:34:43 +00005478echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5479if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5480 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5481 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
a.rottmann84e63352003-03-24 09:42:16 +00005482 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00005483echo "${ECHO_T}yes" >&6
5484else
a.rottmann84e63352003-03-24 09:42:16 +00005485 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00005486echo "${ECHO_T}no" >&6
5487fi
5488
a.rottmann84e63352003-03-24 09:42:16 +00005489reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490test -z "$deplibs_check_method" && deplibs_check_method=unknown
5491
5492# PORTME Fill in your ld.so characteristics
5493echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh71eb93e2001-09-28 01:34:43 +00005494echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5495library_names_spec=
5496libname_spec='lib$name'
5497soname_spec=
5498postinstall_cmds=
5499postuninstall_cmds=
5500finish_cmds=
5501finish_eval=
5502shlibpath_var=
5503shlibpath_overrides_runpath=unknown
5504version_type=none
5505dynamic_linker="$host_os ld.so"
5506sys_lib_dlsearch_path_spec="/lib /usr/lib"
5507sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
drh71eb93e2001-09-28 01:34:43 +00005508
5509case $host_os in
5510aix3*)
5511 version_type=linux
5512 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5513 shlibpath_var=LIBPATH
5514
a.rottmann84e63352003-03-24 09:42:16 +00005515 # AIX has no versioning support, so we append a major version to the name.
drh71eb93e2001-09-28 01:34:43 +00005516 soname_spec='${libname}${release}.so$major'
5517 ;;
5518
5519aix4* | aix5*)
5520 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00005521 need_lib_prefix=no
5522 need_version=no
5523 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005524 if test "$host_cpu" = ia64; then
5525 # AIX 5 supports IA64
5526 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5527 shlibpath_var=LD_LIBRARY_PATH
5528 else
5529 # With GCC up to 2.95.x, collect2 would create an import file
5530 # for dependence libraries. The import file would start with
5531 # the line `#! .'. This would cause the generated library to
5532 # depend on `.', always an invalid library. This was fixed in
5533 # development snapshots of GCC prior to 3.0.
5534 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005535 aix4 | aix4.[01] | aix4.[01].*)
5536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5537 echo ' yes '
5538 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5539 :
5540 else
5541 can_build_shared=no
5542 fi
5543 ;;
drh71eb93e2001-09-28 01:34:43 +00005544 esac
a.rottmann84e63352003-03-24 09:42:16 +00005545 # AIX (on Power*) has no versioning support, so currently we can
5546 # not hardcode correct soname into executable. Probably we can
5547 # add versioning support to collect2, so additional links can
5548 # be useful in future.
drh71eb93e2001-09-28 01:34:43 +00005549 if test "$aix_use_runtimelinking" = yes; then
5550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5551 # instead of lib<name>.a to let people know that these are not
5552 # typical AIX shared libraries.
5553 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5554 else
5555 # We preserve .a as extension for shared libraries through AIX4.2
5556 # and later when we are not doing run time linking.
5557 library_names_spec='${libname}${release}.a $libname.a'
5558 soname_spec='${libname}${release}.so$major'
5559 fi
5560 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00005561 fi
a.rottmann84e63352003-03-24 09:42:16 +00005562 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005563 ;;
5564
5565amigaos*)
5566 library_names_spec='$libname.ixlibrary $libname.a'
5567 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5568 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'
5569 ;;
5570
5571beos*)
5572 library_names_spec='${libname}.so'
5573 dynamic_linker="$host_os ld.so"
5574 shlibpath_var=LIBRARY_PATH
5575 ;;
5576
5577bsdi4*)
5578 version_type=linux
5579 need_version=no
5580 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5581 soname_spec='${libname}${release}.so$major'
5582 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5583 shlibpath_var=LD_LIBRARY_PATH
5584 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5585 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
a.rottmann84e63352003-03-24 09:42:16 +00005586 export_dynamic_flag_spec=-rdynamic
drh71eb93e2001-09-28 01:34:43 +00005587 # the default ld.so.conf also contains /usr/contrib/lib and
5588 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5589 # libtool to hard-code these into programs
5590 ;;
5591
5592cygwin* | mingw* | pw32*)
5593 version_type=windows
5594 need_version=no
5595 need_lib_prefix=no
5596 case $GCC,$host_os in
5597 yes,cygwin*)
5598 library_names_spec='$libname.dll.a'
drh71eb93e2001-09-28 01:34:43 +00005599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5600 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5601 dldir=$destdir/`dirname \$dlpath`~
5602 test -d \$dldir || mkdir -p \$dldir~
5603 $install_prog .libs/$dlname \$dldir/$dlname'
5604 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5605 dlpath=$dir/\$dldll~
5606 $rm \$dlpath'
5607 ;;
5608 yes,mingw*)
5609 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
a.rottmann84e63352003-03-24 09:42:16 +00005610 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 +00005611 ;;
5612 yes,pw32*)
5613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5614 ;;
5615 *)
5616 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5617 ;;
5618 esac
5619 dynamic_linker='Win32 ld.exe'
5620 # FIXME: first we should search . and the directory the executable is in
5621 shlibpath_var=PATH
5622 ;;
5623
5624darwin* | rhapsody*)
5625 dynamic_linker="$host_os dyld"
5626 version_type=darwin
5627 need_lib_prefix=no
5628 need_version=no
5629 # FIXME: Relying on posixy $() will cause problems for
5630 # cross-compilation, but unfortunately the echo tests do not
5631 # yet detect zsh echo's removal of \ escapes.
5632 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)'
5633 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5634 shlibpath_overrides_runpath=yes
5635 shlibpath_var=DYLD_LIBRARY_PATH
5636 ;;
5637
a.rottmann84e63352003-03-24 09:42:16 +00005638freebsd1*)
5639 dynamic_linker=no
5640 ;;
5641
5642freebsd*-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005643 version_type=linux
5644 need_lib_prefix=no
5645 need_version=no
5646 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5647 soname_spec='${libname}${release}.so$major'
5648 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00005649 shlibpath_overrides_runpath=no
5650 hardcode_into_libs=yes
5651 dynamic_linker='GNU/FreeBSD ld.so'
drh71eb93e2001-09-28 01:34:43 +00005652 ;;
5653
5654freebsd*)
5655 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5656 version_type=freebsd-$objformat
5657 case $version_type in
5658 freebsd-elf*)
5659 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5660 need_version=no
5661 need_lib_prefix=no
5662 ;;
5663 freebsd-*)
5664 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5665 need_version=yes
5666 ;;
5667 esac
5668 shlibpath_var=LD_LIBRARY_PATH
5669 case $host_os in
5670 freebsd2*)
5671 shlibpath_overrides_runpath=yes
5672 ;;
a.rottmann84e63352003-03-24 09:42:16 +00005673 *)
drh71eb93e2001-09-28 01:34:43 +00005674 shlibpath_overrides_runpath=no
5675 hardcode_into_libs=yes
5676 ;;
5677 esac
5678 ;;
5679
5680gnu*)
5681 version_type=linux
5682 need_lib_prefix=no
5683 need_version=no
5684 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5685 soname_spec='${libname}${release}.so$major'
5686 shlibpath_var=LD_LIBRARY_PATH
5687 hardcode_into_libs=yes
5688 ;;
5689
5690hpux9* | hpux10* | hpux11*)
5691 # Give a soname corresponding to the major version so that dld.sl refuses to
5692 # link against other versions.
a.rottmann84e63352003-03-24 09:42:16 +00005693 dynamic_linker="$host_os dld.sl"
drh71eb93e2001-09-28 01:34:43 +00005694 version_type=sunos
5695 need_lib_prefix=no
5696 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005697 shlibpath_var=SHLIB_PATH
5698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5699 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5700 soname_spec='${libname}${release}.sl$major'
drh71eb93e2001-09-28 01:34:43 +00005701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5702 postinstall_cmds='chmod 555 $lib'
5703 ;;
5704
a.rottmann84e63352003-03-24 09:42:16 +00005705irix5* | irix6* | nonstopux*)
5706 case $host_os in
5707 nonstopux*) version_type=nonstopux ;;
5708 *) version_type=irix ;;
5709 esac
drh71eb93e2001-09-28 01:34:43 +00005710 need_lib_prefix=no
5711 need_version=no
5712 soname_spec='${libname}${release}.so$major'
5713 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5714 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00005715 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00005716 libsuff= shlibsuff=
5717 ;;
5718 *)
5719 case $LD in # libtool.m4 will add one of these switches to LD
5720 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5721 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5722 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5723 *) libsuff= shlibsuff= libmagic=never-match;;
5724 esac
5725 ;;
5726 esac
5727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5728 shlibpath_overrides_runpath=no
5729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5731 ;;
5732
5733# No shared lib support for Linux oldld, aout, or coff.
a.rottmann84e63352003-03-24 09:42:16 +00005734linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
drh71eb93e2001-09-28 01:34:43 +00005735 dynamic_linker=no
5736 ;;
5737
5738# This must be Linux ELF.
a.rottmann84e63352003-03-24 09:42:16 +00005739linux-gnu*)
drh71eb93e2001-09-28 01:34:43 +00005740 version_type=linux
5741 need_lib_prefix=no
5742 need_version=no
5743 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5744 soname_spec='${libname}${release}.so$major'
5745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5746 shlibpath_var=LD_LIBRARY_PATH
5747 shlibpath_overrides_runpath=no
5748 # This implies no fast_install, which is unacceptable.
5749 # Some rework will be needed to allow for fast_install
5750 # before this can be enabled.
5751 hardcode_into_libs=yes
5752
5753 # We used to test for /lib/ld.so.1 and disable shared libraries on
5754 # powerpc, because MkLinux only supported shared libraries with the
5755 # GNU dynamic linker. Since this was broken with cross compilers,
5756 # most powerpc-linux boxes support dynamic linking these days and
5757 # people can always --disable-shared, the test was removed, and we
5758 # assume the GNU/Linux dynamic linker is in use.
5759 dynamic_linker='GNU/Linux ld.so'
5760 ;;
5761
5762netbsd*)
5763 version_type=sunos
5764 need_lib_prefix=no
5765 need_version=no
5766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5767 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5769 dynamic_linker='NetBSD (a.out) ld.so'
5770 else
5771 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5772 soname_spec='${libname}${release}.so$major'
5773 dynamic_linker='NetBSD ld.elf_so'
5774 fi
5775 shlibpath_var=LD_LIBRARY_PATH
5776 shlibpath_overrides_runpath=yes
5777 hardcode_into_libs=yes
5778 ;;
5779
5780newsos6)
5781 version_type=linux
5782 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5783 shlibpath_var=LD_LIBRARY_PATH
5784 shlibpath_overrides_runpath=yes
5785 ;;
5786
drh71eb93e2001-09-28 01:34:43 +00005787openbsd*)
5788 version_type=sunos
a.rottmann84e63352003-03-24 09:42:16 +00005789 need_lib_prefix=no
5790 need_version=no
5791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5792 case "$host_os" in
5793 openbsd2.[89] | openbsd2.[89].*)
5794 shlibpath_overrides_runpath=no
5795 ;;
5796 *)
5797 shlibpath_overrides_runpath=yes
5798 ;;
5799 esac
5800 else
5801 shlibpath_overrides_runpath=yes
5802 fi
drh71eb93e2001-09-28 01:34:43 +00005803 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5805 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00005806 ;;
5807
5808os2*)
5809 libname_spec='$name'
5810 need_lib_prefix=no
5811 library_names_spec='$libname.dll $libname.a'
5812 dynamic_linker='OS/2 ld.exe'
5813 shlibpath_var=LIBPATH
5814 ;;
5815
5816osf3* | osf4* | osf5*)
5817 version_type=osf
5818 need_version=no
a.rottmann84e63352003-03-24 09:42:16 +00005819 need_lib_prefix=no
5820 soname_spec='${libname}${release}.so$major'
5821 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
drh71eb93e2001-09-28 01:34:43 +00005822 shlibpath_var=LD_LIBRARY_PATH
5823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
a.rottmann84e63352003-03-24 09:42:16 +00005825 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00005826 ;;
5827
5828sco3.2v5*)
5829 version_type=osf
5830 soname_spec='${libname}${release}.so$major'
5831 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5832 shlibpath_var=LD_LIBRARY_PATH
5833 ;;
5834
5835solaris*)
5836 version_type=linux
5837 need_lib_prefix=no
5838 need_version=no
5839 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5840 soname_spec='${libname}${release}.so$major'
5841 shlibpath_var=LD_LIBRARY_PATH
5842 shlibpath_overrides_runpath=yes
5843 hardcode_into_libs=yes
5844 # ldd complains unless libraries are executable
5845 postinstall_cmds='chmod +x $lib'
5846 ;;
5847
5848sunos4*)
5849 version_type=sunos
5850 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5852 shlibpath_var=LD_LIBRARY_PATH
5853 shlibpath_overrides_runpath=yes
5854 if test "$with_gnu_ld" = yes; then
5855 need_lib_prefix=no
5856 fi
5857 need_version=yes
5858 ;;
5859
5860sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5861 version_type=linux
5862 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5863 soname_spec='${libname}${release}.so$major'
5864 shlibpath_var=LD_LIBRARY_PATH
5865 case $host_vendor in
5866 sni)
5867 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00005868 need_lib_prefix=no
5869 export_dynamic_flag_spec='${wl}-Blargedynsym'
5870 runpath_var=LD_RUN_PATH
5871 ;;
5872 siemens)
5873 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00005874 ;;
5875 motorola)
5876 need_lib_prefix=no
5877 need_version=no
5878 shlibpath_overrides_runpath=no
5879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5880 ;;
5881 esac
5882 ;;
5883
a.rottmann84e63352003-03-24 09:42:16 +00005884uts4*)
5885 version_type=linux
5886 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5887 soname_spec='${libname}${release}.so$major'
5888 shlibpath_var=LD_LIBRARY_PATH
5889 ;;
5890
5891dgux*)
5892 version_type=linux
5893 need_lib_prefix=no
5894 need_version=no
5895 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5896 soname_spec='${libname}${release}.so$major'
5897 shlibpath_var=LD_LIBRARY_PATH
5898 ;;
5899
drh71eb93e2001-09-28 01:34:43 +00005900sysv4*MP*)
5901 if test -d /usr/nec ;then
5902 version_type=linux
5903 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5904 soname_spec='$libname.so.$major'
5905 shlibpath_var=LD_LIBRARY_PATH
5906 fi
5907 ;;
5908
drh71eb93e2001-09-28 01:34:43 +00005909*)
5910 dynamic_linker=no
5911 ;;
5912esac
a.rottmann84e63352003-03-24 09:42:16 +00005913echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh71eb93e2001-09-28 01:34:43 +00005914echo "${ECHO_T}$dynamic_linker" >&6
5915test "$dynamic_linker" = no && can_build_shared=no
5916
a.rottmann84e63352003-03-24 09:42:16 +00005917# Report the final consequences.
5918echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5919echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5920echo "$as_me:$LINENO: result: $can_build_shared" >&5
5921echo "${ECHO_T}$can_build_shared" >&6
5922
5923echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5924echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5925test "$can_build_shared" = "no" && enable_shared=no
5926
5927# On AIX, shared libraries and static libraries use the same namespace, and
5928# are all built from PIC.
5929case "$host_os" in
5930aix3*)
5931 test "$enable_shared" = yes && enable_static=no
5932 if test -n "$RANLIB"; then
5933 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5934 postinstall_cmds='$RANLIB $lib'
5935 fi
5936 ;;
5937
5938aix4*)
5939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5940 test "$enable_shared" = yes && enable_static=no
5941 fi
5942 ;;
5943esac
5944echo "$as_me:$LINENO: result: $enable_shared" >&5
5945echo "${ECHO_T}$enable_shared" >&6
5946
5947echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5948echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5949# Make sure either enable_shared or enable_static is yes.
5950test "$enable_shared" = yes || enable_static=yes
5951echo "$as_me:$LINENO: result: $enable_static" >&5
5952echo "${ECHO_T}$enable_static" >&6
5953
5954if test "$hardcode_action" = relink; then
5955 # Fast installation is not supported
5956 enable_fast_install=no
5957elif test "$shlibpath_overrides_runpath" = yes ||
5958 test "$enable_shared" = no; then
5959 # Fast installation is not necessary
5960 enable_fast_install=needless
5961fi
5962
5963variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5964if test "$GCC" = yes; then
5965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5966fi
5967
drh71eb93e2001-09-28 01:34:43 +00005968if test "x$enable_dlopen" != xyes; then
5969 enable_dlopen=unknown
5970 enable_dlopen_self=unknown
5971 enable_dlopen_self_static=unknown
5972else
5973 lt_cv_dlopen=no
5974 lt_cv_dlopen_libs=
5975
5976 case $host_os in
5977 beos*)
5978 lt_cv_dlopen="load_add_on"
5979 lt_cv_dlopen_libs=
5980 lt_cv_dlopen_self=yes
5981 ;;
5982
5983 cygwin* | mingw* | pw32*)
5984 lt_cv_dlopen="LoadLibrary"
5985 lt_cv_dlopen_libs=
5986 ;;
5987
5988 *)
a.rottmann84e63352003-03-24 09:42:16 +00005989 echo "$as_me:$LINENO: checking for shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00005990echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5991if test "${ac_cv_func_shl_load+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005995#line $LINENO "configure"
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006001/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00006002 which can conflict with char shl_load (); below.
6003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 <limits.h> exists even on freestanding compilers. */
6005#ifdef __STDC__
6006# include <limits.h>
6007#else
6008# include <assert.h>
6009#endif
drh71eb93e2001-09-28 01:34:43 +00006010/* Override any gcc2 internal prototype to avoid an error. */
6011#ifdef __cplusplus
6012extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00006013{
drh71eb93e2001-09-28 01:34:43 +00006014#endif
6015/* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6017char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00006018/* The GNU C library defines this for functions which it implements
6019 to always fail with ENOSYS. Some functions are actually named
6020 something starting with __ and the normal name is an alias. */
6021#if defined (__stub_shl_load) || defined (__stub___shl_load)
6022choke me
6023#else
a.rottmann84e63352003-03-24 09:42:16 +00006024char (*f) () = shl_load;
6025#endif
6026#ifdef __cplusplus
6027}
drh71eb93e2001-09-28 01:34:43 +00006028#endif
6029
a.rottmann84e63352003-03-24 09:42:16 +00006030int
6031main ()
6032{
6033return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00006034 ;
6035 return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006040 (eval $ac_link) 2>&5
6041 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006046 (eval $ac_try) 2>&5
6047 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006049 (exit $ac_status); }; }; then
6050 ac_cv_func_shl_load=yes
6051else
6052 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006053sed 's/^/| /' conftest.$ac_ext >&5
6054
drh71eb93e2001-09-28 01:34:43 +00006055ac_cv_func_shl_load=no
6056fi
6057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058fi
a.rottmann84e63352003-03-24 09:42:16 +00006059echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006060echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6061if test $ac_cv_func_shl_load = yes; then
6062 lt_cv_dlopen="shl_load"
6063else
a.rottmann84e63352003-03-24 09:42:16 +00006064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh71eb93e2001-09-28 01:34:43 +00006065echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6066if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 ac_check_lib_save_LIBS=$LIBS
6070LIBS="-ldld $LIBS"
6071cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006072#line $LINENO "configure"
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006078
6079/* Override any gcc2 internal prototype to avoid an error. */
6080#ifdef __cplusplus
6081extern "C"
6082#endif
6083/* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6085char shl_load ();
6086int
6087main ()
6088{
6089shl_load ();
6090 ;
6091 return 0;
6092}
6093_ACEOF
6094rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006096 (eval $ac_link) 2>&5
6097 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006102 (eval $ac_try) 2>&5
6103 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006105 (exit $ac_status); }; }; then
6106 ac_cv_lib_dld_shl_load=yes
6107else
6108 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006109sed 's/^/| /' conftest.$ac_ext >&5
6110
drh71eb93e2001-09-28 01:34:43 +00006111ac_cv_lib_dld_shl_load=no
6112fi
6113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6114LIBS=$ac_check_lib_save_LIBS
6115fi
a.rottmann84e63352003-03-24 09:42:16 +00006116echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh71eb93e2001-09-28 01:34:43 +00006117echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6118if test $ac_cv_lib_dld_shl_load = yes; then
6119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6120else
a.rottmann84e63352003-03-24 09:42:16 +00006121 echo "$as_me:$LINENO: checking for dlopen" >&5
6122echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6123if test "${ac_cv_func_dlopen+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 cat >conftest.$ac_ext <<_ACEOF
6127#line $LINENO "configure"
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133/* System header to define __stub macros and hopefully few prototypes,
6134 which can conflict with char dlopen (); below.
6135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6136 <limits.h> exists even on freestanding compilers. */
6137#ifdef __STDC__
6138# include <limits.h>
6139#else
6140# include <assert.h>
6141#endif
6142/* Override any gcc2 internal prototype to avoid an error. */
6143#ifdef __cplusplus
6144extern "C"
6145{
6146#endif
6147/* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149char dlopen ();
6150/* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153#if defined (__stub_dlopen) || defined (__stub___dlopen)
6154choke me
6155#else
6156char (*f) () = dlopen;
6157#endif
6158#ifdef __cplusplus
6159}
6160#endif
6161
6162int
6163main ()
6164{
6165return f != dlopen;
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_func_dlopen=yes
6183else
6184 echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187ac_cv_func_dlopen=no
6188fi
6189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6190fi
6191echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6192echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6193if test $ac_cv_func_dlopen = yes; then
6194 lt_cv_dlopen="dlopen"
6195else
6196 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00006197echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6198if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 ac_check_lib_save_LIBS=$LIBS
6202LIBS="-ldl $LIBS"
6203cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006204#line $LINENO "configure"
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006210
6211/* Override any gcc2 internal prototype to avoid an error. */
6212#ifdef __cplusplus
6213extern "C"
6214#endif
6215/* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217char dlopen ();
6218int
6219main ()
6220{
6221dlopen ();
6222 ;
6223 return 0;
6224}
6225_ACEOF
6226rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006228 (eval $ac_link) 2>&5
6229 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006234 (eval $ac_try) 2>&5
6235 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006237 (exit $ac_status); }; }; then
6238 ac_cv_lib_dl_dlopen=yes
6239else
6240 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006241sed 's/^/| /' conftest.$ac_ext >&5
6242
drh71eb93e2001-09-28 01:34:43 +00006243ac_cv_lib_dl_dlopen=no
6244fi
6245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246LIBS=$ac_check_lib_save_LIBS
6247fi
a.rottmann84e63352003-03-24 09:42:16 +00006248echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006249echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6250if test $ac_cv_lib_dl_dlopen = yes; then
6251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6252else
a.rottmann84e63352003-03-24 09:42:16 +00006253 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh71eb93e2001-09-28 01:34:43 +00006254echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6255if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258 ac_check_lib_save_LIBS=$LIBS
6259LIBS="-lsvld $LIBS"
6260cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006261#line $LINENO "configure"
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006267
6268/* Override any gcc2 internal prototype to avoid an error. */
6269#ifdef __cplusplus
6270extern "C"
6271#endif
6272/* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6274char dlopen ();
6275int
6276main ()
6277{
6278dlopen ();
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00006284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006285 (eval $ac_link) 2>&5
6286 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00006290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006291 (eval $ac_try) 2>&5
6292 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006294 (exit $ac_status); }; }; then
6295 ac_cv_lib_svld_dlopen=yes
6296else
6297 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006298sed 's/^/| /' conftest.$ac_ext >&5
6299
drh71eb93e2001-09-28 01:34:43 +00006300ac_cv_lib_svld_dlopen=no
6301fi
6302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303LIBS=$ac_check_lib_save_LIBS
6304fi
a.rottmann84e63352003-03-24 09:42:16 +00006305echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00006306echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6307if test $ac_cv_lib_svld_dlopen = yes; then
6308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00006309else
6310 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6311echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6312if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315 ac_check_lib_save_LIBS=$LIBS
6316LIBS="-ldld $LIBS"
6317cat >conftest.$ac_ext <<_ACEOF
6318#line $LINENO "configure"
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
6324
6325/* Override any gcc2 internal prototype to avoid an error. */
6326#ifdef __cplusplus
6327extern "C"
6328#endif
6329/* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6331char dld_link ();
6332int
6333main ()
6334{
6335dld_link ();
6336 ;
6337 return 0;
6338}
6339_ACEOF
6340rm -f conftest.$ac_objext conftest$ac_exeext
6341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_lib_dld_dld_link=yes
6353else
6354 echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00006358fi
a.rottmann84e63352003-03-24 09:42:16 +00006359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6360LIBS=$ac_check_lib_save_LIBS
6361fi
6362echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6363echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6364if test $ac_cv_lib_dld_dld_link = yes; then
6365 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6366fi
6367
drh71eb93e2001-09-28 01:34:43 +00006368
6369fi
6370
drh71eb93e2001-09-28 01:34:43 +00006371
6372fi
6373
a.rottmann84e63352003-03-24 09:42:16 +00006374
6375fi
6376
6377
6378fi
6379
6380
drh71eb93e2001-09-28 01:34:43 +00006381fi
6382
6383 ;;
6384 esac
6385
6386 if test "x$lt_cv_dlopen" != xno; then
6387 enable_dlopen=yes
6388 else
6389 enable_dlopen=no
6390 fi
6391
6392 case $lt_cv_dlopen in
6393 dlopen)
6394 save_CPPFLAGS="$CPPFLAGS"
a.rottmann84e63352003-03-24 09:42:16 +00006395 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00006396
6397 save_LDFLAGS="$LDFLAGS"
6398 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6399
6400 save_LIBS="$LIBS"
6401 LIBS="$lt_cv_dlopen_libs $LIBS"
6402
a.rottmann84e63352003-03-24 09:42:16 +00006403 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006404echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6405if test "${lt_cv_dlopen_self+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408 if test "$cross_compiling" = yes; then :
6409 lt_cv_dlopen_self=cross
6410else
a.rottmann84e63352003-03-24 09:42:16 +00006411 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006412 lt_status=$lt_dlunknown
6413 cat > conftest.$ac_ext <<EOF
paulb0208cc2003-04-13 18:26:49 +00006414#line 6413 "configure"
drh71eb93e2001-09-28 01:34:43 +00006415#include "confdefs.h"
6416
6417#if HAVE_DLFCN_H
6418#include <dlfcn.h>
6419#endif
6420
6421#include <stdio.h>
6422
6423#ifdef RTLD_GLOBAL
6424# define LT_DLGLOBAL RTLD_GLOBAL
6425#else
6426# ifdef DL_GLOBAL
6427# define LT_DLGLOBAL DL_GLOBAL
6428# else
6429# define LT_DLGLOBAL 0
6430# endif
6431#endif
6432
6433/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6434 find out it does not work in some platform. */
6435#ifndef LT_DLLAZY_OR_NOW
6436# ifdef RTLD_LAZY
6437# define LT_DLLAZY_OR_NOW RTLD_LAZY
6438# else
6439# ifdef DL_LAZY
6440# define LT_DLLAZY_OR_NOW DL_LAZY
6441# else
6442# ifdef RTLD_NOW
6443# define LT_DLLAZY_OR_NOW RTLD_NOW
6444# else
6445# ifdef DL_NOW
6446# define LT_DLLAZY_OR_NOW DL_NOW
6447# else
6448# define LT_DLLAZY_OR_NOW 0
6449# endif
6450# endif
6451# endif
6452# endif
6453#endif
6454
6455#ifdef __cplusplus
6456extern "C" void exit (int);
6457#endif
6458
6459void fnord() { int i=42;}
6460int main ()
6461{
6462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6463 int status = $lt_dlunknown;
6464
6465 if (self)
6466 {
6467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6468 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6469 /* dlclose (self); */
6470 }
6471
6472 exit (status);
6473}
6474EOF
a.rottmann84e63352003-03-24 09:42:16 +00006475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006476 (eval $ac_link) 2>&5
6477 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6480 (./conftest; exit; ) 2>/dev/null
6481 lt_status=$?
6482 case x$lt_status in
6483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6485 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6486 esac
6487 else :
6488 # compilation failed
6489 lt_cv_dlopen_self=no
6490 fi
6491fi
6492rm -fr conftest*
6493
a.rottmann84e63352003-03-24 09:42:16 +00006494
drh71eb93e2001-09-28 01:34:43 +00006495fi
a.rottmann84e63352003-03-24 09:42:16 +00006496echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh71eb93e2001-09-28 01:34:43 +00006497echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6498
6499 if test "x$lt_cv_dlopen_self" = xyes; then
6500 LDFLAGS="$LDFLAGS $link_static_flag"
a.rottmann84e63352003-03-24 09:42:16 +00006501 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh71eb93e2001-09-28 01:34:43 +00006502echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6503if test "${lt_cv_dlopen_self_static+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 if test "$cross_compiling" = yes; then :
6507 lt_cv_dlopen_self_static=cross
6508else
a.rottmann84e63352003-03-24 09:42:16 +00006509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00006510 lt_status=$lt_dlunknown
6511 cat > conftest.$ac_ext <<EOF
paulb0208cc2003-04-13 18:26:49 +00006512#line 6511 "configure"
drh71eb93e2001-09-28 01:34:43 +00006513#include "confdefs.h"
6514
6515#if HAVE_DLFCN_H
6516#include <dlfcn.h>
6517#endif
6518
6519#include <stdio.h>
6520
6521#ifdef RTLD_GLOBAL
6522# define LT_DLGLOBAL RTLD_GLOBAL
6523#else
6524# ifdef DL_GLOBAL
6525# define LT_DLGLOBAL DL_GLOBAL
6526# else
6527# define LT_DLGLOBAL 0
6528# endif
6529#endif
6530
6531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6532 find out it does not work in some platform. */
6533#ifndef LT_DLLAZY_OR_NOW
6534# ifdef RTLD_LAZY
6535# define LT_DLLAZY_OR_NOW RTLD_LAZY
6536# else
6537# ifdef DL_LAZY
6538# define LT_DLLAZY_OR_NOW DL_LAZY
6539# else
6540# ifdef RTLD_NOW
6541# define LT_DLLAZY_OR_NOW RTLD_NOW
6542# else
6543# ifdef DL_NOW
6544# define LT_DLLAZY_OR_NOW DL_NOW
6545# else
6546# define LT_DLLAZY_OR_NOW 0
6547# endif
6548# endif
6549# endif
6550# endif
6551#endif
6552
6553#ifdef __cplusplus
6554extern "C" void exit (int);
6555#endif
6556
6557void fnord() { int i=42;}
6558int main ()
6559{
6560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6561 int status = $lt_dlunknown;
6562
6563 if (self)
6564 {
6565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6567 /* dlclose (self); */
6568 }
6569
6570 exit (status);
6571}
6572EOF
a.rottmann84e63352003-03-24 09:42:16 +00006573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00006574 (eval $ac_link) 2>&5
6575 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00006576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00006577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6578 (./conftest; exit; ) 2>/dev/null
6579 lt_status=$?
6580 case x$lt_status in
6581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6583 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6584 esac
6585 else :
6586 # compilation failed
6587 lt_cv_dlopen_self_static=no
6588 fi
6589fi
6590rm -fr conftest*
6591
a.rottmann84e63352003-03-24 09:42:16 +00006592
drh71eb93e2001-09-28 01:34:43 +00006593fi
a.rottmann84e63352003-03-24 09:42:16 +00006594echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh71eb93e2001-09-28 01:34:43 +00006595echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6596 fi
6597
6598 CPPFLAGS="$save_CPPFLAGS"
6599 LDFLAGS="$save_LDFLAGS"
6600 LIBS="$save_LIBS"
6601 ;;
6602 esac
6603
6604 case $lt_cv_dlopen_self in
6605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6606 *) enable_dlopen_self=unknown ;;
6607 esac
6608
6609 case $lt_cv_dlopen_self_static in
6610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6611 *) enable_dlopen_self_static=unknown ;;
6612 esac
6613fi
6614
drh71eb93e2001-09-28 01:34:43 +00006615
a.rottmann84e63352003-03-24 09:42:16 +00006616if test "$enable_shared" = yes && test "$GCC" = yes; then
6617 case $archive_cmds in
6618 *'~'*)
6619 # FIXME: we may have to deal with multi-command sequences.
6620 ;;
6621 '$CC '*)
6622 # Test whether the compiler implicitly links with -lc since on some
6623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6624 # to ld, don't add -lc before -lgcc.
6625 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6626echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6627 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629else
6630 $rm conftest*
6631 echo 'static int dummy;' > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006632
a.rottmann84e63352003-03-24 09:42:16 +00006633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; then
6638 soname=conftest
6639 lib=conftest
6640 libobjs=conftest.$ac_objext
6641 deplibs=
6642 wl=$lt_cv_prog_cc_wl
6643 compiler_flags=-v
6644 linker_flags=-v
6645 verstring=
6646 output_objdir=.
6647 libname=conftest
6648 save_allow_undefined_flag=$allow_undefined_flag
6649 allow_undefined_flag=
6650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6651 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }
6655 then
6656 lt_cv_archive_cmds_need_lc=no
6657 else
6658 lt_cv_archive_cmds_need_lc=yes
6659 fi
6660 allow_undefined_flag=$save_allow_undefined_flag
6661 else
6662 cat conftest.err 1>&5
6663 fi
6664fi
drh71eb93e2001-09-28 01:34:43 +00006665
a.rottmann84e63352003-03-24 09:42:16 +00006666 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6667echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6668 ;;
6669 esac
6670fi
6671need_lc=${lt_cv_archive_cmds_need_lc-yes}
drh71eb93e2001-09-28 01:34:43 +00006672
a.rottmann84e63352003-03-24 09:42:16 +00006673# The second clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00006674# libtool distribution, otherwise you forgot to ship ltmain.sh
6675# with your package, and you will get complaints that there are
6676# no rules to generate ltmain.sh.
6677if test -f "$ltmain"; then
a.rottmann84e63352003-03-24 09:42:16 +00006678 :
6679else
6680 # If there is no Makefile yet, we rely on a make rule to execute
6681 # `config.status --recheck' to rerun these tests and create the
6682 # libtool script then.
6683 test -f Makefile && make "$ltmain"
6684fi
6685
6686if test -f "$ltmain"; then
6687 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6688 $rm -f "${ofile}T"
6689
6690 echo creating $ofile
6691
drh71eb93e2001-09-28 01:34:43 +00006692 # Now quote all the things that may contain metacharacters while being
6693 # careful not to overquote the AC_SUBSTed values. We take copies of the
6694 # variables and quote the copies for generation of the libtool script.
a.rottmann84e63352003-03-24 09:42:16 +00006695 for var in echo old_CC old_CFLAGS SED \
6696 AR AR_FLAGS CC LD LN_S NM SHELL \
6697 reload_flag reload_cmds wl \
6698 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6699 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6700 library_names_spec soname_spec \
6701 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6702 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6703 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6704 old_striplib striplib file_magic_cmd export_symbols_cmds \
6705 deplibs_check_method allow_undefined_flag no_undefined_flag \
6706 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6707 global_symbol_to_c_name_address \
6708 hardcode_libdir_flag_spec hardcode_libdir_separator \
drh71eb93e2001-09-28 01:34:43 +00006709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann84e63352003-03-24 09:42:16 +00006710 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00006711
6712 case $var in
a.rottmann84e63352003-03-24 09:42:16 +00006713 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
drh71eb93e2001-09-28 01:34:43 +00006714 old_postinstall_cmds | old_postuninstall_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00006715 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6716 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6717 postinstall_cmds | postuninstall_cmds | \
6718 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00006719 # Double-quote double-evaled strings.
6720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6721 ;;
6722 *)
6723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6724 ;;
6725 esac
6726 done
6727
a.rottmann84e63352003-03-24 09:42:16 +00006728 cat <<__EOF__ > "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00006729#! $SHELL
6730
a.rottmann84e63352003-03-24 09:42:16 +00006731# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00006732# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6733# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6734#
a.rottmann84e63352003-03-24 09:42:16 +00006735# Copyright (C) 1996-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00006736# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6737#
6738# This program is free software; you can redistribute it and/or modify
6739# it under the terms of the GNU General Public License as published by
6740# the Free Software Foundation; either version 2 of the License, or
6741# (at your option) any later version.
6742#
6743# This program is distributed in the hope that it will be useful, but
6744# WITHOUT ANY WARRANTY; without even the implied warranty of
6745# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6746# General Public License for more details.
6747#
6748# You should have received a copy of the GNU General Public License
6749# along with this program; if not, write to the Free Software
6750# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6751#
6752# As a special exception to the GNU General Public License, if you
6753# distribute this file as part of a program that contains a
6754# configuration script generated by Autoconf, you may include it under
6755# the same distribution terms that you use for the rest of that program.
6756
a.rottmann84e63352003-03-24 09:42:16 +00006757# A sed that does not truncate output.
6758SED=$lt_SED
6759
drh71eb93e2001-09-28 01:34:43 +00006760# Sed that helps us avoid accidentally triggering echo(1) options like -n.
a.rottmann84e63352003-03-24 09:42:16 +00006761Xsed="${SED} -e s/^X//"
drh71eb93e2001-09-28 01:34:43 +00006762
6763# The HP-UX ksh and POSIX shell print the target directory to stdout
6764# if CDPATH is set.
6765if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6766
drh71eb93e2001-09-28 01:34:43 +00006767# ### BEGIN LIBTOOL CONFIG
6768
6769# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6770
6771# Shell to use when invoking shell scripts.
6772SHELL=$lt_SHELL
6773
6774# Whether or not to build shared libraries.
6775build_libtool_libs=$enable_shared
6776
6777# Whether or not to build static libraries.
6778build_old_libs=$enable_static
6779
6780# Whether or not to add -lc for building shared libraries.
a.rottmann84e63352003-03-24 09:42:16 +00006781build_libtool_need_lc=$need_lc
drh71eb93e2001-09-28 01:34:43 +00006782
6783# Whether or not to optimize for fast installation.
6784fast_install=$enable_fast_install
6785
6786# The host system.
6787host_alias=$host_alias
6788host=$host
6789
6790# An echo program that does not interpret backslashes.
6791echo=$lt_echo
6792
6793# The archiver.
6794AR=$lt_AR
6795AR_FLAGS=$lt_AR_FLAGS
6796
a.rottmann84e63352003-03-24 09:42:16 +00006797# The default C compiler.
6798CC=$lt_CC
drh71eb93e2001-09-28 01:34:43 +00006799
6800# Is the compiler the GNU C compiler?
6801with_gcc=$GCC
6802
6803# The linker used to build libraries.
6804LD=$lt_LD
6805
6806# Whether we need hard or soft links.
6807LN_S=$lt_LN_S
6808
6809# A BSD-compatible nm program.
6810NM=$lt_NM
6811
6812# A symbol stripping program
6813STRIP=$STRIP
6814
6815# Used to examine libraries when file_magic_cmd begins "file"
6816MAGIC_CMD=$MAGIC_CMD
6817
6818# Used on cygwin: DLL creation program.
6819DLLTOOL="$DLLTOOL"
6820
6821# Used on cygwin: object dumper.
6822OBJDUMP="$OBJDUMP"
6823
6824# Used on cygwin: assembler.
6825AS="$AS"
6826
6827# The name of the directory that contains temporary libtool files.
6828objdir=$objdir
6829
6830# How to create reloadable object files.
6831reload_flag=$lt_reload_flag
6832reload_cmds=$lt_reload_cmds
6833
6834# How to pass a linker flag through the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00006835wl=$lt_wl
drh71eb93e2001-09-28 01:34:43 +00006836
6837# Object file suffix (normally "o").
6838objext="$ac_objext"
6839
6840# Old archive suffix (normally "a").
6841libext="$libext"
6842
6843# Executable file suffix (normally "").
6844exeext="$exeext"
6845
6846# Additional compiler flags for building library objects.
a.rottmann84e63352003-03-24 09:42:16 +00006847pic_flag=$lt_pic_flag
drh71eb93e2001-09-28 01:34:43 +00006848pic_mode=$pic_mode
6849
drh71eb93e2001-09-28 01:34:43 +00006850# Does compiler simultaneously support -c and -o options?
a.rottmann84e63352003-03-24 09:42:16 +00006851compiler_c_o=$lt_compiler_c_o
6852
6853# Can we write directly to a .lo ?
6854compiler_o_lo=$lt_compiler_o_lo
drh71eb93e2001-09-28 01:34:43 +00006855
6856# Must we lock files when doing compilation ?
6857need_locks=$lt_need_locks
6858
6859# Do we need the lib prefix for modules?
6860need_lib_prefix=$need_lib_prefix
6861
6862# Do we need a version for libraries?
6863need_version=$need_version
6864
6865# Whether dlopen is supported.
6866dlopen_support=$enable_dlopen
6867
6868# Whether dlopen of programs is supported.
6869dlopen_self=$enable_dlopen_self
6870
6871# Whether dlopen of statically linked programs is supported.
6872dlopen_self_static=$enable_dlopen_self_static
6873
6874# Compiler flag to prevent dynamic linking.
a.rottmann84e63352003-03-24 09:42:16 +00006875link_static_flag=$lt_link_static_flag
drh71eb93e2001-09-28 01:34:43 +00006876
6877# Compiler flag to turn off builtin functions.
a.rottmann84e63352003-03-24 09:42:16 +00006878no_builtin_flag=$lt_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00006879
6880# Compiler flag to allow reflexive dlopens.
6881export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6882
6883# Compiler flag to generate shared objects directly from archives.
6884whole_archive_flag_spec=$lt_whole_archive_flag_spec
6885
6886# Compiler flag to generate thread-safe objects.
6887thread_safe_flag_spec=$lt_thread_safe_flag_spec
6888
6889# Library versioning type.
6890version_type=$version_type
6891
6892# Format of library name prefix.
6893libname_spec=$lt_libname_spec
6894
6895# List of archive names. First name is the real one, the rest are links.
6896# The last name is the one that the linker finds with -lNAME.
6897library_names_spec=$lt_library_names_spec
6898
6899# The coded name of the library, if different from the real name.
6900soname_spec=$lt_soname_spec
6901
6902# Commands used to build and install an old-style archive.
6903RANLIB=$lt_RANLIB
6904old_archive_cmds=$lt_old_archive_cmds
6905old_postinstall_cmds=$lt_old_postinstall_cmds
6906old_postuninstall_cmds=$lt_old_postuninstall_cmds
6907
6908# Create an old-style archive from a shared archive.
6909old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6910
6911# Create a temporary old-style archive to link instead of a shared archive.
6912old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6913
6914# Commands used to build and install a shared archive.
6915archive_cmds=$lt_archive_cmds
6916archive_expsym_cmds=$lt_archive_expsym_cmds
6917postinstall_cmds=$lt_postinstall_cmds
6918postuninstall_cmds=$lt_postuninstall_cmds
6919
6920# Commands to strip libraries.
6921old_striplib=$lt_old_striplib
6922striplib=$lt_striplib
6923
drh71eb93e2001-09-28 01:34:43 +00006924# Method to check whether dependent libraries are shared objects.
6925deplibs_check_method=$lt_deplibs_check_method
6926
6927# Command to use when deplibs_check_method == file_magic.
6928file_magic_cmd=$lt_file_magic_cmd
6929
6930# Flag that allows shared libraries with undefined symbols to be built.
6931allow_undefined_flag=$lt_allow_undefined_flag
6932
6933# Flag that forces no undefined symbols.
6934no_undefined_flag=$lt_no_undefined_flag
6935
6936# Commands used to finish a libtool library installation in a directory.
6937finish_cmds=$lt_finish_cmds
6938
6939# Same as above, but a single script fragment to be evaled but not shown.
6940finish_eval=$lt_finish_eval
6941
6942# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann84e63352003-03-24 09:42:16 +00006943global_symbol_pipe=$lt_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00006944
6945# Transform the output of nm in a proper C declaration
a.rottmann84e63352003-03-24 09:42:16 +00006946global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00006947
6948# Transform the output of nm in a C name address pair
a.rottmann84e63352003-03-24 09:42:16 +00006949global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00006950
6951# This is the shared library runtime path variable.
6952runpath_var=$runpath_var
6953
6954# This is the shared library path variable.
6955shlibpath_var=$shlibpath_var
6956
6957# Is shlibpath searched before the hard-coded library search path?
6958shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6959
6960# How to hardcode a shared library path into an executable.
6961hardcode_action=$hardcode_action
6962
6963# Whether we should hardcode library paths into libraries.
6964hardcode_into_libs=$hardcode_into_libs
6965
6966# Flag to hardcode \$libdir into a binary during linking.
6967# This must work even if \$libdir does not exist.
6968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6969
6970# Whether we need a single -rpath flag with a separated argument.
6971hardcode_libdir_separator=$lt_hardcode_libdir_separator
6972
6973# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6974# resulting binary.
6975hardcode_direct=$hardcode_direct
6976
6977# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6978# resulting binary.
6979hardcode_minus_L=$hardcode_minus_L
6980
6981# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6982# the resulting binary.
6983hardcode_shlibpath_var=$hardcode_shlibpath_var
6984
6985# Variables whose values should be saved in libtool wrapper scripts and
6986# restored at relink time.
6987variables_saved_for_relink="$variables_saved_for_relink"
6988
6989# Whether libtool must link a program against all its dependency libraries.
6990link_all_deplibs=$link_all_deplibs
6991
6992# Compile-time system search path for libraries
6993sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6994
6995# Run-time system search path for libraries
6996sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6997
6998# Fix the shell variable \$srcfile for the compiler.
6999fix_srcfile_path="$fix_srcfile_path"
7000
7001# Set to yes if exported symbols are required.
7002always_export_symbols=$always_export_symbols
7003
7004# The commands to list exported symbols.
7005export_symbols_cmds=$lt_export_symbols_cmds
7006
7007# The commands to extract the exported symbol list from a shared archive.
7008extract_expsyms_cmds=$lt_extract_expsyms_cmds
7009
7010# Symbols that should not be listed in the preloaded symbols.
7011exclude_expsyms=$lt_exclude_expsyms
7012
7013# Symbols that must always be exported.
7014include_expsyms=$lt_include_expsyms
7015
7016# ### END LIBTOOL CONFIG
7017
7018__EOF__
7019
7020 case $host_os in
7021 aix3*)
a.rottmann84e63352003-03-24 09:42:16 +00007022 cat <<\EOF >> "${ofile}T"
drh71eb93e2001-09-28 01:34:43 +00007023
7024# AIX sometimes has problems with the GCC collect2 program. For some
7025# reason, if we set the COLLECT_NAMES environment variable, the problems
7026# vanish in a puff of smoke.
7027if test "X${COLLECT_NAMES+set}" != Xset; then
7028 COLLECT_NAMES=
7029 export COLLECT_NAMES
7030fi
7031EOF
7032 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007033 esac
drh71eb93e2001-09-28 01:34:43 +00007034
a.rottmann84e63352003-03-24 09:42:16 +00007035 case $host_os in
drh71eb93e2001-09-28 01:34:43 +00007036 cygwin* | mingw* | pw32* | os2*)
a.rottmann84e63352003-03-24 09:42:16 +00007037 cat <<'EOF' >> "${ofile}T"
7038 # This is a source program that is used to create dlls on Windows
7039 # Don't remove nor modify the starting and closing comments
7040# /* ltdll.c starts here */
drh71eb93e2001-09-28 01:34:43 +00007041# #define WIN32_LEAN_AND_MEAN
7042# #include <windows.h>
7043# #undef WIN32_LEAN_AND_MEAN
7044# #include <stdio.h>
7045#
7046# #ifndef __CYGWIN__
7047# # ifdef __CYGWIN32__
7048# # define __CYGWIN__ __CYGWIN32__
7049# # endif
7050# #endif
7051#
7052# #ifdef __cplusplus
7053# extern "C" {
7054# #endif
7055# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7056# #ifdef __cplusplus
7057# }
7058# #endif
7059#
7060# #ifdef __CYGWIN__
7061# #include <cygwin/cygwin_dll.h>
7062# DECLARE_CYGWIN_DLL( DllMain );
7063# #endif
7064# HINSTANCE __hDllInstance_base;
7065#
7066# BOOL APIENTRY
7067# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7068# {
7069# __hDllInstance_base = hInst;
7070# return TRUE;
7071# }
7072# /* ltdll.c ends here */
a.rottmann84e63352003-03-24 09:42:16 +00007073 # This is a source program that is used to create import libraries
7074 # on Windows for dlls which lack them. Don't remove nor modify the
7075 # starting and closing comments
7076# /* impgen.c starts here */
7077# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00007078#
7079# This file is part of GNU libtool.
7080#
7081# This program is free software; you can redistribute it and/or modify
7082# it under the terms of the GNU General Public License as published by
7083# the Free Software Foundation; either version 2 of the License, or
7084# (at your option) any later version.
7085#
7086# This program is distributed in the hope that it will be useful,
7087# but WITHOUT ANY WARRANTY; without even the implied warranty of
7088# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7089# GNU General Public License for more details.
7090#
7091# You should have received a copy of the GNU General Public License
7092# along with this program; if not, write to the Free Software
7093# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7094# */
7095#
7096# #include <stdio.h> /* for printf() */
7097# #include <unistd.h> /* for open(), lseek(), read() */
7098# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7099# #include <string.h> /* for strdup() */
7100#
7101# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7102# #ifndef O_BINARY
7103# #define O_BINARY 0
7104# #endif
7105#
7106# static unsigned int
7107# pe_get16 (fd, offset)
7108# int fd;
7109# int offset;
7110# {
7111# unsigned char b[2];
7112# lseek (fd, offset, SEEK_SET);
7113# read (fd, b, 2);
7114# return b[0] + (b[1]<<8);
7115# }
7116#
7117# static unsigned int
7118# pe_get32 (fd, offset)
7119# int fd;
7120# int offset;
7121# {
7122# unsigned char b[4];
7123# lseek (fd, offset, SEEK_SET);
7124# read (fd, b, 4);
7125# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7126# }
7127#
7128# static unsigned int
7129# pe_as32 (ptr)
7130# void *ptr;
7131# {
7132# unsigned char *b = ptr;
7133# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7134# }
7135#
7136# int
7137# main (argc, argv)
7138# int argc;
7139# char *argv[];
7140# {
7141# int dll;
7142# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7143# unsigned long export_rva, export_size, nsections, secptr, expptr;
7144# unsigned long name_rvas, nexp;
7145# unsigned char *expdata, *erva;
7146# char *filename, *dll_name;
7147#
7148# filename = argv[1];
7149#
7150# dll = open(filename, O_RDONLY|O_BINARY);
7151# if (dll < 1)
7152# return 1;
7153#
7154# dll_name = filename;
7155#
7156# for (i=0; filename[i]; i++)
7157# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7158# dll_name = filename + i +1;
7159#
7160# pe_header_offset = pe_get32 (dll, 0x3c);
7161# opthdr_ofs = pe_header_offset + 4 + 20;
7162# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7163#
7164# if (num_entries < 1) /* no exports */
7165# return 1;
7166#
7167# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7168# export_size = pe_get32 (dll, opthdr_ofs + 100);
7169# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7170# secptr = (pe_header_offset + 4 + 20 +
7171# pe_get16 (dll, pe_header_offset + 4 + 16));
7172#
7173# expptr = 0;
7174# for (i = 0; i < nsections; i++)
7175# {
7176# char sname[8];
7177# unsigned long secptr1 = secptr + 40 * i;
7178# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7179# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7180# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7181# lseek(dll, secptr1, SEEK_SET);
7182# read(dll, sname, 8);
7183# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7184# {
7185# expptr = fptr + (export_rva - vaddr);
7186# if (export_rva + export_size > vaddr + vsize)
7187# export_size = vsize - (export_rva - vaddr);
7188# break;
7189# }
7190# }
7191#
7192# expdata = (unsigned char*)malloc(export_size);
7193# lseek (dll, expptr, SEEK_SET);
7194# read (dll, expdata, export_size);
7195# erva = expdata - export_rva;
7196#
7197# nexp = pe_as32 (expdata+24);
7198# name_rvas = pe_as32 (expdata+32);
7199#
7200# printf ("EXPORTS\n");
7201# for (i = 0; i<nexp; i++)
7202# {
7203# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7204# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7205# }
7206#
7207# return 0;
7208# }
7209# /* impgen.c ends here */
7210
7211EOF
7212 ;;
7213 esac
7214
7215 # We use sed instead of cat because bash on DJGPP gets confused if
7216 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7217 # text mode, it properly converts lines to CR/LF. This bash problem
7218 # is reportedly fixed, but why not run on old versions too?
a.rottmann84e63352003-03-24 09:42:16 +00007219 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00007220
a.rottmann84e63352003-03-24 09:42:16 +00007221 mv -f "${ofile}T" "$ofile" || \
7222 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
drh71eb93e2001-09-28 01:34:43 +00007223 chmod +x "$ofile"
drh71eb93e2001-09-28 01:34:43 +00007224fi
7225
drh71eb93e2001-09-28 01:34:43 +00007226
drh71eb93e2001-09-28 01:34:43 +00007227
drh71eb93e2001-09-28 01:34:43 +00007228
drh71eb93e2001-09-28 01:34:43 +00007229
7230# This can be used to rebuild libtool when needed
7231LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7232
7233# Always use our own libtool.
7234LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7235
7236# Prevent multiple expansion
7237
a.rottmann84e63352003-03-24 09:42:16 +00007238
drh71eb93e2001-09-28 01:34:43 +00007239# Find a good install program. We prefer a C program (faster),
7240# so one script is as good as another. But avoid the broken or
7241# incompatible versions:
7242# SysV /etc/install, /usr/sbin/install
7243# SunOS /usr/etc/install
7244# IRIX /sbin/install
7245# AIX /bin/install
7246# AmigaOS /C/install, which installs bootblocks on floppy discs
7247# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7248# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7249# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7250# ./install, which can be erroneously created by make from ./install.sh.
a.rottmann84e63352003-03-24 09:42:16 +00007251echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7252echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00007253if test -z "$INSTALL"; then
7254if test "${ac_cv_path_install+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
a.rottmann84e63352003-03-24 09:42:16 +00007257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 # Account for people who put trailing slashes in PATH elements.
7263case $as_dir/ in
7264 ./ | .// | /cC/* | \
7265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7266 /usr/ucb/* ) ;;
7267 *)
7268 # OSF1 and SCO ODT 3.0 have their own names for install.
7269 # Don't use installbsd from OSF since it installs stuff as root
7270 # by default.
7271 for ac_prog in ginstall scoinst install; do
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7274 if test $ac_prog = install &&
7275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7276 # AIX install. It has an incompatible calling convention.
7277 :
7278 elif test $ac_prog = install &&
7279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7280 # program-specific install script used by HP pwplus--don't use.
7281 :
7282 else
7283 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7284 break 3
7285 fi
7286 fi
drh71eb93e2001-09-28 01:34:43 +00007287 done
a.rottmann84e63352003-03-24 09:42:16 +00007288 done
7289 ;;
7290esac
7291done
7292
drh71eb93e2001-09-28 01:34:43 +00007293
7294fi
7295 if test "${ac_cv_path_install+set}" = set; then
7296 INSTALL=$ac_cv_path_install
7297 else
7298 # As a last resort, use the slow shell script. We don't cache a
7299 # path for INSTALL within a source directory, because that will
7300 # break other packages using the cache if that directory is
7301 # removed, or if the path is relative.
7302 INSTALL=$ac_install_sh
7303 fi
7304fi
a.rottmann84e63352003-03-24 09:42:16 +00007305echo "$as_me:$LINENO: result: $INSTALL" >&5
drh71eb93e2001-09-28 01:34:43 +00007306echo "${ECHO_T}$INSTALL" >&6
7307
7308# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7309# It thinks the first close brace ends the variable substitution.
7310test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7311
7312test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7313
7314test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7315
a.rottmann84e63352003-03-24 09:42:16 +00007316
drh75897232000-05-29 14:26:00 +00007317#########
7318# Set up an appropriate program prefix
7319#
7320if test "$program_prefix" = "NONE"; then
7321 program_prefix=""
7322fi
7323
a.rottmann84e63352003-03-24 09:42:16 +00007324
7325if test -f VERSION; then
7326 VERSION=`cat VERSION`
7327 echo "Version set to $VERSION"
7328fi
7329
7330
drh75897232000-05-29 14:26:00 +00007331#########
7332# Check to see if the --with-hints=FILE option is used. If there is none,
7333# then check for a files named "$host.hints" and ../$hosts.hints where
7334# $host is the hostname of the build system. If still no hints are
7335# found, try looking in $system.hints and ../$system.hints where
7336# $system is the result of uname -s.
7337#
drh71eb93e2001-09-28 01:34:43 +00007338
drh75897232000-05-29 14:26:00 +00007339# Check whether --with-hints or --without-hints was given.
7340if test "${with_hints+set}" = set; then
7341 withval="$with_hints"
7342 hints=$withval
drh71eb93e2001-09-28 01:34:43 +00007343fi;
drh75897232000-05-29 14:26:00 +00007344if test "$hints" = ""; then
7345 host=`hostname | sed 's/\..*//'`
7346 if test -r $host.hints; then
7347 hints=$host.hints
7348 else
7349 if test -r ../$host.hints; then
7350 hints=../$host.hints
7351 fi
7352 fi
7353fi
7354if test "$hints" = ""; then
7355 sys=`uname -s`
7356 if test -r $sys.hints; then
7357 hints=$sys.hints
7358 else
7359 if test -r ../$sys.hints; then
7360 hints=../$sys.hints
7361 fi
7362 fi
7363fi
7364if test "$hints" != ""; then
a.rottmann84e63352003-03-24 09:42:16 +00007365 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh71eb93e2001-09-28 01:34:43 +00007366echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +00007367 . $hints
7368fi
7369
7370#########
7371# Locate a compiler for the build machine. This compiler should
7372# generate command-line programs that run on the build machine.
7373#
7374default_build_cflags="-g"
7375if test "$config_BUILD_CC" = ""; then
drh71eb93e2001-09-28 01:34:43 +00007376 ac_ext=c
7377ac_cpp='$CPP $CPPFLAGS'
7378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7380ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7383set dummy ${ac_tool_prefix}gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007384echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_CC+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007388else
7389 if test -n "$CC"; then
7390 ac_cv_prog_CC="$CC" # Let the user override the test.
7391else
a.rottmann84e63352003-03-24 09:42:16 +00007392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
drh71eb93e2001-09-28 01:34:43 +00007404done
7405
drh75897232000-05-29 14:26:00 +00007406fi
7407fi
drh71eb93e2001-09-28 01:34:43 +00007408CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007409if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007410 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007411echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007412else
a.rottmann84e63352003-03-24 09:42:16 +00007413 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007414echo "${ECHO_T}no" >&6
7415fi
7416
7417fi
7418if test -z "$ac_cv_prog_CC"; then
7419 ac_ct_CC=$CC
7420 # Extract the first word of "gcc", so it can be a program name with args.
7421set dummy gcc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007422echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 if test -n "$ac_ct_CC"; then
7428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7429else
a.rottmann84e63352003-03-24 09:42:16 +00007430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_ac_ct_CC="gcc"
7438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
drh71eb93e2001-09-28 01:34:43 +00007442done
7443
7444fi
7445fi
7446ac_ct_CC=$ac_cv_prog_ac_ct_CC
7447if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007449echo "${ECHO_T}$ac_ct_CC" >&6
7450else
a.rottmann84e63352003-03-24 09:42:16 +00007451 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007452echo "${ECHO_T}no" >&6
7453fi
7454
7455 CC=$ac_ct_CC
7456else
7457 CC="$ac_cv_prog_CC"
drh75897232000-05-29 14:26:00 +00007458fi
7459
7460if test -z "$CC"; then
drh71eb93e2001-09-28 01:34:43 +00007461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7463set dummy ${ac_tool_prefix}cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007464echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466if test "${ac_cv_prog_CC+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007468else
7469 if test -n "$CC"; then
7470 ac_cv_prog_CC="$CC" # Let the user override the test.
7471else
a.rottmann84e63352003-03-24 09:42:16 +00007472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_CC="${ac_tool_prefix}cc"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7482 fi
7483done
drh71eb93e2001-09-28 01:34:43 +00007484done
7485
7486fi
7487fi
7488CC=$ac_cv_prog_CC
7489if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007490 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007491echo "${ECHO_T}$CC" >&6
7492else
a.rottmann84e63352003-03-24 09:42:16 +00007493 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007494echo "${ECHO_T}no" >&6
7495fi
7496
7497fi
7498if test -z "$ac_cv_prog_CC"; then
7499 ac_ct_CC=$CC
7500 # Extract the first word of "cc", so it can be a program name with args.
7501set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007502echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506else
7507 if test -n "$ac_ct_CC"; then
7508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7509else
a.rottmann84e63352003-03-24 09:42:16 +00007510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_CC="cc"
7518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
drh71eb93e2001-09-28 01:34:43 +00007522done
7523
7524fi
7525fi
7526ac_ct_CC=$ac_cv_prog_ac_ct_CC
7527if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007529echo "${ECHO_T}$ac_ct_CC" >&6
7530else
a.rottmann84e63352003-03-24 09:42:16 +00007531 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007532echo "${ECHO_T}no" >&6
7533fi
7534
7535 CC=$ac_ct_CC
7536else
7537 CC="$ac_cv_prog_CC"
7538fi
7539
7540fi
7541if test -z "$CC"; then
7542 # Extract the first word of "cc", so it can be a program name with args.
7543set dummy cc; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007544echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546if test "${ac_cv_prog_CC+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549 if test -n "$CC"; then
7550 ac_cv_prog_CC="$CC" # Let the user override the test.
7551else
drh75897232000-05-29 14:26:00 +00007552 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00007553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7561 ac_prog_rejected=yes
7562 continue
7563 fi
7564 ac_cv_prog_CC="cc"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
drh71eb93e2001-09-28 01:34:43 +00007569done
7570
drh75897232000-05-29 14:26:00 +00007571if test $ac_prog_rejected = yes; then
7572 # We found a bogon in the path, so make sure we never use it.
7573 set dummy $ac_cv_prog_CC
7574 shift
drh71eb93e2001-09-28 01:34:43 +00007575 if test $# != 0; then
drh75897232000-05-29 14:26:00 +00007576 # We chose a different compiler from the bogus one.
7577 # However, it has the same basename, so the bogon will be chosen
7578 # first if we set CC to just the basename; use the full file name.
7579 shift
a.rottmann84e63352003-03-24 09:42:16 +00007580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh75897232000-05-29 14:26:00 +00007581 fi
7582fi
7583fi
7584fi
drh71eb93e2001-09-28 01:34:43 +00007585CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007586if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007587 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007588echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007589else
a.rottmann84e63352003-03-24 09:42:16 +00007590 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007591echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007592fi
7593
drh71eb93e2001-09-28 01:34:43 +00007594fi
7595if test -z "$CC"; then
7596 if test -n "$ac_tool_prefix"; then
7597 for ac_prog in cl
7598 do
7599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007601echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603if test "${ac_cv_prog_CC+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007605else
7606 if test -n "$CC"; then
7607 ac_cv_prog_CC="$CC" # Let the user override the test.
7608else
a.rottmann84e63352003-03-24 09:42:16 +00007609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
drh71eb93e2001-09-28 01:34:43 +00007621done
7622
drh75897232000-05-29 14:26:00 +00007623fi
7624fi
drh71eb93e2001-09-28 01:34:43 +00007625CC=$ac_cv_prog_CC
drh75897232000-05-29 14:26:00 +00007626if test -n "$CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007627 echo "$as_me:$LINENO: result: $CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007628echo "${ECHO_T}$CC" >&6
drh75897232000-05-29 14:26:00 +00007629else
a.rottmann84e63352003-03-24 09:42:16 +00007630 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007631echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00007632fi
7633
drh71eb93e2001-09-28 01:34:43 +00007634 test -n "$CC" && break
7635 done
7636fi
7637if test -z "$CC"; then
7638 ac_ct_CC=$CC
7639 for ac_prog in cl
7640do
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642set dummy $ac_prog; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00007643echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00007644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647else
7648 if test -n "$ac_ct_CC"; then
7649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7650else
a.rottmann84e63352003-03-24 09:42:16 +00007651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_ac_ct_CC="$ac_prog"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7661 fi
7662done
drh71eb93e2001-09-28 01:34:43 +00007663done
drh75897232000-05-29 14:26:00 +00007664
drh71eb93e2001-09-28 01:34:43 +00007665fi
7666fi
7667ac_ct_CC=$ac_cv_prog_ac_ct_CC
7668if test -n "$ac_ct_CC"; then
a.rottmann84e63352003-03-24 09:42:16 +00007669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00007670echo "${ECHO_T}$ac_ct_CC" >&6
7671else
a.rottmann84e63352003-03-24 09:42:16 +00007672 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00007673echo "${ECHO_T}no" >&6
7674fi
drh75897232000-05-29 14:26:00 +00007675
drh71eb93e2001-09-28 01:34:43 +00007676 test -n "$ac_ct_CC" && break
7677done
drh75897232000-05-29 14:26:00 +00007678
drh71eb93e2001-09-28 01:34:43 +00007679 CC=$ac_ct_CC
7680fi
7681
7682fi
7683
a.rottmann84e63352003-03-24 09:42:16 +00007684
7685test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7686See \`config.log' for more details." >&5
7687echo "$as_me: error: no acceptable C compiler found in \$PATH
7688See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00007689 { (exit 1); exit 1; }; }
7690
7691# Provide some information about the compiler.
a.rottmann84e63352003-03-24 09:42:16 +00007692echo "$as_me:$LINENO:" \
drh71eb93e2001-09-28 01:34:43 +00007693 "checking for C compiler version" >&5
7694ac_compiler=`set X $ac_compile; echo $2`
a.rottmann84e63352003-03-24 09:42:16 +00007695{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007696 (eval $ac_compiler --version </dev/null >&5) 2>&5
7697 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007699 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007701 (eval $ac_compiler -v </dev/null >&5) 2>&5
7702 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007704 (exit $ac_status); }
a.rottmann84e63352003-03-24 09:42:16 +00007705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007706 (eval $ac_compiler -V </dev/null >&5) 2>&5
7707 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007709 (exit $ac_status); }
7710
a.rottmann84e63352003-03-24 09:42:16 +00007711echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00007712echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7713if test "${ac_cv_c_compiler_gnu+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007717#line $LINENO "configure"
7718/* confdefs.h. */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00007723
drh71eb93e2001-09-28 01:34:43 +00007724int
7725main ()
7726{
7727#ifndef __GNUC__
7728 choke me
drh75897232000-05-29 14:26:00 +00007729#endif
drh75897232000-05-29 14:26:00 +00007730
drh71eb93e2001-09-28 01:34:43 +00007731 ;
7732 return 0;
7733}
7734_ACEOF
7735rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007737 (eval $ac_compile) 2>&5
7738 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007740 (exit $ac_status); } &&
7741 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007743 (eval $ac_try) 2>&5
7744 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007746 (exit $ac_status); }; }; then
7747 ac_compiler_gnu=yes
drh75897232000-05-29 14:26:00 +00007748else
drh71eb93e2001-09-28 01:34:43 +00007749 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007750sed 's/^/| /' conftest.$ac_ext >&5
7751
drh71eb93e2001-09-28 01:34:43 +00007752ac_compiler_gnu=no
drh75897232000-05-29 14:26:00 +00007753fi
drh71eb93e2001-09-28 01:34:43 +00007754rm -f conftest.$ac_objext conftest.$ac_ext
7755ac_cv_c_compiler_gnu=$ac_compiler_gnu
drh75897232000-05-29 14:26:00 +00007756
drh71eb93e2001-09-28 01:34:43 +00007757fi
a.rottmann84e63352003-03-24 09:42:16 +00007758echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh71eb93e2001-09-28 01:34:43 +00007759echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7760GCC=`test $ac_compiler_gnu = yes && echo yes`
7761ac_test_CFLAGS=${CFLAGS+set}
7762ac_save_CFLAGS=$CFLAGS
7763CFLAGS="-g"
a.rottmann84e63352003-03-24 09:42:16 +00007764echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh71eb93e2001-09-28 01:34:43 +00007765echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7766if test "${ac_cv_prog_cc_g+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00007768else
drh71eb93e2001-09-28 01:34:43 +00007769 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007770#line $LINENO "configure"
7771/* confdefs.h. */
7772_ACEOF
7773cat confdefs.h >>conftest.$ac_ext
7774cat >>conftest.$ac_ext <<_ACEOF
7775/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007776
7777int
7778main ()
7779{
7780
7781 ;
7782 return 0;
7783}
7784_ACEOF
7785rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007787 (eval $ac_compile) 2>&5
7788 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007790 (exit $ac_status); } &&
7791 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007793 (eval $ac_try) 2>&5
7794 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007796 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00007797 ac_cv_prog_cc_g=yes
7798else
drh71eb93e2001-09-28 01:34:43 +00007799 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007800sed 's/^/| /' conftest.$ac_ext >&5
7801
drh71eb93e2001-09-28 01:34:43 +00007802ac_cv_prog_cc_g=no
drh75897232000-05-29 14:26:00 +00007803fi
drh71eb93e2001-09-28 01:34:43 +00007804rm -f conftest.$ac_objext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00007805fi
a.rottmann84e63352003-03-24 09:42:16 +00007806echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh71eb93e2001-09-28 01:34:43 +00007807echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh75897232000-05-29 14:26:00 +00007808if test "$ac_test_CFLAGS" = set; then
drh71eb93e2001-09-28 01:34:43 +00007809 CFLAGS=$ac_save_CFLAGS
drh75897232000-05-29 14:26:00 +00007810elif test $ac_cv_prog_cc_g = yes; then
7811 if test "$GCC" = yes; then
7812 CFLAGS="-g -O2"
7813 else
7814 CFLAGS="-g"
7815 fi
7816else
7817 if test "$GCC" = yes; then
7818 CFLAGS="-O2"
7819 else
7820 CFLAGS=
7821 fi
7822fi
a.rottmann84e63352003-03-24 09:42:16 +00007823echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7824echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7825if test "${ac_cv_prog_cc_stdc+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 ac_cv_prog_cc_stdc=no
7829ac_save_CC=$CC
7830cat >conftest.$ac_ext <<_ACEOF
7831#line $LINENO "configure"
7832/* confdefs.h. */
7833_ACEOF
7834cat confdefs.h >>conftest.$ac_ext
7835cat >>conftest.$ac_ext <<_ACEOF
7836/* end confdefs.h. */
7837#include <stdarg.h>
7838#include <stdio.h>
7839#include <sys/types.h>
7840#include <sys/stat.h>
7841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7842struct buf { int x; };
7843FILE * (*rcsopen) (struct buf *, struct stat *, int);
7844static char *e (p, i)
7845 char **p;
7846 int i;
7847{
7848 return p[i];
7849}
7850static char *f (char * (*g) (char **, int), char **p, ...)
7851{
7852 char *s;
7853 va_list v;
7854 va_start (v,p);
7855 s = g (p, va_arg (v,int));
7856 va_end (v);
7857 return s;
7858}
7859int test (int i, double x);
7860struct s1 {int (*f) (int a);};
7861struct s2 {int (*f) (double a);};
7862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7863int argc;
7864char **argv;
7865int
7866main ()
7867{
7868return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7869 ;
7870 return 0;
7871}
7872_ACEOF
7873# Don't try gcc -ansi; that turns off useful extensions and
7874# breaks some systems' header files.
7875# AIX -qlanglvl=ansi
7876# Ultrix and OSF/1 -std1
7877# HP-UX 10.20 and later -Ae
7878# HP-UX older versions -Aa -D_HPUX_SOURCE
7879# SVR4 -Xc -D__EXTENSIONS__
7880for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7881do
7882 CC="$ac_save_CC $ac_arg"
7883 rm -f conftest.$ac_objext
7884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885 (eval $ac_compile) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -s conftest.$ac_objext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_prog_cc_stdc=$ac_arg
7896break
7897else
7898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901fi
7902rm -f conftest.$ac_objext
7903done
7904rm -f conftest.$ac_ext conftest.$ac_objext
7905CC=$ac_save_CC
7906
7907fi
7908
7909case "x$ac_cv_prog_cc_stdc" in
7910 x|xno)
7911 echo "$as_me:$LINENO: result: none needed" >&5
7912echo "${ECHO_T}none needed" >&6 ;;
7913 *)
7914 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7915echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7916 CC="$CC $ac_cv_prog_cc_stdc" ;;
7917esac
7918
drh71eb93e2001-09-28 01:34:43 +00007919# Some people use a C++ compiler to compile C. Since we use `exit',
7920# in C++ we need to declare it. In case someone uses the same compiler
7921# for both compiling C and C++ we need to have the C++ compiler decide
7922# the declaration of exit, since it's the most demanding environment.
7923cat >conftest.$ac_ext <<_ACEOF
7924#ifndef __cplusplus
7925 choke me
7926#endif
7927_ACEOF
7928rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007930 (eval $ac_compile) 2>&5
7931 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007936 (eval $ac_try) 2>&5
7937 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007939 (exit $ac_status); }; }; then
7940 for ac_declaration in \
7941 ''\
7942 '#include <stdlib.h>' \
7943 'extern "C" void std::exit (int) throw (); using std::exit;' \
7944 'extern "C" void std::exit (int); using std::exit;' \
7945 'extern "C" void exit (int) throw ();' \
7946 'extern "C" void exit (int);' \
7947 'void exit (int);'
7948do
7949 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007950#line $LINENO "configure"
7951/* confdefs.h. */
7952_ACEOF
7953cat confdefs.h >>conftest.$ac_ext
7954cat >>conftest.$ac_ext <<_ACEOF
7955/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007956#include <stdlib.h>
7957$ac_declaration
7958int
7959main ()
7960{
7961exit (42);
7962 ;
7963 return 0;
7964}
7965_ACEOF
7966rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00007967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007968 (eval $ac_compile) 2>&5
7969 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007971 (exit $ac_status); } &&
7972 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00007973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00007974 (eval $ac_try) 2>&5
7975 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00007976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00007977 (exit $ac_status); }; }; then
7978 :
7979else
7980 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007981sed 's/^/| /' conftest.$ac_ext >&5
7982
drh71eb93e2001-09-28 01:34:43 +00007983continue
7984fi
7985rm -f conftest.$ac_objext conftest.$ac_ext
7986 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007987#line $LINENO "configure"
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007993$ac_declaration
7994int
7995main ()
7996{
7997exit (42);
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002rm -f conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00008003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008004 (eval $ac_compile) 2>&5
8005 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008007 (exit $ac_status); } &&
8008 { ac_try='test -s conftest.$ac_objext'
a.rottmann84e63352003-03-24 09:42:16 +00008009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008010 (eval $ac_try) 2>&5
8011 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008013 (exit $ac_status); }; }; then
8014 break
8015else
8016 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008017sed 's/^/| /' conftest.$ac_ext >&5
8018
drh71eb93e2001-09-28 01:34:43 +00008019fi
8020rm -f conftest.$ac_objext conftest.$ac_ext
8021done
8022rm -f conftest*
8023if test -n "$ac_declaration"; then
8024 echo '#ifdef __cplusplus' >>confdefs.h
8025 echo $ac_declaration >>confdefs.h
8026 echo '#endif' >>confdefs.h
8027fi
8028
8029else
8030 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008031sed 's/^/| /' conftest.$ac_ext >&5
8032
drh71eb93e2001-09-28 01:34:43 +00008033fi
8034rm -f conftest.$ac_objext conftest.$ac_ext
8035ac_ext=c
8036ac_cpp='$CPP $CPPFLAGS'
8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00008040
xdong28f79f72003-09-23 00:35:21 +00008041 if test "$cross_compiling" = "yes"; then
8042 { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5
8043echo "$as_me: error: unable to find a compiler for building build tools" >&2;}
8044 { (exit 1); exit 1; }; }
8045 fi
drh75897232000-05-29 14:26:00 +00008046 BUILD_CC=$CC
8047 default_build_cflags=$CFLAGS
8048else
8049 BUILD_CC=$config_BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008050 echo "$as_me:$LINENO: checking host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008051echo $ECHO_N "checking host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008052 CC=$BUILD_CC
a.rottmann84e63352003-03-24 09:42:16 +00008053 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008054echo "${ECHO_T}$BUILD_CC" >&6
drh75897232000-05-29 14:26:00 +00008055fi
a.rottmann84e63352003-03-24 09:42:16 +00008056echo "$as_me:$LINENO: checking switches for the host compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008057echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008058if test "$config_BUILD_CFLAGS" != ""; then
8059 CFLAGS=$config_BUILD_CFLAGS
8060 BUILD_CFLAGS=$config_BUILD_CFLAGS
8061else
8062 BUILD_CFLAGS=$default_build_cflags
8063fi
a.rottmann84e63352003-03-24 09:42:16 +00008064echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008065echo "${ECHO_T}$BUILD_CFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008066if test "$config_BUILD_LIBS" != ""; then
8067 BUILD_LIBS=$config_BUILD_LIBS
8068fi
8069
a.rottmann84e63352003-03-24 09:42:16 +00008070
8071
8072
drh75897232000-05-29 14:26:00 +00008073##########
8074# Locate a compiler that converts C code into *.o files that run on
8075# the target machine.
8076#
a.rottmann84e63352003-03-24 09:42:16 +00008077echo "$as_me:$LINENO: checking target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008078echo $ECHO_N "checking target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008079if test "$config_TARGET_CC" != ""; then
8080 TARGET_CC=$config_TARGET_CC
8081else
8082 TARGET_CC=$BUILD_CC
8083fi
a.rottmann84e63352003-03-24 09:42:16 +00008084echo "$as_me:$LINENO: result: $TARGET_CC" >&5
drh71eb93e2001-09-28 01:34:43 +00008085echo "${ECHO_T}$TARGET_CC" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008086echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008087echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008088if test "$config_TARGET_CFLAGS" != ""; then
8089 TARGET_CFLAGS=$config_TARGET_CFLAGS
8090else
8091 TARGET_CFLAGS=$BUILD_CFLAGS
8092fi
a.rottmann84e63352003-03-24 09:42:16 +00008093echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008094echo "${ECHO_T}$TARGET_CFLAGS" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008095echo "$as_me:$LINENO: checking target linker" >&5
drh71eb93e2001-09-28 01:34:43 +00008096echo $ECHO_N "checking target linker... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008097if test "$config_TARGET_LINK" = ""; then
8098 TARGET_LINK=$TARGET_CC
8099else
8100 TARGET_LINK=$config_TARGET_LINK
8101fi
a.rottmann84e63352003-03-24 09:42:16 +00008102echo "$as_me:$LINENO: result: $TARGET_LINK" >&5
drh71eb93e2001-09-28 01:34:43 +00008103echo "${ECHO_T}$TARGET_LINK" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008104echo "$as_me:$LINENO: checking switches on the target compiler" >&5
drh71eb93e2001-09-28 01:34:43 +00008105echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008106if test "$config_TARGET_TFLAGS" != ""; then
8107 TARGET_TFLAGS=$config_TARGET_TFLAGS
8108else
8109 TARGET_TFLAGS=$BUILD_CFLAGS
8110fi
8111if test "$config_TARGET_RANLIB" != ""; then
8112 TARGET_RANLIB=$config_TARGET_RANLIB
8113else
drh71eb93e2001-09-28 01:34:43 +00008114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8116set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008117echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8119if test "${ac_cv_prog_RANLIB+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008121else
8122 if test -n "$RANLIB"; then
8123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8124else
a.rottmann84e63352003-03-24 09:42:16 +00008125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136done
drh71eb93e2001-09-28 01:34:43 +00008137done
8138
drh75897232000-05-29 14:26:00 +00008139fi
8140fi
drh71eb93e2001-09-28 01:34:43 +00008141RANLIB=$ac_cv_prog_RANLIB
drh75897232000-05-29 14:26:00 +00008142if test -n "$RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008143 echo "$as_me:$LINENO: result: $RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008144echo "${ECHO_T}$RANLIB" >&6
drh75897232000-05-29 14:26:00 +00008145else
a.rottmann84e63352003-03-24 09:42:16 +00008146 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008147echo "${ECHO_T}no" >&6
8148fi
8149
8150fi
8151if test -z "$ac_cv_prog_RANLIB"; then
8152 ac_ct_RANLIB=$RANLIB
8153 # Extract the first word of "ranlib", so it can be a program name with args.
8154set dummy ranlib; ac_word=$2
a.rottmann84e63352003-03-24 09:42:16 +00008155echo "$as_me:$LINENO: checking for $ac_word" >&5
drh71eb93e2001-09-28 01:34:43 +00008156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8157if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160 if test -n "$ac_ct_RANLIB"; then
8161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8162else
a.rottmann84e63352003-03-24 09:42:16 +00008163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_ac_ct_RANLIB="ranlib"
8171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174done
drh71eb93e2001-09-28 01:34:43 +00008175done
8176
8177 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8178fi
8179fi
8180ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8181if test -n "$ac_ct_RANLIB"; then
a.rottmann84e63352003-03-24 09:42:16 +00008182 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh71eb93e2001-09-28 01:34:43 +00008183echo "${ECHO_T}$ac_ct_RANLIB" >&6
8184else
a.rottmann84e63352003-03-24 09:42:16 +00008185 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008186echo "${ECHO_T}no" >&6
8187fi
8188
8189 RANLIB=$ac_ct_RANLIB
8190else
8191 RANLIB="$ac_cv_prog_RANLIB"
drh75897232000-05-29 14:26:00 +00008192fi
8193
8194 TARGET_RANLIB=$RANLIB
8195fi
8196if test "$config_TARGET_AR" != ""; then
drh82ad3832000-07-31 13:38:24 +00008197 TARGET_AR=$config_TARGET_AR
drh75897232000-05-29 14:26:00 +00008198else
8199 TARGET_AR='ar cr'
8200fi
a.rottmann84e63352003-03-24 09:42:16 +00008201echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5
drh71eb93e2001-09-28 01:34:43 +00008202echo "${ECHO_T}$TARGET_TFLAGS" >&6
drh75897232000-05-29 14:26:00 +00008203
a.rottmann84e63352003-03-24 09:42:16 +00008204
8205
8206
8207
8208
8209
drh75897232000-05-29 14:26:00 +00008210# Set the $cross variable if we are cross-compiling. Make
8211# it 0 if we are not.
8212#
a.rottmann84e63352003-03-24 09:42:16 +00008213echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5
drh71eb93e2001-09-28 01:34:43 +00008214echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008215if test "$BUILD_CC" = "$TARGET_CC"; then
8216 cross=0
a.rottmann84e63352003-03-24 09:42:16 +00008217 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008218echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008219else
8220 cross=1
a.rottmann84e63352003-03-24 09:42:16 +00008221 echo "$as_me:$LINENO: result: no" >&5
drh71eb93e2001-09-28 01:34:43 +00008222echo "${ECHO_T}no" >&6
drh75897232000-05-29 14:26:00 +00008223fi
8224
drh297ecf12001-04-05 15:57:13 +00008225##########
8226# Are we using UTF-8 or iso8859 encodings?
8227#
8228# Check whether --enable-utf8 or --disable-utf8 was given.
8229if test "${enable_utf8+set}" = set; then
8230 enableval="$enable_utf8"
drh71eb93e2001-09-28 01:34:43 +00008231
drh297ecf12001-04-05 15:57:13 +00008232else
8233 enable_utf8=no
drh71eb93e2001-09-28 01:34:43 +00008234fi;
a.rottmann84e63352003-03-24 09:42:16 +00008235echo "$as_me:$LINENO: checking character encoding" >&5
drh71eb93e2001-09-28 01:34:43 +00008236echo $ECHO_N "checking character encoding... $ECHO_C" >&6
drh297ecf12001-04-05 15:57:13 +00008237if test "$enable_utf8" = "no"; then
8238 ENCODING=ISO8859
a.rottmann84e63352003-03-24 09:42:16 +00008239 echo "$as_me:$LINENO: result: iso8859" >&5
drh71eb93e2001-09-28 01:34:43 +00008240echo "${ECHO_T}iso8859" >&6
drh297ecf12001-04-05 15:57:13 +00008241else
8242 ENCODING=UTF8
a.rottmann84e63352003-03-24 09:42:16 +00008243 echo "$as_me:$LINENO: result: UTF-8" >&5
drh71eb93e2001-09-28 01:34:43 +00008244echo "${ECHO_T}UTF-8" >&6
drh297ecf12001-04-05 15:57:13 +00008245fi
8246
a.rottmann84e63352003-03-24 09:42:16 +00008247
paulb0208cc2003-04-13 18:26:49 +00008248##########
8249# Do we want to support in-ram databases for ATTACH DATABASE and sqlite_open
8250#
8251# Check whether --enable-incore-db or --disable-incore-db was given.
8252if test "${enable_incore_db+set}" = set; then
8253 enableval="$enable_incore_db"
8254
8255else
paul2dc96f92003-04-20 11:46:34 +00008256 enable_incore_db=yes
paulb0208cc2003-04-13 18:26:49 +00008257fi;
8258echo "$as_me:$LINENO: checking whether to support incore databases for attach and open" >&5
8259echo $ECHO_N "checking whether to support incore databases for attach and open... $ECHO_C" >&6
paul2dc96f92003-04-20 11:46:34 +00008260if test "$enable_incore_db" = "no"; then
8261 INMEMORYDB=0
paulb0208cc2003-04-13 18:26:49 +00008262 echo "$as_me:$LINENO: result: no" >&5
8263echo "${ECHO_T}no" >&6
8264else
paul2dc96f92003-04-20 11:46:34 +00008265 INMEMORYDB=1
paulb0208cc2003-04-13 18:26:49 +00008266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
8268fi
8269
xdong28f79f72003-09-23 00:35:21 +00008270##########
8271# Do we want to support release
8272#
8273# Check whether --enable-releasemode or --disable-releasemode was given.
8274if test "${enable_releasemode+set}" = set; then
8275 enableval="$enable_releasemode"
8276
8277else
8278 enable_releasemode=no
8279fi;
8280echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
8281echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
8282if test "$enable_releasemode" = "no"; then
8283 ALLOWRELEASE=""
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8286else
8287 ALLOWRELEASE="-release `cat VERSION`"
8288 echo "$as_me:$LINENO: result: yes" >&5
8289echo "${ECHO_T}yes" >&6
8290fi
paulb0208cc2003-04-13 18:26:49 +00008291
8292##########
8293# Do we want temporary databases in memory
8294#
8295# Check whether --enable-tempdb-in-ram or --disable-tempdb-in-ram was given.
8296if test "${enable_tempdb_in_ram+set}" = set; then
8297 enableval="$enable_tempdb_in_ram"
8298
8299else
paul2dc96f92003-04-20 11:46:34 +00008300 enable_tempdb_in_ram=no
paulb0208cc2003-04-13 18:26:49 +00008301fi;
8302echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
8303echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
paul2dc96f92003-04-20 11:46:34 +00008304case "$enable_tempdb_in_ram" in
paulb0208cc2003-04-13 18:26:49 +00008305 never )
paul2dc96f92003-04-20 11:46:34 +00008306 TEMP_STORE=0
paulb0208cc2003-04-13 18:26:49 +00008307 echo "$as_me:$LINENO: result: never" >&5
8308echo "${ECHO_T}never" >&6
8309 ;;
8310 no )
paul2dc96f92003-04-20 11:46:34 +00008311 INMEMORYDB=1
8312 TEMP_STORE=1
paulb0208cc2003-04-13 18:26:49 +00008313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 ;;
8316 always )
paul2dc96f92003-04-20 11:46:34 +00008317 INMEMORYDB=1
8318 TEMP_STORE=3
paulb0208cc2003-04-13 18:26:49 +00008319 echo "$as_me:$LINENO: result: always" >&5
8320echo "${ECHO_T}always" >&6
8321 ;;
8322 * )
paul2dc96f92003-04-20 11:46:34 +00008323 INMEMORYDB=1
8324 TEMP_STORE=2
paulb0208cc2003-04-13 18:26:49 +00008325 echo "$as_me:$LINENO: result: yes" >&5
8326echo "${ECHO_T}yes" >&6
8327 ;;
8328esac
8329
8330
8331
paul2dc96f92003-04-20 11:46:34 +00008332
drh75897232000-05-29 14:26:00 +00008333###########
8334# Lots of things are different if we are compiling for Windows using
8335# the CYGWIN environment. So check for that special case and handle
8336# things accordingly.
8337#
a.rottmann84e63352003-03-24 09:42:16 +00008338echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh71eb93e2001-09-28 01:34:43 +00008339echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008340if test "$config_BUILD_EXEEXT" = ".exe"; then
8341 CYGWIN=yes
a.rottmann84e63352003-03-24 09:42:16 +00008342 echo "$as_me:$LINENO: result: yes" >&5
drh71eb93e2001-09-28 01:34:43 +00008343echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +00008344else
a.rottmann84e63352003-03-24 09:42:16 +00008345 echo "$as_me:$LINENO: result: unknown" >&5
drh71eb93e2001-09-28 01:34:43 +00008346echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +00008347fi
8348if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008349
8350case $host_os in
drh71eb93e2001-09-28 01:34:43 +00008351 *cygwin* ) CYGWIN=yes;;
8352 * ) CYGWIN=no;;
8353esac
drh75897232000-05-29 14:26:00 +00008354
drh75897232000-05-29 14:26:00 +00008355fi
8356if test "$CYGWIN" = "yes"; then
8357 BUILD_EXEEXT=.exe
8358else
8359 BUILD_EXEEXT=""
8360fi
8361if test "$cross" = "0"; then
8362 TARGET_EXEEXT=$BUILD_EXEEXT
8363else
8364 TARGET_EXEEXT=$config_TARGET_EXEEXT
8365fi
8366if test "$TARGET_EXEEXT" = ".exe"; then
8367 OS_UNIX=0
8368 OS_WIN=1
8369 tclsubdir=win
8370else
8371 OS_UNIX=1
8372 OS_WIN=0
8373 tclsubdir=unix
8374fi
8375TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN"
8376
a.rottmann84e63352003-03-24 09:42:16 +00008377
8378
8379
8380
8381
drh75897232000-05-29 14:26:00 +00008382##########
8383# Extract generic linker options from the environment.
8384#
8385if test "$config_TARGET_LIBS" != ""; then
8386 TARGET_LIBS=$config_TARGET_LIBS
8387else
8388 TARGET_LIBS=""
8389fi
8390
a.rottmann84e63352003-03-24 09:42:16 +00008391
drh75897232000-05-29 14:26:00 +00008392##########
8393# Figure out what C libraries are required to compile Tcl programs.
8394#
8395if test "$config_TARGET_TCL_LIBS" != ""; then
8396 TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
8397else
8398 if test "$with_tcl" != ""; then
8399 extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
8400 fi
8401 CC=$TARGET_CC
a.rottmann84e63352003-03-24 09:42:16 +00008402 echo "$as_me:$LINENO: checking for sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008403echo $ECHO_N "checking for sin... $ECHO_C" >&6
8404if test "${ac_cv_func_sin+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008406else
drh71eb93e2001-09-28 01:34:43 +00008407 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008408#line $LINENO "configure"
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008414/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008415 which can conflict with char sin (); below.
8416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8417 <limits.h> exists even on freestanding compilers. */
8418#ifdef __STDC__
8419# include <limits.h>
8420#else
8421# include <assert.h>
8422#endif
drh75897232000-05-29 14:26:00 +00008423/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008424#ifdef __cplusplus
8425extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008426{
drh71eb93e2001-09-28 01:34:43 +00008427#endif
drh75897232000-05-29 14:26:00 +00008428/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008429 builtin and then its argument prototype would still apply. */
8430char sin ();
drh75897232000-05-29 14:26:00 +00008431/* The GNU C library defines this for functions which it implements
8432 to always fail with ENOSYS. Some functions are actually named
8433 something starting with __ and the normal name is an alias. */
8434#if defined (__stub_sin) || defined (__stub___sin)
8435choke me
8436#else
a.rottmann84e63352003-03-24 09:42:16 +00008437char (*f) () = sin;
8438#endif
8439#ifdef __cplusplus
8440}
drh75897232000-05-29 14:26:00 +00008441#endif
8442
a.rottmann84e63352003-03-24 09:42:16 +00008443int
8444main ()
8445{
8446return f != sin;
drh71eb93e2001-09-28 01:34:43 +00008447 ;
8448 return 0;
8449}
8450_ACEOF
8451rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008453 (eval $ac_link) 2>&5
8454 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008456 (exit $ac_status); } &&
8457 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008459 (eval $ac_try) 2>&5
8460 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008462 (exit $ac_status); }; }; then
8463 ac_cv_func_sin=yes
drh75897232000-05-29 14:26:00 +00008464else
drh71eb93e2001-09-28 01:34:43 +00008465 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008466sed 's/^/| /' conftest.$ac_ext >&5
8467
drh71eb93e2001-09-28 01:34:43 +00008468ac_cv_func_sin=no
drh75897232000-05-29 14:26:00 +00008469fi
drh71eb93e2001-09-28 01:34:43 +00008470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh75897232000-05-29 14:26:00 +00008471fi
a.rottmann84e63352003-03-24 09:42:16 +00008472echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
drh71eb93e2001-09-28 01:34:43 +00008473echo "${ECHO_T}$ac_cv_func_sin" >&6
8474if test $ac_cv_func_sin = yes; then
drh75897232000-05-29 14:26:00 +00008475 LIBS=""
8476else
drh71eb93e2001-09-28 01:34:43 +00008477 LIBS="-lm"
drh75897232000-05-29 14:26:00 +00008478fi
8479
a.rottmann84e63352003-03-24 09:42:16 +00008480
8481echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh71eb93e2001-09-28 01:34:43 +00008482echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8483if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008485else
drh71eb93e2001-09-28 01:34:43 +00008486 ac_check_lib_save_LIBS=$LIBS
drh75897232000-05-29 14:26:00 +00008487LIBS="-ldl $LIBS"
drh71eb93e2001-09-28 01:34:43 +00008488cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008489#line $LINENO "configure"
8490/* confdefs.h. */
8491_ACEOF
8492cat confdefs.h >>conftest.$ac_ext
8493cat >>conftest.$ac_ext <<_ACEOF
8494/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008495
drh75897232000-05-29 14:26:00 +00008496/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008497#ifdef __cplusplus
8498extern "C"
8499#endif
drh75897232000-05-29 14:26:00 +00008500/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00008501 builtin and then its argument prototype would still apply. */
8502char dlopen ();
8503int
8504main ()
8505{
8506dlopen ();
8507 ;
8508 return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008513 (eval $ac_link) 2>&5
8514 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008519 (eval $ac_try) 2>&5
8520 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008522 (exit $ac_status); }; }; then
8523 ac_cv_lib_dl_dlopen=yes
drh75897232000-05-29 14:26:00 +00008524else
drh71eb93e2001-09-28 01:34:43 +00008525 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008526sed 's/^/| /' conftest.$ac_ext >&5
8527
drh71eb93e2001-09-28 01:34:43 +00008528ac_cv_lib_dl_dlopen=no
drh75897232000-05-29 14:26:00 +00008529fi
drh71eb93e2001-09-28 01:34:43 +00008530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8531LIBS=$ac_check_lib_save_LIBS
drh75897232000-05-29 14:26:00 +00008532fi
a.rottmann84e63352003-03-24 09:42:16 +00008533echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh71eb93e2001-09-28 01:34:43 +00008534echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8535if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008536 cat >>confdefs.h <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00008537#define HAVE_LIBDL 1
a.rottmann84e63352003-03-24 09:42:16 +00008538_ACEOF
drh75897232000-05-29 14:26:00 +00008539
8540 LIBS="-ldl $LIBS"
8541
drh75897232000-05-29 14:26:00 +00008542fi
8543
8544 otherlibs=$LIBS
8545 if test "$extra" != ""; then
8546 LIBS=$extra
drh71eb93e2001-09-28 01:34:43 +00008547 else
drh75897232000-05-29 14:26:00 +00008548 LIBS=""
a.rottmann84e63352003-03-24 09:42:16 +00008549 echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008550echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6
8551if test "${ac_cv_search_Tcl_Init+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008553else
drh71eb93e2001-09-28 01:34:43 +00008554 ac_func_search_save_LIBS=$LIBS
8555ac_cv_search_Tcl_Init=no
8556cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008557#line $LINENO "configure"
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008563
drh71eb93e2001-09-28 01:34:43 +00008564/* Override any gcc2 internal prototype to avoid an error. */
8565#ifdef __cplusplus
8566extern "C"
8567#endif
8568/* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570char Tcl_Init ();
8571int
8572main ()
8573{
8574Tcl_Init ();
8575 ;
8576 return 0;
8577}
8578_ACEOF
8579rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008581 (eval $ac_link) 2>&5
8582 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008584 (exit $ac_status); } &&
8585 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008587 (eval $ac_try) 2>&5
8588 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008590 (exit $ac_status); }; }; then
drh75897232000-05-29 14:26:00 +00008591 ac_cv_search_Tcl_Init="none required"
8592else
drh71eb93e2001-09-28 01:34:43 +00008593 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008594sed 's/^/| /' conftest.$ac_ext >&5
8595
drh75897232000-05-29 14:26:00 +00008596fi
drh71eb93e2001-09-28 01:34:43 +00008597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8598if test "$ac_cv_search_Tcl_Init" = no; then
8599 for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do
8600 LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008602#line $LINENO "configure"
8603/* confdefs.h. */
8604_ACEOF
8605cat confdefs.h >>conftest.$ac_ext
8606cat >>conftest.$ac_ext <<_ACEOF
8607/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008608
drh71eb93e2001-09-28 01:34:43 +00008609/* Override any gcc2 internal prototype to avoid an error. */
8610#ifdef __cplusplus
8611extern "C"
8612#endif
8613/* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8615char Tcl_Init ();
8616int
8617main ()
8618{
8619Tcl_Init ();
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00008625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008626 (eval $ac_link) 2>&5
8627 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008629 (exit $ac_status); } &&
8630 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00008631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008632 (eval $ac_try) 2>&5
8633 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008635 (exit $ac_status); }; }; then
8636 ac_cv_search_Tcl_Init="-l$ac_lib"
drh75897232000-05-29 14:26:00 +00008637break
8638else
drh71eb93e2001-09-28 01:34:43 +00008639 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008640sed 's/^/| /' conftest.$ac_ext >&5
8641
drh75897232000-05-29 14:26:00 +00008642fi
drh71eb93e2001-09-28 01:34:43 +00008643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8644 done
8645fi
8646LIBS=$ac_func_search_save_LIBS
8647fi
a.rottmann84e63352003-03-24 09:42:16 +00008648echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5
drh71eb93e2001-09-28 01:34:43 +00008649echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6
8650if test "$ac_cv_search_Tcl_Init" != no; then
8651 test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS"
8652
drh75897232000-05-29 14:26:00 +00008653fi
8654
drh75897232000-05-29 14:26:00 +00008655 fi
8656 TARGET_TCL_LIBS="$LIBS $otherlibs"
8657fi
8658
a.rottmann84e63352003-03-24 09:42:16 +00008659
drh75897232000-05-29 14:26:00 +00008660##########
8661# Figure out where to get the TCL header files.
8662#
a.rottmann84e63352003-03-24 09:42:16 +00008663echo "$as_me:$LINENO: checking TCL header files" >&5
drh71eb93e2001-09-28 01:34:43 +00008664echo $ECHO_N "checking TCL header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008665found=no
8666if test "$config_TARGET_TCL_INC" != ""; then
8667 TARGET_TCL_INC=$config_TARGET_TCL_INC
8668 found=yes
8669else
8670 if test "$with_tcl" != ""; then
8671 TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
8672 found=yes
8673 else
8674 TARGET_TCL_INC=""
8675 found=no
8676 fi
8677fi
8678if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00008679 echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00008680echo "${ECHO_T}$TARGET_TCL_INC" >&6
drh75897232000-05-29 14:26:00 +00008681else
a.rottmann84e63352003-03-24 09:42:16 +00008682 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00008683echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00008684 if test "${ac_cv_header_tcl_h+set}" = set; then
8685 echo "$as_me:$LINENO: checking for tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008686echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8687if test "${ac_cv_header_tcl_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008689fi
8690echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
8691echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
drh75897232000-05-29 14:26:00 +00008692else
a.rottmann84e63352003-03-24 09:42:16 +00008693 # Is the header compilable?
8694echo "$as_me:$LINENO: checking tcl.h usability" >&5
8695echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
8696cat >conftest.$ac_ext <<_ACEOF
8697#line $LINENO "configure"
8698/* confdefs.h. */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h. */
8703$ac_includes_default
drh75897232000-05-29 14:26:00 +00008704#include <tcl.h>
drh71eb93e2001-09-28 01:34:43 +00008705_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008706rm -f conftest.$ac_objext
8707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -s conftest.$ac_objext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_header_compiler=yes
8719else
8720 echo "$as_me: failed program was:" >&5
8721sed 's/^/| /' conftest.$ac_ext >&5
8722
8723ac_header_compiler=no
8724fi
8725rm -f conftest.$ac_objext conftest.$ac_ext
8726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8727echo "${ECHO_T}$ac_header_compiler" >&6
8728
8729# Is the header present?
8730echo "$as_me:$LINENO: checking tcl.h presence" >&5
8731echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
8732cat >conftest.$ac_ext <<_ACEOF
8733#line $LINENO "configure"
8734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
8739#include <tcl.h>
8740_ACEOF
8741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8743 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00008744 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00008745 rm -f conftest.er1
8746 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008748 (exit $ac_status); } >/dev/null; then
8749 if test -s conftest.err; then
8750 ac_cpp_err=$ac_c_preproc_warn_flag
8751 else
8752 ac_cpp_err=
8753 fi
drh75897232000-05-29 14:26:00 +00008754else
drh71eb93e2001-09-28 01:34:43 +00008755 ac_cpp_err=yes
8756fi
8757if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00008758 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00008759else
8760 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008761sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00008764fi
drh71eb93e2001-09-28 01:34:43 +00008765rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8767echo "${ECHO_T}$ac_header_preproc" >&6
8768
8769# So? What about this header?
8770case $ac_header_compiler:$ac_header_preproc in
8771 yes:no )
8772 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8773echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8775echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8776 (
8777 cat <<\_ASBOX
8778## ------------------------------------ ##
8779## Report this to bug-autoconf@gnu.org. ##
8780## ------------------------------------ ##
8781_ASBOX
8782 ) |
8783 sed "s/^/$as_me: WARNING: /" >&2
8784 ;;
8785 no:yes )
8786 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
8787echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
8789echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8791echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8792 (
8793 cat <<\_ASBOX
8794## ------------------------------------ ##
8795## Report this to bug-autoconf@gnu.org. ##
8796## ------------------------------------ ##
8797_ASBOX
8798 ) |
8799 sed "s/^/$as_me: WARNING: /" >&2
8800 ;;
8801esac
8802echo "$as_me:$LINENO: checking for tcl.h" >&5
8803echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8804if test "${ac_cv_header_tcl_h+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else
8807 ac_cv_header_tcl_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00008808fi
a.rottmann84e63352003-03-24 09:42:16 +00008809echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
drh71eb93e2001-09-28 01:34:43 +00008810echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008811
8812fi
drh71eb93e2001-09-28 01:34:43 +00008813if test $ac_cv_header_tcl_h = yes; then
drh75897232000-05-29 14:26:00 +00008814 found=yes
drh75897232000-05-29 14:26:00 +00008815fi
8816
a.rottmann84e63352003-03-24 09:42:16 +00008817
drh75897232000-05-29 14:26:00 +00008818fi
8819if test "$found" = "no"; then
drhfdc99e92000-09-29 15:15:51 +00008820 for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
drh71eb93e2001-09-28 01:34:43 +00008821 as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00008822echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5
drh71eb93e2001-09-28 01:34:43 +00008823echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6
8824if eval "test \"\${$as_ac_File+set}\" = set"; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +00008826else
8827 test "$cross_compiling" = yes &&
8828 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
8829echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
8830 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00008831if test -r "$dir/include/tcl.h"; then
8832 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00008833else
drh71eb93e2001-09-28 01:34:43 +00008834 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00008835fi
8836fi
a.rottmann84e63352003-03-24 09:42:16 +00008837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00008838echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
8839if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00008840 found=yes
drh75897232000-05-29 14:26:00 +00008841fi
8842
8843 if test "$found" = "yes"; then
8844 TARGET_TCL_INC="-I$dir/include"
8845 break
8846 fi
8847 done
8848fi
drh6d313162000-09-21 13:01:35 +00008849if test "$found" = "no"; then
8850 TARGET_TCL_INC="-DNO_TCL=1"
8851fi
drh75897232000-05-29 14:26:00 +00008852
a.rottmann84e63352003-03-24 09:42:16 +00008853
drh75897232000-05-29 14:26:00 +00008854##########
8855# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +00008856# that use "readline()" library.
8857#
8858if test "$config_TARGET_READLINE_LIBS" != ""; then
8859 TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
8860else
8861 CC=$TARGET_CC
8862 LIBS=""
paul38372372003-04-22 08:04:49 +00008863 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8864echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8865if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00008866 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00008867else
drh71eb93e2001-09-28 01:34:43 +00008868 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +00008869ac_cv_search_tgetent=no
8870cat >conftest.$ac_ext <<_ACEOF
8871#line $LINENO "configure"
8872/* confdefs.h. */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h. */
8877
8878/* Override any gcc2 internal prototype to avoid an error. */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882/* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884char tgetent ();
8885int
8886main ()
8887{
8888tgetent ();
8889 ;
8890 return 0;
8891}
8892_ACEOF
8893rm -f conftest.$ac_objext conftest$ac_exeext
8894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_search_tgetent="none required"
8906else
8907 echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910fi
8911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912if test "$ac_cv_search_tgetent" = no; then
8913 for ac_lib in readline ncurses curses termcap; do
8914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8915 cat >conftest.$ac_ext <<_ACEOF
8916#line $LINENO "configure"
8917/* confdefs.h. */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h. */
8922
8923/* Override any gcc2 internal prototype to avoid an error. */
8924#ifdef __cplusplus
8925extern "C"
8926#endif
8927/* We use char because int might match the return type of a gcc2
8928 builtin and then its argument prototype would still apply. */
8929char tgetent ();
8930int
8931main ()
8932{
8933tgetent ();
8934 ;
8935 return 0;
8936}
8937_ACEOF
8938rm -f conftest.$ac_objext conftest$ac_exeext
8939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_search_tgetent="-l$ac_lib"
8951break
8952else
8953 echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956fi
8957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8958 done
8959fi
8960LIBS=$ac_func_search_save_LIBS
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8963echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8964if test "$ac_cv_search_tgetent" != no; then
8965 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8966
8967fi
8968
8969
8970echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8971echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8972if test "${ac_cv_lib_readline_readline+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975 ac_check_lib_save_LIBS=$LIBS
8976LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +00008977cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008978#line $LINENO "configure"
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +00008984
drh71eb93e2001-09-28 01:34:43 +00008985/* Override any gcc2 internal prototype to avoid an error. */
8986#ifdef __cplusplus
8987extern "C"
8988#endif
8989/* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991char readline ();
8992int
8993main ()
8994{
8995readline ();
8996 ;
8997 return 0;
8998}
8999_ACEOF
9000rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00009001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009002 (eval $ac_link) 2>&5
9003 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009005 (exit $ac_status); } &&
9006 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00009007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009008 (eval $ac_try) 2>&5
9009 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009011 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +00009012 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +00009013else
drh71eb93e2001-09-28 01:34:43 +00009014 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009015sed 's/^/| /' conftest.$ac_ext >&5
9016
paul38372372003-04-22 08:04:49 +00009017ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +00009018fi
drh71eb93e2001-09-28 01:34:43 +00009019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +00009020LIBS=$ac_check_lib_save_LIBS
9021fi
9022echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9023echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
9024if test $ac_cv_lib_readline_readline = yes; then
9025 cat >>confdefs.h <<_ACEOF
9026#define HAVE_LIBREADLINE 1
a.rottmann84e63352003-03-24 09:42:16 +00009027_ACEOF
drh75897232000-05-29 14:26:00 +00009028
paul38372372003-04-22 08:04:49 +00009029 LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +00009030
drh75897232000-05-29 14:26:00 +00009031fi
9032
drh75897232000-05-29 14:26:00 +00009033 TARGET_READLINE_LIBS="$LIBS"
9034fi
9035
a.rottmann84e63352003-03-24 09:42:16 +00009036
drh75897232000-05-29 14:26:00 +00009037##########
9038# Figure out where to get the READLINE header files.
9039#
a.rottmann84e63352003-03-24 09:42:16 +00009040echo "$as_me:$LINENO: checking readline header files" >&5
drh71eb93e2001-09-28 01:34:43 +00009041echo $ECHO_N "checking readline header files... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +00009042found=no
9043if test "$config_TARGET_READLINE_INC" != ""; then
9044 TARGET_READLINE_INC=$config_TARGET_READLINE_INC
9045 found=yes
9046fi
9047if test "$found" = "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +00009048 echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5
drh71eb93e2001-09-28 01:34:43 +00009049echo "${ECHO_T}$TARGET_READLINE_INC" >&6
drh75897232000-05-29 14:26:00 +00009050else
a.rottmann84e63352003-03-24 09:42:16 +00009051 echo "$as_me:$LINENO: result: not specified: still searching..." >&5
drh71eb93e2001-09-28 01:34:43 +00009052echo "${ECHO_T}not specified: still searching..." >&6
a.rottmann84e63352003-03-24 09:42:16 +00009053 if test "${ac_cv_header_readline_h+set}" = set; then
9054 echo "$as_me:$LINENO: checking for readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009055echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
9056if test "${ac_cv_header_readline_h+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009058fi
9059echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
9060echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +00009061else
a.rottmann84e63352003-03-24 09:42:16 +00009062 # Is the header compilable?
9063echo "$as_me:$LINENO: checking readline.h usability" >&5
9064echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
9065cat >conftest.$ac_ext <<_ACEOF
9066#line $LINENO "configure"
9067/* confdefs.h. */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h. */
9072$ac_includes_default
drh75897232000-05-29 14:26:00 +00009073#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +00009074_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009075rm -f conftest.$ac_objext
9076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9077 (eval $ac_compile) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -s conftest.$ac_objext'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9087 ac_header_compiler=yes
9088else
9089 echo "$as_me: failed program was:" >&5
9090sed 's/^/| /' conftest.$ac_ext >&5
9091
9092ac_header_compiler=no
9093fi
9094rm -f conftest.$ac_objext conftest.$ac_ext
9095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9096echo "${ECHO_T}$ac_header_compiler" >&6
9097
9098# Is the header present?
9099echo "$as_me:$LINENO: checking readline.h presence" >&5
9100echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
9101cat >conftest.$ac_ext <<_ACEOF
9102#line $LINENO "configure"
9103/* confdefs.h. */
9104_ACEOF
9105cat confdefs.h >>conftest.$ac_ext
9106cat >>conftest.$ac_ext <<_ACEOF
9107/* end confdefs.h. */
9108#include <readline.h>
9109_ACEOF
9110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9112 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009113 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +00009114 rm -f conftest.er1
9115 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009117 (exit $ac_status); } >/dev/null; then
9118 if test -s conftest.err; then
9119 ac_cpp_err=$ac_c_preproc_warn_flag
9120 else
9121 ac_cpp_err=
9122 fi
drh75897232000-05-29 14:26:00 +00009123else
drh71eb93e2001-09-28 01:34:43 +00009124 ac_cpp_err=yes
9125fi
9126if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00009127 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +00009128else
9129 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +00009133fi
drh71eb93e2001-09-28 01:34:43 +00009134rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9136echo "${ECHO_T}$ac_header_preproc" >&6
9137
9138# So? What about this header?
9139case $ac_header_compiler:$ac_header_preproc in
9140 yes:no )
9141 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
9142echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9143 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
9144echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
9145 (
9146 cat <<\_ASBOX
9147## ------------------------------------ ##
9148## Report this to bug-autoconf@gnu.org. ##
9149## ------------------------------------ ##
9150_ASBOX
9151 ) |
9152 sed "s/^/$as_me: WARNING: /" >&2
9153 ;;
9154 no:yes )
9155 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
9156echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
9158echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
9160echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
9161 (
9162 cat <<\_ASBOX
9163## ------------------------------------ ##
9164## Report this to bug-autoconf@gnu.org. ##
9165## ------------------------------------ ##
9166_ASBOX
9167 ) |
9168 sed "s/^/$as_me: WARNING: /" >&2
9169 ;;
9170esac
9171echo "$as_me:$LINENO: checking for readline.h" >&5
9172echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
9173if test "${ac_cv_header_readline_h+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175else
9176 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +00009177fi
a.rottmann84e63352003-03-24 09:42:16 +00009178echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
drh71eb93e2001-09-28 01:34:43 +00009179echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009180
9181fi
drh71eb93e2001-09-28 01:34:43 +00009182if test $ac_cv_header_readline_h = yes; then
drh75897232000-05-29 14:26:00 +00009183 found=yes
drh75897232000-05-29 14:26:00 +00009184fi
9185
a.rottmann84e63352003-03-24 09:42:16 +00009186
drh75897232000-05-29 14:26:00 +00009187fi
9188if test "$found" = "no"; then
9189 for dir in /usr /usr/local /usr/local/readline /usr/contrib; do
drh71eb93e2001-09-28 01:34:43 +00009190 as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009191echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009192echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6
9193if eval "test \"\${$as_ac_File+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +00009195else
9196 test "$cross_compiling" = yes &&
9197 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9198echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9199 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00009200if test -r "$dir/include/readline.h"; then
9201 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009202else
drh71eb93e2001-09-28 01:34:43 +00009203 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009204fi
9205fi
a.rottmann84e63352003-03-24 09:42:16 +00009206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009207echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9208if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009209 found=yes
drh75897232000-05-29 14:26:00 +00009210fi
9211
9212 if test "$found" = "yes"; then
9213 TARGET_READLINE_INC="-I$dir/include"
9214 break
9215 fi
drh71eb93e2001-09-28 01:34:43 +00009216 as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh`
a.rottmann84e63352003-03-24 09:42:16 +00009217echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5
drh71eb93e2001-09-28 01:34:43 +00009218echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6
9219if eval "test \"\${$as_ac_File+set}\" = set"; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +00009221else
9222 test "$cross_compiling" = yes &&
9223 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9224echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9225 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00009226if test -r "$dir/include/readline/readline.h"; then
9227 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +00009228else
drh71eb93e2001-09-28 01:34:43 +00009229 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +00009230fi
9231fi
a.rottmann84e63352003-03-24 09:42:16 +00009232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
drh71eb93e2001-09-28 01:34:43 +00009233echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
9234if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +00009235 found=yes
drh75897232000-05-29 14:26:00 +00009236fi
9237
9238 if test "$found" = "yes"; then
9239 TARGET_READLINE_INC="-I$dir/include/readline"
9240 break
9241 fi
9242 done
9243fi
9244if test "$found" = "yes"; then
drh82ad3832000-07-31 13:38:24 +00009245 if test "$TARGET_READLINE_LIBS" = ""; then
9246 TARGET_HAVE_READLINE=0
9247 else
9248 TARGET_HAVE_READLINE=1
9249 fi
drh75897232000-05-29 14:26:00 +00009250else
9251 TARGET_HAVE_READLINE=0
9252fi
9253
a.rottmann84e63352003-03-24 09:42:16 +00009254
9255
drh75897232000-05-29 14:26:00 +00009256#########
drh2dfbbca2000-07-28 14:32:48 +00009257# Figure out whether or not we have a "usleep()" function.
9258#
a.rottmann84e63352003-03-24 09:42:16 +00009259echo "$as_me:$LINENO: checking for usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009260echo $ECHO_N "checking for usleep... $ECHO_C" >&6
9261if test "${ac_cv_func_usleep+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +00009263else
drh71eb93e2001-09-28 01:34:43 +00009264 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009265#line $LINENO "configure"
9266/* confdefs.h. */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h. */
drh2dfbbca2000-07-28 14:32:48 +00009271/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009272 which can conflict with char usleep (); below.
9273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9274 <limits.h> exists even on freestanding compilers. */
9275#ifdef __STDC__
9276# include <limits.h>
9277#else
9278# include <assert.h>
9279#endif
drh2dfbbca2000-07-28 14:32:48 +00009280/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00009281#ifdef __cplusplus
9282extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009283{
drh71eb93e2001-09-28 01:34:43 +00009284#endif
drh2dfbbca2000-07-28 14:32:48 +00009285/* We use char because int might match the return type of a gcc2
drh71eb93e2001-09-28 01:34:43 +00009286 builtin and then its argument prototype would still apply. */
9287char usleep ();
drh2dfbbca2000-07-28 14:32:48 +00009288/* The GNU C library defines this for functions which it implements
9289 to always fail with ENOSYS. Some functions are actually named
9290 something starting with __ and the normal name is an alias. */
9291#if defined (__stub_usleep) || defined (__stub___usleep)
9292choke me
9293#else
a.rottmann84e63352003-03-24 09:42:16 +00009294char (*f) () = usleep;
9295#endif
9296#ifdef __cplusplus
9297}
drh2dfbbca2000-07-28 14:32:48 +00009298#endif
9299
a.rottmann84e63352003-03-24 09:42:16 +00009300int
9301main ()
9302{
9303return f != usleep;
drh71eb93e2001-09-28 01:34:43 +00009304 ;
9305 return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext conftest$ac_exeext
a.rottmann84e63352003-03-24 09:42:16 +00009309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009310 (eval $ac_link) 2>&5
9311 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009313 (exit $ac_status); } &&
9314 { ac_try='test -s conftest$ac_exeext'
a.rottmann84e63352003-03-24 09:42:16 +00009315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009316 (eval $ac_try) 2>&5
9317 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009319 (exit $ac_status); }; }; then
9320 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +00009321else
drh71eb93e2001-09-28 01:34:43 +00009322 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009323sed 's/^/| /' conftest.$ac_ext >&5
9324
drh71eb93e2001-09-28 01:34:43 +00009325ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +00009326fi
drh71eb93e2001-09-28 01:34:43 +00009327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +00009328fi
a.rottmann84e63352003-03-24 09:42:16 +00009329echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
drh71eb93e2001-09-28 01:34:43 +00009330echo "${ECHO_T}$ac_cv_func_usleep" >&6
9331if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +00009332 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +00009333fi
9334
a.rottmann84e63352003-03-24 09:42:16 +00009335
drh2dfbbca2000-07-28 14:32:48 +00009336#########
drh75897232000-05-29 14:26:00 +00009337# Generate the output files.
9338#
a.rottmann84e63352003-03-24 09:42:16 +00009339 ac_config_files="$ac_config_files Makefile sqlite.pc"
drh71eb93e2001-09-28 01:34:43 +00009340cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +00009341# This file is a shell script that caches the results of configure
9342# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +00009343# scripts and configure runs, see configure's option --config-cache.
9344# It is not useful on other systems. If it contains results you don't
9345# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +00009346#
drh71eb93e2001-09-28 01:34:43 +00009347# config.status only pays attention to the cache file if you give it
9348# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +00009349#
a.rottmann84e63352003-03-24 09:42:16 +00009350# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +00009351# loading this file, other *unset* `ac_cv_foo' will be assigned the
9352# following values.
9353
9354_ACEOF
9355
drh75897232000-05-29 14:26:00 +00009356# The following way of writing the cache mishandles newlines in values,
9357# but we know of no workaround that is simple, portable, and efficient.
9358# So, don't put newlines in cache variables' values.
9359# Ultrix sh set writes to stderr and can't be redirected directly,
9360# and sets the high bit in the cache file unless we assign to the vars.
drh71eb93e2001-09-28 01:34:43 +00009361{
9362 (set) 2>&1 |
9363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9364 *ac_space=\ *)
9365 # `set' does not quote correctly, so add quotes (double-quote
9366 # substitution turns \\\\ into \\, and sed turns \\ into \).
9367 sed -n \
9368 "s/'/'\\\\''/g;
9369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9370 ;;
9371 *)
9372 # `set' quotes correctly as required by POSIX, so do not add quotes.
9373 sed -n \
9374 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9375 ;;
9376 esac;
9377} |
9378 sed '
9379 t clear
9380 : clear
9381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9382 t end
9383 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9384 : end' >>confcache
a.rottmann84e63352003-03-24 09:42:16 +00009385if diff $cache_file confcache >/dev/null 2>&1; then :; else
drh75897232000-05-29 14:26:00 +00009386 if test -w $cache_file; then
drh71eb93e2001-09-28 01:34:43 +00009387 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9388 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +00009389 else
9390 echo "not updating unwritable cache $cache_file"
9391 fi
9392fi
9393rm -f confcache
9394
drh75897232000-05-29 14:26:00 +00009395test "x$prefix" = xNONE && prefix=$ac_default_prefix
9396# Let make expand exec_prefix.
9397test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9398
drh71eb93e2001-09-28 01:34:43 +00009399# VPATH may cause trouble with some makes, so we remove $(srcdir),
9400# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9401# trailing colons and then remove the whole line if VPATH becomes empty
9402# (actually we leave an empty line to preserve line numbers).
drh75897232000-05-29 14:26:00 +00009403if test "x$srcdir" = x.; then
drh71eb93e2001-09-28 01:34:43 +00009404 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9405s/:*\$(srcdir):*/:/;
9406s/:*\${srcdir}:*/:/;
9407s/:*@srcdir@:*/:/;
9408s/^\([^=]*=[ ]*\):*/\1/;
9409s/:*$//;
9410s/^[^=]*=[ ]*$//;
9411}'
drh75897232000-05-29 14:26:00 +00009412fi
9413
drh75897232000-05-29 14:26:00 +00009414# Transform confdefs.h into DEFS.
9415# Protect against shell expansion while executing Makefile rules.
9416# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +00009417#
9418# If the first sed substitution is executed (which looks for macros that
9419# take arguments), then we branch to the quote section. Otherwise,
9420# look for a macro that doesn't take arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009421cat >confdef2opt.sed <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009422t clear
9423: clear
9424s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9425t quote
9426s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9427t quote
9428d
9429: quote
9430s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9431s,\[,\\&,g
9432s,\],\\&,g
9433s,\$,$$,g
9434p
a.rottmann84e63352003-03-24 09:42:16 +00009435_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009436# We use echo to avoid assuming a particular line-breaking character.
9437# The extra dot is to prevent the shell from consuming trailing
9438# line-breaks from the sub-command output. A line-break within
9439# single-quotes doesn't work because, if this script is created in a
9440# platform that uses two characters for line-breaks (e.g., DOS), tr
9441# would break.
9442ac_LF_and_DOT=`echo; echo .`
9443DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9444rm -f confdef2opt.sed
drh75897232000-05-29 14:26:00 +00009445
a.rottmann84e63352003-03-24 09:42:16 +00009446
9447ac_libobjs=
9448ac_ltlibobjs=
9449for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9450 # 1. Remove the extension, and $U if already installed.
9451 ac_i=`echo "$ac_i" |
9452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9453 # 2. Add them.
9454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9456done
9457LIBOBJS=$ac_libobjs
9458
9459LTLIBOBJS=$ac_ltlibobjs
9460
9461
9462
drh75897232000-05-29 14:26:00 +00009463: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +00009464ac_clean_files_save=$ac_clean_files
9465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +00009466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +00009467echo "$as_me: creating $CONFIG_STATUS" >&6;}
9468cat >$CONFIG_STATUS <<_ACEOF
9469#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +00009470# Generated by $as_me.
drh75897232000-05-29 14:26:00 +00009471# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +00009472# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +00009473# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +00009474
drh71eb93e2001-09-28 01:34:43 +00009475debug=false
a.rottmann84e63352003-03-24 09:42:16 +00009476ac_cs_recheck=false
9477ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +00009478SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +00009479_ACEOF
drh75897232000-05-29 14:26:00 +00009480
drh71eb93e2001-09-28 01:34:43 +00009481cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009482## --------------------- ##
9483## M4sh Initialization. ##
9484## --------------------- ##
9485
drh71eb93e2001-09-28 01:34:43 +00009486# Be Bourne compatible
9487if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9488 emulate sh
9489 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +00009490 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9491 # is contrary to our usage. Disable this feature.
9492 alias -g '${1+"$@"}'='"$@"'
drh71eb93e2001-09-28 01:34:43 +00009493elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9494 set -o posix
drh75897232000-05-29 14:26:00 +00009495fi
drh71eb93e2001-09-28 01:34:43 +00009496
a.rottmann84e63352003-03-24 09:42:16 +00009497# Support unset when possible.
9498if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9499 as_unset=unset
9500else
9501 as_unset=false
9502fi
9503
9504
9505# Work around bugs in pre-3.0 UWIN ksh.
9506$as_unset ENV MAIL MAILPATH
9507PS1='$ '
9508PS2='> '
9509PS4='+ '
9510
9511# NLS nuisances.
9512for as_var in \
9513 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9514 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9515 LC_TELEPHONE LC_TIME
9516do
9517 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9518 eval $as_var=C; export $as_var
9519 else
9520 $as_unset $as_var
9521 fi
9522done
9523
9524# Required to use basename.
9525if expr a : '\(a\)' >/dev/null 2>&1; then
9526 as_expr=expr
9527else
9528 as_expr=false
9529fi
9530
9531if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9532 as_basename=basename
9533else
9534 as_basename=false
9535fi
9536
9537
drh71eb93e2001-09-28 01:34:43 +00009538# Name of the executable.
a.rottmann84e63352003-03-24 09:42:16 +00009539as_me=`$as_basename "$0" ||
9540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9541 X"$0" : 'X\(//\)$' \| \
9542 X"$0" : 'X\(/\)$' \| \
9543 . : '\(.\)' 2>/dev/null ||
9544echo X/"$0" |
9545 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9546 /^X\/\(\/\/\)$/{ s//\1/; q; }
9547 /^X\/\(\/\).*/{ s//\1/; q; }
9548 s/.*/./; q'`
9549
9550
9551# PATH needs CR, and LINENO needs CR and PATH.
9552# Avoid depending upon Character Ranges.
9553as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9554as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9555as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9556as_cr_digits='0123456789'
9557as_cr_alnum=$as_cr_Letters$as_cr_digits
9558
9559# The user is always right.
9560if test "${PATH_SEPARATOR+set}" != set; then
9561 echo "#! /bin/sh" >conf$$.sh
9562 echo "exit 0" >>conf$$.sh
9563 chmod +x conf$$.sh
9564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9565 PATH_SEPARATOR=';'
9566 else
9567 PATH_SEPARATOR=:
9568 fi
9569 rm -f conf$$.sh
9570fi
9571
9572
9573 as_lineno_1=$LINENO
9574 as_lineno_2=$LINENO
9575 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9576 test "x$as_lineno_1" != "x$as_lineno_2" &&
9577 test "x$as_lineno_3" = "x$as_lineno_2" || {
9578 # Find who we are. Look in the path if we contain no path at all
9579 # relative or not.
9580 case $0 in
9581 *[\\/]* ) as_myself=$0 ;;
9582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9588done
9589
9590 ;;
9591 esac
9592 # We did not find ourselves, most probably we were run as `sh COMMAND'
9593 # in which case we are not to be found in the path.
9594 if test "x$as_myself" = x; then
9595 as_myself=$0
9596 fi
9597 if test ! -f "$as_myself"; then
9598 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9599echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9600 { (exit 1); exit 1; }; }
9601 fi
9602 case $CONFIG_SHELL in
9603 '')
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for as_base in sh bash ksh sh5; do
9610 case $as_dir in
9611 /*)
9612 if ("$as_dir/$as_base" -c '
9613 as_lineno_1=$LINENO
9614 as_lineno_2=$LINENO
9615 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9616 test "x$as_lineno_1" != "x$as_lineno_2" &&
9617 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9618 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9619 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9620 CONFIG_SHELL=$as_dir/$as_base
9621 export CONFIG_SHELL
9622 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9623 fi;;
9624 esac
9625 done
9626done
9627;;
9628 esac
9629
9630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9631 # uniformly replaced by the line number. The first 'sed' inserts a
9632 # line-number line before each line; the second 'sed' does the real
9633 # work. The second script uses 'N' to pair each line-number line
9634 # with the numbered line, and appends trailing '-' during
9635 # substitution so that $LINENO is not a special case at line end.
9636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9637 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9638 sed '=' <$as_myself |
9639 sed '
9640 N
9641 s,$,-,
9642 : loop
9643 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9644 t loop
9645 s,-$,,
9646 s,^['$as_cr_digits']*\n,,
9647 ' >$as_me.lineno &&
9648 chmod +x $as_me.lineno ||
9649 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9650echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9651 { (exit 1); exit 1; }; }
9652
9653 # Don't try to exec as it changes $[0], causing all sort of problems
9654 # (the dirname of $[0] is not the place where we might find the
9655 # original and so on. Autoconf is especially sensible to this).
9656 . ./$as_me.lineno
9657 # Exit status is that of the last command.
9658 exit
9659}
9660
9661
9662case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9663 *c*,-n*) ECHO_N= ECHO_C='
9664' ECHO_T=' ' ;;
9665 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9666 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9667esac
drh71eb93e2001-09-28 01:34:43 +00009668
9669if expr a : '\(a\)' >/dev/null 2>&1; then
9670 as_expr=expr
9671else
9672 as_expr=false
9673fi
9674
9675rm -f conf$$ conf$$.exe conf$$.file
9676echo >conf$$.file
9677if ln -s conf$$.file conf$$ 2>/dev/null; then
9678 # We could just check for DJGPP; but this test a) works b) is more generic
9679 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9680 if test -f conf$$.exe; then
9681 # Don't use ln at all; we don't have any links
9682 as_ln_s='cp -p'
9683 else
9684 as_ln_s='ln -s'
9685 fi
9686elif ln conf$$.file conf$$ 2>/dev/null; then
9687 as_ln_s=ln
9688else
9689 as_ln_s='cp -p'
9690fi
9691rm -f conf$$ conf$$.exe conf$$.file
9692
a.rottmann84e63352003-03-24 09:42:16 +00009693if mkdir -p . 2>/dev/null; then
9694 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +00009695else
a.rottmann84e63352003-03-24 09:42:16 +00009696 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +00009697fi
9698
a.rottmann84e63352003-03-24 09:42:16 +00009699as_executable_p="test -f"
9700
9701# Sed expression to map a string onto a valid CPP name.
9702as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9703
9704# Sed expression to map a string onto a valid variable name.
9705as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9706
drh71eb93e2001-09-28 01:34:43 +00009707
9708# IFS
9709# We need space, tab and new line, in precisely that order.
9710as_nl='
9711'
9712IFS=" $as_nl"
9713
9714# CDPATH.
a.rottmann84e63352003-03-24 09:42:16 +00009715$as_unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009716
9717exec 6>&1
9718
a.rottmann84e63352003-03-24 09:42:16 +00009719# Open the log real soon, to keep \$[0] and so on meaningful, and to
9720# report actual input values of CONFIG_FILES etc. instead of their
9721# values after options handling. Logging --version etc. is OK.
9722exec 5>>config.log
9723{
9724 echo
9725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9726## Running $as_me. ##
9727_ASBOX
9728} >&5
9729cat >&5 <<_CSEOF
9730
9731This file was extended by $as_me, which was
9732generated by GNU Autoconf 2.57. Invocation command line was
9733
9734 CONFIG_FILES = $CONFIG_FILES
9735 CONFIG_HEADERS = $CONFIG_HEADERS
9736 CONFIG_LINKS = $CONFIG_LINKS
9737 CONFIG_COMMANDS = $CONFIG_COMMANDS
9738 $ $0 $@
9739
9740_CSEOF
9741echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9742echo >&5
drh71eb93e2001-09-28 01:34:43 +00009743_ACEOF
9744
9745# Files that config.status was made for.
9746if test -n "$ac_config_files"; then
9747 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9748fi
9749
9750if test -n "$ac_config_headers"; then
9751 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9752fi
9753
9754if test -n "$ac_config_links"; then
9755 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9756fi
9757
9758if test -n "$ac_config_commands"; then
9759 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9760fi
9761
a.rottmann84e63352003-03-24 09:42:16 +00009762cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009763
9764ac_cs_usage="\
9765\`$as_me' instantiates files from templates according to the
9766current configuration.
9767
9768Usage: $0 [OPTIONS] [FILE]...
9769
9770 -h, --help print this help, then exit
9771 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +00009772 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +00009773 -d, --debug don't remove temporary files
9774 --recheck update $as_me by reconfiguring in the same conditions
9775 --file=FILE[:TEMPLATE]
9776 instantiate the configuration file FILE
9777
9778Configuration files:
9779$config_files
9780
9781Report bugs to <bug-autoconf@gnu.org>."
a.rottmann84e63352003-03-24 09:42:16 +00009782_ACEOF
drh75897232000-05-29 14:26:00 +00009783
a.rottmann84e63352003-03-24 09:42:16 +00009784cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009785ac_cs_version="\\
9786config.status
a.rottmann84e63352003-03-24 09:42:16 +00009787configured by $0, generated by GNU Autoconf 2.57,
drh71eb93e2001-09-28 01:34:43 +00009788 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +00009789
drh71eb93e2001-09-28 01:34:43 +00009790Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9791Free Software Foundation, Inc.
9792This config.status script is free software; the Free Software Foundation
9793gives unlimited permission to copy, distribute and modify it."
9794srcdir=$srcdir
9795INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +00009796_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009797
a.rottmann84e63352003-03-24 09:42:16 +00009798cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009799# If no file are specified by the user, then we need to provide default
9800# value. By we need to know if files were specified by the user.
9801ac_need_defaults=:
9802while test $# != 0
9803do
9804 case $1 in
9805 --*=*)
9806 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9807 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +00009808 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +00009809 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009810 -*)
9811 ac_option=$1
9812 ac_optarg=$2
9813 ac_shift=shift
9814 ;;
drh71eb93e2001-09-28 01:34:43 +00009815 *) # This is not an option, so the user has probably given explicit
9816 # arguments.
a.rottmann84e63352003-03-24 09:42:16 +00009817 ac_option=$1
drh71eb93e2001-09-28 01:34:43 +00009818 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +00009819 esac
9820
a.rottmann84e63352003-03-24 09:42:16 +00009821 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +00009822 # Handling of the options.
a.rottmann84e63352003-03-24 09:42:16 +00009823_ACEOF
9824cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +00009826 ac_cs_recheck=: ;;
drh71eb93e2001-09-28 01:34:43 +00009827 --version | --vers* | -V )
9828 echo "$ac_cs_version"; exit 0 ;;
9829 --he | --h)
9830 # Conflict between --help and --header
a.rottmann84e63352003-03-24 09:42:16 +00009831 { { echo "$as_me:$LINENO: error: ambiguous option: $1
drh71eb93e2001-09-28 01:34:43 +00009832Try \`$0 --help' for more information." >&5
9833echo "$as_me: error: ambiguous option: $1
9834Try \`$0 --help' for more information." >&2;}
9835 { (exit 1); exit 1; }; };;
9836 --help | --hel | -h )
9837 echo "$ac_cs_usage"; exit 0 ;;
9838 --debug | --d* | -d )
9839 debug=: ;;
9840 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +00009841 $ac_shift
9842 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +00009843 ac_need_defaults=false;;
9844 --header | --heade | --head | --hea )
a.rottmann84e63352003-03-24 09:42:16 +00009845 $ac_shift
9846 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +00009847 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +00009848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9850 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +00009851
drh71eb93e2001-09-28 01:34:43 +00009852 # This is an error.
a.rottmann84e63352003-03-24 09:42:16 +00009853 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
drh71eb93e2001-09-28 01:34:43 +00009854Try \`$0 --help' for more information." >&5
9855echo "$as_me: error: unrecognized option: $1
9856Try \`$0 --help' for more information." >&2;}
9857 { (exit 1); exit 1; }; } ;;
9858
9859 *) ac_config_targets="$ac_config_targets $1" ;;
9860
9861 esac
9862 shift
9863done
9864
a.rottmann84e63352003-03-24 09:42:16 +00009865ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +00009866
a.rottmann84e63352003-03-24 09:42:16 +00009867if $ac_cs_silent; then
9868 exec 6>/dev/null
9869 ac_configure_extra_args="$ac_configure_extra_args --silent"
9870fi
drh71eb93e2001-09-28 01:34:43 +00009871
9872_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009873cat >>$CONFIG_STATUS <<_ACEOF
9874if \$ac_cs_recheck; then
9875 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9876 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9877fi
drh71eb93e2001-09-28 01:34:43 +00009878
a.rottmann84e63352003-03-24 09:42:16 +00009879_ACEOF
9880
9881
9882
9883
9884
9885cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009886for ac_config_target in $ac_config_targets
9887do
9888 case "$ac_config_target" in
9889 # Handling of arguments.
9890 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
a.rottmann84e63352003-03-24 09:42:16 +00009891 "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;;
9892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +00009893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9894 { (exit 1); exit 1; }; };;
9895 esac
9896done
9897
9898# If the user did not use the arguments to specify the items to instantiate,
9899# then the envvar interface is used. Set only those that are not.
9900# We use the long form for the default assignment because of an extremely
9901# bizarre bug on SunOS 4.1.3.
9902if $ac_need_defaults; then
9903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9904fi
9905
a.rottmann84e63352003-03-24 09:42:16 +00009906# Have a temporary directory for convenience. Make it in the build tree
9907# simply because there is no reason to put it here, and in addition,
9908# creating and moving files from /tmp can sometimes cause problems.
drh71eb93e2001-09-28 01:34:43 +00009909# Create a temporary directory, and hook for its removal unless debugging.
9910$debug ||
9911{
9912 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9913 trap '{ (exit 1); exit 1; }' 1 2 13 15
9914}
9915
9916# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +00009917
drh71eb93e2001-09-28 01:34:43 +00009918{
a.rottmann84e63352003-03-24 09:42:16 +00009919 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +00009920 test -n "$tmp" && test -d "$tmp"
9921} ||
9922{
a.rottmann84e63352003-03-24 09:42:16 +00009923 tmp=./confstat$$-$RANDOM
drh71eb93e2001-09-28 01:34:43 +00009924 (umask 077 && mkdir $tmp)
9925} ||
9926{
a.rottmann84e63352003-03-24 09:42:16 +00009927 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +00009928 { (exit 1); exit 1; }
9929}
9930
a.rottmann84e63352003-03-24 09:42:16 +00009931_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009932
a.rottmann84e63352003-03-24 09:42:16 +00009933cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00009934
9935#
9936# CONFIG_FILES section.
9937#
9938
9939# No need to generate the scripts if there are no CONFIG_FILES.
9940# This happens for instance when ./config.status config.h
9941if test -n "\$CONFIG_FILES"; then
9942 # Protect against being on the right side of a sed subst in config.status.
9943 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9944 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9945s,@SHELL@,$SHELL,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009946s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9947s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9948s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9949s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9950s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9951s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
drh71eb93e2001-09-28 01:34:43 +00009952s,@exec_prefix@,$exec_prefix,;t t
9953s,@prefix@,$prefix,;t t
9954s,@program_transform_name@,$program_transform_name,;t t
9955s,@bindir@,$bindir,;t t
9956s,@sbindir@,$sbindir,;t t
9957s,@libexecdir@,$libexecdir,;t t
9958s,@datadir@,$datadir,;t t
9959s,@sysconfdir@,$sysconfdir,;t t
9960s,@sharedstatedir@,$sharedstatedir,;t t
9961s,@localstatedir@,$localstatedir,;t t
9962s,@libdir@,$libdir,;t t
9963s,@includedir@,$includedir,;t t
9964s,@oldincludedir@,$oldincludedir,;t t
9965s,@infodir@,$infodir,;t t
9966s,@mandir@,$mandir,;t t
drh71eb93e2001-09-28 01:34:43 +00009967s,@build_alias@,$build_alias,;t t
9968s,@host_alias@,$host_alias,;t t
9969s,@target_alias@,$target_alias,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009970s,@DEFS@,$DEFS,;t t
drh71eb93e2001-09-28 01:34:43 +00009971s,@ECHO_C@,$ECHO_C,;t t
9972s,@ECHO_N@,$ECHO_N,;t t
9973s,@ECHO_T@,$ECHO_T,;t t
drh71eb93e2001-09-28 01:34:43 +00009974s,@LIBS@,$LIBS,;t t
9975s,@build@,$build,;t t
9976s,@build_cpu@,$build_cpu,;t t
9977s,@build_vendor@,$build_vendor,;t t
9978s,@build_os@,$build_os,;t t
9979s,@host@,$host,;t t
9980s,@host_cpu@,$host_cpu,;t t
9981s,@host_vendor@,$host_vendor,;t t
9982s,@host_os@,$host_os,;t t
9983s,@CC@,$CC,;t t
9984s,@CFLAGS@,$CFLAGS,;t t
9985s,@LDFLAGS@,$LDFLAGS,;t t
9986s,@CPPFLAGS@,$CPPFLAGS,;t t
9987s,@ac_ct_CC@,$ac_ct_CC,;t t
9988s,@EXEEXT@,$EXEEXT,;t t
9989s,@OBJEXT@,$OBJEXT,;t t
9990s,@LN_S@,$LN_S,;t t
9991s,@ECHO@,$ECHO,;t t
9992s,@RANLIB@,$RANLIB,;t t
9993s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9994s,@STRIP@,$STRIP,;t t
9995s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9996s,@CPP@,$CPP,;t t
a.rottmann84e63352003-03-24 09:42:16 +00009997s,@EGREP@,$EGREP,;t t
drh71eb93e2001-09-28 01:34:43 +00009998s,@LIBTOOL@,$LIBTOOL,;t t
9999s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10000s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10001s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10002s,@program_prefix@,$program_prefix,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010003s,@VERSION@,$VERSION,;t t
drh71eb93e2001-09-28 01:34:43 +000010004s,@BUILD_CC@,$BUILD_CC,;t t
10005s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
10006s,@BUILD_LIBS@,$BUILD_LIBS,;t t
10007s,@TARGET_CC@,$TARGET_CC,;t t
10008s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t
10009s,@TARGET_LINK@,$TARGET_LINK,;t t
10010s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t
10011s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t
10012s,@TARGET_AR@,$TARGET_AR,;t t
10013s,@ENCODING@,$ENCODING,;t t
paulb0208cc2003-04-13 18:26:49 +000010014s,@ALLOWATTACHMEM@,$ALLOWATTACHMEM,;t t
xdong28f79f72003-09-23 00:35:21 +000010015s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
paul2dc96f92003-04-20 11:46:34 +000010016s,@INMEMORYDB@,$INMEMORYDB,;t t
10017s,@TEMP_STORE@,$TEMP_STORE,;t t
drh71eb93e2001-09-28 01:34:43 +000010018s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
10019s,@OS_UNIX@,$OS_UNIX,;t t
10020s,@OS_WIN@,$OS_WIN,;t t
10021s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
10022s,@TARGET_LIBS@,$TARGET_LIBS,;t t
10023s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t
10024s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t
10025s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
10026s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
10027s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010028s,@LIBOBJS@,$LIBOBJS,;t t
10029s,@LTLIBOBJS@,$LTLIBOBJS,;t t
drh71eb93e2001-09-28 01:34:43 +000010030CEOF
10031
a.rottmann84e63352003-03-24 09:42:16 +000010032_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010033
a.rottmann84e63352003-03-24 09:42:16 +000010034 cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010035 # Split the substitutions into bite-sized pieces for seds with
10036 # small command number limits, like on Digital OSF/1 and HP-UX.
10037 ac_max_sed_lines=48
10038 ac_sed_frag=1 # Number of current file.
10039 ac_beg=1 # First line for current file.
10040 ac_end=$ac_max_sed_lines # Line after last line for current file.
10041 ac_more_lines=:
10042 ac_sed_cmds=
10043 while $ac_more_lines; do
10044 if test $ac_beg -gt 1; then
10045 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10046 else
10047 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10048 fi
10049 if test ! -s $tmp/subs.frag; then
10050 ac_more_lines=false
10051 else
10052 # The purpose of the label and of the branching condition is to
10053 # speed up the sed processing (if there are no `@' at all, there
10054 # is no need to browse any of the substitutions).
10055 # These are the two extra sed commands mentioned above.
10056 (echo ':t
10057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10058 if test -z "$ac_sed_cmds"; then
10059 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10060 else
10061 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10062 fi
10063 ac_sed_frag=`expr $ac_sed_frag + 1`
10064 ac_beg=$ac_end
10065 ac_end=`expr $ac_end + $ac_max_sed_lines`
10066 fi
10067 done
10068 if test -z "$ac_sed_cmds"; then
10069 ac_sed_cmds=cat
10070 fi
10071fi # test -n "$CONFIG_FILES"
10072
a.rottmann84e63352003-03-24 09:42:16 +000010073_ACEOF
10074cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010075for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10076 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10077 case $ac_file in
10078 - | *:- | *:-:* ) # input from stdin
10079 cat >$tmp/stdin
10080 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10082 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10084 * ) ac_file_in=$ac_file.in ;;
10085 esac
10086
10087 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
a.rottmann84e63352003-03-24 09:42:16 +000010088 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10089$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
drh71eb93e2001-09-28 01:34:43 +000010090 X"$ac_file" : 'X\(//\)[^/]' \| \
10091 X"$ac_file" : 'X\(//\)$' \| \
10092 X"$ac_file" : 'X\(/\)' \| \
10093 . : '\(.\)' 2>/dev/null ||
10094echo X"$ac_file" |
10095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10097 /^X\(\/\/\)$/{ s//\1/; q; }
10098 /^X\(\/\).*/{ s//\1/; q; }
10099 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000010100 { if $as_mkdir_p; then
10101 mkdir -p "$ac_dir"
drh75897232000-05-29 14:26:00 +000010102 else
a.rottmann84e63352003-03-24 09:42:16 +000010103 as_dir="$ac_dir"
10104 as_dirs=
10105 while test ! -d "$as_dir"; do
10106 as_dirs="$as_dir $as_dirs"
10107 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10108$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10109 X"$as_dir" : 'X\(//\)[^/]' \| \
10110 X"$as_dir" : 'X\(//\)$' \| \
10111 X"$as_dir" : 'X\(/\)' \| \
10112 . : '\(.\)' 2>/dev/null ||
10113echo X"$as_dir" |
10114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10116 /^X\(\/\/\)$/{ s//\1/; q; }
10117 /^X\(\/\).*/{ s//\1/; q; }
10118 s/.*/./; q'`
10119 done
10120 test ! -n "$as_dirs" || mkdir $as_dirs
10121 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10122echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10123 { (exit 1); exit 1; }; }; }
drh75897232000-05-29 14:26:00 +000010124
a.rottmann84e63352003-03-24 09:42:16 +000010125 ac_builddir=.
10126
10127if test "$ac_dir" != .; then
10128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10129 # A "../" for each directory in $ac_dir_suffix.
10130 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10131else
10132 ac_dir_suffix= ac_top_builddir=
10133fi
10134
10135case $srcdir in
10136 .) # No --srcdir option. We are building in place.
10137 ac_srcdir=.
10138 if test -z "$ac_top_builddir"; then
10139 ac_top_srcdir=.
10140 else
10141 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10142 fi ;;
10143 [\\/]* | ?:[\\/]* ) # Absolute path.
10144 ac_srcdir=$srcdir$ac_dir_suffix;
10145 ac_top_srcdir=$srcdir ;;
drh75897232000-05-29 14:26:00 +000010146 *) # Relative path.
a.rottmann84e63352003-03-24 09:42:16 +000010147 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10148 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10149esac
10150# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10151# absolute.
10152ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10153ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10154ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10155ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10156
drh75897232000-05-29 14:26:00 +000010157
drh71eb93e2001-09-28 01:34:43 +000010158 case $INSTALL in
10159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
a.rottmann84e63352003-03-24 09:42:16 +000010160 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000010161 esac
10162
drh71eb93e2001-09-28 01:34:43 +000010163 if test x"$ac_file" != x-; then
a.rottmann84e63352003-03-24 09:42:16 +000010164 { echo "$as_me:$LINENO: creating $ac_file" >&5
drh71eb93e2001-09-28 01:34:43 +000010165echo "$as_me: creating $ac_file" >&6;}
10166 rm -f "$ac_file"
10167 fi
10168 # Let's still pretend it is `configure' which instantiates (i.e., don't
10169 # use $as_me), people would be surprised to read:
a.rottmann84e63352003-03-24 09:42:16 +000010170 # /* config.h. Generated by config.status. */
10171 if test x"$ac_file" = x-; then
10172 configure_input=
10173 else
10174 configure_input="$ac_file. "
10175 fi
10176 configure_input=$configure_input"Generated from `echo $ac_file_in |
10177 sed 's,.*/,,'` by configure."
drh75897232000-05-29 14:26:00 +000010178
drh71eb93e2001-09-28 01:34:43 +000010179 # First look for the input files in the build tree, otherwise in the
10180 # src tree.
10181 ac_file_inputs=`IFS=:
10182 for f in $ac_file_in; do
10183 case $f in
10184 -) echo $tmp/stdin ;;
10185 [\\/$]*)
10186 # Absolute (can't be DOS-style, as IFS=:)
a.rottmann84e63352003-03-24 09:42:16 +000010187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010188echo "$as_me: error: cannot find input file: $f" >&2;}
10189 { (exit 1); exit 1; }; }
10190 echo $f;;
10191 *) # Relative
10192 if test -f "$f"; then
10193 # Build tree
10194 echo $f
10195 elif test -f "$srcdir/$f"; then
10196 # Source tree
10197 echo $srcdir/$f
10198 else
10199 # /dev/null tree
a.rottmann84e63352003-03-24 09:42:16 +000010200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
drh71eb93e2001-09-28 01:34:43 +000010201echo "$as_me: error: cannot find input file: $f" >&2;}
10202 { (exit 1); exit 1; }; }
10203 fi;;
10204 esac
10205 done` || { (exit 1); exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +000010206_ACEOF
10207cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010208 sed "$ac_vpsub
10209$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000010210_ACEOF
10211cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010212:t
10213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10214s,@configure_input@,$configure_input,;t t
10215s,@srcdir@,$ac_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010216s,@abs_srcdir@,$ac_abs_srcdir,;t t
drh71eb93e2001-09-28 01:34:43 +000010217s,@top_srcdir@,$ac_top_srcdir,;t t
a.rottmann84e63352003-03-24 09:42:16 +000010218s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10219s,@builddir@,$ac_builddir,;t t
10220s,@abs_builddir@,$ac_abs_builddir,;t t
10221s,@top_builddir@,$ac_top_builddir,;t t
10222s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
drh71eb93e2001-09-28 01:34:43 +000010223s,@INSTALL@,$ac_INSTALL,;t t
10224" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10225 rm -f $tmp/stdin
10226 if test x"$ac_file" != x-; then
10227 mv $tmp/out $ac_file
10228 else
10229 cat $tmp/out
10230 rm -f $tmp/out
10231 fi
drh75897232000-05-29 14:26:00 +000010232
drh71eb93e2001-09-28 01:34:43 +000010233done
a.rottmann84e63352003-03-24 09:42:16 +000010234_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010235
a.rottmann84e63352003-03-24 09:42:16 +000010236cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000010237
10238{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000010239_ACEOF
drh75897232000-05-29 14:26:00 +000010240chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000010241ac_clean_files=$ac_clean_files_save
10242
a.rottmann84e63352003-03-24 09:42:16 +000010243
drh71eb93e2001-09-28 01:34:43 +000010244# configure is writing to config.log, and then calls config.status.
10245# config.status does its own redirection, appending to config.log.
10246# Unfortunately, on DOS this fails, as config.log is still kept open
10247# by configure, so config.status won't be able to write to it; its
10248# output is simply discarded. So we exec the FD to /dev/null,
10249# effectively closing config.log, so it can be properly (re)opened and
10250# appended to by config.status. When coming back to configure, we
10251# need to make the FD available again.
10252if test "$no_create" != yes; then
10253 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000010254 ac_config_status_args=
10255 test "$silent" = yes &&
10256 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000010257 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000010258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000010259 exec 5>>config.log
10260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10261 # would make configure fail if this is the last instruction.
10262 $ac_cs_success || { (exit 1); exit 1; }
10263fi
drh75897232000-05-29 14:26:00 +000010264