blob: 29b94457a4008ab42fd10241f304e9915d74faf7 [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.
danielk197729bafea2008-06-26 10:41:19 +00003# Generated by GNU Autoconf 2.59 for sqlite 3.6.0.
drh75897232000-05-29 14:26:00 +00004#
drh866108f2008-05-13 00:57:21 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
drh866108f2008-05-13 00:57:21 +000012# Be Bourne compatible
a.rottmann84e63352003-03-24 09:42:16 +000013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
drh866108f2008-05-13 00:57:21 +000016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000017 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
drh866108f2008-05-13 00:57:21 +000019elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
a.rottmann84e63352003-03-24 09:42:16 +000021fi
drh866108f2008-05-13 00:57:21 +000022DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000023
mlcreech94984912008-03-04 19:03:08 +000024# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
a.rottmann84e63352003-03-24 09:42:16 +000030
mlcreech94984912008-03-04 19:03:08 +000031
mlcreech94984912008-03-04 19:03:08 +000032# Work around bugs in pre-3.0 UWIN ksh.
drh866108f2008-05-13 00:57:21 +000033$as_unset ENV MAIL MAILPATH
mlcreech94984912008-03-04 19:03:08 +000034PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
drh866108f2008-05-13 00:57:21 +000039for 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 -z "`(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
mlcreech94984912008-03-04 19:03:08 +000050
51# Required to use basename.
drh866108f2008-05-13 00:57:21 +000052if expr a : '\(a\)' >/dev/null 2>&1; then
mlcreech94984912008-03-04 19:03:08 +000053 as_expr=expr
54else
55 as_expr=false
56fi
57
drh866108f2008-05-13 00:57:21 +000058if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000059 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
drh866108f2008-05-13 00:57:21 +000066as_me=`$as_basename "$0" ||
mlcreech94984912008-03-04 19:03:08 +000067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000069 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'`
mlcreech94984912008-03-04 19:03:08 +000076
77
drh866108f2008-05-13 00:57:21 +000078# 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
mlcreech94984912008-03-04 19:03:08 +000097fi
98
mlcreech94984912008-03-04 19:03:08 +000099
drh866108f2008-05-13 00:57:21 +0000100 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
mlcreech94984912008-03-04 19:03:08 +0000116
drh866108f2008-05-13 00:57:21 +0000117 ;;
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 '')
a.rottmann84e63352003-03-24 09:42:16 +0000130 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=.
drh866108f2008-05-13 00:57:21 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000137 /*)
drh866108f2008-05-13 00:57:21 +0000138 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
mlcreech94984912008-03-04 19:03:08 +0000152done
drh866108f2008-05-13 00:57:21 +0000153;;
154 esac
a.rottmann84e63352003-03-24 09:42:16 +0000155
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
drh866108f2008-05-13 00:57:21 +0000158 # 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.
a.rottmann84e63352003-03-24 09:42:16 +0000162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh866108f2008-05-13 00:57:21 +0000163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000165 sed '
166 N
drh866108f2008-05-13 00:57:21 +0000167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +0000170 t loop
drh866108f2008-05-13 00:57:21 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +0000173 ' >$as_me.lineno &&
drh866108f2008-05-13 00:57:21 +0000174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +0000176 { (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
drh866108f2008-05-13 00:57:21 +0000180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +0000182 # Exit status is that of the last command.
183 exit
184}
185
186
drh866108f2008-05-13 00:57:21 +0000187case `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= ;;
a.rottmann84e63352003-03-24 09:42:16 +0000192esac
drh866108f2008-05-13 00:57:21 +0000193
194if expr a : '\(a\)' >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +0000195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
drh866108f2008-05-13 00:57:21 +0000201echo >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
a.rottmann84e63352003-03-24 09:42:16 +0000207 as_ln_s='cp -p'
drh866108f2008-05-13 00:57:21 +0000208 else
209 as_ln_s='ln -s'
mlcreech636a9952008-05-05 22:52:56 +0000210 fi
drh866108f2008-05-13 00:57:21 +0000211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
a.rottmann84e63352003-03-24 09:42:16 +0000213else
214 as_ln_s='cp -p'
215fi
drh866108f2008-05-13 00:57:21 +0000216rm -f conf$$ conf$$.exe conf$$.file
a.rottmann84e63352003-03-24 09:42:16 +0000217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
a.rottmann964dbb12004-02-26 19:47:42 +0000221 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000222 as_mkdir_p=false
223fi
224
drh866108f2008-05-13 00:57:21 +0000225as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +0000226
227# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000229
230# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000232
233
drh866108f2008-05-13 00:57:21 +0000234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
drh75897232000-05-29 14:26:00 +0000243
a.rottmann84e63352003-03-24 09:42:16 +0000244
drh71eb93e2001-09-28 01:34:43 +0000245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
mlcreech636a9952008-05-05 22:52:56 +0000248case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000252 ;;
253esac
254
mlcreech636a9952008-05-05 22:52:56 +0000255ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
mlcreech636a9952008-05-05 22:52:56 +0000262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
mlcreech636a9952008-05-05 22:52:56 +0000273 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000274$*
mlcreech636a9952008-05-05 22:52:56 +0000275_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000282
mlcreech636a9952008-05-05 22:52:56 +0000283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
drh71eb93e2001-09-28 01:34:43 +0000295
mlcreech636a9952008-05-05 22:52:56 +0000296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000306
mlcreech636a9952008-05-05 22:52:56 +0000307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000318 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000319
mlcreech636a9952008-05-05 22:52:56 +0000320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000335 else
mlcreech636a9952008-05-05 22:52:56 +0000336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
drh71eb93e2001-09-28 01:34:43 +0000360
mlcreech636a9952008-05-05 22:52:56 +0000361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000376 fi
mlcreech636a9952008-05-05 22:52:56 +0000377 fi
drh71eb93e2001-09-28 01:34:43 +0000378 fi
379 fi
380 fi
381fi
drh71eb93e2001-09-28 01:34:43 +0000382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000388fi
389
drh71eb93e2001-09-28 01:34:43 +0000390
drh71eb93e2001-09-28 01:34:43 +0000391
a.rottmann9bc8b932004-02-29 15:18:31 +0000392
drh71eb93e2001-09-28 01:34:43 +0000393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
drh866108f2008-05-13 00:57:21 +0000398exec 6>&1
399
drh71eb93e2001-09-28 01:34:43 +0000400#
401# Initializations.
402#
drh75897232000-05-29 14:26:00 +0000403ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000404ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000405cross_compiling=no
406subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000407MFLAGS=
408MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000409SHELL=${CONFIG_SHELL-/bin/sh}
410
drh866108f2008-05-13 00:57:21 +0000411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
a.rottmann84e63352003-03-24 09:42:16 +0000416# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000417PACKAGE_NAME='sqlite'
418PACKAGE_TARNAME='sqlite'
danielk197729bafea2008-06-26 10:41:19 +0000419PACKAGE_VERSION='3.6.0'
420PACKAGE_STRING='sqlite 3.6.0'
mlcreechb87057f2008-03-06 07:19:20 +0000421PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000422
a.rottmann84e63352003-03-24 09:42:16 +0000423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
drh866108f2008-05-13 00:57:21 +0000426#if HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000427# include <sys/stat.h>
428#endif
drh866108f2008-05-13 00:57:21 +0000429#if STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000430# include <stdlib.h>
431# include <stddef.h>
432#else
a.rottmann84e63352003-03-24 09:42:16 +0000433#endif
drh866108f2008-05-13 00:57:21 +0000434#if HAVE_STRING_H
435# if !STDC_HEADERS && HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000436# include <memory.h>
437# endif
438# include <string.h>
439#endif
drh866108f2008-05-13 00:57:21 +0000440#if HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000441# include <strings.h>
442#endif
drh866108f2008-05-13 00:57:21 +0000443#if HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000444# include <inttypes.h>
drh866108f2008-05-13 00:57:21 +0000445#else
446# if HAVE_STDINT_H
447# include <stdint.h>
448# endif
a.rottmann84e63352003-03-24 09:42:16 +0000449#endif
drh866108f2008-05-13 00:57:21 +0000450#if HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000451# include <unistd.h>
452#endif"
453
shanefbedede2008-07-22 05:05:01 +0000454ac_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 LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK TCLSH_CMD program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC SQLITE_THREADSAFE XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT SQLITE_OS_UNIX SQLITE_OS_WIN SQLITE_OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG USE_AMALGAMATION OPT_FEATURE_FLAGS USE_GCOV BUILD_CFLAGS LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000455ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000456
457# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000458ac_init_help=
459ac_init_version=false
drh75897232000-05-29 14:26:00 +0000460# The variables have the same names as the options, with
461# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000462cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000463exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000464no_create=
drh75897232000-05-29 14:26:00 +0000465no_recursion=
466prefix=NONE
467program_prefix=NONE
468program_suffix=NONE
469program_transform_name=s,x,x,
470silent=
471site=
472srcdir=
drh75897232000-05-29 14:26:00 +0000473verbose=
474x_includes=NONE
475x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000476
477# Installation directory options.
478# These are left unexpanded so users can "make install exec_prefix=/foo"
479# and all the variables that are supposed to be based on exec_prefix
480# by default will actually change.
481# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000482bindir='${exec_prefix}/bin'
483sbindir='${exec_prefix}/sbin'
484libexecdir='${exec_prefix}/libexec'
drh866108f2008-05-13 00:57:21 +0000485datadir='${prefix}/share'
drh75897232000-05-29 14:26:00 +0000486sysconfdir='${prefix}/etc'
487sharedstatedir='${prefix}/com'
488localstatedir='${prefix}/var'
drh866108f2008-05-13 00:57:21 +0000489libdir='${exec_prefix}/lib'
drh75897232000-05-29 14:26:00 +0000490includedir='${prefix}/include'
491oldincludedir='/usr/include'
drh866108f2008-05-13 00:57:21 +0000492infodir='${prefix}/info'
493mandir='${prefix}/man'
drh75897232000-05-29 14:26:00 +0000494
drh75897232000-05-29 14:26:00 +0000495ac_prev=
496for ac_option
497do
drh75897232000-05-29 14:26:00 +0000498 # If the previous option needs an argument, assign it.
499 if test -n "$ac_prev"; then
drh866108f2008-05-13 00:57:21 +0000500 eval "$ac_prev=\$ac_option"
drh75897232000-05-29 14:26:00 +0000501 ac_prev=
502 continue
503 fi
504
drh866108f2008-05-13 00:57:21 +0000505 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000506
507 # Accept the important Cygnus configure options, so we can diagnose typos.
508
drh866108f2008-05-13 00:57:21 +0000509 case $ac_option in
drh75897232000-05-29 14:26:00 +0000510
511 -bindir | --bindir | --bindi | --bind | --bin | --bi)
512 ac_prev=bindir ;;
513 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000514 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000515
516 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000517 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000518 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000519 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000520
521 -cache-file | --cache-file | --cache-fil | --cache-fi \
522 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
523 ac_prev=cache_file ;;
524 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
525 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000526 cache_file=$ac_optarg ;;
527
528 --config-cache | -C)
529 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000530
drh866108f2008-05-13 00:57:21 +0000531 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
drh75897232000-05-29 14:26:00 +0000532 ac_prev=datadir ;;
drh866108f2008-05-13 00:57:21 +0000533 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
534 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000535 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000536
537 -disable-* | --disable-*)
drh866108f2008-05-13 00:57:21 +0000538 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000539 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000540 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
541 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
drh71eb93e2001-09-28 01:34:43 +0000542 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000543 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
544 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000545
546 -enable-* | --enable-*)
drh866108f2008-05-13 00:57:21 +0000547 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000548 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
drh71eb93e2001-09-28 01:34:43 +0000551 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 case $ac_option in
554 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
555 *) ac_optarg=yes ;;
mlcreech636a9952008-05-05 22:52:56 +0000556 esac
drh866108f2008-05-13 00:57:21 +0000557 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000558
559 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
560 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
561 | --exec | --exe | --ex)
562 ac_prev=exec_prefix ;;
563 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
564 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
565 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000566 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000567
568 -gas | --gas | --ga | --g)
569 # Obsolete; use --with-gas.
570 with_gas=yes ;;
571
drh71eb93e2001-09-28 01:34:43 +0000572 -help | --help | --hel | --he | -h)
573 ac_init_help=long ;;
574 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
575 ac_init_help=recursive ;;
576 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
577 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000578
579 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000580 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000581 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000582 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000583
584 -includedir | --includedir | --includedi | --included | --include \
585 | --includ | --inclu | --incl | --inc)
586 ac_prev=includedir ;;
587 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
588 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000589 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000590
591 -infodir | --infodir | --infodi | --infod | --info | --inf)
592 ac_prev=infodir ;;
593 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000594 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000595
596 -libdir | --libdir | --libdi | --libd)
597 ac_prev=libdir ;;
598 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000599 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000600
601 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
602 | --libexe | --libex | --libe)
603 ac_prev=libexecdir ;;
604 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
605 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000606 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000607
608 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh866108f2008-05-13 00:57:21 +0000609 | --localstate | --localstat | --localsta | --localst \
610 | --locals | --local | --loca | --loc | --lo)
drh75897232000-05-29 14:26:00 +0000611 ac_prev=localstatedir ;;
612 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh866108f2008-05-13 00:57:21 +0000613 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
614 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000615 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000616
617 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
618 ac_prev=mandir ;;
619 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000620 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000621
622 -nfp | --nfp | --nf)
623 # Obsolete; use --without-fp.
624 with_fp=no ;;
625
626 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000627 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000628 no_create=yes ;;
629
630 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
631 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
632 no_recursion=yes ;;
633
634 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
635 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
636 | --oldin | --oldi | --old | --ol | --o)
637 ac_prev=oldincludedir ;;
638 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
639 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
640 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000641 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000642
643 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
644 ac_prev=prefix ;;
645 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000646 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000647
648 -program-prefix | --program-prefix | --program-prefi | --program-pref \
649 | --program-pre | --program-pr | --program-p)
650 ac_prev=program_prefix ;;
651 -program-prefix=* | --program-prefix=* | --program-prefi=* \
652 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000653 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000654
655 -program-suffix | --program-suffix | --program-suffi | --program-suff \
656 | --program-suf | --program-su | --program-s)
657 ac_prev=program_suffix ;;
658 -program-suffix=* | --program-suffix=* | --program-suffi=* \
659 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000660 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000661
662 -program-transform-name | --program-transform-name \
663 | --program-transform-nam | --program-transform-na \
664 | --program-transform-n | --program-transform- \
665 | --program-transform | --program-transfor \
666 | --program-transfo | --program-transf \
667 | --program-trans | --program-tran \
668 | --progr-tra | --program-tr | --program-t)
669 ac_prev=program_transform_name ;;
670 -program-transform-name=* | --program-transform-name=* \
671 | --program-transform-nam=* | --program-transform-na=* \
672 | --program-transform-n=* | --program-transform-=* \
673 | --program-transform=* | --program-transfor=* \
674 | --program-transfo=* | --program-transf=* \
675 | --program-trans=* | --program-tran=* \
676 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000677 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000678
679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
680 | -silent | --silent | --silen | --sile | --sil)
681 silent=yes ;;
682
683 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
684 ac_prev=sbindir ;;
685 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
686 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000687 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000688
689 -sharedstatedir | --sharedstatedir | --sharedstatedi \
690 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
691 | --sharedst | --shareds | --shared | --share | --shar \
692 | --sha | --sh)
693 ac_prev=sharedstatedir ;;
694 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
695 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
696 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
697 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000698 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000699
700 -site | --site | --sit)
701 ac_prev=site ;;
702 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000703 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000704
705 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
706 ac_prev=srcdir ;;
707 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000708 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000709
710 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
711 | --syscon | --sysco | --sysc | --sys | --sy)
712 ac_prev=sysconfdir ;;
713 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
714 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000715 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000716
717 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000718 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000719 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000720 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000721
722 -v | -verbose | --verbose | --verbos | --verbo | --verb)
723 verbose=yes ;;
724
drh71eb93e2001-09-28 01:34:43 +0000725 -version | --version | --versio | --versi | --vers | -V)
726 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000727
728 -with-* | --with-*)
drh866108f2008-05-13 00:57:21 +0000729 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000730 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000731 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
732 { echo "$as_me: error: invalid package name: $ac_package" >&2
drh71eb93e2001-09-28 01:34:43 +0000733 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000734 ac_package=`echo $ac_package| sed 's/-/_/g'`
735 case $ac_option in
736 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
737 *) ac_optarg=yes ;;
mlcreech636a9952008-05-05 22:52:56 +0000738 esac
drh866108f2008-05-13 00:57:21 +0000739 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000740
741 -without-* | --without-*)
drh866108f2008-05-13 00:57:21 +0000742 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000743 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
drh71eb93e2001-09-28 01:34:43 +0000746 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000747 ac_package=`echo $ac_package | sed 's/-/_/g'`
748 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000749
750 --x)
751 # Obsolete; use --with-x.
752 with_x=yes ;;
753
754 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
755 | --x-incl | --x-inc | --x-in | --x-i)
756 ac_prev=x_includes ;;
757 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
758 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000759 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000760
761 -x-libraries | --x-libraries | --x-librarie | --x-librari \
762 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
763 ac_prev=x_libraries ;;
764 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
765 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000766 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000767
drh866108f2008-05-13 00:57:21 +0000768 -*) { echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +0000769Try \`$0 --help' for more information." >&2
770 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000771 ;;
772
drh71eb93e2001-09-28 01:34:43 +0000773 *=*)
774 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
775 # Reject names that are not valid shell variable names.
776 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh866108f2008-05-13 00:57:21 +0000777 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +0000778 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000779 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
780 eval "$ac_envvar='$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +0000781 export $ac_envvar ;;
782
drh75897232000-05-29 14:26:00 +0000783 *)
drh71eb93e2001-09-28 01:34:43 +0000784 # FIXME: should be removed in autoconf 3.0.
drh866108f2008-05-13 00:57:21 +0000785 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +0000786 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh866108f2008-05-13 00:57:21 +0000787 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +0000788 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000789 ;;
790
791 esac
792done
793
794if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000795 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh866108f2008-05-13 00:57:21 +0000796 { echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +0000797 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000798fi
799
drh866108f2008-05-13 00:57:21 +0000800# Be sure to have absolute paths.
801for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000802do
drh866108f2008-05-13 00:57:21 +0000803 eval ac_val=$`echo $ac_var`
mlcreech636a9952008-05-05 22:52:56 +0000804 case $ac_val in
drh866108f2008-05-13 00:57:21 +0000805 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
806 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
807 { (exit 1); exit 1; }; };;
mlcreech636a9952008-05-05 22:52:56 +0000808 esac
drh866108f2008-05-13 00:57:21 +0000809done
810
811# Be sure to have absolute paths.
812for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
813 localstatedir libdir includedir oldincludedir infodir mandir
814do
815 eval ac_val=$`echo $ac_var`
drh71eb93e2001-09-28 01:34:43 +0000816 case $ac_val in
drh866108f2008-05-13 00:57:21 +0000817 [\\/$]* | ?:[\\/]* ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000820 esac
drh71eb93e2001-09-28 01:34:43 +0000821done
drh75897232000-05-29 14:26:00 +0000822
drh71eb93e2001-09-28 01:34:43 +0000823# There might be people who depend on the old broken behavior: `$host'
824# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000825# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000826build=$build_alias
827host=$host_alias
828target=$target_alias
drh75897232000-05-29 14:26:00 +0000829
a.rottmann84e63352003-03-24 09:42:16 +0000830# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000831if test "x$host_alias" != x; then
832 if test "x$build_alias" = x; then
833 cross_compiling=maybe
drh866108f2008-05-13 00:57:21 +0000834 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +0000835 If a cross compiler is detected then cross compile mode will be used." >&2
836 elif test "x$build_alias" != "x$host_alias"; then
837 cross_compiling=yes
838 fi
839fi
840
841ac_tool_prefix=
842test -n "$host_alias" && ac_tool_prefix=$host_alias-
843
844test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000845
a.rottmann84e63352003-03-24 09:42:16 +0000846
drh75897232000-05-29 14:26:00 +0000847# Find the source files, if location was not specified.
848if test -z "$srcdir"; then
849 ac_srcdir_defaulted=yes
drh866108f2008-05-13 00:57:21 +0000850 # Try the directory containing this script, then its parent.
851 ac_confdir=`(dirname "$0") 2>/dev/null ||
852$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
853 X"$0" : 'X\(//\)[^/]' \| \
854 X"$0" : 'X\(//\)$' \| \
855 X"$0" : 'X\(/\)' \| \
856 . : '\(.\)' 2>/dev/null ||
857echo X"$0" |
858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
860 /^X\(\/\/\)$/{ s//\1/; q; }
861 /^X\(\/\).*/{ s//\1/; q; }
862 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000863 srcdir=$ac_confdir
drh866108f2008-05-13 00:57:21 +0000864 if test ! -r $srcdir/$ac_unique_file; then
drh75897232000-05-29 14:26:00 +0000865 srcdir=..
866 fi
867else
868 ac_srcdir_defaulted=no
869fi
drh866108f2008-05-13 00:57:21 +0000870if test ! -r $srcdir/$ac_unique_file; then
871 if test "$ac_srcdir_defaulted" = yes; then
872 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000873 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000874 else
875 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh613a0fe2007-11-23 17:31:17 +0000876 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000877 fi
mlcreech94984912008-03-04 19:03:08 +0000878fi
drh866108f2008-05-13 00:57:21 +0000879(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
880 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
881 { (exit 1); exit 1; }; }
882srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883ac_env_build_alias_set=${build_alias+set}
884ac_env_build_alias_value=$build_alias
885ac_cv_env_build_alias_set=${build_alias+set}
886ac_cv_env_build_alias_value=$build_alias
887ac_env_host_alias_set=${host_alias+set}
888ac_env_host_alias_value=$host_alias
889ac_cv_env_host_alias_set=${host_alias+set}
890ac_cv_env_host_alias_value=$host_alias
891ac_env_target_alias_set=${target_alias+set}
892ac_env_target_alias_value=$target_alias
893ac_cv_env_target_alias_set=${target_alias+set}
894ac_cv_env_target_alias_value=$target_alias
895ac_env_CC_set=${CC+set}
896ac_env_CC_value=$CC
897ac_cv_env_CC_set=${CC+set}
898ac_cv_env_CC_value=$CC
899ac_env_CFLAGS_set=${CFLAGS+set}
900ac_env_CFLAGS_value=$CFLAGS
901ac_cv_env_CFLAGS_set=${CFLAGS+set}
902ac_cv_env_CFLAGS_value=$CFLAGS
903ac_env_LDFLAGS_set=${LDFLAGS+set}
904ac_env_LDFLAGS_value=$LDFLAGS
905ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906ac_cv_env_LDFLAGS_value=$LDFLAGS
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911ac_env_CPP_set=${CPP+set}
912ac_env_CPP_value=$CPP
913ac_cv_env_CPP_set=${CPP+set}
914ac_cv_env_CPP_value=$CPP
drh75897232000-05-29 14:26:00 +0000915
drh71eb93e2001-09-28 01:34:43 +0000916#
917# Report the --help message.
918#
919if test "$ac_init_help" = "long"; then
920 # Omit some internal or obsolete options to make the list less imposing.
921 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000922 cat <<_ACEOF
danielk197729bafea2008-06-26 10:41:19 +0000923\`configure' configures sqlite 3.6.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +0000924
925Usage: $0 [OPTION]... [VAR=VALUE]...
926
927To assign environment variables (e.g., CC, CFLAGS...), specify them as
928VAR=VALUE. See below for descriptions of some of the useful variables.
929
930Defaults for the options are specified in brackets.
931
932Configuration:
933 -h, --help display this help and exit
934 --help=short display options specific to this package
935 --help=recursive display the short help of all the included packages
936 -V, --version display version information and exit
937 -q, --quiet, --silent do not print \`checking...' messages
938 --cache-file=FILE cache test results in FILE [disabled]
939 -C, --config-cache alias for \`--cache-file=config.cache'
940 -n, --no-create do not create output files
941 --srcdir=DIR find the sources in DIR [configure dir or \`..']
942
drh866108f2008-05-13 00:57:21 +0000943_ACEOF
944
945 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000946Installation directories:
947 --prefix=PREFIX install architecture-independent files in PREFIX
drh866108f2008-05-13 00:57:21 +0000948 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000949 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh866108f2008-05-13 00:57:21 +0000950 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +0000951
952By default, \`make install' will install all the files in
953\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
954an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955for instance \`--prefix=\$HOME'.
956
957For better control, use the options below.
958
959Fine tuning of the installation directories:
drh866108f2008-05-13 00:57:21 +0000960 --bindir=DIR user executables [EPREFIX/bin]
961 --sbindir=DIR system admin executables [EPREFIX/sbin]
962 --libexecdir=DIR program executables [EPREFIX/libexec]
963 --datadir=DIR read-only architecture-independent data [PREFIX/share]
964 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
965 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
966 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
967 --libdir=DIR object code libraries [EPREFIX/lib]
968 --includedir=DIR C header files [PREFIX/include]
969 --oldincludedir=DIR C header files for non-gcc [/usr/include]
970 --infodir=DIR info documentation [PREFIX/info]
971 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +0000972_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000973
a.rottmann84e63352003-03-24 09:42:16 +0000974 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000975
976System types:
977 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +0000978 --host=HOST cross-compile to build programs to run on HOST [BUILD]
979_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000980fi
981
982if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +0000983 case $ac_init_help in
danielk197729bafea2008-06-26 10:41:19 +0000984 short | recursive ) echo "Configuration of sqlite 3.6.0:";;
mlcreechb87057f2008-03-06 07:19:20 +0000985 esac
a.rottmann84e63352003-03-24 09:42:16 +0000986 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000987
988Optional Features:
989 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
990 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh866108f2008-05-13 00:57:21 +0000991 --enable-shared[=PKGS]
992 build shared libraries [default=yes]
993 --enable-static[=PKGS]
994 build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +0000995 --enable-fast-install[=PKGS]
996 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +0000997 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +0000998 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +0000999 --enable-threadsafe Support threadsafe operation
1000 --enable-cross-thread-connections
1001 Allow connection sharing across threads
1002 --enable-threads-override-locks
1003 Threads can override each others locks
1004 --enable-releasemode Support libtool link to release mode
1005 --enable-tempstore Use an in-ram database for temporary tables
1006 (never,no,yes,always)
1007 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001008 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001009 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001010 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001011 separately
mlcreecha4edab02008-03-06 04:14:17 +00001012 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001013 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001014
1015Optional Packages:
1016 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1017 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001018 --with-pic try to use only PIC/non-PIC objects [default=use
1019 both]
mlcreech636a9952008-05-05 22:52:56 +00001020 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001021 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001022 --with-tcl=DIR directory containing tcl configuration
1023 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001024 --with-readline-lib specify readline library
1025 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001026
1027Some influential environment variables:
1028 CC C compiler command
1029 CFLAGS C compiler flags
1030 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1031 nonstandard directory <lib dir>
drh866108f2008-05-13 00:57:21 +00001032 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033 headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001034 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
a.rottmann84e63352003-03-24 09:42:16 +00001039_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001040fi
1041
1042if test "$ac_init_help" = "recursive"; then
1043 # If there are subdirs, report their specific --help.
drh866108f2008-05-13 00:57:21 +00001044 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001045 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh866108f2008-05-13 00:57:21 +00001046 test -d $ac_dir || continue
a.rottmann84e63352003-03-24 09:42:16 +00001047 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001048
drh866108f2008-05-13 00:57:21 +00001049if test "$ac_dir" != .; then
1050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051 # A "../" for each directory in $ac_dir_suffix.
1052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054 ac_dir_suffix= ac_top_builddir=
1055fi
drh71eb93e2001-09-28 01:34:43 +00001056
a.rottmann84e63352003-03-24 09:42:16 +00001057case $srcdir in
drh866108f2008-05-13 00:57:21 +00001058 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001059 ac_srcdir=.
drh866108f2008-05-13 00:57:21 +00001060 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=.
drh71eb93e2001-09-28 01:34:43 +00001062 else
drh866108f2008-05-13 00:57:21 +00001063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064 fi ;;
1065 [\\/]* | ?:[\\/]* ) # Absolute path.
1066 ac_srcdir=$srcdir$ac_dir_suffix;
1067 ac_top_srcdir=$srcdir ;;
1068 *) # Relative path.
1069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071esac
1072
1073# Do not use `cd foo && pwd` to compute absolute paths, because
1074# the directories may not exist.
1075case `pwd` in
1076.) ac_abs_builddir="$ac_dir";;
1077*)
1078 case "$ac_dir" in
1079 .) ac_abs_builddir=`pwd`;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082 esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_builddir=${ac_top_builddir}.;;
1086*)
1087 case ${ac_top_builddir}. in
1088 .) ac_abs_top_builddir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091 esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_srcdir=$ac_srcdir;;
1095*)
1096 case $ac_srcdir in
1097 .) ac_abs_srcdir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_srcdir=$ac_top_srcdir;;
1104*)
1105 case $ac_top_srcdir in
1106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109 esac;;
1110esac
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001128 done
1129fi
1130
drh866108f2008-05-13 00:57:21 +00001131test -n "$ac_init_help" && exit 0
drh71eb93e2001-09-28 01:34:43 +00001132if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001133 cat <<\_ACEOF
danielk197729bafea2008-06-26 10:41:19 +00001134sqlite configure 3.6.0
drh866108f2008-05-13 00:57:21 +00001135generated by GNU Autoconf 2.59
drh71eb93e2001-09-28 01:34:43 +00001136
drh866108f2008-05-13 00:57:21 +00001137Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001138This configure script is free software; the Free Software Foundation
1139gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001140_ACEOF
drh866108f2008-05-13 00:57:21 +00001141 exit 0
drh71eb93e2001-09-28 01:34:43 +00001142fi
drh866108f2008-05-13 00:57:21 +00001143exec 5>config.log
1144cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001145This file contains any messages produced by compilers while
1146running configure, to aid debugging if configure makes a mistake.
1147
danielk197729bafea2008-06-26 10:41:19 +00001148It was created by sqlite $as_me 3.6.0, which was
drh866108f2008-05-13 00:57:21 +00001149generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001150
1151 $ $0 $@
1152
a.rottmann84e63352003-03-24 09:42:16 +00001153_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001154{
1155cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001156## --------- ##
1157## Platform. ##
1158## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001159
1160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1161uname -m = `(uname -m) 2>/dev/null || echo unknown`
1162uname -r = `(uname -r) 2>/dev/null || echo unknown`
1163uname -s = `(uname -s) 2>/dev/null || echo unknown`
1164uname -v = `(uname -v) 2>/dev/null || echo unknown`
1165
1166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1167/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1168
1169/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1170/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh866108f2008-05-13 00:57:21 +00001172hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001173/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1174/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1175/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1176
drh71eb93e2001-09-28 01:34:43 +00001177_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001178
1179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1180for as_dir in $PATH
1181do
1182 IFS=$as_save_IFS
1183 test -z "$as_dir" && as_dir=.
drh866108f2008-05-13 00:57:21 +00001184 echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001185done
1186
drh71eb93e2001-09-28 01:34:43 +00001187} >&5
1188
a.rottmann84e63352003-03-24 09:42:16 +00001189cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001190
a.rottmann84e63352003-03-24 09:42:16 +00001191
1192## ----------- ##
1193## Core tests. ##
1194## ----------- ##
1195
1196_ACEOF
1197
drh71eb93e2001-09-28 01:34:43 +00001198
1199# Keep a trace of the command line.
1200# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001201# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001202# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001203# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001204ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001205ac_configure_args0=
1206ac_configure_args1=
drh866108f2008-05-13 00:57:21 +00001207ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001208ac_must_keep_next=false
1209for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001210do
a.rottmann84e63352003-03-24 09:42:16 +00001211 for ac_arg
1212 do
1213 case $ac_arg in
1214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 continue ;;
drh866108f2008-05-13 00:57:21 +00001218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001220 esac
1221 case $ac_pass in
1222 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1223 2)
1224 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1225 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001226 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001227 else
a.rottmann964dbb12004-02-26 19:47:42 +00001228 case $ac_arg in
1229 *=* | --config-cache | -C | -disable-* | --disable-* \
1230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1232 | -with-* | --with-* | -without-* | --without-* | --x)
1233 case "$ac_configure_args0 " in
1234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1235 esac
1236 ;;
1237 -* ) ac_must_keep_next=true ;;
1238 esac
a.rottmann84e63352003-03-24 09:42:16 +00001239 fi
drh866108f2008-05-13 00:57:21 +00001240 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1241 # Get rid of the leading space.
1242 ac_sep=" "
a.rottmann84e63352003-03-24 09:42:16 +00001243 ;;
1244 esac
1245 done
drh71eb93e2001-09-28 01:34:43 +00001246done
a.rottmann84e63352003-03-24 09:42:16 +00001247$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1248$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001249
1250# When interrupted or exit'd, cleanup temporary files, and complete
1251# config.log. We remove comments because anyway the quotes in there
1252# would cause problems or look ugly.
drh866108f2008-05-13 00:57:21 +00001253# WARNING: Be sure not to use single quotes in there, as some shells,
1254# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001255trap 'exit_status=$?
1256 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001257 {
1258 echo
1259
1260 cat <<\_ASBOX
1261## ---------------- ##
1262## Cache variables. ##
1263## ---------------- ##
1264_ASBOX
1265 echo
1266 # The following way of writing the cache mishandles newlines in values,
drh866108f2008-05-13 00:57:21 +00001267{
drh71eb93e2001-09-28 01:34:43 +00001268 (set) 2>&1 |
drh866108f2008-05-13 00:57:21 +00001269 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1270 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001271 sed -n \
drh866108f2008-05-13 00:57:21 +00001272 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh613a0fe2007-11-23 17:31:17 +00001274 ;;
drh866108f2008-05-13 00:57:21 +00001275 *)
1276 sed -n \
1277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1278 ;;
1279 esac;
1280}
a.rottmann84e63352003-03-24 09:42:16 +00001281 echo
1282
1283 cat <<\_ASBOX
1284## ----------------- ##
1285## Output variables. ##
1286## ----------------- ##
1287_ASBOX
1288 echo
1289 for ac_var in $ac_subst_vars
1290 do
drh866108f2008-05-13 00:57:21 +00001291 eval ac_val=$`echo $ac_var`
1292 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001293 done | sort
1294 echo
1295
1296 if test -n "$ac_subst_files"; then
1297 cat <<\_ASBOX
drh866108f2008-05-13 00:57:21 +00001298## ------------- ##
1299## Output files. ##
1300## ------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_files
1304 do
drh866108f2008-05-13 00:57:21 +00001305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001307 done | sort
1308 echo
1309 fi
1310
1311 if test -s confdefs.h; then
1312 cat <<\_ASBOX
1313## ----------- ##
1314## confdefs.h. ##
1315## ----------- ##
1316_ASBOX
1317 echo
drh866108f2008-05-13 00:57:21 +00001318 sed "/^$/d" confdefs.h | sort
a.rottmann84e63352003-03-24 09:42:16 +00001319 echo
1320 fi
1321 test "$ac_signal" != 0 &&
drh866108f2008-05-13 00:57:21 +00001322 echo "$as_me: caught signal $ac_signal"
1323 echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001324 } >&5
drh866108f2008-05-13 00:57:21 +00001325 rm -f core *.core &&
1326 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001327 exit $exit_status
drh866108f2008-05-13 00:57:21 +00001328 ' 0
drh71eb93e2001-09-28 01:34:43 +00001329for ac_signal in 1 2 13 15; do
1330 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1331done
1332ac_signal=0
1333
1334# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh866108f2008-05-13 00:57:21 +00001335rm -rf conftest* confdefs.h
1336# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1337echo >confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001338
a.rottmann84e63352003-03-24 09:42:16 +00001339# Predefined preprocessor variables.
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_NAME "$PACKAGE_NAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_VERSION "$PACKAGE_VERSION"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_STRING "$PACKAGE_STRING"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1363_ACEOF
1364
1365
drh71eb93e2001-09-28 01:34:43 +00001366# Let the site file select an alternate cache file if it wants to.
drh866108f2008-05-13 00:57:21 +00001367# Prefer explicitly selected file to automatically selected ones.
1368if test -z "$CONFIG_SITE"; then
1369 if test "x$prefix" != xNONE; then
1370 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1371 else
1372 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1373 fi
drh75897232000-05-29 14:26:00 +00001374fi
drh866108f2008-05-13 00:57:21 +00001375for ac_site_file in $CONFIG_SITE; do
drh75897232000-05-29 14:26:00 +00001376 if test -r "$ac_site_file"; then
drh866108f2008-05-13 00:57:21 +00001377 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1378echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001379 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001380 . "$ac_site_file"
1381 fi
1382done
1383
1384if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001385 # Some versions of bash will fail to source /dev/null (special
1386 # files actually), so we avoid doing that.
1387 if test -f "$cache_file"; then
drh866108f2008-05-13 00:57:21 +00001388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1389echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001390 case $cache_file in
drh866108f2008-05-13 00:57:21 +00001391 [\\/]* | ?:[\\/]* ) . $cache_file;;
1392 *) . ./$cache_file;;
drh71eb93e2001-09-28 01:34:43 +00001393 esac
1394 fi
drh75897232000-05-29 14:26:00 +00001395else
drh866108f2008-05-13 00:57:21 +00001396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1397echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001398 >$cache_file
1399fi
1400
1401# Check that the precious variables saved in the cache have kept the same
1402# value.
1403ac_cache_corrupted=false
drh866108f2008-05-13 00:57:21 +00001404for ac_var in `(set) 2>&1 |
1405 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001406 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1407 eval ac_new_set=\$ac_env_${ac_var}_set
drh866108f2008-05-13 00:57:21 +00001408 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1409 eval ac_new_val="\$ac_env_${ac_var}_value"
drh71eb93e2001-09-28 01:34:43 +00001410 case $ac_old_set,$ac_new_set in
1411 set,)
drh866108f2008-05-13 00:57:21 +00001412 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1413echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001414 ac_cache_corrupted=: ;;
1415 ,set)
drh866108f2008-05-13 00:57:21 +00001416 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001418 ac_cache_corrupted=: ;;
1419 ,);;
1420 *)
1421 if test "x$ac_old_val" != "x$ac_new_val"; then
drh866108f2008-05-13 00:57:21 +00001422 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1423echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1424 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1425echo "$as_me: former value: $ac_old_val" >&2;}
1426 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1427echo "$as_me: current value: $ac_new_val" >&2;}
1428 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001429 fi;;
1430 esac
a.rottmann84e63352003-03-24 09:42:16 +00001431 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001432 if test "$ac_new_set" = set; then
1433 case $ac_new_val in
drh866108f2008-05-13 00:57:21 +00001434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1435 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001436 *) ac_arg=$ac_var=$ac_new_val ;;
1437 esac
1438 case " $ac_configure_args " in
1439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1440 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001441 esac
1442 fi
1443done
1444if $ac_cache_corrupted; then
drh866108f2008-05-13 00:57:21 +00001445 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1446echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1447 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1448echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001449 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001450fi
1451
1452ac_ext=c
drh75897232000-05-29 14:26:00 +00001453ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1456ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001457
a.rottmann84e63352003-03-24 09:42:16 +00001458
1459
drh866108f2008-05-13 00:57:21 +00001460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
drh75897232000-05-29 14:26:00 +00001485# The following RCS revision string applies to configure.in
shanea22de992008-08-04 01:46:55 +00001486# $Revision: 1.63 $
drh75897232000-05-29 14:26:00 +00001487
1488#########
drh71eb93e2001-09-28 01:34:43 +00001489# Programs needed
drh75897232000-05-29 14:26:00 +00001490#
mlcreech636a9952008-05-05 22:52:56 +00001491case `pwd` in
1492 *\ * | *\ *)
drh866108f2008-05-13 00:57:21 +00001493 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1494echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00001495esac
a.rottmann9bc8b932004-02-29 15:18:31 +00001496
mlcreech94984912008-03-04 19:03:08 +00001497
mlcreech636a9952008-05-05 22:52:56 +00001498
1499macro_version='2.2.4'
1500macro_revision='1.2976'
a.rottmann9bc8b932004-02-29 15:18:31 +00001501
mlcreech94984912008-03-04 19:03:08 +00001502
mlcreech94984912008-03-04 19:03:08 +00001503
a.rottmann9bc8b932004-02-29 15:18:31 +00001504
mlcreech636a9952008-05-05 22:52:56 +00001505
1506
1507
1508
1509
1510
1511
1512
1513
1514ltmain="$ac_aux_dir/ltmain.sh"
1515
drh71eb93e2001-09-28 01:34:43 +00001516ac_aux_dir=
drh866108f2008-05-13 00:57:21 +00001517for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1518 if test -f $ac_dir/install-sh; then
drh71eb93e2001-09-28 01:34:43 +00001519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/install-sh -c"
1521 break
drh866108f2008-05-13 00:57:21 +00001522 elif test -f $ac_dir/install.sh; then
drh71eb93e2001-09-28 01:34:43 +00001523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install.sh -c"
1525 break
drh866108f2008-05-13 00:57:21 +00001526 elif test -f $ac_dir/shtool; then
drh71eb93e2001-09-28 01:34:43 +00001527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/shtool install -c"
1529 break
1530 fi
1531done
1532if test -z "$ac_aux_dir"; then
drh866108f2008-05-13 00:57:21 +00001533 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1534echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001535 { (exit 1); exit 1; }; }
1536fi
drh866108f2008-05-13 00:57:21 +00001537ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
drh71eb93e2001-09-28 01:34:43 +00001540
1541# Make sure we can run config.sub.
drh866108f2008-05-13 00:57:21 +00001542$ac_config_sub sun4 >/dev/null 2>&1 ||
1543 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544echo "$as_me: error: cannot run $ac_config_sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001545 { (exit 1); exit 1; }; }
1546
drh866108f2008-05-13 00:57:21 +00001547echo "$as_me:$LINENO: checking build system type" >&5
1548echo $ECHO_N "checking build system type... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001549if test "${ac_cv_build+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001550 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001551else
drh866108f2008-05-13 00:57:21 +00001552 ac_cv_build_alias=$build_alias
1553test -z "$ac_cv_build_alias" &&
1554 ac_cv_build_alias=`$ac_config_guess`
1555test -z "$ac_cv_build_alias" &&
1556 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001558 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +00001559ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001562 { (exit 1); exit 1; }; }
1563
1564fi
drh866108f2008-05-13 00:57:21 +00001565echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566echo "${ECHO_T}$ac_cv_build" >&6
drh71eb93e2001-09-28 01:34:43 +00001567build=$ac_cv_build
drh866108f2008-05-13 00:57:21 +00001568build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
drh71eb93e2001-09-28 01:34:43 +00001571
a.rottmann84e63352003-03-24 09:42:16 +00001572
drh866108f2008-05-13 00:57:21 +00001573echo "$as_me:$LINENO: checking host system type" >&5
1574echo $ECHO_N "checking host system type... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001575if test "${ac_cv_host+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001576 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001577else
drh866108f2008-05-13 00:57:21 +00001578 ac_cv_host_alias=$host_alias
1579test -z "$ac_cv_host_alias" &&
1580 ac_cv_host_alias=$ac_cv_build_alias
1581ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001584 { (exit 1); exit 1; }; }
1585
1586fi
drh866108f2008-05-13 00:57:21 +00001587echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1588echo "${ECHO_T}$ac_cv_host" >&6
drh71eb93e2001-09-28 01:34:43 +00001589host=$ac_cv_host
drh866108f2008-05-13 00:57:21 +00001590host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
drh71eb93e2001-09-28 01:34:43 +00001593
a.rottmann84e63352003-03-24 09:42:16 +00001594
drh71eb93e2001-09-28 01:34:43 +00001595ac_ext=c
1596ac_cpp='$CPP $CPPFLAGS'
1597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1602set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001603echo "$as_me:$LINENO: checking for $ac_word" >&5
1604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001605if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001606 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001607else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
a.rottmann84e63352003-03-24 09:42:16 +00001611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh866108f2008-05-13 00:57:21 +00001619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001620 break 2
1621 fi
1622done
drh71eb93e2001-09-28 01:34:43 +00001623done
1624
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001629 echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001631else
drh866108f2008-05-13 00:57:21 +00001632 echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001634fi
1635
1636fi
1637if test -z "$ac_cv_prog_CC"; then
1638 ac_ct_CC=$CC
1639 # Extract the first word of "gcc", so it can be a program name with args.
1640set dummy gcc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001644 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001645else
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648else
a.rottmann84e63352003-03-24 09:42:16 +00001649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001656 ac_cv_prog_ac_ct_CC="gcc"
drh866108f2008-05-13 00:57:21 +00001657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001658 break 2
1659 fi
1660done
drh71eb93e2001-09-28 01:34:43 +00001661done
1662
1663fi
1664fi
1665ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666if test -n "$ac_ct_CC"; then
drh866108f2008-05-13 00:57:21 +00001667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668echo "${ECHO_T}$ac_ct_CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001669else
drh866108f2008-05-13 00:57:21 +00001670 echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001672fi
1673
drh866108f2008-05-13 00:57:21 +00001674 CC=$ac_ct_CC
drh71eb93e2001-09-28 01:34:43 +00001675else
1676 CC="$ac_cv_prog_CC"
1677fi
1678
1679if test -z "$CC"; then
drh866108f2008-05-13 00:57:21 +00001680 if test -n "$ac_tool_prefix"; then
1681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00001682set dummy ${ac_tool_prefix}cc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001685if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001686 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001687else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
a.rottmann84e63352003-03-24 09:42:16 +00001691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001698 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh866108f2008-05-13 00:57:21 +00001699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001700 break 2
1701 fi
1702done
drh71eb93e2001-09-28 01:34:43 +00001703done
1704
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001709 echo "$as_me:$LINENO: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001711else
drh866108f2008-05-13 00:57:21 +00001712 echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001714fi
1715
drh866108f2008-05-13 00:57:21 +00001716fi
1717if test -z "$ac_cv_prog_CC"; then
1718 ac_ct_CC=$CC
1719 # Extract the first word of "cc", so it can be a program name with args.
1720set dummy cc; ac_word=$2
1721echo "$as_me:$LINENO: checking for $ac_word" >&5
1722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726 if test -n "$ac_ct_CC"; then
1727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1728else
1729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730for as_dir in $PATH
1731do
1732 IFS=$as_save_IFS
1733 test -z "$as_dir" && as_dir=.
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 ac_cv_prog_ac_ct_CC="cc"
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738 break 2
a.rottmann84e63352003-03-24 09:42:16 +00001739 fi
drh866108f2008-05-13 00:57:21 +00001740done
1741done
1742
1743fi
1744fi
1745ac_ct_CC=$ac_cv_prog_ac_ct_CC
1746if test -n "$ac_ct_CC"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1748echo "${ECHO_T}$ac_ct_CC" >&6
1749else
1750 echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754 CC=$ac_ct_CC
1755else
1756 CC="$ac_cv_prog_CC"
1757fi
1758
drh71eb93e2001-09-28 01:34:43 +00001759fi
1760if test -z "$CC"; then
1761 # Extract the first word of "cc", so it can be a program name with args.
1762set dummy cc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001763echo "$as_me:$LINENO: checking for $ac_word" >&5
1764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001765if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001766 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001767else
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1770else
1771 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1780 ac_prog_rejected=yes
1781 continue
1782 fi
1783 ac_cv_prog_CC="cc"
drh866108f2008-05-13 00:57:21 +00001784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001785 break 2
1786 fi
1787done
drh71eb93e2001-09-28 01:34:43 +00001788done
1789
1790if test $ac_prog_rejected = yes; then
1791 # We found a bogon in the path, so make sure we never use it.
1792 set dummy $ac_cv_prog_CC
1793 shift
1794 if test $# != 0; then
1795 # We chose a different compiler from the bogus one.
1796 # However, it has the same basename, so the bogon will be chosen
1797 # first if we set CC to just the basename; use the full file name.
1798 shift
a.rottmann84e63352003-03-24 09:42:16 +00001799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001800 fi
1801fi
1802fi
1803fi
1804CC=$ac_cv_prog_CC
1805if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001806 echo "$as_me:$LINENO: result: $CC" >&5
1807echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001808else
drh866108f2008-05-13 00:57:21 +00001809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001811fi
1812
1813fi
1814if test -z "$CC"; then
1815 if test -n "$ac_tool_prefix"; then
drh866108f2008-05-13 00:57:21 +00001816 for ac_prog in cl
drh71eb93e2001-09-28 01:34:43 +00001817 do
1818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001820echo "$as_me:$LINENO: checking for $ac_word" >&5
1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001822if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001823 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001824else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827else
a.rottmann84e63352003-03-24 09:42:16 +00001828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829for as_dir in $PATH
1830do
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh866108f2008-05-13 00:57:21 +00001836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001837 break 2
1838 fi
1839done
drh71eb93e2001-09-28 01:34:43 +00001840done
1841
1842fi
1843fi
1844CC=$ac_cv_prog_CC
1845if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001846 echo "$as_me:$LINENO: result: $CC" >&5
1847echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001848else
drh866108f2008-05-13 00:57:21 +00001849 echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001851fi
1852
1853 test -n "$CC" && break
1854 done
1855fi
1856if test -z "$CC"; then
1857 ac_ct_CC=$CC
drh866108f2008-05-13 00:57:21 +00001858 for ac_prog in cl
drh71eb93e2001-09-28 01:34:43 +00001859do
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001862echo "$as_me:$LINENO: checking for $ac_word" >&5
1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001864if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001865 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001866else
1867 if test -n "$ac_ct_CC"; then
1868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1869else
a.rottmann84e63352003-03-24 09:42:16 +00001870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871for as_dir in $PATH
1872do
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001877 ac_cv_prog_ac_ct_CC="$ac_prog"
drh866108f2008-05-13 00:57:21 +00001878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001879 break 2
1880 fi
1881done
drh71eb93e2001-09-28 01:34:43 +00001882done
1883
1884fi
1885fi
1886ac_ct_CC=$ac_cv_prog_ac_ct_CC
1887if test -n "$ac_ct_CC"; then
drh866108f2008-05-13 00:57:21 +00001888 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1889echo "${ECHO_T}$ac_ct_CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001890else
drh866108f2008-05-13 00:57:21 +00001891 echo "$as_me:$LINENO: result: no" >&5
1892echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001893fi
1894
1895 test -n "$ac_ct_CC" && break
1896done
1897
drh866108f2008-05-13 00:57:21 +00001898 CC=$ac_ct_CC
drh71eb93e2001-09-28 01:34:43 +00001899fi
1900
1901fi
1902
a.rottmann84e63352003-03-24 09:42:16 +00001903
drh866108f2008-05-13 00:57:21 +00001904test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00001905See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00001906echo "$as_me: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00001907See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001908 { (exit 1); exit 1; }; }
1909
1910# Provide some information about the compiler.
drh866108f2008-05-13 00:57:21 +00001911echo "$as_me:$LINENO:" \
1912 "checking for C compiler version" >&5
1913ac_compiler=`set X $ac_compile; echo $2`
1914{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1915 (eval $ac_compiler --version </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001916 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001918 (exit $ac_status); }
drh866108f2008-05-13 00:57:21 +00001919{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1920 (eval $ac_compiler -v </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001921 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001923 (exit $ac_status); }
drh866108f2008-05-13 00:57:21 +00001924{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1925 (eval $ac_compiler -V </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001926 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001928 (exit $ac_status); }
1929
1930cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001931/* confdefs.h. */
1932_ACEOF
1933cat confdefs.h >>conftest.$ac_ext
1934cat >>conftest.$ac_ext <<_ACEOF
1935/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001936
1937int
1938main ()
1939{
1940
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945ac_clean_files_save=$ac_clean_files
drh866108f2008-05-13 00:57:21 +00001946ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00001947# Try to create an executable without -o first, disregard a.out.
1948# It will help us diagnose broken compilers, and finding out an intuition
1949# of exeext.
drh866108f2008-05-13 00:57:21 +00001950echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1951echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1952ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1953if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1954 (eval $ac_link_default) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001955 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001957 (exit $ac_status); }; then
drh866108f2008-05-13 00:57:21 +00001958 # Find the output, starting from the most likely. This scheme is
1959# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1960# resort.
1961
1962# Be careful to initialize this variable, since it used to be cached.
1963# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1964ac_cv_exeext=
1965# b.out is created by i960 compilers.
1966for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
a.rottmann84e63352003-03-24 09:42:16 +00001967do
1968 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00001969 case $ac_file in
drh866108f2008-05-13 00:57:21 +00001970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1971 ;;
1972 conftest.$ac_ext )
1973 # This is the source file.
a.rottmann964dbb12004-02-26 19:47:42 +00001974 ;;
a.rottmann84e63352003-03-24 09:42:16 +00001975 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00001976 # We found the default executable, but exeext='' is most
1977 # certainly right.
1978 break;;
a.rottmann84e63352003-03-24 09:42:16 +00001979 *.* )
drh866108f2008-05-13 00:57:21 +00001980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 # FIXME: I believe we export ac_cv_exeext for Libtool,
1982 # but it would be cool to find out if it's true. Does anybody
1983 # maintain Libtool? --akim.
1984 export ac_cv_exeext
a.rottmann964dbb12004-02-26 19:47:42 +00001985 break;;
a.rottmann84e63352003-03-24 09:42:16 +00001986 * )
a.rottmann964dbb12004-02-26 19:47:42 +00001987 break;;
drh71eb93e2001-09-28 01:34:43 +00001988 esac
1989done
1990else
drh866108f2008-05-13 00:57:21 +00001991 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001992sed 's/^/| /' conftest.$ac_ext >&5
1993
drh866108f2008-05-13 00:57:21 +00001994{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00001995See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00001996echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00001997See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001998 { (exit 77); exit 77; }; }
1999fi
2000
2001ac_exeext=$ac_cv_exeext
drh866108f2008-05-13 00:57:21 +00002002echo "$as_me:$LINENO: result: $ac_file" >&5
2003echo "${ECHO_T}$ac_file" >&6
drh71eb93e2001-09-28 01:34:43 +00002004
drh866108f2008-05-13 00:57:21 +00002005# Check the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002006# the compiler is broken, or we cross compile.
drh866108f2008-05-13 00:57:21 +00002007echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2008echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002009# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2010# If not cross compiling, check that we can run a simple program.
2011if test "$cross_compiling" != yes; then
2012 if { ac_try='./$ac_file'
drh866108f2008-05-13 00:57:21 +00002013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002015 ac_status=$?
drh866108f2008-05-13 00:57:21 +00002016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002017 (exit $ac_status); }; }; then
2018 cross_compiling=no
2019 else
2020 if test "$cross_compiling" = maybe; then
2021 cross_compiling=yes
2022 else
drh866108f2008-05-13 00:57:21 +00002023 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002024If you meant to cross compile, use \`--host'.
2025See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002026echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002027If you meant to cross compile, use \`--host'.
2028See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002029 { (exit 1); exit 1; }; }
2030 fi
2031 fi
2032fi
drh866108f2008-05-13 00:57:21 +00002033echo "$as_me:$LINENO: result: yes" >&5
2034echo "${ECHO_T}yes" >&6
drh71eb93e2001-09-28 01:34:43 +00002035
drh866108f2008-05-13 00:57:21 +00002036rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002037ac_clean_files=$ac_clean_files_save
drh866108f2008-05-13 00:57:21 +00002038# Check the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002039# the compiler is broken, or we cross compile.
drh866108f2008-05-13 00:57:21 +00002040echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2041echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2042echo "$as_me:$LINENO: result: $cross_compiling" >&5
2043echo "${ECHO_T}$cross_compiling" >&6
drh71eb93e2001-09-28 01:34:43 +00002044
drh866108f2008-05-13 00:57:21 +00002045echo "$as_me:$LINENO: checking for suffix of executables" >&5
2046echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2048 (eval $ac_link) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002049 ac_status=$?
drh866108f2008-05-13 00:57:21 +00002050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002051 (exit $ac_status); }; then
2052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2053# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2054# work properly (i.e., refer to `conftest.exe'), while it won't with
2055# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002056for ac_file in conftest.exe conftest conftest.*; do
2057 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002058 case $ac_file in
drh866108f2008-05-13 00:57:21 +00002059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
drh866108f2008-05-13 00:57:21 +00002061 export ac_cv_exeext
a.rottmann964dbb12004-02-26 19:47:42 +00002062 break;;
drh71eb93e2001-09-28 01:34:43 +00002063 * ) break;;
2064 esac
2065done
2066else
drh866108f2008-05-13 00:57:21 +00002067 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002068See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002069echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002070See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002071 { (exit 1); exit 1; }; }
2072fi
2073
2074rm -f conftest$ac_cv_exeext
drh866108f2008-05-13 00:57:21 +00002075echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2076echo "${ECHO_T}$ac_cv_exeext" >&6
drh71eb93e2001-09-28 01:34:43 +00002077
2078rm -f conftest.$ac_ext
2079EXEEXT=$ac_cv_exeext
2080ac_exeext=$EXEEXT
drh866108f2008-05-13 00:57:21 +00002081echo "$as_me:$LINENO: checking for suffix of object files" >&5
2082echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002083if test "${ac_cv_objext+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002084 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002085else
2086 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002087/* confdefs.h. */
2088_ACEOF
2089cat confdefs.h >>conftest.$ac_ext
2090cat >>conftest.$ac_ext <<_ACEOF
2091/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002092
2093int
2094main ()
2095{
2096
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101rm -f conftest.o conftest.obj
drh866108f2008-05-13 00:57:21 +00002102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002104 ac_status=$?
drh866108f2008-05-13 00:57:21 +00002105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002106 (exit $ac_status); }; then
drh866108f2008-05-13 00:57:21 +00002107 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
drh71eb93e2001-09-28 01:34:43 +00002108 case $ac_file in
drh866108f2008-05-13 00:57:21 +00002109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2111 break;;
2112 esac
2113done
2114else
drh866108f2008-05-13 00:57:21 +00002115 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002116sed 's/^/| /' conftest.$ac_ext >&5
2117
drh866108f2008-05-13 00:57:21 +00002118{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002119See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002120echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002121See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002122 { (exit 1); exit 1; }; }
2123fi
2124
2125rm -f conftest.$ac_cv_objext conftest.$ac_ext
2126fi
drh866108f2008-05-13 00:57:21 +00002127echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2128echo "${ECHO_T}$ac_cv_objext" >&6
drh71eb93e2001-09-28 01:34:43 +00002129OBJEXT=$ac_cv_objext
2130ac_objext=$OBJEXT
drh866108f2008-05-13 00:57:21 +00002131echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2132echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002133if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002134 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002135else
2136 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002137/* confdefs.h. */
2138_ACEOF
2139cat confdefs.h >>conftest.$ac_ext
2140cat >>conftest.$ac_ext <<_ACEOF
2141/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002142
2143int
2144main ()
2145{
2146#ifndef __GNUC__
2147 choke me
2148#endif
2149
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00002155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002157 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002158 grep -v '^ *+' conftest.er1 >conftest.err
2159 rm -f conftest.er1
2160 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -z "$ac_c_werror_flag"
2164 || test ! -s conftest.err'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; } &&
2170 { ac_try='test -s conftest.$ac_objext'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00002176 ac_compiler_gnu=yes
2177else
drh866108f2008-05-13 00:57:21 +00002178 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002179sed 's/^/| /' conftest.$ac_ext >&5
2180
drh866108f2008-05-13 00:57:21 +00002181ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002182fi
drh866108f2008-05-13 00:57:21 +00002183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002184ac_cv_c_compiler_gnu=$ac_compiler_gnu
2185
2186fi
drh866108f2008-05-13 00:57:21 +00002187echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2188echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2189GCC=`test $ac_compiler_gnu = yes && echo yes`
drh71eb93e2001-09-28 01:34:43 +00002190ac_test_CFLAGS=${CFLAGS+set}
2191ac_save_CFLAGS=$CFLAGS
drh866108f2008-05-13 00:57:21 +00002192CFLAGS="-g"
2193echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2194echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002195if test "${ac_cv_prog_cc_g+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002196 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002197else
drh866108f2008-05-13 00:57:21 +00002198 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002199/* confdefs.h. */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002204
2205int
2206main ()
2207{
2208
2209 ;
2210 return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00002214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002216 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002217 grep -v '^ *+' conftest.er1 >conftest.err
2218 rm -f conftest.er1
2219 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try='test -z "$ac_c_werror_flag"
2223 || test ! -s conftest.err'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; } &&
2229 { ac_try='test -s conftest.$ac_objext'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00002235 ac_cv_prog_cc_g=yes
2236else
drh866108f2008-05-13 00:57:21 +00002237 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002238sed 's/^/| /' conftest.$ac_ext >&5
2239
drh866108f2008-05-13 00:57:21 +00002240ac_cv_prog_cc_g=no
drh71eb93e2001-09-28 01:34:43 +00002241fi
drh866108f2008-05-13 00:57:21 +00002242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002243fi
drh866108f2008-05-13 00:57:21 +00002244echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2245echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh71eb93e2001-09-28 01:34:43 +00002246if test "$ac_test_CFLAGS" = set; then
2247 CFLAGS=$ac_save_CFLAGS
2248elif test $ac_cv_prog_cc_g = yes; then
2249 if test "$GCC" = yes; then
2250 CFLAGS="-g -O2"
2251 else
2252 CFLAGS="-g"
2253 fi
2254else
2255 if test "$GCC" = yes; then
2256 CFLAGS="-O2"
2257 else
2258 CFLAGS=
2259 fi
2260fi
drh866108f2008-05-13 00:57:21 +00002261echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2262echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2263if test "${ac_cv_prog_cc_stdc+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002265else
drh866108f2008-05-13 00:57:21 +00002266 ac_cv_prog_cc_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00002267ac_save_CC=$CC
2268cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
2274#include <stdarg.h>
2275#include <stdio.h>
2276#include <sys/types.h>
2277#include <sys/stat.h>
2278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2279struct buf { int x; };
2280FILE * (*rcsopen) (struct buf *, struct stat *, int);
2281static char *e (p, i)
2282 char **p;
2283 int i;
2284{
2285 return p[i];
2286}
2287static char *f (char * (*g) (char **, int), char **p, ...)
2288{
2289 char *s;
2290 va_list v;
2291 va_start (v,p);
2292 s = g (p, va_arg (v,int));
2293 va_end (v);
2294 return s;
2295}
a.rottmann964dbb12004-02-26 19:47:42 +00002296
2297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2298 function prototypes and stuff, but not '\xHH' hex character constants.
2299 These don't provoke an error unfortunately, instead are silently treated
drh866108f2008-05-13 00:57:21 +00002300 as 'x'. The following induces an error, until -std1 is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2302 array size at least. It's necessary to write '\x00'==0 to get something
drh866108f2008-05-13 00:57:21 +00002303 that's true only with -std1. */
a.rottmann964dbb12004-02-26 19:47:42 +00002304int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2305
a.rottmann84e63352003-03-24 09:42:16 +00002306int test (int i, double x);
2307struct s1 {int (*f) (int a);};
2308struct s2 {int (*f) (double a);};
2309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2310int argc;
2311char **argv;
2312int
2313main ()
2314{
2315return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2316 ;
2317 return 0;
2318}
2319_ACEOF
drh866108f2008-05-13 00:57:21 +00002320# Don't try gcc -ansi; that turns off useful extensions and
2321# breaks some systems' header files.
2322# AIX -qlanglvl=ansi
2323# Ultrix and OSF/1 -std1
2324# HP-UX 10.20 and later -Ae
2325# HP-UX older versions -Aa -D_HPUX_SOURCE
2326# SVR4 -Xc -D__EXTENSIONS__
2327for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00002328do
2329 CC="$ac_save_CC $ac_arg"
2330 rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00002331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002333 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_cv_prog_cc_stdc=$ac_arg
2353break
a.rottmann84e63352003-03-24 09:42:16 +00002354else
drh866108f2008-05-13 00:57:21 +00002355 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358fi
drh866108f2008-05-13 00:57:21 +00002359rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002360done
drh866108f2008-05-13 00:57:21 +00002361rm -f conftest.$ac_ext conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002362CC=$ac_save_CC
2363
2364fi
drh866108f2008-05-13 00:57:21 +00002365
2366case "x$ac_cv_prog_cc_stdc" in
2367 x|xno)
2368 echo "$as_me:$LINENO: result: none needed" >&5
2369echo "${ECHO_T}none needed" >&6 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002370 *)
drh866108f2008-05-13 00:57:21 +00002371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2372echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2373 CC="$CC $ac_cv_prog_cc_stdc" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002374esac
2375
drh866108f2008-05-13 00:57:21 +00002376# Some people use a C++ compiler to compile C. Since we use `exit',
2377# in C++ we need to declare it. In case someone uses the same compiler
2378# for both compiling C and C++ we need to have the C++ compiler decide
2379# the declaration of exit, since it's the most demanding environment.
2380cat >conftest.$ac_ext <<_ACEOF
2381#ifndef __cplusplus
2382 choke me
2383#endif
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 for ac_declaration in \
2408 '' \
2409 'extern "C" void std::exit (int) throw (); using std::exit;' \
2410 'extern "C" void std::exit (int); using std::exit;' \
2411 'extern "C" void exit (int) throw ();' \
2412 'extern "C" void exit (int);' \
2413 'void exit (int);'
2414do
2415 cat >conftest.$ac_ext <<_ACEOF
2416/* confdefs.h. */
2417_ACEOF
2418cat confdefs.h >>conftest.$ac_ext
2419cat >>conftest.$ac_ext <<_ACEOF
2420/* end confdefs.h. */
2421$ac_declaration
2422#include <stdlib.h>
2423int
2424main ()
2425{
2426exit (42);
2427 ;
2428 return 0;
2429}
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -z "$ac_c_werror_flag"
2441 || test ! -s conftest.err'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2453 :
2454else
2455 echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00002457
drh866108f2008-05-13 00:57:21 +00002458continue
2459fi
2460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461 cat >conftest.$ac_ext <<_ACEOF
2462/* confdefs.h. */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h. */
2467$ac_declaration
2468int
2469main ()
2470{
2471exit (42);
2472 ;
2473 return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>conftest.er1
2479 ac_status=$?
2480 grep -v '^ *+' conftest.er1 >conftest.err
2481 rm -f conftest.er1
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag"
2486 || test ! -s conftest.err'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 break
2499else
2500 echo "$as_me: failed program was:" >&5
2501sed 's/^/| /' conftest.$ac_ext >&5
2502
2503fi
2504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505done
2506rm -f conftest*
2507if test -n "$ac_declaration"; then
2508 echo '#ifdef __cplusplus' >>confdefs.h
2509 echo $ac_declaration >>confdefs.h
2510 echo '#endif' >>confdefs.h
2511fi
2512
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002519ac_ext=c
2520ac_cpp='$CPP $CPPFLAGS'
2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
drh866108f2008-05-13 00:57:21 +00002525echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2526echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2527if test "${lt_cv_path_SED+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002529else
drh866108f2008-05-13 00:57:21 +00002530 # Loop through the user's path and test for sed and gsed.
2531# Then use that list of sed's as ones to test for truncation.
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00002533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
drh866108f2008-05-13 00:57:21 +00002537 for lt_ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002538 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00002539 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2540 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2541 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002542 done
2543 done
2544done
mlcreech636a9952008-05-05 22:52:56 +00002545IFS=$as_save_IFS
drh866108f2008-05-13 00:57:21 +00002546lt_ac_max=0
2547lt_ac_count=0
2548# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2549# along with /bin/sed that truncates output.
2550for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2551 test ! -f $lt_ac_sed && continue
2552 cat /dev/null > conftest.in
2553 lt_ac_count=0
2554 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2555 # Check for GNU sed and select it if it is found.
2556 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2557 lt_cv_path_SED=$lt_ac_sed
2558 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002559 fi
drh866108f2008-05-13 00:57:21 +00002560 while true; do
2561 cat conftest.in conftest.in >conftest.tmp
2562 mv conftest.tmp conftest.in
2563 cp conftest.in conftest.nl
2564 echo >>conftest.nl
2565 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2566 cmp -s conftest.out conftest.nl || break
2567 # 10000 chars as input seems more than enough
2568 test $lt_ac_count -gt 10 && break
2569 lt_ac_count=`expr $lt_ac_count + 1`
2570 if test $lt_ac_count -gt $lt_ac_max; then
2571 lt_ac_max=$lt_ac_count
2572 lt_cv_path_SED=$lt_ac_sed
2573 fi
2574 done
2575done
a.rottmann84e63352003-03-24 09:42:16 +00002576
mlcreech636a9952008-05-05 22:52:56 +00002577fi
drh866108f2008-05-13 00:57:21 +00002578
2579SED=$lt_cv_path_SED
2580
2581echo "$as_me:$LINENO: result: $SED" >&5
2582echo "${ECHO_T}$SED" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002583
mlcreech636a9952008-05-05 22:52:56 +00002584test -z "$SED" && SED=sed
2585Xsed="$SED -e 1s/^X//"
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
drh866108f2008-05-13 00:57:21 +00002597echo "$as_me:$LINENO: checking for egrep" >&5
2598echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2599if test "${ac_cv_prog_egrep+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002601else
drh866108f2008-05-13 00:57:21 +00002602 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2603 then ac_cv_prog_egrep='grep -E'
2604 else ac_cv_prog_egrep='egrep'
a.rottmann9bc8b932004-02-29 15:18:31 +00002605 fi
mlcreech94984912008-03-04 19:03:08 +00002606fi
drh866108f2008-05-13 00:57:21 +00002607echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2608echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2609 EGREP=$ac_cv_prog_egrep
mlcreech94984912008-03-04 19:03:08 +00002610
2611
drh866108f2008-05-13 00:57:21 +00002612echo "$as_me:$LINENO: checking for fgrep" >&5
2613echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
2614if test "${ac_cv_prog_fgrep+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech94984912008-03-04 19:03:08 +00002616else
drh866108f2008-05-13 00:57:21 +00002617 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
2618 then ac_cv_prog_fgrep='grep -F'
2619 else ac_cv_prog_fgrep='fgrep'
mlcreech94984912008-03-04 19:03:08 +00002620 fi
mlcreech94984912008-03-04 19:03:08 +00002621fi
drh866108f2008-05-13 00:57:21 +00002622echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
2623echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
2624 FGREP=$ac_cv_prog_fgrep
mlcreech636a9952008-05-05 22:52:56 +00002625
2626
2627test -z "$GREP" && GREP=grep
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
a.rottmann9bc8b932004-02-29 15:18:31 +00002644
2645
a.rottmann84e63352003-03-24 09:42:16 +00002646
drh866108f2008-05-13 00:57:21 +00002647# Check whether --with-gnu-ld or --without-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00002648if test "${with_gnu_ld+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002649 withval="$with_gnu_ld"
2650 test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00002651else
2652 with_gnu_ld=no
drh866108f2008-05-13 00:57:21 +00002653fi;
drh71eb93e2001-09-28 01:34:43 +00002654ac_prog=ld
2655if test "$GCC" = yes; then
2656 # Check if gcc -print-prog-name=ld gives a path.
drh866108f2008-05-13 00:57:21 +00002657 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2658echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002659 case $host in
2660 *-*-mingw*)
2661 # gcc leaves a trailing carriage return which upsets mingw
2662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2663 *)
2664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2665 esac
2666 case $ac_prog in
2667 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002668 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002669 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002670 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00002671 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2672 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2673 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002674 done
2675 test -z "$LD" && LD="$ac_prog"
2676 ;;
2677 "")
2678 # If it fails, then pretend we aren't using GCC.
2679 ac_prog=ld
2680 ;;
2681 *)
2682 # If it is relative, then search for the first ld in PATH.
2683 with_gnu_ld=unknown
2684 ;;
2685 esac
2686elif test "$with_gnu_ld" = yes; then
drh866108f2008-05-13 00:57:21 +00002687 echo "$as_me:$LINENO: checking for GNU ld" >&5
2688echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002689else
drh866108f2008-05-13 00:57:21 +00002690 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2691echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002692fi
2693if test "${lt_cv_path_LD+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002694 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002695else
2696 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002698 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002699 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002700 test -z "$ac_dir" && ac_dir=.
2701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2702 lt_cv_path_LD="$ac_dir/$ac_prog"
2703 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00002704 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00002705 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002706 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2707 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002708 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002709 ;;
2710 *)
drh71eb93e2001-09-28 01:34:43 +00002711 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002712 ;;
2713 esac
drh71eb93e2001-09-28 01:34:43 +00002714 fi
2715 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002716 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002717else
2718 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2719fi
2720fi
2721
2722LD="$lt_cv_path_LD"
2723if test -n "$LD"; then
drh866108f2008-05-13 00:57:21 +00002724 echo "$as_me:$LINENO: result: $LD" >&5
2725echo "${ECHO_T}$LD" >&6
drh71eb93e2001-09-28 01:34:43 +00002726else
drh866108f2008-05-13 00:57:21 +00002727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00002729fi
drh866108f2008-05-13 00:57:21 +00002730test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2731echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002732 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +00002733echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2734echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002735if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002736 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002737else
vapier7f19c022007-02-17 14:46:31 +00002738 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002739case `$LD -v 2>&1 </dev/null` in
2740*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002741 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002742 ;;
2743*)
drh71eb93e2001-09-28 01:34:43 +00002744 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002745 ;;
2746esac
drh71eb93e2001-09-28 01:34:43 +00002747fi
drh866108f2008-05-13 00:57:21 +00002748echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2749echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
drh71eb93e2001-09-28 01:34:43 +00002750with_gnu_ld=$lt_cv_prog_gnu_ld
2751
a.rottmann84e63352003-03-24 09:42:16 +00002752
drh71eb93e2001-09-28 01:34:43 +00002753
mlcreech636a9952008-05-05 22:52:56 +00002754
2755
2756
2757
2758
2759
drh866108f2008-05-13 00:57:21 +00002760echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
2761echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002762if test "${lt_cv_path_NM+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002763 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002764else
2765 if test -n "$NM"; then
2766 # Let the user override the test.
2767 lt_cv_path_NM="$NM"
2768else
vapier7f19c022007-02-17 14:46:31 +00002769 lt_nm_to_check="${ac_tool_prefix}nm"
2770 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2771 lt_nm_to_check="$lt_nm_to_check nm"
2772 fi
2773 for lt_tmp_nm in $lt_nm_to_check; do
2774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2775 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2776 IFS="$lt_save_ifs"
2777 test -z "$ac_dir" && ac_dir=.
2778 tmp_nm="$ac_dir/$lt_tmp_nm"
2779 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2780 # Check to see if the nm accepts a BSD-compat flag.
2781 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2782 # nm: unknown option "B" ignored
2783 # Tru64's nm complains that /dev/null is an invalid object file
2784 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2785 */dev/null* | *'Invalid file or object type'*)
2786 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00002787 break
2788 ;;
2789 *)
vapier7f19c022007-02-17 14:46:31 +00002790 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2791 */dev/null*)
2792 lt_cv_path_NM="$tmp_nm -p"
2793 break
2794 ;;
2795 *)
2796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2797 continue # so that we can try to find one that supports BSD flags
2798 ;;
2799 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002800 ;;
2801 esac
vapier7f19c022007-02-17 14:46:31 +00002802 fi
2803 done
2804 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002805 done
mlcreech636a9952008-05-05 22:52:56 +00002806 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00002807fi
2808fi
drh866108f2008-05-13 00:57:21 +00002809echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2810echo "${ECHO_T}$lt_cv_path_NM" >&6
mlcreech636a9952008-05-05 22:52:56 +00002811if test "$lt_cv_path_NM" != "no"; then
2812 NM="$lt_cv_path_NM"
2813else
2814 # Didn't find any BSD compatible name lister, look for dumpbin.
2815 if test -n "$ac_tool_prefix"; then
2816 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
2817 do
2818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00002820echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002822if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002823 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002824else
2825 if test -n "$DUMPBIN"; then
2826 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00002834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00002835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh866108f2008-05-13 00:57:21 +00002836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00002837 break 2
2838 fi
2839done
2840done
a.rottmann84e63352003-03-24 09:42:16 +00002841
mlcreech636a9952008-05-05 22:52:56 +00002842fi
2843fi
2844DUMPBIN=$ac_cv_prog_DUMPBIN
2845if test -n "$DUMPBIN"; then
drh866108f2008-05-13 00:57:21 +00002846 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
2847echo "${ECHO_T}$DUMPBIN" >&6
mlcreech636a9952008-05-05 22:52:56 +00002848else
drh866108f2008-05-13 00:57:21 +00002849 echo "$as_me:$LINENO: result: no" >&5
2850echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00002851fi
2852
mlcreech636a9952008-05-05 22:52:56 +00002853 test -n "$DUMPBIN" && break
2854 done
2855fi
2856if test -z "$DUMPBIN"; then
2857 ac_ct_DUMPBIN=$DUMPBIN
2858 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
2859do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00002862echo "$as_me:$LINENO: checking for $ac_word" >&5
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002864if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002865 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002866else
2867 if test -n "$ac_ct_DUMPBIN"; then
2868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00002876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00002877 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh866108f2008-05-13 00:57:21 +00002878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00002879 break 2
2880 fi
2881done
2882done
mlcreech636a9952008-05-05 22:52:56 +00002883
2884fi
2885fi
2886ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
2887if test -n "$ac_ct_DUMPBIN"; then
drh866108f2008-05-13 00:57:21 +00002888 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
2889echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
mlcreech636a9952008-05-05 22:52:56 +00002890else
drh866108f2008-05-13 00:57:21 +00002891 echo "$as_me:$LINENO: result: no" >&5
2892echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00002893fi
2894
mlcreech636a9952008-05-05 22:52:56 +00002895 test -n "$ac_ct_DUMPBIN" && break
2896done
drh866108f2008-05-13 00:57:21 +00002897test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
mlcreech636a9952008-05-05 22:52:56 +00002898
drh866108f2008-05-13 00:57:21 +00002899 DUMPBIN=$ac_ct_DUMPBIN
mlcreech636a9952008-05-05 22:52:56 +00002900fi
2901
2902
2903 if test "$DUMPBIN" != ":"; then
2904 NM="$DUMPBIN"
2905 fi
2906fi
2907test -z "$NM" && NM=nm
2908
2909
2910
2911
2912
2913
drh866108f2008-05-13 00:57:21 +00002914echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
2915echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002916if test "${lt_cv_nm_interface+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002917 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002918else
2919 lt_cv_nm_interface="BSD nm"
2920 echo "int some_variable = 0;" > conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +00002921 (eval echo "\"\$as_me:2927: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00002922 (eval "$ac_compile" 2>conftest.err)
2923 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002924 (eval echo "\"\$as_me:2930: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00002925 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
2926 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002927 (eval echo "\"\$as_me:2933: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00002928 cat conftest.out >&5
2929 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
2930 lt_cv_nm_interface="MS dumpbin"
2931 fi
2932 rm -f conftest*
2933fi
drh866108f2008-05-13 00:57:21 +00002934echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
2935echo "${ECHO_T}$lt_cv_nm_interface" >&6
mlcreech636a9952008-05-05 22:52:56 +00002936
drh866108f2008-05-13 00:57:21 +00002937echo "$as_me:$LINENO: checking whether ln -s works" >&5
2938echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002939LN_S=$as_ln_s
2940if test "$LN_S" = "ln -s"; then
drh866108f2008-05-13 00:57:21 +00002941 echo "$as_me:$LINENO: result: yes" >&5
2942echo "${ECHO_T}yes" >&6
drh71eb93e2001-09-28 01:34:43 +00002943else
drh866108f2008-05-13 00:57:21 +00002944 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2945echo "${ECHO_T}no, using $LN_S" >&6
drh71eb93e2001-09-28 01:34:43 +00002946fi
2947
mlcreech636a9952008-05-05 22:52:56 +00002948# find the maximum length of command line arguments
drh866108f2008-05-13 00:57:21 +00002949echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
2950echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002951if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002952 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002953else
2954 i=0
2955 teststring="ABCD"
2956
2957 case $build_os in
2958 msdosdjgpp*)
2959 # On DJGPP, this test can blow up pretty badly due to problems in libc
2960 # (any single argument exceeding 2000 bytes causes a buffer overrun
2961 # during glob expansion). Even if it were fixed, the result of this
2962 # check would be larger than it should be.
2963 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2964 ;;
2965
2966 gnu*)
2967 # Under GNU Hurd, this test is not required because there is
2968 # no limit to the length of command line arguments.
2969 # Libtool will interpret -1 as no limit whatsoever
2970 lt_cv_sys_max_cmd_len=-1;
2971 ;;
2972
2973 cygwin* | mingw*)
2974 # On Win9x/ME, this test blows up -- it succeeds, but takes
2975 # about 5 minutes as the teststring grows exponentially.
2976 # Worse, since 9x/ME are not pre-emptively multitasking,
2977 # you end up with a "frozen" computer, even though with patience
2978 # the test eventually succeeds (with a max line length of 256k).
2979 # Instead, let's just punt: use the minimum linelength reported by
2980 # all of the supported platforms: 8192 (on NT/2K/XP).
2981 lt_cv_sys_max_cmd_len=8192;
2982 ;;
2983
2984 amigaos*)
2985 # On AmigaOS with pdksh, this test takes hours, literally.
2986 # So we just punt and use a minimum line length of 8192.
2987 lt_cv_sys_max_cmd_len=8192;
2988 ;;
2989
2990 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2991 # This has been around since 386BSD, at least. Likely further.
2992 if test -x /sbin/sysctl; then
2993 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2994 elif test -x /usr/sbin/sysctl; then
2995 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2996 else
2997 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2998 fi
2999 # And add a safety zone
3000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3002 ;;
3003
3004 interix*)
3005 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3006 lt_cv_sys_max_cmd_len=196608
3007 ;;
3008
3009 osf*)
3010 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3011 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3012 # nice to cause kernel panics so lets avoid the loop below.
3013 # First set a reasonable default.
3014 lt_cv_sys_max_cmd_len=16384
3015 #
3016 if test -x /sbin/sysconfig; then
3017 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3018 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3019 esac
3020 fi
3021 ;;
3022 sco3.2v5*)
3023 lt_cv_sys_max_cmd_len=102400
3024 ;;
3025 sysv5* | sco5v6* | sysv4.2uw2*)
3026 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3027 if test -n "$kargmax"; then
3028 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3029 else
3030 lt_cv_sys_max_cmd_len=32768
3031 fi
3032 ;;
3033 *)
3034 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3035 if test -n "$lt_cv_sys_max_cmd_len"; then
3036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3038 else
3039 # Make teststring a little bigger before we do anything with it.
3040 # a 1K string should be a reasonable start.
3041 for i in 1 2 3 4 5 6 7 8 ; do
3042 teststring=$teststring$teststring
3043 done
3044 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3045 # If test is not a shell built-in, we'll probably end up computing a
3046 # maximum length that is only half of the actual maximum length, but
3047 # we can't tell.
3048 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3049 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3050 test $i != 17 # 1/2 MB should be enough
3051 do
3052 i=`expr $i + 1`
3053 teststring=$teststring$teststring
3054 done
3055 # Only check the string length outside the loop.
3056 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3057 teststring=
3058 # Add a significant safety factor because C++ compilers can tack on
3059 # massive amounts of additional arguments before passing them to the
3060 # linker. It appears as though 1/2 is a usable value.
3061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3062 fi
3063 ;;
3064 esac
3065
3066fi
3067
3068if test -n $lt_cv_sys_max_cmd_len ; then
drh866108f2008-05-13 00:57:21 +00003069 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3070echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
mlcreech636a9952008-05-05 22:52:56 +00003071else
drh866108f2008-05-13 00:57:21 +00003072 echo "$as_me:$LINENO: result: none" >&5
3073echo "${ECHO_T}none" >&6
mlcreech636a9952008-05-05 22:52:56 +00003074fi
3075max_cmd_len=$lt_cv_sys_max_cmd_len
3076
3077
3078
3079
3080
3081
3082: ${CP="cp -f"}
3083: ${MV="mv -f"}
3084: ${RM="rm -f"}
3085
drh866108f2008-05-13 00:57:21 +00003086echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3087echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003088# Try some XSI features
3089xsi_shell=no
3090( _lt_dummy="a/b/c"
3091 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3092 = c,a/b,, \
3093 && eval 'test $(( 1 + 1 )) -eq 2 \
3094 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3095 && xsi_shell=yes
drh866108f2008-05-13 00:57:21 +00003096echo "$as_me:$LINENO: result: $xsi_shell" >&5
3097echo "${ECHO_T}$xsi_shell" >&6
mlcreech636a9952008-05-05 22:52:56 +00003098
3099
drh866108f2008-05-13 00:57:21 +00003100echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3101echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003102lt_shell_append=no
3103( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3104 >/dev/null 2>&1 \
3105 && lt_shell_append=yes
drh866108f2008-05-13 00:57:21 +00003106echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3107echo "${ECHO_T}$lt_shell_append" >&6
mlcreech636a9952008-05-05 22:52:56 +00003108
3109
3110if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3111 lt_unset=unset
3112else
3113 lt_unset=false
3114fi
3115
3116
3117
3118
3119
3120# test EBCDIC or ASCII
3121case `echo X|tr X '\101'` in
3122 A) # ASCII based system
3123 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3124 lt_SP2NL='tr \040 \012'
3125 lt_NL2SP='tr \015\012 \040\040'
3126 ;;
3127 *) # EBCDIC based system
3128 lt_SP2NL='tr \100 \n'
3129 lt_NL2SP='tr \r\n \100\100'
3130 ;;
3131esac
3132
3133
3134
3135
3136
3137
3138
3139
3140
drh866108f2008-05-13 00:57:21 +00003141echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3142echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003143if test "${lt_cv_ld_reload_flag+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003144 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003145else
3146 lt_cv_ld_reload_flag='-r'
3147fi
drh866108f2008-05-13 00:57:21 +00003148echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3149echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
mlcreech636a9952008-05-05 22:52:56 +00003150reload_flag=$lt_cv_ld_reload_flag
3151case $reload_flag in
3152"" | " "*) ;;
3153*) reload_flag=" $reload_flag" ;;
3154esac
3155reload_cmds='$LD$reload_flag -o $output$reload_objs'
3156case $host_os in
3157 darwin*)
3158 if test "$GCC" = yes; then
3159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3160 else
3161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162 fi
3163 ;;
3164esac
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
drh866108f2008-05-13 00:57:21 +00003175echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3176echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00003177if test "${lt_cv_deplibs_check_method+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003178 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00003179else
3180 lt_cv_file_magic_cmd='$MAGIC_CMD'
3181lt_cv_file_magic_test_file=
3182lt_cv_deplibs_check_method='unknown'
3183# Need to set the preceding variable on all platforms that support
3184# interlibrary dependencies.
3185# 'none' -- dependencies not supported.
3186# `unknown' -- same as none, but documents that we really don't know.
3187# 'pass_all' -- all dependencies passed with no checks.
3188# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003189# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003190# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003191# If you have `file' or equivalent on your system and you're not sure
3192# whether `pass_all' will *always* work, you probably want this one.
3193
3194case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00003195aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00003196 lt_cv_deplibs_check_method=pass_all
3197 ;;
3198
3199beos*)
3200 lt_cv_deplibs_check_method=pass_all
3201 ;;
3202
vapier7f19c022007-02-17 14:46:31 +00003203bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00003204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3205 lt_cv_file_magic_cmd='/usr/bin/file -L'
3206 lt_cv_file_magic_test_file=/shlib/libc.so
3207 ;;
3208
a.rottmann9bc8b932004-02-29 15:18:31 +00003209cygwin*)
vapier7f19c022007-02-17 14:46:31 +00003210 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00003211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00003212 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00003213 ;;
3214
3215mingw* | pw32*)
3216 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00003217 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3218 # unless we find 'file', for example because we are cross-compiling.
3219 if ( file / ) >/dev/null 2>&1; then
3220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3221 lt_cv_file_magic_cmd='func_win32_libid'
3222 else
3223 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3224 lt_cv_file_magic_cmd='$OBJDUMP -f'
3225 fi
drh71eb93e2001-09-28 01:34:43 +00003226 ;;
3227
3228darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003229 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003230 ;;
3231
mlcreech636a9952008-05-05 22:52:56 +00003232freebsd* | dragonfly*)
3233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00003234 case $host_cpu in
3235 i*86 )
3236 # Not sure whether the presence of OpenBSD here was a mistake.
3237 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00003238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
drh71eb93e2001-09-28 01:34:43 +00003239 lt_cv_file_magic_cmd=/usr/bin/file
3240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3241 ;;
3242 esac
3243 else
3244 lt_cv_deplibs_check_method=pass_all
3245 fi
3246 ;;
3247
3248gnu*)
3249 lt_cv_deplibs_check_method=pass_all
3250 ;;
3251
a.rottmann9bc8b932004-02-29 15:18:31 +00003252hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00003253 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00003254 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00003255 ia64*)
3256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3258 ;;
3259 hppa*64*)
3260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3262 ;;
3263 *)
3264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3266 ;;
3267 esac
drh71eb93e2001-09-28 01:34:43 +00003268 ;;
3269
mlcreech636a9952008-05-05 22:52:56 +00003270interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00003271 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3273 ;;
3274
a.rottmann84e63352003-03-24 09:42:16 +00003275irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003276 case $LD in
3277 *-32|*"-32 ") libmagic=32-bit;;
3278 *-n32|*"-n32 ") libmagic=N32;;
3279 *-64|*"-64 ") libmagic=64-bit;;
3280 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00003281 esac
drh71eb93e2001-09-28 01:34:43 +00003282 lt_cv_deplibs_check_method=pass_all
3283 ;;
3284
3285# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00003286linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00003287 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003288 ;;
3289
vapier7f19c022007-02-17 14:46:31 +00003290netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00003291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003293 else
a.rottmann9bc8b932004-02-29 15:18:31 +00003294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003295 fi
3296 ;;
3297
3298newos6*)
3299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3300 lt_cv_file_magic_cmd=/usr/bin/file
3301 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3302 ;;
3303
mlcreech636a9952008-05-05 22:52:56 +00003304*nto* | *qnx*)
3305 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00003306 ;;
3307
a.rottmann84e63352003-03-24 09:42:16 +00003308openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00003309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00003310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003311 else
vapier7f19c022007-02-17 14:46:31 +00003312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003313 fi
drh71eb93e2001-09-28 01:34:43 +00003314 ;;
3315
3316osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00003317 lt_cv_deplibs_check_method=pass_all
3318 ;;
3319
mlcreech636a9952008-05-05 22:52:56 +00003320rdos*)
3321 lt_cv_deplibs_check_method=pass_all
3322 ;;
3323
drh71eb93e2001-09-28 01:34:43 +00003324solaris*)
3325 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003326 ;;
3327
mlcreech636a9952008-05-05 22:52:56 +00003328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3329 lt_cv_deplibs_check_method=pass_all
3330 ;;
3331
vapier7f19c022007-02-17 14:46:31 +00003332sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003333 case $host_vendor in
3334 motorola)
3335 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]'
3336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3337 ;;
3338 ncr)
3339 lt_cv_deplibs_check_method=pass_all
3340 ;;
3341 sequent)
3342 lt_cv_file_magic_cmd='/bin/file'
3343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3344 ;;
3345 sni)
3346 lt_cv_file_magic_cmd='/bin/file'
3347 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3348 lt_cv_file_magic_test_file=/lib/libc.so
3349 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003350 siemens)
3351 lt_cv_deplibs_check_method=pass_all
3352 ;;
vapier7f19c022007-02-17 14:46:31 +00003353 pc)
3354 lt_cv_deplibs_check_method=pass_all
3355 ;;
drh71eb93e2001-09-28 01:34:43 +00003356 esac
3357 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003358
mlcreech636a9952008-05-05 22:52:56 +00003359tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003360 lt_cv_deplibs_check_method=pass_all
3361 ;;
drh71eb93e2001-09-28 01:34:43 +00003362esac
3363
3364fi
drh866108f2008-05-13 00:57:21 +00003365echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3366echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
drh71eb93e2001-09-28 01:34:43 +00003367file_magic_cmd=$lt_cv_file_magic_cmd
3368deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003369test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003370
drh71eb93e2001-09-28 01:34:43 +00003371
drh71eb93e2001-09-28 01:34:43 +00003372
drh71eb93e2001-09-28 01:34:43 +00003373
mlcreech636a9952008-05-05 22:52:56 +00003374
3375
3376
3377
3378
3379
3380
3381
3382if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3384set dummy ${ac_tool_prefix}ar; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003385echo "$as_me:$LINENO: checking for $ac_word" >&5
3386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003387if test "${ac_cv_prog_AR+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003388 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003389else
3390 if test -n "$AR"; then
3391 ac_cv_prog_AR="$AR" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003400 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh866108f2008-05-13 00:57:21 +00003401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003402 break 2
3403 fi
3404done
3405done
mlcreech636a9952008-05-05 22:52:56 +00003406
3407fi
3408fi
3409AR=$ac_cv_prog_AR
3410if test -n "$AR"; then
drh866108f2008-05-13 00:57:21 +00003411 echo "$as_me:$LINENO: result: $AR" >&5
3412echo "${ECHO_T}$AR" >&6
mlcreech636a9952008-05-05 22:52:56 +00003413else
drh866108f2008-05-13 00:57:21 +00003414 echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003416fi
3417
mlcreech636a9952008-05-05 22:52:56 +00003418fi
3419if test -z "$ac_cv_prog_AR"; then
3420 ac_ct_AR=$AR
3421 # Extract the first word of "ar", so it can be a program name with args.
3422set dummy ar; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003425if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003426 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003427else
3428 if test -n "$ac_ct_AR"; then
3429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003438 ac_cv_prog_ac_ct_AR="ar"
drh866108f2008-05-13 00:57:21 +00003439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003440 break 2
3441 fi
3442done
3443done
mlcreech636a9952008-05-05 22:52:56 +00003444
drh866108f2008-05-13 00:57:21 +00003445 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
mlcreech636a9952008-05-05 22:52:56 +00003446fi
3447fi
3448ac_ct_AR=$ac_cv_prog_ac_ct_AR
3449if test -n "$ac_ct_AR"; then
drh866108f2008-05-13 00:57:21 +00003450 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3451echo "${ECHO_T}$ac_ct_AR" >&6
mlcreech636a9952008-05-05 22:52:56 +00003452else
drh866108f2008-05-13 00:57:21 +00003453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003455fi
3456
drh866108f2008-05-13 00:57:21 +00003457 AR=$ac_ct_AR
mlcreech636a9952008-05-05 22:52:56 +00003458else
3459 AR="$ac_cv_prog_AR"
3460fi
3461
3462test -z "$AR" && AR=ar
3463test -z "$AR_FLAGS" && AR_FLAGS=cru
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475if test -n "$ac_tool_prefix"; then
3476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3477set dummy ${ac_tool_prefix}strip; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003478echo "$as_me:$LINENO: checking for $ac_word" >&5
3479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003480if test "${ac_cv_prog_STRIP+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003481 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003482else
3483 if test -n "$STRIP"; then
3484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh866108f2008-05-13 00:57:21 +00003494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003495 break 2
3496 fi
3497done
3498done
mlcreech636a9952008-05-05 22:52:56 +00003499
3500fi
3501fi
3502STRIP=$ac_cv_prog_STRIP
3503if test -n "$STRIP"; then
drh866108f2008-05-13 00:57:21 +00003504 echo "$as_me:$LINENO: result: $STRIP" >&5
3505echo "${ECHO_T}$STRIP" >&6
mlcreech636a9952008-05-05 22:52:56 +00003506else
drh866108f2008-05-13 00:57:21 +00003507 echo "$as_me:$LINENO: result: no" >&5
3508echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003509fi
3510
mlcreech636a9952008-05-05 22:52:56 +00003511fi
3512if test -z "$ac_cv_prog_STRIP"; then
3513 ac_ct_STRIP=$STRIP
3514 # Extract the first word of "strip", so it can be a program name with args.
3515set dummy strip; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003516echo "$as_me:$LINENO: checking for $ac_word" >&5
3517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003519 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003520else
3521 if test -n "$ac_ct_STRIP"; then
3522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3523else
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003531 ac_cv_prog_ac_ct_STRIP="strip"
drh866108f2008-05-13 00:57:21 +00003532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003533 break 2
3534 fi
3535done
3536done
mlcreech636a9952008-05-05 22:52:56 +00003537
drh866108f2008-05-13 00:57:21 +00003538 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
mlcreech636a9952008-05-05 22:52:56 +00003539fi
3540fi
3541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3542if test -n "$ac_ct_STRIP"; then
drh866108f2008-05-13 00:57:21 +00003543 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3544echo "${ECHO_T}$ac_ct_STRIP" >&6
mlcreech636a9952008-05-05 22:52:56 +00003545else
drh866108f2008-05-13 00:57:21 +00003546 echo "$as_me:$LINENO: result: no" >&5
3547echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003548fi
3549
drh866108f2008-05-13 00:57:21 +00003550 STRIP=$ac_ct_STRIP
mlcreech636a9952008-05-05 22:52:56 +00003551else
3552 STRIP="$ac_cv_prog_STRIP"
3553fi
3554
3555test -z "$STRIP" && STRIP=:
3556
3557
3558
3559
3560
3561
3562if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3564set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003565echo "$as_me:$LINENO: checking for $ac_word" >&5
3566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003567if test "${ac_cv_prog_RANLIB+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003568 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003569else
3570 if test -n "$RANLIB"; then
3571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh866108f2008-05-13 00:57:21 +00003581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003582 break 2
3583 fi
3584done
3585done
mlcreech636a9952008-05-05 22:52:56 +00003586
3587fi
3588fi
3589RANLIB=$ac_cv_prog_RANLIB
3590if test -n "$RANLIB"; then
drh866108f2008-05-13 00:57:21 +00003591 echo "$as_me:$LINENO: result: $RANLIB" >&5
3592echo "${ECHO_T}$RANLIB" >&6
mlcreech636a9952008-05-05 22:52:56 +00003593else
drh866108f2008-05-13 00:57:21 +00003594 echo "$as_me:$LINENO: result: no" >&5
3595echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003596fi
3597
mlcreech636a9952008-05-05 22:52:56 +00003598fi
3599if test -z "$ac_cv_prog_RANLIB"; then
3600 ac_ct_RANLIB=$RANLIB
3601 # Extract the first word of "ranlib", so it can be a program name with args.
3602set dummy ranlib; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003603echo "$as_me:$LINENO: checking for $ac_word" >&5
3604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003606 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003607else
3608 if test -n "$ac_ct_RANLIB"; then
3609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003618 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh866108f2008-05-13 00:57:21 +00003619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003620 break 2
3621 fi
3622done
3623done
mlcreech636a9952008-05-05 22:52:56 +00003624
drh866108f2008-05-13 00:57:21 +00003625 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
mlcreech636a9952008-05-05 22:52:56 +00003626fi
3627fi
3628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3629if test -n "$ac_ct_RANLIB"; then
drh866108f2008-05-13 00:57:21 +00003630 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3631echo "${ECHO_T}$ac_ct_RANLIB" >&6
mlcreech636a9952008-05-05 22:52:56 +00003632else
drh866108f2008-05-13 00:57:21 +00003633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003635fi
3636
drh866108f2008-05-13 00:57:21 +00003637 RANLIB=$ac_ct_RANLIB
mlcreech636a9952008-05-05 22:52:56 +00003638else
3639 RANLIB="$ac_cv_prog_RANLIB"
3640fi
3641
3642test -z "$RANLIB" && RANLIB=:
3643
3644
3645
3646
3647
3648
3649# Determine commands to create old-style static archives.
3650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3651old_postinstall_cmds='chmod 644 $oldlib'
3652old_postuninstall_cmds=
3653
3654if test -n "$RANLIB"; then
3655 case $host_os in
3656 openbsd*)
3657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3658 ;;
3659 *)
3660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3661 ;;
3662 esac
3663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3664fi
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
a.rottmann9bc8b932004-02-29 15:18:31 +00003699# If no C compiler was specified, use CC.
3700LTCC=${LTCC-"$CC"}
3701
vapier7f19c022007-02-17 14:46:31 +00003702# If no C compiler flags were specified, use CFLAGS.
3703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3704
a.rottmann9bc8b932004-02-29 15:18:31 +00003705# Allow CC to be a program name with arguments.
3706compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003707
drh71eb93e2001-09-28 01:34:43 +00003708
mlcreech636a9952008-05-05 22:52:56 +00003709# Check for command to grab the raw symbol name followed by C symbol from nm.
drh866108f2008-05-13 00:57:21 +00003710echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
3711echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003712if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003713 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003714else
3715
3716# These are sane defaults that work on at least a few old systems.
3717# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3718
3719# Character class describing NM global symbol codes.
3720symcode='[BCDEGRST]'
3721
3722# Regexp to match symbols that can be accessed directly from C.
3723sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3724
3725# Define system-specific variables.
3726case $host_os in
3727aix*)
3728 symcode='[BCDT]'
3729 ;;
3730cygwin* | mingw* | pw32*)
3731 symcode='[ABCDGISTW]'
3732 ;;
3733hpux*)
3734 if test "$host_cpu" = ia64; then
3735 symcode='[ABCDEGRST]'
3736 fi
3737 ;;
3738irix* | nonstopux*)
3739 symcode='[BCDEGRST]'
3740 ;;
3741osf*)
3742 symcode='[BCDEGQRST]'
3743 ;;
3744solaris*)
3745 symcode='[BDRT]'
3746 ;;
3747sco3.2v5*)
3748 symcode='[DT]'
3749 ;;
3750sysv4.2uw2*)
3751 symcode='[DT]'
3752 ;;
3753sysv5* | sco5v6* | unixware* | OpenUNIX*)
3754 symcode='[ABDT]'
3755 ;;
3756sysv4)
3757 symcode='[DFNSTU]'
3758 ;;
3759esac
3760
3761# If we're using GNU nm, then use its standard symbol codes.
3762case `$NM -V 2>&1` in
3763*GNU* | *'with BFD'*)
3764 symcode='[ABCDGIRSTW]' ;;
3765esac
3766
3767# Transform an extracted symbol line into a proper C declaration.
3768# Some systems (esp. on ia64) link data and code symbols differently,
3769# so use this general approach.
3770lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3771
3772# Transform an extracted symbol line into symbol name and symbol address
3773lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
3774lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3775
3776# Handle CRLF in mingw tool chain
3777opt_cr=
3778case $build_os in
3779mingw*)
3780 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3781 ;;
3782esac
3783
3784# Try without a prefix underscore, then with it.
3785for ac_symprfx in "" "_"; do
3786
3787 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3788 symxfrm="\\1 $ac_symprfx\\2 \\2"
3789
3790 # Write the raw and C identifiers.
3791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3792 # Fake it for dumpbin and say T for any non-static function
3793 # and D for any global variable.
3794 # Also find C++ and __fastcall symbols from MSVC++,
3795 # which start with @ or ?.
3796 lt_cv_sys_global_symbol_pipe="$AWK '"\
3797" {last_section=section; section=\$ 3};"\
3798" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3799" \$ 0!~/External *\|/{next};"\
3800" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3801" {if(hide[section]) next};"\
3802" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3803" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3804" s[1]~/^[@?]/{print s[1], s[1]; next};"\
3805" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3806" ' prfx=^$ac_symprfx"
3807 else
3808 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3809 fi
3810
3811 # Check to see that the pipe works correctly.
3812 pipe_works=no
3813
3814 rm -f conftest*
3815 cat > conftest.$ac_ext <<_LT_EOF
3816#ifdef __cplusplus
3817extern "C" {
3818#endif
3819char nm_test_var;
3820void nm_test_func(void);
3821void nm_test_func(void){}
3822#ifdef __cplusplus
3823}
3824#endif
3825int main(){nm_test_var='a';nm_test_func();return(0);}
3826_LT_EOF
3827
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>&5
3830 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00003832 (exit $ac_status); }; then
3833 # Now try to grab the symbols.
3834 nlist=conftest.nm
3835 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3836 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3837 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00003839 (exit $ac_status); } && test -s "$nlist"; then
3840 # Try sorting and uniquifying the output.
3841 if sort "$nlist" | uniq > "$nlist"T; then
3842 mv -f "$nlist"T "$nlist"
3843 else
3844 rm -f "$nlist"T
3845 fi
3846
3847 # Make sure that we snagged all the symbols we need.
3848 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3849 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3850 cat <<_LT_EOF > conftest.$ac_ext
3851#ifdef __cplusplus
3852extern "C" {
3853#endif
3854
3855_LT_EOF
3856 # Now generate the symbol file.
3857 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3858
3859 cat <<_LT_EOF >> conftest.$ac_ext
3860
3861/* The mapping between symbol names and symbols. */
3862const struct {
3863 const char *name;
3864 void *address;
3865}
3866lt__PROGRAM__LTX_preloaded_symbols[] =
3867{
3868 { "@PROGRAM@", (void *) 0 },
3869_LT_EOF
3870 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3871 cat <<\_LT_EOF >> conftest.$ac_ext
3872 {0, (void *) 0}
3873};
3874
3875/* This works around a problem in FreeBSD linker */
3876#ifdef FREEBSD_WORKAROUND
3877static const void *lt_preloaded_setup() {
3878 return lt__PROGRAM__LTX_preloaded_symbols;
3879}
3880#endif
3881
3882#ifdef __cplusplus
3883}
3884#endif
3885_LT_EOF
3886 # Now try linking the two files.
3887 mv conftest.$ac_objext conftstm.$ac_objext
3888 lt_save_LIBS="$LIBS"
3889 lt_save_CFLAGS="$CFLAGS"
3890 LIBS="conftstm.$ac_objext"
3891 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00003896 (exit $ac_status); } && test -s conftest${ac_exeext}; then
3897 pipe_works=yes
3898 fi
3899 LIBS="$lt_save_LIBS"
3900 CFLAGS="$lt_save_CFLAGS"
3901 else
3902 echo "cannot find nm_test_func in $nlist" >&5
3903 fi
3904 else
3905 echo "cannot find nm_test_var in $nlist" >&5
3906 fi
3907 else
3908 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3909 fi
3910 else
3911 echo "$progname: failed program was:" >&5
3912 cat conftest.$ac_ext >&5
3913 fi
3914 rm -rf conftest* conftst*
3915
3916 # Do not use the global_symbol_pipe unless it works.
3917 if test "$pipe_works" = yes; then
3918 break
3919 else
3920 lt_cv_sys_global_symbol_pipe=
3921 fi
3922done
3923
3924fi
3925
3926if test -z "$lt_cv_sys_global_symbol_pipe"; then
3927 lt_cv_sys_global_symbol_to_cdecl=
3928fi
3929if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh866108f2008-05-13 00:57:21 +00003930 echo "$as_me:$LINENO: result: failed" >&5
3931echo "${ECHO_T}failed" >&6
mlcreech636a9952008-05-05 22:52:56 +00003932else
drh866108f2008-05-13 00:57:21 +00003933 echo "$as_me:$LINENO: result: ok" >&5
3934echo "${ECHO_T}ok" >&6
mlcreech636a9952008-05-05 22:52:56 +00003935fi
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
drh866108f2008-05-13 00:57:21 +00003959# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003960if test "${enable_libtool_lock+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003961 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003962
drh866108f2008-05-13 00:57:21 +00003963fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00003964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003965
a.rottmann9bc8b932004-02-29 15:18:31 +00003966# Some flags need to be propagated to the compiler or linker for good
3967# libtool support.
3968case $host in
3969ia64-*-hpux*)
3970 # Find out which ABI we are using.
3971 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003973 (eval $ac_compile) 2>&5
3974 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003976 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003977 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00003978 *ELF-32*)
3979 HPUX_IA64_MODE="32"
3980 ;;
3981 *ELF-64*)
3982 HPUX_IA64_MODE="64"
3983 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003984 esac
3985 fi
3986 rm -rf conftest*
3987 ;;
3988*-*-irix6*)
3989 # Find out which ABI we are using.
drh866108f2008-05-13 00:57:21 +00003990 echo '#line 3996 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003993 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003995 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00003996 if test "$lt_cv_prog_gnu_ld" = yes; then
3997 case `/usr/bin/file conftest.$ac_objext` in
3998 *32-bit*)
3999 LD="${LD-ld} -melf32bsmip"
4000 ;;
4001 *N32*)
4002 LD="${LD-ld} -melf32bmipn32"
4003 ;;
4004 *64-bit*)
4005 LD="${LD-ld} -melf64bmip"
4006 ;;
4007 esac
4008 else
4009 case `/usr/bin/file conftest.$ac_objext` in
4010 *32-bit*)
4011 LD="${LD-ld} -32"
4012 ;;
4013 *N32*)
4014 LD="${LD-ld} -n32"
4015 ;;
4016 *64-bit*)
4017 LD="${LD-ld} -64"
4018 ;;
4019 esac
4020 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004021 fi
4022 rm -rf conftest*
4023 ;;
drh71eb93e2001-09-28 01:34:43 +00004024
mlcreech636a9952008-05-05 22:52:56 +00004025x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4026s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004027 # Find out which ABI we are using.
4028 echo 'int i;' > conftest.$ac_ext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030 (eval $ac_compile) 2>&5
4031 ac_status=$?
drh866108f2008-05-13 00:57:21 +00004032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004033 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004034 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00004035 *32-bit*)
4036 case $host in
4037 x86_64-*kfreebsd*-gnu)
4038 LD="${LD-ld} -m elf_i386_fbsd"
4039 ;;
4040 x86_64-*linux*)
4041 LD="${LD-ld} -m elf_i386"
4042 ;;
4043 ppc64-*linux*|powerpc64-*linux*)
4044 LD="${LD-ld} -m elf32ppclinux"
4045 ;;
4046 s390x-*linux*)
4047 LD="${LD-ld} -m elf_s390"
4048 ;;
4049 sparc64-*linux*)
4050 LD="${LD-ld} -m elf32_sparc"
4051 ;;
4052 esac
4053 ;;
4054 *64-bit*)
4055 case $host in
4056 x86_64-*kfreebsd*-gnu)
4057 LD="${LD-ld} -m elf_x86_64_fbsd"
4058 ;;
4059 x86_64-*linux*)
4060 LD="${LD-ld} -m elf_x86_64"
4061 ;;
4062 ppc*-*linux*|powerpc*-*linux*)
4063 LD="${LD-ld} -m elf64ppc"
4064 ;;
4065 s390*-*linux*|s390*-*tpf*)
4066 LD="${LD-ld} -m elf64_s390"
4067 ;;
4068 sparc*-*linux*)
4069 LD="${LD-ld} -m elf64_sparc"
4070 ;;
4071 esac
4072 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004073 esac
4074 fi
4075 rm -rf conftest*
4076 ;;
drh71eb93e2001-09-28 01:34:43 +00004077
a.rottmann9bc8b932004-02-29 15:18:31 +00004078*-*-sco3.2v5*)
4079 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4080 SAVE_CFLAGS="$CFLAGS"
4081 CFLAGS="$CFLAGS -belf"
drh866108f2008-05-13 00:57:21 +00004082 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4083echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004084if test "${lt_cv_cc_needs_belf+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004085 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004086else
4087 ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00004092
a.rottmann9bc8b932004-02-29 15:18:31 +00004093 cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h. */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004099
a.rottmann9bc8b932004-02-29 15:18:31 +00004100int
4101main ()
drh71eb93e2001-09-28 01:34:43 +00004102{
drh71eb93e2001-09-28 01:34:43 +00004103
a.rottmann9bc8b932004-02-29 15:18:31 +00004104 ;
4105 return 0;
drh71eb93e2001-09-28 01:34:43 +00004106}
a.rottmann9bc8b932004-02-29 15:18:31 +00004107_ACEOF
4108rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00004109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try='test -s conftest$ac_exeext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004130 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00004131else
drh866108f2008-05-13 00:57:21 +00004132 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004133sed 's/^/| /' conftest.$ac_ext >&5
4134
drh866108f2008-05-13 00:57:21 +00004135lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00004136fi
drh866108f2008-05-13 00:57:21 +00004137rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00004138 conftest$ac_exeext conftest.$ac_ext
4139 ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
drh71eb93e2001-09-28 01:34:43 +00004145fi
drh866108f2008-05-13 00:57:21 +00004146echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4147echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004148 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4149 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4150 CFLAGS="$SAVE_CFLAGS"
4151 fi
4152 ;;
vapier7f19c022007-02-17 14:46:31 +00004153sparc*-*solaris*)
4154 # Find out which ABI we are using.
4155 echo 'int i;' > conftest.$ac_ext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4158 ac_status=$?
drh866108f2008-05-13 00:57:21 +00004159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00004160 (exit $ac_status); }; then
4161 case `/usr/bin/file conftest.o` in
4162 *64-bit*)
4163 case $lt_cv_prog_gnu_ld in
4164 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00004165 *)
4166 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4167 LD="${LD-ld} -64"
4168 fi
4169 ;;
vapier7f19c022007-02-17 14:46:31 +00004170 esac
4171 ;;
4172 esac
4173 fi
4174 rm -rf conftest*
4175 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004176esac
4177
4178need_locks="$enable_libtool_lock"
4179
drh71eb93e2001-09-28 01:34:43 +00004180
mlcreech636a9952008-05-05 22:52:56 +00004181 case $host_os in
4182 rhapsody* | darwin*)
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
4185set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004186echo "$as_me:$LINENO: checking for $ac_word" >&5
4187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004188if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004189 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004190else
4191 if test -n "$DSYMUTIL"; then
4192 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004201 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh866108f2008-05-13 00:57:21 +00004202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004203 break 2
4204 fi
4205done
4206done
mlcreech636a9952008-05-05 22:52:56 +00004207
4208fi
4209fi
4210DSYMUTIL=$ac_cv_prog_DSYMUTIL
4211if test -n "$DSYMUTIL"; then
drh866108f2008-05-13 00:57:21 +00004212 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
4213echo "${ECHO_T}$DSYMUTIL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004214else
drh866108f2008-05-13 00:57:21 +00004215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004217fi
4218
mlcreech636a9952008-05-05 22:52:56 +00004219fi
4220if test -z "$ac_cv_prog_DSYMUTIL"; then
4221 ac_ct_DSYMUTIL=$DSYMUTIL
4222 # Extract the first word of "dsymutil", so it can be a program name with args.
4223set dummy dsymutil; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004224echo "$as_me:$LINENO: checking for $ac_word" >&5
4225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004226if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004227 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004228else
4229 if test -n "$ac_ct_DSYMUTIL"; then
4230 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004239 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh866108f2008-05-13 00:57:21 +00004240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004241 break 2
4242 fi
4243done
4244done
mlcreech636a9952008-05-05 22:52:56 +00004245
drh866108f2008-05-13 00:57:21 +00004246 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
mlcreech636a9952008-05-05 22:52:56 +00004247fi
4248fi
4249ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
4250if test -n "$ac_ct_DSYMUTIL"; then
drh866108f2008-05-13 00:57:21 +00004251 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
4252echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004253else
drh866108f2008-05-13 00:57:21 +00004254 echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004256fi
4257
drh866108f2008-05-13 00:57:21 +00004258 DSYMUTIL=$ac_ct_DSYMUTIL
mlcreech636a9952008-05-05 22:52:56 +00004259else
4260 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
4261fi
4262
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
4265set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004266echo "$as_me:$LINENO: checking for $ac_word" >&5
4267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004268if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004269 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004270else
4271 if test -n "$NMEDIT"; then
4272 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004281 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh866108f2008-05-13 00:57:21 +00004282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004283 break 2
4284 fi
4285done
4286done
mlcreech636a9952008-05-05 22:52:56 +00004287
4288fi
4289fi
4290NMEDIT=$ac_cv_prog_NMEDIT
4291if test -n "$NMEDIT"; then
drh866108f2008-05-13 00:57:21 +00004292 echo "$as_me:$LINENO: result: $NMEDIT" >&5
4293echo "${ECHO_T}$NMEDIT" >&6
mlcreech636a9952008-05-05 22:52:56 +00004294else
drh866108f2008-05-13 00:57:21 +00004295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004297fi
4298
mlcreech636a9952008-05-05 22:52:56 +00004299fi
4300if test -z "$ac_cv_prog_NMEDIT"; then
4301 ac_ct_NMEDIT=$NMEDIT
4302 # Extract the first word of "nmedit", so it can be a program name with args.
4303set dummy nmedit; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004304echo "$as_me:$LINENO: checking for $ac_word" >&5
4305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004306if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004307 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004308else
4309 if test -n "$ac_ct_NMEDIT"; then
4310 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004319 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh866108f2008-05-13 00:57:21 +00004320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004321 break 2
4322 fi
4323done
4324done
mlcreech636a9952008-05-05 22:52:56 +00004325
drh866108f2008-05-13 00:57:21 +00004326 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
mlcreech636a9952008-05-05 22:52:56 +00004327fi
4328fi
4329ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
4330if test -n "$ac_ct_NMEDIT"; then
drh866108f2008-05-13 00:57:21 +00004331 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
4332echo "${ECHO_T}$ac_ct_NMEDIT" >&6
mlcreech636a9952008-05-05 22:52:56 +00004333else
drh866108f2008-05-13 00:57:21 +00004334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004336fi
4337
drh866108f2008-05-13 00:57:21 +00004338 NMEDIT=$ac_ct_NMEDIT
mlcreech636a9952008-05-05 22:52:56 +00004339else
4340 NMEDIT="$ac_cv_prog_NMEDIT"
4341fi
4342
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
4345set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004346echo "$as_me:$LINENO: checking for $ac_word" >&5
4347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004348if test "${ac_cv_prog_LIPO+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004349 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004350else
4351 if test -n "$LIPO"; then
4352 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4353else
4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004361 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh866108f2008-05-13 00:57:21 +00004362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004363 break 2
4364 fi
4365done
4366done
mlcreech636a9952008-05-05 22:52:56 +00004367
4368fi
4369fi
4370LIPO=$ac_cv_prog_LIPO
4371if test -n "$LIPO"; then
drh866108f2008-05-13 00:57:21 +00004372 echo "$as_me:$LINENO: result: $LIPO" >&5
4373echo "${ECHO_T}$LIPO" >&6
mlcreech636a9952008-05-05 22:52:56 +00004374else
drh866108f2008-05-13 00:57:21 +00004375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004377fi
4378
mlcreech636a9952008-05-05 22:52:56 +00004379fi
4380if test -z "$ac_cv_prog_LIPO"; then
4381 ac_ct_LIPO=$LIPO
4382 # Extract the first word of "lipo", so it can be a program name with args.
4383set dummy lipo; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004384echo "$as_me:$LINENO: checking for $ac_word" >&5
4385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004386if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004387 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004388else
4389 if test -n "$ac_ct_LIPO"; then
4390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004399 ac_cv_prog_ac_ct_LIPO="lipo"
drh866108f2008-05-13 00:57:21 +00004400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004401 break 2
4402 fi
4403done
4404done
mlcreech636a9952008-05-05 22:52:56 +00004405
drh866108f2008-05-13 00:57:21 +00004406 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
mlcreech636a9952008-05-05 22:52:56 +00004407fi
4408fi
4409ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
4410if test -n "$ac_ct_LIPO"; then
drh866108f2008-05-13 00:57:21 +00004411 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
4412echo "${ECHO_T}$ac_ct_LIPO" >&6
mlcreech636a9952008-05-05 22:52:56 +00004413else
drh866108f2008-05-13 00:57:21 +00004414 echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004416fi
4417
drh866108f2008-05-13 00:57:21 +00004418 LIPO=$ac_ct_LIPO
mlcreech636a9952008-05-05 22:52:56 +00004419else
4420 LIPO="$ac_cv_prog_LIPO"
4421fi
4422
4423 if test -n "$ac_tool_prefix"; then
4424 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
4425set dummy ${ac_tool_prefix}otool; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004426echo "$as_me:$LINENO: checking for $ac_word" >&5
4427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004428if test "${ac_cv_prog_OTOOL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004429 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004430else
4431 if test -n "$OTOOL"; then
4432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh866108f2008-05-13 00:57:21 +00004442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004443 break 2
4444 fi
4445done
4446done
mlcreech636a9952008-05-05 22:52:56 +00004447
4448fi
4449fi
4450OTOOL=$ac_cv_prog_OTOOL
4451if test -n "$OTOOL"; then
drh866108f2008-05-13 00:57:21 +00004452 echo "$as_me:$LINENO: result: $OTOOL" >&5
4453echo "${ECHO_T}$OTOOL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004454else
drh866108f2008-05-13 00:57:21 +00004455 echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004457fi
4458
mlcreech636a9952008-05-05 22:52:56 +00004459fi
4460if test -z "$ac_cv_prog_OTOOL"; then
4461 ac_ct_OTOOL=$OTOOL
4462 # Extract the first word of "otool", so it can be a program name with args.
4463set dummy otool; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004464echo "$as_me:$LINENO: checking for $ac_word" >&5
4465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004466if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004467 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004468else
4469 if test -n "$ac_ct_OTOOL"; then
4470 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004479 ac_cv_prog_ac_ct_OTOOL="otool"
drh866108f2008-05-13 00:57:21 +00004480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004481 break 2
4482 fi
4483done
4484done
mlcreech636a9952008-05-05 22:52:56 +00004485
drh866108f2008-05-13 00:57:21 +00004486 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
mlcreech636a9952008-05-05 22:52:56 +00004487fi
4488fi
4489ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
4490if test -n "$ac_ct_OTOOL"; then
drh866108f2008-05-13 00:57:21 +00004491 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
4492echo "${ECHO_T}$ac_ct_OTOOL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004493else
drh866108f2008-05-13 00:57:21 +00004494 echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004496fi
4497
drh866108f2008-05-13 00:57:21 +00004498 OTOOL=$ac_ct_OTOOL
mlcreech636a9952008-05-05 22:52:56 +00004499else
4500 OTOOL="$ac_cv_prog_OTOOL"
4501fi
4502
4503 if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
4505set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004506echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004508if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004509 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004510else
4511 if test -n "$OTOOL64"; then
4512 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004521 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh866108f2008-05-13 00:57:21 +00004522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004523 break 2
4524 fi
4525done
4526done
mlcreech636a9952008-05-05 22:52:56 +00004527
4528fi
4529fi
4530OTOOL64=$ac_cv_prog_OTOOL64
4531if test -n "$OTOOL64"; then
drh866108f2008-05-13 00:57:21 +00004532 echo "$as_me:$LINENO: result: $OTOOL64" >&5
4533echo "${ECHO_T}$OTOOL64" >&6
mlcreech636a9952008-05-05 22:52:56 +00004534else
drh866108f2008-05-13 00:57:21 +00004535 echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004537fi
4538
mlcreech636a9952008-05-05 22:52:56 +00004539fi
4540if test -z "$ac_cv_prog_OTOOL64"; then
4541 ac_ct_OTOOL64=$OTOOL64
4542 # Extract the first word of "otool64", so it can be a program name with args.
4543set dummy otool64; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004544echo "$as_me:$LINENO: checking for $ac_word" >&5
4545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004546if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004547 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004548else
4549 if test -n "$ac_ct_OTOOL64"; then
4550 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004559 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh866108f2008-05-13 00:57:21 +00004560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004561 break 2
4562 fi
4563done
4564done
mlcreech636a9952008-05-05 22:52:56 +00004565
drh866108f2008-05-13 00:57:21 +00004566 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
mlcreech636a9952008-05-05 22:52:56 +00004567fi
4568fi
4569ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
4570if test -n "$ac_ct_OTOOL64"; then
drh866108f2008-05-13 00:57:21 +00004571 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
4572echo "${ECHO_T}$ac_ct_OTOOL64" >&6
mlcreech636a9952008-05-05 22:52:56 +00004573else
drh866108f2008-05-13 00:57:21 +00004574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004576fi
4577
drh866108f2008-05-13 00:57:21 +00004578 OTOOL64=$ac_ct_OTOOL64
mlcreech636a9952008-05-05 22:52:56 +00004579else
4580 OTOOL64="$ac_cv_prog_OTOOL64"
4581fi
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
drh866108f2008-05-13 00:57:21 +00004609 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
4610echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004611if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004612 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004613else
4614 lt_cv_apple_cc_single_mod=no
4615 if test -z "${LT_MULTI_MODULE}"; then
4616 # By default we will add the -single_module flag. You can override
4617 # by either setting the environment variable LT_MULTI_MODULE
4618 # non-empty at configure time, or by adding -multi_module to the
4619 # link flags.
4620 rm -rf libconftest.dylib*
4621 echo "int foo(void){return 1;}" > conftest.c
4622 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4623-dynamiclib -Wl,-single_module conftest.c" >&5
4624 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4625 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
4626 _lt_result=$?
4627 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
4628 lt_cv_apple_cc_single_mod=yes
4629 else
4630 cat conftest.err >&5
4631 fi
4632 rm -rf libconftest.dylib*
4633 rm -f conftest.*
4634 fi
4635fi
drh866108f2008-05-13 00:57:21 +00004636echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
4637echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
4638 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
4639echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004640if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004641 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004642else
4643 lt_cv_ld_exported_symbols_list=no
4644 save_LDFLAGS=$LDFLAGS
4645 echo "_main" > conftest.sym
4646 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
4647 cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h. */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h. */
4653
4654int
4655main ()
4656{
4657
4658 ;
4659 return 0;
4660}
4661_ACEOF
4662rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00004663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00004665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest$ac_exeext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00004684 lt_cv_ld_exported_symbols_list=yes
4685else
drh866108f2008-05-13 00:57:21 +00004686 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00004687sed 's/^/| /' conftest.$ac_ext >&5
4688
drh866108f2008-05-13 00:57:21 +00004689lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00004690fi
drh866108f2008-05-13 00:57:21 +00004691rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00004692 conftest$ac_exeext conftest.$ac_ext
4693 LDFLAGS="$save_LDFLAGS"
4694
4695fi
drh866108f2008-05-13 00:57:21 +00004696echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
4697echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
mlcreech636a9952008-05-05 22:52:56 +00004698 case $host_os in
4699 rhapsody* | darwin1.[012])
4700 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
4701 darwin1.*)
4702 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4703 darwin*) # darwin 5.x on
4704 # if running on 10.5 or later, the deployment target defaults
4705 # to the OS version, if on x86, and 10.4, the deployment
4706 # target defaults to 10.4. Don't you love it?
4707 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
4708 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
4709 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4710 10.[012]*)
4711 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4712 10.*)
4713 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4714 esac
4715 ;;
4716 esac
4717 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
4718 _lt_dar_single_mod='$single_module'
4719 fi
4720 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
4721 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
4722 else
4723 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
4724 fi
4725 if test "$DSYMUTIL" != ":"; then
4726 _lt_dsymutil='~$DSYMUTIL $lib || :'
4727 else
4728 _lt_dsymutil=
4729 fi
4730 ;;
4731 esac
4732
a.rottmann84e63352003-03-24 09:42:16 +00004733ac_ext=c
4734ac_cpp='$CPP $CPPFLAGS'
4735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh866108f2008-05-13 00:57:21 +00004738echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4739echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004740# On Suns, sometimes $CPP names a directory.
4741if test -n "$CPP" && test -d "$CPP"; then
4742 CPP=
4743fi
4744if test -z "$CPP"; then
4745 if test "${ac_cv_prog_CPP+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004746 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00004747else
a.rottmann84e63352003-03-24 09:42:16 +00004748 # Double quotes because CPP needs to be expanded
4749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4750 do
4751 ac_preproc_ok=false
4752for ac_c_preproc_warn_flag in '' yes
4753do
4754 # Use a header file that comes with gcc, so configuring glibc
4755 # with a fresh cross-compiler works.
4756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757 # <limits.h> exists even on freestanding compilers.
4758 # On the NeXT, cc -E runs the code through the compiler's parser,
4759 # not just through cpp. "Syntax error" is here to catch this case.
4760 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004761/* confdefs.h. */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h. */
4766#ifdef __STDC__
4767# include <limits.h>
4768#else
4769# include <assert.h>
4770#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004771 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004772_ACEOF
drh866108f2008-05-13 00:57:21 +00004773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } >/dev/null; then
4781 if test -s conftest.err; then
4782 ac_cpp_err=$ac_c_preproc_warn_flag
4783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4784 else
4785 ac_cpp_err=
4786 fi
4787else
4788 ac_cpp_err=yes
4789fi
4790if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004791 :
4792else
drh866108f2008-05-13 00:57:21 +00004793 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 # Broken: fails on valid input.
4797continue
4798fi
4799rm -f conftest.err conftest.$ac_ext
4800
drh866108f2008-05-13 00:57:21 +00004801 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann84e63352003-03-24 09:42:16 +00004802 # can be detected and how.
4803 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h. */
4809#include <ac_nonexistent.h>
4810_ACEOF
drh866108f2008-05-13 00:57:21 +00004811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } >/dev/null; then
4819 if test -s conftest.err; then
4820 ac_cpp_err=$ac_c_preproc_warn_flag
4821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4822 else
4823 ac_cpp_err=
4824 fi
4825else
4826 ac_cpp_err=yes
4827fi
4828if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004829 # Broken: success on invalid input.
4830continue
4831else
drh866108f2008-05-13 00:57:21 +00004832 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004833sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 # Passes both tests.
4836ac_preproc_ok=:
4837break
4838fi
4839rm -f conftest.err conftest.$ac_ext
4840
4841done
4842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843rm -f conftest.err conftest.$ac_ext
4844if $ac_preproc_ok; then
4845 break
4846fi
4847
4848 done
4849 ac_cv_prog_CPP=$CPP
4850
4851fi
4852 CPP=$ac_cv_prog_CPP
4853else
4854 ac_cv_prog_CPP=$CPP
4855fi
drh866108f2008-05-13 00:57:21 +00004856echo "$as_me:$LINENO: result: $CPP" >&5
4857echo "${ECHO_T}$CPP" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004858ac_preproc_ok=false
4859for ac_c_preproc_warn_flag in '' yes
4860do
4861 # Use a header file that comes with gcc, so configuring glibc
4862 # with a fresh cross-compiler works.
4863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4864 # <limits.h> exists even on freestanding compilers.
4865 # On the NeXT, cc -E runs the code through the compiler's parser,
4866 # not just through cpp. "Syntax error" is here to catch this case.
4867 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
4873#ifdef __STDC__
4874# include <limits.h>
4875#else
4876# include <assert.h>
4877#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004878 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004879_ACEOF
drh866108f2008-05-13 00:57:21 +00004880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_c_preproc_warn_flag
4890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4891 else
4892 ac_cpp_err=
4893 fi
4894else
4895 ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004898 :
4899else
drh866108f2008-05-13 00:57:21 +00004900 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 # Broken: fails on valid input.
4904continue
4905fi
4906rm -f conftest.err conftest.$ac_ext
4907
drh866108f2008-05-13 00:57:21 +00004908 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann84e63352003-03-24 09:42:16 +00004909 # can be detected and how.
4910 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004911/* confdefs.h. */
4912_ACEOF
4913cat confdefs.h >>conftest.$ac_ext
4914cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h. */
4916#include <ac_nonexistent.h>
4917_ACEOF
drh866108f2008-05-13 00:57:21 +00004918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } >/dev/null; then
4926 if test -s conftest.err; then
4927 ac_cpp_err=$ac_c_preproc_warn_flag
4928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4929 else
4930 ac_cpp_err=
4931 fi
4932else
4933 ac_cpp_err=yes
4934fi
4935if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004936 # Broken: success on invalid input.
4937continue
4938else
drh866108f2008-05-13 00:57:21 +00004939 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 # Passes both tests.
4943ac_preproc_ok=:
4944break
4945fi
4946rm -f conftest.err conftest.$ac_ext
4947
4948done
4949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4950rm -f conftest.err conftest.$ac_ext
4951if $ac_preproc_ok; then
4952 :
4953else
drh866108f2008-05-13 00:57:21 +00004954 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00004955See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00004956echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00004957See \`config.log' for more details." >&2;}
4958 { (exit 1); exit 1; }; }
4959fi
4960
4961ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967
drh866108f2008-05-13 00:57:21 +00004968echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4969echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004970if test "${ac_cv_header_stdc+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004971 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004972else
4973 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979#include <stdlib.h>
4980#include <stdarg.h>
4981#include <string.h>
4982#include <float.h>
4983
4984int
4985main ()
4986{
4987
4988 ;
4989 return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00004993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004995 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 { ac_try='test -z "$ac_c_werror_flag"
5002 || test ! -s conftest.err'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 (eval $ac_try) 2>&5
5005 ac_status=$?
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; } &&
5008 { ac_try='test -s conftest.$ac_objext'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005014 ac_cv_header_stdc=yes
5015else
drh866108f2008-05-13 00:57:21 +00005016 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005017sed 's/^/| /' conftest.$ac_ext >&5
5018
drh866108f2008-05-13 00:57:21 +00005019ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00005020fi
drh866108f2008-05-13 00:57:21 +00005021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005022
5023if test $ac_cv_header_stdc = yes; then
5024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5025 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005026/* confdefs.h. */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h. */
5031#include <string.h>
5032
5033_ACEOF
5034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5035 $EGREP "memchr" >/dev/null 2>&1; then
5036 :
5037else
5038 ac_cv_header_stdc=no
5039fi
5040rm -f conftest*
5041
5042fi
5043
5044if test $ac_cv_header_stdc = yes; then
5045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5046 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005047/* confdefs.h. */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h. */
5052#include <stdlib.h>
5053
5054_ACEOF
5055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056 $EGREP "free" >/dev/null 2>&1; then
5057 :
5058else
5059 ac_cv_header_stdc=no
5060fi
5061rm -f conftest*
5062
5063fi
5064
5065if test $ac_cv_header_stdc = yes; then
5066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5067 if test "$cross_compiling" = yes; then
5068 :
5069else
5070 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076#include <ctype.h>
5077#if ((' ' & 0x0FF) == 0x020)
5078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5080#else
5081# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00005082 (('a' <= (c) && (c) <= 'i') \
5083 || ('j' <= (c) && (c) <= 'r') \
5084 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00005085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5086#endif
5087
5088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5089int
5090main ()
5091{
5092 int i;
5093 for (i = 0; i < 256; i++)
5094 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00005095 || toupper (i) != TOUPPER (i))
drh866108f2008-05-13 00:57:21 +00005096 exit(2);
5097 exit (0);
a.rottmann84e63352003-03-24 09:42:16 +00005098}
5099_ACEOF
5100rm -f conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00005101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102 (eval $ac_link) 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00005103 ac_status=$?
drh866108f2008-05-13 00:57:21 +00005104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh866108f2008-05-13 00:57:21 +00005106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00005108 ac_status=$?
drh866108f2008-05-13 00:57:21 +00005109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005110 (exit $ac_status); }; }; then
5111 :
5112else
drh866108f2008-05-13 00:57:21 +00005113 echo "$as_me: program exited with status $ac_status" >&5
5114echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117( exit $ac_status )
5118ac_cv_header_stdc=no
5119fi
drh866108f2008-05-13 00:57:21 +00005120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005121fi
5122fi
drh866108f2008-05-13 00:57:21 +00005123fi
5124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5125echo "${ECHO_T}$ac_cv_header_stdc" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005126if test $ac_cv_header_stdc = yes; then
5127
5128cat >>confdefs.h <<\_ACEOF
5129#define STDC_HEADERS 1
5130_ACEOF
5131
5132fi
5133
5134# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00005145 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00005146do
drh866108f2008-05-13 00:57:21 +00005147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5148echo "$as_me:$LINENO: checking for $ac_header" >&5
5149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5150if eval "test \"\${$as_ac_Header+set}\" = set"; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005152else
5153 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005154/* confdefs.h. */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h. */
5159$ac_includes_default
5160
5161#include <$ac_header>
5162_ACEOF
5163rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00005164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005166 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -z "$ac_c_werror_flag"
5173 || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005185 eval "$as_ac_Header=yes"
5186else
drh866108f2008-05-13 00:57:21 +00005187 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005188sed 's/^/| /' conftest.$ac_ext >&5
5189
drh866108f2008-05-13 00:57:21 +00005190eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00005191fi
drh866108f2008-05-13 00:57:21 +00005192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005193fi
drh866108f2008-05-13 00:57:21 +00005194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5196if test `eval echo '${'$as_ac_Header'}'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00005197 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +00005198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00005199_ACEOF
5200
5201fi
5202
5203done
5204
5205
5206
5207for ac_header in dlfcn.h
5208do
drh866108f2008-05-13 00:57:21 +00005209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210echo "$as_me:$LINENO: checking for $ac_header" >&5
5211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5212if eval "test \"\${$as_ac_Header+set}\" = set"; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005214else
mlcreech636a9952008-05-05 22:52:56 +00005215 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005216/* confdefs.h. */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h. */
5221$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00005222
a.rottmann84e63352003-03-24 09:42:16 +00005223#include <$ac_header>
5224_ACEOF
5225rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00005226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005228 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try='test -z "$ac_c_werror_flag"
5235 || test ! -s conftest.err'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; } &&
5241 { ac_try='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00005247 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00005248else
drh866108f2008-05-13 00:57:21 +00005249 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005250sed 's/^/| /' conftest.$ac_ext >&5
5251
drh866108f2008-05-13 00:57:21 +00005252eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00005253fi
drh866108f2008-05-13 00:57:21 +00005254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005255fi
drh866108f2008-05-13 00:57:21 +00005256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5258if test `eval echo '${'$as_ac_Header'}'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00005259 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +00005260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00005261_ACEOF
5262
5263fi
5264
drh71eb93e2001-09-28 01:34:43 +00005265done
5266
drh71eb93e2001-09-28 01:34:43 +00005267
drh71eb93e2001-09-28 01:34:43 +00005268
mlcreech636a9952008-05-05 22:52:56 +00005269# Set options
mlcreech94984912008-03-04 19:03:08 +00005270
drh71eb93e2001-09-28 01:34:43 +00005271
drh71eb93e2001-09-28 01:34:43 +00005272
mlcreech636a9952008-05-05 22:52:56 +00005273 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00005274
a.rottmann9bc8b932004-02-29 15:18:31 +00005275
mlcreech636a9952008-05-05 22:52:56 +00005276 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005277
a.rottmann9bc8b932004-02-29 15:18:31 +00005278
drh866108f2008-05-13 00:57:21 +00005279 # Check whether --enable-shared or --disable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00005280if test "${enable_shared+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005281 enableval="$enable_shared"
5282 p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00005283 case $enableval in
5284 yes) enable_shared=yes ;;
5285 no) enable_shared=no ;;
5286 *)
5287 enable_shared=no
5288 # Look at the argument we got. We use all the common list separators.
5289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5290 for pkg in $enableval; do
5291 IFS="$lt_save_ifs"
5292 if test "X$pkg" = "X$p"; then
5293 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00005294 fi
mlcreech636a9952008-05-05 22:52:56 +00005295 done
5296 IFS="$lt_save_ifs"
5297 ;;
5298 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00005299else
mlcreech636a9952008-05-05 22:52:56 +00005300 enable_shared=yes
drh866108f2008-05-13 00:57:21 +00005301fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00005302
mlcreech636a9952008-05-05 22:52:56 +00005303
5304
5305
5306
5307
5308
5309
drh866108f2008-05-13 00:57:21 +00005310 # Check whether --enable-static or --disable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00005311if test "${enable_static+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005312 enableval="$enable_static"
5313 p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00005314 case $enableval in
5315 yes) enable_static=yes ;;
5316 no) enable_static=no ;;
5317 *)
5318 enable_static=no
5319 # Look at the argument we got. We use all the common list separators.
5320 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5321 for pkg in $enableval; do
5322 IFS="$lt_save_ifs"
5323 if test "X$pkg" = "X$p"; then
5324 enable_static=yes
5325 fi
5326 done
5327 IFS="$lt_save_ifs"
5328 ;;
5329 esac
5330else
5331 enable_static=yes
drh866108f2008-05-13 00:57:21 +00005332fi;
mlcreech636a9952008-05-05 22:52:56 +00005333
5334
5335
5336
5337
5338
5339
5340
5341
drh866108f2008-05-13 00:57:21 +00005342# Check whether --with-pic or --without-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00005343if test "${with_pic+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005344 withval="$with_pic"
5345 pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00005346else
5347 pic_mode=default
drh866108f2008-05-13 00:57:21 +00005348fi;
mlcreech636a9952008-05-05 22:52:56 +00005349
5350test -z "$pic_mode" && pic_mode=default
5351
5352
5353
5354
5355
5356
5357
drh866108f2008-05-13 00:57:21 +00005358 # Check whether --enable-fast-install or --disable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00005359if test "${enable_fast_install+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005360 enableval="$enable_fast_install"
5361 p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00005362 case $enableval in
5363 yes) enable_fast_install=yes ;;
5364 no) enable_fast_install=no ;;
5365 *)
5366 enable_fast_install=no
5367 # Look at the argument we got. We use all the common list separators.
5368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5369 for pkg in $enableval; do
5370 IFS="$lt_save_ifs"
5371 if test "X$pkg" = "X$p"; then
5372 enable_fast_install=yes
5373 fi
5374 done
5375 IFS="$lt_save_ifs"
5376 ;;
5377 esac
5378else
5379 enable_fast_install=yes
drh866108f2008-05-13 00:57:21 +00005380fi;
mlcreech636a9952008-05-05 22:52:56 +00005381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391# This can be used to rebuild libtool when needed
5392LIBTOOL_DEPS="$ltmain"
5393
5394# Always use our own libtool.
5395LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421test -z "$LN_S" && LN_S="ln -s"
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436if test -n "${ZSH_VERSION+set}" ; then
5437 setopt NO_GLOB_SUBST
5438fi
5439
drh866108f2008-05-13 00:57:21 +00005440echo "$as_me:$LINENO: checking for objdir" >&5
5441echo $ECHO_N "checking for objdir... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005442if test "${lt_cv_objdir+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005443 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005444else
5445 rm -f .libs 2>/dev/null
5446mkdir .libs 2>/dev/null
5447if test -d .libs; then
5448 lt_cv_objdir=.libs
5449else
5450 # MS-DOS does not allow filenames that begin with a dot.
5451 lt_cv_objdir=_libs
5452fi
5453rmdir .libs 2>/dev/null
5454fi
drh866108f2008-05-13 00:57:21 +00005455echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5456echo "${ECHO_T}$lt_cv_objdir" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005457objdir=$lt_cv_objdir
5458
5459
5460
5461
5462
mlcreech636a9952008-05-05 22:52:56 +00005463cat >>confdefs.h <<_ACEOF
5464#define LT_OBJDIR "$lt_cv_objdir/"
5465_ACEOF
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
a.rottmann9bc8b932004-02-29 15:18:31 +00005483case $host_os in
5484aix3*)
5485 # AIX sometimes has problems with the GCC collect2 program. For some
5486 # reason, if we set the COLLECT_NAMES environment variable, the problems
5487 # vanish in a puff of smoke.
5488 if test "X${COLLECT_NAMES+set}" != Xset; then
5489 COLLECT_NAMES=
5490 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005491 fi
5492 ;;
5493esac
5494
a.rottmann9bc8b932004-02-29 15:18:31 +00005495# Sed substitution that helps us do robust quoting. It backslashifies
5496# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00005497sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00005498
5499# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00005500double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00005501
5502# Sed substitution to delay expansion of an escaped shell variable in a
5503# double_quote_subst'ed string.
5504delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5505
mlcreech636a9952008-05-05 22:52:56 +00005506# Sed substitution to delay expansion of an escaped single quote.
5507delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5508
a.rottmann9bc8b932004-02-29 15:18:31 +00005509# Sed substitution to avoid accidental globbing in evaled expressions
5510no_glob_subst='s/\*/\\\*/g'
5511
a.rottmann9bc8b932004-02-29 15:18:31 +00005512# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00005513ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00005514can_build_shared=yes
5515
vapier7f19c022007-02-17 14:46:31 +00005516# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005517# which needs '.lib').
5518libext=a
mlcreech636a9952008-05-05 22:52:56 +00005519
a.rottmann9bc8b932004-02-29 15:18:31 +00005520with_gnu_ld="$lt_cv_prog_gnu_ld"
5521
a.rottmann84e63352003-03-24 09:42:16 +00005522old_CC="$CC"
5523old_CFLAGS="$CFLAGS"
5524
5525# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00005526test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005527test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00005528test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00005529test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00005530test -z "$ac_objext" && ac_objext=o
5531
vapier7f19c022007-02-17 14:46:31 +00005532for cc_temp in $compiler""; do
5533 case $cc_temp in
5534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5536 \-*) ;;
5537 *) break;;
5538 esac
5539done
mlcreech636a9952008-05-05 22:52:56 +00005540cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00005541
5542
a.rottmann9bc8b932004-02-29 15:18:31 +00005543# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00005544test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00005545case $deplibs_check_method in
5546file_magic*)
5547 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh866108f2008-05-13 00:57:21 +00005548 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5549echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005550if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005551 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005552else
a.rottmann9bc8b932004-02-29 15:18:31 +00005553 case $MAGIC_CMD in
5554[\\/*] | ?:[\\/]*)
5555 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5556 ;;
5557*)
5558 lt_save_MAGIC_CMD="$MAGIC_CMD"
5559 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5560 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5561 for ac_dir in $ac_dummy; do
5562 IFS="$lt_save_ifs"
5563 test -z "$ac_dir" && ac_dir=.
5564 if test -f $ac_dir/${ac_tool_prefix}file; then
5565 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5566 if test -n "$file_magic_test_file"; then
5567 case $deplibs_check_method in
5568 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00005569 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00005570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5571 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5572 $EGREP "$file_magic_regex" > /dev/null; then
5573 :
5574 else
mlcreech636a9952008-05-05 22:52:56 +00005575 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005576
a.rottmann9bc8b932004-02-29 15:18:31 +00005577*** Warning: the command libtool uses to detect shared libraries,
5578*** $file_magic_cmd, produces output that libtool cannot recognize.
5579*** The result is that libtool may fail to recognize shared libraries
5580*** as such. This will affect the creation of libtool libraries that
5581*** depend on shared libraries, but programs linked with such libtool
5582*** libraries will work regardless of this problem. Nevertheless, you
5583*** may want to report the problem to your system manager and/or to
5584*** bug-libtool@gnu.org
5585
mlcreech636a9952008-05-05 22:52:56 +00005586_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005587 fi ;;
5588 esac
5589 fi
5590 break
5591 fi
5592 done
5593 IFS="$lt_save_ifs"
5594 MAGIC_CMD="$lt_save_MAGIC_CMD"
5595 ;;
5596esac
5597fi
5598
5599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5600if test -n "$MAGIC_CMD"; then
drh866108f2008-05-13 00:57:21 +00005601 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5602echo "${ECHO_T}$MAGIC_CMD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005603else
drh866108f2008-05-13 00:57:21 +00005604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005606fi
5607
mlcreech636a9952008-05-05 22:52:56 +00005608
5609
5610
5611
a.rottmann9bc8b932004-02-29 15:18:31 +00005612if test -z "$lt_cv_path_MAGIC_CMD"; then
5613 if test -n "$ac_tool_prefix"; then
drh866108f2008-05-13 00:57:21 +00005614 echo "$as_me:$LINENO: checking for file" >&5
5615echo $ECHO_N "checking for file... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005616if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005617 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005618else
5619 case $MAGIC_CMD in
5620[\\/*] | ?:[\\/]*)
5621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5622 ;;
5623*)
5624 lt_save_MAGIC_CMD="$MAGIC_CMD"
5625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5626 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5627 for ac_dir in $ac_dummy; do
5628 IFS="$lt_save_ifs"
5629 test -z "$ac_dir" && ac_dir=.
5630 if test -f $ac_dir/file; then
5631 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5632 if test -n "$file_magic_test_file"; then
5633 case $deplibs_check_method in
5634 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00005635 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00005636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5638 $EGREP "$file_magic_regex" > /dev/null; then
5639 :
5640 else
mlcreech636a9952008-05-05 22:52:56 +00005641 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00005642
5643*** Warning: the command libtool uses to detect shared libraries,
5644*** $file_magic_cmd, produces output that libtool cannot recognize.
5645*** The result is that libtool may fail to recognize shared libraries
5646*** as such. This will affect the creation of libtool libraries that
5647*** depend on shared libraries, but programs linked with such libtool
5648*** libraries will work regardless of this problem. Nevertheless, you
5649*** may want to report the problem to your system manager and/or to
5650*** bug-libtool@gnu.org
5651
mlcreech636a9952008-05-05 22:52:56 +00005652_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005653 fi ;;
5654 esac
5655 fi
5656 break
5657 fi
5658 done
5659 IFS="$lt_save_ifs"
5660 MAGIC_CMD="$lt_save_MAGIC_CMD"
5661 ;;
5662esac
5663fi
5664
5665MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5666if test -n "$MAGIC_CMD"; then
drh866108f2008-05-13 00:57:21 +00005667 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5668echo "${ECHO_T}$MAGIC_CMD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005669else
drh866108f2008-05-13 00:57:21 +00005670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005672fi
5673
mlcreech636a9952008-05-05 22:52:56 +00005674
a.rottmann9bc8b932004-02-29 15:18:31 +00005675 else
5676 MAGIC_CMD=:
5677 fi
5678fi
5679
5680 fi
5681 ;;
5682esac
5683
a.rottmann9bc8b932004-02-29 15:18:31 +00005684# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00005685
a.rottmann9bc8b932004-02-29 15:18:31 +00005686lt_save_CC="$CC"
5687ac_ext=c
5688ac_cpp='$CPP $CPPFLAGS'
5689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
5693
5694# Source file extension for C test sources.
5695ac_ext=c
5696
5697# Object file extension for compiled C test sources.
5698objext=o
5699objext=$objext
5700
5701# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00005702lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00005703
5704# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00005705lt_simple_link_test_code='int main(){return(0);}'
5706
5707
5708
5709
5710
a.rottmann9bc8b932004-02-29 15:18:31 +00005711
5712
5713# If no C compiler was specified, use CC.
5714LTCC=${LTCC-"$CC"}
5715
vapier7f19c022007-02-17 14:46:31 +00005716# If no C compiler flags were specified, use CFLAGS.
5717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5718
a.rottmann9bc8b932004-02-29 15:18:31 +00005719# Allow CC to be a program name with arguments.
5720compiler=$CC
5721
mlcreech636a9952008-05-05 22:52:56 +00005722# Save the default compiler, since it gets overwritten when the other
5723# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5724compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00005725
vapier7f19c022007-02-17 14:46:31 +00005726# save warnings/boilerplate of simple test code
5727ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00005728echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00005729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5730_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00005731$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005732
vapier7f19c022007-02-17 14:46:31 +00005733ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00005734echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00005735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5736_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00005737$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005738
5739
mlcreech636a9952008-05-05 22:52:56 +00005740if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005741
5742lt_prog_compiler_no_builtin_flag=
5743
5744if test "$GCC" = yes; then
5745 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5746
drh866108f2008-05-13 00:57:21 +00005747 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5748echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005749if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005750 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005751else
5752 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00005753 ac_outfile=conftest.$ac_objext
5754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005755 lt_compiler_flag="-fno-rtti -fno-exceptions"
5756 # Insert the option either (1) after the last *FLAGS variable, or
5757 # (2) before a word containing "conftest.", or (3) at the end.
5758 # Note that $ac_compile itself does not contain backslashes and begins
5759 # with a dollar sign (not a hyphen), so the echo should work correctly.
5760 # The option is referenced via a variable to avoid confusing sed.
5761 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00005762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00005763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5764 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00005765 (eval echo "\"\$as_me:5771: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005766 (eval "$lt_compile" 2>conftest.err)
5767 ac_status=$?
5768 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005769 echo "$as_me:5775: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005770 if (exit $ac_status) && test -s "$ac_outfile"; then
5771 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00005772 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00005773 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00005774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005776 lt_cv_prog_compiler_rtti_exceptions=yes
5777 fi
5778 fi
mlcreech636a9952008-05-05 22:52:56 +00005779 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005780
5781fi
drh866108f2008-05-13 00:57:21 +00005782echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5783echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005784
5785if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5786 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5787else
5788 :
5789fi
5790
5791fi
5792
mlcreech636a9952008-05-05 22:52:56 +00005793
5794
5795
5796
5797
5798 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00005799lt_prog_compiler_pic=
5800lt_prog_compiler_static=
5801
drh866108f2008-05-13 00:57:21 +00005802echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5803echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005804
drh71eb93e2001-09-28 01:34:43 +00005805 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005806 lt_prog_compiler_wl='-Wl,'
5807 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005808
5809 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005810 aix*)
5811 # All AIX code is PIC.
5812 if test "$host_cpu" = ia64; then
5813 # AIX 5 now supports IA64 processor
5814 lt_prog_compiler_static='-Bstatic'
5815 fi
drh71eb93e2001-09-28 01:34:43 +00005816 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005817
drh71eb93e2001-09-28 01:34:43 +00005818 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00005819 case $host_cpu in
5820 powerpc)
5821 # see comment about AmigaOS4 .so support
5822 lt_prog_compiler_pic='-fPIC'
5823 ;;
5824 m68k)
5825 # FIXME: we need at least 68020 code to build shared libraries, but
5826 # adding the `-m68020' flag to GCC prevents building anything better,
5827 # like `-m68040'.
5828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5829 ;;
5830 esac
drh71eb93e2001-09-28 01:34:43 +00005831 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005832
mlcreech636a9952008-05-05 22:52:56 +00005833 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005834 # PIC is the default for these OSes.
5835 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005836
mlcreech636a9952008-05-05 22:52:56 +00005837 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005838 # This hack is so that the source file can tell whether it is being
5839 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00005840 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5841 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00005842 lt_prog_compiler_pic='-DDLL_EXPORT'
5843 ;;
5844
drh71eb93e2001-09-28 01:34:43 +00005845 darwin* | rhapsody*)
5846 # PIC is the default on this platform
5847 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005848 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005849 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005850
a.rottmann9bc8b932004-02-29 15:18:31 +00005851 hpux*)
5852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5853 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00005854 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00005855 hppa*64*|ia64*)
5856 # +Z the default
5857 ;;
5858 *)
5859 lt_prog_compiler_pic='-fPIC'
5860 ;;
5861 esac
5862 ;;
5863
mlcreech636a9952008-05-05 22:52:56 +00005864 interix[3-9]*)
5865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5866 # Instead, we relocate shared libraries at runtime.
5867 ;;
5868
5869 msdosdjgpp*)
5870 # Just because we use GCC doesn't mean we suddenly get shared libraries
5871 # on systems that don't support them.
5872 lt_prog_compiler_can_build_shared=no
5873 enable_shared=no
5874 ;;
5875
5876 *nto* | *qnx*)
5877 # QNX uses GNU C++, but need to define -shared option too, otherwise
5878 # it will coredump.
5879 lt_prog_compiler_pic='-fPIC -shared'
5880 ;;
5881
5882 sysv4*MP*)
5883 if test -d /usr/nec; then
5884 lt_prog_compiler_pic=-Kconform_pic
5885 fi
5886 ;;
5887
drh71eb93e2001-09-28 01:34:43 +00005888 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005889 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005890 ;;
5891 esac
5892 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005893 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005894 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005895 aix*)
5896 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005897 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005898 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005899 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005900 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005901 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005902 fi
5903 ;;
5904
mlcreech636a9952008-05-05 22:52:56 +00005905 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005906 # This hack is so that the source file can tell whether it is being
5907 # built for inclusion in a dll (and should export symbols for example).
5908 lt_prog_compiler_pic='-DDLL_EXPORT'
5909 ;;
5910
a.rottmann84e63352003-03-24 09:42:16 +00005911 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005912 lt_prog_compiler_wl='-Wl,'
5913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5914 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00005915 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00005916 hppa*64*|ia64*)
5917 # +Z the default
5918 ;;
5919 *)
5920 lt_prog_compiler_pic='+Z'
5921 ;;
5922 esac
5923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5924 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005925 ;;
5926
5927 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005928 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005929 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005930 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005931 ;;
5932
mlcreech636a9952008-05-05 22:52:56 +00005933 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00005934 case $cc_basename in
mlcreech636a9952008-05-05 22:52:56 +00005935 icc* | ecc* | ifort*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005936 lt_prog_compiler_wl='-Wl,'
5937 lt_prog_compiler_pic='-KPIC'
5938 lt_prog_compiler_static='-static'
5939 ;;
vapier7f19c022007-02-17 14:46:31 +00005940 pgcc* | pgf77* | pgf90* | pgf95*)
5941 # Portland Group compilers (*not* the Pentium gcc compiler,
5942 # which looks to be a dead project)
5943 lt_prog_compiler_wl='-Wl,'
5944 lt_prog_compiler_pic='-fpic'
5945 lt_prog_compiler_static='-Bstatic'
5946 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005947 ccc*)
5948 lt_prog_compiler_wl='-Wl,'
5949 # All Alpha code is PIC.
5950 lt_prog_compiler_static='-non_shared'
5951 ;;
mlcreech636a9952008-05-05 22:52:56 +00005952 xl*)
5953 # IBM XL C 8.0/Fortran 10.1 on PPC
5954 lt_prog_compiler_wl='-Wl,'
5955 lt_prog_compiler_pic='-qpic'
5956 lt_prog_compiler_static='-qstaticlink'
5957 ;;
5958 *)
5959 case `$CC -V 2>&1 | sed 5q` in
5960 *Sun\ C*)
5961 # Sun C 5.9
5962 lt_prog_compiler_pic='-KPIC'
5963 lt_prog_compiler_static='-Bstatic'
5964 lt_prog_compiler_wl='-Wl,'
5965 ;;
5966 *Sun\ F*)
5967 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5968 lt_prog_compiler_pic='-KPIC'
5969 lt_prog_compiler_static='-Bstatic'
5970 lt_prog_compiler_wl=''
5971 ;;
5972 esac
5973 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005974 esac
drh71eb93e2001-09-28 01:34:43 +00005975 ;;
5976
mlcreech636a9952008-05-05 22:52:56 +00005977 newsos6)
5978 lt_prog_compiler_pic='-KPIC'
5979 lt_prog_compiler_static='-Bstatic'
5980 ;;
5981
5982 *nto* | *qnx*)
5983 # QNX uses GNU C++, but need to define -shared option too, otherwise
5984 # it will coredump.
5985 lt_prog_compiler_pic='-fPIC -shared'
5986 ;;
5987
drh71eb93e2001-09-28 01:34:43 +00005988 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005989 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005990 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005991 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005992 ;;
5993
mlcreech636a9952008-05-05 22:52:56 +00005994 rdos*)
5995 lt_prog_compiler_static='-non_shared'
5996 ;;
5997
drh71eb93e2001-09-28 01:34:43 +00005998 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005999 lt_prog_compiler_pic='-KPIC'
6000 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006001 case $cc_basename in
6002 f77* | f90* | f95*)
6003 lt_prog_compiler_wl='-Qoption ld ';;
6004 *)
6005 lt_prog_compiler_wl='-Wl,';;
6006 esac
drh71eb93e2001-09-28 01:34:43 +00006007 ;;
6008
6009 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006010 lt_prog_compiler_wl='-Qoption ld '
6011 lt_prog_compiler_pic='-PIC'
6012 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006013 ;;
6014
vapier7f19c022007-02-17 14:46:31 +00006015 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006016 lt_prog_compiler_wl='-Wl,'
6017 lt_prog_compiler_pic='-KPIC'
6018 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006019 ;;
6020
6021 sysv4*MP*)
6022 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006023 lt_prog_compiler_pic='-Kconform_pic'
6024 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006025 fi
6026 ;;
6027
vapier7f19c022007-02-17 14:46:31 +00006028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6029 lt_prog_compiler_wl='-Wl,'
6030 lt_prog_compiler_pic='-KPIC'
6031 lt_prog_compiler_static='-Bstatic'
6032 ;;
6033
6034 unicos*)
6035 lt_prog_compiler_wl='-Wl,'
6036 lt_prog_compiler_can_build_shared=no
6037 ;;
6038
a.rottmann9bc8b932004-02-29 15:18:31 +00006039 uts4*)
6040 lt_prog_compiler_pic='-pic'
6041 lt_prog_compiler_static='-Bstatic'
6042 ;;
6043
drh71eb93e2001-09-28 01:34:43 +00006044 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006045 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006046 ;;
6047 esac
6048 fi
6049
mlcreech636a9952008-05-05 22:52:56 +00006050case $host_os in
6051 # For platforms which do not support PIC, -DPIC is meaningless:
6052 *djgpp*)
6053 lt_prog_compiler_pic=
6054 ;;
6055 *)
6056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6057 ;;
6058esac
drh866108f2008-05-13 00:57:21 +00006059echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6060echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mlcreech636a9952008-05-05 22:52:56 +00006061
6062
6063
6064
6065
drh71eb93e2001-09-28 01:34:43 +00006066
a.rottmann9bc8b932004-02-29 15:18:31 +00006067#
6068# Check to make sure the PIC flag actually works.
6069#
6070if test -n "$lt_prog_compiler_pic"; then
drh866108f2008-05-13 00:57:21 +00006071 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6072echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006073if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006074 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006075else
mlcreech636a9952008-05-05 22:52:56 +00006076 lt_cv_prog_compiler_pic_works=no
6077 ac_outfile=conftest.$ac_objext
6078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006079 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6080 # Insert the option either (1) after the last *FLAGS variable, or
6081 # (2) before a word containing "conftest.", or (3) at the end.
6082 # Note that $ac_compile itself does not contain backslashes and begins
6083 # with a dollar sign (not a hyphen), so the echo should work correctly.
6084 # The option is referenced via a variable to avoid confusing sed.
6085 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6088 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00006089 (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006090 (eval "$lt_compile" 2>conftest.err)
6091 ac_status=$?
6092 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006093 echo "$as_me:6099: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006094 if (exit $ac_status) && test -s "$ac_outfile"; then
6095 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006096 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006097 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00006100 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006101 fi
6102 fi
mlcreech636a9952008-05-05 22:52:56 +00006103 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006104
a.rottmann9bc8b932004-02-29 15:18:31 +00006105fi
drh866108f2008-05-13 00:57:21 +00006106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6107echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00006108
mlcreech636a9952008-05-05 22:52:56 +00006109if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006110 case $lt_prog_compiler_pic in
6111 "" | " "*) ;;
6112 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6113 esac
drh71eb93e2001-09-28 01:34:43 +00006114else
a.rottmann9bc8b932004-02-29 15:18:31 +00006115 lt_prog_compiler_pic=
6116 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006117fi
6118
a.rottmann84e63352003-03-24 09:42:16 +00006119fi
mlcreech636a9952008-05-05 22:52:56 +00006120
6121
6122
6123
6124
a.rottmann84e63352003-03-24 09:42:16 +00006125
vapier7f19c022007-02-17 14:46:31 +00006126#
6127# Check to make sure the static flag actually works.
6128#
6129wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh866108f2008-05-13 00:57:21 +00006130echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6131echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006132if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006133 echo $ECHO_N "(cached) $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +00006134else
mlcreech636a9952008-05-05 22:52:56 +00006135 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00006136 save_LDFLAGS="$LDFLAGS"
6137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00006138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6140 # The linker can only warn and ignore the option if not recognized
6141 # So say no if there are warnings
6142 if test -s conftest.err; then
6143 # Append any errors to the config.log.
6144 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00006145 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6147 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00006148 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00006149 fi
6150 else
mlcreech636a9952008-05-05 22:52:56 +00006151 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00006152 fi
6153 fi
mlcreech636a9952008-05-05 22:52:56 +00006154 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00006155 LDFLAGS="$save_LDFLAGS"
6156
6157fi
drh866108f2008-05-13 00:57:21 +00006158echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
6159echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
vapier7f19c022007-02-17 14:46:31 +00006160
mlcreech636a9952008-05-05 22:52:56 +00006161if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00006162 :
6163else
6164 lt_prog_compiler_static=
6165fi
6166
6167
mlcreech636a9952008-05-05 22:52:56 +00006168
6169
6170
6171
6172
drh866108f2008-05-13 00:57:21 +00006173 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6174echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006175if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006176 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006177else
a.rottmann9bc8b932004-02-29 15:18:31 +00006178 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00006179 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00006180 mkdir conftest
6181 cd conftest
6182 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00006183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006184
a.rottmann9bc8b932004-02-29 15:18:31 +00006185 lt_compiler_flag="-o out/conftest2.$ac_objext"
6186 # Insert the option either (1) after the last *FLAGS variable, or
6187 # (2) before a word containing "conftest.", or (3) at the end.
6188 # Note that $ac_compile itself does not contain backslashes and begins
6189 # with a dollar sign (not a hyphen), so the echo should work correctly.
6190 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6193 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00006194 (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006195 (eval "$lt_compile" 2>out/conftest.err)
6196 ac_status=$?
6197 cat out/conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006198 echo "$as_me:6204: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6200 then
6201 # The compiler can only warn and ignore the option if not recognized
6202 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00006203 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006206 lt_cv_prog_compiler_c_o=yes
6207 fi
6208 fi
vapier7f19c022007-02-17 14:46:31 +00006209 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00006210 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006211 # SGI C++ compiler will create directory out/ii_files/ for
6212 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00006213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6214 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00006215 cd ..
mlcreech636a9952008-05-05 22:52:56 +00006216 $RM -r conftest
6217 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006218
6219fi
drh866108f2008-05-13 00:57:21 +00006220echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6221echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mlcreech636a9952008-05-05 22:52:56 +00006222
6223
6224
6225
6226
6227
drh866108f2008-05-13 00:57:21 +00006228 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6229echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006230if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006231 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006232else
6233 lt_cv_prog_compiler_c_o=no
6234 $RM -r conftest 2>/dev/null
6235 mkdir conftest
6236 cd conftest
6237 mkdir out
6238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6239
6240 lt_compiler_flag="-o out/conftest2.$ac_objext"
6241 # Insert the option either (1) after the last *FLAGS variable, or
6242 # (2) before a word containing "conftest.", or (3) at the end.
6243 # Note that $ac_compile itself does not contain backslashes and begins
6244 # with a dollar sign (not a hyphen), so the echo should work correctly.
6245 lt_compile=`echo "$ac_compile" | $SED \
6246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6248 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00006249 (eval echo "\"\$as_me:6255: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00006250 (eval "$lt_compile" 2>out/conftest.err)
6251 ac_status=$?
6252 cat out/conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006253 echo "$as_me:6259: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00006254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6255 then
6256 # The compiler can only warn and ignore the option if not recognized
6257 # So say no if there are warnings
6258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6261 lt_cv_prog_compiler_c_o=yes
6262 fi
6263 fi
6264 chmod u+w . 2>&5
6265 $RM conftest*
6266 # SGI C++ compiler will create directory out/ii_files/ for
6267 # template instantiation
6268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6269 $RM out/* && rmdir out
6270 cd ..
6271 $RM -r conftest
6272 $RM conftest*
6273
6274fi
drh866108f2008-05-13 00:57:21 +00006275echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6276echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mlcreech636a9952008-05-05 22:52:56 +00006277
6278
drh71eb93e2001-09-28 01:34:43 +00006279
a.rottmann84e63352003-03-24 09:42:16 +00006280
drh71eb93e2001-09-28 01:34:43 +00006281hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006282if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006283 # do not overwrite the value of need_locks provided by the user
drh866108f2008-05-13 00:57:21 +00006284 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6285echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006286 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00006287 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6289 touch conftest.a
6290 ln conftest.a conftest.b 2>&5 || hard_links=no
6291 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh866108f2008-05-13 00:57:21 +00006292 echo "$as_me:$LINENO: result: $hard_links" >&5
6293echo "${ECHO_T}$hard_links" >&6
drh71eb93e2001-09-28 01:34:43 +00006294 if test "$hard_links" = no; then
drh866108f2008-05-13 00:57:21 +00006295 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6296echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00006297 need_locks=warn
6298 fi
6299else
6300 need_locks=no
6301fi
6302
mlcreech636a9952008-05-05 22:52:56 +00006303
6304
6305
6306
6307
drh866108f2008-05-13 00:57:21 +00006308 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6309echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006310
6311 runpath_var=
6312 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00006313 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006314 archive_cmds=
6315 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00006316 compiler_needs_object=no
6317 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006318 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00006319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6320 hardcode_automatic=no
6321 hardcode_direct=no
6322 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006323 hardcode_libdir_flag_spec=
6324 hardcode_libdir_flag_spec_ld=
6325 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00006326 hardcode_minus_L=no
6327 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00006328 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006329 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00006330 module_cmds=
6331 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00006332 old_archive_from_new_cmds=
6333 old_archive_from_expsyms_cmds=
6334 thread_safe_flag_spec=
6335 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006336 # include_expsyms should be a list of space-separated symbols to be *always*
6337 # included in the symbol list
6338 include_expsyms=
6339 # exclude_expsyms can be an extended regexp of symbols to exclude
6340 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6341 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6342 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00006343 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00006344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6345 # platforms (ab)use it in PIC code, but their linkers get confused if
6346 # the symbol is explicitly referenced. Since portable code cannot
6347 # rely on this symbol name, it's probably fine to never include it in
6348 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00006349 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00006350 extract_expsyms_cmds=
6351
6352 case $host_os in
6353 cygwin* | mingw* | pw32*)
6354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6355 # When not using gcc, we currently assume that we are using
6356 # Microsoft Visual C++.
6357 if test "$GCC" != yes; then
6358 with_gnu_ld=no
6359 fi
6360 ;;
vapier7f19c022007-02-17 14:46:31 +00006361 interix*)
6362 # we just hope/assume this is gcc and not c89 (= MSVC++)
6363 with_gnu_ld=yes
6364 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006365 openbsd*)
6366 with_gnu_ld=no
6367 ;;
6368 esac
6369
6370 ld_shlibs=yes
6371 if test "$with_gnu_ld" = yes; then
6372 # If archive_cmds runs LD, not CC, wlarc should be empty
6373 wlarc='${wl}'
6374
vapier7f19c022007-02-17 14:46:31 +00006375 # Set some defaults for GNU ld with shared library support. These
6376 # are reset later if shared libraries are not supported. Putting them
6377 # here allows them to be overridden if necessary.
6378 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00006379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00006380 export_dynamic_flag_spec='${wl}--export-dynamic'
6381 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00006382 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6383 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6384 else
6385 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00006386 fi
6387 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00006388 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00006389 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6390 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6391 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6392 *\ 2.11.*) ;; # other 2.11 versions
6393 *) supports_anon_versioning=yes ;;
6394 esac
6395
a.rottmann9bc8b932004-02-29 15:18:31 +00006396 # See if GNU ld supports shared libraries.
6397 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00006398 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006399 # On AIX/PPC, the GNU linker is very broken
6400 if test "$host_cpu" != ia64; then
6401 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00006402 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006403
6404*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6405*** to be unable to reliably create shared libraries on AIX.
6406*** Therefore, libtool is disabling shared libraries support. If you
6407*** really care for shared libraries, you may want to modify your PATH
6408*** so that a non-GNU linker is found, and then restart.
6409
mlcreech636a9952008-05-05 22:52:56 +00006410_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006411 fi
6412 ;;
6413
6414 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006415 case $host_cpu in
6416 powerpc)
6417 # see comment about AmigaOS4 .so support
6418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6419 archive_expsym_cmds=''
6420 ;;
6421 m68k)
6422 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)'
6423 hardcode_libdir_flag_spec='-L$libdir'
6424 hardcode_minus_L=yes
6425 ;;
6426 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006427 ;;
6428
6429 beos*)
mlcreech636a9952008-05-05 22:52:56 +00006430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006431 allow_undefined_flag=unsupported
6432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6433 # support --undefined. This deserves some investigation. FIXME
6434 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6435 else
6436 ld_shlibs=no
6437 fi
6438 ;;
6439
6440 cygwin* | mingw* | pw32*)
mlcreech636a9952008-05-05 22:52:56 +00006441 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00006442 # as there is no search path for DLLs.
6443 hardcode_libdir_flag_spec='-L$libdir'
6444 allow_undefined_flag=unsupported
6445 always_export_symbols=no
6446 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00006447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006448
mlcreech636a9952008-05-05 22:52:56 +00006449 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006451 # If the export-symbols file already is a .def file (1st line
6452 # is EXPORTS), use it as is; otherwise, prepend...
6453 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6454 cp $export_symbols $output_objdir/$soname.def;
6455 else
6456 echo EXPORTS > $output_objdir/$soname.def;
6457 cat $export_symbols >> $output_objdir/$soname.def;
6458 fi~
vapier7f19c022007-02-17 14:46:31 +00006459 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006460 else
6461 ld_shlibs=no
6462 fi
6463 ;;
6464
mlcreech636a9952008-05-05 22:52:56 +00006465 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00006466 hardcode_direct=no
6467 hardcode_shlibpath_var=no
6468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6469 export_dynamic_flag_spec='${wl}-E'
6470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6471 # Instead, shared libraries are loaded at an image base (0x10000000 by
6472 # default) and relocated if they conflict, which is a slow very memory
6473 # consuming and fragmenting process. To avoid this, we pick a random,
6474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6477 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6478 ;;
6479
mlcreech636a9952008-05-05 22:52:56 +00006480 gnu* | linux* | tpf* | k*bsd*-gnu)
6481 tmp_diet=no
6482 if test "$host_os" = linux-dietlibc; then
6483 case $cc_basename in
6484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6485 esac
6486 fi
6487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6488 && test "$tmp_diet" = no
6489 then
vapier7f19c022007-02-17 14:46:31 +00006490 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00006491 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00006492 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00006493 pgcc*) # Portland Group C compiler
6494 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
vapier7f19c022007-02-17 14:46:31 +00006495 tmp_addflag=' $pic_flag'
6496 ;;
6497 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00006498 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
vapier7f19c022007-02-17 14:46:31 +00006499 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00006500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00006501 tmp_addflag=' -i_dynamic' ;;
6502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6503 tmp_addflag=' -i_dynamic -nofor_main' ;;
6504 ifc* | ifort*) # Intel Fortran compiler
6505 tmp_addflag=' -nofor_main' ;;
mlcreech636a9952008-05-05 22:52:56 +00006506 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6507 tmp_sharedflag='-qmkshrobj'
6508 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00006509 esac
mlcreech636a9952008-05-05 22:52:56 +00006510 case `$CC -V 2>&1 | sed 5q` in
6511 *Sun\ C*) # Sun C 5.9
6512 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6513 compiler_needs_object=yes
6514 tmp_sharedflag='-G' ;;
6515 *Sun\ F*) # Sun Fortran 8.3
6516 tmp_sharedflag='-G' ;;
6517 esac
6518 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00006519
mlcreech636a9952008-05-05 22:52:56 +00006520 if test "x$supports_anon_versioning" = xyes; then
6521 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6523 echo "local: *; };" >> $output_objdir/$libname.ver~
6524 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6525 fi
6526
6527 case $cc_basename in
6528 xlf*)
6529 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6530 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
6531 hardcode_libdir_flag_spec=
6532 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6533 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6534 if test "x$supports_anon_versioning" = xyes; then
6535 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6537 echo "local: *; };" >> $output_objdir/$libname.ver~
6538 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6539 fi
6540 ;;
6541 esac
vapier7f19c022007-02-17 14:46:31 +00006542 else
mlcreech636a9952008-05-05 22:52:56 +00006543 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00006544 fi
6545 ;;
6546
6547 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00006548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006549 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6550 wlarc=
6551 else
6552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6554 fi
6555 ;;
6556
vapier7f19c022007-02-17 14:46:31 +00006557 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00006558 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006559 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00006560 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006561
6562*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6563*** create shared libraries on Solaris systems. Therefore, libtool
6564*** is disabling shared libraries support. We urge you to upgrade GNU
6565*** binutils to release 2.9.1 or newer. Another option is to modify
6566*** your PATH or compiler configuration so that the native linker is
6567*** used, and then restart.
6568
mlcreech636a9952008-05-05 22:52:56 +00006569_LT_EOF
6570 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6573 else
6574 ld_shlibs=no
6575 fi
6576 ;;
6577
vapier7f19c022007-02-17 14:46:31 +00006578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6579 case `$LD -v 2>&1` in
6580 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6581 ld_shlibs=no
6582 cat <<_LT_EOF 1>&2
6583
6584*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6585*** reliably create shared libraries on SCO systems. Therefore, libtool
6586*** is disabling shared libraries support. We urge you to upgrade GNU
6587*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6588*** your PATH or compiler configuration so that the native linker is
6589*** used, and then restart.
6590
6591_LT_EOF
6592 ;;
6593 *)
mlcreech636a9952008-05-05 22:52:56 +00006594 # For security reasons, it is highly recommended that you always
6595 # use absolute paths for naming shared libraries, and exclude the
6596 # DT_RUNPATH tag from executables and libraries. But doing so
6597 # requires that you compile everything twice, which is a pain.
6598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
vapier7f19c022007-02-17 14:46:31 +00006602 else
6603 ld_shlibs=no
6604 fi
6605 ;;
6606 esac
6607 ;;
6608
a.rottmann9bc8b932004-02-29 15:18:31 +00006609 sunos4*)
6610 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6611 wlarc=
6612 hardcode_direct=yes
6613 hardcode_shlibpath_var=no
6614 ;;
6615
a.rottmann9bc8b932004-02-29 15:18:31 +00006616 *)
mlcreech636a9952008-05-05 22:52:56 +00006617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6620 else
6621 ld_shlibs=no
6622 fi
6623 ;;
6624 esac
6625
vapier7f19c022007-02-17 14:46:31 +00006626 if test "$ld_shlibs" = no; then
6627 runpath_var=
6628 hardcode_libdir_flag_spec=
6629 export_dynamic_flag_spec=
6630 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006631 fi
6632 else
6633 # PORTME fill in a description of your system's linker (not GNU ld)
6634 case $host_os in
6635 aix3*)
6636 allow_undefined_flag=unsupported
6637 always_export_symbols=yes
6638 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'
6639 # Note: this linker hardcodes the directories in LIBPATH if there
6640 # are no directories specified by -L.
6641 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00006642 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006643 # Neither direct hardcoding nor static linking is supported with a
6644 # broken collect2.
6645 hardcode_direct=unsupported
6646 fi
6647 ;;
6648
mlcreech636a9952008-05-05 22:52:56 +00006649 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006650 if test "$host_cpu" = ia64; then
6651 # On IA64, the linker does run time linking by default, so we don't
6652 # have to do anything special.
6653 aix_use_runtimelinking=no
6654 exp_sym_flag='-Bexport'
6655 no_entry_flag=""
6656 else
6657 # If we're using GNU nm, then we don't want the "-C" option.
6658 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00006659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6660 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006661 else
mlcreech636a9952008-05-05 22:52:56 +00006662 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00006663 fi
6664 aix_use_runtimelinking=no
6665
6666 # Test if we are trying to use run time linking or normal
6667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6668 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00006669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00006671 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6672 aix_use_runtimelinking=yes
6673 break
6674 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006675 done
vapier7f19c022007-02-17 14:46:31 +00006676 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006677 esac
6678
6679 exp_sym_flag='-bexport'
6680 no_entry_flag='-bnoentry'
6681 fi
6682
6683 # When large executables or shared objects are built, AIX ld can
6684 # have problems creating the table of contents. If linking a library
6685 # or program results in "error TOC overflow" add -mminimal-toc to
6686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6688
6689 archive_cmds=''
6690 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00006691 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006692 hardcode_libdir_separator=':'
6693 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00006694 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00006695
6696 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00006697 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006698 # We only want to do this on AIX 4.2 and lower, the check
6699 # below for broken collect2 doesn't work under 4.3+
6700 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00006701 if test -f "$collect2name" &&
6702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00006703 then
mlcreech636a9952008-05-05 22:52:56 +00006704 # We have reworked collect2
6705 :
a.rottmann9bc8b932004-02-29 15:18:31 +00006706 else
mlcreech636a9952008-05-05 22:52:56 +00006707 # We have old collect2
6708 hardcode_direct=unsupported
6709 # It fails to find uninstalled libraries when the uninstalled
6710 # path is not listed in the libpath. Setting hardcode_minus_L
6711 # to unsupported forces relinking
6712 hardcode_minus_L=yes
6713 hardcode_libdir_flag_spec='-L$libdir'
6714 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00006715 fi
vapier7f19c022007-02-17 14:46:31 +00006716 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006717 esac
6718 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00006719 if test "$aix_use_runtimelinking" = yes; then
6720 shared_flag="$shared_flag "'${wl}-G'
6721 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006722 else
6723 # not using gcc
6724 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00006725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6726 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00006727 shared_flag='-G'
6728 else
vapier7f19c022007-02-17 14:46:31 +00006729 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006730 shared_flag='${wl}-G'
6731 else
6732 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00006733 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006734 fi
6735 fi
6736
6737 # It seems that -bexpall does not export symbols beginning with
6738 # underscore (_), so it is better to generate a list of symbols to export.
6739 always_export_symbols=yes
6740 if test "$aix_use_runtimelinking" = yes; then
6741 # Warning - without using the other runtime loading flags (-brtl),
6742 # -berok will link without error, but may produce a broken library.
6743 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00006744 # Determine the default libpath from the value encoded in an
6745 # empty executable.
6746 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006747/* confdefs.h. */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006752
a.rottmann84e63352003-03-24 09:42:16 +00006753int
6754main ()
6755{
a.rottmann9bc8b932004-02-29 15:18:31 +00006756
a.rottmann84e63352003-03-24 09:42:16 +00006757 ;
6758 return 0;
6759}
6760_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006761rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00006762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6763 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006764 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -z "$ac_c_werror_flag"
6771 || test ! -s conftest.err'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; } &&
6777 { ac_try='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006783
mlcreech636a9952008-05-05 22:52:56 +00006784lt_aix_libpath_sed='
6785 /Import File Strings/,/^$/ {
6786 /^0/ {
6787 s/^0 *\(.*\)$/\1/
6788 p
6789 }
6790 }'
6791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006792# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00006793if test -z "$aix_libpath"; then
6794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6795fi
a.rottmann84e63352003-03-24 09:42:16 +00006796else
drh866108f2008-05-13 00:57:21 +00006797 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006798sed 's/^/| /' conftest.$ac_ext >&5
6799
6800fi
drh866108f2008-05-13 00:57:21 +00006801rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 conftest$ac_exeext conftest.$ac_ext
6803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006804
mlcreech636a9952008-05-05 22:52:56 +00006805 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6806 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6807 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 if test "$host_cpu" = ia64; then
6809 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6810 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00006811 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
a.rottmann9bc8b932004-02-29 15:18:31 +00006812 else
mlcreech636a9952008-05-05 22:52:56 +00006813 # Determine the default libpath from the value encoded in an
6814 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h. */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006821
a.rottmann9bc8b932004-02-29 15:18:31 +00006822int
6823main ()
6824{
a.rottmann84e63352003-03-24 09:42:16 +00006825
a.rottmann9bc8b932004-02-29 15:18:31 +00006826 ;
6827 return 0;
6828}
6829_ACEOF
6830rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00006831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00006833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } &&
6839 { ac_try='test -z "$ac_c_werror_flag"
6840 || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006852
mlcreech636a9952008-05-05 22:52:56 +00006853lt_aix_libpath_sed='
6854 /Import File Strings/,/^$/ {
6855 /^0/ {
6856 s/^0 *\(.*\)$/\1/
6857 p
6858 }
6859 }'
6860aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006861# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00006862if test -z "$aix_libpath"; then
6863 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6864fi
a.rottmann84e63352003-03-24 09:42:16 +00006865else
drh866108f2008-05-13 00:57:21 +00006866 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006867sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006868
a.rottmann9bc8b932004-02-29 15:18:31 +00006869fi
drh866108f2008-05-13 00:57:21 +00006870rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00006871 conftest$ac_exeext conftest.$ac_ext
6872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006873
a.rottmann9bc8b932004-02-29 15:18:31 +00006874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6875 # Warning - without using the other run time loading flags,
6876 # -berok will link without error, but may produce a broken library.
6877 no_undefined_flag=' ${wl}-bernotok'
6878 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00006879 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00006880 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00006881 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00006882 # This is similar to how AIX traditionally builds its shared libraries.
6883 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann84e63352003-03-24 09:42:16 +00006884 fi
6885 fi
a.rottmann84e63352003-03-24 09:42:16 +00006886 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006887
6888 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006889 case $host_cpu in
6890 powerpc)
6891 # see comment about AmigaOS4 .so support
6892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6893 archive_expsym_cmds=''
6894 ;;
6895 m68k)
6896 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)'
6897 hardcode_libdir_flag_spec='-L$libdir'
6898 hardcode_minus_L=yes
6899 ;;
6900 esac
a.rottmann84e63352003-03-24 09:42:16 +00006901 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006902
vapier7f19c022007-02-17 14:46:31 +00006903 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006904 export_dynamic_flag_spec=-rdynamic
6905 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006906
a.rottmann9bc8b932004-02-29 15:18:31 +00006907 cygwin* | mingw* | pw32*)
6908 # When not using gcc, we currently assume that we are using
6909 # Microsoft Visual C++.
6910 # hardcode_libdir_flag_spec is actually meaningless, as there is
6911 # no search path for DLLs.
6912 hardcode_libdir_flag_spec=' '
6913 allow_undefined_flag=unsupported
6914 # Tell ltmain to make .lib files, not .a files.
6915 libext=lib
6916 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00006917 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00006919 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00006921 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00006922 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00006923 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 fix_srcfile_path='`cygpath -w "$srcfile"`'
6925 enable_shared_with_static_runtimes=yes
6926 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006927
a.rottmann9bc8b932004-02-29 15:18:31 +00006928 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00006929
6930
6931 archive_cmds_need_lc=no
6932 hardcode_direct=no
6933 hardcode_automatic=yes
6934 hardcode_shlibpath_var=unsupported
6935 whole_archive_flag_spec=''
6936 link_all_deplibs=yes
6937 allow_undefined_flag="$_lt_dar_allow_undefined"
6938 if test "$GCC" = "yes"; then
6939 output_verbose_link_cmd=echo
6940 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6941 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6942 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6943 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6944
6945 else
6946 ld_shlibs=no
6947 fi
6948
a.rottmann9bc8b932004-02-29 15:18:31 +00006949 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006950
a.rottmann9bc8b932004-02-29 15:18:31 +00006951 dgux*)
6952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6953 hardcode_libdir_flag_spec='-L$libdir'
6954 hardcode_shlibpath_var=no
6955 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006956
a.rottmann9bc8b932004-02-29 15:18:31 +00006957 freebsd1*)
6958 ld_shlibs=no
6959 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006960
a.rottmann9bc8b932004-02-29 15:18:31 +00006961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6962 # support. Future versions do this automatically, but an explicit c++rt0.o
6963 # does not break anything, and helps significantly (at the cost of a little
6964 # extra space).
6965 freebsd2.2*)
6966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6967 hardcode_libdir_flag_spec='-R$libdir'
6968 hardcode_direct=yes
6969 hardcode_shlibpath_var=no
6970 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006971
a.rottmann9bc8b932004-02-29 15:18:31 +00006972 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6973 freebsd2*)
6974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6975 hardcode_direct=yes
6976 hardcode_minus_L=yes
6977 hardcode_shlibpath_var=no
6978 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006979
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00006981 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006982 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6983 hardcode_libdir_flag_spec='-R$libdir'
6984 hardcode_direct=yes
6985 hardcode_shlibpath_var=no
6986 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006987
a.rottmann9bc8b932004-02-29 15:18:31 +00006988 hpux9*)
6989 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00006990 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00006991 else
mlcreech636a9952008-05-05 22:52:56 +00006992 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00006993 fi
6994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6995 hardcode_libdir_separator=:
6996 hardcode_direct=yes
6997
6998 # hardcode_minus_L: Not really in the search PATH,
6999 # but as the default location of the library.
7000 hardcode_minus_L=yes
7001 export_dynamic_flag_spec='${wl}-E'
7002 ;;
7003
vapier7f19c022007-02-17 14:46:31 +00007004 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007005 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007006 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7007 else
7008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7009 fi
7010 if test "$with_gnu_ld" = no; then
7011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007012 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007013 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007014 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007015 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007016 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007017 # hardcode_minus_L: Not really in the search PATH,
7018 # but as the default location of the library.
7019 hardcode_minus_L=yes
7020 fi
7021 ;;
7022
7023 hpux11*)
7024 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7025 case $host_cpu in
7026 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007027 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7028 ;;
vapier7f19c022007-02-17 14:46:31 +00007029 ia64*)
7030 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7031 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007032 *)
7033 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7034 ;;
7035 esac
7036 else
vapier7f19c022007-02-17 14:46:31 +00007037 case $host_cpu in
7038 hppa*64*)
7039 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7040 ;;
7041 ia64*)
7042 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007043 ;;
7044 *)
vapier7f19c022007-02-17 14:46:31 +00007045 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007046 ;;
7047 esac
7048 fi
7049 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7051 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007052
vapier7f19c022007-02-17 14:46:31 +00007053 case $host_cpu in
7054 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007055 hardcode_direct=no
7056 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007057 ;;
7058 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007059 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007060 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007061 export_dynamic_flag_spec='${wl}-E'
7062
7063 # hardcode_minus_L: Not really in the search PATH,
7064 # but as the default location of the library.
7065 hardcode_minus_L=yes
7066 ;;
7067 esac
7068 fi
7069 ;;
7070
7071 irix5* | irix6* | nonstopux*)
7072 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7074 # Try to use the -exported_symbol ld option, if it does not
7075 # work, assume that -exports_file does not work either and
7076 # implicitly export all symbols.
7077 save_LDFLAGS="$LDFLAGS"
7078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7079 cat >conftest.$ac_ext <<_ACEOF
7080int foo(void) {}
7081_ACEOF
7082rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00007083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7084 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00007085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00007089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -z "$ac_c_werror_flag"
7092 || test ! -s conftest.err'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; } &&
7098 { ac_try='test -s conftest$ac_exeext'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00007104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7105
7106else
drh866108f2008-05-13 00:57:21 +00007107 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00007108sed 's/^/| /' conftest.$ac_ext >&5
7109
mlcreech636a9952008-05-05 22:52:56 +00007110fi
drh866108f2008-05-13 00:57:21 +00007111rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00007112 conftest$ac_exeext conftest.$ac_ext
7113 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 else
mlcreech636a9952008-05-05 22:52:56 +00007115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007117 fi
mlcreech636a9952008-05-05 22:52:56 +00007118 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7120 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007121 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007122 link_all_deplibs=yes
7123 ;;
7124
vapier7f19c022007-02-17 14:46:31 +00007125 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7128 else
7129 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7130 fi
7131 hardcode_libdir_flag_spec='-R$libdir'
7132 hardcode_direct=yes
7133 hardcode_shlibpath_var=no
7134 ;;
7135
7136 newsos6)
7137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7138 hardcode_direct=yes
7139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7140 hardcode_libdir_separator=:
7141 hardcode_shlibpath_var=no
7142 ;;
7143
mlcreech636a9952008-05-05 22:52:56 +00007144 *nto* | *qnx*)
7145 ;;
7146
a.rottmann9bc8b932004-02-29 15:18:31 +00007147 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007148 if test -f /usr/libexec/ld.so; then
7149 hardcode_direct=yes
7150 hardcode_shlibpath_var=no
7151 hardcode_direct_absolute=yes
7152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7154 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7156 export_dynamic_flag_spec='${wl}-E'
7157 else
7158 case $host_os in
7159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7161 hardcode_libdir_flag_spec='-R$libdir'
7162 ;;
7163 *)
7164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7166 ;;
7167 esac
7168 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007169 else
mlcreech636a9952008-05-05 22:52:56 +00007170 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007171 fi
7172 ;;
7173
7174 os2*)
7175 hardcode_libdir_flag_spec='-L$libdir'
7176 hardcode_minus_L=yes
7177 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007178 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'
7179 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00007180 ;;
7181
7182 osf3*)
7183 if test "$GCC" = yes; then
7184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00007185 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007186 else
7187 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00007188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007189 fi
mlcreech636a9952008-05-05 22:52:56 +00007190 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7192 hardcode_libdir_separator=:
7193 ;;
7194
7195 osf4* | osf5*) # as osf3* with the addition of -msym flag
7196 if test "$GCC" = yes; then
7197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00007198 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200 else
7201 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00007202 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7203 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7204 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00007205
7206 # Both c and cxx compiler support -rpath directly
7207 hardcode_libdir_flag_spec='-rpath $libdir'
7208 fi
mlcreech636a9952008-05-05 22:52:56 +00007209 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007210 hardcode_libdir_separator=:
7211 ;;
7212
a.rottmann9bc8b932004-02-29 15:18:31 +00007213 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007214 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007215 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007216 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00007217 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7219 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00007220 else
mlcreech636a9952008-05-05 22:52:56 +00007221 case `$CC -V 2>&1` in
7222 *"Compilers 5.0"*)
7223 wlarc=''
7224 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7227 ;;
7228 *)
7229 wlarc='${wl}'
7230 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7232 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7233 ;;
7234 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007235 fi
7236 hardcode_libdir_flag_spec='-R$libdir'
7237 hardcode_shlibpath_var=no
7238 case $host_os in
7239 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00007240 *)
mlcreech636a9952008-05-05 22:52:56 +00007241 # The compiler driver will combine and reorder linker options,
7242 # but understands `-z linker_flag'. GCC discards it without `$wl',
7243 # but is careful enough not to reorder.
7244 # Supported since Solaris 2.6 (maybe 2.5.1?)
7245 if test "$GCC" = yes; then
7246 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7247 else
7248 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7249 fi
7250 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 esac
7252 link_all_deplibs=yes
7253 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007254
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 sunos4*)
7256 if test "x$host_vendor" = xsequent; then
7257 # Use $CC to link under sequent, because it throws in some extra .o
7258 # files that make .init and .fini sections work.
7259 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7260 else
7261 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7262 fi
7263 hardcode_libdir_flag_spec='-L$libdir'
7264 hardcode_direct=yes
7265 hardcode_minus_L=yes
7266 hardcode_shlibpath_var=no
7267 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007268
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 sysv4)
7270 case $host_vendor in
7271 sni)
7272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_direct=yes # is this really true???
7274 ;;
7275 siemens)
7276 ## LD is ld it makes a PLAMLIB
7277 ## CC just makes a GrossModule.
7278 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7279 reload_cmds='$CC -r -o $output$reload_objs'
7280 hardcode_direct=no
7281 ;;
7282 motorola)
7283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7285 ;;
7286 esac
7287 runpath_var='LD_RUN_PATH'
7288 hardcode_shlibpath_var=no
7289 ;;
7290
7291 sysv4.3*)
7292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7293 hardcode_shlibpath_var=no
7294 export_dynamic_flag_spec='-Bexport'
7295 ;;
7296
7297 sysv4*MP*)
7298 if test -d /usr/nec; then
7299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300 hardcode_shlibpath_var=no
7301 runpath_var=LD_RUN_PATH
7302 hardcode_runpath_var=yes
7303 ld_shlibs=yes
7304 fi
7305 ;;
7306
mlcreech636a9952008-05-05 22:52:56 +00007307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00007308 no_undefined_flag='${wl}-z,text'
7309 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007310 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007311 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007312
a.rottmann9bc8b932004-02-29 15:18:31 +00007313 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007316 else
vapier7f19c022007-02-17 14:46:31 +00007317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007319 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007320 ;;
7321
vapier7f19c022007-02-17 14:46:31 +00007322 sysv5* | sco3.2v5* | sco5v6*)
7323 # Note: We can NOT use -z defs as we might desire, because we do not
7324 # link with -lc, and that would cause any symbols used from libc to
7325 # always be unresolved, which means just about no library would
7326 # ever link correctly. If we're not using GNU ld we use -z text
7327 # though, which does catch some bad symbols but isn't as heavy-handed
7328 # as -z defs.
7329 no_undefined_flag='${wl}-z,text'
7330 allow_undefined_flag='${wl}-z,nodefs'
7331 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007332 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00007333 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00007334 hardcode_libdir_separator=':'
7335 link_all_deplibs=yes
7336 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007337 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007338
7339 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007340 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7341 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007342 else
mlcreech636a9952008-05-05 22:52:56 +00007343 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007345 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007346 ;;
7347
7348 uts4*)
7349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_shlibpath_var=no
7352 ;;
7353
7354 *)
7355 ld_shlibs=no
7356 ;;
7357 esac
mlcreech636a9952008-05-05 22:52:56 +00007358
7359 if test x$host_vendor = xsni; then
7360 case $host in
7361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7362 export_dynamic_flag_spec='${wl}-Blargedynsym'
7363 ;;
7364 esac
7365 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007366 fi
7367
drh866108f2008-05-13 00:57:21 +00007368echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7369echo "${ECHO_T}$ld_shlibs" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007370test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007371
mlcreech636a9952008-05-05 22:52:56 +00007372with_gnu_ld=$with_gnu_ld
7373
7374
a.rottmann9bc8b932004-02-29 15:18:31 +00007375#
7376# Do we need to explicitly link libc?
7377#
7378case "x$archive_cmds_need_lc" in
7379x|xyes)
7380 # Assume -lc should be added
7381 archive_cmds_need_lc=yes
7382
7383 if test "$enable_shared" = yes && test "$GCC" = yes; then
7384 case $archive_cmds in
7385 *'~'*)
7386 # FIXME: we may have to deal with multi-command sequences.
7387 ;;
7388 '$CC '*)
7389 # Test whether the compiler implicitly links with -lc since on some
7390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7391 # to ld, don't add -lc before -lgcc.
drh866108f2008-05-13 00:57:21 +00007392 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7393echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00007394 $RM conftest*
7395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007396
7397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398 (eval $ac_compile) 2>&5
7399 ac_status=$?
drh866108f2008-05-13 00:57:21 +00007400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007401 (exit $ac_status); } 2>conftest.err; then
7402 soname=conftest
7403 lib=conftest
7404 libobjs=conftest.$ac_objext
7405 deplibs=
7406 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007407 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007408 compiler_flags=-v
7409 linker_flags=-v
7410 verstring=
7411 output_objdir=.
7412 libname=conftest
7413 lt_save_allow_undefined_flag=$allow_undefined_flag
7414 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007415 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7416 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007417 ac_status=$?
drh866108f2008-05-13 00:57:21 +00007418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007419 (exit $ac_status); }
7420 then
7421 archive_cmds_need_lc=no
7422 else
7423 archive_cmds_need_lc=yes
7424 fi
7425 allow_undefined_flag=$lt_save_allow_undefined_flag
7426 else
7427 cat conftest.err 1>&5
7428 fi
mlcreech636a9952008-05-05 22:52:56 +00007429 $RM conftest*
drh866108f2008-05-13 00:57:21 +00007430 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7431echo "${ECHO_T}$archive_cmds_need_lc" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007432 ;;
7433 esac
drh71eb93e2001-09-28 01:34:43 +00007434 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007435 ;;
7436esac
drh71eb93e2001-09-28 01:34:43 +00007437
mlcreech636a9952008-05-05 22:52:56 +00007438
drh866108f2008-05-13 00:57:21 +00007439 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7440echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00007441
7442if test "$GCC" = yes; then
7443 case $host_os in
7444 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7445 *) lt_awk_arg="/^libraries:/" ;;
7446 esac
7447 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7448 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7449 # if the path contains ";" then we assume it to be the separator
7450 # otherwise default to the standard path separator (i.e. ":") - it is
7451 # assumed that no part of a normal pathname contains ";" but that should
7452 # okay in the real world where ";" in dirpaths is itself problematic.
7453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7454 else
7455 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7456 fi
7457 # Ok, now we have the path, separated by spaces, we can step through it
7458 # and add multilib dir if necessary.
7459 lt_tmp_lt_search_path_spec=
7460 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7461 for lt_sys_path in $lt_search_path_spec; do
7462 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7464 else
7465 test -d "$lt_sys_path" && \
7466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7467 fi
7468 done
7469 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7470BEGIN {RS=" "; FS="/|\n";} {
7471 lt_foo="";
7472 lt_count=0;
7473 for (lt_i = NF; lt_i > 0; lt_i--) {
7474 if ($lt_i != "" && $lt_i != ".") {
7475 if ($lt_i == "..") {
7476 lt_count++;
7477 } else {
7478 if (lt_count == 0) {
7479 lt_foo="/" $lt_i lt_foo;
7480 } else {
7481 lt_count--;
7482 }
7483 }
7484 }
7485 }
7486 if (lt_foo != "") { lt_freq[lt_foo]++; }
7487 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7488}'`
7489 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7490else
7491 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7492fi
drh71eb93e2001-09-28 01:34:43 +00007493library_names_spec=
7494libname_spec='lib$name'
7495soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007496shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007497postinstall_cmds=
7498postuninstall_cmds=
7499finish_cmds=
7500finish_eval=
7501shlibpath_var=
7502shlibpath_overrides_runpath=unknown
7503version_type=none
7504dynamic_linker="$host_os ld.so"
7505sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007506need_lib_prefix=unknown
7507hardcode_into_libs=no
7508
7509# when you set need_version to no, make sure it does not cause -set_version
7510# flags to be left without arguments
7511need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007512
7513case $host_os in
7514aix3*)
7515 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007517 shlibpath_var=LIBPATH
7518
a.rottmann9bc8b932004-02-29 15:18:31 +00007519 # AIX 3 has no versioning support, so we append a major version to the name.
7520 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007521 ;;
7522
mlcreech636a9952008-05-05 22:52:56 +00007523aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00007524 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007525 need_lib_prefix=no
7526 need_version=no
7527 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007528 if test "$host_cpu" = ia64; then
7529 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007531 shlibpath_var=LD_LIBRARY_PATH
7532 else
7533 # With GCC up to 2.95.x, collect2 would create an import file
7534 # for dependence libraries. The import file would start with
7535 # the line `#! .'. This would cause the generated library to
7536 # depend on `.', always an invalid library. This was fixed in
7537 # development snapshots of GCC prior to 3.0.
7538 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007539 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7541 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00007542 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007543 :
7544 else
7545 can_build_shared=no
7546 fi
7547 ;;
drh71eb93e2001-09-28 01:34:43 +00007548 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7550 # soname into executable. Probably we can add versioning support to
7551 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007552 if test "$aix_use_runtimelinking" = yes; then
7553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7554 # instead of lib<name>.a to let people know that these are not
7555 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007557 else
7558 # We preserve .a as extension for shared libraries through AIX4.2
7559 # and later when we are not doing run time linking.
7560 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007561 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007562 fi
7563 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007564 fi
7565 ;;
7566
7567amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007568 case $host_cpu in
7569 powerpc)
7570 # Since July 2007 AmigaOS4 officially supports .so libraries.
7571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
7572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7573 ;;
7574 m68k)
7575 library_names_spec='$libname.ixlibrary $libname.a'
7576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7577 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'
7578 ;;
7579 esac
drh71eb93e2001-09-28 01:34:43 +00007580 ;;
7581
7582beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007583 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007584 dynamic_linker="$host_os ld.so"
7585 shlibpath_var=LIBRARY_PATH
7586 ;;
7587
vapier7f19c022007-02-17 14:46:31 +00007588bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007589 version_type=linux
7590 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7592 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7597 # the default ld.so.conf also contains /usr/contrib/lib and
7598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7599 # libtool to hard-code these into programs
7600 ;;
7601
7602cygwin* | mingw* | pw32*)
7603 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007604 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007605 need_version=no
7606 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007607
drh71eb93e2001-09-28 01:34:43 +00007608 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007609 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007610 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7612 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00007613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007614 dldir=$destdir/`dirname \$dlpath`~
7615 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007616 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00007617 chmod a+x \$dldir/$dlname~
7618 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7619 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7620 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00007621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007622 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00007623 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007624 shlibpath_overrides_runpath=yes
7625
7626 case $host_os in
7627 cygwin*)
7628 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7629 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7630 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7631 ;;
7632 mingw*)
7633 # MinGW DLLs use traditional 'lib' prefix
7634 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00007635 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7636 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 # It is most probably a Windows format PATH printed by
7638 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7639 # path with ; separators, and with drive letters. We can handle the
7640 # drive letters (cygwin fileutils understands them), so leave them,
7641 # especially as we might pass files found there to a mingw objdump,
7642 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00007643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00007644 else
mlcreech636a9952008-05-05 22:52:56 +00007645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007646 fi
7647 ;;
7648 pw32*)
7649 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 ;;
7652 esac
drh71eb93e2001-09-28 01:34:43 +00007653 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007654
drh71eb93e2001-09-28 01:34:43 +00007655 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00007657 ;;
7658 esac
7659 dynamic_linker='Win32 ld.exe'
7660 # FIXME: first we should search . and the directory the executable is in
7661 shlibpath_var=PATH
7662 ;;
7663
7664darwin* | rhapsody*)
7665 dynamic_linker="$host_os dyld"
7666 version_type=darwin
7667 need_lib_prefix=no
7668 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00007669 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00007670 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00007671 shlibpath_overrides_runpath=yes
7672 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00007673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00007674
7675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7677 ;;
7678
7679dgux*)
7680 version_type=linux
7681 need_lib_prefix=no
7682 need_version=no
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7684 soname_spec='${libname}${release}${shared_ext}$major'
7685 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007686 ;;
7687
a.rottmann84e63352003-03-24 09:42:16 +00007688freebsd1*)
7689 dynamic_linker=no
7690 ;;
7691
vapier7f19c022007-02-17 14:46:31 +00007692freebsd* | dragonfly*)
7693 # DragonFly does not have aout. When/if they implement a new
7694 # versioning mechanism, adjust this.
7695 if test -x /usr/bin/objformat; then
7696 objformat=`/usr/bin/objformat`
7697 else
7698 case $host_os in
7699 freebsd[123]*) objformat=aout ;;
7700 *) objformat=elf ;;
7701 esac
7702 fi
7703 # Handle Gentoo/FreeBSD as it was Linux
7704 case $host_vendor in
7705 gentoo)
7706 version_type=linux ;;
7707 *)
7708 version_type=freebsd-$objformat ;;
7709 esac
7710
drh71eb93e2001-09-28 01:34:43 +00007711 case $version_type in
7712 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007714 need_version=no
7715 need_lib_prefix=no
7716 ;;
7717 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007719 need_version=yes
7720 ;;
vapier7f19c022007-02-17 14:46:31 +00007721 linux)
7722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7723 soname_spec='${libname}${release}${shared_ext}$major'
7724 need_lib_prefix=no
7725 need_version=no
7726 ;;
drh71eb93e2001-09-28 01:34:43 +00007727 esac
7728 shlibpath_var=LD_LIBRARY_PATH
7729 case $host_os in
7730 freebsd2*)
7731 shlibpath_overrides_runpath=yes
7732 ;;
vapier7f19c022007-02-17 14:46:31 +00007733 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007734 shlibpath_overrides_runpath=yes
7735 hardcode_into_libs=yes
7736 ;;
vapier7f19c022007-02-17 14:46:31 +00007737 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7738 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00007739 shlibpath_overrides_runpath=no
7740 hardcode_into_libs=yes
7741 ;;
mlcreech636a9952008-05-05 22:52:56 +00007742 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00007743 shlibpath_overrides_runpath=yes
7744 hardcode_into_libs=yes
7745 ;;
drh71eb93e2001-09-28 01:34:43 +00007746 esac
7747 ;;
7748
7749gnu*)
7750 version_type=linux
7751 need_lib_prefix=no
7752 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7754 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007755 shlibpath_var=LD_LIBRARY_PATH
7756 hardcode_into_libs=yes
7757 ;;
7758
7759hpux9* | hpux10* | hpux11*)
7760 # Give a soname corresponding to the major version so that dld.sl refuses to
7761 # link against other versions.
7762 version_type=sunos
7763 need_lib_prefix=no
7764 need_version=no
vapier7f19c022007-02-17 14:46:31 +00007765 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00007766 ia64*)
vapier7f19c022007-02-17 14:46:31 +00007767 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00007768 hardcode_into_libs=yes
7769 dynamic_linker="$host_os dld.so"
7770 shlibpath_var=LD_LIBRARY_PATH
7771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7773 soname_spec='${libname}${release}${shared_ext}$major'
7774 if test "X$HPUX_IA64_MODE" = X32; then
7775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7776 else
7777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7778 fi
7779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7780 ;;
mlcreech636a9952008-05-05 22:52:56 +00007781 hppa*64*)
7782 shrext_cmds='.sl'
7783 hardcode_into_libs=yes
7784 dynamic_linker="$host_os dld.sl"
7785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7788 soname_spec='${libname}${release}${shared_ext}$major'
7789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7791 ;;
7792 *)
vapier7f19c022007-02-17 14:46:31 +00007793 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 dynamic_linker="$host_os dld.sl"
7795 shlibpath_var=SHLIB_PATH
7796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7798 soname_spec='${libname}${release}${shared_ext}$major'
7799 ;;
7800 esac
drh71eb93e2001-09-28 01:34:43 +00007801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7802 postinstall_cmds='chmod 555 $lib'
7803 ;;
7804
mlcreech636a9952008-05-05 22:52:56 +00007805interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007806 version_type=linux
7807 need_lib_prefix=no
7808 need_version=no
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7812 shlibpath_var=LD_LIBRARY_PATH
7813 shlibpath_overrides_runpath=no
7814 hardcode_into_libs=yes
7815 ;;
7816
a.rottmann84e63352003-03-24 09:42:16 +00007817irix5* | irix6* | nonstopux*)
7818 case $host_os in
7819 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 *)
7821 if test "$lt_cv_prog_gnu_ld" = yes; then
7822 version_type=linux
7823 else
7824 version_type=irix
7825 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007826 esac
drh71eb93e2001-09-28 01:34:43 +00007827 need_lib_prefix=no
7828 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007829 soname_spec='${libname}${release}${shared_ext}$major'
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007831 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007832 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00007833 libsuff= shlibsuff=
7834 ;;
7835 *)
7836 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00007837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7838 libsuff= shlibsuff= libmagic=32-bit;;
7839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7840 libsuff=32 shlibsuff=N32 libmagic=N32;;
7841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00007843 *) libsuff= shlibsuff= libmagic=never-match;;
7844 esac
7845 ;;
7846 esac
7847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7848 shlibpath_overrides_runpath=no
7849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00007851 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007852 ;;
7853
7854# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00007855linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00007856 dynamic_linker=no
7857 ;;
7858
7859# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00007860linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00007861 version_type=linux
7862 need_lib_prefix=no
7863 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7865 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00007869 # Some binutils ld are patched to set DT_RUNPATH
7870 save_LDFLAGS=$LDFLAGS
7871 save_libdir=$libdir
7872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
7873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
7874 cat >conftest.$ac_ext <<_ACEOF
7875/* confdefs.h. */
7876_ACEOF
7877cat confdefs.h >>conftest.$ac_ext
7878cat >>conftest.$ac_ext <<_ACEOF
7879/* end confdefs.h. */
7880
7881int
7882main ()
7883{
7884
7885 ;
7886 return 0;
7887}
7888_ACEOF
7889rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00007890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00007892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00007896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00007911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
7912 shlibpath_overrides_runpath=yes
7913fi
7914
7915else
drh866108f2008-05-13 00:57:21 +00007916 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00007917sed 's/^/| /' conftest.$ac_ext >&5
7918
mlcreech636a9952008-05-05 22:52:56 +00007919fi
drh866108f2008-05-13 00:57:21 +00007920rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00007921 conftest$ac_exeext conftest.$ac_ext
7922 LDFLAGS=$save_LDFLAGS
7923 libdir=$save_libdir
7924
drh71eb93e2001-09-28 01:34:43 +00007925 # This implies no fast_install, which is unacceptable.
7926 # Some rework will be needed to allow for fast_install
7927 # before this can be enabled.
7928 hardcode_into_libs=yes
7929
a.rottmann9bc8b932004-02-29 15:18:31 +00007930 # Append ld.so.conf contents to the search path
7931 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00007932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vapier7f19c022007-02-17 14:46:31 +00007933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00007934 fi
7935
drh71eb93e2001-09-28 01:34:43 +00007936 # We used to test for /lib/ld.so.1 and disable shared libraries on
7937 # powerpc, because MkLinux only supported shared libraries with the
7938 # GNU dynamic linker. Since this was broken with cross compilers,
7939 # most powerpc-linux boxes support dynamic linking these days and
7940 # people can always --disable-shared, the test was removed, and we
7941 # assume the GNU/Linux dynamic linker is in use.
7942 dynamic_linker='GNU/Linux ld.so'
7943 ;;
7944
7945netbsd*)
7946 version_type=sunos
7947 need_lib_prefix=no
7948 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00007949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7952 dynamic_linker='NetBSD (a.out) ld.so'
7953 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007956 dynamic_linker='NetBSD ld.elf_so'
7957 fi
7958 shlibpath_var=LD_LIBRARY_PATH
7959 shlibpath_overrides_runpath=yes
7960 hardcode_into_libs=yes
7961 ;;
7962
7963newsos6)
7964 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 shlibpath_var=LD_LIBRARY_PATH
7967 shlibpath_overrides_runpath=yes
7968 ;;
7969
mlcreech636a9952008-05-05 22:52:56 +00007970*nto* | *qnx*)
7971 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 need_lib_prefix=no
7973 need_version=no
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007976 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00007977 shlibpath_overrides_runpath=no
7978 hardcode_into_libs=yes
7979 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00007980 ;;
7981
drh71eb93e2001-09-28 01:34:43 +00007982openbsd*)
7983 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00007984 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00007985 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00007986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7987 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7989 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00007990 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7993 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00007994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007995 case $host_os in
7996 openbsd2.[89] | openbsd2.[89].*)
7997 shlibpath_overrides_runpath=no
7998 ;;
7999 *)
8000 shlibpath_overrides_runpath=yes
8001 ;;
8002 esac
a.rottmann84e63352003-03-24 09:42:16 +00008003 else
8004 shlibpath_overrides_runpath=yes
8005 fi
drh71eb93e2001-09-28 01:34:43 +00008006 ;;
8007
8008os2*)
8009 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008010 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008011 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008012 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008013 dynamic_linker='OS/2 ld.exe'
8014 shlibpath_var=LIBPATH
8015 ;;
8016
8017osf3* | osf4* | osf5*)
8018 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008019 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008020 need_version=no
8021 soname_spec='${libname}${release}${shared_ext}$major'
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008023 shlibpath_var=LD_LIBRARY_PATH
8024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8026 ;;
8027
mlcreech636a9952008-05-05 22:52:56 +00008028rdos*)
8029 dynamic_linker=no
8030 ;;
8031
drh71eb93e2001-09-28 01:34:43 +00008032solaris*)
8033 version_type=linux
8034 need_lib_prefix=no
8035 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8037 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008038 shlibpath_var=LD_LIBRARY_PATH
8039 shlibpath_overrides_runpath=yes
8040 hardcode_into_libs=yes
8041 # ldd complains unless libraries are executable
8042 postinstall_cmds='chmod +x $lib'
8043 ;;
8044
8045sunos4*)
8046 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8049 shlibpath_var=LD_LIBRARY_PATH
8050 shlibpath_overrides_runpath=yes
8051 if test "$with_gnu_ld" = yes; then
8052 need_lib_prefix=no
8053 fi
8054 need_version=yes
8055 ;;
8056
vapier7f19c022007-02-17 14:46:31 +00008057sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008058 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8060 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008061 shlibpath_var=LD_LIBRARY_PATH
8062 case $host_vendor in
8063 sni)
8064 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008065 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00008066 runpath_var=LD_RUN_PATH
8067 ;;
8068 siemens)
8069 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008070 ;;
8071 motorola)
8072 need_lib_prefix=no
8073 need_version=no
8074 shlibpath_overrides_runpath=no
8075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8076 ;;
8077 esac
8078 ;;
8079
8080sysv4*MP*)
8081 if test -d /usr/nec ;then
8082 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8084 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008085 shlibpath_var=LD_LIBRARY_PATH
8086 fi
8087 ;;
8088
vapier7f19c022007-02-17 14:46:31 +00008089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8090 version_type=freebsd-elf
8091 need_lib_prefix=no
8092 need_version=no
8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8094 soname_spec='${libname}${release}${shared_ext}$major'
8095 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008096 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00008097 hardcode_into_libs=yes
8098 if test "$with_gnu_ld" = yes; then
8099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00008100 else
8101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00008102 case $host_os in
8103 sco3.2v5*)
8104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8105 ;;
8106 esac
8107 fi
8108 sys_lib_dlsearch_path_spec='/usr/lib'
8109 ;;
8110
mlcreech636a9952008-05-05 22:52:56 +00008111tpf*)
8112 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8113 version_type=linux
8114 need_lib_prefix=no
8115 need_version=no
8116 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8117 shlibpath_var=LD_LIBRARY_PATH
8118 shlibpath_overrides_runpath=no
8119 hardcode_into_libs=yes
8120 ;;
8121
a.rottmann9bc8b932004-02-29 15:18:31 +00008122uts4*)
8123 version_type=linux
8124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8125 soname_spec='${libname}${release}${shared_ext}$major'
8126 shlibpath_var=LD_LIBRARY_PATH
8127 ;;
8128
drh71eb93e2001-09-28 01:34:43 +00008129*)
8130 dynamic_linker=no
8131 ;;
8132esac
drh866108f2008-05-13 00:57:21 +00008133echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8134echo "${ECHO_T}$dynamic_linker" >&6
drh71eb93e2001-09-28 01:34:43 +00008135test "$dynamic_linker" = no && can_build_shared=no
8136
vapier7f19c022007-02-17 14:46:31 +00008137variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8138if test "$GCC" = yes; then
8139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8140fi
8141
mlcreech636a9952008-05-05 22:52:56 +00008142if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8143 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8144fi
8145if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8146 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8147fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
drh866108f2008-05-13 00:57:21 +00008235 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8236echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008237hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00008238if test -n "$hardcode_libdir_flag_spec" ||
8239 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00008240 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008241
mlcreech636a9952008-05-05 22:52:56 +00008242 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00008243 if test "$hardcode_direct" != no &&
8244 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8245 # have to relink, otherwise we might link with an installed library
8246 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00008247 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00008248 test "$hardcode_minus_L" != no; then
8249 # Linking always hardcodes the temporary library directory.
8250 hardcode_action=relink
8251 else
8252 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8253 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008254 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008255else
8256 # We cannot hardcode anything, or else we can only hardcode existing
8257 # directories.
8258 hardcode_action=unsupported
8259fi
drh866108f2008-05-13 00:57:21 +00008260echo "$as_me:$LINENO: result: $hardcode_action" >&5
8261echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008262
mlcreech636a9952008-05-05 22:52:56 +00008263if test "$hardcode_action" = relink ||
8264 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008265 # Fast installation is not supported
8266 enable_fast_install=no
8267elif test "$shlibpath_overrides_runpath" = yes ||
8268 test "$enable_shared" = no; then
8269 # Fast installation is not necessary
8270 enable_fast_install=needless
8271fi
8272
a.rottmann84e63352003-03-24 09:42:16 +00008273
mlcreech636a9952008-05-05 22:52:56 +00008274
8275
8276
8277
8278 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00008279 enable_dlopen=unknown
8280 enable_dlopen_self=unknown
8281 enable_dlopen_self_static=unknown
8282else
8283 lt_cv_dlopen=no
8284 lt_cv_dlopen_libs=
8285
8286 case $host_os in
8287 beos*)
8288 lt_cv_dlopen="load_add_on"
8289 lt_cv_dlopen_libs=
8290 lt_cv_dlopen_self=yes
8291 ;;
8292
a.rottmann9bc8b932004-02-29 15:18:31 +00008293 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008294 lt_cv_dlopen="LoadLibrary"
8295 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00008296 ;;
drh71eb93e2001-09-28 01:34:43 +00008297
a.rottmann9bc8b932004-02-29 15:18:31 +00008298 cygwin*)
8299 lt_cv_dlopen="dlopen"
8300 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00008301 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008302
8303 darwin*)
8304 # if libdl is installed we need to link against it
drh866108f2008-05-13 00:57:21 +00008305 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8306echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008307if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008308 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008309else
8310 ac_check_lib_save_LIBS=$LIBS
8311LIBS="-ldl $LIBS"
8312cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h. */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h. */
8318
drh866108f2008-05-13 00:57:21 +00008319/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008320#ifdef __cplusplus
8321extern "C"
8322#endif
drh866108f2008-05-13 00:57:21 +00008323/* We use char because int might match the return type of a gcc2
8324 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008325char dlopen ();
8326int
8327main ()
8328{
drh866108f2008-05-13 00:57:21 +00008329dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -z "$ac_c_werror_flag"
8344 || test ! -s conftest.err'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352 (eval $ac_try) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008356 ac_cv_lib_dl_dlopen=yes
8357else
drh866108f2008-05-13 00:57:21 +00008358 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008359sed 's/^/| /' conftest.$ac_ext >&5
8360
drh866108f2008-05-13 00:57:21 +00008361ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008362fi
drh866108f2008-05-13 00:57:21 +00008363rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00008364 conftest$ac_exeext conftest.$ac_ext
8365LIBS=$ac_check_lib_save_LIBS
8366fi
drh866108f2008-05-13 00:57:21 +00008367echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8368echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008369if test $ac_cv_lib_dl_dlopen = yes; then
8370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8371else
8372
8373 lt_cv_dlopen="dyld"
8374 lt_cv_dlopen_libs=
8375 lt_cv_dlopen_self=yes
8376
8377fi
8378
mlcreech636a9952008-05-05 22:52:56 +00008379 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008380
drh71eb93e2001-09-28 01:34:43 +00008381 *)
drh866108f2008-05-13 00:57:21 +00008382 echo "$as_me:$LINENO: checking for shl_load" >&5
8383echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008384if test "${ac_cv_func_shl_load+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008385 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008386else
8387 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008393/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8395#define shl_load innocuous_shl_load
8396
drh71eb93e2001-09-28 01:34:43 +00008397/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008398 which can conflict with char shl_load (); below.
8399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008401
a.rottmann84e63352003-03-24 09:42:16 +00008402#ifdef __STDC__
8403# include <limits.h>
8404#else
8405# include <assert.h>
8406#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008407
8408#undef shl_load
8409
drh866108f2008-05-13 00:57:21 +00008410/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008411#ifdef __cplusplus
8412extern "C"
drh866108f2008-05-13 00:57:21 +00008413{
drh71eb93e2001-09-28 01:34:43 +00008414#endif
drh866108f2008-05-13 00:57:21 +00008415/* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008417char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008418/* The GNU C library defines this for functions which it implements
8419 to always fail with ENOSYS. Some functions are actually named
8420 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +00008421#if defined (__stub_shl_load) || defined (__stub___shl_load)
drh71eb93e2001-09-28 01:34:43 +00008422choke me
drh866108f2008-05-13 00:57:21 +00008423#else
8424char (*f) () = shl_load;
8425#endif
8426#ifdef __cplusplus
8427}
drh71eb93e2001-09-28 01:34:43 +00008428#endif
8429
a.rottmann84e63352003-03-24 09:42:16 +00008430int
8431main ()
8432{
drh866108f2008-05-13 00:57:21 +00008433return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00008434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008441 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008460 ac_cv_func_shl_load=yes
8461else
drh866108f2008-05-13 00:57:21 +00008462 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008463sed 's/^/| /' conftest.$ac_ext >&5
8464
drh866108f2008-05-13 00:57:21 +00008465ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008466fi
drh866108f2008-05-13 00:57:21 +00008467rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008468 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008469fi
drh866108f2008-05-13 00:57:21 +00008470echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8471echo "${ECHO_T}$ac_cv_func_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008472if test $ac_cv_func_shl_load = yes; then
8473 lt_cv_dlopen="shl_load"
8474else
drh866108f2008-05-13 00:57:21 +00008475 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8476echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008477if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008478 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008479else
8480 ac_check_lib_save_LIBS=$LIBS
8481LIBS="-ldld $LIBS"
8482cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008488
drh866108f2008-05-13 00:57:21 +00008489/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008490#ifdef __cplusplus
8491extern "C"
8492#endif
drh866108f2008-05-13 00:57:21 +00008493/* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008495char shl_load ();
8496int
8497main ()
8498{
drh866108f2008-05-13 00:57:21 +00008499shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008507 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } &&
8513 { ac_try='test -z "$ac_c_werror_flag"
8514 || test ! -s conftest.err'
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008526 ac_cv_lib_dld_shl_load=yes
8527else
drh866108f2008-05-13 00:57:21 +00008528 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008529sed 's/^/| /' conftest.$ac_ext >&5
8530
drh866108f2008-05-13 00:57:21 +00008531ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008532fi
drh866108f2008-05-13 00:57:21 +00008533rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008534 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008535LIBS=$ac_check_lib_save_LIBS
8536fi
drh866108f2008-05-13 00:57:21 +00008537echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8538echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008539if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008540 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00008541else
drh866108f2008-05-13 00:57:21 +00008542 echo "$as_me:$LINENO: checking for dlopen" >&5
8543echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008544if test "${ac_cv_func_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008545 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008546else
8547 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008553/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8555#define dlopen innocuous_dlopen
8556
a.rottmann84e63352003-03-24 09:42:16 +00008557/* System header to define __stub macros and hopefully few prototypes,
8558 which can conflict with char dlopen (); below.
8559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8560 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008561
a.rottmann84e63352003-03-24 09:42:16 +00008562#ifdef __STDC__
8563# include <limits.h>
8564#else
8565# include <assert.h>
8566#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008567
8568#undef dlopen
8569
drh866108f2008-05-13 00:57:21 +00008570/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008571#ifdef __cplusplus
8572extern "C"
drh866108f2008-05-13 00:57:21 +00008573{
a.rottmann84e63352003-03-24 09:42:16 +00008574#endif
drh866108f2008-05-13 00:57:21 +00008575/* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008577char dlopen ();
8578/* The GNU C library defines this for functions which it implements
8579 to always fail with ENOSYS. Some functions are actually named
8580 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +00008581#if defined (__stub_dlopen) || defined (__stub___dlopen)
a.rottmann84e63352003-03-24 09:42:16 +00008582choke me
drh866108f2008-05-13 00:57:21 +00008583#else
8584char (*f) () = dlopen;
8585#endif
8586#ifdef __cplusplus
8587}
a.rottmann84e63352003-03-24 09:42:16 +00008588#endif
8589
8590int
8591main ()
8592{
drh866108f2008-05-13 00:57:21 +00008593return f != dlopen;
a.rottmann84e63352003-03-24 09:42:16 +00008594 ;
8595 return 0;
8596}
8597_ACEOF
8598rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008601 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest$ac_exeext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008620 ac_cv_func_dlopen=yes
8621else
drh866108f2008-05-13 00:57:21 +00008622 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008623sed 's/^/| /' conftest.$ac_ext >&5
8624
drh866108f2008-05-13 00:57:21 +00008625ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008626fi
drh866108f2008-05-13 00:57:21 +00008627rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008628 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008629fi
drh866108f2008-05-13 00:57:21 +00008630echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8631echo "${ECHO_T}$ac_cv_func_dlopen" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008632if test $ac_cv_func_dlopen = yes; then
8633 lt_cv_dlopen="dlopen"
8634else
drh866108f2008-05-13 00:57:21 +00008635 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8636echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008637if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008638 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008639else
8640 ac_check_lib_save_LIBS=$LIBS
8641LIBS="-ldl $LIBS"
8642cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008643/* confdefs.h. */
8644_ACEOF
8645cat confdefs.h >>conftest.$ac_ext
8646cat >>conftest.$ac_ext <<_ACEOF
8647/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008648
drh866108f2008-05-13 00:57:21 +00008649/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008650#ifdef __cplusplus
8651extern "C"
8652#endif
drh866108f2008-05-13 00:57:21 +00008653/* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008655char dlopen ();
8656int
8657main ()
8658{
drh866108f2008-05-13 00:57:21 +00008659dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008667 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008686 ac_cv_lib_dl_dlopen=yes
8687else
drh866108f2008-05-13 00:57:21 +00008688 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008689sed 's/^/| /' conftest.$ac_ext >&5
8690
drh866108f2008-05-13 00:57:21 +00008691ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008692fi
drh866108f2008-05-13 00:57:21 +00008693rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008694 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008695LIBS=$ac_check_lib_save_LIBS
8696fi
drh866108f2008-05-13 00:57:21 +00008697echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8698echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008699if test $ac_cv_lib_dl_dlopen = yes; then
8700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8701else
drh866108f2008-05-13 00:57:21 +00008702 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8703echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008704if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008705 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008706else
8707 ac_check_lib_save_LIBS=$LIBS
8708LIBS="-lsvld $LIBS"
8709cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008710/* confdefs.h. */
8711_ACEOF
8712cat confdefs.h >>conftest.$ac_ext
8713cat >>conftest.$ac_ext <<_ACEOF
8714/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008715
drh866108f2008-05-13 00:57:21 +00008716/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008717#ifdef __cplusplus
8718extern "C"
8719#endif
drh866108f2008-05-13 00:57:21 +00008720/* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008722char dlopen ();
8723int
8724main ()
8725{
drh866108f2008-05-13 00:57:21 +00008726dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008727 ;
8728 return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008734 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008735 grep -v '^ *+' conftest.er1 >conftest.err
8736 rm -f conftest.er1
8737 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -z "$ac_c_werror_flag"
8741 || test ! -s conftest.err'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; } &&
8747 { ac_try='test -s conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008753 ac_cv_lib_svld_dlopen=yes
8754else
drh866108f2008-05-13 00:57:21 +00008755 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008756sed 's/^/| /' conftest.$ac_ext >&5
8757
drh866108f2008-05-13 00:57:21 +00008758ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008759fi
drh866108f2008-05-13 00:57:21 +00008760rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008761 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008762LIBS=$ac_check_lib_save_LIBS
8763fi
drh866108f2008-05-13 00:57:21 +00008764echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8765echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008766if test $ac_cv_lib_svld_dlopen = yes; then
8767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008768else
drh866108f2008-05-13 00:57:21 +00008769 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8770echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008771if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008772 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008773else
8774 ac_check_lib_save_LIBS=$LIBS
8775LIBS="-ldld $LIBS"
8776cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782
drh866108f2008-05-13 00:57:21 +00008783/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008784#ifdef __cplusplus
8785extern "C"
8786#endif
drh866108f2008-05-13 00:57:21 +00008787/* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008789char dld_link ();
8790int
8791main ()
8792{
drh866108f2008-05-13 00:57:21 +00008793dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00008794 ;
8795 return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8800 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008801 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_c_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008820 ac_cv_lib_dld_dld_link=yes
8821else
drh866108f2008-05-13 00:57:21 +00008822 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008823sed 's/^/| /' conftest.$ac_ext >&5
8824
drh866108f2008-05-13 00:57:21 +00008825ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00008826fi
drh866108f2008-05-13 00:57:21 +00008827rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008828 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008829LIBS=$ac_check_lib_save_LIBS
8830fi
drh866108f2008-05-13 00:57:21 +00008831echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8832echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008833if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00008835fi
8836
drh71eb93e2001-09-28 01:34:43 +00008837
8838fi
8839
drh71eb93e2001-09-28 01:34:43 +00008840
8841fi
8842
a.rottmann84e63352003-03-24 09:42:16 +00008843
8844fi
8845
8846
8847fi
8848
8849
drh71eb93e2001-09-28 01:34:43 +00008850fi
8851
8852 ;;
8853 esac
8854
8855 if test "x$lt_cv_dlopen" != xno; then
8856 enable_dlopen=yes
8857 else
8858 enable_dlopen=no
8859 fi
8860
8861 case $lt_cv_dlopen in
8862 dlopen)
8863 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00008865
8866 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00008867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00008868
8869 save_LIBS="$LIBS"
8870 LIBS="$lt_cv_dlopen_libs $LIBS"
8871
drh866108f2008-05-13 00:57:21 +00008872 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8873echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008874if test "${lt_cv_dlopen_self+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008875 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008876else
8877 if test "$cross_compiling" = yes; then :
8878 lt_cv_dlopen_self=cross
8879else
a.rottmann9bc8b932004-02-29 15:18:31 +00008880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008881 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00008882 cat > conftest.$ac_ext <<_LT_EOF
drh866108f2008-05-13 00:57:21 +00008883#line 9057 "configure"
drh71eb93e2001-09-28 01:34:43 +00008884#include "confdefs.h"
8885
8886#if HAVE_DLFCN_H
8887#include <dlfcn.h>
8888#endif
8889
8890#include <stdio.h>
8891
8892#ifdef RTLD_GLOBAL
8893# define LT_DLGLOBAL RTLD_GLOBAL
8894#else
8895# ifdef DL_GLOBAL
8896# define LT_DLGLOBAL DL_GLOBAL
8897# else
8898# define LT_DLGLOBAL 0
8899# endif
8900#endif
8901
8902/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8903 find out it does not work in some platform. */
8904#ifndef LT_DLLAZY_OR_NOW
8905# ifdef RTLD_LAZY
8906# define LT_DLLAZY_OR_NOW RTLD_LAZY
8907# else
8908# ifdef DL_LAZY
8909# define LT_DLLAZY_OR_NOW DL_LAZY
8910# else
8911# ifdef RTLD_NOW
8912# define LT_DLLAZY_OR_NOW RTLD_NOW
8913# else
8914# ifdef DL_NOW
8915# define LT_DLLAZY_OR_NOW DL_NOW
8916# else
8917# define LT_DLLAZY_OR_NOW 0
8918# endif
8919# endif
8920# endif
8921# endif
8922#endif
8923
8924#ifdef __cplusplus
8925extern "C" void exit (int);
8926#endif
8927
8928void fnord() { int i=42;}
8929int main ()
8930{
8931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8932 int status = $lt_dlunknown;
8933
8934 if (self)
8935 {
8936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8937 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8938 /* dlclose (self); */
8939 }
vapier7f19c022007-02-17 14:46:31 +00008940 else
8941 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00008942
8943 exit (status);
8944}
mlcreech636a9952008-05-05 22:52:56 +00008945_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +00008946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00008947 (eval $ac_link) 2>&5
8948 ac_status=$?
drh866108f2008-05-13 00:57:21 +00008949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00008950 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00008951 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00008952 lt_status=$?
8953 case x$lt_status in
8954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00008956 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00008957 esac
8958 else :
8959 # compilation failed
8960 lt_cv_dlopen_self=no
8961 fi
8962fi
8963rm -fr conftest*
8964
a.rottmann84e63352003-03-24 09:42:16 +00008965
drh71eb93e2001-09-28 01:34:43 +00008966fi
drh866108f2008-05-13 00:57:21 +00008967echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8968echo "${ECHO_T}$lt_cv_dlopen_self" >&6
drh71eb93e2001-09-28 01:34:43 +00008969
8970 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00008971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh866108f2008-05-13 00:57:21 +00008972 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8973echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008974if test "${lt_cv_dlopen_self_static+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008975 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008976else
8977 if test "$cross_compiling" = yes; then :
8978 lt_cv_dlopen_self_static=cross
8979else
a.rottmann9bc8b932004-02-29 15:18:31 +00008980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00008981 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00008982 cat > conftest.$ac_ext <<_LT_EOF
drh866108f2008-05-13 00:57:21 +00008983#line 9157 "configure"
drh71eb93e2001-09-28 01:34:43 +00008984#include "confdefs.h"
8985
8986#if HAVE_DLFCN_H
8987#include <dlfcn.h>
8988#endif
8989
8990#include <stdio.h>
8991
8992#ifdef RTLD_GLOBAL
8993# define LT_DLGLOBAL RTLD_GLOBAL
8994#else
8995# ifdef DL_GLOBAL
8996# define LT_DLGLOBAL DL_GLOBAL
8997# else
8998# define LT_DLGLOBAL 0
8999# endif
9000#endif
9001
9002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9003 find out it does not work in some platform. */
9004#ifndef LT_DLLAZY_OR_NOW
9005# ifdef RTLD_LAZY
9006# define LT_DLLAZY_OR_NOW RTLD_LAZY
9007# else
9008# ifdef DL_LAZY
9009# define LT_DLLAZY_OR_NOW DL_LAZY
9010# else
9011# ifdef RTLD_NOW
9012# define LT_DLLAZY_OR_NOW RTLD_NOW
9013# else
9014# ifdef DL_NOW
9015# define LT_DLLAZY_OR_NOW DL_NOW
9016# else
9017# define LT_DLLAZY_OR_NOW 0
9018# endif
9019# endif
9020# endif
9021# endif
9022#endif
9023
9024#ifdef __cplusplus
9025extern "C" void exit (int);
9026#endif
9027
9028void fnord() { int i=42;}
9029int main ()
9030{
9031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9032 int status = $lt_dlunknown;
9033
9034 if (self)
9035 {
9036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9038 /* dlclose (self); */
9039 }
vapier7f19c022007-02-17 14:46:31 +00009040 else
9041 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009042
9043 exit (status);
9044}
mlcreech636a9952008-05-05 22:52:56 +00009045_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +00009046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009047 (eval $ac_link) 2>&5
9048 ac_status=$?
drh866108f2008-05-13 00:57:21 +00009049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009050 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009051 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009052 lt_status=$?
9053 case x$lt_status in
9054 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9055 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009056 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009057 esac
9058 else :
9059 # compilation failed
9060 lt_cv_dlopen_self_static=no
9061 fi
9062fi
9063rm -fr conftest*
9064
a.rottmann84e63352003-03-24 09:42:16 +00009065
drh71eb93e2001-09-28 01:34:43 +00009066fi
drh866108f2008-05-13 00:57:21 +00009067echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9068echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
drh71eb93e2001-09-28 01:34:43 +00009069 fi
9070
9071 CPPFLAGS="$save_CPPFLAGS"
9072 LDFLAGS="$save_LDFLAGS"
9073 LIBS="$save_LIBS"
9074 ;;
9075 esac
9076
9077 case $lt_cv_dlopen_self in
9078 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9079 *) enable_dlopen_self=unknown ;;
9080 esac
9081
9082 case $lt_cv_dlopen_self_static in
9083 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9084 *) enable_dlopen_self_static=unknown ;;
9085 esac
9086fi
9087
drh71eb93e2001-09-28 01:34:43 +00009088
drh71eb93e2001-09-28 01:34:43 +00009089
a.rottmann9bc8b932004-02-29 15:18:31 +00009090
a.rottmann9bc8b932004-02-29 15:18:31 +00009091
mlcreech636a9952008-05-05 22:52:56 +00009092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104striplib=
9105old_striplib=
drh866108f2008-05-13 00:57:21 +00009106echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9107echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009108if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9109 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9110 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh866108f2008-05-13 00:57:21 +00009111 echo "$as_me:$LINENO: result: yes" >&5
9112echo "${ECHO_T}yes" >&6
mlcreech636a9952008-05-05 22:52:56 +00009113else
9114# FIXME - insert some real tests, host_os isn't really good enough
9115 case $host_os in
9116 darwin*)
9117 if test -n "$STRIP" ; then
9118 striplib="$STRIP -x"
9119 old_striplib="$STRIP -S"
drh866108f2008-05-13 00:57:21 +00009120 echo "$as_me:$LINENO: result: yes" >&5
9121echo "${ECHO_T}yes" >&6
mlcreech636a9952008-05-05 22:52:56 +00009122 else
drh866108f2008-05-13 00:57:21 +00009123 echo "$as_me:$LINENO: result: no" >&5
9124echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00009125 fi
a.rottmann84e63352003-03-24 09:42:16 +00009126 ;;
mlcreech636a9952008-05-05 22:52:56 +00009127 *)
drh866108f2008-05-13 00:57:21 +00009128 echo "$as_me:$LINENO: result: no" >&5
9129echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009130 ;;
9131 esac
mlcreech636a9952008-05-05 22:52:56 +00009132fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009133
a.rottmann9bc8b932004-02-29 15:18:31 +00009134
drh71eb93e2001-09-28 01:34:43 +00009135
drh71eb93e2001-09-28 01:34:43 +00009136
a.rottmann84e63352003-03-24 09:42:16 +00009137
drh71eb93e2001-09-28 01:34:43 +00009138
drh71eb93e2001-09-28 01:34:43 +00009139
a.rottmann9bc8b932004-02-29 15:18:31 +00009140
drh71eb93e2001-09-28 01:34:43 +00009141
drh71eb93e2001-09-28 01:34:43 +00009142
drh71eb93e2001-09-28 01:34:43 +00009143
drh71eb93e2001-09-28 01:34:43 +00009144
mlcreech636a9952008-05-05 22:52:56 +00009145 # Report which library types will actually be built
drh866108f2008-05-13 00:57:21 +00009146 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9147echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9148 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9149echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00009150
drh866108f2008-05-13 00:57:21 +00009151 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9152echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009153 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009154
mlcreech636a9952008-05-05 22:52:56 +00009155 # On AIX, shared libraries and static libraries use the same namespace, and
9156 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009157 case $host_os in
9158 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009159 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009160 if test -n "$RANLIB"; then
9161 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9162 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009163 fi
9164 ;;
9165
mlcreech636a9952008-05-05 22:52:56 +00009166 aix[4-9]*)
9167 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9168 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009169 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009170 ;;
9171 esac
drh866108f2008-05-13 00:57:21 +00009172 echo "$as_me:$LINENO: result: $enable_shared" >&5
9173echo "${ECHO_T}$enable_shared" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009174
drh866108f2008-05-13 00:57:21 +00009175 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9176echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009177 # Make sure either enable_shared or enable_static is yes.
9178 test "$enable_shared" = yes || enable_static=yes
drh866108f2008-05-13 00:57:21 +00009179 echo "$as_me:$LINENO: result: $enable_static" >&5
9180echo "${ECHO_T}$enable_static" >&6
vapier7f19c022007-02-17 14:46:31 +00009181
a.rottmann9bc8b932004-02-29 15:18:31 +00009182
a.rottmann9bc8b932004-02-29 15:18:31 +00009183
a.rottmann9bc8b932004-02-29 15:18:31 +00009184
vapier7f19c022007-02-17 14:46:31 +00009185fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009186ac_ext=c
9187ac_cpp='$CPP $CPPFLAGS'
9188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192CC="$lt_save_CC"
9193
a.rottmann9bc8b932004-02-29 15:18:31 +00009194
a.rottmann9bc8b932004-02-29 15:18:31 +00009195
9196
a.rottmann9bc8b932004-02-29 15:18:31 +00009197
a.rottmann9bc8b932004-02-29 15:18:31 +00009198
a.rottmann9bc8b932004-02-29 15:18:31 +00009199
a.rottmann9bc8b932004-02-29 15:18:31 +00009200
a.rottmann9bc8b932004-02-29 15:18:31 +00009201
a.rottmann9bc8b932004-02-29 15:18:31 +00009202
vapier7f19c022007-02-17 14:46:31 +00009203
a.rottmann9bc8b932004-02-29 15:18:31 +00009204
9205
drh866108f2008-05-13 00:57:21 +00009206 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009207
vapier7f19c022007-02-17 14:46:31 +00009208
9209
vapier7f19c022007-02-17 14:46:31 +00009210
mlcreech636a9952008-05-05 22:52:56 +00009211# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009212
9213
drh71eb93e2001-09-28 01:34:43 +00009214# Find a good install program. We prefer a C program (faster),
9215# so one script is as good as another. But avoid the broken or
9216# incompatible versions:
9217# SysV /etc/install, /usr/sbin/install
9218# SunOS /usr/etc/install
9219# IRIX /sbin/install
9220# AIX /bin/install
9221# AmigaOS /C/install, which installs bootblocks on floppy discs
9222# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9223# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9224# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009225# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009226# ./install, which can be erroneously created by make from ./install.sh.
drh866108f2008-05-13 00:57:21 +00009227echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9228echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009229if test -z "$INSTALL"; then
9230if test "${ac_cv_path_install+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009231 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009232else
a.rottmann84e63352003-03-24 09:42:16 +00009233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
9238 # Account for people who put trailing slashes in PATH elements.
9239case $as_dir/ in
9240 ./ | .// | /cC/* | \
9241 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +00009242 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009243 /usr/ucb/* ) ;;
9244 *)
9245 # OSF1 and SCO ODT 3.0 have their own names for install.
9246 # Don't use installbsd from OSF since it installs stuff as root
9247 # by default.
9248 for ac_prog in ginstall scoinst install; do
9249 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00009250 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009251 if test $ac_prog = install &&
9252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9253 # AIX install. It has an incompatible calling convention.
9254 :
9255 elif test $ac_prog = install &&
9256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9257 # program-specific install script used by HP pwplus--don't use.
9258 :
9259 else
drh866108f2008-05-13 00:57:21 +00009260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9261 break 3
a.rottmann964dbb12004-02-26 19:47:42 +00009262 fi
9263 fi
drh71eb93e2001-09-28 01:34:43 +00009264 done
a.rottmann84e63352003-03-24 09:42:16 +00009265 done
9266 ;;
9267esac
9268done
9269
drh71eb93e2001-09-28 01:34:43 +00009270
9271fi
9272 if test "${ac_cv_path_install+set}" = set; then
9273 INSTALL=$ac_cv_path_install
9274 else
drh866108f2008-05-13 00:57:21 +00009275 # As a last resort, use the slow shell script. We don't cache a
9276 # path for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009277 # break other packages using the cache if that directory is
drh866108f2008-05-13 00:57:21 +00009278 # removed, or if the path is relative.
drh71eb93e2001-09-28 01:34:43 +00009279 INSTALL=$ac_install_sh
9280 fi
9281fi
drh866108f2008-05-13 00:57:21 +00009282echo "$as_me:$LINENO: result: $INSTALL" >&5
9283echo "${ECHO_T}$INSTALL" >&6
drh71eb93e2001-09-28 01:34:43 +00009284
9285# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9286# It thinks the first close brace ends the variable substitution.
9287test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9288
9289test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9290
9291test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9292
drhf1878b42006-01-23 18:06:52 +00009293for ac_prog in gawk mawk nawk awk
9294do
9295 # Extract the first word of "$ac_prog", so it can be a program name with args.
9296set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00009297echo "$as_me:$LINENO: checking for $ac_word" >&5
9298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +00009299if test "${ac_cv_prog_AWK+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009300 echo $ECHO_N "(cached) $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +00009301else
9302 if test -n "$AWK"; then
9303 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9304else
9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306for as_dir in $PATH
9307do
9308 IFS=$as_save_IFS
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00009311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
drhf1878b42006-01-23 18:06:52 +00009312 ac_cv_prog_AWK="$ac_prog"
drh866108f2008-05-13 00:57:21 +00009313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009314 break 2
9315 fi
9316done
9317done
9318
9319fi
9320fi
9321AWK=$ac_cv_prog_AWK
9322if test -n "$AWK"; then
drh866108f2008-05-13 00:57:21 +00009323 echo "$as_me:$LINENO: result: $AWK" >&5
9324echo "${ECHO_T}$AWK" >&6
drhf1878b42006-01-23 18:06:52 +00009325else
drh866108f2008-05-13 00:57:21 +00009326 echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
drhf1878b42006-01-23 18:06:52 +00009328fi
9329
9330 test -n "$AWK" && break
9331done
9332
a.rottmann84e63352003-03-24 09:42:16 +00009333
drh75897232000-05-29 14:26:00 +00009334#########
mlcreech636a9952008-05-05 22:52:56 +00009335# Enable large file support (if special flags are necessary)
9336#
drh866108f2008-05-13 00:57:21 +00009337# Check whether --enable-largefile or --disable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +00009338if test "${enable_largefile+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009339 enableval="$enable_largefile"
mlcreech636a9952008-05-05 22:52:56 +00009340
drh866108f2008-05-13 00:57:21 +00009341fi;
mlcreech636a9952008-05-05 22:52:56 +00009342if test "$enable_largefile" != no; then
9343
drh866108f2008-05-13 00:57:21 +00009344 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9345echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009346if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009347 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009348else
mlcreech636a9952008-05-05 22:52:56 +00009349 ac_cv_sys_largefile_CC=no
9350 if test "$GCC" != yes; then
9351 ac_save_CC=$CC
9352 while :; do
drh866108f2008-05-13 00:57:21 +00009353 # IRIX 6.2 and later do not support large files by default,
9354 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +00009355 cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361#include <sys/types.h>
9362 /* Check that off_t can represent 2**63 - 1 correctly.
9363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9364 since some C++ compilers masquerading as C compilers
9365 incorrectly reject 9223372036854775807. */
9366#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9368 && LARGE_OFF_T % 2147483647 == 1)
9369 ? 1 : -1];
9370int
9371main ()
9372{
9373
9374 ;
9375 return 0;
9376}
9377_ACEOF
drh866108f2008-05-13 00:57:21 +00009378 rm -f conftest.$ac_objext
9379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009400 break
9401else
drh866108f2008-05-13 00:57:21 +00009402 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009403sed 's/^/| /' conftest.$ac_ext >&5
9404
mlcreech636a9952008-05-05 22:52:56 +00009405fi
drh866108f2008-05-13 00:57:21 +00009406rm -f conftest.err conftest.$ac_objext
9407 CC="$CC -n32"
9408 rm -f conftest.$ac_objext
9409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9410 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_c_werror_flag"
9418 || test ! -s conftest.err'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest.$ac_objext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009430 ac_cv_sys_largefile_CC=' -n32'; break
9431else
drh866108f2008-05-13 00:57:21 +00009432 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009433sed 's/^/| /' conftest.$ac_ext >&5
9434
mlcreech636a9952008-05-05 22:52:56 +00009435fi
drh866108f2008-05-13 00:57:21 +00009436rm -f conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00009437 break
9438 done
9439 CC=$ac_save_CC
9440 rm -f conftest.$ac_ext
9441 fi
9442fi
drh866108f2008-05-13 00:57:21 +00009443echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9444echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
mlcreech636a9952008-05-05 22:52:56 +00009445 if test "$ac_cv_sys_largefile_CC" != no; then
9446 CC=$CC$ac_cv_sys_largefile_CC
9447 fi
9448
drh866108f2008-05-13 00:57:21 +00009449 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9450echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009451if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009452 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009453else
9454 while :; do
drh866108f2008-05-13 00:57:21 +00009455 ac_cv_sys_file_offset_bits=no
mlcreechb87057f2008-03-06 07:19:20 +00009456 cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h. */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
9461/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00009462#include <sys/types.h>
9463 /* Check that off_t can represent 2**63 - 1 correctly.
9464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9465 since some C++ compilers masquerading as C compilers
9466 incorrectly reject 9223372036854775807. */
9467#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9469 && LARGE_OFF_T % 2147483647 == 1)
9470 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +00009471int
9472main ()
9473{
mlcreech636a9952008-05-05 22:52:56 +00009474
mlcreechb87057f2008-03-06 07:19:20 +00009475 ;
9476 return 0;
9477}
9478_ACEOF
9479rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +00009482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 break
mlcreechb87057f2008-03-06 07:19:20 +00009502else
drh866108f2008-05-13 00:57:21 +00009503 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009504sed 's/^/| /' conftest.$ac_ext >&5
9505
mlcreech636a9952008-05-05 22:52:56 +00009506fi
drh866108f2008-05-13 00:57:21 +00009507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009508 cat >conftest.$ac_ext <<_ACEOF
9509/* confdefs.h. */
9510_ACEOF
9511cat confdefs.h >>conftest.$ac_ext
9512cat >>conftest.$ac_ext <<_ACEOF
9513/* end confdefs.h. */
9514#define _FILE_OFFSET_BITS 64
9515#include <sys/types.h>
9516 /* Check that off_t can represent 2**63 - 1 correctly.
9517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9518 since some C++ compilers masquerading as C compilers
9519 incorrectly reject 9223372036854775807. */
9520#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9522 && LARGE_OFF_T % 2147483647 == 1)
9523 ? 1 : -1];
9524int
9525main ()
9526{
9527
9528 ;
9529 return 0;
9530}
9531_ACEOF
9532rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag"
9542 || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest.$ac_objext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009554 ac_cv_sys_file_offset_bits=64; break
9555else
drh866108f2008-05-13 00:57:21 +00009556 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009557sed 's/^/| /' conftest.$ac_ext >&5
9558
mlcreech636a9952008-05-05 22:52:56 +00009559fi
drh866108f2008-05-13 00:57:21 +00009560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009561 break
9562done
9563fi
drh866108f2008-05-13 00:57:21 +00009564echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9565echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9566if test "$ac_cv_sys_file_offset_bits" != no; then
9567
mlcreech636a9952008-05-05 22:52:56 +00009568cat >>confdefs.h <<_ACEOF
9569#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9570_ACEOF
drh866108f2008-05-13 00:57:21 +00009571
9572fi
9573rm -f conftest*
9574 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9575echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009576if test "${ac_cv_sys_large_files+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009577 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009578else
9579 while :; do
drh866108f2008-05-13 00:57:21 +00009580 ac_cv_sys_large_files=no
mlcreech636a9952008-05-05 22:52:56 +00009581 cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h. */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h. */
9587#include <sys/types.h>
9588 /* Check that off_t can represent 2**63 - 1 correctly.
9589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9590 since some C++ compilers masquerading as C compilers
9591 incorrectly reject 9223372036854775807. */
9592#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9594 && LARGE_OFF_T % 2147483647 == 1)
9595 ? 1 : -1];
9596int
9597main ()
9598{
9599
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 break
mlcreech636a9952008-05-05 22:52:56 +00009627else
drh866108f2008-05-13 00:57:21 +00009628 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009629sed 's/^/| /' conftest.$ac_ext >&5
9630
mlcreech636a9952008-05-05 22:52:56 +00009631fi
drh866108f2008-05-13 00:57:21 +00009632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009633 cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639#define _LARGE_FILES 1
9640#include <sys/types.h>
9641 /* Check that off_t can represent 2**63 - 1 correctly.
9642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9643 since some C++ compilers masquerading as C compilers
9644 incorrectly reject 9223372036854775807. */
9645#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9647 && LARGE_OFF_T % 2147483647 == 1)
9648 ? 1 : -1];
9649int
9650main ()
9651{
9652
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009679 ac_cv_sys_large_files=1; break
9680else
drh866108f2008-05-13 00:57:21 +00009681 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009682sed 's/^/| /' conftest.$ac_ext >&5
9683
mlcreech636a9952008-05-05 22:52:56 +00009684fi
drh866108f2008-05-13 00:57:21 +00009685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009686 break
9687done
9688fi
drh866108f2008-05-13 00:57:21 +00009689echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9690echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9691if test "$ac_cv_sys_large_files" != no; then
9692
mlcreech636a9952008-05-05 22:52:56 +00009693cat >>confdefs.h <<_ACEOF
9694#define _LARGE_FILES $ac_cv_sys_large_files
9695_ACEOF
drh866108f2008-05-13 00:57:21 +00009696
9697fi
9698rm -f conftest*
mlcreech636a9952008-05-05 22:52:56 +00009699fi
9700
9701
9702#########
9703# Check for needed/wanted data types
drh866108f2008-05-13 00:57:21 +00009704echo "$as_me:$LINENO: checking for int8_t" >&5
9705echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009706if test "${ac_cv_type_int8_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009707 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009708else
mlcreech636a9952008-05-05 22:52:56 +00009709 cat >conftest.$ac_ext <<_ACEOF
9710/* confdefs.h. */
9711_ACEOF
9712cat confdefs.h >>conftest.$ac_ext
9713cat >>conftest.$ac_ext <<_ACEOF
9714/* end confdefs.h. */
9715$ac_includes_default
9716int
9717main ()
9718{
drh866108f2008-05-13 00:57:21 +00009719if ((int8_t *) 0)
9720 return 0;
9721if (sizeof (int8_t))
9722 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009723 ;
9724 return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9729 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009730 ac_status=$?
9731 grep -v '^ *+' conftest.er1 >conftest.err
9732 rm -f conftest.er1
9733 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -z "$ac_c_werror_flag"
9737 || test ! -s conftest.err'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest.$ac_objext'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9749 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +00009750else
drh866108f2008-05-13 00:57:21 +00009751 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009752sed 's/^/| /' conftest.$ac_ext >&5
9753
drh866108f2008-05-13 00:57:21 +00009754ac_cv_type_int8_t=no
mlcreech636a9952008-05-05 22:52:56 +00009755fi
drh866108f2008-05-13 00:57:21 +00009756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009757fi
drh866108f2008-05-13 00:57:21 +00009758echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9759echo "${ECHO_T}$ac_cv_type_int8_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009760if test $ac_cv_type_int8_t = yes; then
9761
9762cat >>confdefs.h <<_ACEOF
9763#define HAVE_INT8_T 1
9764_ACEOF
9765
9766
9767fi
drh866108f2008-05-13 00:57:21 +00009768echo "$as_me:$LINENO: checking for int16_t" >&5
9769echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009770if test "${ac_cv_type_int16_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009771 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009772else
mlcreech636a9952008-05-05 22:52:56 +00009773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779$ac_includes_default
9780int
9781main ()
9782{
drh866108f2008-05-13 00:57:21 +00009783if ((int16_t *) 0)
9784 return 0;
9785if (sizeof (int16_t))
9786 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009787 ;
9788 return 0;
9789}
9790_ACEOF
9791rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag"
9801 || test ! -s conftest.err'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest.$ac_objext'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9813 ac_cv_type_int16_t=yes
mlcreechb87057f2008-03-06 07:19:20 +00009814else
drh866108f2008-05-13 00:57:21 +00009815 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009816sed 's/^/| /' conftest.$ac_ext >&5
9817
drh866108f2008-05-13 00:57:21 +00009818ac_cv_type_int16_t=no
mlcreech636a9952008-05-05 22:52:56 +00009819fi
drh866108f2008-05-13 00:57:21 +00009820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009821fi
drh866108f2008-05-13 00:57:21 +00009822echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9823echo "${ECHO_T}$ac_cv_type_int16_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009824if test $ac_cv_type_int16_t = yes; then
9825
9826cat >>confdefs.h <<_ACEOF
9827#define HAVE_INT16_T 1
9828_ACEOF
9829
9830
9831fi
drh866108f2008-05-13 00:57:21 +00009832echo "$as_me:$LINENO: checking for int32_t" >&5
9833echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009834if test "${ac_cv_type_int32_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009835 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009836else
mlcreech636a9952008-05-05 22:52:56 +00009837 cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
9843$ac_includes_default
9844int
9845main ()
9846{
drh866108f2008-05-13 00:57:21 +00009847if ((int32_t *) 0)
9848 return 0;
9849if (sizeof (int32_t))
9850 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009851 ;
9852 return 0;
9853}
9854_ACEOF
9855rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_type_int32_t=yes
mlcreechb87057f2008-03-06 07:19:20 +00009878else
drh866108f2008-05-13 00:57:21 +00009879 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009880sed 's/^/| /' conftest.$ac_ext >&5
9881
drh866108f2008-05-13 00:57:21 +00009882ac_cv_type_int32_t=no
mlcreech636a9952008-05-05 22:52:56 +00009883fi
drh866108f2008-05-13 00:57:21 +00009884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009885fi
drh866108f2008-05-13 00:57:21 +00009886echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
9887echo "${ECHO_T}$ac_cv_type_int32_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009888if test $ac_cv_type_int32_t = yes; then
9889
9890cat >>confdefs.h <<_ACEOF
9891#define HAVE_INT32_T 1
9892_ACEOF
9893
9894
9895fi
drh866108f2008-05-13 00:57:21 +00009896echo "$as_me:$LINENO: checking for int64_t" >&5
9897echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009898if test "${ac_cv_type_int64_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009899 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009900else
mlcreech636a9952008-05-05 22:52:56 +00009901 cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
9907$ac_includes_default
9908int
9909main ()
9910{
drh866108f2008-05-13 00:57:21 +00009911if ((int64_t *) 0)
9912 return 0;
9913if (sizeof (int64_t))
9914 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9921 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_type_int64_t=yes
mlcreechb87057f2008-03-06 07:19:20 +00009942else
drh866108f2008-05-13 00:57:21 +00009943 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009944sed 's/^/| /' conftest.$ac_ext >&5
9945
drh866108f2008-05-13 00:57:21 +00009946ac_cv_type_int64_t=no
mlcreech636a9952008-05-05 22:52:56 +00009947fi
drh866108f2008-05-13 00:57:21 +00009948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009949fi
drh866108f2008-05-13 00:57:21 +00009950echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9951echo "${ECHO_T}$ac_cv_type_int64_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009952if test $ac_cv_type_int64_t = yes; then
9953
9954cat >>confdefs.h <<_ACEOF
9955#define HAVE_INT64_T 1
9956_ACEOF
9957
9958
9959fi
mlcreechb87057f2008-03-06 07:19:20 +00009960
drh866108f2008-05-13 00:57:21 +00009961echo "$as_me:$LINENO: checking for uint8_t" >&5
9962echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009963if test "${ac_cv_type_uint8_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009964 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009965else
mlcreech636a9952008-05-05 22:52:56 +00009966 cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972$ac_includes_default
9973int
9974main ()
9975{
drh866108f2008-05-13 00:57:21 +00009976if ((uint8_t *) 0)
9977 return 0;
9978if (sizeof (uint8_t))
9979 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009980 ;
9981 return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag"
9994 || test ! -s conftest.err'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest.$ac_objext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_type_uint8_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010007else
drh866108f2008-05-13 00:57:21 +000010008 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010009sed 's/^/| /' conftest.$ac_ext >&5
10010
drh866108f2008-05-13 00:57:21 +000010011ac_cv_type_uint8_t=no
mlcreech636a9952008-05-05 22:52:56 +000010012fi
drh866108f2008-05-13 00:57:21 +000010013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010014fi
drh866108f2008-05-13 00:57:21 +000010015echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
10016echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010017if test $ac_cv_type_uint8_t = yes; then
10018
10019cat >>confdefs.h <<_ACEOF
10020#define HAVE_UINT8_T 1
10021_ACEOF
10022
10023
10024fi
drh866108f2008-05-13 00:57:21 +000010025echo "$as_me:$LINENO: checking for uint16_t" >&5
10026echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010027if test "${ac_cv_type_uint16_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010028 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010029else
mlcreech636a9952008-05-05 22:52:56 +000010030 cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h. */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h. */
10036$ac_includes_default
10037int
10038main ()
10039{
drh866108f2008-05-13 00:57:21 +000010040if ((uint16_t *) 0)
10041 return 0;
10042if (sizeof (uint16_t))
10043 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010044 ;
10045 return 0;
10046}
10047_ACEOF
10048rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag"
10058 || test ! -s conftest.err'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest.$ac_objext'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_type_uint16_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010071else
drh866108f2008-05-13 00:57:21 +000010072 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010073sed 's/^/| /' conftest.$ac_ext >&5
10074
drh866108f2008-05-13 00:57:21 +000010075ac_cv_type_uint16_t=no
mlcreech636a9952008-05-05 22:52:56 +000010076fi
drh866108f2008-05-13 00:57:21 +000010077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010078fi
drh866108f2008-05-13 00:57:21 +000010079echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
10080echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010081if test $ac_cv_type_uint16_t = yes; then
10082
10083cat >>confdefs.h <<_ACEOF
10084#define HAVE_UINT16_T 1
10085_ACEOF
10086
10087
10088fi
drh866108f2008-05-13 00:57:21 +000010089echo "$as_me:$LINENO: checking for uint32_t" >&5
10090echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010091if test "${ac_cv_type_uint32_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010092 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010093else
mlcreech636a9952008-05-05 22:52:56 +000010094 cat >conftest.$ac_ext <<_ACEOF
10095/* confdefs.h. */
10096_ACEOF
10097cat confdefs.h >>conftest.$ac_ext
10098cat >>conftest.$ac_ext <<_ACEOF
10099/* end confdefs.h. */
10100$ac_includes_default
10101int
10102main ()
10103{
drh866108f2008-05-13 00:57:21 +000010104if ((uint32_t *) 0)
10105 return 0;
10106if (sizeof (uint32_t))
10107 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010108 ;
10109 return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest.$ac_objext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_type_uint32_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010135else
drh866108f2008-05-13 00:57:21 +000010136 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010137sed 's/^/| /' conftest.$ac_ext >&5
10138
drh866108f2008-05-13 00:57:21 +000010139ac_cv_type_uint32_t=no
mlcreech636a9952008-05-05 22:52:56 +000010140fi
drh866108f2008-05-13 00:57:21 +000010141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010142fi
drh866108f2008-05-13 00:57:21 +000010143echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10144echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010145if test $ac_cv_type_uint32_t = yes; then
10146
10147cat >>confdefs.h <<_ACEOF
10148#define HAVE_UINT32_T 1
10149_ACEOF
10150
10151
10152fi
drh866108f2008-05-13 00:57:21 +000010153echo "$as_me:$LINENO: checking for uint64_t" >&5
10154echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010155if test "${ac_cv_type_uint64_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010156 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010157else
mlcreech636a9952008-05-05 22:52:56 +000010158 cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164$ac_includes_default
10165int
10166main ()
10167{
drh866108f2008-05-13 00:57:21 +000010168if ((uint64_t *) 0)
10169 return 0;
10170if (sizeof (uint64_t))
10171 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010172 ;
10173 return 0;
10174}
10175_ACEOF
10176rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010179 ac_status=$?
10180 grep -v '^ *+' conftest.er1 >conftest.err
10181 rm -f conftest.er1
10182 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag"
10186 || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 ac_cv_type_uint64_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010199else
drh866108f2008-05-13 00:57:21 +000010200 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010201sed 's/^/| /' conftest.$ac_ext >&5
10202
drh866108f2008-05-13 00:57:21 +000010203ac_cv_type_uint64_t=no
mlcreech636a9952008-05-05 22:52:56 +000010204fi
drh866108f2008-05-13 00:57:21 +000010205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010206fi
drh866108f2008-05-13 00:57:21 +000010207echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
10208echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010209if test $ac_cv_type_uint64_t = yes; then
10210
10211cat >>confdefs.h <<_ACEOF
10212#define HAVE_UINT64_T 1
10213_ACEOF
10214
10215
10216fi
shanefbedede2008-07-22 05:05:01 +000010217
mlcreech636a9952008-05-05 22:52:56 +000010218rm -f conftest.$ac_objext
mlcreechb87057f2008-03-06 07:19:20 +000010219
10220
10221#########
10222# Check for needed/wanted headers
10223
mlcreech8390bc32008-03-06 08:54:38 +000010224
10225
10226
10227for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000010228do
drh866108f2008-05-13 00:57:21 +000010229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010235fi
drh866108f2008-05-13 00:57:21 +000010236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010238else
mlcreech8390bc32008-03-06 08:54:38 +000010239 # Is the header compilable?
drh866108f2008-05-13 00:57:21 +000010240echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010242cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000010248$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000010249#include <$ac_header>
10250_ACEOF
10251rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
mlcreech8390bc32008-03-06 08:54:38 +000010273 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000010274else
drh866108f2008-05-13 00:57:21 +000010275 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010276sed 's/^/| /' conftest.$ac_ext >&5
10277
drh866108f2008-05-13 00:57:21 +000010278ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000010279fi
drh866108f2008-05-13 00:57:21 +000010280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282echo "${ECHO_T}$ac_header_compiler" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010283
10284# Is the header present?
drh866108f2008-05-13 00:57:21 +000010285echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010287cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h. */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h. */
10293#include <$ac_header>
10294_ACEOF
drh866108f2008-05-13 00:57:21 +000010295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000010297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } >/dev/null; then
10303 if test -s conftest.err; then
10304 ac_cpp_err=$ac_c_preproc_warn_flag
10305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10306 else
10307 ac_cpp_err=
10308 fi
10309else
10310 ac_cpp_err=yes
10311fi
10312if test -z "$ac_cpp_err"; then
mlcreech8390bc32008-03-06 08:54:38 +000010313 ac_header_preproc=yes
10314else
drh866108f2008-05-13 00:57:21 +000010315 echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000010316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_header_preproc=no
10319fi
mlcreech8390bc32008-03-06 08:54:38 +000010320rm -f conftest.err conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +000010321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322echo "${ECHO_T}$ac_header_preproc" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010323
10324# So? What about this header?
10325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
drh866108f2008-05-13 00:57:21 +000010327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000010331 ac_header_preproc=yes
10332 ;;
10333 no:yes:* )
drh866108f2008-05-13 00:57:21 +000010334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10346 (
10347 cat <<\_ASBOX
10348## --------------------------------- ##
10349## Report this to the sqlite lists. ##
10350## --------------------------------- ##
10351_ASBOX
10352 ) |
10353 sed "s/^/$as_me: WARNING: /" >&2
mlcreech8390bc32008-03-06 08:54:38 +000010354 ;;
10355esac
drh866108f2008-05-13 00:57:21 +000010356echo "$as_me:$LINENO: checking for $ac_header" >&5
10357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010360else
10361 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000010362fi
drh866108f2008-05-13 00:57:21 +000010363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010365
10366fi
drh866108f2008-05-13 00:57:21 +000010367if test `eval echo '${'$as_ac_Header'}'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000010368 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +000010369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010370_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010371
mlcreechb87057f2008-03-06 07:19:20 +000010372fi
10373
10374done
10375
10376
10377#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010378# Figure out whether or not we have these functions
10379#
10380
10381
10382
10383
shanefbedede2008-07-22 05:05:01 +000010384for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000010385do
drh866108f2008-05-13 00:57:21 +000010386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387echo "$as_me:$LINENO: checking for $ac_func" >&5
10388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10389if eval "test \"\${$as_ac_var+set}\" = set"; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000010391else
10392 cat >conftest.$ac_ext <<_ACEOF
10393/* confdefs.h. */
10394_ACEOF
10395cat confdefs.h >>conftest.$ac_ext
10396cat >>conftest.$ac_ext <<_ACEOF
10397/* end confdefs.h. */
10398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10400#define $ac_func innocuous_$ac_func
10401
10402/* System header to define __stub macros and hopefully few prototypes,
10403 which can conflict with char $ac_func (); below.
10404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10405 <limits.h> exists even on freestanding compilers. */
10406
10407#ifdef __STDC__
10408# include <limits.h>
10409#else
10410# include <assert.h>
10411#endif
10412
10413#undef $ac_func
10414
drh866108f2008-05-13 00:57:21 +000010415/* Override any gcc2 internal prototype to avoid an error. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000010416#ifdef __cplusplus
10417extern "C"
drh866108f2008-05-13 00:57:21 +000010418{
mlcreech5b0a9eb2008-03-09 01:38:09 +000010419#endif
drh866108f2008-05-13 00:57:21 +000010420/* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000010422char $ac_func ();
10423/* The GNU C library defines this for functions which it implements
10424 to always fail with ENOSYS. Some functions are actually named
10425 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +000010426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
mlcreech5b0a9eb2008-03-09 01:38:09 +000010427choke me
drh866108f2008-05-13 00:57:21 +000010428#else
10429char (*f) () = $ac_func;
10430#endif
10431#ifdef __cplusplus
10432}
mlcreech5b0a9eb2008-03-09 01:38:09 +000010433#endif
10434
10435int
10436main ()
10437{
drh866108f2008-05-13 00:57:21 +000010438return f != $ac_func;
mlcreech5b0a9eb2008-03-09 01:38:09 +000010439 ;
10440 return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +000010444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445 (eval $ac_link) 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag"
10453 || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000010465 eval "$as_ac_var=yes"
10466else
drh866108f2008-05-13 00:57:21 +000010467 echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000010468sed 's/^/| /' conftest.$ac_ext >&5
10469
drh866108f2008-05-13 00:57:21 +000010470eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000010471fi
drh866108f2008-05-13 00:57:21 +000010472rm -f conftest.err conftest.$ac_objext \
mlcreech5b0a9eb2008-03-09 01:38:09 +000010473 conftest$ac_exeext conftest.$ac_ext
10474fi
drh866108f2008-05-13 00:57:21 +000010475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10477if test `eval echo '${'$as_ac_var'}'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000010478 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +000010479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010480_ACEOF
10481
10482fi
10483done
10484
10485
mlcreechab1c47b2008-03-09 02:51:10 +000010486#########
mlcreechf3868112008-03-11 18:03:30 +000010487# By default, we use the amalgamation (this may be changed below...)
10488#
10489USE_AMALGAMATION=1
10490
10491#########
mlcreechab1c47b2008-03-09 02:51:10 +000010492# See whether we can run specific tclsh versions known to work well;
10493# if not, then we fall back to plain tclsh.
10494# TODO: try other versions before falling back?
10495#
10496for ac_prog in tclsh8.4 tclsh
10497do
10498 # Extract the first word of "$ac_prog", so it can be a program name with args.
10499set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +000010500echo "$as_me:$LINENO: checking for $ac_word" >&5
10501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010502if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010503 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010504else
10505 if test -n "$TCLSH_CMD"; then
10506 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +000010514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010515 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh866108f2008-05-13 00:57:21 +000010516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010517 break 2
10518 fi
10519done
10520done
mlcreechab1c47b2008-03-09 02:51:10 +000010521
10522fi
10523fi
10524TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10525if test -n "$TCLSH_CMD"; then
drh866108f2008-05-13 00:57:21 +000010526 echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
10527echo "${ECHO_T}$TCLSH_CMD" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010528else
drh866108f2008-05-13 00:57:21 +000010529 echo "$as_me:$LINENO: result: no" >&5
10530echo "${ECHO_T}no" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010531fi
10532
mlcreechab1c47b2008-03-09 02:51:10 +000010533 test -n "$TCLSH_CMD" && break
10534done
mlcreechf3868112008-03-11 18:03:30 +000010535test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010536
mlcreechf3868112008-03-11 18:03:30 +000010537if test "$TCLSH_CMD" = "none"; then
10538 # If we can't find a local tclsh, then building the amalgamation will fail.
10539 # We act as though --disable-amalgamation has been used.
10540 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10541 USE_AMALGAMATION=0
10542 TCLSH_CMD="tclsh"
10543fi
mlcreechab1c47b2008-03-09 02:51:10 +000010544
10545
mlcreech5b0a9eb2008-03-09 01:38:09 +000010546
10547#########
drh75897232000-05-29 14:26:00 +000010548# Set up an appropriate program prefix
10549#
10550if test "$program_prefix" = "NONE"; then
10551 program_prefix=""
10552fi
10553
a.rottmann84e63352003-03-24 09:42:16 +000010554
drh4b2266a2004-11-27 15:52:16 +000010555VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10556echo "Version set to $VERSION"
10557
10558RELEASE=`cat $srcdir/VERSION`
10559echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000010560
danielk197799ba19e2005-02-05 07:33:34 +000010561VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010562 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010563 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000010564echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000010565
drh26d0e2a2005-07-06 13:51:27 +000010566
drh75897232000-05-29 14:26:00 +000010567#########
10568# Check to see if the --with-hints=FILE option is used. If there is none,
10569# then check for a files named "$host.hints" and ../$hosts.hints where
10570# $host is the hostname of the build system. If still no hints are
10571# found, try looking in $system.hints and ../$system.hints where
10572# $system is the result of uname -s.
10573#
drh71eb93e2001-09-28 01:34:43 +000010574
drh866108f2008-05-13 00:57:21 +000010575# Check whether --with-hints or --without-hints was given.
drh75897232000-05-29 14:26:00 +000010576if test "${with_hints+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010577 withval="$with_hints"
10578 hints=$withval
10579fi;
drh75897232000-05-29 14:26:00 +000010580if test "$hints" = ""; then
10581 host=`hostname | sed 's/\..*//'`
10582 if test -r $host.hints; then
10583 hints=$host.hints
10584 else
10585 if test -r ../$host.hints; then
10586 hints=../$host.hints
10587 fi
10588 fi
10589fi
10590if test "$hints" = ""; then
10591 sys=`uname -s`
10592 if test -r $sys.hints; then
10593 hints=$sys.hints
10594 else
10595 if test -r ../$sys.hints; then
10596 hints=../$sys.hints
10597 fi
10598 fi
10599fi
10600if test "$hints" != ""; then
drh866108f2008-05-13 00:57:21 +000010601 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
10602echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000010603 . $hints
10604fi
10605
10606#########
10607# Locate a compiler for the build machine. This compiler should
10608# generate command-line programs that run on the build machine.
10609#
vapier7f19c022007-02-17 14:46:31 +000010610if test x"$cross_compiling" = xno; then
10611 BUILD_CC=$CC
10612 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010613else
vapier7f19c022007-02-17 14:46:31 +000010614 if test "${BUILD_CC+set}" != set; then
10615 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010616do
10617 # Extract the first word of "$ac_prog", so it can be a program name with args.
10618set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +000010619echo "$as_me:$LINENO: checking for $ac_word" >&5
10620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000010621if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010622 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000010623else
vapier7f19c022007-02-17 14:46:31 +000010624 if test -n "$BUILD_CC"; then
10625 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010626else
a.rottmann84e63352003-03-24 09:42:16 +000010627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +000010633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010634 ac_cv_prog_BUILD_CC="$ac_prog"
drh866108f2008-05-13 00:57:21 +000010635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010636 break 2
10637 fi
10638done
drh71eb93e2001-09-28 01:34:43 +000010639done
drh75897232000-05-29 14:26:00 +000010640
drh71eb93e2001-09-28 01:34:43 +000010641fi
10642fi
vapier7f19c022007-02-17 14:46:31 +000010643BUILD_CC=$ac_cv_prog_BUILD_CC
10644if test -n "$BUILD_CC"; then
drh866108f2008-05-13 00:57:21 +000010645 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10646echo "${ECHO_T}$BUILD_CC" >&6
drh71eb93e2001-09-28 01:34:43 +000010647else
drh866108f2008-05-13 00:57:21 +000010648 echo "$as_me:$LINENO: result: no" >&5
10649echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +000010650fi
drh75897232000-05-29 14:26:00 +000010651
vapier7f19c022007-02-17 14:46:31 +000010652 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010653done
drh75897232000-05-29 14:26:00 +000010654
vapier7f19c022007-02-17 14:46:31 +000010655 fi
10656 if test "${BUILD_CFLAGS+set}" != set; then
10657 BUILD_CFLAGS="-g"
10658 fi
drh71eb93e2001-09-28 01:34:43 +000010659fi
10660
a.rottmann84e63352003-03-24 09:42:16 +000010661
drh297ecf12001-04-05 15:57:13 +000010662##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010663# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010664#
drh866108f2008-05-13 00:57:21 +000010665# Check whether --enable-threadsafe or --disable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000010666if test "${enable_threadsafe+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010667 enableval="$enable_threadsafe"
10668
drh297ecf12001-04-05 15:57:13 +000010669else
drh5a3032b2007-09-03 16:12:09 +000010670 enable_threadsafe=yes
drh866108f2008-05-13 00:57:21 +000010671fi;
10672echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
10673echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000010674if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010675 SQLITE_THREADSAFE=0
drh866108f2008-05-13 00:57:21 +000010676 echo "$as_me:$LINENO: result: no" >&5
10677echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000010678else
drh5a3032b2007-09-03 16:12:09 +000010679 SQLITE_THREADSAFE=1
drh866108f2008-05-13 00:57:21 +000010680 echo "$as_me:$LINENO: result: yes" >&5
10681echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000010682fi
10683
a.rottmann964dbb12004-02-26 19:47:42 +000010684
drh5a3032b2007-09-03 16:12:09 +000010685if test "$SQLITE_THREADSAFE" = "1"; then
drh866108f2008-05-13 00:57:21 +000010686 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
10687echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6
mlcreechc658b0f2008-03-09 02:20:11 +000010688if test "${ac_cv_search_pthread_create+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010689 echo $ECHO_N "(cached) $ECHO_C" >&6
dougcurrie65623c72004-09-20 14:57:23 +000010690else
mlcreechc658b0f2008-03-09 02:20:11 +000010691 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000010692ac_cv_search_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000010693cat >conftest.$ac_ext <<_ACEOF
10694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
10699
drh866108f2008-05-13 00:57:21 +000010700/* Override any gcc2 internal prototype to avoid an error. */
dougcurrie65623c72004-09-20 14:57:23 +000010701#ifdef __cplusplus
10702extern "C"
10703#endif
drh866108f2008-05-13 00:57:21 +000010704/* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010706char pthread_create ();
10707int
10708main ()
10709{
drh866108f2008-05-13 00:57:21 +000010710pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010711 ;
10712 return 0;
10713}
10714_ACEOF
drh866108f2008-05-13 00:57:21 +000010715rm -f conftest.$ac_objext conftest$ac_exeext
10716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000010718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_search_pthread_create="none required"
dougcurrie65623c72004-09-20 14:57:23 +000010738else
drh866108f2008-05-13 00:57:21 +000010739 echo "$as_me: failed program was:" >&5
dougcurrie65623c72004-09-20 14:57:23 +000010740sed 's/^/| /' conftest.$ac_ext >&5
10741
dougcurrie65623c72004-09-20 14:57:23 +000010742fi
drh866108f2008-05-13 00:57:21 +000010743rm -f conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745if test "$ac_cv_search_pthread_create" = no; then
10746 for ac_lib in pthread; do
10747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h. */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
10753/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000010754
drh866108f2008-05-13 00:57:21 +000010755/* Override any gcc2 internal prototype to avoid an error. */
10756#ifdef __cplusplus
10757extern "C"
10758#endif
10759/* We use char because int might match the return type of a gcc2
10760 builtin and then its argument prototype would still apply. */
10761char pthread_create ();
10762int
10763main ()
10764{
10765pthread_create ();
10766 ;
10767 return 0;
10768}
10769_ACEOF
10770rm -f conftest.$ac_objext conftest$ac_exeext
10771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_search_pthread_create="-l$ac_lib"
10793break
dougcurrie65623c72004-09-20 14:57:23 +000010794else
drh866108f2008-05-13 00:57:21 +000010795 echo "$as_me: failed program was:" >&5
10796sed 's/^/| /' conftest.$ac_ext >&5
10797
mlcreechc658b0f2008-03-09 02:20:11 +000010798fi
drh866108f2008-05-13 00:57:21 +000010799rm -f conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 done
10802fi
mlcreechc658b0f2008-03-09 02:20:11 +000010803LIBS=$ac_func_search_save_LIBS
10804fi
drh866108f2008-05-13 00:57:21 +000010805echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
10806echo "${ECHO_T}$ac_cv_search_pthread_create" >&6
10807if test "$ac_cv_search_pthread_create" != no; then
10808 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010809
dougcurrie65623c72004-09-20 14:57:23 +000010810fi
10811
mlcreechc658b0f2008-03-09 02:20:11 +000010812fi
dougcurrie65623c72004-09-20 14:57:23 +000010813
xdong28f79f72003-09-23 00:35:21 +000010814##########
drh91636d52005-11-24 23:14:00 +000010815# Do we want to allow a connection created in one thread to be used
10816# in another thread. This does not work on many Linux systems (ex: RedHat 9)
10817# due to bugs in the threading implementations. This is thus off by default.
10818#
drh866108f2008-05-13 00:57:21 +000010819# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000010820if test "${enable_cross_thread_connections+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010821 enableval="$enable_cross_thread_connections"
10822
drh91636d52005-11-24 23:14:00 +000010823else
10824 enable_xthreadconnect=no
drh866108f2008-05-13 00:57:21 +000010825fi;
10826echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
10827echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
drh91636d52005-11-24 23:14:00 +000010828if test "$enable_xthreadconnect" = "no"; then
10829 XTHREADCONNECT=''
drh866108f2008-05-13 00:57:21 +000010830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
drh91636d52005-11-24 23:14:00 +000010832else
10833 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh866108f2008-05-13 00:57:21 +000010834 echo "$as_me:$LINENO: result: yes" >&5
10835echo "${ECHO_T}yes" >&6
drh91636d52005-11-24 23:14:00 +000010836fi
10837
10838
10839##########
drh8e2e2a12006-02-01 01:55:17 +000010840# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
10841# default. Normally, a test at runtime is performed to determine the
10842# appropriate value of this variable. Use this option only if you're sure that
10843# threads can safely override each others locks in all runtime situations.
10844#
drh866108f2008-05-13 00:57:21 +000010845# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000010846if test "${enable_threads_override_locks+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010847 enableval="$enable_threads_override_locks"
10848
drh8e2e2a12006-02-01 01:55:17 +000010849else
10850 enable_threads_override_locks=no
drh866108f2008-05-13 00:57:21 +000010851fi;
10852echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
10853echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
drh8e2e2a12006-02-01 01:55:17 +000010854if test "$enable_threads_override_locks" = "no"; then
10855 THREADSOVERRIDELOCKS='-1'
drh866108f2008-05-13 00:57:21 +000010856 echo "$as_me:$LINENO: result: no" >&5
10857echo "${ECHO_T}no" >&6
drh8e2e2a12006-02-01 01:55:17 +000010858else
10859 THREADSOVERRIDELOCKS='1'
drh866108f2008-05-13 00:57:21 +000010860 echo "$as_me:$LINENO: result: yes" >&5
10861echo "${ECHO_T}yes" >&6
drh8e2e2a12006-02-01 01:55:17 +000010862fi
10863
10864
10865##########
xdong28f79f72003-09-23 00:35:21 +000010866# Do we want to support release
10867#
drh866108f2008-05-13 00:57:21 +000010868# Check whether --enable-releasemode or --disable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000010869if test "${enable_releasemode+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010870 enableval="$enable_releasemode"
10871
xdong28f79f72003-09-23 00:35:21 +000010872else
10873 enable_releasemode=no
drh866108f2008-05-13 00:57:21 +000010874fi;
10875echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
10876echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000010877if test "$enable_releasemode" = "no"; then
10878 ALLOWRELEASE=""
drh866108f2008-05-13 00:57:21 +000010879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
xdong28f79f72003-09-23 00:35:21 +000010881else
drh0b47d342007-11-27 14:50:06 +000010882 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh866108f2008-05-13 00:57:21 +000010883 echo "$as_me:$LINENO: result: yes" >&5
10884echo "${ECHO_T}yes" >&6
xdong28f79f72003-09-23 00:35:21 +000010885fi
paulb0208cc2003-04-13 18:26:49 +000010886
a.rottmann964dbb12004-02-26 19:47:42 +000010887
paulb0208cc2003-04-13 18:26:49 +000010888##########
10889# Do we want temporary databases in memory
10890#
drh866108f2008-05-13 00:57:21 +000010891# Check whether --enable-tempstore or --disable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000010892if test "${enable_tempstore+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010893 enableval="$enable_tempstore"
10894
paulb0208cc2003-04-13 18:26:49 +000010895else
drh54414bb2005-10-10 00:05:50 +000010896 enable_tempstore=no
drh866108f2008-05-13 00:57:21 +000010897fi;
10898echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
10899echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000010900case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010901 never )
paul2dc96f92003-04-20 11:46:34 +000010902 TEMP_STORE=0
drh866108f2008-05-13 00:57:21 +000010903 echo "$as_me:$LINENO: result: never" >&5
10904echo "${ECHO_T}never" >&6
paulb0208cc2003-04-13 18:26:49 +000010905 ;;
10906 no )
paul2dc96f92003-04-20 11:46:34 +000010907 TEMP_STORE=1
drh866108f2008-05-13 00:57:21 +000010908 echo "$as_me:$LINENO: result: no" >&5
10909echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000010910 ;;
10911 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010912 TEMP_STORE=3
drh866108f2008-05-13 00:57:21 +000010913 echo "$as_me:$LINENO: result: always" >&5
10914echo "${ECHO_T}always" >&6
paulb0208cc2003-04-13 18:26:49 +000010915 ;;
drh54414bb2005-10-10 00:05:50 +000010916 yes )
10917 TEMP_STORE=3
drh866108f2008-05-13 00:57:21 +000010918 echo "$as_me:$LINENO: result: always" >&5
10919echo "${ECHO_T}always" >&6
drh54414bb2005-10-10 00:05:50 +000010920 ;;
paulb0208cc2003-04-13 18:26:49 +000010921 * )
drh54414bb2005-10-10 00:05:50 +000010922 TEMP_STORE=1
drh866108f2008-05-13 00:57:21 +000010923 echo "$as_me:$LINENO: result: yes" >&5
10924echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000010925 ;;
10926esac
10927
10928
10929
drh75897232000-05-29 14:26:00 +000010930###########
10931# Lots of things are different if we are compiling for Windows using
10932# the CYGWIN environment. So check for that special case and handle
10933# things accordingly.
10934#
drh866108f2008-05-13 00:57:21 +000010935echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
10936echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000010937if test "$config_BUILD_EXEEXT" = ".exe"; then
10938 CYGWIN=yes
drh866108f2008-05-13 00:57:21 +000010939 echo "$as_me:$LINENO: result: yes" >&5
10940echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000010941else
drh866108f2008-05-13 00:57:21 +000010942 echo "$as_me:$LINENO: result: unknown" >&5
10943echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000010944fi
10945if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010946
10947case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010948 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010949 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010950esac
drh75897232000-05-29 14:26:00 +000010951
drh75897232000-05-29 14:26:00 +000010952fi
10953if test "$CYGWIN" = "yes"; then
10954 BUILD_EXEEXT=.exe
10955else
dougcurrie6194a5f2003-12-19 20:09:51 +000010956 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010957fi
vapier7f19c022007-02-17 14:46:31 +000010958if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010959 TARGET_EXEEXT=$BUILD_EXEEXT
10960else
10961 TARGET_EXEEXT=$config_TARGET_EXEEXT
10962fi
10963if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000010964 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000010965 SQLITE_OS_UNIX=0
10966 SQLITE_OS_WIN=0
10967 SQLITE_OS_OS2=1
10968 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
mlcreech57ee0522008-04-14 22:57:55 +000010969 if test "$ac_compiler_gnu" = "yes" ; then
mlcreech8390bc32008-03-06 08:54:38 +000010970 CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
drh60a1e4b2006-06-03 18:02:15 +000010971 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
10972 fi
10973 else
danielk197729bafea2008-06-26 10:41:19 +000010974 SQLITE_OS_UNIX=0
10975 SQLITE_OS_WIN=1
10976 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000010977 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000010978 fi
drh75897232000-05-29 14:26:00 +000010979else
danielk197729bafea2008-06-26 10:41:19 +000010980 SQLITE_OS_UNIX=1
10981 SQLITE_OS_WIN=0
10982 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000010983 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010984fi
drh75897232000-05-29 14:26:00 +000010985
a.rottmann84e63352003-03-24 09:42:16 +000010986
10987
10988
10989
10990
drh75897232000-05-29 14:26:00 +000010991
drh75897232000-05-29 14:26:00 +000010992##########
drh7b5717e2004-11-25 13:50:01 +000010993# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010994#
drh7b5717e2004-11-25 13:50:01 +000010995# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10996# macros in the in the tcl.m4 file of the standard TCL distribution.
10997# Those macros could not be used directly since we have to make some
10998# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010999#
drh866108f2008-05-13 00:57:21 +000011000# Check whether --enable-tcl or --disable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000011001if test "${enable_tcl+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011002 enableval="$enable_tcl"
11003 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000011004else
drh7b5717e2004-11-25 13:50:01 +000011005 use_tcl=yes
drh866108f2008-05-13 00:57:21 +000011006fi;
drh7b5717e2004-11-25 13:50:01 +000011007if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000011008
drh866108f2008-05-13 00:57:21 +000011009# Check whether --with-tcl or --without-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000011010if test "${with_tcl+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011011 withval="$with_tcl"
11012 with_tclconfig=${withval}
11013fi;
11014 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
11015echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000011016 if test "${ac_cv_c_tclconfig+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011017 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011018else
a.rottmann84e63352003-03-24 09:42:16 +000011019
drh7b5717e2004-11-25 13:50:01 +000011020 # First check to see if --with-tcl was specified.
11021 if test x"${with_tclconfig}" != x ; then
11022 if test -f "${with_tclconfig}/tclConfig.sh" ; then
11023 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
11024 else
drh866108f2008-05-13 00:57:21 +000011025 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
11026echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000011027 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000011028 fi
11029 fi
11030 # then check for a private Tcl installation
11031 if test x"${ac_cv_c_tclconfig}" = x ; then
11032 for i in \
11033 ../tcl \
11034 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11035 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
11036 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
11037 ../../tcl \
11038 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11039 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
11040 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
11041 ../../../tcl \
11042 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11043 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
11044 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
11045 do
11046 if test -f "$i/unix/tclConfig.sh" ; then
11047 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11048 break
11049 fi
11050 done
11051 fi
11052
11053 # check in a few common install locations
11054 if test x"${ac_cv_c_tclconfig}" = x ; then
11055 for i in \
11056 `ls -d ${libdir} 2>/dev/null` \
11057 `ls -d /usr/local/lib 2>/dev/null` \
11058 `ls -d /usr/contrib/lib 2>/dev/null` \
11059 `ls -d /usr/lib 2>/dev/null`
11060 do
11061 if test -f "$i/tclConfig.sh" ; then
11062 ac_cv_c_tclconfig=`(cd $i; pwd)`
11063 break
11064 fi
11065 done
11066 fi
11067
11068 # check in a few other private locations
11069 if test x"${ac_cv_c_tclconfig}" = x ; then
11070 for i in \
11071 ${srcdir}/../tcl \
11072 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11073 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
11074 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
11075 do
11076 if test -f "$i/unix/tclConfig.sh" ; then
11077 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11078 break
11079 fi
11080 done
11081 fi
11082
drh75897232000-05-29 14:26:00 +000011083fi
11084
drh7b5717e2004-11-25 13:50:01 +000011085
11086 if test x"${ac_cv_c_tclconfig}" = x ; then
11087 use_tcl=no
drh866108f2008-05-13 00:57:21 +000011088 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
11089echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
11091echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
11093echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000011094 else
11095 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh866108f2008-05-13 00:57:21 +000011096 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
11097echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
drh7b5717e2004-11-25 13:50:01 +000011098
drh866108f2008-05-13 00:57:21 +000011099 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
11100echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000011101 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh866108f2008-05-13 00:57:21 +000011102 echo "$as_me:$LINENO: result: loading" >&5
11103echo "${ECHO_T}loading" >&6
drh7b5717e2004-11-25 13:50:01 +000011104 . $TCL_BIN_DIR/tclConfig.sh
11105 else
drh866108f2008-05-13 00:57:21 +000011106 echo "$as_me:$LINENO: result: file not found" >&5
11107echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000011108 fi
drh7b5717e2004-11-25 13:50:01 +000011109
11110 #
11111 # If the TCL_BIN_DIR is the build directory (not the install directory),
11112 # then set the common variable name to the value of the build variables.
11113 # For example, the variable TCL_LIB_SPEC will be set to the value
11114 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
11115 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
11116 # installed and uninstalled version of Tcl.
11117 #
11118
mlcreechab1c47b2008-03-09 02:51:10 +000011119 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000011120 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
11121 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
11122 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
11123 fi
11124
11125 #
11126 # eval is required to do the TCL_DBGX substitution
11127 #
11128
11129 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
11130 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
11131 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
11132
11133 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
11134 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
11135 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150 fi
drh75897232000-05-29 14:26:00 +000011151fi
drh7b5717e2004-11-25 13:50:01 +000011152if test "${use_tcl}" = "no" ; then
11153 HAVE_TCL=""
11154else
11155 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000011156fi
drh75897232000-05-29 14:26:00 +000011157
a.rottmann84e63352003-03-24 09:42:16 +000011158
drh75897232000-05-29 14:26:00 +000011159##########
11160# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000011161# that use "readline()" library.
11162#
vapier7f19c022007-02-17 14:46:31 +000011163TARGET_READLINE_LIBS=""
11164TARGET_READLINE_INC=""
11165TARGET_HAVE_READLINE=0
drh866108f2008-05-13 00:57:21 +000011166# Check whether --enable-readline or --disable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000011167if test "${enable_readline+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011168 enableval="$enable_readline"
11169 with_readline=$enableval
drh75897232000-05-29 14:26:00 +000011170else
vapier7f19c022007-02-17 14:46:31 +000011171 with_readline=auto
drh866108f2008-05-13 00:57:21 +000011172fi;
vapier7f19c022007-02-17 14:46:31 +000011173
11174if test x"$with_readline" != xno; then
11175 found="yes"
11176
11177
drh866108f2008-05-13 00:57:21 +000011178# Check whether --with-readline-lib or --without-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000011179if test "${with_readline_lib+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011180 withval="$with_readline_lib"
11181 with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011182else
11183 with_readline_lib="auto"
drh866108f2008-05-13 00:57:21 +000011184fi;
vapier7f19c022007-02-17 14:46:31 +000011185 if test "x$with_readline_lib" = xauto; then
11186 save_LIBS="$LIBS"
11187 LIBS=""
drh866108f2008-05-13 00:57:21 +000011188 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
11189echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011190if test "${ac_cv_search_tgetent+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011191 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000011192else
drh71eb93e2001-09-28 01:34:43 +000011193 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000011194ac_cv_search_tgetent=no
paul38372372003-04-22 08:04:49 +000011195cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000011196/* confdefs.h. */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
11201
drh866108f2008-05-13 00:57:21 +000011202/* Override any gcc2 internal prototype to avoid an error. */
paul38372372003-04-22 08:04:49 +000011203#ifdef __cplusplus
11204extern "C"
11205#endif
drh866108f2008-05-13 00:57:21 +000011206/* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011208char tgetent ();
11209int
11210main ()
11211{
drh866108f2008-05-13 00:57:21 +000011212tgetent ();
paul38372372003-04-22 08:04:49 +000011213 ;
11214 return 0;
11215}
11216_ACEOF
drh866108f2008-05-13 00:57:21 +000011217rm -f conftest.$ac_objext conftest$ac_exeext
11218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11219 (eval $ac_link) 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000011220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest$ac_exeext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_search_tgetent="none required"
vapier7f19c022007-02-17 14:46:31 +000011240else
drh866108f2008-05-13 00:57:21 +000011241 echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000011242sed 's/^/| /' conftest.$ac_ext >&5
11243
vapier7f19c022007-02-17 14:46:31 +000011244fi
drh866108f2008-05-13 00:57:21 +000011245rm -f conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247if test "$ac_cv_search_tgetent" = no; then
11248 for ac_lib in readline ncurses curses termcap; do
11249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11250 cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011256
drh866108f2008-05-13 00:57:21 +000011257/* Override any gcc2 internal prototype to avoid an error. */
11258#ifdef __cplusplus
11259extern "C"
11260#endif
11261/* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263char tgetent ();
11264int
11265main ()
11266{
11267tgetent ();
11268 ;
11269 return 0;
11270}
11271_ACEOF
11272rm -f conftest.$ac_objext conftest$ac_exeext
11273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_cv_search_tgetent="-l$ac_lib"
11295break
mlcreech94984912008-03-04 19:03:08 +000011296else
drh866108f2008-05-13 00:57:21 +000011297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
mlcreech94984912008-03-04 19:03:08 +000011300fi
drh866108f2008-05-13 00:57:21 +000011301rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 done
11304fi
paul38372372003-04-22 08:04:49 +000011305LIBS=$ac_func_search_save_LIBS
11306fi
drh866108f2008-05-13 00:57:21 +000011307echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
11308echo "${ECHO_T}$ac_cv_search_tgetent" >&6
11309if test "$ac_cv_search_tgetent" != no; then
11310 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011311 term_LIBS="$LIBS"
11312else
11313 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011314fi
11315
drh866108f2008-05-13 00:57:21 +000011316 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
11317echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011318if test "${ac_cv_lib_readline_readline+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011319 echo $ECHO_N "(cached) $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011320else
11321 ac_check_lib_save_LIBS=$LIBS
11322LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000011323cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011324/* confdefs.h. */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011329
drh866108f2008-05-13 00:57:21 +000011330/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000011331#ifdef __cplusplus
11332extern "C"
11333#endif
drh866108f2008-05-13 00:57:21 +000011334/* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011336char readline ();
11337int
11338main ()
11339{
drh866108f2008-05-13 00:57:21 +000011340readline ();
drh71eb93e2001-09-28 01:34:43 +000011341 ;
11342 return 0;
11343}
11344_ACEOF
11345rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +000011346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000011348 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000011349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest$ac_exeext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000011367 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011368else
drh866108f2008-05-13 00:57:21 +000011369 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011370sed 's/^/| /' conftest.$ac_ext >&5
11371
drh866108f2008-05-13 00:57:21 +000011372ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011373fi
drh866108f2008-05-13 00:57:21 +000011374rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +000011375 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011376LIBS=$ac_check_lib_save_LIBS
11377fi
drh866108f2008-05-13 00:57:21 +000011378echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
11379echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
paul38372372003-04-22 08:04:49 +000011380if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000011381 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011382else
vapier7f19c022007-02-17 14:46:31 +000011383 found="no"
11384fi
drhf1878b42006-01-23 18:06:52 +000011385
vapier7f19c022007-02-17 14:46:31 +000011386 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11387 LIBS="$save_LIBS"
11388 else
11389 TARGET_READLINE_LIBS="$with_readline_lib"
11390 fi
11391
11392
drh866108f2008-05-13 00:57:21 +000011393# Check whether --with-readline-inc or --without-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000011394if test "${with_readline_inc+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011395 withval="$with_readline_inc"
11396 with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011397else
vapier7f19c022007-02-17 14:46:31 +000011398 with_readline_inc="auto"
drh866108f2008-05-13 00:57:21 +000011399fi;
vapier7f19c022007-02-17 14:46:31 +000011400 if test "x$with_readline_inc" = xauto; then
11401 if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011402 echo "$as_me:$LINENO: checking for readline.h" >&5
11403echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000011404if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011405 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011406fi
drh866108f2008-05-13 00:57:21 +000011407echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11408echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000011409else
a.rottmann84e63352003-03-24 09:42:16 +000011410 # Is the header compilable?
drh866108f2008-05-13 00:57:21 +000011411echo "$as_me:$LINENO: checking readline.h usability" >&5
11412echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011413cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
11419$ac_includes_default
drh75897232000-05-29 14:26:00 +000011420#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000011421_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011422rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000011423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11424 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000011425 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000011426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try='test -z "$ac_c_werror_flag"
11432 || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +000011444 ac_header_compiler=yes
11445else
drh866108f2008-05-13 00:57:21 +000011446 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011447sed 's/^/| /' conftest.$ac_ext >&5
11448
drh866108f2008-05-13 00:57:21 +000011449ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000011450fi
drh866108f2008-05-13 00:57:21 +000011451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11453echo "${ECHO_T}$ac_header_compiler" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011454
11455# Is the header present?
drh866108f2008-05-13 00:57:21 +000011456echo "$as_me:$LINENO: checking readline.h presence" >&5
11457echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011458cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464#include <readline.h>
11465_ACEOF
drh866108f2008-05-13 00:57:21 +000011466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000011468 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000011469 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000011470 rm -f conftest.er1
11471 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } >/dev/null; then
11474 if test -s conftest.err; then
11475 ac_cpp_err=$ac_c_preproc_warn_flag
11476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11477 else
11478 ac_cpp_err=
11479 fi
11480else
11481 ac_cpp_err=yes
11482fi
11483if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000011484 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000011485else
drh866108f2008-05-13 00:57:21 +000011486 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000011490fi
drh71eb93e2001-09-28 01:34:43 +000011491rm -f conftest.err conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +000011492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11493echo "${ECHO_T}$ac_header_preproc" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011494
11495# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000011496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11497 yes:no: )
drh866108f2008-05-13 00:57:21 +000011498 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
11499echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
11501echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000011502 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000011503 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000011504 no:yes:* )
drh866108f2008-05-13 00:57:21 +000011505 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
11506echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
11507 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
11508echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
11510echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
11512echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
11514echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
11516echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
11517 (
11518 cat <<\_ASBOX
11519## --------------------------------- ##
11520## Report this to the sqlite lists. ##
11521## --------------------------------- ##
11522_ASBOX
11523 ) |
11524 sed "s/^/$as_me: WARNING: /" >&2
a.rottmann84e63352003-03-24 09:42:16 +000011525 ;;
11526esac
drh866108f2008-05-13 00:57:21 +000011527echo "$as_me:$LINENO: checking for readline.h" >&5
11528echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011529if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011530 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011531else
11532 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000011533fi
drh866108f2008-05-13 00:57:21 +000011534echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11535echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011536
11537fi
drh71eb93e2001-09-28 01:34:43 +000011538if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000011539 found="yes"
11540else
drh75897232000-05-29 14:26:00 +000011541
vapier7f19c022007-02-17 14:46:31 +000011542 found="no"
11543 if test "$cross_compiling" != yes; then
11544 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11545 for subdir in include include/readline; do
drh866108f2008-05-13 00:57:21 +000011546 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11547echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
11548echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6
11549if eval "test \"\${$as_ac_File+set}\" = set"; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011551else
11552 test "$cross_compiling" = yes &&
drh866108f2008-05-13 00:57:21 +000011553 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11554echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000011555 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000011556if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011557 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011558else
drh71eb93e2001-09-28 01:34:43 +000011559 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011560fi
11561fi
drh866108f2008-05-13 00:57:21 +000011562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11563echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11564if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000011565 found=yes
drh75897232000-05-29 14:26:00 +000011566fi
11567
vapier7f19c022007-02-17 14:46:31 +000011568 if test "$found" = "yes"; then
11569 TARGET_READLINE_INC="-I$dir/$subdir"
11570 break
11571 fi
11572 done
11573 test "$found" = "yes" && break
11574 done
11575 fi
11576
11577fi
11578
11579
11580 else
11581 TARGET_READLINE_INC="$with_readline_inc"
11582 fi
11583
11584 if test x"$found" = xno; then
11585 TARGET_READLINE_LIBS=""
11586 TARGET_READLINE_INC=""
11587 TARGET_HAVE_READLINE=0
11588 else
11589 TARGET_HAVE_READLINE=1
11590 fi
11591fi
11592
11593
11594
11595
11596
11597##########
11598# Figure out what C libraries are required to compile programs
11599# that use "fdatasync()" function.
11600#
drh866108f2008-05-13 00:57:21 +000011601echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
11602echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000011603if test "${ac_cv_search_fdatasync+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011604 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011605else
vapier7f19c022007-02-17 14:46:31 +000011606 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000011607ac_cv_search_fdatasync=no
vapier7f19c022007-02-17 14:46:31 +000011608cat >conftest.$ac_ext <<_ACEOF
11609/* confdefs.h. */
11610_ACEOF
11611cat confdefs.h >>conftest.$ac_ext
11612cat >>conftest.$ac_ext <<_ACEOF
11613/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011614
drh866108f2008-05-13 00:57:21 +000011615/* Override any gcc2 internal prototype to avoid an error. */
vapier7f19c022007-02-17 14:46:31 +000011616#ifdef __cplusplus
11617extern "C"
11618#endif
drh866108f2008-05-13 00:57:21 +000011619/* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011621char fdatasync ();
11622int
11623main ()
11624{
drh866108f2008-05-13 00:57:21 +000011625fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011626 ;
11627 return 0;
11628}
11629_ACEOF
drh866108f2008-05-13 00:57:21 +000011630rm -f conftest.$ac_objext conftest$ac_exeext
11631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632 (eval $ac_link) 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000011633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag"
11640 || test ! -s conftest.err'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; } &&
11646 { ac_try='test -s conftest$ac_exeext'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; }; then
11652 ac_cv_search_fdatasync="none required"
vapier7f19c022007-02-17 14:46:31 +000011653else
drh866108f2008-05-13 00:57:21 +000011654 echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000011655sed 's/^/| /' conftest.$ac_ext >&5
11656
vapier7f19c022007-02-17 14:46:31 +000011657fi
drh866108f2008-05-13 00:57:21 +000011658rm -f conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11660if test "$ac_cv_search_fdatasync" = no; then
11661 for ac_lib in rt; do
11662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11663 cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011669
drh866108f2008-05-13 00:57:21 +000011670/* Override any gcc2 internal prototype to avoid an error. */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674/* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11676char fdatasync ();
11677int
11678main ()
11679{
11680fdatasync ();
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext conftest$ac_exeext
11686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687 (eval $ac_link) 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest$ac_exeext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_search_fdatasync="-l$ac_lib"
11708break
mlcreech94984912008-03-04 19:03:08 +000011709else
drh866108f2008-05-13 00:57:21 +000011710 echo "$as_me: failed program was:" >&5
11711sed 's/^/| /' conftest.$ac_ext >&5
11712
mlcreech94984912008-03-04 19:03:08 +000011713fi
drh866108f2008-05-13 00:57:21 +000011714rm -f conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 done
11717fi
vapier7f19c022007-02-17 14:46:31 +000011718LIBS=$ac_func_search_save_LIBS
11719fi
drh866108f2008-05-13 00:57:21 +000011720echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
11721echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
11722if test "$ac_cv_search_fdatasync" != no; then
11723 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011724
vapier7f19c022007-02-17 14:46:31 +000011725fi
11726
a.rottmann84e63352003-03-24 09:42:16 +000011727
drh75897232000-05-29 14:26:00 +000011728#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011729# check for debug enabled
drh866108f2008-05-13 00:57:21 +000011730# Check whether --enable-debug or --disable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000011731if test "${enable_debug+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011732 enableval="$enable_debug"
11733 use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011734else
11735 use_debug=no
drh866108f2008-05-13 00:57:21 +000011736fi;
tpoindex9d9f76c2005-01-03 21:28:56 +000011737if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011738 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011739else
11740 TARGET_DEBUG="-DNDEBUG"
11741fi
11742
11743
11744#########
mlcreech94984912008-03-04 19:03:08 +000011745# See whether we should use the amalgamation to build
drh866108f2008-05-13 00:57:21 +000011746# Check whether --enable-amalgamation or --disable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000011747if test "${enable_amalgamation+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011748 enableval="$enable_amalgamation"
11749 use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011750else
11751 use_amalgamation=yes
drh866108f2008-05-13 00:57:21 +000011752fi;
mlcreechf3868112008-03-11 18:03:30 +000011753if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011754 USE_AMALGAMATION=0
11755fi
11756
11757
11758#########
mlcreecha4edab02008-03-06 04:14:17 +000011759# See whether we should allow loadable extensions
drh866108f2008-05-13 00:57:21 +000011760# Check whether --enable-load-extension or --disable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000011761if test "${enable_load_extension+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011762 enableval="$enable_load_extension"
11763 use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011764else
11765 use_loadextension=no
drh866108f2008-05-13 00:57:21 +000011766fi;
mlcreecha4edab02008-03-06 04:14:17 +000011767if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011768 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000011769else
shanefbedede2008-07-22 05:05:01 +000011770 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011771fi
11772
11773
mlcreechaac7b932008-04-01 02:45:22 +000011774#########
shanefbedede2008-07-22 05:05:01 +000011775# attempt to duplicate any OMITS into the $(OPT_FEATURE_FLAGS) parameter
11776for option in $CFLAGS $CPPFLAGS
11777do
11778 case $option in
11779 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS+=" $option";;
11780 esac
11781done
11782
11783
11784# attempt to remove any OMITS from the $(CFLAGS) parameter
11785ac_temp_CFLAGS=""
11786for option in $CFLAGS
11787do
11788 case $option in
11789 -DSQLITE_OMIT*) ;;
11790 *) ac_temp_CFLAGS+=" $option";;
11791 esac
11792done
11793CFLAGS=$ac_temp_CFLAGS
11794
11795
11796# attempt to remove any OMITS from the $(CPPFLAGS) parameter
11797ac_temp_CPPFLAGS=""
11798for option in $CPPFLAGS
11799do
11800 case $option in
11801 -DSQLITE_OMIT*) ;;
11802 *) ac_temp_CPPFLAGS+=" $option";;
11803 esac
11804done
11805CPPFLAGS=$ac_temp_CPPFLAGS
11806
11807# attempt to remove any OMITS from the $(BUILD_CFLAGS) parameter
11808ac_temp_BUILD_CFLAGS=""
11809for option in $BUILD_CFLAGS
11810do
11811 case $option in
11812 -DSQLITE_OMIT*) ;;
11813 *) ac_temp_BUILD_CFLAGS+=" $option";;
11814 esac
11815done
11816BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11817
11818
11819#########
11820# See whether we should use GCOV
drh866108f2008-05-13 00:57:21 +000011821# Check whether --enable-gcov or --disable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000011822if test "${enable_gcov+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011823 enableval="$enable_gcov"
11824 use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011825else
11826 use_gcov=no
drh866108f2008-05-13 00:57:21 +000011827fi;
mlcreechaac7b932008-04-01 02:45:22 +000011828if test "${use_gcov}" = "yes" ; then
11829 USE_GCOV=1
11830else
11831 USE_GCOV=0
11832fi
11833
11834
drh2dfbbca2000-07-28 14:32:48 +000011835#########
mlcreechb87057f2008-03-06 07:19:20 +000011836# Output the config header
drh866108f2008-05-13 00:57:21 +000011837 ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011838
11839
11840#########
drh75897232000-05-29 14:26:00 +000011841# Generate the output files.
11842#
mlcreechdf59c7c2008-03-06 07:51:15 +000011843
drh866108f2008-05-13 00:57:21 +000011844 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000011845cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011846# This file is a shell script that caches the results of configure
11847# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011848# scripts and configure runs, see configure's option --config-cache.
11849# It is not useful on other systems. If it contains results you don't
11850# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011851#
drh71eb93e2001-09-28 01:34:43 +000011852# config.status only pays attention to the cache file if you give it
11853# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011854#
a.rottmann84e63352003-03-24 09:42:16 +000011855# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011856# loading this file, other *unset* `ac_cv_foo' will be assigned the
11857# following values.
11858
11859_ACEOF
11860
drh75897232000-05-29 14:26:00 +000011861# The following way of writing the cache mishandles newlines in values,
11862# but we know of no workaround that is simple, portable, and efficient.
drh866108f2008-05-13 00:57:21 +000011863# So, don't put newlines in cache variables' values.
drh75897232000-05-29 14:26:00 +000011864# Ultrix sh set writes to stderr and can't be redirected directly,
11865# and sets the high bit in the cache file unless we assign to the vars.
drh866108f2008-05-13 00:57:21 +000011866{
drh71eb93e2001-09-28 01:34:43 +000011867 (set) 2>&1 |
drh866108f2008-05-13 00:57:21 +000011868 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11869 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000011870 # `set' does not quote correctly, so add quotes (double-quote
11871 # substitution turns \\\\ into \\, and sed turns \\ into \).
11872 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011873 "s/'/'\\\\''/g;
11874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh866108f2008-05-13 00:57:21 +000011875 ;;
drh71eb93e2001-09-28 01:34:43 +000011876 *)
11877 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh866108f2008-05-13 00:57:21 +000011878 sed -n \
11879 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000011880 ;;
drh866108f2008-05-13 00:57:21 +000011881 esac;
11882} |
drh71eb93e2001-09-28 01:34:43 +000011883 sed '
11884 t clear
drh866108f2008-05-13 00:57:21 +000011885 : clear
drh71eb93e2001-09-28 01:34:43 +000011886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11887 t end
drh866108f2008-05-13 00:57:21 +000011888 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11889 : end' >>confcache
11890if diff $cache_file confcache >/dev/null 2>&1; then :; else
11891 if test -w $cache_file; then
11892 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
drh71eb93e2001-09-28 01:34:43 +000011893 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000011894 else
drh866108f2008-05-13 00:57:21 +000011895 echo "not updating unwritable cache $cache_file"
drh75897232000-05-29 14:26:00 +000011896 fi
11897fi
11898rm -f confcache
11899
drh75897232000-05-29 14:26:00 +000011900test "x$prefix" = xNONE && prefix=$ac_default_prefix
11901# Let make expand exec_prefix.
11902test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11903
drh866108f2008-05-13 00:57:21 +000011904# VPATH may cause trouble with some makes, so we remove $(srcdir),
11905# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11906# trailing colons and then remove the whole line if VPATH becomes empty
11907# (actually we leave an empty line to preserve line numbers).
11908if test "x$srcdir" = x.; then
11909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11910s/:*\$(srcdir):*/:/;
11911s/:*\${srcdir}:*/:/;
11912s/:*@srcdir@:*/:/;
11913s/^\([^=]*=[ ]*\):*/\1/;
11914s/:*$//;
11915s/^[^=]*=[ ]*$//;
11916}'
11917fi
11918
mlcreechb87057f2008-03-06 07:19:20 +000011919DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011920
11921ac_libobjs=
11922ac_ltlibobjs=
11923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11924 # 1. Remove the extension, and $U if already installed.
drh866108f2008-05-13 00:57:21 +000011925 ac_i=`echo "$ac_i" |
11926 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11927 # 2. Add them.
11928 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11929 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011930done
11931LIBOBJS=$ac_libobjs
11932
11933LTLIBOBJS=$ac_ltlibobjs
11934
11935
11936
drh75897232000-05-29 14:26:00 +000011937: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000011938ac_clean_files_save=$ac_clean_files
11939ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh866108f2008-05-13 00:57:21 +000011940{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11941echo "$as_me: creating $CONFIG_STATUS" >&6;}
11942cat >$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011943#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011944# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011945# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011946# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011947# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011948
drh71eb93e2001-09-28 01:34:43 +000011949debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011950ac_cs_recheck=false
11951ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000011952SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000011953_ACEOF
drh75897232000-05-29 14:26:00 +000011954
drh866108f2008-05-13 00:57:21 +000011955cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011956## --------------------- ##
11957## M4sh Initialization. ##
11958## --------------------- ##
11959
drh866108f2008-05-13 00:57:21 +000011960# Be Bourne compatible
drh71eb93e2001-09-28 01:34:43 +000011961if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11962 emulate sh
11963 NULLCMD=:
drh866108f2008-05-13 00:57:21 +000011964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011965 # is contrary to our usage. Disable this feature.
11966 alias -g '${1+"$@"}'='"$@"'
drh866108f2008-05-13 00:57:21 +000011967elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11968 set -o posix
a.rottmann84e63352003-03-24 09:42:16 +000011969fi
drh866108f2008-05-13 00:57:21 +000011970DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000011971
mlcreech94984912008-03-04 19:03:08 +000011972# Support unset when possible.
11973if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11974 as_unset=unset
11975else
11976 as_unset=false
11977fi
a.rottmann84e63352003-03-24 09:42:16 +000011978
mlcreech94984912008-03-04 19:03:08 +000011979
mlcreech94984912008-03-04 19:03:08 +000011980# Work around bugs in pre-3.0 UWIN ksh.
drh866108f2008-05-13 00:57:21 +000011981$as_unset ENV MAIL MAILPATH
mlcreech94984912008-03-04 19:03:08 +000011982PS1='$ '
11983PS2='> '
11984PS4='+ '
11985
11986# NLS nuisances.
drh866108f2008-05-13 00:57:21 +000011987for as_var in \
11988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11990 LC_TELEPHONE LC_TIME
11991do
11992 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11993 eval $as_var=C; export $as_var
11994 else
11995 $as_unset $as_var
11996 fi
11997done
mlcreech94984912008-03-04 19:03:08 +000011998
11999# Required to use basename.
drh866108f2008-05-13 00:57:21 +000012000if expr a : '\(a\)' >/dev/null 2>&1; then
mlcreech94984912008-03-04 19:03:08 +000012001 as_expr=expr
12002else
12003 as_expr=false
12004fi
12005
drh866108f2008-05-13 00:57:21 +000012006if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012007 as_basename=basename
12008else
12009 as_basename=false
12010fi
12011
12012
12013# Name of the executable.
drh866108f2008-05-13 00:57:21 +000012014as_me=`$as_basename "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12016 X"$0" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000012017 X"$0" : 'X\(/\)$' \| \
12018 . : '\(.\)' 2>/dev/null ||
12019echo X/"$0" |
12020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12021 /^X\/\(\/\/\)$/{ s//\1/; q; }
12022 /^X\/\(\/\).*/{ s//\1/; q; }
12023 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012024
mlcreech94984912008-03-04 19:03:08 +000012025
drh866108f2008-05-13 00:57:21 +000012026# PATH needs CR, and LINENO needs CR and PATH.
12027# Avoid depending upon Character Ranges.
12028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12031as_cr_digits='0123456789'
12032as_cr_alnum=$as_cr_Letters$as_cr_digits
12033
12034# The user is always right.
12035if test "${PATH_SEPARATOR+set}" != set; then
12036 echo "#! /bin/sh" >conf$$.sh
12037 echo "exit 0" >>conf$$.sh
12038 chmod +x conf$$.sh
12039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12040 PATH_SEPARATOR=';'
12041 else
12042 PATH_SEPARATOR=:
12043 fi
12044 rm -f conf$$.sh
12045fi
mlcreech94984912008-03-04 19:03:08 +000012046
12047
a.rottmann84e63352003-03-24 09:42:16 +000012048 as_lineno_1=$LINENO
12049 as_lineno_2=$LINENO
drh866108f2008-05-13 00:57:21 +000012050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
a.rottmann84e63352003-03-24 09:42:16 +000012051 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh866108f2008-05-13 00:57:21 +000012052 test "x$as_lineno_3" = "x$as_lineno_2" || {
12053 # Find who we are. Look in the path if we contain no path at all
12054 # relative or not.
12055 case $0 in
12056 *[\\/]* ) as_myself=$0 ;;
12057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058for as_dir in $PATH
12059do
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12063done
12064
12065 ;;
12066 esac
12067 # We did not find ourselves, most probably we were run as `sh COMMAND'
12068 # in which case we are not to be found in the path.
12069 if test "x$as_myself" = x; then
12070 as_myself=$0
12071 fi
12072 if test ! -f "$as_myself"; then
12073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12074echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12075 { (exit 1); exit 1; }; }
12076 fi
12077 case $CONFIG_SHELL in
12078 '')
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12081do
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for as_base in sh bash ksh sh5; do
12085 case $as_dir in
12086 /*)
12087 if ("$as_dir/$as_base" -c '
12088 as_lineno_1=$LINENO
12089 as_lineno_2=$LINENO
12090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12091 test "x$as_lineno_1" != "x$as_lineno_2" &&
12092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12095 CONFIG_SHELL=$as_dir/$as_base
12096 export CONFIG_SHELL
12097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12098 fi;;
12099 esac
12100 done
12101done
12102;;
12103 esac
a.rottmann84e63352003-03-24 09:42:16 +000012104
12105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12106 # uniformly replaced by the line number. The first 'sed' inserts a
drh866108f2008-05-13 00:57:21 +000012107 # line-number line before each line; the second 'sed' does the real
12108 # work. The second script uses 'N' to pair each line-number line
12109 # with the numbered line, and appends trailing '-' during
12110 # substitution so that $LINENO is not a special case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000012111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh866108f2008-05-13 00:57:21 +000012112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12113 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000012114 sed '
12115 N
drh866108f2008-05-13 00:57:21 +000012116 s,$,-,
12117 : loop
12118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +000012119 t loop
drh866108f2008-05-13 00:57:21 +000012120 s,-$,,
12121 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +000012122 ' >$as_me.lineno &&
drh866108f2008-05-13 00:57:21 +000012123 chmod +x $as_me.lineno ||
12124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12125echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000012126 { (exit 1); exit 1; }; }
12127
12128 # Don't try to exec as it changes $[0], causing all sort of problems
12129 # (the dirname of $[0] is not the place where we might find the
drh866108f2008-05-13 00:57:21 +000012130 # original and so on. Autoconf is especially sensible to this).
12131 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +000012132 # Exit status is that of the last command.
12133 exit
12134}
12135
12136
drh866108f2008-05-13 00:57:21 +000012137case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12138 *c*,-n*) ECHO_N= ECHO_C='
12139' ECHO_T=' ' ;;
12140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
a.rottmann84e63352003-03-24 09:42:16 +000012142esac
drh866108f2008-05-13 00:57:21 +000012143
12144if expr a : '\(a\)' >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000012145 as_expr=expr
12146else
12147 as_expr=false
12148fi
12149
12150rm -f conf$$ conf$$.exe conf$$.file
drh866108f2008-05-13 00:57:21 +000012151echo >conf$$.file
12152if ln -s conf$$.file conf$$ 2>/dev/null; then
12153 # We could just check for DJGPP; but this test a) works b) is more generic
12154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12155 if test -f conf$$.exe; then
12156 # Don't use ln at all; we don't have any links
drh71eb93e2001-09-28 01:34:43 +000012157 as_ln_s='cp -p'
drh866108f2008-05-13 00:57:21 +000012158 else
12159 as_ln_s='ln -s'
mlcreech636a9952008-05-05 22:52:56 +000012160 fi
drh866108f2008-05-13 00:57:21 +000012161elif ln conf$$.file conf$$ 2>/dev/null; then
12162 as_ln_s=ln
drh71eb93e2001-09-28 01:34:43 +000012163else
12164 as_ln_s='cp -p'
12165fi
drh866108f2008-05-13 00:57:21 +000012166rm -f conf$$ conf$$.exe conf$$.file
drh71eb93e2001-09-28 01:34:43 +000012167
a.rottmann84e63352003-03-24 09:42:16 +000012168if mkdir -p . 2>/dev/null; then
12169 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000012170else
a.rottmann964dbb12004-02-26 19:47:42 +000012171 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012172 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012173fi
12174
drh866108f2008-05-13 00:57:21 +000012175as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +000012176
12177# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012178as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012179
12180# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012181as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012182
drh71eb93e2001-09-28 01:34:43 +000012183
drh866108f2008-05-13 00:57:21 +000012184# IFS
12185# We need space, tab and new line, in precisely that order.
12186as_nl='
12187'
12188IFS=" $as_nl"
12189
12190# CDPATH.
12191$as_unset CDPATH
12192
drh71eb93e2001-09-28 01:34:43 +000012193exec 6>&1
12194
drh866108f2008-05-13 00:57:21 +000012195# Open the log real soon, to keep \$[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012196# report actual input values of CONFIG_FILES etc. instead of their
drh866108f2008-05-13 00:57:21 +000012197# values after options handling. Logging --version etc. is OK.
12198exec 5>>config.log
12199{
12200 echo
12201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12202## Running $as_me. ##
12203_ASBOX
12204} >&5
12205cat >&5 <<_CSEOF
12206
danielk197729bafea2008-06-26 10:41:19 +000012207This file was extended by sqlite $as_me 3.6.0, which was
drh866108f2008-05-13 00:57:21 +000012208generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012209
12210 CONFIG_FILES = $CONFIG_FILES
12211 CONFIG_HEADERS = $CONFIG_HEADERS
12212 CONFIG_LINKS = $CONFIG_LINKS
12213 CONFIG_COMMANDS = $CONFIG_COMMANDS
12214 $ $0 $@
12215
drh866108f2008-05-13 00:57:21 +000012216_CSEOF
12217echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12218echo >&5
drh71eb93e2001-09-28 01:34:43 +000012219_ACEOF
12220
12221# Files that config.status was made for.
drh866108f2008-05-13 00:57:21 +000012222if test -n "$ac_config_files"; then
12223 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12224fi
drh71eb93e2001-09-28 01:34:43 +000012225
drh866108f2008-05-13 00:57:21 +000012226if test -n "$ac_config_headers"; then
12227 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12228fi
drh71eb93e2001-09-28 01:34:43 +000012229
drh866108f2008-05-13 00:57:21 +000012230if test -n "$ac_config_links"; then
12231 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12232fi
12233
12234if test -n "$ac_config_commands"; then
12235 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12236fi
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF
12239
drh71eb93e2001-09-28 01:34:43 +000012240ac_cs_usage="\
12241\`$as_me' instantiates files from templates according to the
12242current configuration.
12243
12244Usage: $0 [OPTIONS] [FILE]...
12245
12246 -h, --help print this help, then exit
drh866108f2008-05-13 00:57:21 +000012247 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000012248 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012249 -d, --debug don't remove temporary files
12250 --recheck update $as_me by reconfiguring in the same conditions
12251 --file=FILE[:TEMPLATE]
drh866108f2008-05-13 00:57:21 +000012252 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000012253 --header=FILE[:TEMPLATE]
drh866108f2008-05-13 00:57:21 +000012254 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012255
12256Configuration files:
12257$config_files
12258
mlcreechb87057f2008-03-06 07:19:20 +000012259Configuration headers:
12260$config_headers
12261
mlcreech636a9952008-05-05 22:52:56 +000012262Configuration commands:
12263$config_commands
12264
drh71eb93e2001-09-28 01:34:43 +000012265Report bugs to <bug-autoconf@gnu.org>."
mlcreech94984912008-03-04 19:03:08 +000012266_ACEOF
drh75897232000-05-29 14:26:00 +000012267
drh866108f2008-05-13 00:57:21 +000012268cat >>$CONFIG_STATUS <<_ACEOF
12269ac_cs_version="\\
danielk197729bafea2008-06-26 10:41:19 +000012270sqlite config.status 3.6.0
drh866108f2008-05-13 00:57:21 +000012271configured by $0, generated by GNU Autoconf 2.59,
12272 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12273
12274Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012275This config.status script is free software; the Free Software Foundation
12276gives unlimited permission to copy, distribute and modify it."
drh866108f2008-05-13 00:57:21 +000012277srcdir=$srcdir
12278INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000012279_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012280
drh866108f2008-05-13 00:57:21 +000012281cat >>$CONFIG_STATUS <<\_ACEOF
12282# If no file are specified by the user, then we need to provide default
12283# value. By we need to know if files were specified by the user.
drh71eb93e2001-09-28 01:34:43 +000012284ac_need_defaults=:
12285while test $# != 0
12286do
12287 case $1 in
12288 --*=*)
drh866108f2008-05-13 00:57:21 +000012289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012291 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012292 ;;
drh866108f2008-05-13 00:57:21 +000012293 -*)
a.rottmann84e63352003-03-24 09:42:16 +000012294 ac_option=$1
12295 ac_optarg=$2
12296 ac_shift=shift
12297 ;;
drh866108f2008-05-13 00:57:21 +000012298 *) # This is not an option, so the user has probably given explicit
12299 # arguments.
12300 ac_option=$1
12301 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000012302 esac
12303
a.rottmann84e63352003-03-24 09:42:16 +000012304 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012305 # Handling of the options.
drh866108f2008-05-13 00:57:21 +000012306_ACEOF
12307cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012309 ac_cs_recheck=: ;;
drh866108f2008-05-13 00:57:21 +000012310 --version | --vers* | -V )
12311 echo "$ac_cs_version"; exit 0 ;;
12312 --he | --h)
12313 # Conflict between --help and --header
12314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12315Try \`$0 --help' for more information." >&5
12316echo "$as_me: error: ambiguous option: $1
12317Try \`$0 --help' for more information." >&2;}
12318 { (exit 1); exit 1; }; };;
12319 --help | --hel | -h )
12320 echo "$ac_cs_usage"; exit 0 ;;
12321 --debug | --d* | -d )
drh71eb93e2001-09-28 01:34:43 +000012322 debug=: ;;
12323 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012324 $ac_shift
drh866108f2008-05-13 00:57:21 +000012325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000012326 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012327 --header | --heade | --head | --hea )
12328 $ac_shift
drh866108f2008-05-13 00:57:21 +000012329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
mlcreechb87057f2008-03-06 07:19:20 +000012330 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000012331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12333 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012334
drh71eb93e2001-09-28 01:34:43 +000012335 # This is an error.
drh866108f2008-05-13 00:57:21 +000012336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12337Try \`$0 --help' for more information." >&5
12338echo "$as_me: error: unrecognized option: $1
12339Try \`$0 --help' for more information." >&2;}
drh71eb93e2001-09-28 01:34:43 +000012340 { (exit 1); exit 1; }; } ;;
12341
drh866108f2008-05-13 00:57:21 +000012342 *) ac_config_targets="$ac_config_targets $1" ;;
drh71eb93e2001-09-28 01:34:43 +000012343
12344 esac
12345 shift
12346done
12347
a.rottmann84e63352003-03-24 09:42:16 +000012348ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012349
a.rottmann84e63352003-03-24 09:42:16 +000012350if $ac_cs_silent; then
12351 exec 6>/dev/null
12352 ac_configure_extra_args="$ac_configure_extra_args --silent"
12353fi
drh71eb93e2001-09-28 01:34:43 +000012354
12355_ACEOF
drh866108f2008-05-13 00:57:21 +000012356cat >>$CONFIG_STATUS <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012357if \$ac_cs_recheck; then
drh866108f2008-05-13 00:57:21 +000012358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000012360fi
drh71eb93e2001-09-28 01:34:43 +000012361
a.rottmann84e63352003-03-24 09:42:16 +000012362_ACEOF
12363
drh866108f2008-05-13 00:57:21 +000012364cat >>$CONFIG_STATUS <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000012365#
drh866108f2008-05-13 00:57:21 +000012366# INIT-COMMANDS section.
mlcreech636a9952008-05-05 22:52:56 +000012367#
12368
12369
drh866108f2008-05-13 00:57:21 +000012370
mlcreech636a9952008-05-05 22:52:56 +000012371# The HP-UX ksh and POSIX shell print the target directory to stdout
12372# if CDPATH is set.
12373(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12374
12375sed_quote_subst='$sed_quote_subst'
12376double_quote_subst='$double_quote_subst'
12377delay_variable_subst='$delay_variable_subst'
12378macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12379macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12380enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12381enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12382pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12383enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12384host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12385host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12386host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12387build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12388build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12389build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12390SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12391Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12392GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12393EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12394FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12395LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12396NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12397LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12398max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12399ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12400exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12401lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12402lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12403lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12404reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12405reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12406deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12407file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12408AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12409AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12410STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12411RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12412old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12413old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12414old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12415CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12416CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12417compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12418GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12419lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12420lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12421lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12422lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12423objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12424SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12425ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12426MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12427lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12428lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12429lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12430lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12431lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12432need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12433DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12434NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12435LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12436OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12437OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12438libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12439shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12440extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12441archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12442enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12443export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12444whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12445compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12446old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12447old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12448archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12449archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12450module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12451module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12452with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12453allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12454no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12455hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12456hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12457hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12458hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12459hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12460hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12461hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12462hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12463inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12464link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12465fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12466always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12467export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12468exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12469include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12470prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12471file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12472variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12473need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12474need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12475version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12476runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12477shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12478shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12479libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12480library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12481soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12482postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12483postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12484finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12485finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12486hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12487sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12488sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12489hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12490enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12491enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12492enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12493old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12494striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12495
12496LTCC='$LTCC'
12497LTCFLAGS='$LTCFLAGS'
12498compiler='$compiler_DEFAULT'
12499
12500# Quote evaled strings.
12501for var in SED \
12502GREP \
12503EGREP \
12504FGREP \
12505LD \
12506NM \
12507LN_S \
12508lt_SP2NL \
12509lt_NL2SP \
12510reload_flag \
12511deplibs_check_method \
12512file_magic_cmd \
12513AR \
12514AR_FLAGS \
12515STRIP \
12516RANLIB \
12517CC \
12518CFLAGS \
12519compiler \
12520lt_cv_sys_global_symbol_pipe \
12521lt_cv_sys_global_symbol_to_cdecl \
12522lt_cv_sys_global_symbol_to_c_name_address \
12523lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12524SHELL \
12525ECHO \
12526lt_prog_compiler_no_builtin_flag \
12527lt_prog_compiler_wl \
12528lt_prog_compiler_pic \
12529lt_prog_compiler_static \
12530lt_cv_prog_compiler_c_o \
12531need_locks \
12532DSYMUTIL \
12533NMEDIT \
12534LIPO \
12535OTOOL \
12536OTOOL64 \
12537shrext_cmds \
12538export_dynamic_flag_spec \
12539whole_archive_flag_spec \
12540compiler_needs_object \
12541with_gnu_ld \
12542allow_undefined_flag \
12543no_undefined_flag \
12544hardcode_libdir_flag_spec \
12545hardcode_libdir_flag_spec_ld \
12546hardcode_libdir_separator \
12547fix_srcfile_path \
12548exclude_expsyms \
12549include_expsyms \
12550file_list_spec \
12551variables_saved_for_relink \
12552libname_spec \
12553library_names_spec \
12554soname_spec \
12555finish_eval \
12556old_striplib \
12557striplib; do
12558 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12559 *[\\\\\\\`\\"\\\$]*)
12560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12561 ;;
12562 *)
12563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12564 ;;
12565 esac
12566done
12567
12568# Double-quote double-evaled strings.
12569for var in reload_cmds \
12570old_postinstall_cmds \
12571old_postuninstall_cmds \
12572old_archive_cmds \
12573extract_expsyms_cmds \
12574old_archive_from_new_cmds \
12575old_archive_from_expsyms_cmds \
12576archive_cmds \
12577archive_expsym_cmds \
12578module_cmds \
12579module_expsym_cmds \
12580export_symbols_cmds \
12581prelink_cmds \
12582postinstall_cmds \
12583postuninstall_cmds \
12584finish_cmds \
12585sys_lib_search_path_spec \
12586sys_lib_dlsearch_path_spec; do
12587 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12588 *[\\\\\\\`\\"\\\$]*)
12589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12590 ;;
12591 *)
12592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12593 ;;
12594 esac
12595done
12596
12597# Fix-up fallback echo if it was mangled by the above quoting rules.
12598case \$lt_ECHO in
12599*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12600 ;;
12601esac
12602
12603ac_aux_dir='$ac_aux_dir'
12604xsi_shell='$xsi_shell'
12605lt_shell_append='$lt_shell_append'
12606
12607# See if we are running on zsh, and set the options which allow our
12608# commands through without removal of \ escapes INIT.
12609if test -n "\${ZSH_VERSION+set}" ; then
12610 setopt NO_GLOB_SUBST
12611fi
12612
12613
12614 PACKAGE='$PACKAGE'
12615 VERSION='$VERSION'
12616 TIMESTAMP='$TIMESTAMP'
12617 RM='$RM'
12618 ofile='$ofile'
12619
12620
12621
12622
mlcreech94984912008-03-04 19:03:08 +000012623_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012624
mlcreech94984912008-03-04 19:03:08 +000012625
drh866108f2008-05-13 00:57:21 +000012626
12627cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012628for ac_config_target in $ac_config_targets
12629do
drh866108f2008-05-13 00:57:21 +000012630 case "$ac_config_target" in
12631 # Handling of arguments.
12632 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12633 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12634 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12635 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12636 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12637echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000012638 { (exit 1); exit 1; }; };;
12639 esac
12640done
12641
12642# If the user did not use the arguments to specify the items to instantiate,
12643# then the envvar interface is used. Set only those that are not.
12644# We use the long form for the default assignment because of an extremely
12645# bizarre bug on SunOS 4.1.3.
12646if $ac_need_defaults; then
12647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012650fi
12651
a.rottmann84e63352003-03-24 09:42:16 +000012652# Have a temporary directory for convenience. Make it in the build tree
drh866108f2008-05-13 00:57:21 +000012653# simply because there is no reason to put it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012654# creating and moving files from /tmp can sometimes cause problems.
drh866108f2008-05-13 00:57:21 +000012655# Create a temporary directory, and hook for its removal unless debugging.
drh71eb93e2001-09-28 01:34:43 +000012656$debug ||
12657{
drh866108f2008-05-13 00:57:21 +000012658 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
drh71eb93e2001-09-28 01:34:43 +000012659 trap '{ (exit 1); exit 1; }' 1 2 13 15
12660}
drh866108f2008-05-13 00:57:21 +000012661
drh71eb93e2001-09-28 01:34:43 +000012662# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012663
drh71eb93e2001-09-28 01:34:43 +000012664{
drh866108f2008-05-13 00:57:21 +000012665 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000012666 test -n "$tmp" && test -d "$tmp"
12667} ||
12668{
drh866108f2008-05-13 00:57:21 +000012669 tmp=./confstat$$-$RANDOM
12670 (umask 077 && mkdir $tmp)
drh71eb93e2001-09-28 01:34:43 +000012671} ||
12672{
drh866108f2008-05-13 00:57:21 +000012673 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000012674 { (exit 1); exit 1; }
12675}
12676
a.rottmann84e63352003-03-24 09:42:16 +000012677_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012678
drh866108f2008-05-13 00:57:21 +000012679cat >>$CONFIG_STATUS <<_ACEOF
mlcreech94984912008-03-04 19:03:08 +000012680
drh866108f2008-05-13 00:57:21 +000012681#
12682# CONFIG_FILES section.
12683#
mlcreech94984912008-03-04 19:03:08 +000012684
drh866108f2008-05-13 00:57:21 +000012685# No need to generate the scripts if there are no CONFIG_FILES.
12686# This happens for instance when ./config.status config.h
12687if test -n "\$CONFIG_FILES"; then
12688 # Protect against being on the right side of a sed subst in config.status.
12689 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12690 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12691s,@SHELL@,$SHELL,;t t
12692s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12693s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12694s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12695s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12696s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12697s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12698s,@exec_prefix@,$exec_prefix,;t t
12699s,@prefix@,$prefix,;t t
12700s,@program_transform_name@,$program_transform_name,;t t
12701s,@bindir@,$bindir,;t t
12702s,@sbindir@,$sbindir,;t t
12703s,@libexecdir@,$libexecdir,;t t
12704s,@datadir@,$datadir,;t t
12705s,@sysconfdir@,$sysconfdir,;t t
12706s,@sharedstatedir@,$sharedstatedir,;t t
12707s,@localstatedir@,$localstatedir,;t t
12708s,@libdir@,$libdir,;t t
12709s,@includedir@,$includedir,;t t
12710s,@oldincludedir@,$oldincludedir,;t t
12711s,@infodir@,$infodir,;t t
12712s,@mandir@,$mandir,;t t
12713s,@build_alias@,$build_alias,;t t
12714s,@host_alias@,$host_alias,;t t
12715s,@target_alias@,$target_alias,;t t
12716s,@DEFS@,$DEFS,;t t
12717s,@ECHO_C@,$ECHO_C,;t t
12718s,@ECHO_N@,$ECHO_N,;t t
12719s,@ECHO_T@,$ECHO_T,;t t
12720s,@LIBS@,$LIBS,;t t
12721s,@LIBTOOL@,$LIBTOOL,;t t
12722s,@build@,$build,;t t
12723s,@build_cpu@,$build_cpu,;t t
12724s,@build_vendor@,$build_vendor,;t t
12725s,@build_os@,$build_os,;t t
12726s,@host@,$host,;t t
12727s,@host_cpu@,$host_cpu,;t t
12728s,@host_vendor@,$host_vendor,;t t
12729s,@host_os@,$host_os,;t t
12730s,@CC@,$CC,;t t
12731s,@CFLAGS@,$CFLAGS,;t t
12732s,@LDFLAGS@,$LDFLAGS,;t t
12733s,@CPPFLAGS@,$CPPFLAGS,;t t
12734s,@ac_ct_CC@,$ac_ct_CC,;t t
12735s,@EXEEXT@,$EXEEXT,;t t
12736s,@OBJEXT@,$OBJEXT,;t t
12737s,@SED@,$SED,;t t
12738s,@EGREP@,$EGREP,;t t
12739s,@FGREP@,$FGREP,;t t
12740s,@GREP@,$GREP,;t t
12741s,@LD@,$LD,;t t
12742s,@DUMPBIN@,$DUMPBIN,;t t
12743s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12744s,@NM@,$NM,;t t
12745s,@LN_S@,$LN_S,;t t
12746s,@AR@,$AR,;t t
12747s,@ac_ct_AR@,$ac_ct_AR,;t t
12748s,@STRIP@,$STRIP,;t t
12749s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12750s,@RANLIB@,$RANLIB,;t t
12751s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12752s,@lt_ECHO@,$lt_ECHO,;t t
12753s,@DSYMUTIL@,$DSYMUTIL,;t t
12754s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12755s,@NMEDIT@,$NMEDIT,;t t
12756s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12757s,@LIPO@,$LIPO,;t t
12758s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12759s,@OTOOL@,$OTOOL,;t t
12760s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12761s,@OTOOL64@,$OTOOL64,;t t
12762s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12763s,@CPP@,$CPP,;t t
12764s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12765s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12766s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12767s,@AWK@,$AWK,;t t
12768s,@TCLSH_CMD@,$TCLSH_CMD,;t t
12769s,@program_prefix@,$program_prefix,;t t
12770s,@VERSION@,$VERSION,;t t
12771s,@RELEASE@,$RELEASE,;t t
12772s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
12773s,@BUILD_CC@,$BUILD_CC,;t t
12774s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t
12775s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
12776s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
12777s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
12778s,@TEMP_STORE@,$TEMP_STORE,;t t
12779s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
danielk197729bafea2008-06-26 10:41:19 +000012780s,@SQLITE_OS_UNIX@,$SQLITE_OS_UNIX,;t t
12781s,@SQLITE_OS_WIN@,$SQLITE_OS_WIN,;t t
12782s,@SQLITE_OS_OS2@,$SQLITE_OS_OS2,;t t
drh866108f2008-05-13 00:57:21 +000012783s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
12784s,@TCL_VERSION@,$TCL_VERSION,;t t
12785s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
12786s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
12787s,@TCL_LIBS@,$TCL_LIBS,;t t
12788s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
12789s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
12790s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
12791s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12792s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
12793s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
12794s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
12795s,@HAVE_TCL@,$HAVE_TCL,;t t
12796s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
12797s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
12798s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
12799s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
12800s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t
shanefbedede2008-07-22 05:05:01 +000012801s,@OPT_FEATURE_FLAGS@,$OPT_FEATURE_FLAGS,;t t
drh866108f2008-05-13 00:57:21 +000012802s,@USE_GCOV@,$USE_GCOV,;t t
12803s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12804s,@LIBOBJS@,$LIBOBJS,;t t
12805s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12806CEOF
12807
12808_ACEOF
12809
12810 cat >>$CONFIG_STATUS <<\_ACEOF
12811 # Split the substitutions into bite-sized pieces for seds with
12812 # small command number limits, like on Digital OSF/1 and HP-UX.
12813 ac_max_sed_lines=48
12814 ac_sed_frag=1 # Number of current file.
12815 ac_beg=1 # First line for current file.
12816 ac_end=$ac_max_sed_lines # Line after last line for current file.
12817 ac_more_lines=:
12818 ac_sed_cmds=
12819 while $ac_more_lines; do
12820 if test $ac_beg -gt 1; then
12821 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12822 else
12823 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12824 fi
12825 if test ! -s $tmp/subs.frag; then
12826 ac_more_lines=false
12827 else
12828 # The purpose of the label and of the branching condition is to
12829 # speed up the sed processing (if there are no `@' at all, there
12830 # is no need to browse any of the substitutions).
12831 # These are the two extra sed commands mentioned above.
12832 (echo ':t
12833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12834 if test -z "$ac_sed_cmds"; then
12835 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12836 else
12837 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12838 fi
12839 ac_sed_frag=`expr $ac_sed_frag + 1`
12840 ac_beg=$ac_end
12841 ac_end=`expr $ac_end + $ac_max_sed_lines`
12842 fi
12843 done
12844 if test -z "$ac_sed_cmds"; then
12845 ac_sed_cmds=cat
drh71eb93e2001-09-28 01:34:43 +000012846 fi
12847fi # test -n "$CONFIG_FILES"
12848
mlcreech636a9952008-05-05 22:52:56 +000012849_ACEOF
drh866108f2008-05-13 00:57:21 +000012850cat >>$CONFIG_STATUS <<\_ACEOF
12851for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12853 case $ac_file in
12854 - | *:- | *:-:* ) # input from stdin
12855 cat >$tmp/stdin
12856 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12858 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12860 * ) ac_file_in=$ac_file.in ;;
drh71eb93e2001-09-28 01:34:43 +000012861 esac
12862
drh866108f2008-05-13 00:57:21 +000012863 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12864 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000012865$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012866 X"$ac_file" : 'X\(//\)[^/]' \| \
12867 X"$ac_file" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000012868 X"$ac_file" : 'X\(/\)' \| \
12869 . : '\(.\)' 2>/dev/null ||
12870echo X"$ac_file" |
12871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12873 /^X\(\/\/\)$/{ s//\1/; q; }
12874 /^X\(\/\).*/{ s//\1/; q; }
12875 s/.*/./; q'`
12876 { if $as_mkdir_p; then
12877 mkdir -p "$ac_dir"
12878 else
12879 as_dir="$ac_dir"
a.rottmann84e63352003-03-24 09:42:16 +000012880 as_dirs=
drh866108f2008-05-13 00:57:21 +000012881 while test ! -d "$as_dir"; do
12882 as_dirs="$as_dir $as_dirs"
12883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000012884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012885 X"$as_dir" : 'X\(//\)[^/]' \| \
12886 X"$as_dir" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000012887 X"$as_dir" : 'X\(/\)' \| \
12888 . : '\(.\)' 2>/dev/null ||
12889echo X"$as_dir" |
12890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12892 /^X\(\/\/\)$/{ s//\1/; q; }
12893 /^X\(\/\).*/{ s//\1/; q; }
12894 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000012895 done
drh866108f2008-05-13 00:57:21 +000012896 test ! -n "$as_dirs" || mkdir $as_dirs
12897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12898echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000012899 { (exit 1); exit 1; }; }; }
drh866108f2008-05-13 00:57:21 +000012900
a.rottmann84e63352003-03-24 09:42:16 +000012901 ac_builddir=.
12902
drh866108f2008-05-13 00:57:21 +000012903if test "$ac_dir" != .; then
12904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12905 # A "../" for each directory in $ac_dir_suffix.
12906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12907else
12908 ac_dir_suffix= ac_top_builddir=
12909fi
a.rottmann84e63352003-03-24 09:42:16 +000012910
12911case $srcdir in
drh866108f2008-05-13 00:57:21 +000012912 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012913 ac_srcdir=.
drh866108f2008-05-13 00:57:21 +000012914 if test -z "$ac_top_builddir"; then
12915 ac_top_srcdir=.
12916 else
12917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12918 fi ;;
12919 [\\/]* | ?:[\\/]* ) # Absolute path.
a.rottmann84e63352003-03-24 09:42:16 +000012920 ac_srcdir=$srcdir$ac_dir_suffix;
drh866108f2008-05-13 00:57:21 +000012921 ac_top_srcdir=$srcdir ;;
12922 *) # Relative path.
12923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012925esac
a.rottmann964dbb12004-02-26 19:47:42 +000012926
drh866108f2008-05-13 00:57:21 +000012927# Do not use `cd foo && pwd` to compute absolute paths, because
12928# the directories may not exist.
12929case `pwd` in
12930.) ac_abs_builddir="$ac_dir";;
12931*)
12932 case "$ac_dir" in
12933 .) ac_abs_builddir=`pwd`;;
12934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12936 esac;;
12937esac
12938case $ac_abs_builddir in
12939.) ac_abs_top_builddir=${ac_top_builddir}.;;
12940*)
12941 case ${ac_top_builddir}. in
12942 .) ac_abs_top_builddir=$ac_abs_builddir;;
12943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12945 esac;;
12946esac
12947case $ac_abs_builddir in
12948.) ac_abs_srcdir=$ac_srcdir;;
12949*)
12950 case $ac_srcdir in
12951 .) ac_abs_srcdir=$ac_abs_builddir;;
12952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12954 esac;;
12955esac
12956case $ac_abs_builddir in
12957.) ac_abs_top_srcdir=$ac_top_srcdir;;
12958*)
12959 case $ac_top_srcdir in
12960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12963 esac;;
12964esac
a.rottmann84e63352003-03-24 09:42:16 +000012965
drh75897232000-05-29 14:26:00 +000012966
drh71eb93e2001-09-28 01:34:43 +000012967 case $INSTALL in
12968 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh866108f2008-05-13 00:57:21 +000012969 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012970 esac
mlcreech94984912008-03-04 19:03:08 +000012971
drh866108f2008-05-13 00:57:21 +000012972 if test x"$ac_file" != x-; then
12973 { echo "$as_me:$LINENO: creating $ac_file" >&5
12974echo "$as_me: creating $ac_file" >&6;}
12975 rm -f "$ac_file"
12976 fi
12977 # Let's still pretend it is `configure' which instantiates (i.e., don't
12978 # use $as_me), people would be surprised to read:
12979 # /* config.h. Generated by config.status. */
12980 if test x"$ac_file" = x-; then
12981 configure_input=
12982 else
12983 configure_input="$ac_file. "
12984 fi
12985 configure_input=$configure_input"Generated from `echo $ac_file_in |
12986 sed 's,.*/,,'` by configure."
mlcreech94984912008-03-04 19:03:08 +000012987
drh866108f2008-05-13 00:57:21 +000012988 # First look for the input files in the build tree, otherwise in the
12989 # src tree.
12990 ac_file_inputs=`IFS=:
12991 for f in $ac_file_in; do
12992 case $f in
12993 -) echo $tmp/stdin ;;
12994 [\\/$]*)
12995 # Absolute (can't be DOS-style, as IFS=:)
12996 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12997echo "$as_me: error: cannot find input file: $f" >&2;}
12998 { (exit 1); exit 1; }; }
12999 echo "$f";;
13000 *) # Relative
13001 if test -f "$f"; then
13002 # Build tree
13003 echo "$f"
13004 elif test -f "$srcdir/$f"; then
13005 # Source tree
13006 echo "$srcdir/$f"
13007 else
13008 # /dev/null tree
13009 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13010echo "$as_me: error: cannot find input file: $f" >&2;}
13011 { (exit 1); exit 1; }; }
13012 fi;;
13013 esac
13014 done` || { (exit 1); exit 1; }
mlcreech94984912008-03-04 19:03:08 +000013015_ACEOF
drh866108f2008-05-13 00:57:21 +000013016cat >>$CONFIG_STATUS <<_ACEOF
13017 sed "$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013018$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013019_ACEOF
drh866108f2008-05-13 00:57:21 +000013020cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013021:t
13022/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh866108f2008-05-13 00:57:21 +000013023s,@configure_input@,$configure_input,;t t
13024s,@srcdir@,$ac_srcdir,;t t
13025s,@abs_srcdir@,$ac_abs_srcdir,;t t
13026s,@top_srcdir@,$ac_top_srcdir,;t t
13027s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13028s,@builddir@,$ac_builddir,;t t
13029s,@abs_builddir@,$ac_abs_builddir,;t t
13030s,@top_builddir@,$ac_top_builddir,;t t
13031s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13032s,@INSTALL@,$ac_INSTALL,;t t
13033" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13034 rm -f $tmp/stdin
mlcreechb87057f2008-03-06 07:19:20 +000013035 if test x"$ac_file" != x-; then
drh866108f2008-05-13 00:57:21 +000013036 mv $tmp/out $ac_file
mlcreechb87057f2008-03-06 07:19:20 +000013037 else
drh866108f2008-05-13 00:57:21 +000013038 cat $tmp/out
13039 rm -f $tmp/out
mlcreechb87057f2008-03-06 07:19:20 +000013040 fi
mlcreech94984912008-03-04 19:03:08 +000013041
drh866108f2008-05-13 00:57:21 +000013042done
13043_ACEOF
13044cat >>$CONFIG_STATUS <<\_ACEOF
13045
13046#
13047# CONFIG_HEADER section.
13048#
13049
13050# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13051# NAME is the cpp macro being defined and VALUE is the value it is being given.
13052#
13053# ac_d sets the value in "#define NAME VALUE" lines.
13054ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13055ac_dB='[ ].*$,\1#\2'
13056ac_dC=' '
13057ac_dD=',;t'
13058# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13059ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13060ac_uB='$,\1#\2define\3'
13061ac_uC=' '
13062ac_uD=',;t'
13063
13064for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13065 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13066 case $ac_file in
13067 - | *:- | *:-:* ) # input from stdin
13068 cat >$tmp/stdin
13069 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13071 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13072 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13073 * ) ac_file_in=$ac_file.in ;;
mlcreech94984912008-03-04 19:03:08 +000013074 esac
13075
drh866108f2008-05-13 00:57:21 +000013076 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13077echo "$as_me: creating $ac_file" >&6;}
mlcreech636a9952008-05-05 22:52:56 +000013078
drh866108f2008-05-13 00:57:21 +000013079 # First look for the input files in the build tree, otherwise in the
13080 # src tree.
13081 ac_file_inputs=`IFS=:
13082 for f in $ac_file_in; do
13083 case $f in
13084 -) echo $tmp/stdin ;;
13085 [\\/$]*)
13086 # Absolute (can't be DOS-style, as IFS=:)
13087 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13088echo "$as_me: error: cannot find input file: $f" >&2;}
13089 { (exit 1); exit 1; }; }
13090 # Do quote $f, to prevent DOS paths from being IFS'd.
13091 echo "$f";;
13092 *) # Relative
13093 if test -f "$f"; then
13094 # Build tree
13095 echo "$f"
13096 elif test -f "$srcdir/$f"; then
13097 # Source tree
13098 echo "$srcdir/$f"
13099 else
13100 # /dev/null tree
13101 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13102echo "$as_me: error: cannot find input file: $f" >&2;}
13103 { (exit 1); exit 1; }; }
13104 fi;;
13105 esac
13106 done` || { (exit 1); exit 1; }
13107 # Remove the trailing spaces.
13108 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13109
13110_ACEOF
13111
13112# Transform confdefs.h into two sed scripts, `conftest.defines' and
13113# `conftest.undefs', that substitutes the proper values into
13114# config.h.in to produce config.h. The first handles `#define'
13115# templates, and the second `#undef' templates.
13116# And first: Protect against being on the right side of a sed subst in
13117# config.status. Protect against being in an unquoted here document
13118# in config.status.
13119rm -f conftest.defines conftest.undefs
13120# Using a here document instead of a string reduces the quoting nightmare.
13121# Putting comments in sed scripts is not portable.
13122#
13123# `end' is used to avoid that the second main sed command (meant for
13124# 0-ary CPP macros) applies to n-ary macro definitions.
13125# See the Autoconf documentation for `clear'.
13126cat >confdef2sed.sed <<\_ACEOF
13127s/[\\&,]/\\&/g
13128s,[\\$`],\\&,g
13129t clear
13130: clear
13131s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13132t end
13133s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13134: end
13135_ACEOF
13136# If some macros were called several times there might be several times
13137# the same #defines, which is useless. Nevertheless, we may not want to
13138# sort them, since we want the *last* AC-DEFINE to be honored.
13139uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13140sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13141rm -f confdef2sed.sed
13142
13143# This sed command replaces #undef with comments. This is necessary, for
13144# example, in the case of _POSIX_SOURCE, which is predefined and required
13145# on some systems where configure will not decide to define it.
13146cat >>conftest.undefs <<\_ACEOF
13147s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13148_ACEOF
13149
13150# Break up conftest.defines because some shells have a limit on the size
13151# of here documents, and old seds have small limits too (100 cmds).
13152echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13153echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13154echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13155echo ' :' >>$CONFIG_STATUS
13156rm -f conftest.tail
13157while grep . conftest.defines >/dev/null
13158do
13159 # Write a limited-size here document to $tmp/defines.sed.
13160 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13161 # Speed up: don't consider the non `#define' lines.
13162 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13163 # Work around the forget-to-reset-the-flag bug.
13164 echo 't clr' >>$CONFIG_STATUS
13165 echo ': clr' >>$CONFIG_STATUS
13166 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13167 echo 'CEOF
13168 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13169 rm -f $tmp/in
13170 mv $tmp/out $tmp/in
13171' >>$CONFIG_STATUS
13172 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13173 rm -f conftest.defines
13174 mv conftest.tail conftest.defines
13175done
13176rm -f conftest.defines
13177echo ' fi # grep' >>$CONFIG_STATUS
13178echo >>$CONFIG_STATUS
13179
13180# Break up conftest.undefs because some shells have a limit on the size
13181# of here documents, and old seds have small limits too (100 cmds).
13182echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13183rm -f conftest.tail
13184while grep . conftest.undefs >/dev/null
13185do
13186 # Write a limited-size here document to $tmp/undefs.sed.
13187 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13188 # Speed up: don't consider the non `#undef'
13189 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13190 # Work around the forget-to-reset-the-flag bug.
13191 echo 't clr' >>$CONFIG_STATUS
13192 echo ': clr' >>$CONFIG_STATUS
13193 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13194 echo 'CEOF
13195 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13196 rm -f $tmp/in
13197 mv $tmp/out $tmp/in
13198' >>$CONFIG_STATUS
13199 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13200 rm -f conftest.undefs
13201 mv conftest.tail conftest.undefs
13202done
13203rm -f conftest.undefs
13204
13205cat >>$CONFIG_STATUS <<\_ACEOF
13206 # Let's still pretend it is `configure' which instantiates (i.e., don't
13207 # use $as_me), people would be surprised to read:
13208 # /* config.h. Generated by config.status. */
13209 if test x"$ac_file" = x-; then
13210 echo "/* Generated by configure. */" >$tmp/config.h
13211 else
13212 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13213 fi
13214 cat $tmp/in >>$tmp/config.h
13215 rm -f $tmp/in
13216 if test x"$ac_file" != x-; then
13217 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13218 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13219echo "$as_me: $ac_file is unchanged" >&6;}
13220 else
13221 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13222$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13223 X"$ac_file" : 'X\(//\)[^/]' \| \
13224 X"$ac_file" : 'X\(//\)$' \| \
13225 X"$ac_file" : 'X\(/\)' \| \
13226 . : '\(.\)' 2>/dev/null ||
13227echo X"$ac_file" |
13228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13230 /^X\(\/\/\)$/{ s//\1/; q; }
13231 /^X\(\/\).*/{ s//\1/; q; }
13232 s/.*/./; q'`
13233 { if $as_mkdir_p; then
13234 mkdir -p "$ac_dir"
13235 else
13236 as_dir="$ac_dir"
13237 as_dirs=
13238 while test ! -d "$as_dir"; do
13239 as_dirs="$as_dir $as_dirs"
13240 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13241$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13242 X"$as_dir" : 'X\(//\)[^/]' \| \
13243 X"$as_dir" : 'X\(//\)$' \| \
13244 X"$as_dir" : 'X\(/\)' \| \
13245 . : '\(.\)' 2>/dev/null ||
13246echo X"$as_dir" |
13247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13249 /^X\(\/\/\)$/{ s//\1/; q; }
13250 /^X\(\/\).*/{ s//\1/; q; }
13251 s/.*/./; q'`
13252 done
13253 test ! -n "$as_dirs" || mkdir $as_dirs
13254 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13255echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13256 { (exit 1); exit 1; }; }; }
13257
13258 rm -f $ac_file
13259 mv $tmp/config.h $ac_file
13260 fi
13261 else
13262 cat $tmp/config.h
13263 rm -f $tmp/config.h
13264 fi
13265done
13266_ACEOF
13267cat >>$CONFIG_STATUS <<\_ACEOF
13268
13269#
13270# CONFIG_COMMANDS section.
13271#
13272for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13273 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13274 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13275 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13276$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13277 X"$ac_dest" : 'X\(//\)[^/]' \| \
13278 X"$ac_dest" : 'X\(//\)$' \| \
13279 X"$ac_dest" : 'X\(/\)' \| \
13280 . : '\(.\)' 2>/dev/null ||
13281echo X"$ac_dest" |
13282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13284 /^X\(\/\/\)$/{ s//\1/; q; }
13285 /^X\(\/\).*/{ s//\1/; q; }
13286 s/.*/./; q'`
13287 { if $as_mkdir_p; then
13288 mkdir -p "$ac_dir"
13289 else
13290 as_dir="$ac_dir"
13291 as_dirs=
13292 while test ! -d "$as_dir"; do
13293 as_dirs="$as_dir $as_dirs"
13294 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13296 X"$as_dir" : 'X\(//\)[^/]' \| \
13297 X"$as_dir" : 'X\(//\)$' \| \
13298 X"$as_dir" : 'X\(/\)' \| \
13299 . : '\(.\)' 2>/dev/null ||
13300echo X"$as_dir" |
13301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13303 /^X\(\/\/\)$/{ s//\1/; q; }
13304 /^X\(\/\).*/{ s//\1/; q; }
13305 s/.*/./; q'`
13306 done
13307 test ! -n "$as_dirs" || mkdir $as_dirs
13308 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13309echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13310 { (exit 1); exit 1; }; }; }
13311
13312 ac_builddir=.
13313
13314if test "$ac_dir" != .; then
13315 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13316 # A "../" for each directory in $ac_dir_suffix.
13317 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13318else
13319 ac_dir_suffix= ac_top_builddir=
13320fi
13321
13322case $srcdir in
13323 .) # No --srcdir option. We are building in place.
13324 ac_srcdir=.
13325 if test -z "$ac_top_builddir"; then
13326 ac_top_srcdir=.
13327 else
13328 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13329 fi ;;
13330 [\\/]* | ?:[\\/]* ) # Absolute path.
13331 ac_srcdir=$srcdir$ac_dir_suffix;
13332 ac_top_srcdir=$srcdir ;;
13333 *) # Relative path.
13334 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13335 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13336esac
13337
13338# Do not use `cd foo && pwd` to compute absolute paths, because
13339# the directories may not exist.
13340case `pwd` in
13341.) ac_abs_builddir="$ac_dir";;
13342*)
13343 case "$ac_dir" in
13344 .) ac_abs_builddir=`pwd`;;
13345 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13346 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13347 esac;;
13348esac
13349case $ac_abs_builddir in
13350.) ac_abs_top_builddir=${ac_top_builddir}.;;
13351*)
13352 case ${ac_top_builddir}. in
13353 .) ac_abs_top_builddir=$ac_abs_builddir;;
13354 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13355 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13356 esac;;
13357esac
13358case $ac_abs_builddir in
13359.) ac_abs_srcdir=$ac_srcdir;;
13360*)
13361 case $ac_srcdir in
13362 .) ac_abs_srcdir=$ac_abs_builddir;;
13363 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13364 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13365 esac;;
13366esac
13367case $ac_abs_builddir in
13368.) ac_abs_top_srcdir=$ac_top_srcdir;;
13369*)
13370 case $ac_top_srcdir in
13371 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13372 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13373 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13374 esac;;
13375esac
13376
13377
13378 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13379echo "$as_me: executing $ac_dest commands" >&6;}
13380 case $ac_dest in
13381 libtool )
mlcreech636a9952008-05-05 22:52:56 +000013382
13383 # See if we are running on zsh, and set the options which allow our
13384 # commands through without removal of \ escapes.
13385 if test -n "${ZSH_VERSION+set}" ; then
13386 setopt NO_GLOB_SUBST
13387 fi
13388
13389 cfgfile="${ofile}T"
13390 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13391 $RM "$cfgfile"
13392
13393 cat <<_LT_EOF >> "$cfgfile"
13394#! $SHELL
13395
13396# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13397# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13399# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13400#
13401# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13402# 2006, 2007, 2008 Free Software Foundation, Inc.
13403# Written by Gordon Matzigkeit, 1996
13404#
13405# This file is part of GNU Libtool.
13406#
13407# GNU Libtool is free software; you can redistribute it and/or
13408# modify it under the terms of the GNU General Public License as
13409# published by the Free Software Foundation; either version 2 of
13410# the License, or (at your option) any later version.
13411#
13412# As a special exception to the GNU General Public License,
13413# if you distribute this file as part of a program or library that
13414# is built using GNU Libtool, you may include this file under the
13415# same distribution terms that you use for the rest of that program.
13416#
13417# GNU Libtool is distributed in the hope that it will be useful,
13418# but WITHOUT ANY WARRANTY; without even the implied warranty of
13419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13420# GNU General Public License for more details.
13421#
13422# You should have received a copy of the GNU General Public License
13423# along with GNU Libtool; see the file COPYING. If not, a copy
13424# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13425# obtained by writing to the Free Software Foundation, Inc.,
13426# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13427
13428
13429# The names of the tagged configurations supported by this script.
13430available_tags=""
13431
13432# ### BEGIN LIBTOOL CONFIG
13433
13434# Which release of libtool.m4 was used?
13435macro_version=$macro_version
13436macro_revision=$macro_revision
13437
13438# Whether or not to build shared libraries.
13439build_libtool_libs=$enable_shared
13440
13441# Whether or not to build static libraries.
13442build_old_libs=$enable_static
13443
13444# What type of objects to build.
13445pic_mode=$pic_mode
13446
13447# Whether or not to optimize for fast installation.
13448fast_install=$enable_fast_install
13449
13450# The host system.
13451host_alias=$host_alias
13452host=$host
13453host_os=$host_os
13454
13455# The build system.
13456build_alias=$build_alias
13457build=$build
13458build_os=$build_os
13459
13460# A sed program that does not truncate output.
13461SED=$lt_SED
13462
13463# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13464Xsed="\$SED -e 1s/^X//"
13465
13466# A grep program that handles long lines.
13467GREP=$lt_GREP
13468
13469# An ERE matcher.
13470EGREP=$lt_EGREP
13471
13472# A literal string matcher.
13473FGREP=$lt_FGREP
13474
13475# A BSD- or MS-compatible name lister.
13476NM=$lt_NM
13477
13478# Whether we need soft or hard links.
13479LN_S=$lt_LN_S
13480
13481# What is the maximum length of a command?
13482max_cmd_len=$max_cmd_len
13483
13484# Object file suffix (normally "o").
13485objext=$ac_objext
13486
13487# Executable file suffix (normally "").
13488exeext=$exeext
13489
13490# whether the shell understands "unset".
13491lt_unset=$lt_unset
13492
13493# turn spaces into newlines.
13494SP2NL=$lt_lt_SP2NL
13495
13496# turn newlines into spaces.
13497NL2SP=$lt_lt_NL2SP
13498
13499# How to create reloadable object files.
13500reload_flag=$lt_reload_flag
13501reload_cmds=$lt_reload_cmds
13502
13503# Method to check whether dependent libraries are shared objects.
13504deplibs_check_method=$lt_deplibs_check_method
13505
13506# Command to use when deplibs_check_method == "file_magic".
13507file_magic_cmd=$lt_file_magic_cmd
13508
13509# The archiver.
13510AR=$lt_AR
13511AR_FLAGS=$lt_AR_FLAGS
13512
13513# A symbol stripping program.
13514STRIP=$lt_STRIP
13515
13516# Commands used to install an old-style archive.
13517RANLIB=$lt_RANLIB
13518old_postinstall_cmds=$lt_old_postinstall_cmds
13519old_postuninstall_cmds=$lt_old_postuninstall_cmds
13520
13521# A C compiler.
13522LTCC=$lt_CC
13523
13524# LTCC compiler flags.
13525LTCFLAGS=$lt_CFLAGS
13526
13527# Take the output of nm and produce a listing of raw symbols and C names.
13528global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13529
13530# Transform the output of nm in a proper C declaration.
13531global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13532
13533# Transform the output of nm in a C name address pair.
13534global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13535
13536# Transform the output of nm in a C name address pair when lib prefix is needed.
13537global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13538
13539# The name of the directory that contains temporary libtool files.
13540objdir=$objdir
13541
13542# Shell to use when invoking shell scripts.
13543SHELL=$lt_SHELL
13544
13545# An echo program that does not interpret backslashes.
13546ECHO=$lt_ECHO
13547
13548# Used to examine libraries when file_magic_cmd begins with "file".
13549MAGIC_CMD=$MAGIC_CMD
13550
13551# Must we lock files when doing compilation?
13552need_locks=$lt_need_locks
13553
13554# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13555DSYMUTIL=$lt_DSYMUTIL
13556
13557# Tool to change global to local symbols on Mac OS X.
13558NMEDIT=$lt_NMEDIT
13559
13560# Tool to manipulate fat objects and archives on Mac OS X.
13561LIPO=$lt_LIPO
13562
13563# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13564OTOOL=$lt_OTOOL
13565
13566# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13567OTOOL64=$lt_OTOOL64
13568
13569# Old archive suffix (normally "a").
13570libext=$libext
13571
13572# Shared library suffix (normally ".so").
13573shrext_cmds=$lt_shrext_cmds
13574
13575# The commands to extract the exported symbol list from a shared archive.
13576extract_expsyms_cmds=$lt_extract_expsyms_cmds
13577
13578# Variables whose values should be saved in libtool wrapper scripts and
13579# restored at link time.
13580variables_saved_for_relink=$lt_variables_saved_for_relink
13581
13582# Do we need the "lib" prefix for modules?
13583need_lib_prefix=$need_lib_prefix
13584
13585# Do we need a version for libraries?
13586need_version=$need_version
13587
13588# Library versioning type.
13589version_type=$version_type
13590
13591# Shared library runtime path variable.
13592runpath_var=$runpath_var
13593
13594# Shared library path variable.
13595shlibpath_var=$shlibpath_var
13596
13597# Is shlibpath searched before the hard-coded library search path?
13598shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13599
13600# Format of library name prefix.
13601libname_spec=$lt_libname_spec
13602
13603# List of archive names. First name is the real one, the rest are links.
13604# The last name is the one that the linker finds with -lNAME
13605library_names_spec=$lt_library_names_spec
13606
13607# The coded name of the library, if different from the real name.
13608soname_spec=$lt_soname_spec
13609
13610# Command to use after installation of a shared archive.
13611postinstall_cmds=$lt_postinstall_cmds
13612
13613# Command to use after uninstallation of a shared archive.
13614postuninstall_cmds=$lt_postuninstall_cmds
13615
13616# Commands used to finish a libtool library installation in a directory.
13617finish_cmds=$lt_finish_cmds
13618
13619# As "finish_cmds", except a single script fragment to be evaled but
13620# not shown.
13621finish_eval=$lt_finish_eval
13622
13623# Whether we should hardcode library paths into libraries.
13624hardcode_into_libs=$hardcode_into_libs
13625
13626# Compile-time system search path for libraries.
13627sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13628
13629# Run-time system search path for libraries.
13630sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13631
13632# Whether dlopen is supported.
13633dlopen_support=$enable_dlopen
13634
13635# Whether dlopen of programs is supported.
13636dlopen_self=$enable_dlopen_self
13637
13638# Whether dlopen of statically linked programs is supported.
13639dlopen_self_static=$enable_dlopen_self_static
13640
13641# Commands to strip libraries.
13642old_striplib=$lt_old_striplib
13643striplib=$lt_striplib
13644
13645
13646# The linker used to build libraries.
13647LD=$lt_LD
13648
13649# Commands used to build an old-style archive.
13650old_archive_cmds=$lt_old_archive_cmds
13651
13652# A language specific compiler.
13653CC=$lt_compiler
13654
13655# Is the compiler the GNU compiler?
13656with_gcc=$GCC
13657
13658# Compiler flag to turn off builtin functions.
13659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13660
13661# How to pass a linker flag through the compiler.
13662wl=$lt_lt_prog_compiler_wl
13663
13664# Additional compiler flags for building library objects.
13665pic_flag=$lt_lt_prog_compiler_pic
13666
13667# Compiler flag to prevent dynamic linking.
13668link_static_flag=$lt_lt_prog_compiler_static
13669
13670# Does compiler simultaneously support -c and -o options?
13671compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13672
13673# Whether or not to add -lc for building shared libraries.
13674build_libtool_need_lc=$archive_cmds_need_lc
13675
13676# Whether or not to disallow shared libs when runtime libs are static.
13677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13678
13679# Compiler flag to allow reflexive dlopens.
13680export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13681
13682# Compiler flag to generate shared objects directly from archives.
13683whole_archive_flag_spec=$lt_whole_archive_flag_spec
13684
13685# Whether the compiler copes with passing no objects directly.
13686compiler_needs_object=$lt_compiler_needs_object
13687
13688# Create an old-style archive from a shared archive.
13689old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13690
13691# Create a temporary old-style archive to link instead of a shared archive.
13692old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13693
13694# Commands used to build a shared archive.
13695archive_cmds=$lt_archive_cmds
13696archive_expsym_cmds=$lt_archive_expsym_cmds
13697
13698# Commands used to build a loadable module if different from building
13699# a shared archive.
13700module_cmds=$lt_module_cmds
13701module_expsym_cmds=$lt_module_expsym_cmds
13702
13703# Whether we are building with GNU ld or not.
13704with_gnu_ld=$lt_with_gnu_ld
13705
13706# Flag that allows shared libraries with undefined symbols to be built.
13707allow_undefined_flag=$lt_allow_undefined_flag
13708
13709# Flag that enforces no undefined symbols.
13710no_undefined_flag=$lt_no_undefined_flag
13711
13712# Flag to hardcode \$libdir into a binary during linking.
13713# This must work even if \$libdir does not exist
13714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13715
13716# If ld is used when linking, flag to hardcode \$libdir into a binary
13717# during linking. This must work even if \$libdir does not exist.
13718hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13719
13720# Whether we need a single "-rpath" flag with a separated argument.
13721hardcode_libdir_separator=$lt_hardcode_libdir_separator
13722
13723# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13724# DIR into the resulting binary.
13725hardcode_direct=$hardcode_direct
13726
13727# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13728# DIR into the resulting binary and the resulting library dependency is
13729# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13730# library is relocated.
13731hardcode_direct_absolute=$hardcode_direct_absolute
13732
13733# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13734# into the resulting binary.
13735hardcode_minus_L=$hardcode_minus_L
13736
13737# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13738# into the resulting binary.
13739hardcode_shlibpath_var=$hardcode_shlibpath_var
13740
13741# Set to "yes" if building a shared library automatically hardcodes DIR
13742# into the library and all subsequent libraries and executables linked
13743# against it.
13744hardcode_automatic=$hardcode_automatic
13745
13746# Set to yes if linker adds runtime paths of dependent libraries
13747# to runtime path list.
13748inherit_rpath=$inherit_rpath
13749
13750# Whether libtool must link a program against all its dependency libraries.
13751link_all_deplibs=$link_all_deplibs
13752
13753# Fix the shell variable \$srcfile for the compiler.
13754fix_srcfile_path=$lt_fix_srcfile_path
13755
13756# Set to "yes" if exported symbols are required.
13757always_export_symbols=$always_export_symbols
13758
13759# The commands to list exported symbols.
13760export_symbols_cmds=$lt_export_symbols_cmds
13761
13762# Symbols that should not be listed in the preloaded symbols.
13763exclude_expsyms=$lt_exclude_expsyms
13764
13765# Symbols that must always be exported.
13766include_expsyms=$lt_include_expsyms
13767
13768# Commands necessary for linking programs (against libraries) with templates.
13769prelink_cmds=$lt_prelink_cmds
13770
13771# Specify filename containing input files.
13772file_list_spec=$lt_file_list_spec
13773
13774# How to hardcode a shared library path into an executable.
13775hardcode_action=$hardcode_action
13776
13777# ### END LIBTOOL CONFIG
13778
13779_LT_EOF
13780
13781 case $host_os in
13782 aix3*)
13783 cat <<\_LT_EOF >> "$cfgfile"
13784# AIX sometimes has problems with the GCC collect2 program. For some
13785# reason, if we set the COLLECT_NAMES environment variable, the problems
13786# vanish in a puff of smoke.
13787if test "X${COLLECT_NAMES+set}" != Xset; then
13788 COLLECT_NAMES=
13789 export COLLECT_NAMES
13790fi
13791_LT_EOF
13792 ;;
13793 esac
13794
13795
13796ltmain="$ac_aux_dir/ltmain.sh"
13797
13798
13799 # We use sed instead of cat because bash on DJGPP gets confused if
13800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13801 # text mode, it properly converts lines to CR/LF. This bash problem
13802 # is reportedly fixed, but why not run on old versions too?
13803 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13804 || (rm -f "$cfgfile"; exit 1)
13805
13806 case $xsi_shell in
13807 yes)
13808 cat << \_LT_EOF >> "$cfgfile"
13809
13810# func_dirname file append nondir_replacement
13811# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13812# otherwise set result to NONDIR_REPLACEMENT.
13813func_dirname ()
13814{
13815 case ${1} in
13816 */*) func_dirname_result="${1%/*}${2}" ;;
13817 * ) func_dirname_result="${3}" ;;
13818 esac
13819}
13820
13821# func_basename file
13822func_basename ()
13823{
13824 func_basename_result="${1##*/}"
13825}
13826
13827# func_dirname_and_basename file append nondir_replacement
13828# perform func_basename and func_dirname in a single function
13829# call:
13830# dirname: Compute the dirname of FILE. If nonempty,
13831# add APPEND to the result, otherwise set result
13832# to NONDIR_REPLACEMENT.
13833# value returned in "$func_dirname_result"
13834# basename: Compute filename of FILE.
13835# value retuned in "$func_basename_result"
13836# Implementation must be kept synchronized with func_dirname
13837# and func_basename. For efficiency, we do not delegate to
13838# those functions but instead duplicate the functionality here.
13839func_dirname_and_basename ()
13840{
13841 case ${1} in
13842 */*) func_dirname_result="${1%/*}${2}" ;;
13843 * ) func_dirname_result="${3}" ;;
13844 esac
13845 func_basename_result="${1##*/}"
13846}
13847
13848# func_stripname prefix suffix name
13849# strip PREFIX and SUFFIX off of NAME.
13850# PREFIX and SUFFIX must not contain globbing or regex special
13851# characters, hashes, percent signs, but SUFFIX may contain a leading
13852# dot (in which case that matches only a dot).
13853func_stripname ()
13854{
13855 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13856 # positional parameters, so assign one to ordinary parameter first.
13857 func_stripname_result=${3}
13858 func_stripname_result=${func_stripname_result#"${1}"}
13859 func_stripname_result=${func_stripname_result%"${2}"}
13860}
13861
13862# func_opt_split
13863func_opt_split ()
13864{
13865 func_opt_split_opt=${1%%=*}
13866 func_opt_split_arg=${1#*=}
13867}
13868
13869# func_lo2o object
13870func_lo2o ()
13871{
13872 case ${1} in
13873 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13874 *) func_lo2o_result=${1} ;;
13875 esac
13876}
13877
13878# func_xform libobj-or-source
13879func_xform ()
13880{
13881 func_xform_result=${1%.*}.lo
13882}
13883
13884# func_arith arithmetic-term...
13885func_arith ()
13886{
13887 func_arith_result=$(( $* ))
13888}
13889
13890# func_len string
13891# STRING may not start with a hyphen.
13892func_len ()
13893{
13894 func_len_result=${#1}
13895}
13896
13897_LT_EOF
13898 ;;
13899 *) # Bourne compatible functions.
13900 cat << \_LT_EOF >> "$cfgfile"
13901
13902# func_dirname file append nondir_replacement
13903# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13904# otherwise set result to NONDIR_REPLACEMENT.
13905func_dirname ()
13906{
13907 # Extract subdirectory from the argument.
13908 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13909 if test "X$func_dirname_result" = "X${1}"; then
13910 func_dirname_result="${3}"
13911 else
13912 func_dirname_result="$func_dirname_result${2}"
13913 fi
13914}
13915
13916# func_basename file
13917func_basename ()
13918{
13919 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13920}
13921
13922
13923# func_stripname prefix suffix name
13924# strip PREFIX and SUFFIX off of NAME.
13925# PREFIX and SUFFIX must not contain globbing or regex special
13926# characters, hashes, percent signs, but SUFFIX may contain a leading
13927# dot (in which case that matches only a dot).
13928# func_strip_suffix prefix name
13929func_stripname ()
13930{
13931 case ${2} in
13932 .*) func_stripname_result=`$ECHO "X${3}" \
13933 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13934 *) func_stripname_result=`$ECHO "X${3}" \
13935 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13936 esac
13937}
13938
13939# sed scripts:
13940my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13941my_sed_long_arg='1s/^-[^=]*=//'
13942
13943# func_opt_split
13944func_opt_split ()
13945{
13946 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13947 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13948}
13949
13950# func_lo2o object
13951func_lo2o ()
13952{
13953 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13954}
13955
13956# func_xform libobj-or-source
13957func_xform ()
13958{
13959 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13960}
13961
13962# func_arith arithmetic-term...
13963func_arith ()
13964{
13965 func_arith_result=`expr "$@"`
13966}
13967
13968# func_len string
13969# STRING may not start with a hyphen.
13970func_len ()
13971{
13972 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13973}
13974
13975_LT_EOF
13976esac
13977
13978case $lt_shell_append in
13979 yes)
13980 cat << \_LT_EOF >> "$cfgfile"
13981
13982# func_append var value
13983# Append VALUE to the end of shell variable VAR.
13984func_append ()
13985{
13986 eval "$1+=\$2"
13987}
13988_LT_EOF
13989 ;;
13990 *)
13991 cat << \_LT_EOF >> "$cfgfile"
13992
13993# func_append var value
13994# Append VALUE to the end of shell variable VAR.
13995func_append ()
13996{
13997 eval "$1=\$$1\$2"
13998}
13999
14000_LT_EOF
14001 ;;
14002 esac
14003
14004
14005 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14006 || (rm -f "$cfgfile"; exit 1)
14007
14008 mv -f "$cfgfile" "$ofile" ||
14009 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14010 chmod +x "$ofile"
14011
14012 ;;
mlcreech636a9952008-05-05 22:52:56 +000014013 esac
drh866108f2008-05-13 00:57:21 +000014014done
14015_ACEOF
mlcreech94984912008-03-04 19:03:08 +000014016
drh866108f2008-05-13 00:57:21 +000014017cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014018
14019{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000014020_ACEOF
drh75897232000-05-29 14:26:00 +000014021chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000014022ac_clean_files=$ac_clean_files_save
14023
a.rottmann84e63352003-03-24 09:42:16 +000014024
drh71eb93e2001-09-28 01:34:43 +000014025# configure is writing to config.log, and then calls config.status.
14026# config.status does its own redirection, appending to config.log.
14027# Unfortunately, on DOS this fails, as config.log is still kept open
14028# by configure, so config.status won't be able to write to it; its
14029# output is simply discarded. So we exec the FD to /dev/null,
14030# effectively closing config.log, so it can be properly (re)opened and
14031# appended to by config.status. When coming back to configure, we
14032# need to make the FD available again.
14033if test "$no_create" != yes; then
14034 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000014035 ac_config_status_args=
14036 test "$silent" = yes &&
14037 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000014038 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000014039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000014040 exec 5>>config.log
14041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14042 # would make configure fail if this is the last instruction.
14043 $ac_cs_success || { (exit 1); exit 1; }
14044fi
drh613a0fe2007-11-23 17:31:17 +000014045