blob: 9d49887ed6ae2916149693a72500b33cade8996f [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
shanefbedede2008-07-22 05:05:01 +00001486# $Revision: 1.62 $
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
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
a.rottmann9bc8b932004-02-29 15:18:31 +00007388#
7389# Do we need to explicitly link libc?
7390#
7391case "x$archive_cmds_need_lc" in
7392x|xyes)
7393 # Assume -lc should be added
7394 archive_cmds_need_lc=yes
7395
7396 if test "$enable_shared" = yes && test "$GCC" = yes; then
7397 case $archive_cmds in
7398 *'~'*)
7399 # FIXME: we may have to deal with multi-command sequences.
7400 ;;
7401 '$CC '*)
7402 # Test whether the compiler implicitly links with -lc since on some
7403 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7404 # to ld, don't add -lc before -lgcc.
drh866108f2008-05-13 00:57:21 +00007405 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7406echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00007407 $RM conftest*
7408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007409
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>&5
7412 ac_status=$?
drh866108f2008-05-13 00:57:21 +00007413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007414 (exit $ac_status); } 2>conftest.err; then
7415 soname=conftest
7416 lib=conftest
7417 libobjs=conftest.$ac_objext
7418 deplibs=
7419 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007420 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007421 compiler_flags=-v
7422 linker_flags=-v
7423 verstring=
7424 output_objdir=.
7425 libname=conftest
7426 lt_save_allow_undefined_flag=$allow_undefined_flag
7427 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007428 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7429 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007430 ac_status=$?
drh866108f2008-05-13 00:57:21 +00007431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007432 (exit $ac_status); }
7433 then
7434 archive_cmds_need_lc=no
7435 else
7436 archive_cmds_need_lc=yes
7437 fi
7438 allow_undefined_flag=$lt_save_allow_undefined_flag
7439 else
7440 cat conftest.err 1>&5
7441 fi
mlcreech636a9952008-05-05 22:52:56 +00007442 $RM conftest*
drh866108f2008-05-13 00:57:21 +00007443 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7444echo "${ECHO_T}$archive_cmds_need_lc" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007445 ;;
7446 esac
drh71eb93e2001-09-28 01:34:43 +00007447 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007448 ;;
7449esac
drh71eb93e2001-09-28 01:34:43 +00007450
mlcreech636a9952008-05-05 22:52:56 +00007451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
drh866108f2008-05-13 00:57:21 +00007607 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7608echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00007609
7610if test "$GCC" = yes; then
7611 case $host_os in
7612 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7613 *) lt_awk_arg="/^libraries:/" ;;
7614 esac
7615 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7616 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7617 # if the path contains ";" then we assume it to be the separator
7618 # otherwise default to the standard path separator (i.e. ":") - it is
7619 # assumed that no part of a normal pathname contains ";" but that should
7620 # okay in the real world where ";" in dirpaths is itself problematic.
7621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7622 else
7623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7624 fi
7625 # Ok, now we have the path, separated by spaces, we can step through it
7626 # and add multilib dir if necessary.
7627 lt_tmp_lt_search_path_spec=
7628 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7629 for lt_sys_path in $lt_search_path_spec; do
7630 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7632 else
7633 test -d "$lt_sys_path" && \
7634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7635 fi
7636 done
7637 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7638BEGIN {RS=" "; FS="/|\n";} {
7639 lt_foo="";
7640 lt_count=0;
7641 for (lt_i = NF; lt_i > 0; lt_i--) {
7642 if ($lt_i != "" && $lt_i != ".") {
7643 if ($lt_i == "..") {
7644 lt_count++;
7645 } else {
7646 if (lt_count == 0) {
7647 lt_foo="/" $lt_i lt_foo;
7648 } else {
7649 lt_count--;
7650 }
7651 }
7652 }
7653 }
7654 if (lt_foo != "") { lt_freq[lt_foo]++; }
7655 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7656}'`
7657 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7658else
7659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7660fi
drh71eb93e2001-09-28 01:34:43 +00007661library_names_spec=
7662libname_spec='lib$name'
7663soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007664shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007665postinstall_cmds=
7666postuninstall_cmds=
7667finish_cmds=
7668finish_eval=
7669shlibpath_var=
7670shlibpath_overrides_runpath=unknown
7671version_type=none
7672dynamic_linker="$host_os ld.so"
7673sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007674need_lib_prefix=unknown
7675hardcode_into_libs=no
7676
7677# when you set need_version to no, make sure it does not cause -set_version
7678# flags to be left without arguments
7679need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007680
7681case $host_os in
7682aix3*)
7683 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007685 shlibpath_var=LIBPATH
7686
a.rottmann9bc8b932004-02-29 15:18:31 +00007687 # AIX 3 has no versioning support, so we append a major version to the name.
7688 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007689 ;;
7690
mlcreech636a9952008-05-05 22:52:56 +00007691aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00007692 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007693 need_lib_prefix=no
7694 need_version=no
7695 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007696 if test "$host_cpu" = ia64; then
7697 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007698 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007699 shlibpath_var=LD_LIBRARY_PATH
7700 else
7701 # With GCC up to 2.95.x, collect2 would create an import file
7702 # for dependence libraries. The import file would start with
7703 # the line `#! .'. This would cause the generated library to
7704 # depend on `.', always an invalid library. This was fixed in
7705 # development snapshots of GCC prior to 3.0.
7706 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007707 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007708 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7709 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00007710 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007711 :
7712 else
7713 can_build_shared=no
7714 fi
7715 ;;
drh71eb93e2001-09-28 01:34:43 +00007716 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007717 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7718 # soname into executable. Probably we can add versioning support to
7719 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007720 if test "$aix_use_runtimelinking" = yes; then
7721 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7722 # instead of lib<name>.a to let people know that these are not
7723 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007725 else
7726 # We preserve .a as extension for shared libraries through AIX4.2
7727 # and later when we are not doing run time linking.
7728 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007729 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007730 fi
7731 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007732 fi
7733 ;;
7734
7735amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007736 case $host_cpu in
7737 powerpc)
7738 # Since July 2007 AmigaOS4 officially supports .so libraries.
7739 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
7740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7741 ;;
7742 m68k)
7743 library_names_spec='$libname.ixlibrary $libname.a'
7744 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7745 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'
7746 ;;
7747 esac
drh71eb93e2001-09-28 01:34:43 +00007748 ;;
7749
7750beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007751 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007752 dynamic_linker="$host_os ld.so"
7753 shlibpath_var=LIBRARY_PATH
7754 ;;
7755
vapier7f19c022007-02-17 14:46:31 +00007756bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007757 version_type=linux
7758 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7760 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7762 shlibpath_var=LD_LIBRARY_PATH
7763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7765 # the default ld.so.conf also contains /usr/contrib/lib and
7766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7767 # libtool to hard-code these into programs
7768 ;;
7769
7770cygwin* | mingw* | pw32*)
7771 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007772 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007773 need_version=no
7774 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007775
drh71eb93e2001-09-28 01:34:43 +00007776 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007777 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007778 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7780 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00007781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007782 dldir=$destdir/`dirname \$dlpath`~
7783 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007784 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00007785 chmod a+x \$dldir/$dlname~
7786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7787 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7788 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007790 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00007791 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 shlibpath_overrides_runpath=yes
7793
7794 case $host_os in
7795 cygwin*)
7796 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7797 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7798 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7799 ;;
7800 mingw*)
7801 # MinGW DLLs use traditional 'lib' prefix
7802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00007803 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7804 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007805 # It is most probably a Windows format PATH printed by
7806 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7807 # path with ; separators, and with drive letters. We can handle the
7808 # drive letters (cygwin fileutils understands them), so leave them,
7809 # especially as we might pass files found there to a mingw objdump,
7810 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00007811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 else
mlcreech636a9952008-05-05 22:52:56 +00007813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007814 fi
7815 ;;
7816 pw32*)
7817 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007818 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 +00007819 ;;
7820 esac
drh71eb93e2001-09-28 01:34:43 +00007821 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007822
drh71eb93e2001-09-28 01:34:43 +00007823 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00007825 ;;
7826 esac
7827 dynamic_linker='Win32 ld.exe'
7828 # FIXME: first we should search . and the directory the executable is in
7829 shlibpath_var=PATH
7830 ;;
7831
7832darwin* | rhapsody*)
7833 dynamic_linker="$host_os dyld"
7834 version_type=darwin
7835 need_lib_prefix=no
7836 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00007837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00007838 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00007839 shlibpath_overrides_runpath=yes
7840 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00007841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00007842
7843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7845 ;;
7846
7847dgux*)
7848 version_type=linux
7849 need_lib_prefix=no
7850 need_version=no
7851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7852 soname_spec='${libname}${release}${shared_ext}$major'
7853 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007854 ;;
7855
a.rottmann84e63352003-03-24 09:42:16 +00007856freebsd1*)
7857 dynamic_linker=no
7858 ;;
7859
vapier7f19c022007-02-17 14:46:31 +00007860freebsd* | dragonfly*)
7861 # DragonFly does not have aout. When/if they implement a new
7862 # versioning mechanism, adjust this.
7863 if test -x /usr/bin/objformat; then
7864 objformat=`/usr/bin/objformat`
7865 else
7866 case $host_os in
7867 freebsd[123]*) objformat=aout ;;
7868 *) objformat=elf ;;
7869 esac
7870 fi
7871 # Handle Gentoo/FreeBSD as it was Linux
7872 case $host_vendor in
7873 gentoo)
7874 version_type=linux ;;
7875 *)
7876 version_type=freebsd-$objformat ;;
7877 esac
7878
drh71eb93e2001-09-28 01:34:43 +00007879 case $version_type in
7880 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007882 need_version=no
7883 need_lib_prefix=no
7884 ;;
7885 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007887 need_version=yes
7888 ;;
vapier7f19c022007-02-17 14:46:31 +00007889 linux)
7890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7891 soname_spec='${libname}${release}${shared_ext}$major'
7892 need_lib_prefix=no
7893 need_version=no
7894 ;;
drh71eb93e2001-09-28 01:34:43 +00007895 esac
7896 shlibpath_var=LD_LIBRARY_PATH
7897 case $host_os in
7898 freebsd2*)
7899 shlibpath_overrides_runpath=yes
7900 ;;
vapier7f19c022007-02-17 14:46:31 +00007901 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007902 shlibpath_overrides_runpath=yes
7903 hardcode_into_libs=yes
7904 ;;
vapier7f19c022007-02-17 14:46:31 +00007905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00007907 shlibpath_overrides_runpath=no
7908 hardcode_into_libs=yes
7909 ;;
mlcreech636a9952008-05-05 22:52:56 +00007910 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00007911 shlibpath_overrides_runpath=yes
7912 hardcode_into_libs=yes
7913 ;;
drh71eb93e2001-09-28 01:34:43 +00007914 esac
7915 ;;
7916
7917gnu*)
7918 version_type=linux
7919 need_lib_prefix=no
7920 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7922 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007923 shlibpath_var=LD_LIBRARY_PATH
7924 hardcode_into_libs=yes
7925 ;;
7926
7927hpux9* | hpux10* | hpux11*)
7928 # Give a soname corresponding to the major version so that dld.sl refuses to
7929 # link against other versions.
7930 version_type=sunos
7931 need_lib_prefix=no
7932 need_version=no
vapier7f19c022007-02-17 14:46:31 +00007933 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00007934 ia64*)
vapier7f19c022007-02-17 14:46:31 +00007935 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00007936 hardcode_into_libs=yes
7937 dynamic_linker="$host_os dld.so"
7938 shlibpath_var=LD_LIBRARY_PATH
7939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7941 soname_spec='${libname}${release}${shared_ext}$major'
7942 if test "X$HPUX_IA64_MODE" = X32; then
7943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7944 else
7945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7946 fi
7947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7948 ;;
mlcreech636a9952008-05-05 22:52:56 +00007949 hppa*64*)
7950 shrext_cmds='.sl'
7951 hardcode_into_libs=yes
7952 dynamic_linker="$host_os dld.sl"
7953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7959 ;;
7960 *)
vapier7f19c022007-02-17 14:46:31 +00007961 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00007962 dynamic_linker="$host_os dld.sl"
7963 shlibpath_var=SHLIB_PATH
7964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 soname_spec='${libname}${release}${shared_ext}$major'
7967 ;;
7968 esac
drh71eb93e2001-09-28 01:34:43 +00007969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7970 postinstall_cmds='chmod 555 $lib'
7971 ;;
7972
mlcreech636a9952008-05-05 22:52:56 +00007973interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007974 version_type=linux
7975 need_lib_prefix=no
7976 need_version=no
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7980 shlibpath_var=LD_LIBRARY_PATH
7981 shlibpath_overrides_runpath=no
7982 hardcode_into_libs=yes
7983 ;;
7984
a.rottmann84e63352003-03-24 09:42:16 +00007985irix5* | irix6* | nonstopux*)
7986 case $host_os in
7987 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007988 *)
7989 if test "$lt_cv_prog_gnu_ld" = yes; then
7990 version_type=linux
7991 else
7992 version_type=irix
7993 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00007994 esac
drh71eb93e2001-09-28 01:34:43 +00007995 need_lib_prefix=no
7996 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007997 soname_spec='${libname}${release}${shared_ext}$major'
7998 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 +00007999 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008000 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008001 libsuff= shlibsuff=
8002 ;;
8003 *)
8004 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8006 libsuff= shlibsuff= libmagic=32-bit;;
8007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8008 libsuff=32 shlibsuff=N32 libmagic=N32;;
8009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008011 *) libsuff= shlibsuff= libmagic=never-match;;
8012 esac
8013 ;;
8014 esac
8015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8016 shlibpath_overrides_runpath=no
8017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008020 ;;
8021
8022# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008023linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008024 dynamic_linker=no
8025 ;;
8026
8027# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008028linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008029 version_type=linux
8030 need_lib_prefix=no
8031 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008037 # Some binutils ld are patched to set DT_RUNPATH
8038 save_LDFLAGS=$LDFLAGS
8039 save_libdir=$libdir
8040 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8041 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8042 cat >conftest.$ac_ext <<_ACEOF
8043/* confdefs.h. */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h. */
8048
8049int
8050main ()
8051{
8052
8053 ;
8054 return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -z "$ac_c_werror_flag"
8067 || test ! -s conftest.err'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; } &&
8073 { ac_try='test -s conftest$ac_exeext'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00008079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
8080 shlibpath_overrides_runpath=yes
8081fi
8082
8083else
drh866108f2008-05-13 00:57:21 +00008084 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008085sed 's/^/| /' conftest.$ac_ext >&5
8086
mlcreech636a9952008-05-05 22:52:56 +00008087fi
drh866108f2008-05-13 00:57:21 +00008088rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00008089 conftest$ac_exeext conftest.$ac_ext
8090 LDFLAGS=$save_LDFLAGS
8091 libdir=$save_libdir
8092
drh71eb93e2001-09-28 01:34:43 +00008093 # This implies no fast_install, which is unacceptable.
8094 # Some rework will be needed to allow for fast_install
8095 # before this can be enabled.
8096 hardcode_into_libs=yes
8097
a.rottmann9bc8b932004-02-29 15:18:31 +00008098 # Append ld.so.conf contents to the search path
8099 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008100 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 +00008101 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008102 fi
8103
drh71eb93e2001-09-28 01:34:43 +00008104 # We used to test for /lib/ld.so.1 and disable shared libraries on
8105 # powerpc, because MkLinux only supported shared libraries with the
8106 # GNU dynamic linker. Since this was broken with cross compilers,
8107 # most powerpc-linux boxes support dynamic linking these days and
8108 # people can always --disable-shared, the test was removed, and we
8109 # assume the GNU/Linux dynamic linker is in use.
8110 dynamic_linker='GNU/Linux ld.so'
8111 ;;
8112
8113netbsd*)
8114 version_type=sunos
8115 need_lib_prefix=no
8116 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8120 dynamic_linker='NetBSD (a.out) ld.so'
8121 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008124 dynamic_linker='NetBSD ld.elf_so'
8125 fi
8126 shlibpath_var=LD_LIBRARY_PATH
8127 shlibpath_overrides_runpath=yes
8128 hardcode_into_libs=yes
8129 ;;
8130
8131newsos6)
8132 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=yes
8136 ;;
8137
mlcreech636a9952008-05-05 22:52:56 +00008138*nto* | *qnx*)
8139 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008140 need_lib_prefix=no
8141 need_version=no
8142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8143 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008144 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008145 shlibpath_overrides_runpath=no
8146 hardcode_into_libs=yes
8147 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008148 ;;
8149
drh71eb93e2001-09-28 01:34:43 +00008150openbsd*)
8151 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008152 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008153 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008154 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8155 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008156 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8157 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008158 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8161 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008162 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 +00008163 case $host_os in
8164 openbsd2.[89] | openbsd2.[89].*)
8165 shlibpath_overrides_runpath=no
8166 ;;
8167 *)
8168 shlibpath_overrides_runpath=yes
8169 ;;
8170 esac
a.rottmann84e63352003-03-24 09:42:16 +00008171 else
8172 shlibpath_overrides_runpath=yes
8173 fi
drh71eb93e2001-09-28 01:34:43 +00008174 ;;
8175
8176os2*)
8177 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008178 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008179 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008180 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008181 dynamic_linker='OS/2 ld.exe'
8182 shlibpath_var=LIBPATH
8183 ;;
8184
8185osf3* | osf4* | osf5*)
8186 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008187 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008188 need_version=no
8189 soname_spec='${libname}${release}${shared_ext}$major'
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008191 shlibpath_var=LD_LIBRARY_PATH
8192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8194 ;;
8195
mlcreech636a9952008-05-05 22:52:56 +00008196rdos*)
8197 dynamic_linker=no
8198 ;;
8199
drh71eb93e2001-09-28 01:34:43 +00008200solaris*)
8201 version_type=linux
8202 need_lib_prefix=no
8203 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8205 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008206 shlibpath_var=LD_LIBRARY_PATH
8207 shlibpath_overrides_runpath=yes
8208 hardcode_into_libs=yes
8209 # ldd complains unless libraries are executable
8210 postinstall_cmds='chmod +x $lib'
8211 ;;
8212
8213sunos4*)
8214 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8217 shlibpath_var=LD_LIBRARY_PATH
8218 shlibpath_overrides_runpath=yes
8219 if test "$with_gnu_ld" = yes; then
8220 need_lib_prefix=no
8221 fi
8222 need_version=yes
8223 ;;
8224
vapier7f19c022007-02-17 14:46:31 +00008225sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008226 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008229 shlibpath_var=LD_LIBRARY_PATH
8230 case $host_vendor in
8231 sni)
8232 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008233 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00008234 runpath_var=LD_RUN_PATH
8235 ;;
8236 siemens)
8237 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008238 ;;
8239 motorola)
8240 need_lib_prefix=no
8241 need_version=no
8242 shlibpath_overrides_runpath=no
8243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8244 ;;
8245 esac
8246 ;;
8247
8248sysv4*MP*)
8249 if test -d /usr/nec ;then
8250 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8252 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008253 shlibpath_var=LD_LIBRARY_PATH
8254 fi
8255 ;;
8256
vapier7f19c022007-02-17 14:46:31 +00008257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8258 version_type=freebsd-elf
8259 need_lib_prefix=no
8260 need_version=no
8261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8262 soname_spec='${libname}${release}${shared_ext}$major'
8263 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008264 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00008265 hardcode_into_libs=yes
8266 if test "$with_gnu_ld" = yes; then
8267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00008268 else
8269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00008270 case $host_os in
8271 sco3.2v5*)
8272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8273 ;;
8274 esac
8275 fi
8276 sys_lib_dlsearch_path_spec='/usr/lib'
8277 ;;
8278
mlcreech636a9952008-05-05 22:52:56 +00008279tpf*)
8280 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8281 version_type=linux
8282 need_lib_prefix=no
8283 need_version=no
8284 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 shlibpath_var=LD_LIBRARY_PATH
8286 shlibpath_overrides_runpath=no
8287 hardcode_into_libs=yes
8288 ;;
8289
a.rottmann9bc8b932004-02-29 15:18:31 +00008290uts4*)
8291 version_type=linux
8292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293 soname_spec='${libname}${release}${shared_ext}$major'
8294 shlibpath_var=LD_LIBRARY_PATH
8295 ;;
8296
drh71eb93e2001-09-28 01:34:43 +00008297*)
8298 dynamic_linker=no
8299 ;;
8300esac
drh866108f2008-05-13 00:57:21 +00008301echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8302echo "${ECHO_T}$dynamic_linker" >&6
drh71eb93e2001-09-28 01:34:43 +00008303test "$dynamic_linker" = no && can_build_shared=no
8304
vapier7f19c022007-02-17 14:46:31 +00008305variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8306if test "$GCC" = yes; then
8307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8308fi
8309
mlcreech636a9952008-05-05 22:52:56 +00008310if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8311 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8312fi
8313if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8314 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8315fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
drh866108f2008-05-13 00:57:21 +00008403 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8404echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008405hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00008406if test -n "$hardcode_libdir_flag_spec" ||
8407 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00008408 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008409
mlcreech636a9952008-05-05 22:52:56 +00008410 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00008411 if test "$hardcode_direct" != no &&
8412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8413 # have to relink, otherwise we might link with an installed library
8414 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00008415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00008416 test "$hardcode_minus_L" != no; then
8417 # Linking always hardcodes the temporary library directory.
8418 hardcode_action=relink
8419 else
8420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8421 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008422 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008423else
8424 # We cannot hardcode anything, or else we can only hardcode existing
8425 # directories.
8426 hardcode_action=unsupported
8427fi
drh866108f2008-05-13 00:57:21 +00008428echo "$as_me:$LINENO: result: $hardcode_action" >&5
8429echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008430
mlcreech636a9952008-05-05 22:52:56 +00008431if test "$hardcode_action" = relink ||
8432 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008433 # Fast installation is not supported
8434 enable_fast_install=no
8435elif test "$shlibpath_overrides_runpath" = yes ||
8436 test "$enable_shared" = no; then
8437 # Fast installation is not necessary
8438 enable_fast_install=needless
8439fi
8440
a.rottmann84e63352003-03-24 09:42:16 +00008441
mlcreech636a9952008-05-05 22:52:56 +00008442
8443
8444
8445
8446 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00008447 enable_dlopen=unknown
8448 enable_dlopen_self=unknown
8449 enable_dlopen_self_static=unknown
8450else
8451 lt_cv_dlopen=no
8452 lt_cv_dlopen_libs=
8453
8454 case $host_os in
8455 beos*)
8456 lt_cv_dlopen="load_add_on"
8457 lt_cv_dlopen_libs=
8458 lt_cv_dlopen_self=yes
8459 ;;
8460
a.rottmann9bc8b932004-02-29 15:18:31 +00008461 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008462 lt_cv_dlopen="LoadLibrary"
8463 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00008464 ;;
drh71eb93e2001-09-28 01:34:43 +00008465
a.rottmann9bc8b932004-02-29 15:18:31 +00008466 cygwin*)
8467 lt_cv_dlopen="dlopen"
8468 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00008469 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008470
8471 darwin*)
8472 # if libdl is installed we need to link against it
drh866108f2008-05-13 00:57:21 +00008473 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8474echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008475if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008476 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008477else
8478 ac_check_lib_save_LIBS=$LIBS
8479LIBS="-ldl $LIBS"
8480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h. */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
8485/* end confdefs.h. */
8486
drh866108f2008-05-13 00:57:21 +00008487/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008488#ifdef __cplusplus
8489extern "C"
8490#endif
drh866108f2008-05-13 00:57:21 +00008491/* We use char because int might match the return type of a gcc2
8492 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008493char dlopen ();
8494int
8495main ()
8496{
drh866108f2008-05-13 00:57:21 +00008497dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008498 ;
8499 return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag"
8512 || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008524 ac_cv_lib_dl_dlopen=yes
8525else
drh866108f2008-05-13 00:57:21 +00008526 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008527sed 's/^/| /' conftest.$ac_ext >&5
8528
drh866108f2008-05-13 00:57:21 +00008529ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008530fi
drh866108f2008-05-13 00:57:21 +00008531rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00008532 conftest$ac_exeext conftest.$ac_ext
8533LIBS=$ac_check_lib_save_LIBS
8534fi
drh866108f2008-05-13 00:57:21 +00008535echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008537if test $ac_cv_lib_dl_dlopen = yes; then
8538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8539else
8540
8541 lt_cv_dlopen="dyld"
8542 lt_cv_dlopen_libs=
8543 lt_cv_dlopen_self=yes
8544
8545fi
8546
mlcreech636a9952008-05-05 22:52:56 +00008547 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008548
drh71eb93e2001-09-28 01:34:43 +00008549 *)
drh866108f2008-05-13 00:57:21 +00008550 echo "$as_me:$LINENO: checking for shl_load" >&5
8551echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008552if test "${ac_cv_func_shl_load+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008553 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008554else
8555 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008556/* confdefs.h. */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008561/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8563#define shl_load innocuous_shl_load
8564
drh71eb93e2001-09-28 01:34:43 +00008565/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008566 which can conflict with char shl_load (); below.
8567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8568 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008569
a.rottmann84e63352003-03-24 09:42:16 +00008570#ifdef __STDC__
8571# include <limits.h>
8572#else
8573# include <assert.h>
8574#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008575
8576#undef shl_load
8577
drh866108f2008-05-13 00:57:21 +00008578/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008579#ifdef __cplusplus
8580extern "C"
drh866108f2008-05-13 00:57:21 +00008581{
drh71eb93e2001-09-28 01:34:43 +00008582#endif
drh866108f2008-05-13 00:57:21 +00008583/* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008585char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008586/* The GNU C library defines this for functions which it implements
8587 to always fail with ENOSYS. Some functions are actually named
8588 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +00008589#if defined (__stub_shl_load) || defined (__stub___shl_load)
drh71eb93e2001-09-28 01:34:43 +00008590choke me
drh866108f2008-05-13 00:57:21 +00008591#else
8592char (*f) () = shl_load;
8593#endif
8594#ifdef __cplusplus
8595}
drh71eb93e2001-09-28 01:34:43 +00008596#endif
8597
a.rottmann84e63352003-03-24 09:42:16 +00008598int
8599main ()
8600{
drh866108f2008-05-13 00:57:21 +00008601return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00008602 ;
8603 return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008609 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag"
8616 || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008628 ac_cv_func_shl_load=yes
8629else
drh866108f2008-05-13 00:57:21 +00008630 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008631sed 's/^/| /' conftest.$ac_ext >&5
8632
drh866108f2008-05-13 00:57:21 +00008633ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008634fi
drh866108f2008-05-13 00:57:21 +00008635rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008636 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008637fi
drh866108f2008-05-13 00:57:21 +00008638echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8639echo "${ECHO_T}$ac_cv_func_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008640if test $ac_cv_func_shl_load = yes; then
8641 lt_cv_dlopen="shl_load"
8642else
drh866108f2008-05-13 00:57:21 +00008643 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8644echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008645if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008646 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008647else
8648 ac_check_lib_save_LIBS=$LIBS
8649LIBS="-ldld $LIBS"
8650cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008656
drh866108f2008-05-13 00:57:21 +00008657/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008658#ifdef __cplusplus
8659extern "C"
8660#endif
drh866108f2008-05-13 00:57:21 +00008661/* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008663char shl_load ();
8664int
8665main ()
8666{
drh866108f2008-05-13 00:57:21 +00008667shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008675 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag"
8682 || test ! -s conftest.err'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; } &&
8688 { ac_try='test -s conftest$ac_exeext'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008694 ac_cv_lib_dld_shl_load=yes
8695else
drh866108f2008-05-13 00:57:21 +00008696 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008697sed 's/^/| /' conftest.$ac_ext >&5
8698
drh866108f2008-05-13 00:57:21 +00008699ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008700fi
drh866108f2008-05-13 00:57:21 +00008701rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008702 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008703LIBS=$ac_check_lib_save_LIBS
8704fi
drh866108f2008-05-13 00:57:21 +00008705echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8706echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008707if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008708 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00008709else
drh866108f2008-05-13 00:57:21 +00008710 echo "$as_me:$LINENO: checking for dlopen" >&5
8711echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008712if test "${ac_cv_func_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008713 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008714else
8715 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008716/* confdefs.h. */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008721/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8723#define dlopen innocuous_dlopen
8724
a.rottmann84e63352003-03-24 09:42:16 +00008725/* System header to define __stub macros and hopefully few prototypes,
8726 which can conflict with char dlopen (); below.
8727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8728 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008729
a.rottmann84e63352003-03-24 09:42:16 +00008730#ifdef __STDC__
8731# include <limits.h>
8732#else
8733# include <assert.h>
8734#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008735
8736#undef dlopen
8737
drh866108f2008-05-13 00:57:21 +00008738/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008739#ifdef __cplusplus
8740extern "C"
drh866108f2008-05-13 00:57:21 +00008741{
a.rottmann84e63352003-03-24 09:42:16 +00008742#endif
drh866108f2008-05-13 00:57:21 +00008743/* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008745char dlopen ();
8746/* The GNU C library defines this for functions which it implements
8747 to always fail with ENOSYS. Some functions are actually named
8748 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +00008749#if defined (__stub_dlopen) || defined (__stub___dlopen)
a.rottmann84e63352003-03-24 09:42:16 +00008750choke me
drh866108f2008-05-13 00:57:21 +00008751#else
8752char (*f) () = dlopen;
8753#endif
8754#ifdef __cplusplus
8755}
a.rottmann84e63352003-03-24 09:42:16 +00008756#endif
8757
8758int
8759main ()
8760{
drh866108f2008-05-13 00:57:21 +00008761return f != dlopen;
a.rottmann84e63352003-03-24 09:42:16 +00008762 ;
8763 return 0;
8764}
8765_ACEOF
8766rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008769 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try='test -z "$ac_c_werror_flag"
8776 || test ! -s conftest.err'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008788 ac_cv_func_dlopen=yes
8789else
drh866108f2008-05-13 00:57:21 +00008790 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008791sed 's/^/| /' conftest.$ac_ext >&5
8792
drh866108f2008-05-13 00:57:21 +00008793ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008794fi
drh866108f2008-05-13 00:57:21 +00008795rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008796 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008797fi
drh866108f2008-05-13 00:57:21 +00008798echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8799echo "${ECHO_T}$ac_cv_func_dlopen" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008800if test $ac_cv_func_dlopen = yes; then
8801 lt_cv_dlopen="dlopen"
8802else
drh866108f2008-05-13 00:57:21 +00008803 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8804echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008805if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008806 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008807else
8808 ac_check_lib_save_LIBS=$LIBS
8809LIBS="-ldl $LIBS"
8810cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008811/* confdefs.h. */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008816
drh866108f2008-05-13 00:57:21 +00008817/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008818#ifdef __cplusplus
8819extern "C"
8820#endif
drh866108f2008-05-13 00:57:21 +00008821/* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008823char dlopen ();
8824int
8825main ()
8826{
drh866108f2008-05-13 00:57:21 +00008827dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008828 ;
8829 return 0;
8830}
8831_ACEOF
8832rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008835 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008854 ac_cv_lib_dl_dlopen=yes
8855else
drh866108f2008-05-13 00:57:21 +00008856 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008857sed 's/^/| /' conftest.$ac_ext >&5
8858
drh866108f2008-05-13 00:57:21 +00008859ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008860fi
drh866108f2008-05-13 00:57:21 +00008861rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008862 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008863LIBS=$ac_check_lib_save_LIBS
8864fi
drh866108f2008-05-13 00:57:21 +00008865echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8866echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008867if test $ac_cv_lib_dl_dlopen = yes; then
8868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8869else
drh866108f2008-05-13 00:57:21 +00008870 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8871echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008872if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008873 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008874else
8875 ac_check_lib_save_LIBS=$LIBS
8876LIBS="-lsvld $LIBS"
8877cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008878/* confdefs.h. */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008883
drh866108f2008-05-13 00:57:21 +00008884/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008885#ifdef __cplusplus
8886extern "C"
8887#endif
drh866108f2008-05-13 00:57:21 +00008888/* We use char because int might match the return type of a gcc2
8889 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008890char dlopen ();
8891int
8892main ()
8893{
drh866108f2008-05-13 00:57:21 +00008894dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008895 ;
8896 return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008902 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -z "$ac_c_werror_flag"
8909 || test ! -s conftest.err'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; } &&
8915 { ac_try='test -s conftest$ac_exeext'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008921 ac_cv_lib_svld_dlopen=yes
8922else
drh866108f2008-05-13 00:57:21 +00008923 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008924sed 's/^/| /' conftest.$ac_ext >&5
8925
drh866108f2008-05-13 00:57:21 +00008926ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008927fi
drh866108f2008-05-13 00:57:21 +00008928rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008929 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008930LIBS=$ac_check_lib_save_LIBS
8931fi
drh866108f2008-05-13 00:57:21 +00008932echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8933echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008934if test $ac_cv_lib_svld_dlopen = yes; then
8935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008936else
drh866108f2008-05-13 00:57:21 +00008937 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8938echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008939if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008940 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008941else
8942 ac_check_lib_save_LIBS=$LIBS
8943LIBS="-ldld $LIBS"
8944cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008945/* confdefs.h. */
8946_ACEOF
8947cat confdefs.h >>conftest.$ac_ext
8948cat >>conftest.$ac_ext <<_ACEOF
8949/* end confdefs.h. */
8950
drh866108f2008-05-13 00:57:21 +00008951/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008952#ifdef __cplusplus
8953extern "C"
8954#endif
drh866108f2008-05-13 00:57:21 +00008955/* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008957char dld_link ();
8958int
8959main ()
8960{
drh866108f2008-05-13 00:57:21 +00008961dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00008962 ;
8963 return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008969 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008988 ac_cv_lib_dld_dld_link=yes
8989else
drh866108f2008-05-13 00:57:21 +00008990 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008991sed 's/^/| /' conftest.$ac_ext >&5
8992
drh866108f2008-05-13 00:57:21 +00008993ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00008994fi
drh866108f2008-05-13 00:57:21 +00008995rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008996 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008997LIBS=$ac_check_lib_save_LIBS
8998fi
drh866108f2008-05-13 00:57:21 +00008999echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9000echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009001if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009002 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009003fi
9004
drh71eb93e2001-09-28 01:34:43 +00009005
9006fi
9007
drh71eb93e2001-09-28 01:34:43 +00009008
9009fi
9010
a.rottmann84e63352003-03-24 09:42:16 +00009011
9012fi
9013
9014
9015fi
9016
9017
drh71eb93e2001-09-28 01:34:43 +00009018fi
9019
9020 ;;
9021 esac
9022
9023 if test "x$lt_cv_dlopen" != xno; then
9024 enable_dlopen=yes
9025 else
9026 enable_dlopen=no
9027 fi
9028
9029 case $lt_cv_dlopen in
9030 dlopen)
9031 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009032 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009033
9034 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009036
9037 save_LIBS="$LIBS"
9038 LIBS="$lt_cv_dlopen_libs $LIBS"
9039
drh866108f2008-05-13 00:57:21 +00009040 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9041echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009042if test "${lt_cv_dlopen_self+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009043 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009044else
9045 if test "$cross_compiling" = yes; then :
9046 lt_cv_dlopen_self=cross
9047else
a.rottmann9bc8b932004-02-29 15:18:31 +00009048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009049 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009050 cat > conftest.$ac_ext <<_LT_EOF
drh866108f2008-05-13 00:57:21 +00009051#line 9057 "configure"
drh71eb93e2001-09-28 01:34:43 +00009052#include "confdefs.h"
9053
9054#if HAVE_DLFCN_H
9055#include <dlfcn.h>
9056#endif
9057
9058#include <stdio.h>
9059
9060#ifdef RTLD_GLOBAL
9061# define LT_DLGLOBAL RTLD_GLOBAL
9062#else
9063# ifdef DL_GLOBAL
9064# define LT_DLGLOBAL DL_GLOBAL
9065# else
9066# define LT_DLGLOBAL 0
9067# endif
9068#endif
9069
9070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9071 find out it does not work in some platform. */
9072#ifndef LT_DLLAZY_OR_NOW
9073# ifdef RTLD_LAZY
9074# define LT_DLLAZY_OR_NOW RTLD_LAZY
9075# else
9076# ifdef DL_LAZY
9077# define LT_DLLAZY_OR_NOW DL_LAZY
9078# else
9079# ifdef RTLD_NOW
9080# define LT_DLLAZY_OR_NOW RTLD_NOW
9081# else
9082# ifdef DL_NOW
9083# define LT_DLLAZY_OR_NOW DL_NOW
9084# else
9085# define LT_DLLAZY_OR_NOW 0
9086# endif
9087# endif
9088# endif
9089# endif
9090#endif
9091
9092#ifdef __cplusplus
9093extern "C" void exit (int);
9094#endif
9095
9096void fnord() { int i=42;}
9097int main ()
9098{
9099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9100 int status = $lt_dlunknown;
9101
9102 if (self)
9103 {
9104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9106 /* dlclose (self); */
9107 }
vapier7f19c022007-02-17 14:46:31 +00009108 else
9109 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009110
9111 exit (status);
9112}
mlcreech636a9952008-05-05 22:52:56 +00009113_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +00009114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009115 (eval $ac_link) 2>&5
9116 ac_status=$?
drh866108f2008-05-13 00:57:21 +00009117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009118 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009119 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009120 lt_status=$?
9121 case x$lt_status in
9122 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9123 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009124 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009125 esac
9126 else :
9127 # compilation failed
9128 lt_cv_dlopen_self=no
9129 fi
9130fi
9131rm -fr conftest*
9132
a.rottmann84e63352003-03-24 09:42:16 +00009133
drh71eb93e2001-09-28 01:34:43 +00009134fi
drh866108f2008-05-13 00:57:21 +00009135echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9136echo "${ECHO_T}$lt_cv_dlopen_self" >&6
drh71eb93e2001-09-28 01:34:43 +00009137
9138 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh866108f2008-05-13 00:57:21 +00009140 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9141echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009142if test "${lt_cv_dlopen_self_static+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009143 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009144else
9145 if test "$cross_compiling" = yes; then :
9146 lt_cv_dlopen_self_static=cross
9147else
a.rottmann9bc8b932004-02-29 15:18:31 +00009148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009149 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009150 cat > conftest.$ac_ext <<_LT_EOF
drh866108f2008-05-13 00:57:21 +00009151#line 9157 "configure"
drh71eb93e2001-09-28 01:34:43 +00009152#include "confdefs.h"
9153
9154#if HAVE_DLFCN_H
9155#include <dlfcn.h>
9156#endif
9157
9158#include <stdio.h>
9159
9160#ifdef RTLD_GLOBAL
9161# define LT_DLGLOBAL RTLD_GLOBAL
9162#else
9163# ifdef DL_GLOBAL
9164# define LT_DLGLOBAL DL_GLOBAL
9165# else
9166# define LT_DLGLOBAL 0
9167# endif
9168#endif
9169
9170/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9171 find out it does not work in some platform. */
9172#ifndef LT_DLLAZY_OR_NOW
9173# ifdef RTLD_LAZY
9174# define LT_DLLAZY_OR_NOW RTLD_LAZY
9175# else
9176# ifdef DL_LAZY
9177# define LT_DLLAZY_OR_NOW DL_LAZY
9178# else
9179# ifdef RTLD_NOW
9180# define LT_DLLAZY_OR_NOW RTLD_NOW
9181# else
9182# ifdef DL_NOW
9183# define LT_DLLAZY_OR_NOW DL_NOW
9184# else
9185# define LT_DLLAZY_OR_NOW 0
9186# endif
9187# endif
9188# endif
9189# endif
9190#endif
9191
9192#ifdef __cplusplus
9193extern "C" void exit (int);
9194#endif
9195
9196void fnord() { int i=42;}
9197int main ()
9198{
9199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9200 int status = $lt_dlunknown;
9201
9202 if (self)
9203 {
9204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9206 /* dlclose (self); */
9207 }
vapier7f19c022007-02-17 14:46:31 +00009208 else
9209 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009210
9211 exit (status);
9212}
mlcreech636a9952008-05-05 22:52:56 +00009213_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +00009214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009215 (eval $ac_link) 2>&5
9216 ac_status=$?
drh866108f2008-05-13 00:57:21 +00009217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009219 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009220 lt_status=$?
9221 case x$lt_status in
9222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009224 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009225 esac
9226 else :
9227 # compilation failed
9228 lt_cv_dlopen_self_static=no
9229 fi
9230fi
9231rm -fr conftest*
9232
a.rottmann84e63352003-03-24 09:42:16 +00009233
drh71eb93e2001-09-28 01:34:43 +00009234fi
drh866108f2008-05-13 00:57:21 +00009235echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9236echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
drh71eb93e2001-09-28 01:34:43 +00009237 fi
9238
9239 CPPFLAGS="$save_CPPFLAGS"
9240 LDFLAGS="$save_LDFLAGS"
9241 LIBS="$save_LIBS"
9242 ;;
9243 esac
9244
9245 case $lt_cv_dlopen_self in
9246 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9247 *) enable_dlopen_self=unknown ;;
9248 esac
9249
9250 case $lt_cv_dlopen_self_static in
9251 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9252 *) enable_dlopen_self_static=unknown ;;
9253 esac
9254fi
9255
drh71eb93e2001-09-28 01:34:43 +00009256
drh71eb93e2001-09-28 01:34:43 +00009257
a.rottmann9bc8b932004-02-29 15:18:31 +00009258
a.rottmann9bc8b932004-02-29 15:18:31 +00009259
mlcreech636a9952008-05-05 22:52:56 +00009260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272striplib=
9273old_striplib=
drh866108f2008-05-13 00:57:21 +00009274echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9275echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009276if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9277 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9278 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh866108f2008-05-13 00:57:21 +00009279 echo "$as_me:$LINENO: result: yes" >&5
9280echo "${ECHO_T}yes" >&6
mlcreech636a9952008-05-05 22:52:56 +00009281else
9282# FIXME - insert some real tests, host_os isn't really good enough
9283 case $host_os in
9284 darwin*)
9285 if test -n "$STRIP" ; then
9286 striplib="$STRIP -x"
9287 old_striplib="$STRIP -S"
drh866108f2008-05-13 00:57:21 +00009288 echo "$as_me:$LINENO: result: yes" >&5
9289echo "${ECHO_T}yes" >&6
mlcreech636a9952008-05-05 22:52:56 +00009290 else
drh866108f2008-05-13 00:57:21 +00009291 echo "$as_me:$LINENO: result: no" >&5
9292echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00009293 fi
a.rottmann84e63352003-03-24 09:42:16 +00009294 ;;
mlcreech636a9952008-05-05 22:52:56 +00009295 *)
drh866108f2008-05-13 00:57:21 +00009296 echo "$as_me:$LINENO: result: no" >&5
9297echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009298 ;;
9299 esac
mlcreech636a9952008-05-05 22:52:56 +00009300fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009301
a.rottmann9bc8b932004-02-29 15:18:31 +00009302
drh71eb93e2001-09-28 01:34:43 +00009303
drh71eb93e2001-09-28 01:34:43 +00009304
a.rottmann84e63352003-03-24 09:42:16 +00009305
drh71eb93e2001-09-28 01:34:43 +00009306
drh71eb93e2001-09-28 01:34:43 +00009307
a.rottmann9bc8b932004-02-29 15:18:31 +00009308
drh71eb93e2001-09-28 01:34:43 +00009309
drh71eb93e2001-09-28 01:34:43 +00009310
drh71eb93e2001-09-28 01:34:43 +00009311
drh71eb93e2001-09-28 01:34:43 +00009312
mlcreech636a9952008-05-05 22:52:56 +00009313 # Report which library types will actually be built
drh866108f2008-05-13 00:57:21 +00009314 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9315echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9316 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9317echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00009318
drh866108f2008-05-13 00:57:21 +00009319 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9320echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009321 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009322
mlcreech636a9952008-05-05 22:52:56 +00009323 # On AIX, shared libraries and static libraries use the same namespace, and
9324 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009325 case $host_os in
9326 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009327 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009328 if test -n "$RANLIB"; then
9329 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9330 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009331 fi
9332 ;;
9333
mlcreech636a9952008-05-05 22:52:56 +00009334 aix[4-9]*)
9335 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9336 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009337 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009338 ;;
9339 esac
drh866108f2008-05-13 00:57:21 +00009340 echo "$as_me:$LINENO: result: $enable_shared" >&5
9341echo "${ECHO_T}$enable_shared" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009342
drh866108f2008-05-13 00:57:21 +00009343 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9344echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009345 # Make sure either enable_shared or enable_static is yes.
9346 test "$enable_shared" = yes || enable_static=yes
drh866108f2008-05-13 00:57:21 +00009347 echo "$as_me:$LINENO: result: $enable_static" >&5
9348echo "${ECHO_T}$enable_static" >&6
vapier7f19c022007-02-17 14:46:31 +00009349
a.rottmann9bc8b932004-02-29 15:18:31 +00009350
a.rottmann9bc8b932004-02-29 15:18:31 +00009351
a.rottmann9bc8b932004-02-29 15:18:31 +00009352
vapier7f19c022007-02-17 14:46:31 +00009353fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009354ac_ext=c
9355ac_cpp='$CPP $CPPFLAGS'
9356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358ac_compiler_gnu=$ac_cv_c_compiler_gnu
9359
9360CC="$lt_save_CC"
9361
a.rottmann9bc8b932004-02-29 15:18:31 +00009362
a.rottmann9bc8b932004-02-29 15:18:31 +00009363
9364
a.rottmann9bc8b932004-02-29 15:18:31 +00009365
a.rottmann9bc8b932004-02-29 15:18:31 +00009366
a.rottmann9bc8b932004-02-29 15:18:31 +00009367
a.rottmann9bc8b932004-02-29 15:18:31 +00009368
a.rottmann9bc8b932004-02-29 15:18:31 +00009369
a.rottmann9bc8b932004-02-29 15:18:31 +00009370
vapier7f19c022007-02-17 14:46:31 +00009371
a.rottmann9bc8b932004-02-29 15:18:31 +00009372
9373
drh866108f2008-05-13 00:57:21 +00009374 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009375
vapier7f19c022007-02-17 14:46:31 +00009376
9377
vapier7f19c022007-02-17 14:46:31 +00009378
mlcreech636a9952008-05-05 22:52:56 +00009379# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009380
9381
drh71eb93e2001-09-28 01:34:43 +00009382# Find a good install program. We prefer a C program (faster),
9383# so one script is as good as another. But avoid the broken or
9384# incompatible versions:
9385# SysV /etc/install, /usr/sbin/install
9386# SunOS /usr/etc/install
9387# IRIX /sbin/install
9388# AIX /bin/install
9389# AmigaOS /C/install, which installs bootblocks on floppy discs
9390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009393# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009394# ./install, which can be erroneously created by make from ./install.sh.
drh866108f2008-05-13 00:57:21 +00009395echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9396echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009397if test -z "$INSTALL"; then
9398if test "${ac_cv_path_install+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009399 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009400else
a.rottmann84e63352003-03-24 09:42:16 +00009401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402for as_dir in $PATH
9403do
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 # Account for people who put trailing slashes in PATH elements.
9407case $as_dir/ in
9408 ./ | .// | /cC/* | \
9409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +00009410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009411 /usr/ucb/* ) ;;
9412 *)
9413 # OSF1 and SCO ODT 3.0 have their own names for install.
9414 # Don't use installbsd from OSF since it installs stuff as root
9415 # by default.
9416 for ac_prog in ginstall scoinst install; do
9417 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00009418 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009419 if test $ac_prog = install &&
9420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9421 # AIX install. It has an incompatible calling convention.
9422 :
9423 elif test $ac_prog = install &&
9424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9425 # program-specific install script used by HP pwplus--don't use.
9426 :
9427 else
drh866108f2008-05-13 00:57:21 +00009428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9429 break 3
a.rottmann964dbb12004-02-26 19:47:42 +00009430 fi
9431 fi
drh71eb93e2001-09-28 01:34:43 +00009432 done
a.rottmann84e63352003-03-24 09:42:16 +00009433 done
9434 ;;
9435esac
9436done
9437
drh71eb93e2001-09-28 01:34:43 +00009438
9439fi
9440 if test "${ac_cv_path_install+set}" = set; then
9441 INSTALL=$ac_cv_path_install
9442 else
drh866108f2008-05-13 00:57:21 +00009443 # As a last resort, use the slow shell script. We don't cache a
9444 # path for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009445 # break other packages using the cache if that directory is
drh866108f2008-05-13 00:57:21 +00009446 # removed, or if the path is relative.
drh71eb93e2001-09-28 01:34:43 +00009447 INSTALL=$ac_install_sh
9448 fi
9449fi
drh866108f2008-05-13 00:57:21 +00009450echo "$as_me:$LINENO: result: $INSTALL" >&5
9451echo "${ECHO_T}$INSTALL" >&6
drh71eb93e2001-09-28 01:34:43 +00009452
9453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9454# It thinks the first close brace ends the variable substitution.
9455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9456
9457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9458
9459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9460
drhf1878b42006-01-23 18:06:52 +00009461for ac_prog in gawk mawk nawk awk
9462do
9463 # Extract the first word of "$ac_prog", so it can be a program name with args.
9464set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00009465echo "$as_me:$LINENO: checking for $ac_word" >&5
9466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +00009467if test "${ac_cv_prog_AWK+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009468 echo $ECHO_N "(cached) $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +00009469else
9470 if test -n "$AWK"; then
9471 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9472else
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00009479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
drhf1878b42006-01-23 18:06:52 +00009480 ac_cv_prog_AWK="$ac_prog"
drh866108f2008-05-13 00:57:21 +00009481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009482 break 2
9483 fi
9484done
9485done
9486
9487fi
9488fi
9489AWK=$ac_cv_prog_AWK
9490if test -n "$AWK"; then
drh866108f2008-05-13 00:57:21 +00009491 echo "$as_me:$LINENO: result: $AWK" >&5
9492echo "${ECHO_T}$AWK" >&6
drhf1878b42006-01-23 18:06:52 +00009493else
drh866108f2008-05-13 00:57:21 +00009494 echo "$as_me:$LINENO: result: no" >&5
9495echo "${ECHO_T}no" >&6
drhf1878b42006-01-23 18:06:52 +00009496fi
9497
9498 test -n "$AWK" && break
9499done
9500
a.rottmann84e63352003-03-24 09:42:16 +00009501
drh75897232000-05-29 14:26:00 +00009502#########
mlcreech636a9952008-05-05 22:52:56 +00009503# Enable large file support (if special flags are necessary)
9504#
drh866108f2008-05-13 00:57:21 +00009505# Check whether --enable-largefile or --disable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +00009506if test "${enable_largefile+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009507 enableval="$enable_largefile"
mlcreech636a9952008-05-05 22:52:56 +00009508
drh866108f2008-05-13 00:57:21 +00009509fi;
mlcreech636a9952008-05-05 22:52:56 +00009510if test "$enable_largefile" != no; then
9511
drh866108f2008-05-13 00:57:21 +00009512 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9513echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009514if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009515 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009516else
mlcreech636a9952008-05-05 22:52:56 +00009517 ac_cv_sys_largefile_CC=no
9518 if test "$GCC" != yes; then
9519 ac_save_CC=$CC
9520 while :; do
drh866108f2008-05-13 00:57:21 +00009521 # IRIX 6.2 and later do not support large files by default,
9522 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +00009523 cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529#include <sys/types.h>
9530 /* Check that off_t can represent 2**63 - 1 correctly.
9531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9532 since some C++ compilers masquerading as C compilers
9533 incorrectly reject 9223372036854775807. */
9534#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9536 && LARGE_OFF_T % 2147483647 == 1)
9537 ? 1 : -1];
9538int
9539main ()
9540{
9541
9542 ;
9543 return 0;
9544}
9545_ACEOF
drh866108f2008-05-13 00:57:21 +00009546 rm -f conftest.$ac_objext
9547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009568 break
9569else
drh866108f2008-05-13 00:57:21 +00009570 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009571sed 's/^/| /' conftest.$ac_ext >&5
9572
mlcreech636a9952008-05-05 22:52:56 +00009573fi
drh866108f2008-05-13 00:57:21 +00009574rm -f conftest.err conftest.$ac_objext
9575 CC="$CC -n32"
9576 rm -f conftest.$ac_objext
9577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009579 ac_status=$?
9580 grep -v '^ *+' conftest.er1 >conftest.err
9581 rm -f conftest.er1
9582 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try='test -z "$ac_c_werror_flag"
9586 || test ! -s conftest.err'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009598 ac_cv_sys_largefile_CC=' -n32'; break
9599else
drh866108f2008-05-13 00:57:21 +00009600 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009601sed 's/^/| /' conftest.$ac_ext >&5
9602
mlcreech636a9952008-05-05 22:52:56 +00009603fi
drh866108f2008-05-13 00:57:21 +00009604rm -f conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00009605 break
9606 done
9607 CC=$ac_save_CC
9608 rm -f conftest.$ac_ext
9609 fi
9610fi
drh866108f2008-05-13 00:57:21 +00009611echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9612echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
mlcreech636a9952008-05-05 22:52:56 +00009613 if test "$ac_cv_sys_largefile_CC" != no; then
9614 CC=$CC$ac_cv_sys_largefile_CC
9615 fi
9616
drh866108f2008-05-13 00:57:21 +00009617 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9618echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009619if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009620 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009621else
9622 while :; do
drh866108f2008-05-13 00:57:21 +00009623 ac_cv_sys_file_offset_bits=no
mlcreechb87057f2008-03-06 07:19:20 +00009624 cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00009630#include <sys/types.h>
9631 /* Check that off_t can represent 2**63 - 1 correctly.
9632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9633 since some C++ compilers masquerading as C compilers
9634 incorrectly reject 9223372036854775807. */
9635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9637 && LARGE_OFF_T % 2147483647 == 1)
9638 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +00009639int
9640main ()
9641{
mlcreech636a9952008-05-05 22:52:56 +00009642
mlcreechb87057f2008-03-06 07:19:20 +00009643 ;
9644 return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649 (eval $ac_compile) 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +00009650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag"
9657 || test ! -s conftest.err'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; } &&
9663 { ac_try='test -s conftest.$ac_objext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 break
mlcreechb87057f2008-03-06 07:19:20 +00009670else
drh866108f2008-05-13 00:57:21 +00009671 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009672sed 's/^/| /' conftest.$ac_ext >&5
9673
mlcreech636a9952008-05-05 22:52:56 +00009674fi
drh866108f2008-05-13 00:57:21 +00009675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009676 cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
9682#define _FILE_OFFSET_BITS 64
9683#include <sys/types.h>
9684 /* Check that off_t can represent 2**63 - 1 correctly.
9685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9686 since some C++ compilers masquerading as C compilers
9687 incorrectly reject 9223372036854775807. */
9688#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9690 && LARGE_OFF_T % 2147483647 == 1)
9691 ? 1 : -1];
9692int
9693main ()
9694{
9695
9696 ;
9697 return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -z "$ac_c_werror_flag"
9710 || test ! -s conftest.err'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 (eval $ac_try) 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest.$ac_objext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009722 ac_cv_sys_file_offset_bits=64; break
9723else
drh866108f2008-05-13 00:57:21 +00009724 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009725sed 's/^/| /' conftest.$ac_ext >&5
9726
mlcreech636a9952008-05-05 22:52:56 +00009727fi
drh866108f2008-05-13 00:57:21 +00009728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009729 break
9730done
9731fi
drh866108f2008-05-13 00:57:21 +00009732echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9733echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9734if test "$ac_cv_sys_file_offset_bits" != no; then
9735
mlcreech636a9952008-05-05 22:52:56 +00009736cat >>confdefs.h <<_ACEOF
9737#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9738_ACEOF
drh866108f2008-05-13 00:57:21 +00009739
9740fi
9741rm -f conftest*
9742 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9743echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009744if test "${ac_cv_sys_large_files+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009745 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009746else
9747 while :; do
drh866108f2008-05-13 00:57:21 +00009748 ac_cv_sys_large_files=no
mlcreech636a9952008-05-05 22:52:56 +00009749 cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755#include <sys/types.h>
9756 /* Check that off_t can represent 2**63 - 1 correctly.
9757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9758 since some C++ compilers masquerading as C compilers
9759 incorrectly reject 9223372036854775807. */
9760#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9762 && LARGE_OFF_T % 2147483647 == 1)
9763 ? 1 : -1];
9764int
9765main ()
9766{
9767
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 break
mlcreech636a9952008-05-05 22:52:56 +00009795else
drh866108f2008-05-13 00:57:21 +00009796 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009797sed 's/^/| /' conftest.$ac_ext >&5
9798
mlcreech636a9952008-05-05 22:52:56 +00009799fi
drh866108f2008-05-13 00:57:21 +00009800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009801 cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h. */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h. */
9807#define _LARGE_FILES 1
9808#include <sys/types.h>
9809 /* Check that off_t can represent 2**63 - 1 correctly.
9810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9811 since some C++ compilers masquerading as C compilers
9812 incorrectly reject 9223372036854775807. */
9813#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9815 && LARGE_OFF_T % 2147483647 == 1)
9816 ? 1 : -1];
9817int
9818main ()
9819{
9820
9821 ;
9822 return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_c_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009847 ac_cv_sys_large_files=1; break
9848else
drh866108f2008-05-13 00:57:21 +00009849 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009850sed 's/^/| /' conftest.$ac_ext >&5
9851
mlcreech636a9952008-05-05 22:52:56 +00009852fi
drh866108f2008-05-13 00:57:21 +00009853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009854 break
9855done
9856fi
drh866108f2008-05-13 00:57:21 +00009857echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9858echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9859if test "$ac_cv_sys_large_files" != no; then
9860
mlcreech636a9952008-05-05 22:52:56 +00009861cat >>confdefs.h <<_ACEOF
9862#define _LARGE_FILES $ac_cv_sys_large_files
9863_ACEOF
drh866108f2008-05-13 00:57:21 +00009864
9865fi
9866rm -f conftest*
mlcreech636a9952008-05-05 22:52:56 +00009867fi
9868
9869
9870#########
9871# Check for needed/wanted data types
drh866108f2008-05-13 00:57:21 +00009872echo "$as_me:$LINENO: checking for int8_t" >&5
9873echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009874if test "${ac_cv_type_int8_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009875 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009876else
mlcreech636a9952008-05-05 22:52:56 +00009877 cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
9883$ac_includes_default
9884int
9885main ()
9886{
drh866108f2008-05-13 00:57:21 +00009887if ((int8_t *) 0)
9888 return 0;
9889if (sizeof (int8_t))
9890 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009891 ;
9892 return 0;
9893}
9894_ACEOF
9895rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_c_werror_flag"
9905 || test ! -s conftest.err'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest.$ac_objext'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; }; then
9917 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +00009918else
drh866108f2008-05-13 00:57:21 +00009919 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009920sed 's/^/| /' conftest.$ac_ext >&5
9921
drh866108f2008-05-13 00:57:21 +00009922ac_cv_type_int8_t=no
mlcreech636a9952008-05-05 22:52:56 +00009923fi
drh866108f2008-05-13 00:57:21 +00009924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009925fi
drh866108f2008-05-13 00:57:21 +00009926echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9927echo "${ECHO_T}$ac_cv_type_int8_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009928if test $ac_cv_type_int8_t = yes; then
9929
9930cat >>confdefs.h <<_ACEOF
9931#define HAVE_INT8_T 1
9932_ACEOF
9933
9934
9935fi
drh866108f2008-05-13 00:57:21 +00009936echo "$as_me:$LINENO: checking for int16_t" >&5
9937echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009938if test "${ac_cv_type_int16_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009939 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009940else
mlcreech636a9952008-05-05 22:52:56 +00009941 cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
9947$ac_includes_default
9948int
9949main ()
9950{
drh866108f2008-05-13 00:57:21 +00009951if ((int16_t *) 0)
9952 return 0;
9953if (sizeof (int16_t))
9954 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9961 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag"
9969 || test ! -s conftest.err'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_type_int16_t=yes
mlcreechb87057f2008-03-06 07:19:20 +00009982else
drh866108f2008-05-13 00:57:21 +00009983 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009984sed 's/^/| /' conftest.$ac_ext >&5
9985
drh866108f2008-05-13 00:57:21 +00009986ac_cv_type_int16_t=no
mlcreech636a9952008-05-05 22:52:56 +00009987fi
drh866108f2008-05-13 00:57:21 +00009988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009989fi
drh866108f2008-05-13 00:57:21 +00009990echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9991echo "${ECHO_T}$ac_cv_type_int16_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009992if test $ac_cv_type_int16_t = yes; then
9993
9994cat >>confdefs.h <<_ACEOF
9995#define HAVE_INT16_T 1
9996_ACEOF
9997
9998
9999fi
drh866108f2008-05-13 00:57:21 +000010000echo "$as_me:$LINENO: checking for int32_t" >&5
10001echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010002if test "${ac_cv_type_int32_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010003 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010004else
mlcreech636a9952008-05-05 22:52:56 +000010005 cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011$ac_includes_default
10012int
10013main ()
10014{
drh866108f2008-05-13 00:57:21 +000010015if ((int32_t *) 0)
10016 return 0;
10017if (sizeof (int32_t))
10018 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10025 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try='test -s conftest.$ac_objext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_type_int32_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010046else
drh866108f2008-05-13 00:57:21 +000010047 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010048sed 's/^/| /' conftest.$ac_ext >&5
10049
drh866108f2008-05-13 00:57:21 +000010050ac_cv_type_int32_t=no
mlcreech636a9952008-05-05 22:52:56 +000010051fi
drh866108f2008-05-13 00:57:21 +000010052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010053fi
drh866108f2008-05-13 00:57:21 +000010054echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10055echo "${ECHO_T}$ac_cv_type_int32_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010056if test $ac_cv_type_int32_t = yes; then
10057
10058cat >>confdefs.h <<_ACEOF
10059#define HAVE_INT32_T 1
10060_ACEOF
10061
10062
10063fi
drh866108f2008-05-13 00:57:21 +000010064echo "$as_me:$LINENO: checking for int64_t" >&5
10065echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010066if test "${ac_cv_type_int64_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010067 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010068else
mlcreech636a9952008-05-05 22:52:56 +000010069 cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h. */
10075$ac_includes_default
10076int
10077main ()
10078{
drh866108f2008-05-13 00:57:21 +000010079if ((int64_t *) 0)
10080 return 0;
10081if (sizeof (int64_t))
10082 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_type_int64_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010110else
drh866108f2008-05-13 00:57:21 +000010111 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010112sed 's/^/| /' conftest.$ac_ext >&5
10113
drh866108f2008-05-13 00:57:21 +000010114ac_cv_type_int64_t=no
mlcreech636a9952008-05-05 22:52:56 +000010115fi
drh866108f2008-05-13 00:57:21 +000010116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010117fi
drh866108f2008-05-13 00:57:21 +000010118echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10119echo "${ECHO_T}$ac_cv_type_int64_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010120if test $ac_cv_type_int64_t = yes; then
10121
10122cat >>confdefs.h <<_ACEOF
10123#define HAVE_INT64_T 1
10124_ACEOF
10125
10126
10127fi
mlcreechb87057f2008-03-06 07:19:20 +000010128
drh866108f2008-05-13 00:57:21 +000010129echo "$as_me:$LINENO: checking for uint8_t" >&5
10130echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010131if test "${ac_cv_type_uint8_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010132 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010133else
mlcreech636a9952008-05-05 22:52:56 +000010134 cat >conftest.$ac_ext <<_ACEOF
10135/* confdefs.h. */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h. */
10140$ac_includes_default
10141int
10142main ()
10143{
drh866108f2008-05-13 00:57:21 +000010144if ((uint8_t *) 0)
10145 return 0;
10146if (sizeof (uint8_t))
10147 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010148 ;
10149 return 0;
10150}
10151_ACEOF
10152rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010155 ac_status=$?
10156 grep -v '^ *+' conftest.er1 >conftest.err
10157 rm -f conftest.er1
10158 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -z "$ac_c_werror_flag"
10162 || test ! -s conftest.err'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; } &&
10168 { ac_try='test -s conftest.$ac_objext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 ac_cv_type_uint8_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010175else
drh866108f2008-05-13 00:57:21 +000010176 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010177sed 's/^/| /' conftest.$ac_ext >&5
10178
drh866108f2008-05-13 00:57:21 +000010179ac_cv_type_uint8_t=no
mlcreech636a9952008-05-05 22:52:56 +000010180fi
drh866108f2008-05-13 00:57:21 +000010181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010182fi
drh866108f2008-05-13 00:57:21 +000010183echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
10184echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010185if test $ac_cv_type_uint8_t = yes; then
10186
10187cat >>confdefs.h <<_ACEOF
10188#define HAVE_UINT8_T 1
10189_ACEOF
10190
10191
10192fi
drh866108f2008-05-13 00:57:21 +000010193echo "$as_me:$LINENO: checking for uint16_t" >&5
10194echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010195if test "${ac_cv_type_uint16_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010196 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010197else
mlcreech636a9952008-05-05 22:52:56 +000010198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204$ac_includes_default
10205int
10206main ()
10207{
drh866108f2008-05-13 00:57:21 +000010208if ((uint16_t *) 0)
10209 return 0;
10210if (sizeof (uint16_t))
10211 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010212 ;
10213 return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag"
10226 || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest.$ac_objext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_type_uint16_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010239else
drh866108f2008-05-13 00:57:21 +000010240 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010241sed 's/^/| /' conftest.$ac_ext >&5
10242
drh866108f2008-05-13 00:57:21 +000010243ac_cv_type_uint16_t=no
mlcreech636a9952008-05-05 22:52:56 +000010244fi
drh866108f2008-05-13 00:57:21 +000010245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010246fi
drh866108f2008-05-13 00:57:21 +000010247echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
10248echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010249if test $ac_cv_type_uint16_t = yes; then
10250
10251cat >>confdefs.h <<_ACEOF
10252#define HAVE_UINT16_T 1
10253_ACEOF
10254
10255
10256fi
drh866108f2008-05-13 00:57:21 +000010257echo "$as_me:$LINENO: checking for uint32_t" >&5
10258echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010259if test "${ac_cv_type_uint32_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010260 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010261else
mlcreech636a9952008-05-05 22:52:56 +000010262 cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h. */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h. */
10268$ac_includes_default
10269int
10270main ()
10271{
drh866108f2008-05-13 00:57:21 +000010272if ((uint32_t *) 0)
10273 return 0;
10274if (sizeof (uint32_t))
10275 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010276 ;
10277 return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } &&
10289 { ac_try='test -z "$ac_c_werror_flag"
10290 || test ! -s conftest.err'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest.$ac_objext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_type_uint32_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010303else
drh866108f2008-05-13 00:57:21 +000010304 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010305sed 's/^/| /' conftest.$ac_ext >&5
10306
drh866108f2008-05-13 00:57:21 +000010307ac_cv_type_uint32_t=no
mlcreech636a9952008-05-05 22:52:56 +000010308fi
drh866108f2008-05-13 00:57:21 +000010309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010310fi
drh866108f2008-05-13 00:57:21 +000010311echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10312echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010313if test $ac_cv_type_uint32_t = yes; then
10314
10315cat >>confdefs.h <<_ACEOF
10316#define HAVE_UINT32_T 1
10317_ACEOF
10318
10319
10320fi
drh866108f2008-05-13 00:57:21 +000010321echo "$as_me:$LINENO: checking for uint64_t" >&5
10322echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010323if test "${ac_cv_type_uint64_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010324 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010325else
mlcreech636a9952008-05-05 22:52:56 +000010326 cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332$ac_includes_default
10333int
10334main ()
10335{
drh866108f2008-05-13 00:57:21 +000010336if ((uint64_t *) 0)
10337 return 0;
10338if (sizeof (uint64_t))
10339 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010340 ;
10341 return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_type_uint64_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010367else
drh866108f2008-05-13 00:57:21 +000010368 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010369sed 's/^/| /' conftest.$ac_ext >&5
10370
drh866108f2008-05-13 00:57:21 +000010371ac_cv_type_uint64_t=no
mlcreech636a9952008-05-05 22:52:56 +000010372fi
drh866108f2008-05-13 00:57:21 +000010373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010374fi
drh866108f2008-05-13 00:57:21 +000010375echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
10376echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010377if test $ac_cv_type_uint64_t = yes; then
10378
10379cat >>confdefs.h <<_ACEOF
10380#define HAVE_UINT64_T 1
10381_ACEOF
10382
10383
10384fi
shanefbedede2008-07-22 05:05:01 +000010385
mlcreech636a9952008-05-05 22:52:56 +000010386rm -f conftest.$ac_objext
mlcreechb87057f2008-03-06 07:19:20 +000010387
10388
10389#########
10390# Check for needed/wanted headers
10391
mlcreech8390bc32008-03-06 08:54:38 +000010392
10393
10394
10395for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000010396do
drh866108f2008-05-13 00:57:21 +000010397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010403fi
drh866108f2008-05-13 00:57:21 +000010404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010406else
mlcreech8390bc32008-03-06 08:54:38 +000010407 # Is the header compilable?
drh866108f2008-05-13 00:57:21 +000010408echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010410cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000010416$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000010417#include <$ac_header>
10418_ACEOF
10419rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
mlcreech8390bc32008-03-06 08:54:38 +000010441 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000010442else
drh866108f2008-05-13 00:57:21 +000010443 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010444sed 's/^/| /' conftest.$ac_ext >&5
10445
drh866108f2008-05-13 00:57:21 +000010446ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000010447fi
drh866108f2008-05-13 00:57:21 +000010448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450echo "${ECHO_T}$ac_header_compiler" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010451
10452# Is the header present?
drh866108f2008-05-13 00:57:21 +000010453echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461#include <$ac_header>
10462_ACEOF
drh866108f2008-05-13 00:57:21 +000010463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000010465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_c_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10474 else
10475 ac_cpp_err=
10476 fi
10477else
10478 ac_cpp_err=yes
10479fi
10480if test -z "$ac_cpp_err"; then
mlcreech8390bc32008-03-06 08:54:38 +000010481 ac_header_preproc=yes
10482else
drh866108f2008-05-13 00:57:21 +000010483 echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000010484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 ac_header_preproc=no
10487fi
mlcreech8390bc32008-03-06 08:54:38 +000010488rm -f conftest.err conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +000010489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490echo "${ECHO_T}$ac_header_preproc" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010491
10492# So? What about this header?
10493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494 yes:no: )
drh866108f2008-05-13 00:57:21 +000010495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000010499 ac_header_preproc=yes
10500 ;;
10501 no:yes:* )
drh866108f2008-05-13 00:57:21 +000010502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10514 (
10515 cat <<\_ASBOX
10516## --------------------------------- ##
10517## Report this to the sqlite lists. ##
10518## --------------------------------- ##
10519_ASBOX
10520 ) |
10521 sed "s/^/$as_me: WARNING: /" >&2
mlcreech8390bc32008-03-06 08:54:38 +000010522 ;;
10523esac
drh866108f2008-05-13 00:57:21 +000010524echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010528else
10529 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000010530fi
drh866108f2008-05-13 00:57:21 +000010531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010533
10534fi
drh866108f2008-05-13 00:57:21 +000010535if test `eval echo '${'$as_ac_Header'}'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000010536 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +000010537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010538_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010539
mlcreechb87057f2008-03-06 07:19:20 +000010540fi
10541
10542done
10543
10544
10545#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010546# Figure out whether or not we have these functions
10547#
10548
10549
10550
10551
shanefbedede2008-07-22 05:05:01 +000010552for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000010553do
drh866108f2008-05-13 00:57:21 +000010554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10555echo "$as_me:$LINENO: checking for $ac_func" >&5
10556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10557if eval "test \"\${$as_ac_var+set}\" = set"; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000010559else
10560 cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10568#define $ac_func innocuous_$ac_func
10569
10570/* System header to define __stub macros and hopefully few prototypes,
10571 which can conflict with char $ac_func (); below.
10572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10573 <limits.h> exists even on freestanding compilers. */
10574
10575#ifdef __STDC__
10576# include <limits.h>
10577#else
10578# include <assert.h>
10579#endif
10580
10581#undef $ac_func
10582
drh866108f2008-05-13 00:57:21 +000010583/* Override any gcc2 internal prototype to avoid an error. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000010584#ifdef __cplusplus
10585extern "C"
drh866108f2008-05-13 00:57:21 +000010586{
mlcreech5b0a9eb2008-03-09 01:38:09 +000010587#endif
drh866108f2008-05-13 00:57:21 +000010588/* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000010590char $ac_func ();
10591/* The GNU C library defines this for functions which it implements
10592 to always fail with ENOSYS. Some functions are actually named
10593 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +000010594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
mlcreech5b0a9eb2008-03-09 01:38:09 +000010595choke me
drh866108f2008-05-13 00:57:21 +000010596#else
10597char (*f) () = $ac_func;
10598#endif
10599#ifdef __cplusplus
10600}
mlcreech5b0a9eb2008-03-09 01:38:09 +000010601#endif
10602
10603int
10604main ()
10605{
drh866108f2008-05-13 00:57:21 +000010606return f != $ac_func;
mlcreech5b0a9eb2008-03-09 01:38:09 +000010607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +000010612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest$ac_exeext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000010633 eval "$as_ac_var=yes"
10634else
drh866108f2008-05-13 00:57:21 +000010635 echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000010636sed 's/^/| /' conftest.$ac_ext >&5
10637
drh866108f2008-05-13 00:57:21 +000010638eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000010639fi
drh866108f2008-05-13 00:57:21 +000010640rm -f conftest.err conftest.$ac_objext \
mlcreech5b0a9eb2008-03-09 01:38:09 +000010641 conftest$ac_exeext conftest.$ac_ext
10642fi
drh866108f2008-05-13 00:57:21 +000010643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10645if test `eval echo '${'$as_ac_var'}'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000010646 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +000010647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010648_ACEOF
10649
10650fi
10651done
10652
10653
mlcreechab1c47b2008-03-09 02:51:10 +000010654#########
mlcreechf3868112008-03-11 18:03:30 +000010655# By default, we use the amalgamation (this may be changed below...)
10656#
10657USE_AMALGAMATION=1
10658
10659#########
mlcreechab1c47b2008-03-09 02:51:10 +000010660# See whether we can run specific tclsh versions known to work well;
10661# if not, then we fall back to plain tclsh.
10662# TODO: try other versions before falling back?
10663#
10664for ac_prog in tclsh8.4 tclsh
10665do
10666 # Extract the first word of "$ac_prog", so it can be a program name with args.
10667set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +000010668echo "$as_me:$LINENO: checking for $ac_word" >&5
10669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010670if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010671 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010672else
10673 if test -n "$TCLSH_CMD"; then
10674 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10675else
10676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677for as_dir in $PATH
10678do
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
10681 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +000010682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010683 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh866108f2008-05-13 00:57:21 +000010684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010685 break 2
10686 fi
10687done
10688done
mlcreechab1c47b2008-03-09 02:51:10 +000010689
10690fi
10691fi
10692TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10693if test -n "$TCLSH_CMD"; then
drh866108f2008-05-13 00:57:21 +000010694 echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
10695echo "${ECHO_T}$TCLSH_CMD" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010696else
drh866108f2008-05-13 00:57:21 +000010697 echo "$as_me:$LINENO: result: no" >&5
10698echo "${ECHO_T}no" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010699fi
10700
mlcreechab1c47b2008-03-09 02:51:10 +000010701 test -n "$TCLSH_CMD" && break
10702done
mlcreechf3868112008-03-11 18:03:30 +000010703test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010704
mlcreechf3868112008-03-11 18:03:30 +000010705if test "$TCLSH_CMD" = "none"; then
10706 # If we can't find a local tclsh, then building the amalgamation will fail.
10707 # We act as though --disable-amalgamation has been used.
10708 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10709 USE_AMALGAMATION=0
10710 TCLSH_CMD="tclsh"
10711fi
mlcreechab1c47b2008-03-09 02:51:10 +000010712
10713
mlcreech5b0a9eb2008-03-09 01:38:09 +000010714
10715#########
drh75897232000-05-29 14:26:00 +000010716# Set up an appropriate program prefix
10717#
10718if test "$program_prefix" = "NONE"; then
10719 program_prefix=""
10720fi
10721
a.rottmann84e63352003-03-24 09:42:16 +000010722
drh4b2266a2004-11-27 15:52:16 +000010723VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10724echo "Version set to $VERSION"
10725
10726RELEASE=`cat $srcdir/VERSION`
10727echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000010728
danielk197799ba19e2005-02-05 07:33:34 +000010729VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010730 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010731 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000010732echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000010733
drh26d0e2a2005-07-06 13:51:27 +000010734
drh75897232000-05-29 14:26:00 +000010735#########
10736# Check to see if the --with-hints=FILE option is used. If there is none,
10737# then check for a files named "$host.hints" and ../$hosts.hints where
10738# $host is the hostname of the build system. If still no hints are
10739# found, try looking in $system.hints and ../$system.hints where
10740# $system is the result of uname -s.
10741#
drh71eb93e2001-09-28 01:34:43 +000010742
drh866108f2008-05-13 00:57:21 +000010743# Check whether --with-hints or --without-hints was given.
drh75897232000-05-29 14:26:00 +000010744if test "${with_hints+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010745 withval="$with_hints"
10746 hints=$withval
10747fi;
drh75897232000-05-29 14:26:00 +000010748if test "$hints" = ""; then
10749 host=`hostname | sed 's/\..*//'`
10750 if test -r $host.hints; then
10751 hints=$host.hints
10752 else
10753 if test -r ../$host.hints; then
10754 hints=../$host.hints
10755 fi
10756 fi
10757fi
10758if test "$hints" = ""; then
10759 sys=`uname -s`
10760 if test -r $sys.hints; then
10761 hints=$sys.hints
10762 else
10763 if test -r ../$sys.hints; then
10764 hints=../$sys.hints
10765 fi
10766 fi
10767fi
10768if test "$hints" != ""; then
drh866108f2008-05-13 00:57:21 +000010769 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
10770echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000010771 . $hints
10772fi
10773
10774#########
10775# Locate a compiler for the build machine. This compiler should
10776# generate command-line programs that run on the build machine.
10777#
vapier7f19c022007-02-17 14:46:31 +000010778if test x"$cross_compiling" = xno; then
10779 BUILD_CC=$CC
10780 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010781else
vapier7f19c022007-02-17 14:46:31 +000010782 if test "${BUILD_CC+set}" != set; then
10783 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010784do
10785 # Extract the first word of "$ac_prog", so it can be a program name with args.
10786set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +000010787echo "$as_me:$LINENO: checking for $ac_word" >&5
10788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000010789if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010790 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000010791else
vapier7f19c022007-02-17 14:46:31 +000010792 if test -n "$BUILD_CC"; then
10793 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010794else
a.rottmann84e63352003-03-24 09:42:16 +000010795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +000010801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010802 ac_cv_prog_BUILD_CC="$ac_prog"
drh866108f2008-05-13 00:57:21 +000010803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010804 break 2
10805 fi
10806done
drh71eb93e2001-09-28 01:34:43 +000010807done
drh75897232000-05-29 14:26:00 +000010808
drh71eb93e2001-09-28 01:34:43 +000010809fi
10810fi
vapier7f19c022007-02-17 14:46:31 +000010811BUILD_CC=$ac_cv_prog_BUILD_CC
10812if test -n "$BUILD_CC"; then
drh866108f2008-05-13 00:57:21 +000010813 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10814echo "${ECHO_T}$BUILD_CC" >&6
drh71eb93e2001-09-28 01:34:43 +000010815else
drh866108f2008-05-13 00:57:21 +000010816 echo "$as_me:$LINENO: result: no" >&5
10817echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +000010818fi
drh75897232000-05-29 14:26:00 +000010819
vapier7f19c022007-02-17 14:46:31 +000010820 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010821done
drh75897232000-05-29 14:26:00 +000010822
vapier7f19c022007-02-17 14:46:31 +000010823 fi
10824 if test "${BUILD_CFLAGS+set}" != set; then
10825 BUILD_CFLAGS="-g"
10826 fi
drh71eb93e2001-09-28 01:34:43 +000010827fi
10828
a.rottmann84e63352003-03-24 09:42:16 +000010829
drh297ecf12001-04-05 15:57:13 +000010830##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010831# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010832#
drh866108f2008-05-13 00:57:21 +000010833# Check whether --enable-threadsafe or --disable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000010834if test "${enable_threadsafe+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010835 enableval="$enable_threadsafe"
10836
drh297ecf12001-04-05 15:57:13 +000010837else
drh5a3032b2007-09-03 16:12:09 +000010838 enable_threadsafe=yes
drh866108f2008-05-13 00:57:21 +000010839fi;
10840echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
10841echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000010842if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010843 SQLITE_THREADSAFE=0
drh866108f2008-05-13 00:57:21 +000010844 echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000010846else
drh5a3032b2007-09-03 16:12:09 +000010847 SQLITE_THREADSAFE=1
drh866108f2008-05-13 00:57:21 +000010848 echo "$as_me:$LINENO: result: yes" >&5
10849echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000010850fi
10851
a.rottmann964dbb12004-02-26 19:47:42 +000010852
drh5a3032b2007-09-03 16:12:09 +000010853if test "$SQLITE_THREADSAFE" = "1"; then
drh866108f2008-05-13 00:57:21 +000010854 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
10855echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6
mlcreechc658b0f2008-03-09 02:20:11 +000010856if test "${ac_cv_search_pthread_create+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010857 echo $ECHO_N "(cached) $ECHO_C" >&6
dougcurrie65623c72004-09-20 14:57:23 +000010858else
mlcreechc658b0f2008-03-09 02:20:11 +000010859 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000010860ac_cv_search_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000010861cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
10867
drh866108f2008-05-13 00:57:21 +000010868/* Override any gcc2 internal prototype to avoid an error. */
dougcurrie65623c72004-09-20 14:57:23 +000010869#ifdef __cplusplus
10870extern "C"
10871#endif
drh866108f2008-05-13 00:57:21 +000010872/* We use char because int might match the return type of a gcc2
10873 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010874char pthread_create ();
10875int
10876main ()
10877{
drh866108f2008-05-13 00:57:21 +000010878pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010879 ;
10880 return 0;
10881}
10882_ACEOF
drh866108f2008-05-13 00:57:21 +000010883rm -f conftest.$ac_objext conftest$ac_exeext
10884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885 (eval $ac_link) 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000010886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -z "$ac_c_werror_flag"
10893 || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_cv_search_pthread_create="none required"
dougcurrie65623c72004-09-20 14:57:23 +000010906else
drh866108f2008-05-13 00:57:21 +000010907 echo "$as_me: failed program was:" >&5
dougcurrie65623c72004-09-20 14:57:23 +000010908sed 's/^/| /' conftest.$ac_ext >&5
10909
dougcurrie65623c72004-09-20 14:57:23 +000010910fi
drh866108f2008-05-13 00:57:21 +000010911rm -f conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913if test "$ac_cv_search_pthread_create" = no; then
10914 for ac_lib in pthread; do
10915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10916 cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h. */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000010922
drh866108f2008-05-13 00:57:21 +000010923/* Override any gcc2 internal prototype to avoid an error. */
10924#ifdef __cplusplus
10925extern "C"
10926#endif
10927/* We use char because int might match the return type of a gcc2
10928 builtin and then its argument prototype would still apply. */
10929char pthread_create ();
10930int
10931main ()
10932{
10933pthread_create ();
10934 ;
10935 return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext conftest$ac_exeext
10939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940 (eval $ac_link) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag"
10948 || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_cv_search_pthread_create="-l$ac_lib"
10961break
dougcurrie65623c72004-09-20 14:57:23 +000010962else
drh866108f2008-05-13 00:57:21 +000010963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
mlcreechc658b0f2008-03-09 02:20:11 +000010966fi
drh866108f2008-05-13 00:57:21 +000010967rm -f conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 done
10970fi
mlcreechc658b0f2008-03-09 02:20:11 +000010971LIBS=$ac_func_search_save_LIBS
10972fi
drh866108f2008-05-13 00:57:21 +000010973echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
10974echo "${ECHO_T}$ac_cv_search_pthread_create" >&6
10975if test "$ac_cv_search_pthread_create" != no; then
10976 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010977
dougcurrie65623c72004-09-20 14:57:23 +000010978fi
10979
mlcreechc658b0f2008-03-09 02:20:11 +000010980fi
dougcurrie65623c72004-09-20 14:57:23 +000010981
xdong28f79f72003-09-23 00:35:21 +000010982##########
drh91636d52005-11-24 23:14:00 +000010983# Do we want to allow a connection created in one thread to be used
10984# in another thread. This does not work on many Linux systems (ex: RedHat 9)
10985# due to bugs in the threading implementations. This is thus off by default.
10986#
drh866108f2008-05-13 00:57:21 +000010987# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000010988if test "${enable_cross_thread_connections+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010989 enableval="$enable_cross_thread_connections"
10990
drh91636d52005-11-24 23:14:00 +000010991else
10992 enable_xthreadconnect=no
drh866108f2008-05-13 00:57:21 +000010993fi;
10994echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
10995echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
drh91636d52005-11-24 23:14:00 +000010996if test "$enable_xthreadconnect" = "no"; then
10997 XTHREADCONNECT=''
drh866108f2008-05-13 00:57:21 +000010998 echo "$as_me:$LINENO: result: no" >&5
10999echo "${ECHO_T}no" >&6
drh91636d52005-11-24 23:14:00 +000011000else
11001 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh866108f2008-05-13 00:57:21 +000011002 echo "$as_me:$LINENO: result: yes" >&5
11003echo "${ECHO_T}yes" >&6
drh91636d52005-11-24 23:14:00 +000011004fi
11005
11006
11007##########
drh8e2e2a12006-02-01 01:55:17 +000011008# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
11009# default. Normally, a test at runtime is performed to determine the
11010# appropriate value of this variable. Use this option only if you're sure that
11011# threads can safely override each others locks in all runtime situations.
11012#
drh866108f2008-05-13 00:57:21 +000011013# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000011014if test "${enable_threads_override_locks+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011015 enableval="$enable_threads_override_locks"
11016
drh8e2e2a12006-02-01 01:55:17 +000011017else
11018 enable_threads_override_locks=no
drh866108f2008-05-13 00:57:21 +000011019fi;
11020echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
11021echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
drh8e2e2a12006-02-01 01:55:17 +000011022if test "$enable_threads_override_locks" = "no"; then
11023 THREADSOVERRIDELOCKS='-1'
drh866108f2008-05-13 00:57:21 +000011024 echo "$as_me:$LINENO: result: no" >&5
11025echo "${ECHO_T}no" >&6
drh8e2e2a12006-02-01 01:55:17 +000011026else
11027 THREADSOVERRIDELOCKS='1'
drh866108f2008-05-13 00:57:21 +000011028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
drh8e2e2a12006-02-01 01:55:17 +000011030fi
11031
11032
11033##########
xdong28f79f72003-09-23 00:35:21 +000011034# Do we want to support release
11035#
drh866108f2008-05-13 00:57:21 +000011036# Check whether --enable-releasemode or --disable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000011037if test "${enable_releasemode+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011038 enableval="$enable_releasemode"
11039
xdong28f79f72003-09-23 00:35:21 +000011040else
11041 enable_releasemode=no
drh866108f2008-05-13 00:57:21 +000011042fi;
11043echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
11044echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011045if test "$enable_releasemode" = "no"; then
11046 ALLOWRELEASE=""
drh866108f2008-05-13 00:57:21 +000011047 echo "$as_me:$LINENO: result: no" >&5
11048echo "${ECHO_T}no" >&6
xdong28f79f72003-09-23 00:35:21 +000011049else
drh0b47d342007-11-27 14:50:06 +000011050 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh866108f2008-05-13 00:57:21 +000011051 echo "$as_me:$LINENO: result: yes" >&5
11052echo "${ECHO_T}yes" >&6
xdong28f79f72003-09-23 00:35:21 +000011053fi
paulb0208cc2003-04-13 18:26:49 +000011054
a.rottmann964dbb12004-02-26 19:47:42 +000011055
paulb0208cc2003-04-13 18:26:49 +000011056##########
11057# Do we want temporary databases in memory
11058#
drh866108f2008-05-13 00:57:21 +000011059# Check whether --enable-tempstore or --disable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000011060if test "${enable_tempstore+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011061 enableval="$enable_tempstore"
11062
paulb0208cc2003-04-13 18:26:49 +000011063else
drh54414bb2005-10-10 00:05:50 +000011064 enable_tempstore=no
drh866108f2008-05-13 00:57:21 +000011065fi;
11066echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
11067echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000011068case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000011069 never )
paul2dc96f92003-04-20 11:46:34 +000011070 TEMP_STORE=0
drh866108f2008-05-13 00:57:21 +000011071 echo "$as_me:$LINENO: result: never" >&5
11072echo "${ECHO_T}never" >&6
paulb0208cc2003-04-13 18:26:49 +000011073 ;;
11074 no )
paul2dc96f92003-04-20 11:46:34 +000011075 TEMP_STORE=1
drh866108f2008-05-13 00:57:21 +000011076 echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000011078 ;;
11079 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000011080 TEMP_STORE=3
drh866108f2008-05-13 00:57:21 +000011081 echo "$as_me:$LINENO: result: always" >&5
11082echo "${ECHO_T}always" >&6
paulb0208cc2003-04-13 18:26:49 +000011083 ;;
drh54414bb2005-10-10 00:05:50 +000011084 yes )
11085 TEMP_STORE=3
drh866108f2008-05-13 00:57:21 +000011086 echo "$as_me:$LINENO: result: always" >&5
11087echo "${ECHO_T}always" >&6
drh54414bb2005-10-10 00:05:50 +000011088 ;;
paulb0208cc2003-04-13 18:26:49 +000011089 * )
drh54414bb2005-10-10 00:05:50 +000011090 TEMP_STORE=1
drh866108f2008-05-13 00:57:21 +000011091 echo "$as_me:$LINENO: result: yes" >&5
11092echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000011093 ;;
11094esac
11095
11096
11097
drh75897232000-05-29 14:26:00 +000011098###########
11099# Lots of things are different if we are compiling for Windows using
11100# the CYGWIN environment. So check for that special case and handle
11101# things accordingly.
11102#
drh866108f2008-05-13 00:57:21 +000011103echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
11104echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000011105if test "$config_BUILD_EXEEXT" = ".exe"; then
11106 CYGWIN=yes
drh866108f2008-05-13 00:57:21 +000011107 echo "$as_me:$LINENO: result: yes" >&5
11108echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000011109else
drh866108f2008-05-13 00:57:21 +000011110 echo "$as_me:$LINENO: result: unknown" >&5
11111echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000011112fi
11113if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000011114
11115case $host_os in
drh71eb93e2001-09-28 01:34:43 +000011116 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000011117 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000011118esac
drh75897232000-05-29 14:26:00 +000011119
drh75897232000-05-29 14:26:00 +000011120fi
11121if test "$CYGWIN" = "yes"; then
11122 BUILD_EXEEXT=.exe
11123else
dougcurrie6194a5f2003-12-19 20:09:51 +000011124 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000011125fi
vapier7f19c022007-02-17 14:46:31 +000011126if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000011127 TARGET_EXEEXT=$BUILD_EXEEXT
11128else
11129 TARGET_EXEEXT=$config_TARGET_EXEEXT
11130fi
11131if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000011132 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000011133 SQLITE_OS_UNIX=0
11134 SQLITE_OS_WIN=0
11135 SQLITE_OS_OS2=1
11136 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
mlcreech57ee0522008-04-14 22:57:55 +000011137 if test "$ac_compiler_gnu" = "yes" ; then
mlcreech8390bc32008-03-06 08:54:38 +000011138 CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
drh60a1e4b2006-06-03 18:02:15 +000011139 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
11140 fi
11141 else
danielk197729bafea2008-06-26 10:41:19 +000011142 SQLITE_OS_UNIX=0
11143 SQLITE_OS_WIN=1
11144 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000011145 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000011146 fi
drh75897232000-05-29 14:26:00 +000011147else
danielk197729bafea2008-06-26 10:41:19 +000011148 SQLITE_OS_UNIX=1
11149 SQLITE_OS_WIN=0
11150 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000011151 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000011152fi
drh75897232000-05-29 14:26:00 +000011153
a.rottmann84e63352003-03-24 09:42:16 +000011154
11155
11156
11157
11158
drh75897232000-05-29 14:26:00 +000011159
drh75897232000-05-29 14:26:00 +000011160##########
drh7b5717e2004-11-25 13:50:01 +000011161# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000011162#
drh7b5717e2004-11-25 13:50:01 +000011163# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
11164# macros in the in the tcl.m4 file of the standard TCL distribution.
11165# Those macros could not be used directly since we have to make some
11166# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000011167#
drh866108f2008-05-13 00:57:21 +000011168# Check whether --enable-tcl or --disable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000011169if test "${enable_tcl+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011170 enableval="$enable_tcl"
11171 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000011172else
drh7b5717e2004-11-25 13:50:01 +000011173 use_tcl=yes
drh866108f2008-05-13 00:57:21 +000011174fi;
drh7b5717e2004-11-25 13:50:01 +000011175if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000011176
drh866108f2008-05-13 00:57:21 +000011177# Check whether --with-tcl or --without-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000011178if test "${with_tcl+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011179 withval="$with_tcl"
11180 with_tclconfig=${withval}
11181fi;
11182 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
11183echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000011184 if test "${ac_cv_c_tclconfig+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011185 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011186else
a.rottmann84e63352003-03-24 09:42:16 +000011187
drh7b5717e2004-11-25 13:50:01 +000011188 # First check to see if --with-tcl was specified.
11189 if test x"${with_tclconfig}" != x ; then
11190 if test -f "${with_tclconfig}/tclConfig.sh" ; then
11191 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
11192 else
drh866108f2008-05-13 00:57:21 +000011193 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
11194echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000011195 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000011196 fi
11197 fi
11198 # then check for a private Tcl installation
11199 if test x"${ac_cv_c_tclconfig}" = x ; then
11200 for i in \
11201 ../tcl \
11202 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11203 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
11204 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
11205 ../../tcl \
11206 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11207 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
11208 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
11209 ../../../tcl \
11210 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11211 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
11212 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
11213 do
11214 if test -f "$i/unix/tclConfig.sh" ; then
11215 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11216 break
11217 fi
11218 done
11219 fi
11220
11221 # check in a few common install locations
11222 if test x"${ac_cv_c_tclconfig}" = x ; then
11223 for i in \
11224 `ls -d ${libdir} 2>/dev/null` \
11225 `ls -d /usr/local/lib 2>/dev/null` \
11226 `ls -d /usr/contrib/lib 2>/dev/null` \
11227 `ls -d /usr/lib 2>/dev/null`
11228 do
11229 if test -f "$i/tclConfig.sh" ; then
11230 ac_cv_c_tclconfig=`(cd $i; pwd)`
11231 break
11232 fi
11233 done
11234 fi
11235
11236 # check in a few other private locations
11237 if test x"${ac_cv_c_tclconfig}" = x ; then
11238 for i in \
11239 ${srcdir}/../tcl \
11240 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11241 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
11242 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
11243 do
11244 if test -f "$i/unix/tclConfig.sh" ; then
11245 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11246 break
11247 fi
11248 done
11249 fi
11250
drh75897232000-05-29 14:26:00 +000011251fi
11252
drh7b5717e2004-11-25 13:50:01 +000011253
11254 if test x"${ac_cv_c_tclconfig}" = x ; then
11255 use_tcl=no
drh866108f2008-05-13 00:57:21 +000011256 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
11257echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
11259echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
11261echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000011262 else
11263 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh866108f2008-05-13 00:57:21 +000011264 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
11265echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
drh7b5717e2004-11-25 13:50:01 +000011266
drh866108f2008-05-13 00:57:21 +000011267 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
11268echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000011269 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh866108f2008-05-13 00:57:21 +000011270 echo "$as_me:$LINENO: result: loading" >&5
11271echo "${ECHO_T}loading" >&6
drh7b5717e2004-11-25 13:50:01 +000011272 . $TCL_BIN_DIR/tclConfig.sh
11273 else
drh866108f2008-05-13 00:57:21 +000011274 echo "$as_me:$LINENO: result: file not found" >&5
11275echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000011276 fi
drh7b5717e2004-11-25 13:50:01 +000011277
11278 #
11279 # If the TCL_BIN_DIR is the build directory (not the install directory),
11280 # then set the common variable name to the value of the build variables.
11281 # For example, the variable TCL_LIB_SPEC will be set to the value
11282 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
11283 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
11284 # installed and uninstalled version of Tcl.
11285 #
11286
mlcreechab1c47b2008-03-09 02:51:10 +000011287 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000011288 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
11289 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
11290 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
11291 fi
11292
11293 #
11294 # eval is required to do the TCL_DBGX substitution
11295 #
11296
11297 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
11298 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
11299 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
11300
11301 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
11302 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
11303 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318 fi
drh75897232000-05-29 14:26:00 +000011319fi
drh7b5717e2004-11-25 13:50:01 +000011320if test "${use_tcl}" = "no" ; then
11321 HAVE_TCL=""
11322else
11323 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000011324fi
drh75897232000-05-29 14:26:00 +000011325
a.rottmann84e63352003-03-24 09:42:16 +000011326
drh75897232000-05-29 14:26:00 +000011327##########
11328# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000011329# that use "readline()" library.
11330#
vapier7f19c022007-02-17 14:46:31 +000011331TARGET_READLINE_LIBS=""
11332TARGET_READLINE_INC=""
11333TARGET_HAVE_READLINE=0
drh866108f2008-05-13 00:57:21 +000011334# Check whether --enable-readline or --disable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000011335if test "${enable_readline+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011336 enableval="$enable_readline"
11337 with_readline=$enableval
drh75897232000-05-29 14:26:00 +000011338else
vapier7f19c022007-02-17 14:46:31 +000011339 with_readline=auto
drh866108f2008-05-13 00:57:21 +000011340fi;
vapier7f19c022007-02-17 14:46:31 +000011341
11342if test x"$with_readline" != xno; then
11343 found="yes"
11344
11345
drh866108f2008-05-13 00:57:21 +000011346# Check whether --with-readline-lib or --without-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000011347if test "${with_readline_lib+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011348 withval="$with_readline_lib"
11349 with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011350else
11351 with_readline_lib="auto"
drh866108f2008-05-13 00:57:21 +000011352fi;
vapier7f19c022007-02-17 14:46:31 +000011353 if test "x$with_readline_lib" = xauto; then
11354 save_LIBS="$LIBS"
11355 LIBS=""
drh866108f2008-05-13 00:57:21 +000011356 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
11357echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011358if test "${ac_cv_search_tgetent+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011359 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000011360else
drh71eb93e2001-09-28 01:34:43 +000011361 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000011362ac_cv_search_tgetent=no
paul38372372003-04-22 08:04:49 +000011363cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000011364/* confdefs.h. */
11365_ACEOF
11366cat confdefs.h >>conftest.$ac_ext
11367cat >>conftest.$ac_ext <<_ACEOF
11368/* end confdefs.h. */
11369
drh866108f2008-05-13 00:57:21 +000011370/* Override any gcc2 internal prototype to avoid an error. */
paul38372372003-04-22 08:04:49 +000011371#ifdef __cplusplus
11372extern "C"
11373#endif
drh866108f2008-05-13 00:57:21 +000011374/* We use char because int might match the return type of a gcc2
11375 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011376char tgetent ();
11377int
11378main ()
11379{
drh866108f2008-05-13 00:57:21 +000011380tgetent ();
paul38372372003-04-22 08:04:49 +000011381 ;
11382 return 0;
11383}
11384_ACEOF
drh866108f2008-05-13 00:57:21 +000011385rm -f conftest.$ac_objext conftest$ac_exeext
11386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387 (eval $ac_link) 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000011388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_search_tgetent="none required"
vapier7f19c022007-02-17 14:46:31 +000011408else
drh866108f2008-05-13 00:57:21 +000011409 echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000011410sed 's/^/| /' conftest.$ac_ext >&5
11411
vapier7f19c022007-02-17 14:46:31 +000011412fi
drh866108f2008-05-13 00:57:21 +000011413rm -f conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415if test "$ac_cv_search_tgetent" = no; then
11416 for ac_lib in readline ncurses curses termcap; do
11417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11418 cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011424
drh866108f2008-05-13 00:57:21 +000011425/* Override any gcc2 internal prototype to avoid an error. */
11426#ifdef __cplusplus
11427extern "C"
11428#endif
11429/* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431char tgetent ();
11432int
11433main ()
11434{
11435tgetent ();
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440rm -f conftest.$ac_objext conftest$ac_exeext
11441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442 (eval $ac_link) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag"
11450 || test ! -s conftest.err'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_search_tgetent="-l$ac_lib"
11463break
mlcreech94984912008-03-04 19:03:08 +000011464else
drh866108f2008-05-13 00:57:21 +000011465 echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
mlcreech94984912008-03-04 19:03:08 +000011468fi
drh866108f2008-05-13 00:57:21 +000011469rm -f conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471 done
11472fi
paul38372372003-04-22 08:04:49 +000011473LIBS=$ac_func_search_save_LIBS
11474fi
drh866108f2008-05-13 00:57:21 +000011475echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
11476echo "${ECHO_T}$ac_cv_search_tgetent" >&6
11477if test "$ac_cv_search_tgetent" != no; then
11478 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011479 term_LIBS="$LIBS"
11480else
11481 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011482fi
11483
drh866108f2008-05-13 00:57:21 +000011484 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
11485echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011486if test "${ac_cv_lib_readline_readline+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011487 echo $ECHO_N "(cached) $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011488else
11489 ac_check_lib_save_LIBS=$LIBS
11490LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000011491cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011497
drh866108f2008-05-13 00:57:21 +000011498/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000011499#ifdef __cplusplus
11500extern "C"
11501#endif
drh866108f2008-05-13 00:57:21 +000011502/* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011504char readline ();
11505int
11506main ()
11507{
drh866108f2008-05-13 00:57:21 +000011508readline ();
drh71eb93e2001-09-28 01:34:43 +000011509 ;
11510 return 0;
11511}
11512_ACEOF
11513rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +000011514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000011516 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000011517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000011535 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011536else
drh866108f2008-05-13 00:57:21 +000011537 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011538sed 's/^/| /' conftest.$ac_ext >&5
11539
drh866108f2008-05-13 00:57:21 +000011540ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011541fi
drh866108f2008-05-13 00:57:21 +000011542rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +000011543 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011544LIBS=$ac_check_lib_save_LIBS
11545fi
drh866108f2008-05-13 00:57:21 +000011546echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
11547echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
paul38372372003-04-22 08:04:49 +000011548if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000011549 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011550else
vapier7f19c022007-02-17 14:46:31 +000011551 found="no"
11552fi
drhf1878b42006-01-23 18:06:52 +000011553
vapier7f19c022007-02-17 14:46:31 +000011554 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11555 LIBS="$save_LIBS"
11556 else
11557 TARGET_READLINE_LIBS="$with_readline_lib"
11558 fi
11559
11560
drh866108f2008-05-13 00:57:21 +000011561# Check whether --with-readline-inc or --without-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000011562if test "${with_readline_inc+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011563 withval="$with_readline_inc"
11564 with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011565else
vapier7f19c022007-02-17 14:46:31 +000011566 with_readline_inc="auto"
drh866108f2008-05-13 00:57:21 +000011567fi;
vapier7f19c022007-02-17 14:46:31 +000011568 if test "x$with_readline_inc" = xauto; then
11569 if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011570 echo "$as_me:$LINENO: checking for readline.h" >&5
11571echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000011572if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011573 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011574fi
drh866108f2008-05-13 00:57:21 +000011575echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11576echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000011577else
a.rottmann84e63352003-03-24 09:42:16 +000011578 # Is the header compilable?
drh866108f2008-05-13 00:57:21 +000011579echo "$as_me:$LINENO: checking readline.h usability" >&5
11580echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011581cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587$ac_includes_default
drh75897232000-05-29 14:26:00 +000011588#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000011589_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011590rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000011591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000011593 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000011594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_c_werror_flag"
11600 || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest.$ac_objext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +000011612 ac_header_compiler=yes
11613else
drh866108f2008-05-13 00:57:21 +000011614 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011615sed 's/^/| /' conftest.$ac_ext >&5
11616
drh866108f2008-05-13 00:57:21 +000011617ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000011618fi
drh866108f2008-05-13 00:57:21 +000011619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11621echo "${ECHO_T}$ac_header_compiler" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011622
11623# Is the header present?
drh866108f2008-05-13 00:57:21 +000011624echo "$as_me:$LINENO: checking readline.h presence" >&5
11625echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011626cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
11632#include <readline.h>
11633_ACEOF
drh866108f2008-05-13 00:57:21 +000011634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000011636 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000011637 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000011638 rm -f conftest.er1
11639 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } >/dev/null; then
11642 if test -s conftest.err; then
11643 ac_cpp_err=$ac_c_preproc_warn_flag
11644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11645 else
11646 ac_cpp_err=
11647 fi
11648else
11649 ac_cpp_err=yes
11650fi
11651if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000011652 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000011653else
drh866108f2008-05-13 00:57:21 +000011654 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000011658fi
drh71eb93e2001-09-28 01:34:43 +000011659rm -f conftest.err conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +000011660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11661echo "${ECHO_T}$ac_header_preproc" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011662
11663# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000011664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11665 yes:no: )
drh866108f2008-05-13 00:57:21 +000011666 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
11667echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11668 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
11669echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000011670 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000011671 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000011672 no:yes:* )
drh866108f2008-05-13 00:57:21 +000011673 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
11674echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
11675 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
11676echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
11677 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
11678echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
11679 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
11680echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
11681 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
11682echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
11683 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
11684echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
11685 (
11686 cat <<\_ASBOX
11687## --------------------------------- ##
11688## Report this to the sqlite lists. ##
11689## --------------------------------- ##
11690_ASBOX
11691 ) |
11692 sed "s/^/$as_me: WARNING: /" >&2
a.rottmann84e63352003-03-24 09:42:16 +000011693 ;;
11694esac
drh866108f2008-05-13 00:57:21 +000011695echo "$as_me:$LINENO: checking for readline.h" >&5
11696echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011697if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011698 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011699else
11700 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000011701fi
drh866108f2008-05-13 00:57:21 +000011702echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11703echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011704
11705fi
drh71eb93e2001-09-28 01:34:43 +000011706if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000011707 found="yes"
11708else
drh75897232000-05-29 14:26:00 +000011709
vapier7f19c022007-02-17 14:46:31 +000011710 found="no"
11711 if test "$cross_compiling" != yes; then
11712 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11713 for subdir in include include/readline; do
drh866108f2008-05-13 00:57:21 +000011714 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11715echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
11716echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6
11717if eval "test \"\${$as_ac_File+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011719else
11720 test "$cross_compiling" = yes &&
drh866108f2008-05-13 00:57:21 +000011721 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11722echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000011723 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000011724if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011725 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011726else
drh71eb93e2001-09-28 01:34:43 +000011727 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011728fi
11729fi
drh866108f2008-05-13 00:57:21 +000011730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11731echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11732if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000011733 found=yes
drh75897232000-05-29 14:26:00 +000011734fi
11735
vapier7f19c022007-02-17 14:46:31 +000011736 if test "$found" = "yes"; then
11737 TARGET_READLINE_INC="-I$dir/$subdir"
11738 break
11739 fi
11740 done
11741 test "$found" = "yes" && break
11742 done
11743 fi
11744
11745fi
11746
11747
11748 else
11749 TARGET_READLINE_INC="$with_readline_inc"
11750 fi
11751
11752 if test x"$found" = xno; then
11753 TARGET_READLINE_LIBS=""
11754 TARGET_READLINE_INC=""
11755 TARGET_HAVE_READLINE=0
11756 else
11757 TARGET_HAVE_READLINE=1
11758 fi
11759fi
11760
11761
11762
11763
11764
11765##########
11766# Figure out what C libraries are required to compile programs
11767# that use "fdatasync()" function.
11768#
drh866108f2008-05-13 00:57:21 +000011769echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
11770echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000011771if test "${ac_cv_search_fdatasync+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011772 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011773else
vapier7f19c022007-02-17 14:46:31 +000011774 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000011775ac_cv_search_fdatasync=no
vapier7f19c022007-02-17 14:46:31 +000011776cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011782
drh866108f2008-05-13 00:57:21 +000011783/* Override any gcc2 internal prototype to avoid an error. */
vapier7f19c022007-02-17 14:46:31 +000011784#ifdef __cplusplus
11785extern "C"
11786#endif
drh866108f2008-05-13 00:57:21 +000011787/* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011789char fdatasync ();
11790int
11791main ()
11792{
drh866108f2008-05-13 00:57:21 +000011793fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011794 ;
11795 return 0;
11796}
11797_ACEOF
drh866108f2008-05-13 00:57:21 +000011798rm -f conftest.$ac_objext conftest$ac_exeext
11799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800 (eval $ac_link) 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000011801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag"
11808 || test ! -s conftest.err'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_search_fdatasync="none required"
vapier7f19c022007-02-17 14:46:31 +000011821else
drh866108f2008-05-13 00:57:21 +000011822 echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000011823sed 's/^/| /' conftest.$ac_ext >&5
11824
vapier7f19c022007-02-17 14:46:31 +000011825fi
drh866108f2008-05-13 00:57:21 +000011826rm -f conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828if test "$ac_cv_search_fdatasync" = no; then
11829 for ac_lib in rt; do
11830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011837
drh866108f2008-05-13 00:57:21 +000011838/* Override any gcc2 internal prototype to avoid an error. */
11839#ifdef __cplusplus
11840extern "C"
11841#endif
11842/* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11844char fdatasync ();
11845int
11846main ()
11847{
11848fdatasync ();
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext conftest$ac_exeext
11854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_search_fdatasync="-l$ac_lib"
11876break
mlcreech94984912008-03-04 19:03:08 +000011877else
drh866108f2008-05-13 00:57:21 +000011878 echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
mlcreech94984912008-03-04 19:03:08 +000011881fi
drh866108f2008-05-13 00:57:21 +000011882rm -f conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 done
11885fi
vapier7f19c022007-02-17 14:46:31 +000011886LIBS=$ac_func_search_save_LIBS
11887fi
drh866108f2008-05-13 00:57:21 +000011888echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
11889echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
11890if test "$ac_cv_search_fdatasync" != no; then
11891 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011892
vapier7f19c022007-02-17 14:46:31 +000011893fi
11894
a.rottmann84e63352003-03-24 09:42:16 +000011895
drh75897232000-05-29 14:26:00 +000011896#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011897# check for debug enabled
drh866108f2008-05-13 00:57:21 +000011898# Check whether --enable-debug or --disable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000011899if test "${enable_debug+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011900 enableval="$enable_debug"
11901 use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011902else
11903 use_debug=no
drh866108f2008-05-13 00:57:21 +000011904fi;
tpoindex9d9f76c2005-01-03 21:28:56 +000011905if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011906 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011907else
11908 TARGET_DEBUG="-DNDEBUG"
11909fi
11910
11911
11912#########
mlcreech94984912008-03-04 19:03:08 +000011913# See whether we should use the amalgamation to build
drh866108f2008-05-13 00:57:21 +000011914# Check whether --enable-amalgamation or --disable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000011915if test "${enable_amalgamation+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011916 enableval="$enable_amalgamation"
11917 use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011918else
11919 use_amalgamation=yes
drh866108f2008-05-13 00:57:21 +000011920fi;
mlcreechf3868112008-03-11 18:03:30 +000011921if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011922 USE_AMALGAMATION=0
11923fi
11924
11925
11926#########
mlcreecha4edab02008-03-06 04:14:17 +000011927# See whether we should allow loadable extensions
drh866108f2008-05-13 00:57:21 +000011928# Check whether --enable-load-extension or --disable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000011929if test "${enable_load_extension+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011930 enableval="$enable_load_extension"
11931 use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011932else
11933 use_loadextension=no
drh866108f2008-05-13 00:57:21 +000011934fi;
mlcreecha4edab02008-03-06 04:14:17 +000011935if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011936 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000011937else
shanefbedede2008-07-22 05:05:01 +000011938 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011939fi
11940
11941
mlcreechaac7b932008-04-01 02:45:22 +000011942#########
shanefbedede2008-07-22 05:05:01 +000011943# attempt to duplicate any OMITS into the $(OPT_FEATURE_FLAGS) parameter
11944for option in $CFLAGS $CPPFLAGS
11945do
11946 case $option in
11947 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS+=" $option";;
11948 esac
11949done
11950
11951
11952# attempt to remove any OMITS from the $(CFLAGS) parameter
11953ac_temp_CFLAGS=""
11954for option in $CFLAGS
11955do
11956 case $option in
11957 -DSQLITE_OMIT*) ;;
11958 *) ac_temp_CFLAGS+=" $option";;
11959 esac
11960done
11961CFLAGS=$ac_temp_CFLAGS
11962
11963
11964# attempt to remove any OMITS from the $(CPPFLAGS) parameter
11965ac_temp_CPPFLAGS=""
11966for option in $CPPFLAGS
11967do
11968 case $option in
11969 -DSQLITE_OMIT*) ;;
11970 *) ac_temp_CPPFLAGS+=" $option";;
11971 esac
11972done
11973CPPFLAGS=$ac_temp_CPPFLAGS
11974
11975# attempt to remove any OMITS from the $(BUILD_CFLAGS) parameter
11976ac_temp_BUILD_CFLAGS=""
11977for option in $BUILD_CFLAGS
11978do
11979 case $option in
11980 -DSQLITE_OMIT*) ;;
11981 *) ac_temp_BUILD_CFLAGS+=" $option";;
11982 esac
11983done
11984BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11985
11986
11987#########
11988# See whether we should use GCOV
drh866108f2008-05-13 00:57:21 +000011989# Check whether --enable-gcov or --disable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000011990if test "${enable_gcov+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011991 enableval="$enable_gcov"
11992 use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011993else
11994 use_gcov=no
drh866108f2008-05-13 00:57:21 +000011995fi;
mlcreechaac7b932008-04-01 02:45:22 +000011996if test "${use_gcov}" = "yes" ; then
11997 USE_GCOV=1
11998else
11999 USE_GCOV=0
12000fi
12001
12002
drh2dfbbca2000-07-28 14:32:48 +000012003#########
mlcreechb87057f2008-03-06 07:19:20 +000012004# Output the config header
drh866108f2008-05-13 00:57:21 +000012005 ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000012006
12007
12008#########
drh75897232000-05-29 14:26:00 +000012009# Generate the output files.
12010#
mlcreechdf59c7c2008-03-06 07:51:15 +000012011
drh866108f2008-05-13 00:57:21 +000012012 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000012013cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000012014# This file is a shell script that caches the results of configure
12015# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000012016# scripts and configure runs, see configure's option --config-cache.
12017# It is not useful on other systems. If it contains results you don't
12018# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000012019#
drh71eb93e2001-09-28 01:34:43 +000012020# config.status only pays attention to the cache file if you give it
12021# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000012022#
a.rottmann84e63352003-03-24 09:42:16 +000012023# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000012024# loading this file, other *unset* `ac_cv_foo' will be assigned the
12025# following values.
12026
12027_ACEOF
12028
drh75897232000-05-29 14:26:00 +000012029# The following way of writing the cache mishandles newlines in values,
12030# but we know of no workaround that is simple, portable, and efficient.
drh866108f2008-05-13 00:57:21 +000012031# So, don't put newlines in cache variables' values.
drh75897232000-05-29 14:26:00 +000012032# Ultrix sh set writes to stderr and can't be redirected directly,
12033# and sets the high bit in the cache file unless we assign to the vars.
drh866108f2008-05-13 00:57:21 +000012034{
drh71eb93e2001-09-28 01:34:43 +000012035 (set) 2>&1 |
drh866108f2008-05-13 00:57:21 +000012036 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12037 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000012038 # `set' does not quote correctly, so add quotes (double-quote
12039 # substitution turns \\\\ into \\, and sed turns \\ into \).
12040 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000012041 "s/'/'\\\\''/g;
12042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh866108f2008-05-13 00:57:21 +000012043 ;;
drh71eb93e2001-09-28 01:34:43 +000012044 *)
12045 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh866108f2008-05-13 00:57:21 +000012046 sed -n \
12047 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000012048 ;;
drh866108f2008-05-13 00:57:21 +000012049 esac;
12050} |
drh71eb93e2001-09-28 01:34:43 +000012051 sed '
12052 t clear
drh866108f2008-05-13 00:57:21 +000012053 : clear
drh71eb93e2001-09-28 01:34:43 +000012054 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12055 t end
drh866108f2008-05-13 00:57:21 +000012056 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12057 : end' >>confcache
12058if diff $cache_file confcache >/dev/null 2>&1; then :; else
12059 if test -w $cache_file; then
12060 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
drh71eb93e2001-09-28 01:34:43 +000012061 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000012062 else
drh866108f2008-05-13 00:57:21 +000012063 echo "not updating unwritable cache $cache_file"
drh75897232000-05-29 14:26:00 +000012064 fi
12065fi
12066rm -f confcache
12067
drh75897232000-05-29 14:26:00 +000012068test "x$prefix" = xNONE && prefix=$ac_default_prefix
12069# Let make expand exec_prefix.
12070test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12071
drh866108f2008-05-13 00:57:21 +000012072# VPATH may cause trouble with some makes, so we remove $(srcdir),
12073# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12074# trailing colons and then remove the whole line if VPATH becomes empty
12075# (actually we leave an empty line to preserve line numbers).
12076if test "x$srcdir" = x.; then
12077 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12078s/:*\$(srcdir):*/:/;
12079s/:*\${srcdir}:*/:/;
12080s/:*@srcdir@:*/:/;
12081s/^\([^=]*=[ ]*\):*/\1/;
12082s/:*$//;
12083s/^[^=]*=[ ]*$//;
12084}'
12085fi
12086
mlcreechb87057f2008-03-06 07:19:20 +000012087DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000012088
12089ac_libobjs=
12090ac_ltlibobjs=
12091for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12092 # 1. Remove the extension, and $U if already installed.
drh866108f2008-05-13 00:57:21 +000012093 ac_i=`echo "$ac_i" |
12094 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12095 # 2. Add them.
12096 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12097 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000012098done
12099LIBOBJS=$ac_libobjs
12100
12101LTLIBOBJS=$ac_ltlibobjs
12102
12103
12104
drh75897232000-05-29 14:26:00 +000012105: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000012106ac_clean_files_save=$ac_clean_files
12107ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh866108f2008-05-13 00:57:21 +000012108{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12109echo "$as_me: creating $CONFIG_STATUS" >&6;}
12110cat >$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012111#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000012112# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000012113# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000012114# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000012115# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000012116
drh71eb93e2001-09-28 01:34:43 +000012117debug=false
a.rottmann84e63352003-03-24 09:42:16 +000012118ac_cs_recheck=false
12119ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000012120SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000012121_ACEOF
drh75897232000-05-29 14:26:00 +000012122
drh866108f2008-05-13 00:57:21 +000012123cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012124## --------------------- ##
12125## M4sh Initialization. ##
12126## --------------------- ##
12127
drh866108f2008-05-13 00:57:21 +000012128# Be Bourne compatible
drh71eb93e2001-09-28 01:34:43 +000012129if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12130 emulate sh
12131 NULLCMD=:
drh866108f2008-05-13 00:57:21 +000012132 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000012133 # is contrary to our usage. Disable this feature.
12134 alias -g '${1+"$@"}'='"$@"'
drh866108f2008-05-13 00:57:21 +000012135elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12136 set -o posix
a.rottmann84e63352003-03-24 09:42:16 +000012137fi
drh866108f2008-05-13 00:57:21 +000012138DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000012139
mlcreech94984912008-03-04 19:03:08 +000012140# Support unset when possible.
12141if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12142 as_unset=unset
12143else
12144 as_unset=false
12145fi
a.rottmann84e63352003-03-24 09:42:16 +000012146
mlcreech94984912008-03-04 19:03:08 +000012147
mlcreech94984912008-03-04 19:03:08 +000012148# Work around bugs in pre-3.0 UWIN ksh.
drh866108f2008-05-13 00:57:21 +000012149$as_unset ENV MAIL MAILPATH
mlcreech94984912008-03-04 19:03:08 +000012150PS1='$ '
12151PS2='> '
12152PS4='+ '
12153
12154# NLS nuisances.
drh866108f2008-05-13 00:57:21 +000012155for as_var in \
12156 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12157 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12158 LC_TELEPHONE LC_TIME
12159do
12160 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12161 eval $as_var=C; export $as_var
12162 else
12163 $as_unset $as_var
12164 fi
12165done
mlcreech94984912008-03-04 19:03:08 +000012166
12167# Required to use basename.
drh866108f2008-05-13 00:57:21 +000012168if expr a : '\(a\)' >/dev/null 2>&1; then
mlcreech94984912008-03-04 19:03:08 +000012169 as_expr=expr
12170else
12171 as_expr=false
12172fi
12173
drh866108f2008-05-13 00:57:21 +000012174if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012175 as_basename=basename
12176else
12177 as_basename=false
12178fi
12179
12180
12181# Name of the executable.
drh866108f2008-05-13 00:57:21 +000012182as_me=`$as_basename "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012183$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12184 X"$0" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000012185 X"$0" : 'X\(/\)$' \| \
12186 . : '\(.\)' 2>/dev/null ||
12187echo X/"$0" |
12188 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12189 /^X\/\(\/\/\)$/{ s//\1/; q; }
12190 /^X\/\(\/\).*/{ s//\1/; q; }
12191 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012192
mlcreech94984912008-03-04 19:03:08 +000012193
drh866108f2008-05-13 00:57:21 +000012194# PATH needs CR, and LINENO needs CR and PATH.
12195# Avoid depending upon Character Ranges.
12196as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12197as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12198as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12199as_cr_digits='0123456789'
12200as_cr_alnum=$as_cr_Letters$as_cr_digits
12201
12202# The user is always right.
12203if test "${PATH_SEPARATOR+set}" != set; then
12204 echo "#! /bin/sh" >conf$$.sh
12205 echo "exit 0" >>conf$$.sh
12206 chmod +x conf$$.sh
12207 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12208 PATH_SEPARATOR=';'
12209 else
12210 PATH_SEPARATOR=:
12211 fi
12212 rm -f conf$$.sh
12213fi
mlcreech94984912008-03-04 19:03:08 +000012214
12215
a.rottmann84e63352003-03-24 09:42:16 +000012216 as_lineno_1=$LINENO
12217 as_lineno_2=$LINENO
drh866108f2008-05-13 00:57:21 +000012218 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
a.rottmann84e63352003-03-24 09:42:16 +000012219 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh866108f2008-05-13 00:57:21 +000012220 test "x$as_lineno_3" = "x$as_lineno_2" || {
12221 # Find who we are. Look in the path if we contain no path at all
12222 # relative or not.
12223 case $0 in
12224 *[\\/]* ) as_myself=$0 ;;
12225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226for as_dir in $PATH
12227do
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12231done
12232
12233 ;;
12234 esac
12235 # We did not find ourselves, most probably we were run as `sh COMMAND'
12236 # in which case we are not to be found in the path.
12237 if test "x$as_myself" = x; then
12238 as_myself=$0
12239 fi
12240 if test ! -f "$as_myself"; then
12241 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12242echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12243 { (exit 1); exit 1; }; }
12244 fi
12245 case $CONFIG_SHELL in
12246 '')
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12249do
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for as_base in sh bash ksh sh5; do
12253 case $as_dir in
12254 /*)
12255 if ("$as_dir/$as_base" -c '
12256 as_lineno_1=$LINENO
12257 as_lineno_2=$LINENO
12258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12259 test "x$as_lineno_1" != "x$as_lineno_2" &&
12260 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12261 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12262 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12263 CONFIG_SHELL=$as_dir/$as_base
12264 export CONFIG_SHELL
12265 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12266 fi;;
12267 esac
12268 done
12269done
12270;;
12271 esac
a.rottmann84e63352003-03-24 09:42:16 +000012272
12273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12274 # uniformly replaced by the line number. The first 'sed' inserts a
drh866108f2008-05-13 00:57:21 +000012275 # line-number line before each line; the second 'sed' does the real
12276 # work. The second script uses 'N' to pair each line-number line
12277 # with the numbered line, and appends trailing '-' during
12278 # substitution so that $LINENO is not a special case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000012279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh866108f2008-05-13 00:57:21 +000012280 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12281 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000012282 sed '
12283 N
drh866108f2008-05-13 00:57:21 +000012284 s,$,-,
12285 : loop
12286 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +000012287 t loop
drh866108f2008-05-13 00:57:21 +000012288 s,-$,,
12289 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +000012290 ' >$as_me.lineno &&
drh866108f2008-05-13 00:57:21 +000012291 chmod +x $as_me.lineno ||
12292 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12293echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000012294 { (exit 1); exit 1; }; }
12295
12296 # Don't try to exec as it changes $[0], causing all sort of problems
12297 # (the dirname of $[0] is not the place where we might find the
drh866108f2008-05-13 00:57:21 +000012298 # original and so on. Autoconf is especially sensible to this).
12299 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +000012300 # Exit status is that of the last command.
12301 exit
12302}
12303
12304
drh866108f2008-05-13 00:57:21 +000012305case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12306 *c*,-n*) ECHO_N= ECHO_C='
12307' ECHO_T=' ' ;;
12308 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12309 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
a.rottmann84e63352003-03-24 09:42:16 +000012310esac
drh866108f2008-05-13 00:57:21 +000012311
12312if expr a : '\(a\)' >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000012313 as_expr=expr
12314else
12315 as_expr=false
12316fi
12317
12318rm -f conf$$ conf$$.exe conf$$.file
drh866108f2008-05-13 00:57:21 +000012319echo >conf$$.file
12320if ln -s conf$$.file conf$$ 2>/dev/null; then
12321 # We could just check for DJGPP; but this test a) works b) is more generic
12322 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12323 if test -f conf$$.exe; then
12324 # Don't use ln at all; we don't have any links
drh71eb93e2001-09-28 01:34:43 +000012325 as_ln_s='cp -p'
drh866108f2008-05-13 00:57:21 +000012326 else
12327 as_ln_s='ln -s'
mlcreech636a9952008-05-05 22:52:56 +000012328 fi
drh866108f2008-05-13 00:57:21 +000012329elif ln conf$$.file conf$$ 2>/dev/null; then
12330 as_ln_s=ln
drh71eb93e2001-09-28 01:34:43 +000012331else
12332 as_ln_s='cp -p'
12333fi
drh866108f2008-05-13 00:57:21 +000012334rm -f conf$$ conf$$.exe conf$$.file
drh71eb93e2001-09-28 01:34:43 +000012335
a.rottmann84e63352003-03-24 09:42:16 +000012336if mkdir -p . 2>/dev/null; then
12337 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000012338else
a.rottmann964dbb12004-02-26 19:47:42 +000012339 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012340 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012341fi
12342
drh866108f2008-05-13 00:57:21 +000012343as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +000012344
12345# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012346as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012347
12348# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012349as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012350
drh71eb93e2001-09-28 01:34:43 +000012351
drh866108f2008-05-13 00:57:21 +000012352# IFS
12353# We need space, tab and new line, in precisely that order.
12354as_nl='
12355'
12356IFS=" $as_nl"
12357
12358# CDPATH.
12359$as_unset CDPATH
12360
drh71eb93e2001-09-28 01:34:43 +000012361exec 6>&1
12362
drh866108f2008-05-13 00:57:21 +000012363# Open the log real soon, to keep \$[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012364# report actual input values of CONFIG_FILES etc. instead of their
drh866108f2008-05-13 00:57:21 +000012365# values after options handling. Logging --version etc. is OK.
12366exec 5>>config.log
12367{
12368 echo
12369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12370## Running $as_me. ##
12371_ASBOX
12372} >&5
12373cat >&5 <<_CSEOF
12374
danielk197729bafea2008-06-26 10:41:19 +000012375This file was extended by sqlite $as_me 3.6.0, which was
drh866108f2008-05-13 00:57:21 +000012376generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012377
12378 CONFIG_FILES = $CONFIG_FILES
12379 CONFIG_HEADERS = $CONFIG_HEADERS
12380 CONFIG_LINKS = $CONFIG_LINKS
12381 CONFIG_COMMANDS = $CONFIG_COMMANDS
12382 $ $0 $@
12383
drh866108f2008-05-13 00:57:21 +000012384_CSEOF
12385echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12386echo >&5
drh71eb93e2001-09-28 01:34:43 +000012387_ACEOF
12388
12389# Files that config.status was made for.
drh866108f2008-05-13 00:57:21 +000012390if test -n "$ac_config_files"; then
12391 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12392fi
drh71eb93e2001-09-28 01:34:43 +000012393
drh866108f2008-05-13 00:57:21 +000012394if test -n "$ac_config_headers"; then
12395 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12396fi
drh71eb93e2001-09-28 01:34:43 +000012397
drh866108f2008-05-13 00:57:21 +000012398if test -n "$ac_config_links"; then
12399 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12400fi
12401
12402if test -n "$ac_config_commands"; then
12403 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12404fi
12405
12406cat >>$CONFIG_STATUS <<\_ACEOF
12407
drh71eb93e2001-09-28 01:34:43 +000012408ac_cs_usage="\
12409\`$as_me' instantiates files from templates according to the
12410current configuration.
12411
12412Usage: $0 [OPTIONS] [FILE]...
12413
12414 -h, --help print this help, then exit
drh866108f2008-05-13 00:57:21 +000012415 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000012416 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012417 -d, --debug don't remove temporary files
12418 --recheck update $as_me by reconfiguring in the same conditions
12419 --file=FILE[:TEMPLATE]
drh866108f2008-05-13 00:57:21 +000012420 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000012421 --header=FILE[:TEMPLATE]
drh866108f2008-05-13 00:57:21 +000012422 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012423
12424Configuration files:
12425$config_files
12426
mlcreechb87057f2008-03-06 07:19:20 +000012427Configuration headers:
12428$config_headers
12429
mlcreech636a9952008-05-05 22:52:56 +000012430Configuration commands:
12431$config_commands
12432
drh71eb93e2001-09-28 01:34:43 +000012433Report bugs to <bug-autoconf@gnu.org>."
mlcreech94984912008-03-04 19:03:08 +000012434_ACEOF
drh75897232000-05-29 14:26:00 +000012435
drh866108f2008-05-13 00:57:21 +000012436cat >>$CONFIG_STATUS <<_ACEOF
12437ac_cs_version="\\
danielk197729bafea2008-06-26 10:41:19 +000012438sqlite config.status 3.6.0
drh866108f2008-05-13 00:57:21 +000012439configured by $0, generated by GNU Autoconf 2.59,
12440 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12441
12442Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012443This config.status script is free software; the Free Software Foundation
12444gives unlimited permission to copy, distribute and modify it."
drh866108f2008-05-13 00:57:21 +000012445srcdir=$srcdir
12446INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000012447_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012448
drh866108f2008-05-13 00:57:21 +000012449cat >>$CONFIG_STATUS <<\_ACEOF
12450# If no file are specified by the user, then we need to provide default
12451# value. By we need to know if files were specified by the user.
drh71eb93e2001-09-28 01:34:43 +000012452ac_need_defaults=:
12453while test $# != 0
12454do
12455 case $1 in
12456 --*=*)
drh866108f2008-05-13 00:57:21 +000012457 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12458 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012459 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012460 ;;
drh866108f2008-05-13 00:57:21 +000012461 -*)
a.rottmann84e63352003-03-24 09:42:16 +000012462 ac_option=$1
12463 ac_optarg=$2
12464 ac_shift=shift
12465 ;;
drh866108f2008-05-13 00:57:21 +000012466 *) # This is not an option, so the user has probably given explicit
12467 # arguments.
12468 ac_option=$1
12469 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000012470 esac
12471
a.rottmann84e63352003-03-24 09:42:16 +000012472 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012473 # Handling of the options.
drh866108f2008-05-13 00:57:21 +000012474_ACEOF
12475cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012476 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012477 ac_cs_recheck=: ;;
drh866108f2008-05-13 00:57:21 +000012478 --version | --vers* | -V )
12479 echo "$ac_cs_version"; exit 0 ;;
12480 --he | --h)
12481 # Conflict between --help and --header
12482 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12483Try \`$0 --help' for more information." >&5
12484echo "$as_me: error: ambiguous option: $1
12485Try \`$0 --help' for more information." >&2;}
12486 { (exit 1); exit 1; }; };;
12487 --help | --hel | -h )
12488 echo "$ac_cs_usage"; exit 0 ;;
12489 --debug | --d* | -d )
drh71eb93e2001-09-28 01:34:43 +000012490 debug=: ;;
12491 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012492 $ac_shift
drh866108f2008-05-13 00:57:21 +000012493 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000012494 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012495 --header | --heade | --head | --hea )
12496 $ac_shift
drh866108f2008-05-13 00:57:21 +000012497 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
mlcreechb87057f2008-03-06 07:19:20 +000012498 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000012499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12500 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12501 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012502
drh71eb93e2001-09-28 01:34:43 +000012503 # This is an error.
drh866108f2008-05-13 00:57:21 +000012504 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12505Try \`$0 --help' for more information." >&5
12506echo "$as_me: error: unrecognized option: $1
12507Try \`$0 --help' for more information." >&2;}
drh71eb93e2001-09-28 01:34:43 +000012508 { (exit 1); exit 1; }; } ;;
12509
drh866108f2008-05-13 00:57:21 +000012510 *) ac_config_targets="$ac_config_targets $1" ;;
drh71eb93e2001-09-28 01:34:43 +000012511
12512 esac
12513 shift
12514done
12515
a.rottmann84e63352003-03-24 09:42:16 +000012516ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012517
a.rottmann84e63352003-03-24 09:42:16 +000012518if $ac_cs_silent; then
12519 exec 6>/dev/null
12520 ac_configure_extra_args="$ac_configure_extra_args --silent"
12521fi
drh71eb93e2001-09-28 01:34:43 +000012522
12523_ACEOF
drh866108f2008-05-13 00:57:21 +000012524cat >>$CONFIG_STATUS <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012525if \$ac_cs_recheck; then
drh866108f2008-05-13 00:57:21 +000012526 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12527 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000012528fi
drh71eb93e2001-09-28 01:34:43 +000012529
a.rottmann84e63352003-03-24 09:42:16 +000012530_ACEOF
12531
drh866108f2008-05-13 00:57:21 +000012532cat >>$CONFIG_STATUS <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000012533#
drh866108f2008-05-13 00:57:21 +000012534# INIT-COMMANDS section.
mlcreech636a9952008-05-05 22:52:56 +000012535#
12536
12537
drh866108f2008-05-13 00:57:21 +000012538
mlcreech636a9952008-05-05 22:52:56 +000012539# The HP-UX ksh and POSIX shell print the target directory to stdout
12540# if CDPATH is set.
12541(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12542
12543sed_quote_subst='$sed_quote_subst'
12544double_quote_subst='$double_quote_subst'
12545delay_variable_subst='$delay_variable_subst'
12546macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12547macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12548enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12549enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12550pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12551enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12552host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12553host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12554host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12555build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12556build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12557build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12558SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12559Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12560GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12561EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12562FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12563LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12564NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12565LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12566max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12567ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12568exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12569lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12570lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12571lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12572reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12573reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12574deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12575file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12576AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12577AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12578STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12579RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12580old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12581old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12582old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12583CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12584CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12585compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12586GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12587lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12588lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12589lt_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"`'
12590lt_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"`'
12591objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12592SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12593ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12594MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12595lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12596lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12597lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12598lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12599lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12600need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12601DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12602NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12603LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12604OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12605OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12606libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12607shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12608extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12609archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12610enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12611export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12612whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12613compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12614old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12615old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12616archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12617archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12618module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12619module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12620with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12621allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12622no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12623hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12624hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12625hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12626hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12627hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12628hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12629hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12630hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12631inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12632link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12633fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12634always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12635export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12636exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12637include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12638prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12639file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12640variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12641need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12642need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12643version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12644runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12645shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12646shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12647libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12648library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12649soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12650postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12651postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12652finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12653finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12654hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12655sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12656sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12657hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12658enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12659enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12660enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12661old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12662striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12663
12664LTCC='$LTCC'
12665LTCFLAGS='$LTCFLAGS'
12666compiler='$compiler_DEFAULT'
12667
12668# Quote evaled strings.
12669for var in SED \
12670GREP \
12671EGREP \
12672FGREP \
12673LD \
12674NM \
12675LN_S \
12676lt_SP2NL \
12677lt_NL2SP \
12678reload_flag \
12679deplibs_check_method \
12680file_magic_cmd \
12681AR \
12682AR_FLAGS \
12683STRIP \
12684RANLIB \
12685CC \
12686CFLAGS \
12687compiler \
12688lt_cv_sys_global_symbol_pipe \
12689lt_cv_sys_global_symbol_to_cdecl \
12690lt_cv_sys_global_symbol_to_c_name_address \
12691lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12692SHELL \
12693ECHO \
12694lt_prog_compiler_no_builtin_flag \
12695lt_prog_compiler_wl \
12696lt_prog_compiler_pic \
12697lt_prog_compiler_static \
12698lt_cv_prog_compiler_c_o \
12699need_locks \
12700DSYMUTIL \
12701NMEDIT \
12702LIPO \
12703OTOOL \
12704OTOOL64 \
12705shrext_cmds \
12706export_dynamic_flag_spec \
12707whole_archive_flag_spec \
12708compiler_needs_object \
12709with_gnu_ld \
12710allow_undefined_flag \
12711no_undefined_flag \
12712hardcode_libdir_flag_spec \
12713hardcode_libdir_flag_spec_ld \
12714hardcode_libdir_separator \
12715fix_srcfile_path \
12716exclude_expsyms \
12717include_expsyms \
12718file_list_spec \
12719variables_saved_for_relink \
12720libname_spec \
12721library_names_spec \
12722soname_spec \
12723finish_eval \
12724old_striplib \
12725striplib; do
12726 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12727 *[\\\\\\\`\\"\\\$]*)
12728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12729 ;;
12730 *)
12731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12732 ;;
12733 esac
12734done
12735
12736# Double-quote double-evaled strings.
12737for var in reload_cmds \
12738old_postinstall_cmds \
12739old_postuninstall_cmds \
12740old_archive_cmds \
12741extract_expsyms_cmds \
12742old_archive_from_new_cmds \
12743old_archive_from_expsyms_cmds \
12744archive_cmds \
12745archive_expsym_cmds \
12746module_cmds \
12747module_expsym_cmds \
12748export_symbols_cmds \
12749prelink_cmds \
12750postinstall_cmds \
12751postuninstall_cmds \
12752finish_cmds \
12753sys_lib_search_path_spec \
12754sys_lib_dlsearch_path_spec; do
12755 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12756 *[\\\\\\\`\\"\\\$]*)
12757 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12758 ;;
12759 *)
12760 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12761 ;;
12762 esac
12763done
12764
12765# Fix-up fallback echo if it was mangled by the above quoting rules.
12766case \$lt_ECHO in
12767*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12768 ;;
12769esac
12770
12771ac_aux_dir='$ac_aux_dir'
12772xsi_shell='$xsi_shell'
12773lt_shell_append='$lt_shell_append'
12774
12775# See if we are running on zsh, and set the options which allow our
12776# commands through without removal of \ escapes INIT.
12777if test -n "\${ZSH_VERSION+set}" ; then
12778 setopt NO_GLOB_SUBST
12779fi
12780
12781
12782 PACKAGE='$PACKAGE'
12783 VERSION='$VERSION'
12784 TIMESTAMP='$TIMESTAMP'
12785 RM='$RM'
12786 ofile='$ofile'
12787
12788
12789
12790
mlcreech94984912008-03-04 19:03:08 +000012791_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012792
mlcreech94984912008-03-04 19:03:08 +000012793
drh866108f2008-05-13 00:57:21 +000012794
12795cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012796for ac_config_target in $ac_config_targets
12797do
drh866108f2008-05-13 00:57:21 +000012798 case "$ac_config_target" in
12799 # Handling of arguments.
12800 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12801 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12802 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12803 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12804 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12805echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000012806 { (exit 1); exit 1; }; };;
12807 esac
12808done
12809
12810# If the user did not use the arguments to specify the items to instantiate,
12811# then the envvar interface is used. Set only those that are not.
12812# We use the long form for the default assignment because of an extremely
12813# bizarre bug on SunOS 4.1.3.
12814if $ac_need_defaults; then
12815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012818fi
12819
a.rottmann84e63352003-03-24 09:42:16 +000012820# Have a temporary directory for convenience. Make it in the build tree
drh866108f2008-05-13 00:57:21 +000012821# simply because there is no reason to put it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012822# creating and moving files from /tmp can sometimes cause problems.
drh866108f2008-05-13 00:57:21 +000012823# Create a temporary directory, and hook for its removal unless debugging.
drh71eb93e2001-09-28 01:34:43 +000012824$debug ||
12825{
drh866108f2008-05-13 00:57:21 +000012826 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
drh71eb93e2001-09-28 01:34:43 +000012827 trap '{ (exit 1); exit 1; }' 1 2 13 15
12828}
drh866108f2008-05-13 00:57:21 +000012829
drh71eb93e2001-09-28 01:34:43 +000012830# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012831
drh71eb93e2001-09-28 01:34:43 +000012832{
drh866108f2008-05-13 00:57:21 +000012833 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000012834 test -n "$tmp" && test -d "$tmp"
12835} ||
12836{
drh866108f2008-05-13 00:57:21 +000012837 tmp=./confstat$$-$RANDOM
12838 (umask 077 && mkdir $tmp)
drh71eb93e2001-09-28 01:34:43 +000012839} ||
12840{
drh866108f2008-05-13 00:57:21 +000012841 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000012842 { (exit 1); exit 1; }
12843}
12844
a.rottmann84e63352003-03-24 09:42:16 +000012845_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012846
drh866108f2008-05-13 00:57:21 +000012847cat >>$CONFIG_STATUS <<_ACEOF
mlcreech94984912008-03-04 19:03:08 +000012848
drh866108f2008-05-13 00:57:21 +000012849#
12850# CONFIG_FILES section.
12851#
mlcreech94984912008-03-04 19:03:08 +000012852
drh866108f2008-05-13 00:57:21 +000012853# No need to generate the scripts if there are no CONFIG_FILES.
12854# This happens for instance when ./config.status config.h
12855if test -n "\$CONFIG_FILES"; then
12856 # Protect against being on the right side of a sed subst in config.status.
12857 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12858 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12859s,@SHELL@,$SHELL,;t t
12860s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12861s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12862s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12863s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12864s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12865s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12866s,@exec_prefix@,$exec_prefix,;t t
12867s,@prefix@,$prefix,;t t
12868s,@program_transform_name@,$program_transform_name,;t t
12869s,@bindir@,$bindir,;t t
12870s,@sbindir@,$sbindir,;t t
12871s,@libexecdir@,$libexecdir,;t t
12872s,@datadir@,$datadir,;t t
12873s,@sysconfdir@,$sysconfdir,;t t
12874s,@sharedstatedir@,$sharedstatedir,;t t
12875s,@localstatedir@,$localstatedir,;t t
12876s,@libdir@,$libdir,;t t
12877s,@includedir@,$includedir,;t t
12878s,@oldincludedir@,$oldincludedir,;t t
12879s,@infodir@,$infodir,;t t
12880s,@mandir@,$mandir,;t t
12881s,@build_alias@,$build_alias,;t t
12882s,@host_alias@,$host_alias,;t t
12883s,@target_alias@,$target_alias,;t t
12884s,@DEFS@,$DEFS,;t t
12885s,@ECHO_C@,$ECHO_C,;t t
12886s,@ECHO_N@,$ECHO_N,;t t
12887s,@ECHO_T@,$ECHO_T,;t t
12888s,@LIBS@,$LIBS,;t t
12889s,@LIBTOOL@,$LIBTOOL,;t t
12890s,@build@,$build,;t t
12891s,@build_cpu@,$build_cpu,;t t
12892s,@build_vendor@,$build_vendor,;t t
12893s,@build_os@,$build_os,;t t
12894s,@host@,$host,;t t
12895s,@host_cpu@,$host_cpu,;t t
12896s,@host_vendor@,$host_vendor,;t t
12897s,@host_os@,$host_os,;t t
12898s,@CC@,$CC,;t t
12899s,@CFLAGS@,$CFLAGS,;t t
12900s,@LDFLAGS@,$LDFLAGS,;t t
12901s,@CPPFLAGS@,$CPPFLAGS,;t t
12902s,@ac_ct_CC@,$ac_ct_CC,;t t
12903s,@EXEEXT@,$EXEEXT,;t t
12904s,@OBJEXT@,$OBJEXT,;t t
12905s,@SED@,$SED,;t t
12906s,@EGREP@,$EGREP,;t t
12907s,@FGREP@,$FGREP,;t t
12908s,@GREP@,$GREP,;t t
12909s,@LD@,$LD,;t t
12910s,@DUMPBIN@,$DUMPBIN,;t t
12911s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12912s,@NM@,$NM,;t t
12913s,@LN_S@,$LN_S,;t t
12914s,@AR@,$AR,;t t
12915s,@ac_ct_AR@,$ac_ct_AR,;t t
12916s,@STRIP@,$STRIP,;t t
12917s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12918s,@RANLIB@,$RANLIB,;t t
12919s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12920s,@lt_ECHO@,$lt_ECHO,;t t
12921s,@DSYMUTIL@,$DSYMUTIL,;t t
12922s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12923s,@NMEDIT@,$NMEDIT,;t t
12924s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12925s,@LIPO@,$LIPO,;t t
12926s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12927s,@OTOOL@,$OTOOL,;t t
12928s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12929s,@OTOOL64@,$OTOOL64,;t t
12930s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12931s,@CPP@,$CPP,;t t
12932s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12933s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12934s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12935s,@AWK@,$AWK,;t t
12936s,@TCLSH_CMD@,$TCLSH_CMD,;t t
12937s,@program_prefix@,$program_prefix,;t t
12938s,@VERSION@,$VERSION,;t t
12939s,@RELEASE@,$RELEASE,;t t
12940s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
12941s,@BUILD_CC@,$BUILD_CC,;t t
12942s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t
12943s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
12944s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
12945s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
12946s,@TEMP_STORE@,$TEMP_STORE,;t t
12947s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
danielk197729bafea2008-06-26 10:41:19 +000012948s,@SQLITE_OS_UNIX@,$SQLITE_OS_UNIX,;t t
12949s,@SQLITE_OS_WIN@,$SQLITE_OS_WIN,;t t
12950s,@SQLITE_OS_OS2@,$SQLITE_OS_OS2,;t t
drh866108f2008-05-13 00:57:21 +000012951s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
12952s,@TCL_VERSION@,$TCL_VERSION,;t t
12953s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
12954s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
12955s,@TCL_LIBS@,$TCL_LIBS,;t t
12956s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
12957s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
12958s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
12959s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
12960s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
12961s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
12962s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
12963s,@HAVE_TCL@,$HAVE_TCL,;t t
12964s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
12965s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
12966s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
12967s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
12968s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t
shanefbedede2008-07-22 05:05:01 +000012969s,@OPT_FEATURE_FLAGS@,$OPT_FEATURE_FLAGS,;t t
drh866108f2008-05-13 00:57:21 +000012970s,@USE_GCOV@,$USE_GCOV,;t t
12971s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12972s,@LIBOBJS@,$LIBOBJS,;t t
12973s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12974CEOF
12975
12976_ACEOF
12977
12978 cat >>$CONFIG_STATUS <<\_ACEOF
12979 # Split the substitutions into bite-sized pieces for seds with
12980 # small command number limits, like on Digital OSF/1 and HP-UX.
12981 ac_max_sed_lines=48
12982 ac_sed_frag=1 # Number of current file.
12983 ac_beg=1 # First line for current file.
12984 ac_end=$ac_max_sed_lines # Line after last line for current file.
12985 ac_more_lines=:
12986 ac_sed_cmds=
12987 while $ac_more_lines; do
12988 if test $ac_beg -gt 1; then
12989 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12990 else
12991 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12992 fi
12993 if test ! -s $tmp/subs.frag; then
12994 ac_more_lines=false
12995 else
12996 # The purpose of the label and of the branching condition is to
12997 # speed up the sed processing (if there are no `@' at all, there
12998 # is no need to browse any of the substitutions).
12999 # These are the two extra sed commands mentioned above.
13000 (echo ':t
13001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13002 if test -z "$ac_sed_cmds"; then
13003 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13004 else
13005 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13006 fi
13007 ac_sed_frag=`expr $ac_sed_frag + 1`
13008 ac_beg=$ac_end
13009 ac_end=`expr $ac_end + $ac_max_sed_lines`
13010 fi
13011 done
13012 if test -z "$ac_sed_cmds"; then
13013 ac_sed_cmds=cat
drh71eb93e2001-09-28 01:34:43 +000013014 fi
13015fi # test -n "$CONFIG_FILES"
13016
mlcreech636a9952008-05-05 22:52:56 +000013017_ACEOF
drh866108f2008-05-13 00:57:21 +000013018cat >>$CONFIG_STATUS <<\_ACEOF
13019for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13021 case $ac_file in
13022 - | *:- | *:-:* ) # input from stdin
13023 cat >$tmp/stdin
13024 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13026 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13028 * ) ac_file_in=$ac_file.in ;;
drh71eb93e2001-09-28 01:34:43 +000013029 esac
13030
drh866108f2008-05-13 00:57:21 +000013031 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000013033$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013034 X"$ac_file" : 'X\(//\)[^/]' \| \
13035 X"$ac_file" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000013036 X"$ac_file" : 'X\(/\)' \| \
13037 . : '\(.\)' 2>/dev/null ||
13038echo X"$ac_file" |
13039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13041 /^X\(\/\/\)$/{ s//\1/; q; }
13042 /^X\(\/\).*/{ s//\1/; q; }
13043 s/.*/./; q'`
13044 { if $as_mkdir_p; then
13045 mkdir -p "$ac_dir"
13046 else
13047 as_dir="$ac_dir"
a.rottmann84e63352003-03-24 09:42:16 +000013048 as_dirs=
drh866108f2008-05-13 00:57:21 +000013049 while test ! -d "$as_dir"; do
13050 as_dirs="$as_dir $as_dirs"
13051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000013052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013053 X"$as_dir" : 'X\(//\)[^/]' \| \
13054 X"$as_dir" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000013055 X"$as_dir" : 'X\(/\)' \| \
13056 . : '\(.\)' 2>/dev/null ||
13057echo X"$as_dir" |
13058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13060 /^X\(\/\/\)$/{ s//\1/; q; }
13061 /^X\(\/\).*/{ s//\1/; q; }
13062 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000013063 done
drh866108f2008-05-13 00:57:21 +000013064 test ! -n "$as_dirs" || mkdir $as_dirs
13065 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13066echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000013067 { (exit 1); exit 1; }; }; }
drh866108f2008-05-13 00:57:21 +000013068
a.rottmann84e63352003-03-24 09:42:16 +000013069 ac_builddir=.
13070
drh866108f2008-05-13 00:57:21 +000013071if test "$ac_dir" != .; then
13072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13073 # A "../" for each directory in $ac_dir_suffix.
13074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13075else
13076 ac_dir_suffix= ac_top_builddir=
13077fi
a.rottmann84e63352003-03-24 09:42:16 +000013078
13079case $srcdir in
drh866108f2008-05-13 00:57:21 +000013080 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013081 ac_srcdir=.
drh866108f2008-05-13 00:57:21 +000013082 if test -z "$ac_top_builddir"; then
13083 ac_top_srcdir=.
13084 else
13085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13086 fi ;;
13087 [\\/]* | ?:[\\/]* ) # Absolute path.
a.rottmann84e63352003-03-24 09:42:16 +000013088 ac_srcdir=$srcdir$ac_dir_suffix;
drh866108f2008-05-13 00:57:21 +000013089 ac_top_srcdir=$srcdir ;;
13090 *) # Relative path.
13091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13092 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013093esac
a.rottmann964dbb12004-02-26 19:47:42 +000013094
drh866108f2008-05-13 00:57:21 +000013095# Do not use `cd foo && pwd` to compute absolute paths, because
13096# the directories may not exist.
13097case `pwd` in
13098.) ac_abs_builddir="$ac_dir";;
13099*)
13100 case "$ac_dir" in
13101 .) ac_abs_builddir=`pwd`;;
13102 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13103 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13104 esac;;
13105esac
13106case $ac_abs_builddir in
13107.) ac_abs_top_builddir=${ac_top_builddir}.;;
13108*)
13109 case ${ac_top_builddir}. in
13110 .) ac_abs_top_builddir=$ac_abs_builddir;;
13111 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13112 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13113 esac;;
13114esac
13115case $ac_abs_builddir in
13116.) ac_abs_srcdir=$ac_srcdir;;
13117*)
13118 case $ac_srcdir in
13119 .) ac_abs_srcdir=$ac_abs_builddir;;
13120 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13121 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13122 esac;;
13123esac
13124case $ac_abs_builddir in
13125.) ac_abs_top_srcdir=$ac_top_srcdir;;
13126*)
13127 case $ac_top_srcdir in
13128 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13129 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13130 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13131 esac;;
13132esac
a.rottmann84e63352003-03-24 09:42:16 +000013133
drh75897232000-05-29 14:26:00 +000013134
drh71eb93e2001-09-28 01:34:43 +000013135 case $INSTALL in
13136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh866108f2008-05-13 00:57:21 +000013137 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013138 esac
mlcreech94984912008-03-04 19:03:08 +000013139
drh866108f2008-05-13 00:57:21 +000013140 if test x"$ac_file" != x-; then
13141 { echo "$as_me:$LINENO: creating $ac_file" >&5
13142echo "$as_me: creating $ac_file" >&6;}
13143 rm -f "$ac_file"
13144 fi
13145 # Let's still pretend it is `configure' which instantiates (i.e., don't
13146 # use $as_me), people would be surprised to read:
13147 # /* config.h. Generated by config.status. */
13148 if test x"$ac_file" = x-; then
13149 configure_input=
13150 else
13151 configure_input="$ac_file. "
13152 fi
13153 configure_input=$configure_input"Generated from `echo $ac_file_in |
13154 sed 's,.*/,,'` by configure."
mlcreech94984912008-03-04 19:03:08 +000013155
drh866108f2008-05-13 00:57:21 +000013156 # First look for the input files in the build tree, otherwise in the
13157 # src tree.
13158 ac_file_inputs=`IFS=:
13159 for f in $ac_file_in; do
13160 case $f in
13161 -) echo $tmp/stdin ;;
13162 [\\/$]*)
13163 # Absolute (can't be DOS-style, as IFS=:)
13164 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13165echo "$as_me: error: cannot find input file: $f" >&2;}
13166 { (exit 1); exit 1; }; }
13167 echo "$f";;
13168 *) # Relative
13169 if test -f "$f"; then
13170 # Build tree
13171 echo "$f"
13172 elif test -f "$srcdir/$f"; then
13173 # Source tree
13174 echo "$srcdir/$f"
13175 else
13176 # /dev/null tree
13177 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13178echo "$as_me: error: cannot find input file: $f" >&2;}
13179 { (exit 1); exit 1; }; }
13180 fi;;
13181 esac
13182 done` || { (exit 1); exit 1; }
mlcreech94984912008-03-04 19:03:08 +000013183_ACEOF
drh866108f2008-05-13 00:57:21 +000013184cat >>$CONFIG_STATUS <<_ACEOF
13185 sed "$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013186$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013187_ACEOF
drh866108f2008-05-13 00:57:21 +000013188cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013189:t
13190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh866108f2008-05-13 00:57:21 +000013191s,@configure_input@,$configure_input,;t t
13192s,@srcdir@,$ac_srcdir,;t t
13193s,@abs_srcdir@,$ac_abs_srcdir,;t t
13194s,@top_srcdir@,$ac_top_srcdir,;t t
13195s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13196s,@builddir@,$ac_builddir,;t t
13197s,@abs_builddir@,$ac_abs_builddir,;t t
13198s,@top_builddir@,$ac_top_builddir,;t t
13199s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13200s,@INSTALL@,$ac_INSTALL,;t t
13201" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13202 rm -f $tmp/stdin
mlcreechb87057f2008-03-06 07:19:20 +000013203 if test x"$ac_file" != x-; then
drh866108f2008-05-13 00:57:21 +000013204 mv $tmp/out $ac_file
mlcreechb87057f2008-03-06 07:19:20 +000013205 else
drh866108f2008-05-13 00:57:21 +000013206 cat $tmp/out
13207 rm -f $tmp/out
mlcreechb87057f2008-03-06 07:19:20 +000013208 fi
mlcreech94984912008-03-04 19:03:08 +000013209
drh866108f2008-05-13 00:57:21 +000013210done
13211_ACEOF
13212cat >>$CONFIG_STATUS <<\_ACEOF
13213
13214#
13215# CONFIG_HEADER section.
13216#
13217
13218# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13219# NAME is the cpp macro being defined and VALUE is the value it is being given.
13220#
13221# ac_d sets the value in "#define NAME VALUE" lines.
13222ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13223ac_dB='[ ].*$,\1#\2'
13224ac_dC=' '
13225ac_dD=',;t'
13226# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13227ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13228ac_uB='$,\1#\2define\3'
13229ac_uC=' '
13230ac_uD=',;t'
13231
13232for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13234 case $ac_file in
13235 - | *:- | *:-:* ) # input from stdin
13236 cat >$tmp/stdin
13237 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13239 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13240 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13241 * ) ac_file_in=$ac_file.in ;;
mlcreech94984912008-03-04 19:03:08 +000013242 esac
13243
drh866108f2008-05-13 00:57:21 +000013244 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13245echo "$as_me: creating $ac_file" >&6;}
mlcreech636a9952008-05-05 22:52:56 +000013246
drh866108f2008-05-13 00:57:21 +000013247 # First look for the input files in the build tree, otherwise in the
13248 # src tree.
13249 ac_file_inputs=`IFS=:
13250 for f in $ac_file_in; do
13251 case $f in
13252 -) echo $tmp/stdin ;;
13253 [\\/$]*)
13254 # Absolute (can't be DOS-style, as IFS=:)
13255 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13256echo "$as_me: error: cannot find input file: $f" >&2;}
13257 { (exit 1); exit 1; }; }
13258 # Do quote $f, to prevent DOS paths from being IFS'd.
13259 echo "$f";;
13260 *) # Relative
13261 if test -f "$f"; then
13262 # Build tree
13263 echo "$f"
13264 elif test -f "$srcdir/$f"; then
13265 # Source tree
13266 echo "$srcdir/$f"
13267 else
13268 # /dev/null tree
13269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13270echo "$as_me: error: cannot find input file: $f" >&2;}
13271 { (exit 1); exit 1; }; }
13272 fi;;
13273 esac
13274 done` || { (exit 1); exit 1; }
13275 # Remove the trailing spaces.
13276 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13277
13278_ACEOF
13279
13280# Transform confdefs.h into two sed scripts, `conftest.defines' and
13281# `conftest.undefs', that substitutes the proper values into
13282# config.h.in to produce config.h. The first handles `#define'
13283# templates, and the second `#undef' templates.
13284# And first: Protect against being on the right side of a sed subst in
13285# config.status. Protect against being in an unquoted here document
13286# in config.status.
13287rm -f conftest.defines conftest.undefs
13288# Using a here document instead of a string reduces the quoting nightmare.
13289# Putting comments in sed scripts is not portable.
13290#
13291# `end' is used to avoid that the second main sed command (meant for
13292# 0-ary CPP macros) applies to n-ary macro definitions.
13293# See the Autoconf documentation for `clear'.
13294cat >confdef2sed.sed <<\_ACEOF
13295s/[\\&,]/\\&/g
13296s,[\\$`],\\&,g
13297t clear
13298: clear
13299s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13300t end
13301s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13302: end
13303_ACEOF
13304# If some macros were called several times there might be several times
13305# the same #defines, which is useless. Nevertheless, we may not want to
13306# sort them, since we want the *last* AC-DEFINE to be honored.
13307uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13308sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13309rm -f confdef2sed.sed
13310
13311# This sed command replaces #undef with comments. This is necessary, for
13312# example, in the case of _POSIX_SOURCE, which is predefined and required
13313# on some systems where configure will not decide to define it.
13314cat >>conftest.undefs <<\_ACEOF
13315s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13316_ACEOF
13317
13318# Break up conftest.defines because some shells have a limit on the size
13319# of here documents, and old seds have small limits too (100 cmds).
13320echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13321echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13322echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13323echo ' :' >>$CONFIG_STATUS
13324rm -f conftest.tail
13325while grep . conftest.defines >/dev/null
13326do
13327 # Write a limited-size here document to $tmp/defines.sed.
13328 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13329 # Speed up: don't consider the non `#define' lines.
13330 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13331 # Work around the forget-to-reset-the-flag bug.
13332 echo 't clr' >>$CONFIG_STATUS
13333 echo ': clr' >>$CONFIG_STATUS
13334 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13335 echo 'CEOF
13336 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13337 rm -f $tmp/in
13338 mv $tmp/out $tmp/in
13339' >>$CONFIG_STATUS
13340 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13341 rm -f conftest.defines
13342 mv conftest.tail conftest.defines
13343done
13344rm -f conftest.defines
13345echo ' fi # grep' >>$CONFIG_STATUS
13346echo >>$CONFIG_STATUS
13347
13348# Break up conftest.undefs because some shells have a limit on the size
13349# of here documents, and old seds have small limits too (100 cmds).
13350echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13351rm -f conftest.tail
13352while grep . conftest.undefs >/dev/null
13353do
13354 # Write a limited-size here document to $tmp/undefs.sed.
13355 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13356 # Speed up: don't consider the non `#undef'
13357 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13358 # Work around the forget-to-reset-the-flag bug.
13359 echo 't clr' >>$CONFIG_STATUS
13360 echo ': clr' >>$CONFIG_STATUS
13361 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13362 echo 'CEOF
13363 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13364 rm -f $tmp/in
13365 mv $tmp/out $tmp/in
13366' >>$CONFIG_STATUS
13367 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13368 rm -f conftest.undefs
13369 mv conftest.tail conftest.undefs
13370done
13371rm -f conftest.undefs
13372
13373cat >>$CONFIG_STATUS <<\_ACEOF
13374 # Let's still pretend it is `configure' which instantiates (i.e., don't
13375 # use $as_me), people would be surprised to read:
13376 # /* config.h. Generated by config.status. */
13377 if test x"$ac_file" = x-; then
13378 echo "/* Generated by configure. */" >$tmp/config.h
13379 else
13380 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13381 fi
13382 cat $tmp/in >>$tmp/config.h
13383 rm -f $tmp/in
13384 if test x"$ac_file" != x-; then
13385 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13386 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13387echo "$as_me: $ac_file is unchanged" >&6;}
13388 else
13389 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13390$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13391 X"$ac_file" : 'X\(//\)[^/]' \| \
13392 X"$ac_file" : 'X\(//\)$' \| \
13393 X"$ac_file" : 'X\(/\)' \| \
13394 . : '\(.\)' 2>/dev/null ||
13395echo X"$ac_file" |
13396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13398 /^X\(\/\/\)$/{ s//\1/; q; }
13399 /^X\(\/\).*/{ s//\1/; q; }
13400 s/.*/./; q'`
13401 { if $as_mkdir_p; then
13402 mkdir -p "$ac_dir"
13403 else
13404 as_dir="$ac_dir"
13405 as_dirs=
13406 while test ! -d "$as_dir"; do
13407 as_dirs="$as_dir $as_dirs"
13408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13409$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13410 X"$as_dir" : 'X\(//\)[^/]' \| \
13411 X"$as_dir" : 'X\(//\)$' \| \
13412 X"$as_dir" : 'X\(/\)' \| \
13413 . : '\(.\)' 2>/dev/null ||
13414echo X"$as_dir" |
13415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13417 /^X\(\/\/\)$/{ s//\1/; q; }
13418 /^X\(\/\).*/{ s//\1/; q; }
13419 s/.*/./; q'`
13420 done
13421 test ! -n "$as_dirs" || mkdir $as_dirs
13422 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13423echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13424 { (exit 1); exit 1; }; }; }
13425
13426 rm -f $ac_file
13427 mv $tmp/config.h $ac_file
13428 fi
13429 else
13430 cat $tmp/config.h
13431 rm -f $tmp/config.h
13432 fi
13433done
13434_ACEOF
13435cat >>$CONFIG_STATUS <<\_ACEOF
13436
13437#
13438# CONFIG_COMMANDS section.
13439#
13440for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13441 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13442 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13443 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13444$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13445 X"$ac_dest" : 'X\(//\)[^/]' \| \
13446 X"$ac_dest" : 'X\(//\)$' \| \
13447 X"$ac_dest" : 'X\(/\)' \| \
13448 . : '\(.\)' 2>/dev/null ||
13449echo X"$ac_dest" |
13450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13451 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13452 /^X\(\/\/\)$/{ s//\1/; q; }
13453 /^X\(\/\).*/{ s//\1/; q; }
13454 s/.*/./; q'`
13455 { if $as_mkdir_p; then
13456 mkdir -p "$ac_dir"
13457 else
13458 as_dir="$ac_dir"
13459 as_dirs=
13460 while test ! -d "$as_dir"; do
13461 as_dirs="$as_dir $as_dirs"
13462 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13464 X"$as_dir" : 'X\(//\)[^/]' \| \
13465 X"$as_dir" : 'X\(//\)$' \| \
13466 X"$as_dir" : 'X\(/\)' \| \
13467 . : '\(.\)' 2>/dev/null ||
13468echo X"$as_dir" |
13469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13471 /^X\(\/\/\)$/{ s//\1/; q; }
13472 /^X\(\/\).*/{ s//\1/; q; }
13473 s/.*/./; q'`
13474 done
13475 test ! -n "$as_dirs" || mkdir $as_dirs
13476 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13477echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13478 { (exit 1); exit 1; }; }; }
13479
13480 ac_builddir=.
13481
13482if test "$ac_dir" != .; then
13483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13484 # A "../" for each directory in $ac_dir_suffix.
13485 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13486else
13487 ac_dir_suffix= ac_top_builddir=
13488fi
13489
13490case $srcdir in
13491 .) # No --srcdir option. We are building in place.
13492 ac_srcdir=.
13493 if test -z "$ac_top_builddir"; then
13494 ac_top_srcdir=.
13495 else
13496 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13497 fi ;;
13498 [\\/]* | ?:[\\/]* ) # Absolute path.
13499 ac_srcdir=$srcdir$ac_dir_suffix;
13500 ac_top_srcdir=$srcdir ;;
13501 *) # Relative path.
13502 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13503 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13504esac
13505
13506# Do not use `cd foo && pwd` to compute absolute paths, because
13507# the directories may not exist.
13508case `pwd` in
13509.) ac_abs_builddir="$ac_dir";;
13510*)
13511 case "$ac_dir" in
13512 .) ac_abs_builddir=`pwd`;;
13513 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13514 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13515 esac;;
13516esac
13517case $ac_abs_builddir in
13518.) ac_abs_top_builddir=${ac_top_builddir}.;;
13519*)
13520 case ${ac_top_builddir}. in
13521 .) ac_abs_top_builddir=$ac_abs_builddir;;
13522 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13523 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13524 esac;;
13525esac
13526case $ac_abs_builddir in
13527.) ac_abs_srcdir=$ac_srcdir;;
13528*)
13529 case $ac_srcdir in
13530 .) ac_abs_srcdir=$ac_abs_builddir;;
13531 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13532 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13533 esac;;
13534esac
13535case $ac_abs_builddir in
13536.) ac_abs_top_srcdir=$ac_top_srcdir;;
13537*)
13538 case $ac_top_srcdir in
13539 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13540 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13541 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13542 esac;;
13543esac
13544
13545
13546 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13547echo "$as_me: executing $ac_dest commands" >&6;}
13548 case $ac_dest in
13549 libtool )
mlcreech636a9952008-05-05 22:52:56 +000013550
13551 # See if we are running on zsh, and set the options which allow our
13552 # commands through without removal of \ escapes.
13553 if test -n "${ZSH_VERSION+set}" ; then
13554 setopt NO_GLOB_SUBST
13555 fi
13556
13557 cfgfile="${ofile}T"
13558 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13559 $RM "$cfgfile"
13560
13561 cat <<_LT_EOF >> "$cfgfile"
13562#! $SHELL
13563
13564# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13565# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13566# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13567# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13568#
13569# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13570# 2006, 2007, 2008 Free Software Foundation, Inc.
13571# Written by Gordon Matzigkeit, 1996
13572#
13573# This file is part of GNU Libtool.
13574#
13575# GNU Libtool is free software; you can redistribute it and/or
13576# modify it under the terms of the GNU General Public License as
13577# published by the Free Software Foundation; either version 2 of
13578# the License, or (at your option) any later version.
13579#
13580# As a special exception to the GNU General Public License,
13581# if you distribute this file as part of a program or library that
13582# is built using GNU Libtool, you may include this file under the
13583# same distribution terms that you use for the rest of that program.
13584#
13585# GNU Libtool is distributed in the hope that it will be useful,
13586# but WITHOUT ANY WARRANTY; without even the implied warranty of
13587# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13588# GNU General Public License for more details.
13589#
13590# You should have received a copy of the GNU General Public License
13591# along with GNU Libtool; see the file COPYING. If not, a copy
13592# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13593# obtained by writing to the Free Software Foundation, Inc.,
13594# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13595
13596
13597# The names of the tagged configurations supported by this script.
13598available_tags=""
13599
13600# ### BEGIN LIBTOOL CONFIG
13601
13602# Which release of libtool.m4 was used?
13603macro_version=$macro_version
13604macro_revision=$macro_revision
13605
13606# Whether or not to build shared libraries.
13607build_libtool_libs=$enable_shared
13608
13609# Whether or not to build static libraries.
13610build_old_libs=$enable_static
13611
13612# What type of objects to build.
13613pic_mode=$pic_mode
13614
13615# Whether or not to optimize for fast installation.
13616fast_install=$enable_fast_install
13617
13618# The host system.
13619host_alias=$host_alias
13620host=$host
13621host_os=$host_os
13622
13623# The build system.
13624build_alias=$build_alias
13625build=$build
13626build_os=$build_os
13627
13628# A sed program that does not truncate output.
13629SED=$lt_SED
13630
13631# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13632Xsed="\$SED -e 1s/^X//"
13633
13634# A grep program that handles long lines.
13635GREP=$lt_GREP
13636
13637# An ERE matcher.
13638EGREP=$lt_EGREP
13639
13640# A literal string matcher.
13641FGREP=$lt_FGREP
13642
13643# A BSD- or MS-compatible name lister.
13644NM=$lt_NM
13645
13646# Whether we need soft or hard links.
13647LN_S=$lt_LN_S
13648
13649# What is the maximum length of a command?
13650max_cmd_len=$max_cmd_len
13651
13652# Object file suffix (normally "o").
13653objext=$ac_objext
13654
13655# Executable file suffix (normally "").
13656exeext=$exeext
13657
13658# whether the shell understands "unset".
13659lt_unset=$lt_unset
13660
13661# turn spaces into newlines.
13662SP2NL=$lt_lt_SP2NL
13663
13664# turn newlines into spaces.
13665NL2SP=$lt_lt_NL2SP
13666
13667# How to create reloadable object files.
13668reload_flag=$lt_reload_flag
13669reload_cmds=$lt_reload_cmds
13670
13671# Method to check whether dependent libraries are shared objects.
13672deplibs_check_method=$lt_deplibs_check_method
13673
13674# Command to use when deplibs_check_method == "file_magic".
13675file_magic_cmd=$lt_file_magic_cmd
13676
13677# The archiver.
13678AR=$lt_AR
13679AR_FLAGS=$lt_AR_FLAGS
13680
13681# A symbol stripping program.
13682STRIP=$lt_STRIP
13683
13684# Commands used to install an old-style archive.
13685RANLIB=$lt_RANLIB
13686old_postinstall_cmds=$lt_old_postinstall_cmds
13687old_postuninstall_cmds=$lt_old_postuninstall_cmds
13688
13689# A C compiler.
13690LTCC=$lt_CC
13691
13692# LTCC compiler flags.
13693LTCFLAGS=$lt_CFLAGS
13694
13695# Take the output of nm and produce a listing of raw symbols and C names.
13696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13697
13698# Transform the output of nm in a proper C declaration.
13699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13700
13701# Transform the output of nm in a C name address pair.
13702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13703
13704# Transform the output of nm in a C name address pair when lib prefix is needed.
13705global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13706
13707# The name of the directory that contains temporary libtool files.
13708objdir=$objdir
13709
13710# Shell to use when invoking shell scripts.
13711SHELL=$lt_SHELL
13712
13713# An echo program that does not interpret backslashes.
13714ECHO=$lt_ECHO
13715
13716# Used to examine libraries when file_magic_cmd begins with "file".
13717MAGIC_CMD=$MAGIC_CMD
13718
13719# Must we lock files when doing compilation?
13720need_locks=$lt_need_locks
13721
13722# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13723DSYMUTIL=$lt_DSYMUTIL
13724
13725# Tool to change global to local symbols on Mac OS X.
13726NMEDIT=$lt_NMEDIT
13727
13728# Tool to manipulate fat objects and archives on Mac OS X.
13729LIPO=$lt_LIPO
13730
13731# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13732OTOOL=$lt_OTOOL
13733
13734# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13735OTOOL64=$lt_OTOOL64
13736
13737# Old archive suffix (normally "a").
13738libext=$libext
13739
13740# Shared library suffix (normally ".so").
13741shrext_cmds=$lt_shrext_cmds
13742
13743# The commands to extract the exported symbol list from a shared archive.
13744extract_expsyms_cmds=$lt_extract_expsyms_cmds
13745
13746# Variables whose values should be saved in libtool wrapper scripts and
13747# restored at link time.
13748variables_saved_for_relink=$lt_variables_saved_for_relink
13749
13750# Do we need the "lib" prefix for modules?
13751need_lib_prefix=$need_lib_prefix
13752
13753# Do we need a version for libraries?
13754need_version=$need_version
13755
13756# Library versioning type.
13757version_type=$version_type
13758
13759# Shared library runtime path variable.
13760runpath_var=$runpath_var
13761
13762# Shared library path variable.
13763shlibpath_var=$shlibpath_var
13764
13765# Is shlibpath searched before the hard-coded library search path?
13766shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13767
13768# Format of library name prefix.
13769libname_spec=$lt_libname_spec
13770
13771# List of archive names. First name is the real one, the rest are links.
13772# The last name is the one that the linker finds with -lNAME
13773library_names_spec=$lt_library_names_spec
13774
13775# The coded name of the library, if different from the real name.
13776soname_spec=$lt_soname_spec
13777
13778# Command to use after installation of a shared archive.
13779postinstall_cmds=$lt_postinstall_cmds
13780
13781# Command to use after uninstallation of a shared archive.
13782postuninstall_cmds=$lt_postuninstall_cmds
13783
13784# Commands used to finish a libtool library installation in a directory.
13785finish_cmds=$lt_finish_cmds
13786
13787# As "finish_cmds", except a single script fragment to be evaled but
13788# not shown.
13789finish_eval=$lt_finish_eval
13790
13791# Whether we should hardcode library paths into libraries.
13792hardcode_into_libs=$hardcode_into_libs
13793
13794# Compile-time system search path for libraries.
13795sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13796
13797# Run-time system search path for libraries.
13798sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13799
13800# Whether dlopen is supported.
13801dlopen_support=$enable_dlopen
13802
13803# Whether dlopen of programs is supported.
13804dlopen_self=$enable_dlopen_self
13805
13806# Whether dlopen of statically linked programs is supported.
13807dlopen_self_static=$enable_dlopen_self_static
13808
13809# Commands to strip libraries.
13810old_striplib=$lt_old_striplib
13811striplib=$lt_striplib
13812
13813
13814# The linker used to build libraries.
13815LD=$lt_LD
13816
13817# Commands used to build an old-style archive.
13818old_archive_cmds=$lt_old_archive_cmds
13819
13820# A language specific compiler.
13821CC=$lt_compiler
13822
13823# Is the compiler the GNU compiler?
13824with_gcc=$GCC
13825
13826# Compiler flag to turn off builtin functions.
13827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13828
13829# How to pass a linker flag through the compiler.
13830wl=$lt_lt_prog_compiler_wl
13831
13832# Additional compiler flags for building library objects.
13833pic_flag=$lt_lt_prog_compiler_pic
13834
13835# Compiler flag to prevent dynamic linking.
13836link_static_flag=$lt_lt_prog_compiler_static
13837
13838# Does compiler simultaneously support -c and -o options?
13839compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13840
13841# Whether or not to add -lc for building shared libraries.
13842build_libtool_need_lc=$archive_cmds_need_lc
13843
13844# Whether or not to disallow shared libs when runtime libs are static.
13845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13846
13847# Compiler flag to allow reflexive dlopens.
13848export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13849
13850# Compiler flag to generate shared objects directly from archives.
13851whole_archive_flag_spec=$lt_whole_archive_flag_spec
13852
13853# Whether the compiler copes with passing no objects directly.
13854compiler_needs_object=$lt_compiler_needs_object
13855
13856# Create an old-style archive from a shared archive.
13857old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13858
13859# Create a temporary old-style archive to link instead of a shared archive.
13860old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13861
13862# Commands used to build a shared archive.
13863archive_cmds=$lt_archive_cmds
13864archive_expsym_cmds=$lt_archive_expsym_cmds
13865
13866# Commands used to build a loadable module if different from building
13867# a shared archive.
13868module_cmds=$lt_module_cmds
13869module_expsym_cmds=$lt_module_expsym_cmds
13870
13871# Whether we are building with GNU ld or not.
13872with_gnu_ld=$lt_with_gnu_ld
13873
13874# Flag that allows shared libraries with undefined symbols to be built.
13875allow_undefined_flag=$lt_allow_undefined_flag
13876
13877# Flag that enforces no undefined symbols.
13878no_undefined_flag=$lt_no_undefined_flag
13879
13880# Flag to hardcode \$libdir into a binary during linking.
13881# This must work even if \$libdir does not exist
13882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13883
13884# If ld is used when linking, flag to hardcode \$libdir into a binary
13885# during linking. This must work even if \$libdir does not exist.
13886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13887
13888# Whether we need a single "-rpath" flag with a separated argument.
13889hardcode_libdir_separator=$lt_hardcode_libdir_separator
13890
13891# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13892# DIR into the resulting binary.
13893hardcode_direct=$hardcode_direct
13894
13895# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13896# DIR into the resulting binary and the resulting library dependency is
13897# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13898# library is relocated.
13899hardcode_direct_absolute=$hardcode_direct_absolute
13900
13901# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13902# into the resulting binary.
13903hardcode_minus_L=$hardcode_minus_L
13904
13905# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13906# into the resulting binary.
13907hardcode_shlibpath_var=$hardcode_shlibpath_var
13908
13909# Set to "yes" if building a shared library automatically hardcodes DIR
13910# into the library and all subsequent libraries and executables linked
13911# against it.
13912hardcode_automatic=$hardcode_automatic
13913
13914# Set to yes if linker adds runtime paths of dependent libraries
13915# to runtime path list.
13916inherit_rpath=$inherit_rpath
13917
13918# Whether libtool must link a program against all its dependency libraries.
13919link_all_deplibs=$link_all_deplibs
13920
13921# Fix the shell variable \$srcfile for the compiler.
13922fix_srcfile_path=$lt_fix_srcfile_path
13923
13924# Set to "yes" if exported symbols are required.
13925always_export_symbols=$always_export_symbols
13926
13927# The commands to list exported symbols.
13928export_symbols_cmds=$lt_export_symbols_cmds
13929
13930# Symbols that should not be listed in the preloaded symbols.
13931exclude_expsyms=$lt_exclude_expsyms
13932
13933# Symbols that must always be exported.
13934include_expsyms=$lt_include_expsyms
13935
13936# Commands necessary for linking programs (against libraries) with templates.
13937prelink_cmds=$lt_prelink_cmds
13938
13939# Specify filename containing input files.
13940file_list_spec=$lt_file_list_spec
13941
13942# How to hardcode a shared library path into an executable.
13943hardcode_action=$hardcode_action
13944
13945# ### END LIBTOOL CONFIG
13946
13947_LT_EOF
13948
13949 case $host_os in
13950 aix3*)
13951 cat <<\_LT_EOF >> "$cfgfile"
13952# AIX sometimes has problems with the GCC collect2 program. For some
13953# reason, if we set the COLLECT_NAMES environment variable, the problems
13954# vanish in a puff of smoke.
13955if test "X${COLLECT_NAMES+set}" != Xset; then
13956 COLLECT_NAMES=
13957 export COLLECT_NAMES
13958fi
13959_LT_EOF
13960 ;;
13961 esac
13962
13963
13964ltmain="$ac_aux_dir/ltmain.sh"
13965
13966
13967 # We use sed instead of cat because bash on DJGPP gets confused if
13968 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13969 # text mode, it properly converts lines to CR/LF. This bash problem
13970 # is reportedly fixed, but why not run on old versions too?
13971 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13972 || (rm -f "$cfgfile"; exit 1)
13973
13974 case $xsi_shell in
13975 yes)
13976 cat << \_LT_EOF >> "$cfgfile"
13977
13978# func_dirname file append nondir_replacement
13979# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13980# otherwise set result to NONDIR_REPLACEMENT.
13981func_dirname ()
13982{
13983 case ${1} in
13984 */*) func_dirname_result="${1%/*}${2}" ;;
13985 * ) func_dirname_result="${3}" ;;
13986 esac
13987}
13988
13989# func_basename file
13990func_basename ()
13991{
13992 func_basename_result="${1##*/}"
13993}
13994
13995# func_dirname_and_basename file append nondir_replacement
13996# perform func_basename and func_dirname in a single function
13997# call:
13998# dirname: Compute the dirname of FILE. If nonempty,
13999# add APPEND to the result, otherwise set result
14000# to NONDIR_REPLACEMENT.
14001# value returned in "$func_dirname_result"
14002# basename: Compute filename of FILE.
14003# value retuned in "$func_basename_result"
14004# Implementation must be kept synchronized with func_dirname
14005# and func_basename. For efficiency, we do not delegate to
14006# those functions but instead duplicate the functionality here.
14007func_dirname_and_basename ()
14008{
14009 case ${1} in
14010 */*) func_dirname_result="${1%/*}${2}" ;;
14011 * ) func_dirname_result="${3}" ;;
14012 esac
14013 func_basename_result="${1##*/}"
14014}
14015
14016# func_stripname prefix suffix name
14017# strip PREFIX and SUFFIX off of NAME.
14018# PREFIX and SUFFIX must not contain globbing or regex special
14019# characters, hashes, percent signs, but SUFFIX may contain a leading
14020# dot (in which case that matches only a dot).
14021func_stripname ()
14022{
14023 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14024 # positional parameters, so assign one to ordinary parameter first.
14025 func_stripname_result=${3}
14026 func_stripname_result=${func_stripname_result#"${1}"}
14027 func_stripname_result=${func_stripname_result%"${2}"}
14028}
14029
14030# func_opt_split
14031func_opt_split ()
14032{
14033 func_opt_split_opt=${1%%=*}
14034 func_opt_split_arg=${1#*=}
14035}
14036
14037# func_lo2o object
14038func_lo2o ()
14039{
14040 case ${1} in
14041 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14042 *) func_lo2o_result=${1} ;;
14043 esac
14044}
14045
14046# func_xform libobj-or-source
14047func_xform ()
14048{
14049 func_xform_result=${1%.*}.lo
14050}
14051
14052# func_arith arithmetic-term...
14053func_arith ()
14054{
14055 func_arith_result=$(( $* ))
14056}
14057
14058# func_len string
14059# STRING may not start with a hyphen.
14060func_len ()
14061{
14062 func_len_result=${#1}
14063}
14064
14065_LT_EOF
14066 ;;
14067 *) # Bourne compatible functions.
14068 cat << \_LT_EOF >> "$cfgfile"
14069
14070# func_dirname file append nondir_replacement
14071# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14072# otherwise set result to NONDIR_REPLACEMENT.
14073func_dirname ()
14074{
14075 # Extract subdirectory from the argument.
14076 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14077 if test "X$func_dirname_result" = "X${1}"; then
14078 func_dirname_result="${3}"
14079 else
14080 func_dirname_result="$func_dirname_result${2}"
14081 fi
14082}
14083
14084# func_basename file
14085func_basename ()
14086{
14087 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14088}
14089
14090
14091# func_stripname prefix suffix name
14092# strip PREFIX and SUFFIX off of NAME.
14093# PREFIX and SUFFIX must not contain globbing or regex special
14094# characters, hashes, percent signs, but SUFFIX may contain a leading
14095# dot (in which case that matches only a dot).
14096# func_strip_suffix prefix name
14097func_stripname ()
14098{
14099 case ${2} in
14100 .*) func_stripname_result=`$ECHO "X${3}" \
14101 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14102 *) func_stripname_result=`$ECHO "X${3}" \
14103 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14104 esac
14105}
14106
14107# sed scripts:
14108my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14109my_sed_long_arg='1s/^-[^=]*=//'
14110
14111# func_opt_split
14112func_opt_split ()
14113{
14114 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14115 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14116}
14117
14118# func_lo2o object
14119func_lo2o ()
14120{
14121 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14122}
14123
14124# func_xform libobj-or-source
14125func_xform ()
14126{
14127 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14128}
14129
14130# func_arith arithmetic-term...
14131func_arith ()
14132{
14133 func_arith_result=`expr "$@"`
14134}
14135
14136# func_len string
14137# STRING may not start with a hyphen.
14138func_len ()
14139{
14140 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14141}
14142
14143_LT_EOF
14144esac
14145
14146case $lt_shell_append in
14147 yes)
14148 cat << \_LT_EOF >> "$cfgfile"
14149
14150# func_append var value
14151# Append VALUE to the end of shell variable VAR.
14152func_append ()
14153{
14154 eval "$1+=\$2"
14155}
14156_LT_EOF
14157 ;;
14158 *)
14159 cat << \_LT_EOF >> "$cfgfile"
14160
14161# func_append var value
14162# Append VALUE to the end of shell variable VAR.
14163func_append ()
14164{
14165 eval "$1=\$$1\$2"
14166}
14167
14168_LT_EOF
14169 ;;
14170 esac
14171
14172
14173 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14174 || (rm -f "$cfgfile"; exit 1)
14175
14176 mv -f "$cfgfile" "$ofile" ||
14177 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14178 chmod +x "$ofile"
14179
14180 ;;
mlcreech636a9952008-05-05 22:52:56 +000014181 esac
drh866108f2008-05-13 00:57:21 +000014182done
14183_ACEOF
mlcreech94984912008-03-04 19:03:08 +000014184
drh866108f2008-05-13 00:57:21 +000014185cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014186
14187{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000014188_ACEOF
drh75897232000-05-29 14:26:00 +000014189chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000014190ac_clean_files=$ac_clean_files_save
14191
a.rottmann84e63352003-03-24 09:42:16 +000014192
drh71eb93e2001-09-28 01:34:43 +000014193# configure is writing to config.log, and then calls config.status.
14194# config.status does its own redirection, appending to config.log.
14195# Unfortunately, on DOS this fails, as config.log is still kept open
14196# by configure, so config.status won't be able to write to it; its
14197# output is simply discarded. So we exec the FD to /dev/null,
14198# effectively closing config.log, so it can be properly (re)opened and
14199# appended to by config.status. When coming back to configure, we
14200# need to make the FD available again.
14201if test "$no_create" != yes; then
14202 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000014203 ac_config_status_args=
14204 test "$silent" = yes &&
14205 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000014206 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000014207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000014208 exec 5>>config.log
14209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14210 # would make configure fail if this is the last instruction.
14211 $ac_cs_success || { (exit 1); exit 1; }
14212fi
drh613a0fe2007-11-23 17:31:17 +000014213