blob: 87b6a84109bcf7e94360540365db4d497376c534 [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.
drh5c0c56b2011-11-25 21:51:03 +00003# Generated by GNU Autoconf 2.68 for sqlite 3.7.10.
dana9f39fd2011-08-12 16:34:42 +00004#
drh75897232000-05-29 14:26:00 +00005#
drh8b727472009-01-19 18:18:40 +00006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
drh0fe0c462011-09-22 00:56:38 +00007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
dana9f39fd2011-08-12 16:34:42 +00009#
10#
drh75897232000-05-29 14:26:00 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
dana9f39fd2011-08-12 16:34:42 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000016
drh8b727472009-01-19 18:18:40 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
dana9f39fd2011-08-12 16:34:42 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000020 emulate sh
21 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000025 setopt NO_GLOB_SUBST
26else
dana9f39fd2011-08-12 16:34:42 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
drh8b727472009-01-19 18:18:40 +000032esac
a.rottmann84e63352003-03-24 09:42:16 +000033fi
drh8b727472009-01-19 18:18:40 +000034
35
drh8b727472009-01-19 18:18:40 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
dana9f39fd2011-08-12 16:34:42 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
dana9f39fd2011-08-12 16:34:42 +000060 case $arg in #(
drh8b727472009-01-19 18:18:40 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
a.rottmann84e63352003-03-24 09:42:16 +000082
mlcreech94984912008-03-04 19:03:08 +000083
drh8b727472009-01-19 18:18:40 +000084# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
drh6a8ab6d2011-11-09 01:53:25 +000092as_myself=
dana9f39fd2011-08-12 16:34:42 +000093case $0 in #((
drh8b727472009-01-19 18:18:40 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
drh8b727472009-01-19 18:18:40 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dana9f39fd2011-08-12 16:34:42 +0000113 exit 1
drh8b727472009-01-19 18:18:40 +0000114fi
115
dana9f39fd2011-08-12 16:34:42 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +0000123done
mlcreech94984912008-03-04 19:03:08 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000133
dana9f39fd2011-08-12 16:34:42 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
drh6a8ab6d2011-11-09 01:53:25 +0000218 # Preserve -v and -x to the replacement shell.
dana9f39fd2011-08-12 16:34:42 +0000219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
drh6a8ab6d2011-11-09 01:53:25 +0000223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
dana9f39fd2011-08-12 16:34:42 +0000230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
drh0fe0c462011-09-22 00:56:38 +0000327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dana9f39fd2011-08-12 16:34:42 +0000328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
drh0fe0c462011-09-22 00:56:38 +0000367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
dana9f39fd2011-08-12 16:34:42 +0000369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
drh0fe0c462011-09-22 00:56:38 +0000371# script with STATUS, using 1 if that was 0.
dana9f39fd2011-08-12 16:34:42 +0000372as_fn_error ()
373{
drh0fe0c462011-09-22 00:56:38 +0000374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
dana9f39fd2011-08-12 16:34:42 +0000378 fi
drh0fe0c462011-09-22 00:56:38 +0000379 $as_echo "$as_me: error: $2" >&2
dana9f39fd2011-08-12 16:34:42 +0000380 as_fn_exit $as_status
381} # as_fn_error
382
drh8b727472009-01-19 18:18:40 +0000383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000385 as_expr=expr
386else
387 as_expr=false
388fi
389
drh8b727472009-01-19 18:18:40 +0000390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000391 as_basename=basename
392else
393 as_basename=false
394fi
395
dana9f39fd2011-08-12 16:34:42 +0000396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
mlcreech94984912008-03-04 19:03:08 +0000401
drh8b727472009-01-19 18:18:40 +0000402as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
dana9f39fd2011-08-12 16:34:42 +0000421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
mlcreech94984912008-03-04 19:03:08 +0000427
428
dana9f39fd2011-08-12 16:34:42 +0000429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000438 sed '
drh8b727472009-01-19 18:18:40 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000443 N
drh8b727472009-01-19 18:18:40 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000446 t loop
drh8b727472009-01-19 18:18:40 +0000447 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000448 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000449 chmod +x "$as_me.lineno" ||
dana9f39fd2011-08-12 16:34:42 +0000450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000456 # Exit status is that of the last command.
457 exit
458}
459
drh8b727472009-01-19 18:18:40 +0000460ECHO_C= ECHO_N= ECHO_T=
dana9f39fd2011-08-12 16:34:42 +0000461case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000462-n*)
dana9f39fd2011-08-12 16:34:42 +0000463 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
dana9f39fd2011-08-12 16:34:42 +0000465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000468 esac;;
469*)
470 ECHO_N='-n';;
471esac
a.rottmann84e63352003-03-24 09:42:16 +0000472
473rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000482 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +0000493 fi
a.rottmann84e63352003-03-24 09:42:16 +0000494else
495 as_ln_s='cp -p'
496fi
drh8b727472009-01-19 18:18:40 +0000497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000499
500if mkdir -p . 2>/dev/null; then
dana9f39fd2011-08-12 16:34:42 +0000501 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000502else
a.rottmann964dbb12004-02-26 19:47:42 +0000503 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000504 as_mkdir_p=false
505fi
506
drh8b727472009-01-19 18:18:40 +0000507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
dana9f39fd2011-08-12 16:34:42 +0000520 case $1 in #(
drh8b727472009-01-19 18:18:40 +0000521 -*)set "./$1";;
522 esac;
dana9f39fd2011-08-12 16:34:42 +0000523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
drh8b727472009-01-19 18:18:40 +0000524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000529
530# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000532
533# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000535
536
drh75897232000-05-29 14:26:00 +0000537
drh71eb93e2001-09-28 01:34:43 +0000538# Check that we are running under the correct shell.
539SHELL=${CONFIG_SHELL-/bin/sh}
540
mlcreech636a9952008-05-05 22:52:56 +0000541case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000542X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000545 ;;
546esac
547
mlcreech636a9952008-05-05 22:52:56 +0000548ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000549if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
554 :
mlcreech636a9952008-05-05 22:52:56 +0000555elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000557 :
558else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
561fi
562
563if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
mlcreech636a9952008-05-05 22:52:56 +0000566 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000567$*
mlcreech636a9952008-05-05 22:52:56 +0000568_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000569 exit 0
570fi
571
572# The HP-UX ksh and POSIX shell print the target directory to stdout
573# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000575
mlcreech636a9952008-05-05 22:52:56 +0000576if test -z "$lt_ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583 then
584 break
585 fi
586 done
587 fi
drh71eb93e2001-09-28 01:34:43 +0000588
mlcreech636a9952008-05-05 22:52:56 +0000589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
592 :
593 else
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
597 #
598 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000599
mlcreech636a9952008-05-05 22:52:56 +0000600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
602 IFS="$lt_save_ifs"
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 ECHO="$dir/echo"
608 break
609 fi
610 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000611 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000612
mlcreech636a9952008-05-05 22:52:56 +0000613 if test "X$ECHO" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
619 ECHO='print -r'
620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
626 export CONFIG_SHELL
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000628 else
mlcreech636a9952008-05-05 22:52:56 +0000629 # Try using printf.
630 ECHO='printf %s\n'
631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # Cool, printf works
635 :
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641 export CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
643 export SHELL
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 ECHO="$CONFIG_SHELL $0 --fallback-echo"
650 else
651 # maybe with a smaller string...
652 prev=:
drh71eb93e2001-09-28 01:34:43 +0000653
mlcreech636a9952008-05-05 22:52:56 +0000654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656 then
657 break
658 fi
659 prev="$cmd"
660 done
661
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666 else
667 # Oops. We lost completely, so just stick with echo.
668 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000669 fi
mlcreech636a9952008-05-05 22:52:56 +0000670 fi
drh71eb93e2001-09-28 01:34:43 +0000671 fi
672 fi
673 fi
674fi
drh71eb93e2001-09-28 01:34:43 +0000675
676# Copy echo and quote the copy suitably for passing to libtool from
677# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000678lt_ECHO=$ECHO
679if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000681fi
682
drh71eb93e2001-09-28 01:34:43 +0000683
drh71eb93e2001-09-28 01:34:43 +0000684
a.rottmann9bc8b932004-02-29 15:18:31 +0000685
dana9f39fd2011-08-12 16:34:42 +0000686test -n "$DJDIR" || exec 7<&0 </dev/null
687exec 6>&1
drh8b727472009-01-19 18:18:40 +0000688
drh71eb93e2001-09-28 01:34:43 +0000689# Name of the host.
drh0fe0c462011-09-22 00:56:38 +0000690# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000691# so uname gets run too.
692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
drh71eb93e2001-09-28 01:34:43 +0000694#
695# Initializations.
696#
drh75897232000-05-29 14:26:00 +0000697ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000698ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000699ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000700LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000701cross_compiling=no
702subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000703MFLAGS=
704MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000705
a.rottmann84e63352003-03-24 09:42:16 +0000706# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000707PACKAGE_NAME='sqlite'
708PACKAGE_TARNAME='sqlite'
drh5c0c56b2011-11-25 21:51:03 +0000709PACKAGE_VERSION='3.7.10'
710PACKAGE_STRING='sqlite 3.7.10'
mlcreechb87057f2008-03-06 07:19:20 +0000711PACKAGE_BUGREPORT=''
dana9f39fd2011-08-12 16:34:42 +0000712PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000713
a.rottmann84e63352003-03-24 09:42:16 +0000714# Factoring default headers for most tests.
715ac_includes_default="\
716#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000717#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000718# include <sys/types.h>
719#endif
drh8b727472009-01-19 18:18:40 +0000720#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000721# include <sys/stat.h>
722#endif
drh8b727472009-01-19 18:18:40 +0000723#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000724# include <stdlib.h>
725# include <stddef.h>
726#else
drh8b727472009-01-19 18:18:40 +0000727# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000728# include <stdlib.h>
729# endif
a.rottmann84e63352003-03-24 09:42:16 +0000730#endif
drh8b727472009-01-19 18:18:40 +0000731#ifdef HAVE_STRING_H
732# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000733# include <memory.h>
734# endif
735# include <string.h>
736#endif
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000738# include <strings.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef HAVE_STDINT_H
744# include <stdint.h>
745#endif
746#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000747# include <unistd.h>
748#endif"
749
dana9f39fd2011-08-12 16:34:42 +0000750ac_subst_vars='LTLIBOBJS
drh934c5442009-04-13 09:09:24 +0000751LIBOBJS
dana9f39fd2011-08-12 16:34:42 +0000752BUILD_CFLAGS
753USE_GCOV
754OPT_FEATURE_FLAGS
755USE_AMALGAMATION
756TARGET_DEBUG
757TARGET_HAVE_READLINE
758TARGET_READLINE_INC
759TARGET_READLINE_LIBS
760HAVE_TCL
761TCL_STUB_LIB_SPEC
762TCL_STUB_LIB_FLAG
763TCL_STUB_LIB_FILE
764TCL_LIB_SPEC
765TCL_LIB_FLAG
766TCL_LIB_FILE
767TCL_INCLUDE_SPEC
768TCL_LIBS
769TCL_SRC_DIR
770TCL_BIN_DIR
771TCL_VERSION
772TARGET_EXEEXT
773SQLITE_OS_OS2
774SQLITE_OS_WIN
775SQLITE_OS_UNIX
776BUILD_EXEEXT
777TEMP_STORE
778ALLOWRELEASE
779XTHREADCONNECT
780SQLITE_THREADSAFE
781BUILD_CC
782VERSION_NUMBER
783RELEASE
784VERSION
785program_prefix
786TCLLIBDIR
787TCLSH_CMD
788AWK
789INSTALL_DATA
790INSTALL_SCRIPT
791INSTALL_PROGRAM
792CPP
793OTOOL64
794OTOOL
795LIPO
796NMEDIT
797DSYMUTIL
798lt_ECHO
799RANLIB
800STRIP
801AR
802OBJDUMP
803LN_S
804NM
805ac_ct_DUMPBIN
806DUMPBIN
807LD
808FGREP
809EGREP
810GREP
811SED
812OBJEXT
813EXEEXT
814ac_ct_CC
815CPPFLAGS
816LDFLAGS
817CFLAGS
818CC
819host_os
820host_vendor
821host_cpu
822host
823build_os
824build_vendor
825build_cpu
826build
827LIBTOOL
828target_alias
829host_alias
830build_alias
831LIBS
832ECHO_T
833ECHO_N
834ECHO_C
835DEFS
836mandir
837localedir
838libdir
839psdir
840pdfdir
841dvidir
842htmldir
843infodir
844docdir
845oldincludedir
846includedir
847localstatedir
848sharedstatedir
849sysconfdir
850datadir
851datarootdir
852libexecdir
853sbindir
854bindir
855program_transform_name
856prefix
857exec_prefix
858PACKAGE_URL
859PACKAGE_BUGREPORT
860PACKAGE_STRING
861PACKAGE_VERSION
862PACKAGE_TARNAME
863PACKAGE_NAME
864PATH_SEPARATOR
865SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000866ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000867ac_user_opts='
868enable_option_checking
869enable_shared
870enable_static
871with_pic
872enable_fast_install
873with_gnu_ld
874enable_libtool_lock
875enable_largefile
876with_hints
877enable_threadsafe
878enable_cross_thread_connections
drh8b727472009-01-19 18:18:40 +0000879enable_releasemode
880enable_tempstore
881enable_tcl
882with_tcl
883enable_readline
884with_readline_lib
885with_readline_inc
886enable_debug
887enable_amalgamation
888enable_load_extension
889enable_gcov
890'
891 ac_precious_vars='build_alias
892host_alias
893target_alias
894CC
895CFLAGS
896LDFLAGS
897LIBS
898CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000899CPP
900TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000901
drh75897232000-05-29 14:26:00 +0000902
903# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000904ac_init_help=
905ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000906ac_unrecognized_opts=
907ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000908# The variables have the same names as the options, with
909# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000910cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000911exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000912no_create=
drh75897232000-05-29 14:26:00 +0000913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
drh75897232000-05-29 14:26:00 +0000921verbose=
922x_includes=NONE
923x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000930# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000939includedir='${prefix}/include'
940oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000941docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000950
drh75897232000-05-29 14:26:00 +0000951ac_prev=
drh8b727472009-01-19 18:18:40 +0000952ac_dashdash=
drh75897232000-05-29 14:26:00 +0000953for ac_option
954do
drh75897232000-05-29 14:26:00 +0000955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000957 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000958 ac_prev=
959 continue
960 fi
961
drh8b727472009-01-19 18:18:40 +0000962 case $ac_option in
drh0fe0c462011-09-22 00:56:38 +0000963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000966 esac
drh75897232000-05-29 14:26:00 +0000967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
drh8b727472009-01-19 18:18:40 +0000970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000977 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000978
979 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000980 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000982 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000993
drh8b727472009-01-19 18:18:40 +0000994 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +0000995 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +0000996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +0000997 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000998
drh8b727472009-01-19 18:18:40 +0000999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
drh75897232000-05-29 14:26:00 +00001006 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001008 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh0fe0c462011-09-22 00:56:38 +00001010 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001031
1032 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001034 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh0fe0c462011-09-22 00:56:38 +00001036 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001045 esac
drh8b727472009-01-19 18:18:40 +00001046 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001055 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
drh71eb93e2001-09-28 01:34:43 +00001061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001067
1068 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001069 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001070 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001071 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001072
drh8b727472009-01-19 18:18:40 +00001073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
drh75897232000-05-29 14:26:00 +00001079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001084 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001089 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001094 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001101 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001102
drh8b727472009-01-19 18:18:40 +00001103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
drh75897232000-05-29 14:26:00 +00001108 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001109 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001113 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001118 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001125 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001139 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001144 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001151 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001158 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001175 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001176
drh8b727472009-01-19 18:18:40 +00001177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
drh75897232000-05-29 14:26:00 +00001187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001195 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001206 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001211 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001216 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001223 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001226 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001228 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
drh71eb93e2001-09-28 01:34:43 +00001233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001235
1236 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001238 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh0fe0c462011-09-22 00:56:38 +00001240 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001249 esac
drh8b727472009-01-19 18:18:40 +00001250 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001251
1252 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001254 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh0fe0c462011-09-22 00:56:38 +00001256 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001277 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001284 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001285
drh0fe0c462011-09-22 00:56:38 +00001286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001288 ;;
1289
drh71eb93e2001-09-28 01:34:43 +00001290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
dana9f39fd2011-08-12 16:34:42 +00001293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
drh0fe0c462011-09-22 00:56:38 +00001295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
dana9f39fd2011-08-12 16:34:42 +00001296 esac
drh8b727472009-01-19 18:18:40 +00001297 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001298 export $ac_envvar ;;
1299
drh75897232000-05-29 14:26:00 +00001300 *)
drh71eb93e2001-09-28 01:34:43 +00001301 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh6a8ab6d2011-11-09 01:53:25 +00001305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001306 ;;
1307
1308 esac
1309done
1310
1311if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh0fe0c462011-09-22 00:56:38 +00001313 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001314fi
1315
drh8b727472009-01-19 18:18:40 +00001316if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
drh0fe0c462011-09-22 00:56:38 +00001319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
dana9f39fd2011-08-12 16:34:42 +00001320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001321 esac
drh8b727472009-01-19 18:18:40 +00001322fi
drh866108f2008-05-13 00:57:21 +00001323
drh8b727472009-01-19 18:18:40 +00001324# Check all directory arguments for consistency.
1325for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001329do
drh8b727472009-01-19 18:18:40 +00001330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001332 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001336 esac
drh8b727472009-01-19 18:18:40 +00001337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
drh0fe0c462011-09-22 00:56:38 +00001342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001343done
drh75897232000-05-29 14:26:00 +00001344
drh71eb93e2001-09-28 01:34:43 +00001345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001347# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001348build=$build_alias
1349host=$host_alias
1350target=$target_alias
drh75897232000-05-29 14:26:00 +00001351
a.rottmann84e63352003-03-24 09:42:16 +00001352# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
drh0fe0c462011-09-22 00:56:38 +00001356 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used" >&2
drh71eb93e2001-09-28 01:34:43 +00001358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001367
a.rottmann84e63352003-03-24 09:42:16 +00001368
drh8b727472009-01-19 18:18:40 +00001369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh0fe0c462011-09-22 00:56:38 +00001372 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001373test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drh0fe0c462011-09-22 00:56:38 +00001374 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001375
1376
drh75897232000-05-29 14:26:00 +00001377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386$as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001404 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001405 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001406 srcdir=..
1407 fi
1408else
1409 ac_srcdir_defaulted=no
1410fi
drh8b727472009-01-19 18:18:40 +00001411if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drh0fe0c462011-09-22 00:56:38 +00001413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001414fi
drh8b727472009-01-19 18:18:40 +00001415ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416ac_abs_confdir=`(
drh0fe0c462011-09-22 00:56:38 +00001417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001418 pwd)`
1419# When building in place, set srcdir=.
1420if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422fi
1423# Remove unnecessary trailing slashes from srcdir.
1424# Double slashes in file names in object file debugging info
1425# mess up M-x gdb in Emacs.
1426case $srcdir in
1427*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428esac
1429for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434done
drh75897232000-05-29 14:26:00 +00001435
drh71eb93e2001-09-28 01:34:43 +00001436#
1437# Report the --help message.
1438#
1439if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001442 cat <<_ACEOF
drh5c0c56b2011-11-25 21:51:03 +00001443\`configure' configures sqlite 3.7.10 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001444
1445Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450Defaults for the options are specified in brackets.
1451
1452Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
drh0fe0c462011-09-22 00:56:38 +00001457 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
drh71eb93e2001-09-28 01:34:43 +00001463Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001465 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001467 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001468
1469By default, \`make install' will install all the files in
1470\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472for instance \`--prefix=\$HOME'.
1473
1474For better control, use the options below.
1475
1476Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001496_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001497
a.rottmann84e63352003-03-24 09:42:16 +00001498 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001499
1500System types:
1501 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001504fi
1505
1506if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001507 case $ac_init_help in
drh5c0c56b2011-11-25 21:51:03 +00001508 short | recursive ) echo "Configuration of sqlite 3.7.10:";;
mlcreechb87057f2008-03-06 07:19:20 +00001509 esac
a.rottmann84e63352003-03-24 09:42:16 +00001510 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001511
1512Optional Features:
drh8b727472009-01-19 18:18:40 +00001513 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001520 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001521 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001522 --enable-threadsafe Support threadsafe operation
1523 --enable-cross-thread-connections
1524 Allow connection sharing across threads
drh94e4f822006-02-15 02:00:25 +00001525 --enable-releasemode Support libtool link to release mode
1526 --enable-tempstore Use an in-ram database for temporary tables
1527 (never,no,yes,always)
1528 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001529 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001530 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001531 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001532 separately
mlcreecha4edab02008-03-06 04:14:17 +00001533 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001534 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001535
1536Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001539 --with-pic try to use only PIC/non-PIC objects [default=use
1540 both]
mlcreech636a9952008-05-05 22:52:56 +00001541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001542 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001543 --with-tcl=DIR directory containing tcl configuration
1544 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001545 --with-readline-lib specify readline library
1546 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001547
1548Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001553 LIBS libraries to pass to the linker, e.g. -l<library>
dana9f39fd2011-08-12 16:34:42 +00001554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001555 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001556 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001557 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001558
1559Use these variables to override the choices made by `configure' or to help
1560it to find libraries and programs with nonstandard names/locations.
1561
dana9f39fd2011-08-12 16:34:42 +00001562Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001563_ACEOF
drh8b727472009-01-19 18:18:40 +00001564ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001565fi
1566
1567if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
a.rottmann84e63352003-03-24 09:42:16 +00001573 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001574
drh8b727472009-01-19 18:18:40 +00001575case "$ac_dir" in
1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577*)
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585esac
1586ac_abs_top_builddir=$ac_pwd
1587ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588# for backward compatibility:
1589ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001590
a.rottmann84e63352003-03-24 09:42:16 +00001591case $srcdir in
drh8b727472009-01-19 18:18:40 +00001592 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001593 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001597 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001604esac
drh8b727472009-01-19 18:18:40 +00001605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001606
drh8b727472009-01-19 18:18:40 +00001607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001615 else
drh8b727472009-01-19 18:18:40 +00001616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001619 done
1620fi
1621
drh8b727472009-01-19 18:18:40 +00001622test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001623if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001624 cat <<\_ACEOF
drh5c0c56b2011-11-25 21:51:03 +00001625sqlite configure 3.7.10
drh6a8ab6d2011-11-09 01:53:25 +00001626generated by GNU Autoconf 2.68
drh71eb93e2001-09-28 01:34:43 +00001627
drh0fe0c462011-09-22 00:56:38 +00001628Copyright (C) 2010 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001629This configure script is free software; the Free Software Foundation
1630gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001631_ACEOF
drh8b727472009-01-19 18:18:40 +00001632 exit
drh71eb93e2001-09-28 01:34:43 +00001633fi
dana9f39fd2011-08-12 16:34:42 +00001634
1635## ------------------------ ##
1636## Autoconf initialization. ##
1637## ------------------------ ##
1638
1639# ac_fn_c_try_compile LINENO
1640# --------------------------
1641# Try to compile conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_compile ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1647case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652$as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1665 ac_retval=0
1666else
1667 $as_echo "$as_me: failed program was:" >&5
1668sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671fi
drh6a8ab6d2011-11-09 01:53:25 +00001672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001673 as_fn_set_status $ac_retval
1674
1675} # ac_fn_c_try_compile
1676
1677# ac_fn_c_try_link LINENO
1678# -----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_link ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 $as_test_x conftest$ac_exeext
1705 }; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
drh6a8ab6d2011-11-09 01:53:25 +00001718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_link
1722
1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists and can be compiled using the include files in
1726# INCLUDES, setting the cache variable VAR accordingly.
1727ac_fn_c_check_header_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001732if eval \${$3+:} false; then :
dana9f39fd2011-08-12 16:34:42 +00001733 $as_echo_n "(cached) " >&6
1734else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h. */
1737$4
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741 eval "$3=yes"
1742else
1743 eval "$3=no"
1744fi
1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746fi
1747eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001751
1752} # ac_fn_c_check_header_compile
1753
1754# ac_fn_c_try_cpp LINENO
1755# ----------------------
1756# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_cpp ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
drh0fe0c462011-09-22 00:56:38 +00001775 test $ac_status = 0; } > conftest.i && {
dana9f39fd2011-08-12 16:34:42 +00001776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
drh6a8ab6d2011-11-09 01:53:25 +00001786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001787 as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_cpp
1790
1791# ac_fn_c_try_run LINENO
1792# ----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794# that executables *can* be run.
1795ac_fn_c_try_run ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>&5
1806 ac_status=$?
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809 { { case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_try") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; }; }; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: program exited with status $ac_status" >&5
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=$ac_status
1826fi
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
drh6a8ab6d2011-11-09 01:53:25 +00001828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001829 as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_run
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001841if eval \${$3+:} false; then :
dana9f39fd2011-08-12 16:34:42 +00001842 $as_echo_n "(cached) " >&6
1843else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h. */
1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887else
1888 eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001897
1898} # ac_fn_c_check_func
1899
1900# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901# -------------------------------------------
1902# Tests whether TYPE exists after having included INCLUDES, setting cache
1903# variable VAR accordingly.
1904ac_fn_c_check_type ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001909if eval \${$3+:} false; then :
dana9f39fd2011-08-12 16:34:42 +00001910 $as_echo_n "(cached) " >&6
1911else
1912 eval "$3=no"
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916int
1917main ()
1918{
1919if (sizeof ($2))
1920 return 0;
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932if (sizeof (($2)))
1933 return 0;
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939
1940else
1941 eval "$3=yes"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00001951
1952} # ac_fn_c_check_type
1953
1954# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1955# -------------------------------------------------------
1956# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1957# the include files in INCLUDES and setting the cache variable VAR
1958# accordingly.
1959ac_fn_c_check_header_mongrel ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
drh6a8ab6d2011-11-09 01:53:25 +00001962 if eval \${$3+:} false; then :
dana9f39fd2011-08-12 16:34:42 +00001963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00001965if eval \${$3+:} false; then :
dana9f39fd2011-08-12 16:34:42 +00001966 $as_echo_n "(cached) " >&6
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971else
1972 # Is the header compilable?
1973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1974$as_echo_n "checking $2 usability... " >&6; }
1975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978#include <$2>
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_header_compiler=yes
1982else
1983 ac_header_compiler=no
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1987$as_echo "$ac_header_compiler" >&6; }
1988
1989# Is the header present?
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1991$as_echo_n "checking $2 presence... " >&6; }
1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994#include <$2>
1995_ACEOF
1996if ac_fn_c_try_cpp "$LINENO"; then :
1997 ac_header_preproc=yes
1998else
1999 ac_header_preproc=no
2000fi
drh0fe0c462011-09-22 00:56:38 +00002001rm -f conftest.err conftest.i conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00002002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2003$as_echo "$ac_header_preproc" >&6; }
2004
2005# So? What about this header?
2006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2007 yes:no: )
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2009$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ;;
2013 no:yes:* )
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2015$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2017$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2019$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2021$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 ;;
2025esac
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027$as_echo_n "checking for $2... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002028if eval \${$3+:} false; then :
dana9f39fd2011-08-12 16:34:42 +00002029 $as_echo_n "(cached) " >&6
2030else
2031 eval "$3=\$ac_header_compiler"
2032fi
2033eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036fi
drh6a8ab6d2011-11-09 01:53:25 +00002037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dana9f39fd2011-08-12 16:34:42 +00002038
2039} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002040cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002041This file contains any messages produced by compilers while
2042running configure, to aid debugging if configure makes a mistake.
2043
drh5c0c56b2011-11-25 21:51:03 +00002044It was created by sqlite $as_me 3.7.10, which was
drh6a8ab6d2011-11-09 01:53:25 +00002045generated by GNU Autoconf 2.68. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002046
2047 $ $0 $@
2048
a.rottmann84e63352003-03-24 09:42:16 +00002049_ACEOF
drh8b727472009-01-19 18:18:40 +00002050exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002051{
2052cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002053## --------- ##
2054## Platform. ##
2055## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002056
2057hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062
2063/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2065
2066/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2067/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2068/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002069/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002070/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2071/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2072/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2073
drh71eb93e2001-09-28 01:34:43 +00002074_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002075
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002081 $as_echo "PATH: $as_dir"
2082 done
drh8b727472009-01-19 18:18:40 +00002083IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002084
drh71eb93e2001-09-28 01:34:43 +00002085} >&5
2086
a.rottmann84e63352003-03-24 09:42:16 +00002087cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002088
a.rottmann84e63352003-03-24 09:42:16 +00002089
2090## ----------- ##
2091## Core tests. ##
2092## ----------- ##
2093
2094_ACEOF
2095
drh71eb93e2001-09-28 01:34:43 +00002096
2097# Keep a trace of the command line.
2098# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002099# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002100# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002101# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002102ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002103ac_configure_args0=
2104ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002105ac_must_keep_next=false
2106for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002107do
a.rottmann84e63352003-03-24 09:42:16 +00002108 for ac_arg
2109 do
2110 case $ac_arg in
2111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113 | -silent | --silent | --silen | --sile | --sil)
2114 continue ;;
drh8b727472009-01-19 18:18:40 +00002115 *\'*)
2116 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002117 esac
2118 case $ac_pass in
dana9f39fd2011-08-12 16:34:42 +00002119 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002120 2)
dana9f39fd2011-08-12 16:34:42 +00002121 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002122 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002123 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002124 else
a.rottmann964dbb12004-02-26 19:47:42 +00002125 case $ac_arg in
2126 *=* | --config-cache | -C | -disable-* | --disable-* \
2127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129 | -with-* | --with-* | -without-* | --without-* | --x)
2130 case "$ac_configure_args0 " in
2131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132 esac
2133 ;;
2134 -* ) ac_must_keep_next=true ;;
2135 esac
a.rottmann84e63352003-03-24 09:42:16 +00002136 fi
dana9f39fd2011-08-12 16:34:42 +00002137 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002138 ;;
2139 esac
2140 done
drh71eb93e2001-09-28 01:34:43 +00002141done
dana9f39fd2011-08-12 16:34:42 +00002142{ ac_configure_args0=; unset ac_configure_args0;}
2143{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002144
2145# When interrupted or exit'd, cleanup temporary files, and complete
2146# config.log. We remove comments because anyway the quotes in there
2147# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002148# WARNING: Use '\'' to represent an apostrophe within the trap.
2149# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002150trap 'exit_status=$?
2151 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002152 {
2153 echo
2154
drh0fe0c462011-09-22 00:56:38 +00002155 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002156## Cache variables. ##
drh0fe0c462011-09-22 00:56:38 +00002157## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002158 echo
2159 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002160(
2161 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in #(
2164 *${as_nl}*)
2165 case $ac_var in #(
dana9f39fd2011-08-12 16:34:42 +00002166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002168 esac
2169 case $ac_var in #(
2170 _ | IFS | as_nl) ;; #(
2171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dana9f39fd2011-08-12 16:34:42 +00002172 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002173 esac ;;
2174 esac
2175 done
drh71eb93e2001-09-28 01:34:43 +00002176 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002177 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002179 sed -n \
drh8b727472009-01-19 18:18:40 +00002180 "s/'\''/'\''\\\\'\'''\''/g;
2181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2182 ;; #(
drh866108f2008-05-13 00:57:21 +00002183 *)
drh8b727472009-01-19 18:18:40 +00002184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002185 ;;
drh8b727472009-01-19 18:18:40 +00002186 esac |
2187 sort
2188)
a.rottmann84e63352003-03-24 09:42:16 +00002189 echo
2190
drh0fe0c462011-09-22 00:56:38 +00002191 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002192## Output variables. ##
drh0fe0c462011-09-22 00:56:38 +00002193## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002194 echo
2195 for ac_var in $ac_subst_vars
2196 do
drh8b727472009-01-19 18:18:40 +00002197 eval ac_val=\$$ac_var
2198 case $ac_val in
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200 esac
2201 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002202 done | sort
2203 echo
2204
2205 if test -n "$ac_subst_files"; then
drh0fe0c462011-09-22 00:56:38 +00002206 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002207## File substitutions. ##
drh0fe0c462011-09-22 00:56:38 +00002208## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002209 echo
2210 for ac_var in $ac_subst_files
2211 do
drh8b727472009-01-19 18:18:40 +00002212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002217 done | sort
2218 echo
2219 fi
2220
2221 if test -s confdefs.h; then
drh0fe0c462011-09-22 00:56:38 +00002222 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002223## confdefs.h. ##
drh0fe0c462011-09-22 00:56:38 +00002224## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002225 echo
drh8b727472009-01-19 18:18:40 +00002226 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002227 echo
2228 fi
2229 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002230 $as_echo "$as_me: caught signal $ac_signal"
2231 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002232 } >&5
drh8b727472009-01-19 18:18:40 +00002233 rm -f core *.core core.conftest.* &&
2234 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002235 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002236' 0
drh71eb93e2001-09-28 01:34:43 +00002237for ac_signal in 1 2 13 15; do
dana9f39fd2011-08-12 16:34:42 +00002238 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002239done
2240ac_signal=0
2241
2242# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002243rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002244
dana9f39fd2011-08-12 16:34:42 +00002245$as_echo "/* confdefs.h */" > confdefs.h
2246
a.rottmann84e63352003-03-24 09:42:16 +00002247# Predefined preprocessor variables.
2248
2249cat >>confdefs.h <<_ACEOF
2250#define PACKAGE_NAME "$PACKAGE_NAME"
2251_ACEOF
2252
a.rottmann84e63352003-03-24 09:42:16 +00002253cat >>confdefs.h <<_ACEOF
2254#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255_ACEOF
2256
a.rottmann84e63352003-03-24 09:42:16 +00002257cat >>confdefs.h <<_ACEOF
2258#define PACKAGE_VERSION "$PACKAGE_VERSION"
2259_ACEOF
2260
a.rottmann84e63352003-03-24 09:42:16 +00002261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_STRING "$PACKAGE_STRING"
2263_ACEOF
2264
a.rottmann84e63352003-03-24 09:42:16 +00002265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267_ACEOF
2268
dana9f39fd2011-08-12 16:34:42 +00002269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_URL "$PACKAGE_URL"
2271_ACEOF
2272
a.rottmann84e63352003-03-24 09:42:16 +00002273
drh71eb93e2001-09-28 01:34:43 +00002274# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002275# Prefer an explicitly selected file to automatically selected ones.
2276ac_site_file1=NONE
2277ac_site_file2=NONE
2278if test -n "$CONFIG_SITE"; then
drh0fe0c462011-09-22 00:56:38 +00002279 # We do not want a PATH search for config.site.
2280 case $CONFIG_SITE in #((
2281 -*) ac_site_file1=./$CONFIG_SITE;;
2282 */*) ac_site_file1=$CONFIG_SITE;;
2283 *) ac_site_file1=./$CONFIG_SITE;;
2284 esac
drh8b727472009-01-19 18:18:40 +00002285elif test "x$prefix" != xNONE; then
2286 ac_site_file1=$prefix/share/config.site
2287 ac_site_file2=$prefix/etc/config.site
2288else
2289 ac_site_file1=$ac_default_prefix/share/config.site
2290 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002291fi
drh8b727472009-01-19 18:18:40 +00002292for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2293do
2294 test "x$ac_site_file" = xNONE && continue
dana9f39fd2011-08-12 16:34:42 +00002295 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002297$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002298 sed 's/^/| /' "$ac_site_file" >&5
drh0fe0c462011-09-22 00:56:38 +00002299 . "$ac_site_file" \
2300 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302as_fn_error $? "failed to load site script $ac_site_file
drh6a8ab6d2011-11-09 01:53:25 +00002303See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002304 fi
2305done
2306
2307if test -r "$cache_file"; then
dana9f39fd2011-08-12 16:34:42 +00002308 # Some versions of bash will fail to source /dev/null (special files
2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002312$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002313 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002316 esac
2317 fi
drh75897232000-05-29 14:26:00 +00002318else
dana9f39fd2011-08-12 16:34:42 +00002319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002320$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002321 >$cache_file
2322fi
2323
2324# Check that the precious variables saved in the cache have kept the same
2325# value.
2326ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002327for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002328 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2329 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002330 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2331 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002332 case $ac_old_set,$ac_new_set in
2333 set,)
dana9f39fd2011-08-12 16:34:42 +00002334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002335$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002336 ac_cache_corrupted=: ;;
2337 ,set)
dana9f39fd2011-08-12 16:34:42 +00002338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002339$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002340 ac_cache_corrupted=: ;;
2341 ,);;
2342 *)
2343 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002344 # differences in whitespace do not lead to failure.
2345 ac_old_val_w=`echo x $ac_old_val`
2346 ac_new_val_w=`echo x $ac_new_val`
2347 if test "$ac_old_val_w" != "$ac_new_val_w"; then
dana9f39fd2011-08-12 16:34:42 +00002348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002349$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2350 ac_cache_corrupted=:
2351 else
dana9f39fd2011-08-12 16:34:42 +00002352 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002353$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2354 eval $ac_var=\$ac_old_val
2355 fi
dana9f39fd2011-08-12 16:34:42 +00002356 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002357$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
dana9f39fd2011-08-12 16:34:42 +00002358 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002359$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002360 fi;;
2361 esac
a.rottmann84e63352003-03-24 09:42:16 +00002362 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002363 if test "$ac_new_set" = set; then
2364 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002365 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002366 *) ac_arg=$ac_var=$ac_new_val ;;
2367 esac
2368 case " $ac_configure_args " in
2369 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
dana9f39fd2011-08-12 16:34:42 +00002370 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002371 esac
2372 fi
2373done
2374if $ac_cache_corrupted; then
dana9f39fd2011-08-12 16:34:42 +00002375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002378$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drh0fe0c462011-09-22 00:56:38 +00002379 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002380fi
dana9f39fd2011-08-12 16:34:42 +00002381## -------------------- ##
2382## Main body of script. ##
2383## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002384
drh75897232000-05-29 14:26:00 +00002385ac_ext=c
drh75897232000-05-29 14:26:00 +00002386ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002390
a.rottmann84e63352003-03-24 09:42:16 +00002391
2392
drh04446102009-06-15 00:04:06 +00002393sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002394if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drh0fe0c462011-09-22 00:56:38 +00002395as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002396 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2397 top level VERSION file = $sqlite_version_sanity_check
dana9f39fd2011-08-12 16:34:42 +00002398please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002399fi
2400
drh75897232000-05-29 14:26:00 +00002401# The following RCS revision string applies to configure.in
drhcee4c932009-08-24 19:37:20 +00002402# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00002403
2404#########
drh71eb93e2001-09-28 01:34:43 +00002405# Programs needed
drh75897232000-05-29 14:26:00 +00002406#
mlcreech636a9952008-05-05 22:52:56 +00002407case `pwd` in
2408 *\ * | *\ *)
dana9f39fd2011-08-12 16:34:42 +00002409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002410$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002411esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002412
mlcreech94984912008-03-04 19:03:08 +00002413
mlcreech636a9952008-05-05 22:52:56 +00002414
vapier6acb2cf2009-01-28 04:46:28 +00002415macro_version='2.2.6'
2416macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002417
mlcreech94984912008-03-04 19:03:08 +00002418
mlcreech94984912008-03-04 19:03:08 +00002419
a.rottmann9bc8b932004-02-29 15:18:31 +00002420
mlcreech636a9952008-05-05 22:52:56 +00002421
2422
2423
2424
2425
2426
2427
2428
2429
2430ltmain="$ac_aux_dir/ltmain.sh"
2431
drh71eb93e2001-09-28 01:34:43 +00002432ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002433for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002434 if test -f "$ac_dir/install-sh"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/install-sh -c"
2437 break
2438 elif test -f "$ac_dir/install.sh"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/install.sh -c"
2441 break
2442 elif test -f "$ac_dir/shtool"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/shtool install -c"
2445 break
2446 fi
drh71eb93e2001-09-28 01:34:43 +00002447done
2448if test -z "$ac_aux_dir"; then
drh0fe0c462011-09-22 00:56:38 +00002449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002450fi
drh8b727472009-01-19 18:18:40 +00002451
2452# These three variables are undocumented and unsupported,
2453# and are intended to be withdrawn in a future Autoconf release.
2454# They can cause serious problems if a builder's source tree is in a directory
2455# whose full name contains unusual characters.
2456ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2457ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2458ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2459
drh71eb93e2001-09-28 01:34:43 +00002460
2461# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002462$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drh0fe0c462011-09-22 00:56:38 +00002463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002464
dana9f39fd2011-08-12 16:34:42 +00002465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002466$as_echo_n "checking build system type... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002467if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002468 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002469else
drh8b727472009-01-19 18:18:40 +00002470 ac_build_alias=$build_alias
2471test "x$ac_build_alias" = x &&
2472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2473test "x$ac_build_alias" = x &&
drh0fe0c462011-09-22 00:56:38 +00002474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002475ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drh0fe0c462011-09-22 00:56:38 +00002476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002477
2478fi
dana9f39fd2011-08-12 16:34:42 +00002479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002480$as_echo "$ac_cv_build" >&6; }
2481case $ac_cv_build in
2482*-*-*) ;;
drh6a8ab6d2011-11-09 01:53:25 +00002483*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002484esac
drh71eb93e2001-09-28 01:34:43 +00002485build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002486ac_save_IFS=$IFS; IFS='-'
2487set x $ac_cv_build
2488shift
2489build_cpu=$1
2490build_vendor=$2
2491shift; shift
2492# Remember, the first character of IFS is used to create $*,
2493# except with old shells:
2494build_os=$*
2495IFS=$ac_save_IFS
2496case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002497
a.rottmann84e63352003-03-24 09:42:16 +00002498
dana9f39fd2011-08-12 16:34:42 +00002499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002500$as_echo_n "checking host system type... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002501if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002502 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002503else
drh8b727472009-01-19 18:18:40 +00002504 if test "x$host_alias" = x; then
2505 ac_cv_host=$ac_cv_build
2506else
2507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drh0fe0c462011-09-22 00:56:38 +00002508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002509fi
drh71eb93e2001-09-28 01:34:43 +00002510
2511fi
dana9f39fd2011-08-12 16:34:42 +00002512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002513$as_echo "$ac_cv_host" >&6; }
2514case $ac_cv_host in
2515*-*-*) ;;
drh6a8ab6d2011-11-09 01:53:25 +00002516*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002517esac
drh71eb93e2001-09-28 01:34:43 +00002518host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002519ac_save_IFS=$IFS; IFS='-'
2520set x $ac_cv_host
2521shift
2522host_cpu=$1
2523host_vendor=$2
2524shift; shift
2525# Remember, the first character of IFS is used to create $*,
2526# except with old shells:
2527host_os=$*
2528IFS=$ac_save_IFS
2529case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002530
a.rottmann84e63352003-03-24 09:42:16 +00002531
drh71eb93e2001-09-28 01:34:43 +00002532ac_ext=c
2533ac_cpp='$CPP $CPPFLAGS'
2534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2539set dummy ${ac_tool_prefix}gcc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002541$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002542if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002543 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002544else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547else
a.rottmann84e63352003-03-24 09:42:16 +00002548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002553 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dana9f39fd2011-08-12 16:34:42 +00002556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002557 break 2
2558 fi
2559done
dana9f39fd2011-08-12 16:34:42 +00002560 done
drh8b727472009-01-19 18:18:40 +00002561IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002562
2563fi
2564fi
2565CC=$ac_cv_prog_CC
2566if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002568$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002569else
dana9f39fd2011-08-12 16:34:42 +00002570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002571$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002572fi
2573
drh8b727472009-01-19 18:18:40 +00002574
drh71eb93e2001-09-28 01:34:43 +00002575fi
2576if test -z "$ac_cv_prog_CC"; then
2577 ac_ct_CC=$CC
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579set dummy gcc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002581$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002582if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002583 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002584else
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587else
a.rottmann84e63352003-03-24 09:42:16 +00002588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002593 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002595 ac_cv_prog_ac_ct_CC="gcc"
dana9f39fd2011-08-12 16:34:42 +00002596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002597 break 2
2598 fi
2599done
dana9f39fd2011-08-12 16:34:42 +00002600 done
drh8b727472009-01-19 18:18:40 +00002601IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002602
2603fi
2604fi
2605ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606if test -n "$ac_ct_CC"; then
dana9f39fd2011-08-12 16:34:42 +00002607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002608$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002609else
dana9f39fd2011-08-12 16:34:42 +00002610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002611$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002612fi
2613
drh8b727472009-01-19 18:18:40 +00002614 if test "x$ac_ct_CC" = x; then
2615 CC=""
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618yes:)
dana9f39fd2011-08-12 16:34:42 +00002619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002621ac_tool_warned=yes ;;
2622esac
2623 CC=$ac_ct_CC
2624 fi
drh71eb93e2001-09-28 01:34:43 +00002625else
2626 CC="$ac_cv_prog_CC"
2627fi
2628
2629if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002632set dummy ${ac_tool_prefix}cc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002634$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002635if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002636 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002637else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
a.rottmann84e63352003-03-24 09:42:16 +00002641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002646 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002648 ac_cv_prog_CC="${ac_tool_prefix}cc"
dana9f39fd2011-08-12 16:34:42 +00002649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002650 break 2
2651 fi
2652done
dana9f39fd2011-08-12 16:34:42 +00002653 done
drh8b727472009-01-19 18:18:40 +00002654IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002655
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002661$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002662else
dana9f39fd2011-08-12 16:34:42 +00002663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002664$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002665fi
2666
drh8b727472009-01-19 18:18:40 +00002667
a.rottmann84e63352003-03-24 09:42:16 +00002668 fi
drh71eb93e2001-09-28 01:34:43 +00002669fi
2670if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672set dummy cc; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002674$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002675if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002676 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002677else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002687 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2692 fi
2693 ac_cv_prog_CC="cc"
dana9f39fd2011-08-12 16:34:42 +00002694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002695 break 2
2696 fi
2697done
dana9f39fd2011-08-12 16:34:42 +00002698 done
drh8b727472009-01-19 18:18:40 +00002699IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002700
2701if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
a.rottmann84e63352003-03-24 09:42:16 +00002710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002711 fi
2712fi
2713fi
2714fi
2715CC=$ac_cv_prog_CC
2716if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002718$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002719else
dana9f39fd2011-08-12 16:34:42 +00002720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002721$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002722fi
2723
drh8b727472009-01-19 18:18:40 +00002724
drh71eb93e2001-09-28 01:34:43 +00002725fi
2726if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002728 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002729 do
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002733$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002734if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002735 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002736else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739else
a.rottmann84e63352003-03-24 09:42:16 +00002740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002745 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00002748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002749 break 2
2750 fi
2751done
dana9f39fd2011-08-12 16:34:42 +00002752 done
drh8b727472009-01-19 18:18:40 +00002753IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002754
2755fi
2756fi
2757CC=$ac_cv_prog_CC
2758if test -n "$CC"; then
dana9f39fd2011-08-12 16:34:42 +00002759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002760$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002761else
dana9f39fd2011-08-12 16:34:42 +00002762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002763$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002764fi
2765
drh8b727472009-01-19 18:18:40 +00002766
drh71eb93e2001-09-28 01:34:43 +00002767 test -n "$CC" && break
2768 done
2769fi
2770if test -z "$CC"; then
2771 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002772 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002773do
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00002776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002777$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00002778if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002779 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002780else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783else
a.rottmann84e63352003-03-24 09:42:16 +00002784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00002789 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002791 ac_cv_prog_ac_ct_CC="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00002792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002793 break 2
2794 fi
2795done
dana9f39fd2011-08-12 16:34:42 +00002796 done
drh8b727472009-01-19 18:18:40 +00002797IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002798
2799fi
2800fi
2801ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802if test -n "$ac_ct_CC"; then
dana9f39fd2011-08-12 16:34:42 +00002803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002804$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002805else
dana9f39fd2011-08-12 16:34:42 +00002806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002807$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002808fi
2809
drh8b727472009-01-19 18:18:40 +00002810
drh71eb93e2001-09-28 01:34:43 +00002811 test -n "$ac_ct_CC" && break
2812done
2813
drh8b727472009-01-19 18:18:40 +00002814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818yes:)
dana9f39fd2011-08-12 16:34:42 +00002819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002821ac_tool_warned=yes ;;
2822esac
2823 CC=$ac_ct_CC
2824 fi
drh71eb93e2001-09-28 01:34:43 +00002825fi
2826
2827fi
2828
a.rottmann84e63352003-03-24 09:42:16 +00002829
dana9f39fd2011-08-12 16:34:42 +00002830test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh0fe0c462011-09-22 00:56:38 +00002832as_fn_error $? "no acceptable C compiler found in \$PATH
drh6a8ab6d2011-11-09 01:53:25 +00002833See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002834
2835# Provide some information about the compiler.
dana9f39fd2011-08-12 16:34:42 +00002836$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002837set X $ac_compile
2838ac_compiler=$2
dana9f39fd2011-08-12 16:34:42 +00002839for ac_option in --version -v -V -qversion; do
2840 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
dana9f39fd2011-08-12 16:34:42 +00002845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846$as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002848 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00002849 if test -s conftest.err; then
2850 sed '10a\
2851... rest of stderr output deleted ...
2852 10q' conftest.err >conftest.er1
2853 cat conftest.er1 >&5
2854 fi
2855 rm -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2858done
drh71eb93e2001-09-28 01:34:43 +00002859
dana9f39fd2011-08-12 16:34:42 +00002860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002861/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002862
2863int
2864main ()
2865{
2866
2867 ;
2868 return 0;
2869}
2870_ACEOF
2871ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002872ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002873# Try to create an executable without -o first, disregard a.out.
2874# It will help us diagnose broken compilers, and finding out an intuition
2875# of exeext.
dana9f39fd2011-08-12 16:34:42 +00002876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2877$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002878ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002879
drh8b727472009-01-19 18:18:40 +00002880# The possible output files:
2881ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2882
2883ac_rmfiles=
2884for ac_file in $ac_files
2885do
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2889 esac
2890done
2891rm -f $ac_rmfiles
2892
dana9f39fd2011-08-12 16:34:42 +00002893if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
dana9f39fd2011-08-12 16:34:42 +00002898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002900 (eval "$ac_link_default") 2>&5
2901 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00002902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906# in a Makefile. We should not override ac_cv_exeext if it was cached,
2907# so that the user can short-circuit this test for compilers unknown to
2908# Autoconf.
2909for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002910do
2911 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002912 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002914 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002915 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002916 # We found the default executable, but exeext='' is most
2917 # certainly right.
2918 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002919 *.* )
dana9f39fd2011-08-12 16:34:42 +00002920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002921 then :; else
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 fi
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2928 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002929 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002930 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002931 break;;
drh71eb93e2001-09-28 01:34:43 +00002932 esac
2933done
drh8b727472009-01-19 18:18:40 +00002934test "$ac_cv_exeext" = no && ac_cv_exeext=
2935
drh71eb93e2001-09-28 01:34:43 +00002936else
drh8b727472009-01-19 18:18:40 +00002937 ac_file=''
2938fi
dana9f39fd2011-08-12 16:34:42 +00002939if test -z "$ac_file"; then :
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002943sed 's/^/| /' conftest.$ac_ext >&5
2944
dana9f39fd2011-08-12 16:34:42 +00002945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh0fe0c462011-09-22 00:56:38 +00002947as_fn_error 77 "C compiler cannot create executables
drh6a8ab6d2011-11-09 01:53:25 +00002948See \`config.log' for more details" "$LINENO" 5; }
dana9f39fd2011-08-12 16:34:42 +00002949else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00002951$as_echo "yes" >&6; }
dana9f39fd2011-08-12 16:34:42 +00002952fi
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2954$as_echo_n "checking for C compiler default output file name... " >&6; }
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2956$as_echo "$ac_file" >&6; }
2957ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002958
drh8b727472009-01-19 18:18:40 +00002959rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002960ac_clean_files=$ac_clean_files_save
dana9f39fd2011-08-12 16:34:42 +00002961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002962$as_echo_n "checking for suffix of executables... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00002963if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002964case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
dana9f39fd2011-08-12 16:34:42 +00002968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002970 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002971 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00002972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976# work properly (i.e., refer to `conftest.exe'), while it won't with
2977# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002978for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002980 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002983 break;;
drh71eb93e2001-09-28 01:34:43 +00002984 * ) break;;
2985 esac
2986done
2987else
dana9f39fd2011-08-12 16:34:42 +00002988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh0fe0c462011-09-22 00:56:38 +00002990as_fn_error $? "cannot compute suffix of executables: cannot compile and link
drh6a8ab6d2011-11-09 01:53:25 +00002991See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002992fi
dana9f39fd2011-08-12 16:34:42 +00002993rm -f conftest conftest$ac_cv_exeext
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00002995$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002996
2997rm -f conftest.$ac_ext
2998EXEEXT=$ac_cv_exeext
2999ac_exeext=$EXEEXT
dana9f39fd2011-08-12 16:34:42 +00003000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */
3002#include <stdio.h>
3003int
3004main ()
3005{
3006FILE *f = fopen ("conftest.out", "w");
3007 return ferror (f) || fclose (f) != 0;
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013ac_clean_files="$ac_clean_files conftest.out"
3014# Check that the compiler produces executables we can run. If not, either
3015# the compiler is broken, or we cross compile.
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3017$as_echo_n "checking whether we are cross compiling... " >&6; }
3018if test "$cross_compiling" != yes; then
3019 { { ac_try="$ac_link"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025$as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 if { ac_try='./conftest$ac_cv_exeext'
3031 { { case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; }; then
3041 cross_compiling=no
3042 else
3043 if test "$cross_compiling" = maybe; then
3044 cross_compiling=yes
3045 else
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh0fe0c462011-09-22 00:56:38 +00003048as_fn_error $? "cannot run C compiled programs.
dana9f39fd2011-08-12 16:34:42 +00003049If you meant to cross compile, use \`--host'.
drh6a8ab6d2011-11-09 01:53:25 +00003050See \`config.log' for more details" "$LINENO" 5; }
dana9f39fd2011-08-12 16:34:42 +00003051 fi
3052 fi
3053fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3055$as_echo "$cross_compiling" >&6; }
3056
3057rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3058ac_clean_files=$ac_clean_files_save
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003060$as_echo_n "checking for suffix of object files... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003061if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003062 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003063else
dana9f39fd2011-08-12 16:34:42 +00003064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003065/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.o conftest.obj
dana9f39fd2011-08-12 16:34:42 +00003076if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
dana9f39fd2011-08-12 16:34:42 +00003081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003083 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003084 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00003085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003089 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 break;;
3093 esac
3094done
3095else
drh8b727472009-01-19 18:18:40 +00003096 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003097sed 's/^/| /' conftest.$ac_ext >&5
3098
dana9f39fd2011-08-12 16:34:42 +00003099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh0fe0c462011-09-22 00:56:38 +00003101as_fn_error $? "cannot compute suffix of object files: cannot compile
drh6a8ab6d2011-11-09 01:53:25 +00003102See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003103fi
drh71eb93e2001-09-28 01:34:43 +00003104rm -f conftest.$ac_cv_objext conftest.$ac_ext
3105fi
dana9f39fd2011-08-12 16:34:42 +00003106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003107$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003108OBJEXT=$ac_cv_objext
3109ac_objext=$OBJEXT
dana9f39fd2011-08-12 16:34:42 +00003110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003111$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003112if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003113 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003114else
dana9f39fd2011-08-12 16:34:42 +00003115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003116/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003117
3118int
3119main ()
3120{
3121#ifndef __GNUC__
3122 choke me
3123#endif
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003129if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003130 ac_compiler_gnu=yes
3131else
dana9f39fd2011-08-12 16:34:42 +00003132 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003133fi
drh8b727472009-01-19 18:18:40 +00003134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003135ac_cv_c_compiler_gnu=$ac_compiler_gnu
3136
3137fi
dana9f39fd2011-08-12 16:34:42 +00003138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003139$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140if test $ac_compiler_gnu = yes; then
3141 GCC=yes
3142else
3143 GCC=
3144fi
drh71eb93e2001-09-28 01:34:43 +00003145ac_test_CFLAGS=${CFLAGS+set}
3146ac_save_CFLAGS=$CFLAGS
dana9f39fd2011-08-12 16:34:42 +00003147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003148$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003149if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003150 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003151else
drh8b727472009-01-19 18:18:40 +00003152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3154 ac_cv_prog_cc_g=no
3155 CFLAGS="-g"
dana9f39fd2011-08-12 16:34:42 +00003156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003157/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003167if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003168 ac_cv_prog_cc_g=yes
3169else
dana9f39fd2011-08-12 16:34:42 +00003170 CFLAGS=""
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003172/* end confdefs.h. */
3173
3174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003182if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003183
dana9f39fd2011-08-12 16:34:42 +00003184else
3185 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003186 CFLAGS="-g"
dana9f39fd2011-08-12 16:34:42 +00003187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003188/* end confdefs.h. */
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
dana9f39fd2011-08-12 16:34:42 +00003198if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003199 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003200fi
drh8b727472009-01-19 18:18:40 +00003201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003202fi
drh8b727472009-01-19 18:18:40 +00003203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204fi
drh8b727472009-01-19 18:18:40 +00003205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207fi
dana9f39fd2011-08-12 16:34:42 +00003208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003209$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003210if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3217 fi
3218else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224fi
dana9f39fd2011-08-12 16:34:42 +00003225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003226$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003227if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003228 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003229else
drh8b727472009-01-19 18:18:40 +00003230 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003231ac_save_CC=$CC
dana9f39fd2011-08-12 16:34:42 +00003232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003233/* end confdefs.h. */
3234#include <stdarg.h>
3235#include <stdio.h>
3236#include <sys/types.h>
3237#include <sys/stat.h>
3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239struct buf { int x; };
3240FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241static char *e (p, i)
3242 char **p;
3243 int i;
3244{
3245 return p[i];
3246}
3247static char *f (char * (*g) (char **, int), char **p, ...)
3248{
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3255}
a.rottmann964dbb12004-02-26 19:47:42 +00003256
3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003260 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003263 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
drh8b727472009-01-19 18:18:40 +00003266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268#define FOO(x) 'x'
3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
a.rottmann84e63352003-03-24 09:42:16 +00003271int test (int i, double x);
3272struct s1 {int (*f) (int a);};
3273struct s2 {int (*f) (double a);};
3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275int argc;
3276char **argv;
3277int
3278main ()
3279{
3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 ;
3282 return 0;
3283}
3284_ACEOF
drh8b727472009-01-19 18:18:40 +00003285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003287do
3288 CC="$ac_save_CC $ac_arg"
dana9f39fd2011-08-12 16:34:42 +00003289 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003290 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003291fi
drh8b727472009-01-19 18:18:40 +00003292rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003294done
drh8b727472009-01-19 18:18:40 +00003295rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003296CC=$ac_save_CC
3297
3298fi
drh8b727472009-01-19 18:18:40 +00003299# AC_CACHE_VAL
3300case "x$ac_cv_prog_cc_c89" in
3301 x)
dana9f39fd2011-08-12 16:34:42 +00003302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003303$as_echo "none needed" >&6; } ;;
3304 xno)
dana9f39fd2011-08-12 16:34:42 +00003305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003306$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003307 *)
drh8b727472009-01-19 18:18:40 +00003308 CC="$CC $ac_cv_prog_cc_c89"
dana9f39fd2011-08-12 16:34:42 +00003309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003310$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003311esac
dana9f39fd2011-08-12 16:34:42 +00003312if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003313
dana9f39fd2011-08-12 16:34:42 +00003314fi
a.rottmann84e63352003-03-24 09:42:16 +00003315
drh71eb93e2001-09-28 01:34:43 +00003316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
dana9f39fd2011-08-12 16:34:42 +00003322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003323$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003324if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003325 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003326else
drh8b727472009-01-19 18:18:40 +00003327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3328 for ac_i in 1 2 3 4 5 6 7; do
3329 ac_script="$ac_script$as_nl$ac_script"
3330 done
3331 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
dana9f39fd2011-08-12 16:34:42 +00003332 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003333 if test -z "$SED"; then
3334 ac_path_SED_found=false
3335 # Loop through the user's path and test for each of PROGNAME-LIST
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003337for as_dir in $PATH
3338do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003341 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003342 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003343 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3344 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3345# Check for GNU ac_path_SED and select it if it is found.
3346 # Check for GNU $ac_path_SED
3347case `"$ac_path_SED" --version 2>&1` in
3348*GNU*)
3349 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3350*)
3351 ac_count=0
3352 $as_echo_n 0123456789 >"conftest.in"
3353 while :
3354 do
3355 cat "conftest.in" "conftest.in" >"conftest.tmp"
3356 mv "conftest.tmp" "conftest.in"
3357 cp "conftest.in" "conftest.nl"
3358 $as_echo '' >> "conftest.nl"
3359 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003361 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003362 if test $ac_count -gt ${ac_path_SED_max-0}; then
3363 # Best one so far, save it but keep looking for a better one
3364 ac_cv_path_SED="$ac_path_SED"
3365 ac_path_SED_max=$ac_count
3366 fi
3367 # 10*(2^10) chars as input seems more than enough
3368 test $ac_count -gt 10 && break
3369 done
3370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3371esac
3372
3373 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003374 done
3375 done
dana9f39fd2011-08-12 16:34:42 +00003376 done
mlcreech636a9952008-05-05 22:52:56 +00003377IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003378 if test -z "$ac_cv_path_SED"; then
drh0fe0c462011-09-22 00:56:38 +00003379 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003380 fi
drh8b727472009-01-19 18:18:40 +00003381else
3382 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003383fi
drh866108f2008-05-13 00:57:21 +00003384
drh8b727472009-01-19 18:18:40 +00003385fi
dana9f39fd2011-08-12 16:34:42 +00003386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003387$as_echo "$ac_cv_path_SED" >&6; }
3388 SED="$ac_cv_path_SED"
3389 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003390
mlcreech636a9952008-05-05 22:52:56 +00003391test -z "$SED" && SED=sed
3392Xsed="$SED -e 1s/^X//"
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
dana9f39fd2011-08-12 16:34:42 +00003404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003405$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003406if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003407 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003408else
drh8b727472009-01-19 18:18:40 +00003409 if test -z "$GREP"; then
3410 ac_path_GREP_found=false
3411 # Loop through the user's path and test for each of PROGNAME-LIST
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3414do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003417 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3420 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3421# Check for GNU ac_path_GREP and select it if it is found.
3422 # Check for GNU $ac_path_GREP
3423case `"$ac_path_GREP" --version 2>&1` in
3424*GNU*)
3425 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3426*)
3427 ac_count=0
3428 $as_echo_n 0123456789 >"conftest.in"
3429 while :
3430 do
3431 cat "conftest.in" "conftest.in" >"conftest.tmp"
3432 mv "conftest.tmp" "conftest.in"
3433 cp "conftest.in" "conftest.nl"
3434 $as_echo 'GREP' >> "conftest.nl"
3435 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003437 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003438 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3439 # Best one so far, save it but keep looking for a better one
3440 ac_cv_path_GREP="$ac_path_GREP"
3441 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003442 fi
drh8b727472009-01-19 18:18:40 +00003443 # 10*(2^10) chars as input seems more than enough
3444 test $ac_count -gt 10 && break
3445 done
3446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3447esac
3448
3449 $ac_path_GREP_found && break 3
3450 done
3451 done
dana9f39fd2011-08-12 16:34:42 +00003452 done
drh8b727472009-01-19 18:18:40 +00003453IFS=$as_save_IFS
3454 if test -z "$ac_cv_path_GREP"; then
drh0fe0c462011-09-22 00:56:38 +00003455 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003456 fi
3457else
3458 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003459fi
drh8b727472009-01-19 18:18:40 +00003460
3461fi
dana9f39fd2011-08-12 16:34:42 +00003462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003463$as_echo "$ac_cv_path_GREP" >&6; }
3464 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003465
3466
dana9f39fd2011-08-12 16:34:42 +00003467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003468$as_echo_n "checking for egrep... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003469if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003470 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003471else
drh8b727472009-01-19 18:18:40 +00003472 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3473 then ac_cv_path_EGREP="$GREP -E"
3474 else
3475 if test -z "$EGREP"; then
3476 ac_path_EGREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003483 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3486 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3487# Check for GNU ac_path_EGREP and select it if it is found.
3488 # Check for GNU $ac_path_EGREP
3489case `"$ac_path_EGREP" --version 2>&1` in
3490*GNU*)
3491 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3492*)
3493 ac_count=0
3494 $as_echo_n 0123456789 >"conftest.in"
3495 while :
3496 do
3497 cat "conftest.in" "conftest.in" >"conftest.tmp"
3498 mv "conftest.tmp" "conftest.in"
3499 cp "conftest.in" "conftest.nl"
3500 $as_echo 'EGREP' >> "conftest.nl"
3501 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003503 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003504 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3505 # Best one so far, save it but keep looking for a better one
3506 ac_cv_path_EGREP="$ac_path_EGREP"
3507 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003508 fi
drh8b727472009-01-19 18:18:40 +00003509 # 10*(2^10) chars as input seems more than enough
3510 test $ac_count -gt 10 && break
3511 done
3512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513esac
3514
3515 $ac_path_EGREP_found && break 3
3516 done
3517 done
dana9f39fd2011-08-12 16:34:42 +00003518 done
drh8b727472009-01-19 18:18:40 +00003519IFS=$as_save_IFS
3520 if test -z "$ac_cv_path_EGREP"; then
drh0fe0c462011-09-22 00:56:38 +00003521 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003522 fi
3523else
3524 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003525fi
drh8b727472009-01-19 18:18:40 +00003526
3527 fi
3528fi
dana9f39fd2011-08-12 16:34:42 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003530$as_echo "$ac_cv_path_EGREP" >&6; }
3531 EGREP="$ac_cv_path_EGREP"
3532
3533
dana9f39fd2011-08-12 16:34:42 +00003534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003535$as_echo_n "checking for fgrep... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003536if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003537 $as_echo_n "(cached) " >&6
3538else
3539 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3540 then ac_cv_path_FGREP="$GREP -F"
3541 else
3542 if test -z "$FGREP"; then
3543 ac_path_FGREP_found=false
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003550 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3553 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3554# Check for GNU ac_path_FGREP and select it if it is found.
3555 # Check for GNU $ac_path_FGREP
3556case `"$ac_path_FGREP" --version 2>&1` in
3557*GNU*)
3558 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3559*)
3560 ac_count=0
3561 $as_echo_n 0123456789 >"conftest.in"
3562 while :
3563 do
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
3567 $as_echo 'FGREP' >> "conftest.nl"
3568 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
dana9f39fd2011-08-12 16:34:42 +00003570 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003571 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_FGREP="$ac_path_FGREP"
3574 ac_path_FGREP_max=$ac_count
3575 fi
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3578 done
3579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580esac
3581
3582 $ac_path_FGREP_found && break 3
3583 done
3584 done
dana9f39fd2011-08-12 16:34:42 +00003585 done
drh8b727472009-01-19 18:18:40 +00003586IFS=$as_save_IFS
3587 if test -z "$ac_cv_path_FGREP"; then
drh0fe0c462011-09-22 00:56:38 +00003588 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003589 fi
3590else
3591 ac_cv_path_FGREP=$FGREP
3592fi
3593
3594 fi
3595fi
dana9f39fd2011-08-12 16:34:42 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003597$as_echo "$ac_cv_path_FGREP" >&6; }
3598 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003599
3600
3601test -z "$GREP" && GREP=grep
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
a.rottmann9bc8b932004-02-29 15:18:31 +00003618
3619
a.rottmann84e63352003-03-24 09:42:16 +00003620
drh8b727472009-01-19 18:18:40 +00003621# Check whether --with-gnu-ld was given.
dana9f39fd2011-08-12 16:34:42 +00003622if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003623 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003624else
3625 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003626fi
3627
drh71eb93e2001-09-28 01:34:43 +00003628ac_prog=ld
3629if test "$GCC" = yes; then
3630 # Check if gcc -print-prog-name=ld gives a path.
dana9f39fd2011-08-12 16:34:42 +00003631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003632$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003633 case $host in
3634 *-*-mingw*)
3635 # gcc leaves a trailing carriage return which upsets mingw
3636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3637 *)
3638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3639 esac
3640 case $ac_prog in
3641 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003642 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003643 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003644 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003648 done
3649 test -z "$LD" && LD="$ac_prog"
3650 ;;
3651 "")
3652 # If it fails, then pretend we aren't using GCC.
3653 ac_prog=ld
3654 ;;
3655 *)
3656 # If it is relative, then search for the first ld in PATH.
3657 with_gnu_ld=unknown
3658 ;;
3659 esac
3660elif test "$with_gnu_ld" = yes; then
dana9f39fd2011-08-12 16:34:42 +00003661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003662$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003663else
dana9f39fd2011-08-12 16:34:42 +00003664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003665$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003666fi
drh6a8ab6d2011-11-09 01:53:25 +00003667if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003668 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003669else
3670 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003672 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003673 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003674 test -z "$ac_dir" && ac_dir=.
3675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3676 lt_cv_path_LD="$ac_dir/$ac_prog"
3677 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003678 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003679 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3681 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003682 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003683 ;;
3684 *)
drh71eb93e2001-09-28 01:34:43 +00003685 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003686 ;;
3687 esac
drh71eb93e2001-09-28 01:34:43 +00003688 fi
3689 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003690 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003691else
3692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3693fi
3694fi
3695
3696LD="$lt_cv_path_LD"
3697if test -n "$LD"; then
dana9f39fd2011-08-12 16:34:42 +00003698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003699$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003700else
dana9f39fd2011-08-12 16:34:42 +00003701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003702$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003703fi
drh0fe0c462011-09-22 00:56:38 +00003704test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
dana9f39fd2011-08-12 16:34:42 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003706$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003707if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003708 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003709else
vapier7f19c022007-02-17 14:46:31 +00003710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003711case `$LD -v 2>&1 </dev/null` in
3712*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003713 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003714 ;;
3715*)
drh71eb93e2001-09-28 01:34:43 +00003716 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003717 ;;
3718esac
drh71eb93e2001-09-28 01:34:43 +00003719fi
dana9f39fd2011-08-12 16:34:42 +00003720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003721$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003722with_gnu_ld=$lt_cv_prog_gnu_ld
3723
a.rottmann84e63352003-03-24 09:42:16 +00003724
drh71eb93e2001-09-28 01:34:43 +00003725
mlcreech636a9952008-05-05 22:52:56 +00003726
3727
3728
3729
3730
3731
dana9f39fd2011-08-12 16:34:42 +00003732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003733$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003734if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003735 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003736else
3737 if test -n "$NM"; then
3738 # Let the user override the test.
3739 lt_cv_path_NM="$NM"
3740else
vapier7f19c022007-02-17 14:46:31 +00003741 lt_nm_to_check="${ac_tool_prefix}nm"
3742 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3743 lt_nm_to_check="$lt_nm_to_check nm"
3744 fi
3745 for lt_tmp_nm in $lt_nm_to_check; do
3746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3747 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3748 IFS="$lt_save_ifs"
3749 test -z "$ac_dir" && ac_dir=.
3750 tmp_nm="$ac_dir/$lt_tmp_nm"
3751 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3752 # Check to see if the nm accepts a BSD-compat flag.
3753 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3754 # nm: unknown option "B" ignored
3755 # Tru64's nm complains that /dev/null is an invalid object file
3756 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3757 */dev/null* | *'Invalid file or object type'*)
3758 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003759 break
3760 ;;
3761 *)
vapier7f19c022007-02-17 14:46:31 +00003762 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3763 */dev/null*)
3764 lt_cv_path_NM="$tmp_nm -p"
3765 break
3766 ;;
3767 *)
3768 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3769 continue # so that we can try to find one that supports BSD flags
3770 ;;
3771 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003772 ;;
3773 esac
vapier7f19c022007-02-17 14:46:31 +00003774 fi
3775 done
3776 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003777 done
mlcreech636a9952008-05-05 22:52:56 +00003778 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003779fi
3780fi
dana9f39fd2011-08-12 16:34:42 +00003781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003782$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003783if test "$lt_cv_path_NM" != "no"; then
3784 NM="$lt_cv_path_NM"
3785else
3786 # Didn't find any BSD compatible name lister, look for dumpbin.
3787 if test -n "$ac_tool_prefix"; then
3788 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3789 do
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00003792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003793$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003794if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003795 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003796else
3797 if test -n "$DUMPBIN"; then
3798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003805 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00003808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003809 break 2
3810 fi
3811done
dana9f39fd2011-08-12 16:34:42 +00003812 done
drh8b727472009-01-19 18:18:40 +00003813IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003814
mlcreech636a9952008-05-05 22:52:56 +00003815fi
3816fi
3817DUMPBIN=$ac_cv_prog_DUMPBIN
3818if test -n "$DUMPBIN"; then
dana9f39fd2011-08-12 16:34:42 +00003819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003820$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003821else
dana9f39fd2011-08-12 16:34:42 +00003822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003823$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003824fi
3825
drh8b727472009-01-19 18:18:40 +00003826
mlcreech636a9952008-05-05 22:52:56 +00003827 test -n "$DUMPBIN" && break
3828 done
3829fi
3830if test -z "$DUMPBIN"; then
3831 ac_ct_DUMPBIN=$DUMPBIN
3832 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3833do
3834 # Extract the first word of "$ac_prog", so it can be a program name with args.
3835set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00003836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003837$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003838if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003839 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003840else
3841 if test -n "$ac_ct_DUMPBIN"; then
3842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00003849 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00003852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003853 break 2
3854 fi
3855done
dana9f39fd2011-08-12 16:34:42 +00003856 done
drh8b727472009-01-19 18:18:40 +00003857IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003858
3859fi
3860fi
3861ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3862if test -n "$ac_ct_DUMPBIN"; then
dana9f39fd2011-08-12 16:34:42 +00003863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003864$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003865else
dana9f39fd2011-08-12 16:34:42 +00003866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003867$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003868fi
3869
drh8b727472009-01-19 18:18:40 +00003870
mlcreech636a9952008-05-05 22:52:56 +00003871 test -n "$ac_ct_DUMPBIN" && break
3872done
3873
drh8b727472009-01-19 18:18:40 +00003874 if test "x$ac_ct_DUMPBIN" = x; then
3875 DUMPBIN=":"
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878yes:)
dana9f39fd2011-08-12 16:34:42 +00003879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003881ac_tool_warned=yes ;;
3882esac
3883 DUMPBIN=$ac_ct_DUMPBIN
3884 fi
mlcreech636a9952008-05-05 22:52:56 +00003885fi
3886
3887
3888 if test "$DUMPBIN" != ":"; then
3889 NM="$DUMPBIN"
3890 fi
3891fi
3892test -z "$NM" && NM=nm
3893
3894
3895
3896
3897
3898
dana9f39fd2011-08-12 16:34:42 +00003899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003900$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003901if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003902 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003903else
3904 lt_cv_nm_interface="BSD nm"
3905 echo "int some_variable = 0;" > conftest.$ac_ext
drh6a8ab6d2011-11-09 01:53:25 +00003906 (eval echo "\"\$as_me:3906: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003907 (eval "$ac_compile" 2>conftest.err)
3908 cat conftest.err >&5
drh6a8ab6d2011-11-09 01:53:25 +00003909 (eval echo "\"\$as_me:3909: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003910 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3911 cat conftest.err >&5
drh6a8ab6d2011-11-09 01:53:25 +00003912 (eval echo "\"\$as_me:3912: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003913 cat conftest.out >&5
3914 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3915 lt_cv_nm_interface="MS dumpbin"
3916 fi
3917 rm -f conftest*
3918fi
dana9f39fd2011-08-12 16:34:42 +00003919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003920$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003921
dana9f39fd2011-08-12 16:34:42 +00003922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003923$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003924LN_S=$as_ln_s
3925if test "$LN_S" = "ln -s"; then
dana9f39fd2011-08-12 16:34:42 +00003926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003927$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003928else
dana9f39fd2011-08-12 16:34:42 +00003929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003930$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003931fi
3932
mlcreech636a9952008-05-05 22:52:56 +00003933# find the maximum length of command line arguments
dana9f39fd2011-08-12 16:34:42 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003935$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00003936if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003937 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003938else
3939 i=0
3940 teststring="ABCD"
3941
3942 case $build_os in
3943 msdosdjgpp*)
3944 # On DJGPP, this test can blow up pretty badly due to problems in libc
3945 # (any single argument exceeding 2000 bytes causes a buffer overrun
3946 # during glob expansion). Even if it were fixed, the result of this
3947 # check would be larger than it should be.
3948 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3949 ;;
3950
3951 gnu*)
3952 # Under GNU Hurd, this test is not required because there is
3953 # no limit to the length of command line arguments.
3954 # Libtool will interpret -1 as no limit whatsoever
3955 lt_cv_sys_max_cmd_len=-1;
3956 ;;
3957
vapier6acb2cf2009-01-28 04:46:28 +00003958 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003959 # On Win9x/ME, this test blows up -- it succeeds, but takes
3960 # about 5 minutes as the teststring grows exponentially.
3961 # Worse, since 9x/ME are not pre-emptively multitasking,
3962 # you end up with a "frozen" computer, even though with patience
3963 # the test eventually succeeds (with a max line length of 256k).
3964 # Instead, let's just punt: use the minimum linelength reported by
3965 # all of the supported platforms: 8192 (on NT/2K/XP).
3966 lt_cv_sys_max_cmd_len=8192;
3967 ;;
3968
3969 amigaos*)
3970 # On AmigaOS with pdksh, this test takes hours, literally.
3971 # So we just punt and use a minimum line length of 8192.
3972 lt_cv_sys_max_cmd_len=8192;
3973 ;;
3974
3975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3976 # This has been around since 386BSD, at least. Likely further.
3977 if test -x /sbin/sysctl; then
3978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3979 elif test -x /usr/sbin/sysctl; then
3980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3981 else
3982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3983 fi
3984 # And add a safety zone
3985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3987 ;;
3988
3989 interix*)
3990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3991 lt_cv_sys_max_cmd_len=196608
3992 ;;
3993
3994 osf*)
3995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3997 # nice to cause kernel panics so lets avoid the loop below.
3998 # First set a reasonable default.
3999 lt_cv_sys_max_cmd_len=16384
4000 #
4001 if test -x /sbin/sysconfig; then
4002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4004 esac
4005 fi
4006 ;;
4007 sco3.2v5*)
4008 lt_cv_sys_max_cmd_len=102400
4009 ;;
4010 sysv5* | sco5v6* | sysv4.2uw2*)
4011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4012 if test -n "$kargmax"; then
4013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4014 else
4015 lt_cv_sys_max_cmd_len=32768
4016 fi
4017 ;;
4018 *)
4019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4020 if test -n "$lt_cv_sys_max_cmd_len"; then
4021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4023 else
4024 # Make teststring a little bigger before we do anything with it.
4025 # a 1K string should be a reasonable start.
4026 for i in 1 2 3 4 5 6 7 8 ; do
4027 teststring=$teststring$teststring
4028 done
4029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4030 # If test is not a shell built-in, we'll probably end up computing a
4031 # maximum length that is only half of the actual maximum length, but
4032 # we can't tell.
4033 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4034 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4035 test $i != 17 # 1/2 MB should be enough
4036 do
4037 i=`expr $i + 1`
4038 teststring=$teststring$teststring
4039 done
4040 # Only check the string length outside the loop.
4041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4042 teststring=
4043 # Add a significant safety factor because C++ compilers can tack on
4044 # massive amounts of additional arguments before passing them to the
4045 # linker. It appears as though 1/2 is a usable value.
4046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4047 fi
4048 ;;
4049 esac
4050
4051fi
4052
4053if test -n $lt_cv_sys_max_cmd_len ; then
dana9f39fd2011-08-12 16:34:42 +00004054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004055$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004056else
dana9f39fd2011-08-12 16:34:42 +00004057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004058$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004059fi
4060max_cmd_len=$lt_cv_sys_max_cmd_len
4061
4062
4063
4064
4065
4066
4067: ${CP="cp -f"}
4068: ${MV="mv -f"}
4069: ${RM="rm -f"}
4070
dana9f39fd2011-08-12 16:34:42 +00004071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004072$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004073# Try some XSI features
4074xsi_shell=no
4075( _lt_dummy="a/b/c"
4076 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4077 = c,a/b,, \
4078 && eval 'test $(( 1 + 1 )) -eq 2 \
4079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4080 && xsi_shell=yes
dana9f39fd2011-08-12 16:34:42 +00004081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004082$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004083
4084
dana9f39fd2011-08-12 16:34:42 +00004085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004086$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004087lt_shell_append=no
4088( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4089 >/dev/null 2>&1 \
4090 && lt_shell_append=yes
dana9f39fd2011-08-12 16:34:42 +00004091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004092$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004093
4094
4095if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4096 lt_unset=unset
4097else
4098 lt_unset=false
4099fi
4100
4101
4102
4103
4104
4105# test EBCDIC or ASCII
4106case `echo X|tr X '\101'` in
4107 A) # ASCII based system
4108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4109 lt_SP2NL='tr \040 \012'
4110 lt_NL2SP='tr \015\012 \040\040'
4111 ;;
4112 *) # EBCDIC based system
4113 lt_SP2NL='tr \100 \n'
4114 lt_NL2SP='tr \r\n \100\100'
4115 ;;
4116esac
4117
4118
4119
4120
4121
4122
4123
4124
4125
dana9f39fd2011-08-12 16:34:42 +00004126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004127$as_echo_n "checking for $LD option to reload object files... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004128if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004129 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004130else
4131 lt_cv_ld_reload_flag='-r'
4132fi
dana9f39fd2011-08-12 16:34:42 +00004133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004134$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004135reload_flag=$lt_cv_ld_reload_flag
4136case $reload_flag in
4137"" | " "*) ;;
4138*) reload_flag=" $reload_flag" ;;
4139esac
4140reload_cmds='$LD$reload_flag -o $output$reload_objs'
4141case $host_os in
4142 darwin*)
4143 if test "$GCC" = yes; then
4144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4145 else
4146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4147 fi
4148 ;;
4149esac
4150
4151
4152
4153
4154
4155
4156
4157
4158
vapier6acb2cf2009-01-28 04:46:28 +00004159if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4161set dummy ${ac_tool_prefix}objdump; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004163$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004164if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004165 $as_echo_n "(cached) " >&6
4166else
4167 if test -n "$OBJDUMP"; then
4168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004175 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
dana9f39fd2011-08-12 16:34:42 +00004178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004179 break 2
4180 fi
4181done
dana9f39fd2011-08-12 16:34:42 +00004182 done
vapier6acb2cf2009-01-28 04:46:28 +00004183IFS=$as_save_IFS
4184
4185fi
4186fi
4187OBJDUMP=$ac_cv_prog_OBJDUMP
4188if test -n "$OBJDUMP"; then
dana9f39fd2011-08-12 16:34:42 +00004189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004190$as_echo "$OBJDUMP" >&6; }
4191else
dana9f39fd2011-08-12 16:34:42 +00004192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004193$as_echo "no" >&6; }
4194fi
4195
4196
4197fi
4198if test -z "$ac_cv_prog_OBJDUMP"; then
4199 ac_ct_OBJDUMP=$OBJDUMP
4200 # Extract the first word of "objdump", so it can be a program name with args.
4201set dummy objdump; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004203$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004204if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004205 $as_echo_n "(cached) " >&6
4206else
4207 if test -n "$ac_ct_OBJDUMP"; then
4208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004215 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
dana9f39fd2011-08-12 16:34:42 +00004218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004219 break 2
4220 fi
4221done
dana9f39fd2011-08-12 16:34:42 +00004222 done
vapier6acb2cf2009-01-28 04:46:28 +00004223IFS=$as_save_IFS
4224
4225fi
4226fi
4227ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4228if test -n "$ac_ct_OBJDUMP"; then
dana9f39fd2011-08-12 16:34:42 +00004229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004230$as_echo "$ac_ct_OBJDUMP" >&6; }
4231else
dana9f39fd2011-08-12 16:34:42 +00004232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004233$as_echo "no" >&6; }
4234fi
4235
4236 if test "x$ac_ct_OBJDUMP" = x; then
4237 OBJDUMP="false"
4238 else
4239 case $cross_compiling:$ac_tool_warned in
4240yes:)
dana9f39fd2011-08-12 16:34:42 +00004241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004243ac_tool_warned=yes ;;
4244esac
4245 OBJDUMP=$ac_ct_OBJDUMP
4246 fi
4247else
4248 OBJDUMP="$ac_cv_prog_OBJDUMP"
4249fi
4250
4251test -z "$OBJDUMP" && OBJDUMP=objdump
4252
4253
4254
4255
4256
4257
4258
4259
mlcreech636a9952008-05-05 22:52:56 +00004260
dana9f39fd2011-08-12 16:34:42 +00004261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004262$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004263if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004264 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004265else
4266 lt_cv_file_magic_cmd='$MAGIC_CMD'
4267lt_cv_file_magic_test_file=
4268lt_cv_deplibs_check_method='unknown'
4269# Need to set the preceding variable on all platforms that support
4270# interlibrary dependencies.
4271# 'none' -- dependencies not supported.
4272# `unknown' -- same as none, but documents that we really don't know.
4273# 'pass_all' -- all dependencies passed with no checks.
4274# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004275# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004276# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004277# If you have `file' or equivalent on your system and you're not sure
4278# whether `pass_all' will *always* work, you probably want this one.
4279
4280case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004281aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284
4285beos*)
4286 lt_cv_deplibs_check_method=pass_all
4287 ;;
4288
vapier7f19c022007-02-17 14:46:31 +00004289bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4291 lt_cv_file_magic_cmd='/usr/bin/file -L'
4292 lt_cv_file_magic_test_file=/shlib/libc.so
4293 ;;
4294
a.rottmann9bc8b932004-02-29 15:18:31 +00004295cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004296 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004298 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004299 ;;
4300
4301mingw* | pw32*)
4302 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4304 # unless we find 'file', for example because we are cross-compiling.
4305 if ( file / ) >/dev/null 2>&1; then
4306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4307 lt_cv_file_magic_cmd='func_win32_libid'
4308 else
4309 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4310 lt_cv_file_magic_cmd='$OBJDUMP -f'
4311 fi
drh71eb93e2001-09-28 01:34:43 +00004312 ;;
4313
vapier6acb2cf2009-01-28 04:46:28 +00004314cegcc)
4315 # use the weaker test based on 'objdump'. See mingw*.
4316 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4317 lt_cv_file_magic_cmd='$OBJDUMP -f'
4318 ;;
4319
drh71eb93e2001-09-28 01:34:43 +00004320darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004321 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004322 ;;
4323
mlcreech636a9952008-05-05 22:52:56 +00004324freebsd* | dragonfly*)
4325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004326 case $host_cpu in
4327 i*86 )
4328 # Not sure whether the presence of OpenBSD here was a mistake.
4329 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004330 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 +00004331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4333 ;;
4334 esac
4335 else
4336 lt_cv_deplibs_check_method=pass_all
4337 fi
4338 ;;
4339
4340gnu*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
a.rottmann9bc8b932004-02-29 15:18:31 +00004344hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004345 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004346 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004347 ia64*)
4348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4350 ;;
4351 hppa*64*)
4352 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]'
4353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4354 ;;
4355 *)
4356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4358 ;;
4359 esac
drh71eb93e2001-09-28 01:34:43 +00004360 ;;
4361
mlcreech636a9952008-05-05 22:52:56 +00004362interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4365 ;;
4366
a.rottmann84e63352003-03-24 09:42:16 +00004367irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004368 case $LD in
4369 *-32|*"-32 ") libmagic=32-bit;;
4370 *-n32|*"-n32 ") libmagic=N32;;
4371 *-64|*"-64 ") libmagic=64-bit;;
4372 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004373 esac
drh71eb93e2001-09-28 01:34:43 +00004374 lt_cv_deplibs_check_method=pass_all
4375 ;;
4376
4377# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004378linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004379 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004380 ;;
4381
vapier7f19c022007-02-17 14:46:31 +00004382netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004385 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004387 fi
4388 ;;
4389
4390newos6*)
4391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4392 lt_cv_file_magic_cmd=/usr/bin/file
4393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4394 ;;
4395
mlcreech636a9952008-05-05 22:52:56 +00004396*nto* | *qnx*)
4397 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004398 ;;
4399
a.rottmann84e63352003-03-24 09:42:16 +00004400openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004403 else
vapier7f19c022007-02-17 14:46:31 +00004404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004405 fi
drh71eb93e2001-09-28 01:34:43 +00004406 ;;
4407
4408osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004409 lt_cv_deplibs_check_method=pass_all
4410 ;;
4411
mlcreech636a9952008-05-05 22:52:56 +00004412rdos*)
4413 lt_cv_deplibs_check_method=pass_all
4414 ;;
4415
drh71eb93e2001-09-28 01:34:43 +00004416solaris*)
4417 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004418 ;;
4419
mlcreech636a9952008-05-05 22:52:56 +00004420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4421 lt_cv_deplibs_check_method=pass_all
4422 ;;
4423
vapier7f19c022007-02-17 14:46:31 +00004424sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004425 case $host_vendor in
4426 motorola)
4427 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]'
4428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4429 ;;
4430 ncr)
4431 lt_cv_deplibs_check_method=pass_all
4432 ;;
4433 sequent)
4434 lt_cv_file_magic_cmd='/bin/file'
4435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4436 ;;
4437 sni)
4438 lt_cv_file_magic_cmd='/bin/file'
4439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4440 lt_cv_file_magic_test_file=/lib/libc.so
4441 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004442 siemens)
4443 lt_cv_deplibs_check_method=pass_all
4444 ;;
vapier7f19c022007-02-17 14:46:31 +00004445 pc)
4446 lt_cv_deplibs_check_method=pass_all
4447 ;;
drh71eb93e2001-09-28 01:34:43 +00004448 esac
4449 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004450
mlcreech636a9952008-05-05 22:52:56 +00004451tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004452 lt_cv_deplibs_check_method=pass_all
4453 ;;
drh71eb93e2001-09-28 01:34:43 +00004454esac
4455
4456fi
dana9f39fd2011-08-12 16:34:42 +00004457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004458$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004459file_magic_cmd=$lt_cv_file_magic_cmd
4460deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004461test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004462
drh71eb93e2001-09-28 01:34:43 +00004463
drh71eb93e2001-09-28 01:34:43 +00004464
drh71eb93e2001-09-28 01:34:43 +00004465
mlcreech636a9952008-05-05 22:52:56 +00004466
4467
4468
4469
4470
4471
4472
4473
4474if test -n "$ac_tool_prefix"; then
4475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4476set dummy ${ac_tool_prefix}ar; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004478$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004479if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004480 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004481else
4482 if test -n "$AR"; then
4483 ac_cv_prog_AR="$AR" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004490 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004492 ac_cv_prog_AR="${ac_tool_prefix}ar"
dana9f39fd2011-08-12 16:34:42 +00004493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004494 break 2
4495 fi
4496done
dana9f39fd2011-08-12 16:34:42 +00004497 done
drh8b727472009-01-19 18:18:40 +00004498IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004499
4500fi
4501fi
4502AR=$ac_cv_prog_AR
4503if test -n "$AR"; then
dana9f39fd2011-08-12 16:34:42 +00004504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004505$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004506else
dana9f39fd2011-08-12 16:34:42 +00004507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004508$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004509fi
4510
drh8b727472009-01-19 18:18:40 +00004511
mlcreech636a9952008-05-05 22:52:56 +00004512fi
4513if test -z "$ac_cv_prog_AR"; then
4514 ac_ct_AR=$AR
4515 # Extract the first word of "ar", so it can be a program name with args.
4516set dummy ar; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004518$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004519if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004520 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004521else
4522 if test -n "$ac_ct_AR"; then
4523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4524else
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004530 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004532 ac_cv_prog_ac_ct_AR="ar"
dana9f39fd2011-08-12 16:34:42 +00004533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004534 break 2
4535 fi
4536done
dana9f39fd2011-08-12 16:34:42 +00004537 done
drh8b727472009-01-19 18:18:40 +00004538IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004539
4540fi
4541fi
4542ac_ct_AR=$ac_cv_prog_ac_ct_AR
4543if test -n "$ac_ct_AR"; then
dana9f39fd2011-08-12 16:34:42 +00004544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004545$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004546else
dana9f39fd2011-08-12 16:34:42 +00004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004548$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004549fi
4550
drh8b727472009-01-19 18:18:40 +00004551 if test "x$ac_ct_AR" = x; then
4552 AR="false"
4553 else
4554 case $cross_compiling:$ac_tool_warned in
4555yes:)
dana9f39fd2011-08-12 16:34:42 +00004556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004558ac_tool_warned=yes ;;
4559esac
4560 AR=$ac_ct_AR
4561 fi
mlcreech636a9952008-05-05 22:52:56 +00004562else
4563 AR="$ac_cv_prog_AR"
4564fi
4565
4566test -z "$AR" && AR=ar
4567test -z "$AR_FLAGS" && AR_FLAGS=cru
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4581set dummy ${ac_tool_prefix}strip; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004583$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004584if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004585 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004586else
4587 if test -n "$STRIP"; then
4588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004595 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
dana9f39fd2011-08-12 16:34:42 +00004598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004599 break 2
4600 fi
4601done
dana9f39fd2011-08-12 16:34:42 +00004602 done
drh8b727472009-01-19 18:18:40 +00004603IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004604
4605fi
4606fi
4607STRIP=$ac_cv_prog_STRIP
4608if test -n "$STRIP"; then
dana9f39fd2011-08-12 16:34:42 +00004609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004610$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004611else
dana9f39fd2011-08-12 16:34:42 +00004612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004613$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004614fi
4615
drh8b727472009-01-19 18:18:40 +00004616
mlcreech636a9952008-05-05 22:52:56 +00004617fi
4618if test -z "$ac_cv_prog_STRIP"; then
4619 ac_ct_STRIP=$STRIP
4620 # Extract the first word of "strip", so it can be a program name with args.
4621set dummy strip; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004623$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004624if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004625 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004626else
4627 if test -n "$ac_ct_STRIP"; then
4628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004635 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004637 ac_cv_prog_ac_ct_STRIP="strip"
dana9f39fd2011-08-12 16:34:42 +00004638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004639 break 2
4640 fi
4641done
dana9f39fd2011-08-12 16:34:42 +00004642 done
drh8b727472009-01-19 18:18:40 +00004643IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004644
4645fi
4646fi
4647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4648if test -n "$ac_ct_STRIP"; then
dana9f39fd2011-08-12 16:34:42 +00004649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004650$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004651else
dana9f39fd2011-08-12 16:34:42 +00004652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004653$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004654fi
4655
drh8b727472009-01-19 18:18:40 +00004656 if test "x$ac_ct_STRIP" = x; then
4657 STRIP=":"
4658 else
4659 case $cross_compiling:$ac_tool_warned in
4660yes:)
dana9f39fd2011-08-12 16:34:42 +00004661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004663ac_tool_warned=yes ;;
4664esac
4665 STRIP=$ac_ct_STRIP
4666 fi
mlcreech636a9952008-05-05 22:52:56 +00004667else
4668 STRIP="$ac_cv_prog_STRIP"
4669fi
4670
4671test -z "$STRIP" && STRIP=:
4672
4673
4674
4675
4676
4677
4678if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004682$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004683if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004684 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004685else
4686 if test -n "$RANLIB"; then
4687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004694 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
dana9f39fd2011-08-12 16:34:42 +00004697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004698 break 2
4699 fi
4700done
dana9f39fd2011-08-12 16:34:42 +00004701 done
drh8b727472009-01-19 18:18:40 +00004702IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004703
4704fi
4705fi
4706RANLIB=$ac_cv_prog_RANLIB
4707if test -n "$RANLIB"; then
dana9f39fd2011-08-12 16:34:42 +00004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004709$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004710else
dana9f39fd2011-08-12 16:34:42 +00004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004712$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004713fi
4714
drh8b727472009-01-19 18:18:40 +00004715
mlcreech636a9952008-05-05 22:52:56 +00004716fi
4717if test -z "$ac_cv_prog_RANLIB"; then
4718 ac_ct_RANLIB=$RANLIB
4719 # Extract the first word of "ranlib", so it can be a program name with args.
4720set dummy ranlib; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00004721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004722$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004723if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004724 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004725else
4726 if test -n "$ac_ct_RANLIB"; then
4727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4728else
4729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00004734 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004736 ac_cv_prog_ac_ct_RANLIB="ranlib"
dana9f39fd2011-08-12 16:34:42 +00004737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004738 break 2
4739 fi
4740done
dana9f39fd2011-08-12 16:34:42 +00004741 done
drh8b727472009-01-19 18:18:40 +00004742IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004743
4744fi
4745fi
4746ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4747if test -n "$ac_ct_RANLIB"; then
dana9f39fd2011-08-12 16:34:42 +00004748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004749$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004750else
dana9f39fd2011-08-12 16:34:42 +00004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004752$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004753fi
4754
drh8b727472009-01-19 18:18:40 +00004755 if test "x$ac_ct_RANLIB" = x; then
4756 RANLIB=":"
4757 else
4758 case $cross_compiling:$ac_tool_warned in
4759yes:)
dana9f39fd2011-08-12 16:34:42 +00004760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004762ac_tool_warned=yes ;;
4763esac
4764 RANLIB=$ac_ct_RANLIB
4765 fi
mlcreech636a9952008-05-05 22:52:56 +00004766else
4767 RANLIB="$ac_cv_prog_RANLIB"
4768fi
4769
4770test -z "$RANLIB" && RANLIB=:
4771
4772
4773
4774
4775
4776
4777# Determine commands to create old-style static archives.
4778old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4779old_postinstall_cmds='chmod 644 $oldlib'
4780old_postuninstall_cmds=
4781
4782if test -n "$RANLIB"; then
4783 case $host_os in
4784 openbsd*)
4785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4786 ;;
4787 *)
4788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4789 ;;
4790 esac
4791 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4792fi
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
a.rottmann9bc8b932004-02-29 15:18:31 +00004827# If no C compiler was specified, use CC.
4828LTCC=${LTCC-"$CC"}
4829
vapier7f19c022007-02-17 14:46:31 +00004830# If no C compiler flags were specified, use CFLAGS.
4831LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4832
a.rottmann9bc8b932004-02-29 15:18:31 +00004833# Allow CC to be a program name with arguments.
4834compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004835
drh71eb93e2001-09-28 01:34:43 +00004836
mlcreech636a9952008-05-05 22:52:56 +00004837# Check for command to grab the raw symbol name followed by C symbol from nm.
dana9f39fd2011-08-12 16:34:42 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004839$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00004840if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004841 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004842else
4843
4844# These are sane defaults that work on at least a few old systems.
4845# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4846
4847# Character class describing NM global symbol codes.
4848symcode='[BCDEGRST]'
4849
4850# Regexp to match symbols that can be accessed directly from C.
4851sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4852
4853# Define system-specific variables.
4854case $host_os in
4855aix*)
4856 symcode='[BCDT]'
4857 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004858cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004859 symcode='[ABCDGISTW]'
4860 ;;
4861hpux*)
4862 if test "$host_cpu" = ia64; then
4863 symcode='[ABCDEGRST]'
4864 fi
4865 ;;
4866irix* | nonstopux*)
4867 symcode='[BCDEGRST]'
4868 ;;
4869osf*)
4870 symcode='[BCDEGQRST]'
4871 ;;
4872solaris*)
4873 symcode='[BDRT]'
4874 ;;
4875sco3.2v5*)
4876 symcode='[DT]'
4877 ;;
4878sysv4.2uw2*)
4879 symcode='[DT]'
4880 ;;
4881sysv5* | sco5v6* | unixware* | OpenUNIX*)
4882 symcode='[ABDT]'
4883 ;;
4884sysv4)
4885 symcode='[DFNSTU]'
4886 ;;
4887esac
4888
4889# If we're using GNU nm, then use its standard symbol codes.
4890case `$NM -V 2>&1` in
4891*GNU* | *'with BFD'*)
4892 symcode='[ABCDGIRSTW]' ;;
4893esac
4894
4895# Transform an extracted symbol line into a proper C declaration.
4896# Some systems (esp. on ia64) link data and code symbols differently,
4897# so use this general approach.
4898lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4899
4900# Transform an extracted symbol line into symbol name and symbol address
4901lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4902lt_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'"
4903
4904# Handle CRLF in mingw tool chain
4905opt_cr=
4906case $build_os in
4907mingw*)
4908 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4909 ;;
4910esac
4911
4912# Try without a prefix underscore, then with it.
4913for ac_symprfx in "" "_"; do
4914
4915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4916 symxfrm="\\1 $ac_symprfx\\2 \\2"
4917
4918 # Write the raw and C identifiers.
4919 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4920 # Fake it for dumpbin and say T for any non-static function
4921 # and D for any global variable.
4922 # Also find C++ and __fastcall symbols from MSVC++,
4923 # which start with @ or ?.
4924 lt_cv_sys_global_symbol_pipe="$AWK '"\
4925" {last_section=section; section=\$ 3};"\
4926" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4927" \$ 0!~/External *\|/{next};"\
4928" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4929" {if(hide[section]) next};"\
4930" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4931" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4932" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4933" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4934" ' prfx=^$ac_symprfx"
4935 else
4936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4937 fi
4938
4939 # Check to see that the pipe works correctly.
4940 pipe_works=no
4941
4942 rm -f conftest*
4943 cat > conftest.$ac_ext <<_LT_EOF
4944#ifdef __cplusplus
4945extern "C" {
4946#endif
4947char nm_test_var;
4948void nm_test_func(void);
4949void nm_test_func(void){}
4950#ifdef __cplusplus
4951}
4952#endif
4953int main(){nm_test_var='a';nm_test_func();return(0);}
4954_LT_EOF
4955
dana9f39fd2011-08-12 16:34:42 +00004956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004957 (eval $ac_compile) 2>&5
4958 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00004959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004961 # Now try to grab the symbols.
4962 nlist=conftest.nm
dana9f39fd2011-08-12 16:34:42 +00004963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4965 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00004966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004968 # Try sorting and uniquifying the output.
4969 if sort "$nlist" | uniq > "$nlist"T; then
4970 mv -f "$nlist"T "$nlist"
4971 else
4972 rm -f "$nlist"T
4973 fi
4974
4975 # Make sure that we snagged all the symbols we need.
4976 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4977 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4978 cat <<_LT_EOF > conftest.$ac_ext
4979#ifdef __cplusplus
4980extern "C" {
4981#endif
4982
4983_LT_EOF
4984 # Now generate the symbol file.
4985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4986
4987 cat <<_LT_EOF >> conftest.$ac_ext
4988
4989/* The mapping between symbol names and symbols. */
4990const struct {
4991 const char *name;
4992 void *address;
4993}
4994lt__PROGRAM__LTX_preloaded_symbols[] =
4995{
4996 { "@PROGRAM@", (void *) 0 },
4997_LT_EOF
4998 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4999 cat <<\_LT_EOF >> conftest.$ac_ext
5000 {0, (void *) 0}
5001};
5002
5003/* This works around a problem in FreeBSD linker */
5004#ifdef FREEBSD_WORKAROUND
5005static const void *lt_preloaded_setup() {
5006 return lt__PROGRAM__LTX_preloaded_symbols;
5007}
5008#endif
5009
5010#ifdef __cplusplus
5011}
5012#endif
5013_LT_EOF
5014 # Now try linking the two files.
5015 mv conftest.$ac_objext conftstm.$ac_objext
5016 lt_save_LIBS="$LIBS"
5017 lt_save_CFLAGS="$CFLAGS"
5018 LIBS="conftstm.$ac_objext"
5019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
dana9f39fd2011-08-12 16:34:42 +00005020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005021 (eval $ac_link) 2>&5
5022 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005025 pipe_works=yes
5026 fi
5027 LIBS="$lt_save_LIBS"
5028 CFLAGS="$lt_save_CFLAGS"
5029 else
5030 echo "cannot find nm_test_func in $nlist" >&5
5031 fi
5032 else
5033 echo "cannot find nm_test_var in $nlist" >&5
5034 fi
5035 else
5036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5037 fi
5038 else
5039 echo "$progname: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5041 fi
5042 rm -rf conftest* conftst*
5043
5044 # Do not use the global_symbol_pipe unless it works.
5045 if test "$pipe_works" = yes; then
5046 break
5047 else
5048 lt_cv_sys_global_symbol_pipe=
5049 fi
5050done
5051
5052fi
5053
5054if test -z "$lt_cv_sys_global_symbol_pipe"; then
5055 lt_cv_sys_global_symbol_to_cdecl=
5056fi
5057if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dana9f39fd2011-08-12 16:34:42 +00005058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005059$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005060else
dana9f39fd2011-08-12 16:34:42 +00005061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005062$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005063fi
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
drh8b727472009-01-19 18:18:40 +00005087# Check whether --enable-libtool-lock was given.
dana9f39fd2011-08-12 16:34:42 +00005088if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005089 enableval=$enable_libtool_lock;
5090fi
drh71eb93e2001-09-28 01:34:43 +00005091
a.rottmann9bc8b932004-02-29 15:18:31 +00005092test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005093
a.rottmann9bc8b932004-02-29 15:18:31 +00005094# Some flags need to be propagated to the compiler or linker for good
5095# libtool support.
5096case $host in
5097ia64-*-hpux*)
5098 # Find out which ABI we are using.
5099 echo 'int i;' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005101 (eval $ac_compile) 2>&5
5102 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005105 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005106 *ELF-32*)
5107 HPUX_IA64_MODE="32"
5108 ;;
5109 *ELF-64*)
5110 HPUX_IA64_MODE="64"
5111 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005112 esac
5113 fi
5114 rm -rf conftest*
5115 ;;
5116*-*-irix6*)
5117 # Find out which ABI we are using.
drh6a8ab6d2011-11-09 01:53:25 +00005118 echo '#line 5118 "configure"' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005120 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005121 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005124 if test "$lt_cv_prog_gnu_ld" = yes; then
5125 case `/usr/bin/file conftest.$ac_objext` in
5126 *32-bit*)
5127 LD="${LD-ld} -melf32bsmip"
5128 ;;
5129 *N32*)
5130 LD="${LD-ld} -melf32bmipn32"
5131 ;;
5132 *64-bit*)
5133 LD="${LD-ld} -melf64bmip"
5134 ;;
5135 esac
5136 else
5137 case `/usr/bin/file conftest.$ac_objext` in
5138 *32-bit*)
5139 LD="${LD-ld} -32"
5140 ;;
5141 *N32*)
5142 LD="${LD-ld} -n32"
5143 ;;
5144 *64-bit*)
5145 LD="${LD-ld} -64"
5146 ;;
5147 esac
5148 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005149 fi
5150 rm -rf conftest*
5151 ;;
drh71eb93e2001-09-28 01:34:43 +00005152
mlcreech636a9952008-05-05 22:52:56 +00005153x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5154s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005155 # Find out which ABI we are using.
5156 echo 'int i;' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005158 (eval $ac_compile) 2>&5
5159 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005162 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005163 *32-bit*)
5164 case $host in
5165 x86_64-*kfreebsd*-gnu)
5166 LD="${LD-ld} -m elf_i386_fbsd"
5167 ;;
5168 x86_64-*linux*)
5169 LD="${LD-ld} -m elf_i386"
5170 ;;
5171 ppc64-*linux*|powerpc64-*linux*)
5172 LD="${LD-ld} -m elf32ppclinux"
5173 ;;
5174 s390x-*linux*)
5175 LD="${LD-ld} -m elf_s390"
5176 ;;
5177 sparc64-*linux*)
5178 LD="${LD-ld} -m elf32_sparc"
5179 ;;
5180 esac
5181 ;;
5182 *64-bit*)
5183 case $host in
5184 x86_64-*kfreebsd*-gnu)
5185 LD="${LD-ld} -m elf_x86_64_fbsd"
5186 ;;
5187 x86_64-*linux*)
5188 LD="${LD-ld} -m elf_x86_64"
5189 ;;
5190 ppc*-*linux*|powerpc*-*linux*)
5191 LD="${LD-ld} -m elf64ppc"
5192 ;;
5193 s390*-*linux*|s390*-*tpf*)
5194 LD="${LD-ld} -m elf64_s390"
5195 ;;
5196 sparc*-*linux*)
5197 LD="${LD-ld} -m elf64_sparc"
5198 ;;
5199 esac
5200 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005201 esac
5202 fi
5203 rm -rf conftest*
5204 ;;
drh71eb93e2001-09-28 01:34:43 +00005205
a.rottmann9bc8b932004-02-29 15:18:31 +00005206*-*-sco3.2v5*)
5207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5208 SAVE_CFLAGS="$CFLAGS"
5209 CFLAGS="$CFLAGS -belf"
dana9f39fd2011-08-12 16:34:42 +00005210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005211$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005212if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005213 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005214else
5215 ac_ext=c
5216ac_cpp='$CPP $CPPFLAGS'
5217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005220
dana9f39fd2011-08-12 16:34:42 +00005221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005222/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005223
a.rottmann9bc8b932004-02-29 15:18:31 +00005224int
5225main ()
drh71eb93e2001-09-28 01:34:43 +00005226{
drh71eb93e2001-09-28 01:34:43 +00005227
a.rottmann9bc8b932004-02-29 15:18:31 +00005228 ;
5229 return 0;
drh71eb93e2001-09-28 01:34:43 +00005230}
a.rottmann9bc8b932004-02-29 15:18:31 +00005231_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005232if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005233 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005234else
dana9f39fd2011-08-12 16:34:42 +00005235 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005236fi
dana9f39fd2011-08-12 16:34:42 +00005237rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005239 ac_ext=c
5240ac_cpp='$CPP $CPPFLAGS'
5241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243ac_compiler_gnu=$ac_cv_c_compiler_gnu
5244
drh71eb93e2001-09-28 01:34:43 +00005245fi
dana9f39fd2011-08-12 16:34:42 +00005246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005247$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005248 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5249 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5250 CFLAGS="$SAVE_CFLAGS"
5251 fi
5252 ;;
vapier7f19c022007-02-17 14:46:31 +00005253sparc*-*solaris*)
5254 # Find out which ABI we are using.
5255 echo 'int i;' > conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005257 (eval $ac_compile) 2>&5
5258 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00005259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005261 case `/usr/bin/file conftest.o` in
5262 *64-bit*)
5263 case $lt_cv_prog_gnu_ld in
5264 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005265 *)
5266 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5267 LD="${LD-ld} -64"
5268 fi
5269 ;;
vapier7f19c022007-02-17 14:46:31 +00005270 esac
5271 ;;
5272 esac
5273 fi
5274 rm -rf conftest*
5275 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005276esac
5277
5278need_locks="$enable_libtool_lock"
5279
drh71eb93e2001-09-28 01:34:43 +00005280
mlcreech636a9952008-05-05 22:52:56 +00005281 case $host_os in
5282 rhapsody* | darwin*)
5283 if test -n "$ac_tool_prefix"; then
5284 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5285set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005287$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005288if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005289 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005290else
5291 if test -n "$DSYMUTIL"; then
5292 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005299 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005301 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
dana9f39fd2011-08-12 16:34:42 +00005302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005303 break 2
5304 fi
5305done
dana9f39fd2011-08-12 16:34:42 +00005306 done
drh8b727472009-01-19 18:18:40 +00005307IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005308
5309fi
5310fi
5311DSYMUTIL=$ac_cv_prog_DSYMUTIL
5312if test -n "$DSYMUTIL"; then
dana9f39fd2011-08-12 16:34:42 +00005313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005314$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005315else
dana9f39fd2011-08-12 16:34:42 +00005316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005317$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005318fi
5319
drh8b727472009-01-19 18:18:40 +00005320
mlcreech636a9952008-05-05 22:52:56 +00005321fi
5322if test -z "$ac_cv_prog_DSYMUTIL"; then
5323 ac_ct_DSYMUTIL=$DSYMUTIL
5324 # Extract the first word of "dsymutil", so it can be a program name with args.
5325set dummy dsymutil; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005327$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005328if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005329 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005330else
5331 if test -n "$ac_ct_DSYMUTIL"; then
5332 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5333else
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005339 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
dana9f39fd2011-08-12 16:34:42 +00005342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005343 break 2
5344 fi
5345done
dana9f39fd2011-08-12 16:34:42 +00005346 done
drh8b727472009-01-19 18:18:40 +00005347IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005348
5349fi
5350fi
5351ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5352if test -n "$ac_ct_DSYMUTIL"; then
dana9f39fd2011-08-12 16:34:42 +00005353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005354$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005355else
dana9f39fd2011-08-12 16:34:42 +00005356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005357$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005358fi
5359
drh8b727472009-01-19 18:18:40 +00005360 if test "x$ac_ct_DSYMUTIL" = x; then
5361 DSYMUTIL=":"
5362 else
5363 case $cross_compiling:$ac_tool_warned in
5364yes:)
dana9f39fd2011-08-12 16:34:42 +00005365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005367ac_tool_warned=yes ;;
5368esac
5369 DSYMUTIL=$ac_ct_DSYMUTIL
5370 fi
mlcreech636a9952008-05-05 22:52:56 +00005371else
5372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5373fi
5374
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5377set dummy ${ac_tool_prefix}nmedit; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005379$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005380if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005381 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005382else
5383 if test -n "$NMEDIT"; then
5384 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005391 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005393 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
dana9f39fd2011-08-12 16:34:42 +00005394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005395 break 2
5396 fi
5397done
dana9f39fd2011-08-12 16:34:42 +00005398 done
drh8b727472009-01-19 18:18:40 +00005399IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005400
5401fi
5402fi
5403NMEDIT=$ac_cv_prog_NMEDIT
5404if test -n "$NMEDIT"; then
dana9f39fd2011-08-12 16:34:42 +00005405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005406$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005407else
dana9f39fd2011-08-12 16:34:42 +00005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005409$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005410fi
5411
drh8b727472009-01-19 18:18:40 +00005412
mlcreech636a9952008-05-05 22:52:56 +00005413fi
5414if test -z "$ac_cv_prog_NMEDIT"; then
5415 ac_ct_NMEDIT=$NMEDIT
5416 # Extract the first word of "nmedit", so it can be a program name with args.
5417set dummy nmedit; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005419$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005420if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005421 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005422else
5423 if test -n "$ac_ct_NMEDIT"; then
5424 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005431 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005433 ac_cv_prog_ac_ct_NMEDIT="nmedit"
dana9f39fd2011-08-12 16:34:42 +00005434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005435 break 2
5436 fi
5437done
dana9f39fd2011-08-12 16:34:42 +00005438 done
drh8b727472009-01-19 18:18:40 +00005439IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005440
5441fi
5442fi
5443ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5444if test -n "$ac_ct_NMEDIT"; then
dana9f39fd2011-08-12 16:34:42 +00005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005446$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005447else
dana9f39fd2011-08-12 16:34:42 +00005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005449$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005450fi
5451
drh8b727472009-01-19 18:18:40 +00005452 if test "x$ac_ct_NMEDIT" = x; then
5453 NMEDIT=":"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456yes:)
dana9f39fd2011-08-12 16:34:42 +00005457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005459ac_tool_warned=yes ;;
5460esac
5461 NMEDIT=$ac_ct_NMEDIT
5462 fi
mlcreech636a9952008-05-05 22:52:56 +00005463else
5464 NMEDIT="$ac_cv_prog_NMEDIT"
5465fi
5466
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5469set dummy ${ac_tool_prefix}lipo; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005471$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005472if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005473 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005474else
5475 if test -n "$LIPO"; then
5476 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005483 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005485 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
dana9f39fd2011-08-12 16:34:42 +00005486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005487 break 2
5488 fi
5489done
dana9f39fd2011-08-12 16:34:42 +00005490 done
drh8b727472009-01-19 18:18:40 +00005491IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005492
5493fi
5494fi
5495LIPO=$ac_cv_prog_LIPO
5496if test -n "$LIPO"; then
dana9f39fd2011-08-12 16:34:42 +00005497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005498$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005499else
dana9f39fd2011-08-12 16:34:42 +00005500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005501$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005502fi
5503
drh8b727472009-01-19 18:18:40 +00005504
mlcreech636a9952008-05-05 22:52:56 +00005505fi
5506if test -z "$ac_cv_prog_LIPO"; then
5507 ac_ct_LIPO=$LIPO
5508 # Extract the first word of "lipo", so it can be a program name with args.
5509set dummy lipo; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005511$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005512if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005513 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005514else
5515 if test -n "$ac_ct_LIPO"; then
5516 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005523 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005525 ac_cv_prog_ac_ct_LIPO="lipo"
dana9f39fd2011-08-12 16:34:42 +00005526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005527 break 2
5528 fi
5529done
dana9f39fd2011-08-12 16:34:42 +00005530 done
drh8b727472009-01-19 18:18:40 +00005531IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005532
5533fi
5534fi
5535ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5536if test -n "$ac_ct_LIPO"; then
dana9f39fd2011-08-12 16:34:42 +00005537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005538$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005539else
dana9f39fd2011-08-12 16:34:42 +00005540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005541$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005542fi
5543
drh8b727472009-01-19 18:18:40 +00005544 if test "x$ac_ct_LIPO" = x; then
5545 LIPO=":"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548yes:)
dana9f39fd2011-08-12 16:34:42 +00005549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005551ac_tool_warned=yes ;;
5552esac
5553 LIPO=$ac_ct_LIPO
5554 fi
mlcreech636a9952008-05-05 22:52:56 +00005555else
5556 LIPO="$ac_cv_prog_LIPO"
5557fi
5558
5559 if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5561set dummy ${ac_tool_prefix}otool; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005563$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005564if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005565 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005566else
5567 if test -n "$OTOOL"; then
5568 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005575 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005577 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
dana9f39fd2011-08-12 16:34:42 +00005578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005579 break 2
5580 fi
5581done
dana9f39fd2011-08-12 16:34:42 +00005582 done
drh8b727472009-01-19 18:18:40 +00005583IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005584
5585fi
5586fi
5587OTOOL=$ac_cv_prog_OTOOL
5588if test -n "$OTOOL"; then
dana9f39fd2011-08-12 16:34:42 +00005589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005590$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005591else
dana9f39fd2011-08-12 16:34:42 +00005592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005593$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005594fi
5595
drh8b727472009-01-19 18:18:40 +00005596
mlcreech636a9952008-05-05 22:52:56 +00005597fi
5598if test -z "$ac_cv_prog_OTOOL"; then
5599 ac_ct_OTOOL=$OTOOL
5600 # Extract the first word of "otool", so it can be a program name with args.
5601set dummy otool; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005603$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005604if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005605 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005606else
5607 if test -n "$ac_ct_OTOOL"; then
5608 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005615 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005617 ac_cv_prog_ac_ct_OTOOL="otool"
dana9f39fd2011-08-12 16:34:42 +00005618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005619 break 2
5620 fi
5621done
dana9f39fd2011-08-12 16:34:42 +00005622 done
drh8b727472009-01-19 18:18:40 +00005623IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005624
5625fi
5626fi
5627ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5628if test -n "$ac_ct_OTOOL"; then
dana9f39fd2011-08-12 16:34:42 +00005629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005630$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005631else
dana9f39fd2011-08-12 16:34:42 +00005632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005633$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005634fi
5635
drh8b727472009-01-19 18:18:40 +00005636 if test "x$ac_ct_OTOOL" = x; then
5637 OTOOL=":"
5638 else
5639 case $cross_compiling:$ac_tool_warned in
5640yes:)
dana9f39fd2011-08-12 16:34:42 +00005641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005643ac_tool_warned=yes ;;
5644esac
5645 OTOOL=$ac_ct_OTOOL
5646 fi
mlcreech636a9952008-05-05 22:52:56 +00005647else
5648 OTOOL="$ac_cv_prog_OTOOL"
5649fi
5650
5651 if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5653set dummy ${ac_tool_prefix}otool64; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005655$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005656if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005657 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005658else
5659 if test -n "$OTOOL64"; then
5660 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005667 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005669 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
dana9f39fd2011-08-12 16:34:42 +00005670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005671 break 2
5672 fi
5673done
dana9f39fd2011-08-12 16:34:42 +00005674 done
drh8b727472009-01-19 18:18:40 +00005675IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005676
5677fi
5678fi
5679OTOOL64=$ac_cv_prog_OTOOL64
5680if test -n "$OTOOL64"; then
dana9f39fd2011-08-12 16:34:42 +00005681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005682$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005683else
dana9f39fd2011-08-12 16:34:42 +00005684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005685$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005686fi
5687
drh8b727472009-01-19 18:18:40 +00005688
mlcreech636a9952008-05-05 22:52:56 +00005689fi
5690if test -z "$ac_cv_prog_OTOOL64"; then
5691 ac_ct_OTOOL64=$OTOOL64
5692 # Extract the first word of "otool64", so it can be a program name with args.
5693set dummy otool64; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00005694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005695$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005696if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005697 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005698else
5699 if test -n "$ac_ct_OTOOL64"; then
5700 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00005707 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005709 ac_cv_prog_ac_ct_OTOOL64="otool64"
dana9f39fd2011-08-12 16:34:42 +00005710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005711 break 2
5712 fi
5713done
dana9f39fd2011-08-12 16:34:42 +00005714 done
drh8b727472009-01-19 18:18:40 +00005715IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005716
5717fi
5718fi
5719ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5720if test -n "$ac_ct_OTOOL64"; then
dana9f39fd2011-08-12 16:34:42 +00005721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005722$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005723else
dana9f39fd2011-08-12 16:34:42 +00005724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005725$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005726fi
5727
drh8b727472009-01-19 18:18:40 +00005728 if test "x$ac_ct_OTOOL64" = x; then
5729 OTOOL64=":"
5730 else
5731 case $cross_compiling:$ac_tool_warned in
5732yes:)
dana9f39fd2011-08-12 16:34:42 +00005733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005735ac_tool_warned=yes ;;
5736esac
5737 OTOOL64=$ac_ct_OTOOL64
5738 fi
mlcreech636a9952008-05-05 22:52:56 +00005739else
5740 OTOOL64="$ac_cv_prog_OTOOL64"
5741fi
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
dana9f39fd2011-08-12 16:34:42 +00005769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005770$as_echo_n "checking for -single_module linker flag... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005771if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005772 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005773else
5774 lt_cv_apple_cc_single_mod=no
5775 if test -z "${LT_MULTI_MODULE}"; then
5776 # By default we will add the -single_module flag. You can override
5777 # by either setting the environment variable LT_MULTI_MODULE
5778 # non-empty at configure time, or by adding -multi_module to the
5779 # link flags.
5780 rm -rf libconftest.dylib*
5781 echo "int foo(void){return 1;}" > conftest.c
5782 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5783-dynamiclib -Wl,-single_module conftest.c" >&5
5784 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5785 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5786 _lt_result=$?
5787 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5788 lt_cv_apple_cc_single_mod=yes
5789 else
5790 cat conftest.err >&5
5791 fi
5792 rm -rf libconftest.dylib*
5793 rm -f conftest.*
5794 fi
5795fi
dana9f39fd2011-08-12 16:34:42 +00005796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005797$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
dana9f39fd2011-08-12 16:34:42 +00005798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005799$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00005800if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005801 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005802else
5803 lt_cv_ld_exported_symbols_list=no
5804 save_LDFLAGS=$LDFLAGS
5805 echo "_main" > conftest.sym
5806 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
dana9f39fd2011-08-12 16:34:42 +00005807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005808/* end confdefs.h. */
5809
5810int
5811main ()
5812{
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005818if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005819 lt_cv_ld_exported_symbols_list=yes
5820else
dana9f39fd2011-08-12 16:34:42 +00005821 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005822fi
dana9f39fd2011-08-12 16:34:42 +00005823rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005825 LDFLAGS="$save_LDFLAGS"
5826
5827fi
dana9f39fd2011-08-12 16:34:42 +00005828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005829$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005830 case $host_os in
5831 rhapsody* | darwin1.[012])
5832 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5833 darwin1.*)
5834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5835 darwin*) # darwin 5.x on
5836 # if running on 10.5 or later, the deployment target defaults
5837 # to the OS version, if on x86, and 10.4, the deployment
5838 # target defaults to 10.4. Don't you love it?
5839 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5840 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5841 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5842 10.[012]*)
5843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5844 10.*)
5845 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5846 esac
5847 ;;
5848 esac
5849 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5850 _lt_dar_single_mod='$single_module'
5851 fi
5852 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5853 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5854 else
5855 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5856 fi
5857 if test "$DSYMUTIL" != ":"; then
5858 _lt_dsymutil='~$DSYMUTIL $lib || :'
5859 else
5860 _lt_dsymutil=
5861 fi
5862 ;;
5863 esac
5864
a.rottmann84e63352003-03-24 09:42:16 +00005865ac_ext=c
5866ac_cpp='$CPP $CPPFLAGS'
5867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869ac_compiler_gnu=$ac_cv_c_compiler_gnu
dana9f39fd2011-08-12 16:34:42 +00005870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005871$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005872# On Suns, sometimes $CPP names a directory.
5873if test -n "$CPP" && test -d "$CPP"; then
5874 CPP=
5875fi
5876if test -z "$CPP"; then
drh6a8ab6d2011-11-09 01:53:25 +00005877 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005878 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005879else
a.rottmann84e63352003-03-24 09:42:16 +00005880 # Double quotes because CPP needs to be expanded
5881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5882 do
5883 ac_preproc_ok=false
5884for ac_c_preproc_warn_flag in '' yes
5885do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
dana9f39fd2011-08-12 16:34:42 +00005892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005893/* end confdefs.h. */
5894#ifdef __STDC__
5895# include <limits.h>
5896#else
5897# include <assert.h>
5898#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005899 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005900_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005901if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005902
dana9f39fd2011-08-12 16:34:42 +00005903else
a.rottmann84e63352003-03-24 09:42:16 +00005904 # Broken: fails on valid input.
5905continue
5906fi
drh0fe0c462011-09-22 00:56:38 +00005907rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005908
drh8b727472009-01-19 18:18:40 +00005909 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005910 # can be detected and how.
dana9f39fd2011-08-12 16:34:42 +00005911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005912/* end confdefs.h. */
5913#include <ac_nonexistent.h>
5914_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005915if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005916 # Broken: success on invalid input.
5917continue
5918else
a.rottmann84e63352003-03-24 09:42:16 +00005919 # Passes both tests.
5920ac_preproc_ok=:
5921break
5922fi
drh0fe0c462011-09-22 00:56:38 +00005923rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005924
5925done
5926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh0fe0c462011-09-22 00:56:38 +00005927rm -f conftest.i conftest.err conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005928if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005929 break
5930fi
5931
5932 done
5933 ac_cv_prog_CPP=$CPP
5934
5935fi
5936 CPP=$ac_cv_prog_CPP
5937else
5938 ac_cv_prog_CPP=$CPP
5939fi
dana9f39fd2011-08-12 16:34:42 +00005940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005941$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005942ac_preproc_ok=false
5943for ac_c_preproc_warn_flag in '' yes
5944do
5945 # Use a header file that comes with gcc, so configuring glibc
5946 # with a fresh cross-compiler works.
5947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5948 # <limits.h> exists even on freestanding compilers.
5949 # On the NeXT, cc -E runs the code through the compiler's parser,
5950 # not just through cpp. "Syntax error" is here to catch this case.
dana9f39fd2011-08-12 16:34:42 +00005951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005952/* end confdefs.h. */
5953#ifdef __STDC__
5954# include <limits.h>
5955#else
5956# include <assert.h>
5957#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005958 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005959_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005960if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005961
dana9f39fd2011-08-12 16:34:42 +00005962else
a.rottmann84e63352003-03-24 09:42:16 +00005963 # Broken: fails on valid input.
5964continue
5965fi
drh0fe0c462011-09-22 00:56:38 +00005966rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005967
drh8b727472009-01-19 18:18:40 +00005968 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005969 # can be detected and how.
dana9f39fd2011-08-12 16:34:42 +00005970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005971/* end confdefs.h. */
5972#include <ac_nonexistent.h>
5973_ACEOF
dana9f39fd2011-08-12 16:34:42 +00005974if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005975 # Broken: success on invalid input.
5976continue
5977else
a.rottmann84e63352003-03-24 09:42:16 +00005978 # Passes both tests.
5979ac_preproc_ok=:
5980break
5981fi
drh0fe0c462011-09-22 00:56:38 +00005982rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005983
5984done
5985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh0fe0c462011-09-22 00:56:38 +00005986rm -f conftest.i conftest.err conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +00005987if $ac_preproc_ok; then :
5988
a.rottmann84e63352003-03-24 09:42:16 +00005989else
dana9f39fd2011-08-12 16:34:42 +00005990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh0fe0c462011-09-22 00:56:38 +00005992as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
drh6a8ab6d2011-11-09 01:53:25 +00005993See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00005994fi
5995
5996ac_ext=c
5997ac_cpp='$CPP $CPPFLAGS'
5998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000ac_compiler_gnu=$ac_cv_c_compiler_gnu
6001
6002
dana9f39fd2011-08-12 16:34:42 +00006003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006004$as_echo_n "checking for ANSI C header files... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00006005if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006006 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006007else
dana9f39fd2011-08-12 16:34:42 +00006008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006009/* end confdefs.h. */
6010#include <stdlib.h>
6011#include <stdarg.h>
6012#include <string.h>
6013#include <float.h>
6014
6015int
6016main ()
6017{
6018
6019 ;
6020 return 0;
6021}
6022_ACEOF
dana9f39fd2011-08-12 16:34:42 +00006023if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006024 ac_cv_header_stdc=yes
6025else
dana9f39fd2011-08-12 16:34:42 +00006026 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006027fi
drh8b727472009-01-19 18:18:40 +00006028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006029
6030if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
dana9f39fd2011-08-12 16:34:42 +00006032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006033/* end confdefs.h. */
6034#include <string.h>
6035
6036_ACEOF
6037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
dana9f39fd2011-08-12 16:34:42 +00006038 $EGREP "memchr" >/dev/null 2>&1; then :
6039
a.rottmann84e63352003-03-24 09:42:16 +00006040else
6041 ac_cv_header_stdc=no
6042fi
6043rm -f conftest*
6044
6045fi
6046
6047if test $ac_cv_header_stdc = yes; then
6048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
dana9f39fd2011-08-12 16:34:42 +00006049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006050/* end confdefs.h. */
6051#include <stdlib.h>
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
dana9f39fd2011-08-12 16:34:42 +00006055 $EGREP "free" >/dev/null 2>&1; then :
6056
a.rottmann84e63352003-03-24 09:42:16 +00006057else
6058 ac_cv_header_stdc=no
6059fi
6060rm -f conftest*
6061
6062fi
6063
6064if test $ac_cv_header_stdc = yes; then
6065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
dana9f39fd2011-08-12 16:34:42 +00006066 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006067 :
6068else
dana9f39fd2011-08-12 16:34:42 +00006069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006070/* end confdefs.h. */
6071#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006072#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006073#if ((' ' & 0x0FF) == 0x020)
6074# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6075# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076#else
6077# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006078 (('a' <= (c) && (c) <= 'i') \
6079 || ('j' <= (c) && (c) <= 'r') \
6080 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006081# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6082#endif
6083
6084#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6085int
6086main ()
6087{
6088 int i;
6089 for (i = 0; i < 256; i++)
6090 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006091 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006092 return 2;
6093 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006094}
6095_ACEOF
dana9f39fd2011-08-12 16:34:42 +00006096if ac_fn_c_try_run "$LINENO"; then :
6097
a.rottmann84e63352003-03-24 09:42:16 +00006098else
dana9f39fd2011-08-12 16:34:42 +00006099 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006100fi
dana9f39fd2011-08-12 16:34:42 +00006101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6102 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006103fi
6104
a.rottmann84e63352003-03-24 09:42:16 +00006105fi
6106fi
dana9f39fd2011-08-12 16:34:42 +00006107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006108$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006109if test $ac_cv_header_stdc = yes; then
6110
dana9f39fd2011-08-12 16:34:42 +00006111$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006112
6113fi
6114
6115# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006116for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006117 inttypes.h stdint.h unistd.h
dana9f39fd2011-08-12 16:34:42 +00006118do :
6119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6120ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6121"
drh0fe0c462011-09-22 00:56:38 +00006122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006123 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006125_ACEOF
6126
6127fi
6128
6129done
6130
6131
a.rottmann84e63352003-03-24 09:42:16 +00006132for ac_header in dlfcn.h
dana9f39fd2011-08-12 16:34:42 +00006133do :
6134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6135"
drh6a8ab6d2011-11-09 01:53:25 +00006136if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006137 cat >>confdefs.h <<_ACEOF
dana9f39fd2011-08-12 16:34:42 +00006138#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006139_ACEOF
6140
6141fi
6142
drh71eb93e2001-09-28 01:34:43 +00006143done
6144
drh71eb93e2001-09-28 01:34:43 +00006145
drh71eb93e2001-09-28 01:34:43 +00006146
mlcreech636a9952008-05-05 22:52:56 +00006147# Set options
mlcreech94984912008-03-04 19:03:08 +00006148
drh71eb93e2001-09-28 01:34:43 +00006149
drh71eb93e2001-09-28 01:34:43 +00006150
mlcreech636a9952008-05-05 22:52:56 +00006151 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006152
a.rottmann9bc8b932004-02-29 15:18:31 +00006153
mlcreech636a9952008-05-05 22:52:56 +00006154 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006155
a.rottmann9bc8b932004-02-29 15:18:31 +00006156
drh8b727472009-01-19 18:18:40 +00006157 # Check whether --enable-shared was given.
dana9f39fd2011-08-12 16:34:42 +00006158if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006159 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006160 case $enableval in
6161 yes) enable_shared=yes ;;
6162 no) enable_shared=no ;;
6163 *)
6164 enable_shared=no
6165 # Look at the argument we got. We use all the common list separators.
6166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6167 for pkg in $enableval; do
6168 IFS="$lt_save_ifs"
6169 if test "X$pkg" = "X$p"; then
6170 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006171 fi
mlcreech636a9952008-05-05 22:52:56 +00006172 done
6173 IFS="$lt_save_ifs"
6174 ;;
6175 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006176else
mlcreech636a9952008-05-05 22:52:56 +00006177 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006178fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006179
mlcreech636a9952008-05-05 22:52:56 +00006180
6181
6182
6183
6184
6185
6186
drh8b727472009-01-19 18:18:40 +00006187
6188 # Check whether --enable-static was given.
dana9f39fd2011-08-12 16:34:42 +00006189if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006190 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006191 case $enableval in
6192 yes) enable_static=yes ;;
6193 no) enable_static=no ;;
6194 *)
6195 enable_static=no
6196 # Look at the argument we got. We use all the common list separators.
6197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6198 for pkg in $enableval; do
6199 IFS="$lt_save_ifs"
6200 if test "X$pkg" = "X$p"; then
6201 enable_static=yes
6202 fi
6203 done
6204 IFS="$lt_save_ifs"
6205 ;;
6206 esac
6207else
6208 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006209fi
mlcreech636a9952008-05-05 22:52:56 +00006210
6211
6212
6213
6214
6215
6216
6217
6218
drh8b727472009-01-19 18:18:40 +00006219
6220# Check whether --with-pic was given.
dana9f39fd2011-08-12 16:34:42 +00006221if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006222 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006223else
6224 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006225fi
6226
mlcreech636a9952008-05-05 22:52:56 +00006227
6228test -z "$pic_mode" && pic_mode=default
6229
6230
6231
6232
6233
6234
6235
drh8b727472009-01-19 18:18:40 +00006236 # Check whether --enable-fast-install was given.
dana9f39fd2011-08-12 16:34:42 +00006237if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006238 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006239 case $enableval in
6240 yes) enable_fast_install=yes ;;
6241 no) enable_fast_install=no ;;
6242 *)
6243 enable_fast_install=no
6244 # Look at the argument we got. We use all the common list separators.
6245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6246 for pkg in $enableval; do
6247 IFS="$lt_save_ifs"
6248 if test "X$pkg" = "X$p"; then
6249 enable_fast_install=yes
6250 fi
6251 done
6252 IFS="$lt_save_ifs"
6253 ;;
6254 esac
6255else
6256 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006257fi
6258
mlcreech636a9952008-05-05 22:52:56 +00006259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269# This can be used to rebuild libtool when needed
6270LIBTOOL_DEPS="$ltmain"
6271
6272# Always use our own libtool.
6273LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299test -z "$LN_S" && LN_S="ln -s"
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314if test -n "${ZSH_VERSION+set}" ; then
6315 setopt NO_GLOB_SUBST
6316fi
6317
dana9f39fd2011-08-12 16:34:42 +00006318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006319$as_echo_n "checking for objdir... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00006320if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006321 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006322else
6323 rm -f .libs 2>/dev/null
6324mkdir .libs 2>/dev/null
6325if test -d .libs; then
6326 lt_cv_objdir=.libs
6327else
6328 # MS-DOS does not allow filenames that begin with a dot.
6329 lt_cv_objdir=_libs
6330fi
6331rmdir .libs 2>/dev/null
6332fi
dana9f39fd2011-08-12 16:34:42 +00006333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006334$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006335objdir=$lt_cv_objdir
6336
6337
6338
6339
6340
mlcreech636a9952008-05-05 22:52:56 +00006341cat >>confdefs.h <<_ACEOF
6342#define LT_OBJDIR "$lt_cv_objdir/"
6343_ACEOF
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
a.rottmann9bc8b932004-02-29 15:18:31 +00006361case $host_os in
6362aix3*)
6363 # AIX sometimes has problems with the GCC collect2 program. For some
6364 # reason, if we set the COLLECT_NAMES environment variable, the problems
6365 # vanish in a puff of smoke.
6366 if test "X${COLLECT_NAMES+set}" != Xset; then
6367 COLLECT_NAMES=
6368 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006369 fi
6370 ;;
6371esac
6372
a.rottmann9bc8b932004-02-29 15:18:31 +00006373# Sed substitution that helps us do robust quoting. It backslashifies
6374# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006375sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006376
6377# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006378double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006379
6380# Sed substitution to delay expansion of an escaped shell variable in a
6381# double_quote_subst'ed string.
6382delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6383
mlcreech636a9952008-05-05 22:52:56 +00006384# Sed substitution to delay expansion of an escaped single quote.
6385delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6386
a.rottmann9bc8b932004-02-29 15:18:31 +00006387# Sed substitution to avoid accidental globbing in evaled expressions
6388no_glob_subst='s/\*/\\\*/g'
6389
a.rottmann9bc8b932004-02-29 15:18:31 +00006390# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006391ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006392can_build_shared=yes
6393
vapier7f19c022007-02-17 14:46:31 +00006394# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006395# which needs '.lib').
6396libext=a
mlcreech636a9952008-05-05 22:52:56 +00006397
a.rottmann9bc8b932004-02-29 15:18:31 +00006398with_gnu_ld="$lt_cv_prog_gnu_ld"
6399
a.rottmann84e63352003-03-24 09:42:16 +00006400old_CC="$CC"
6401old_CFLAGS="$CFLAGS"
6402
6403# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006404test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006405test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006406test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006407test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006408test -z "$ac_objext" && ac_objext=o
6409
vapier7f19c022007-02-17 14:46:31 +00006410for cc_temp in $compiler""; do
6411 case $cc_temp in
6412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6414 \-*) ;;
6415 *) break;;
6416 esac
6417done
mlcreech636a9952008-05-05 22:52:56 +00006418cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006419
6420
a.rottmann9bc8b932004-02-29 15:18:31 +00006421# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006422test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006423case $deplibs_check_method in
6424file_magic*)
6425 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dana9f39fd2011-08-12 16:34:42 +00006426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006427$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00006428if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006429 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006430else
a.rottmann9bc8b932004-02-29 15:18:31 +00006431 case $MAGIC_CMD in
6432[\\/*] | ?:[\\/]*)
6433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6434 ;;
6435*)
6436 lt_save_MAGIC_CMD="$MAGIC_CMD"
6437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6439 for ac_dir in $ac_dummy; do
6440 IFS="$lt_save_ifs"
6441 test -z "$ac_dir" && ac_dir=.
6442 if test -f $ac_dir/${ac_tool_prefix}file; then
6443 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6444 if test -n "$file_magic_test_file"; then
6445 case $deplibs_check_method in
6446 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6450 $EGREP "$file_magic_regex" > /dev/null; then
6451 :
6452 else
mlcreech636a9952008-05-05 22:52:56 +00006453 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006454
a.rottmann9bc8b932004-02-29 15:18:31 +00006455*** Warning: the command libtool uses to detect shared libraries,
6456*** $file_magic_cmd, produces output that libtool cannot recognize.
6457*** The result is that libtool may fail to recognize shared libraries
6458*** as such. This will affect the creation of libtool libraries that
6459*** depend on shared libraries, but programs linked with such libtool
6460*** libraries will work regardless of this problem. Nevertheless, you
6461*** may want to report the problem to your system manager and/or to
6462*** bug-libtool@gnu.org
6463
mlcreech636a9952008-05-05 22:52:56 +00006464_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006465 fi ;;
6466 esac
6467 fi
6468 break
6469 fi
6470 done
6471 IFS="$lt_save_ifs"
6472 MAGIC_CMD="$lt_save_MAGIC_CMD"
6473 ;;
6474esac
6475fi
6476
6477MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6478if test -n "$MAGIC_CMD"; then
dana9f39fd2011-08-12 16:34:42 +00006479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006480$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006481else
dana9f39fd2011-08-12 16:34:42 +00006482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006483$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006484fi
6485
mlcreech636a9952008-05-05 22:52:56 +00006486
6487
6488
6489
a.rottmann9bc8b932004-02-29 15:18:31 +00006490if test -z "$lt_cv_path_MAGIC_CMD"; then
6491 if test -n "$ac_tool_prefix"; then
dana9f39fd2011-08-12 16:34:42 +00006492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006493$as_echo_n "checking for file... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00006494if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006495 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006496else
6497 case $MAGIC_CMD in
6498[\\/*] | ?:[\\/]*)
6499 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6500 ;;
6501*)
6502 lt_save_MAGIC_CMD="$MAGIC_CMD"
6503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6504 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6505 for ac_dir in $ac_dummy; do
6506 IFS="$lt_save_ifs"
6507 test -z "$ac_dir" && ac_dir=.
6508 if test -f $ac_dir/file; then
6509 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6510 if test -n "$file_magic_test_file"; then
6511 case $deplibs_check_method in
6512 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006513 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6516 $EGREP "$file_magic_regex" > /dev/null; then
6517 :
6518 else
mlcreech636a9952008-05-05 22:52:56 +00006519 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006520
6521*** Warning: the command libtool uses to detect shared libraries,
6522*** $file_magic_cmd, produces output that libtool cannot recognize.
6523*** The result is that libtool may fail to recognize shared libraries
6524*** as such. This will affect the creation of libtool libraries that
6525*** depend on shared libraries, but programs linked with such libtool
6526*** libraries will work regardless of this problem. Nevertheless, you
6527*** may want to report the problem to your system manager and/or to
6528*** bug-libtool@gnu.org
6529
mlcreech636a9952008-05-05 22:52:56 +00006530_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006531 fi ;;
6532 esac
6533 fi
6534 break
6535 fi
6536 done
6537 IFS="$lt_save_ifs"
6538 MAGIC_CMD="$lt_save_MAGIC_CMD"
6539 ;;
6540esac
6541fi
6542
6543MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6544if test -n "$MAGIC_CMD"; then
dana9f39fd2011-08-12 16:34:42 +00006545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006546$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006547else
dana9f39fd2011-08-12 16:34:42 +00006548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006549$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006550fi
6551
mlcreech636a9952008-05-05 22:52:56 +00006552
a.rottmann9bc8b932004-02-29 15:18:31 +00006553 else
6554 MAGIC_CMD=:
6555 fi
6556fi
6557
6558 fi
6559 ;;
6560esac
6561
a.rottmann9bc8b932004-02-29 15:18:31 +00006562# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006563
a.rottmann9bc8b932004-02-29 15:18:31 +00006564lt_save_CC="$CC"
6565ac_ext=c
6566ac_cpp='$CPP $CPPFLAGS'
6567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
6571
6572# Source file extension for C test sources.
6573ac_ext=c
6574
6575# Object file extension for compiled C test sources.
6576objext=o
6577objext=$objext
6578
6579# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006580lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006581
6582# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006583lt_simple_link_test_code='int main(){return(0);}'
6584
6585
6586
6587
6588
a.rottmann9bc8b932004-02-29 15:18:31 +00006589
6590
6591# If no C compiler was specified, use CC.
6592LTCC=${LTCC-"$CC"}
6593
vapier7f19c022007-02-17 14:46:31 +00006594# If no C compiler flags were specified, use CFLAGS.
6595LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6596
a.rottmann9bc8b932004-02-29 15:18:31 +00006597# Allow CC to be a program name with arguments.
6598compiler=$CC
6599
mlcreech636a9952008-05-05 22:52:56 +00006600# Save the default compiler, since it gets overwritten when the other
6601# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6602compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006603
vapier7f19c022007-02-17 14:46:31 +00006604# save warnings/boilerplate of simple test code
6605ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006606echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6608_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006609$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006610
vapier7f19c022007-02-17 14:46:31 +00006611ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006612echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6614_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006615$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006616
6617
mlcreech636a9952008-05-05 22:52:56 +00006618if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006619
6620lt_prog_compiler_no_builtin_flag=
6621
6622if test "$GCC" = yes; then
6623 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6624
dana9f39fd2011-08-12 16:34:42 +00006625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006626$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00006627if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006628 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006629else
6630 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006631 ac_outfile=conftest.$ac_objext
6632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006633 lt_compiler_flag="-fno-rtti -fno-exceptions"
6634 # Insert the option either (1) after the last *FLAGS variable, or
6635 # (2) before a word containing "conftest.", or (3) at the end.
6636 # Note that $ac_compile itself does not contain backslashes and begins
6637 # with a dollar sign (not a hyphen), so the echo should work correctly.
6638 # The option is referenced via a variable to avoid confusing sed.
6639 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6642 -e 's:$: $lt_compiler_flag:'`
drh6a8ab6d2011-11-09 01:53:25 +00006643 (eval echo "\"\$as_me:6643: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006644 (eval "$lt_compile" 2>conftest.err)
6645 ac_status=$?
6646 cat conftest.err >&5
drh6a8ab6d2011-11-09 01:53:25 +00006647 echo "$as_me:6647: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006648 if (exit $ac_status) && test -s "$ac_outfile"; then
6649 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006650 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006651 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006654 lt_cv_prog_compiler_rtti_exceptions=yes
6655 fi
6656 fi
mlcreech636a9952008-05-05 22:52:56 +00006657 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006658
6659fi
dana9f39fd2011-08-12 16:34:42 +00006660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006661$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006662
6663if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6665else
6666 :
6667fi
6668
6669fi
6670
mlcreech636a9952008-05-05 22:52:56 +00006671
6672
6673
6674
6675
6676 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006677lt_prog_compiler_pic=
6678lt_prog_compiler_static=
6679
dana9f39fd2011-08-12 16:34:42 +00006680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006681$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006682
drh71eb93e2001-09-28 01:34:43 +00006683 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006684 lt_prog_compiler_wl='-Wl,'
6685 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006686
6687 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006688 aix*)
6689 # All AIX code is PIC.
6690 if test "$host_cpu" = ia64; then
6691 # AIX 5 now supports IA64 processor
6692 lt_prog_compiler_static='-Bstatic'
6693 fi
drh71eb93e2001-09-28 01:34:43 +00006694 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006695
drh71eb93e2001-09-28 01:34:43 +00006696 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006697 case $host_cpu in
6698 powerpc)
6699 # see comment about AmigaOS4 .so support
6700 lt_prog_compiler_pic='-fPIC'
6701 ;;
6702 m68k)
6703 # FIXME: we need at least 68020 code to build shared libraries, but
6704 # adding the `-m68020' flag to GCC prevents building anything better,
6705 # like `-m68040'.
6706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6707 ;;
6708 esac
drh71eb93e2001-09-28 01:34:43 +00006709 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006710
mlcreech636a9952008-05-05 22:52:56 +00006711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006712 # PIC is the default for these OSes.
6713 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006714
vapier6acb2cf2009-01-28 04:46:28 +00006715 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006716 # This hack is so that the source file can tell whether it is being
6717 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6719 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006720 lt_prog_compiler_pic='-DDLL_EXPORT'
6721 ;;
6722
drh71eb93e2001-09-28 01:34:43 +00006723 darwin* | rhapsody*)
6724 # PIC is the default on this platform
6725 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006726 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006727 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006728
a.rottmann9bc8b932004-02-29 15:18:31 +00006729 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006730 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6731 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6732 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006733 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006734 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006735 # +Z the default
6736 ;;
6737 *)
6738 lt_prog_compiler_pic='-fPIC'
6739 ;;
6740 esac
6741 ;;
6742
mlcreech636a9952008-05-05 22:52:56 +00006743 interix[3-9]*)
6744 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6745 # Instead, we relocate shared libraries at runtime.
6746 ;;
6747
6748 msdosdjgpp*)
6749 # Just because we use GCC doesn't mean we suddenly get shared libraries
6750 # on systems that don't support them.
6751 lt_prog_compiler_can_build_shared=no
6752 enable_shared=no
6753 ;;
6754
6755 *nto* | *qnx*)
6756 # QNX uses GNU C++, but need to define -shared option too, otherwise
6757 # it will coredump.
6758 lt_prog_compiler_pic='-fPIC -shared'
6759 ;;
6760
6761 sysv4*MP*)
6762 if test -d /usr/nec; then
6763 lt_prog_compiler_pic=-Kconform_pic
6764 fi
6765 ;;
6766
drh71eb93e2001-09-28 01:34:43 +00006767 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006768 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006769 ;;
6770 esac
6771 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006772 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006773 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006774 aix*)
6775 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006776 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006777 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006778 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006779 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006781 fi
6782 ;;
6783
vapier6acb2cf2009-01-28 04:46:28 +00006784 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006785 # This hack is so that the source file can tell whether it is being
6786 # built for inclusion in a dll (and should export symbols for example).
6787 lt_prog_compiler_pic='-DDLL_EXPORT'
6788 ;;
6789
a.rottmann84e63352003-03-24 09:42:16 +00006790 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006791 lt_prog_compiler_wl='-Wl,'
6792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6793 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006794 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006795 hppa*64*|ia64*)
6796 # +Z the default
6797 ;;
6798 *)
6799 lt_prog_compiler_pic='+Z'
6800 ;;
6801 esac
6802 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6803 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006804 ;;
6805
6806 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006807 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006808 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006809 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006810 ;;
6811
mlcreech636a9952008-05-05 22:52:56 +00006812 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006813 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006814 # old Intel for x86_64 which still supported -KPIC.
6815 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006816 lt_prog_compiler_wl='-Wl,'
6817 lt_prog_compiler_pic='-KPIC'
6818 lt_prog_compiler_static='-static'
6819 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006820 # icc used to be incompatible with GCC.
6821 # ICC 10 doesn't accept -KPIC any more.
6822 icc* | ifort*)
6823 lt_prog_compiler_wl='-Wl,'
6824 lt_prog_compiler_pic='-fPIC'
6825 lt_prog_compiler_static='-static'
6826 ;;
6827 # Lahey Fortran 8.1.
6828 lf95*)
6829 lt_prog_compiler_wl='-Wl,'
6830 lt_prog_compiler_pic='--shared'
6831 lt_prog_compiler_static='--static'
6832 ;;
vapier7f19c022007-02-17 14:46:31 +00006833 pgcc* | pgf77* | pgf90* | pgf95*)
6834 # Portland Group compilers (*not* the Pentium gcc compiler,
6835 # which looks to be a dead project)
6836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-fpic'
6838 lt_prog_compiler_static='-Bstatic'
6839 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006840 ccc*)
6841 lt_prog_compiler_wl='-Wl,'
6842 # All Alpha code is PIC.
6843 lt_prog_compiler_static='-non_shared'
6844 ;;
mlcreech636a9952008-05-05 22:52:56 +00006845 xl*)
6846 # IBM XL C 8.0/Fortran 10.1 on PPC
6847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_pic='-qpic'
6849 lt_prog_compiler_static='-qstaticlink'
6850 ;;
6851 *)
6852 case `$CC -V 2>&1 | sed 5q` in
6853 *Sun\ C*)
6854 # Sun C 5.9
6855 lt_prog_compiler_pic='-KPIC'
6856 lt_prog_compiler_static='-Bstatic'
6857 lt_prog_compiler_wl='-Wl,'
6858 ;;
6859 *Sun\ F*)
6860 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6861 lt_prog_compiler_pic='-KPIC'
6862 lt_prog_compiler_static='-Bstatic'
6863 lt_prog_compiler_wl=''
6864 ;;
6865 esac
6866 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006867 esac
drh71eb93e2001-09-28 01:34:43 +00006868 ;;
6869
mlcreech636a9952008-05-05 22:52:56 +00006870 newsos6)
6871 lt_prog_compiler_pic='-KPIC'
6872 lt_prog_compiler_static='-Bstatic'
6873 ;;
6874
6875 *nto* | *qnx*)
6876 # QNX uses GNU C++, but need to define -shared option too, otherwise
6877 # it will coredump.
6878 lt_prog_compiler_pic='-fPIC -shared'
6879 ;;
6880
drh71eb93e2001-09-28 01:34:43 +00006881 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006882 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006883 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006884 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006885 ;;
6886
mlcreech636a9952008-05-05 22:52:56 +00006887 rdos*)
6888 lt_prog_compiler_static='-non_shared'
6889 ;;
6890
drh71eb93e2001-09-28 01:34:43 +00006891 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006892 lt_prog_compiler_pic='-KPIC'
6893 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006894 case $cc_basename in
6895 f77* | f90* | f95*)
6896 lt_prog_compiler_wl='-Qoption ld ';;
6897 *)
6898 lt_prog_compiler_wl='-Wl,';;
6899 esac
drh71eb93e2001-09-28 01:34:43 +00006900 ;;
6901
6902 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006903 lt_prog_compiler_wl='-Qoption ld '
6904 lt_prog_compiler_pic='-PIC'
6905 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006906 ;;
6907
vapier7f19c022007-02-17 14:46:31 +00006908 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006909 lt_prog_compiler_wl='-Wl,'
6910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006912 ;;
6913
6914 sysv4*MP*)
6915 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 lt_prog_compiler_pic='-Kconform_pic'
6917 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006918 fi
6919 ;;
6920
vapier7f19c022007-02-17 14:46:31 +00006921 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6922 lt_prog_compiler_wl='-Wl,'
6923 lt_prog_compiler_pic='-KPIC'
6924 lt_prog_compiler_static='-Bstatic'
6925 ;;
6926
6927 unicos*)
6928 lt_prog_compiler_wl='-Wl,'
6929 lt_prog_compiler_can_build_shared=no
6930 ;;
6931
a.rottmann9bc8b932004-02-29 15:18:31 +00006932 uts4*)
6933 lt_prog_compiler_pic='-pic'
6934 lt_prog_compiler_static='-Bstatic'
6935 ;;
6936
drh71eb93e2001-09-28 01:34:43 +00006937 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006938 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006939 ;;
6940 esac
6941 fi
6942
mlcreech636a9952008-05-05 22:52:56 +00006943case $host_os in
6944 # For platforms which do not support PIC, -DPIC is meaningless:
6945 *djgpp*)
6946 lt_prog_compiler_pic=
6947 ;;
6948 *)
6949 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6950 ;;
6951esac
dana9f39fd2011-08-12 16:34:42 +00006952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006953$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006954
6955
6956
6957
6958
drh71eb93e2001-09-28 01:34:43 +00006959
a.rottmann9bc8b932004-02-29 15:18:31 +00006960#
6961# Check to make sure the PIC flag actually works.
6962#
6963if test -n "$lt_prog_compiler_pic"; then
dana9f39fd2011-08-12 16:34:42 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006965$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00006966if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006967 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006968else
mlcreech636a9952008-05-05 22:52:56 +00006969 lt_cv_prog_compiler_pic_works=no
6970 ac_outfile=conftest.$ac_objext
6971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6973 # Insert the option either (1) after the last *FLAGS variable, or
6974 # (2) before a word containing "conftest.", or (3) at the end.
6975 # Note that $ac_compile itself does not contain backslashes and begins
6976 # with a dollar sign (not a hyphen), so the echo should work correctly.
6977 # The option is referenced via a variable to avoid confusing sed.
6978 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6981 -e 's:$: $lt_compiler_flag:'`
drh6a8ab6d2011-11-09 01:53:25 +00006982 (eval echo "\"\$as_me:6982: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006983 (eval "$lt_compile" 2>conftest.err)
6984 ac_status=$?
6985 cat conftest.err >&5
drh6a8ab6d2011-11-09 01:53:25 +00006986 echo "$as_me:6986: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006987 if (exit $ac_status) && test -s "$ac_outfile"; then
6988 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006989 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006990 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00006993 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006994 fi
6995 fi
mlcreech636a9952008-05-05 22:52:56 +00006996 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006997
a.rottmann9bc8b932004-02-29 15:18:31 +00006998fi
dana9f39fd2011-08-12 16:34:42 +00006999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007000$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007001
mlcreech636a9952008-05-05 22:52:56 +00007002if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007003 case $lt_prog_compiler_pic in
7004 "" | " "*) ;;
7005 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7006 esac
drh71eb93e2001-09-28 01:34:43 +00007007else
a.rottmann9bc8b932004-02-29 15:18:31 +00007008 lt_prog_compiler_pic=
7009 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007010fi
7011
a.rottmann84e63352003-03-24 09:42:16 +00007012fi
mlcreech636a9952008-05-05 22:52:56 +00007013
7014
7015
7016
7017
a.rottmann84e63352003-03-24 09:42:16 +00007018
vapier7f19c022007-02-17 14:46:31 +00007019#
7020# Check to make sure the static flag actually works.
7021#
7022wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dana9f39fd2011-08-12 16:34:42 +00007023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007024$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00007025if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007026 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007027else
mlcreech636a9952008-05-05 22:52:56 +00007028 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007029 save_LDFLAGS="$LDFLAGS"
7030 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007031 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007032 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7033 # The linker can only warn and ignore the option if not recognized
7034 # So say no if there are warnings
7035 if test -s conftest.err; then
7036 # Append any errors to the config.log.
7037 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007038 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7040 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007041 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007042 fi
7043 else
mlcreech636a9952008-05-05 22:52:56 +00007044 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007045 fi
7046 fi
mlcreech636a9952008-05-05 22:52:56 +00007047 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007048 LDFLAGS="$save_LDFLAGS"
7049
7050fi
dana9f39fd2011-08-12 16:34:42 +00007051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007052$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007053
mlcreech636a9952008-05-05 22:52:56 +00007054if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007055 :
7056else
7057 lt_prog_compiler_static=
7058fi
7059
7060
mlcreech636a9952008-05-05 22:52:56 +00007061
7062
7063
7064
7065
dana9f39fd2011-08-12 16:34:42 +00007066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007067$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00007068if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007069 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007070else
a.rottmann9bc8b932004-02-29 15:18:31 +00007071 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007072 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007073 mkdir conftest
7074 cd conftest
7075 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007077
a.rottmann9bc8b932004-02-29 15:18:31 +00007078 lt_compiler_flag="-o out/conftest2.$ac_objext"
7079 # Insert the option either (1) after the last *FLAGS variable, or
7080 # (2) before a word containing "conftest.", or (3) at the end.
7081 # Note that $ac_compile itself does not contain backslashes and begins
7082 # with a dollar sign (not a hyphen), so the echo should work correctly.
7083 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7086 -e 's:$: $lt_compiler_flag:'`
drh6a8ab6d2011-11-09 01:53:25 +00007087 (eval echo "\"\$as_me:7087: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007088 (eval "$lt_compile" 2>out/conftest.err)
7089 ac_status=$?
7090 cat out/conftest.err >&5
drh6a8ab6d2011-11-09 01:53:25 +00007091 echo "$as_me:7091: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7093 then
7094 # The compiler can only warn and ignore the option if not recognized
7095 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007096 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007099 lt_cv_prog_compiler_c_o=yes
7100 fi
7101 fi
vapier7f19c022007-02-17 14:46:31 +00007102 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007103 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007104 # SGI C++ compiler will create directory out/ii_files/ for
7105 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7107 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007108 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007109 $RM -r conftest
7110 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007111
7112fi
dana9f39fd2011-08-12 16:34:42 +00007113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007114$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007115
7116
7117
7118
7119
7120
dana9f39fd2011-08-12 16:34:42 +00007121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007122$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00007123if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007124 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007125else
7126 lt_cv_prog_compiler_c_o=no
7127 $RM -r conftest 2>/dev/null
7128 mkdir conftest
7129 cd conftest
7130 mkdir out
7131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132
7133 lt_compiler_flag="-o out/conftest2.$ac_objext"
7134 # Insert the option either (1) after the last *FLAGS variable, or
7135 # (2) before a word containing "conftest.", or (3) at the end.
7136 # Note that $ac_compile itself does not contain backslashes and begins
7137 # with a dollar sign (not a hyphen), so the echo should work correctly.
7138 lt_compile=`echo "$ac_compile" | $SED \
7139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141 -e 's:$: $lt_compiler_flag:'`
drh6a8ab6d2011-11-09 01:53:25 +00007142 (eval echo "\"\$as_me:7142: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007143 (eval "$lt_compile" 2>out/conftest.err)
7144 ac_status=$?
7145 cat out/conftest.err >&5
drh6a8ab6d2011-11-09 01:53:25 +00007146 echo "$as_me:7146: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7148 then
7149 # The compiler can only warn and ignore the option if not recognized
7150 # So say no if there are warnings
7151 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7154 lt_cv_prog_compiler_c_o=yes
7155 fi
7156 fi
7157 chmod u+w . 2>&5
7158 $RM conftest*
7159 # SGI C++ compiler will create directory out/ii_files/ for
7160 # template instantiation
7161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7162 $RM out/* && rmdir out
7163 cd ..
7164 $RM -r conftest
7165 $RM conftest*
7166
7167fi
dana9f39fd2011-08-12 16:34:42 +00007168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007169$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007170
7171
drh71eb93e2001-09-28 01:34:43 +00007172
a.rottmann84e63352003-03-24 09:42:16 +00007173
drh71eb93e2001-09-28 01:34:43 +00007174hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007175if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007176 # do not overwrite the value of need_locks provided by the user
dana9f39fd2011-08-12 16:34:42 +00007177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007178$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007179 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007180 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7182 touch conftest.a
7183 ln conftest.a conftest.b 2>&5 || hard_links=no
7184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dana9f39fd2011-08-12 16:34:42 +00007185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007186$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007187 if test "$hard_links" = no; then
dana9f39fd2011-08-12 16:34:42 +00007188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007189$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007190 need_locks=warn
7191 fi
7192else
7193 need_locks=no
7194fi
7195
mlcreech636a9952008-05-05 22:52:56 +00007196
7197
7198
7199
7200
dana9f39fd2011-08-12 16:34:42 +00007201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007202$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007203
7204 runpath_var=
7205 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007206 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007207 archive_cmds=
7208 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007209 compiler_needs_object=no
7210 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007211 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7213 hardcode_automatic=no
7214 hardcode_direct=no
7215 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007216 hardcode_libdir_flag_spec=
7217 hardcode_libdir_flag_spec_ld=
7218 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007219 hardcode_minus_L=no
7220 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007221 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007222 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007223 module_cmds=
7224 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007225 old_archive_from_new_cmds=
7226 old_archive_from_expsyms_cmds=
7227 thread_safe_flag_spec=
7228 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007229 # include_expsyms should be a list of space-separated symbols to be *always*
7230 # included in the symbol list
7231 include_expsyms=
7232 # exclude_expsyms can be an extended regexp of symbols to exclude
7233 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7234 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7235 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007236 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007237 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7238 # platforms (ab)use it in PIC code, but their linkers get confused if
7239 # the symbol is explicitly referenced. Since portable code cannot
7240 # rely on this symbol name, it's probably fine to never include it in
7241 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007242 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007243 extract_expsyms_cmds=
7244
7245 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007246 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007247 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7248 # When not using gcc, we currently assume that we are using
7249 # Microsoft Visual C++.
7250 if test "$GCC" != yes; then
7251 with_gnu_ld=no
7252 fi
7253 ;;
vapier7f19c022007-02-17 14:46:31 +00007254 interix*)
7255 # we just hope/assume this is gcc and not c89 (= MSVC++)
7256 with_gnu_ld=yes
7257 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007258 openbsd*)
7259 with_gnu_ld=no
7260 ;;
7261 esac
7262
7263 ld_shlibs=yes
7264 if test "$with_gnu_ld" = yes; then
7265 # If archive_cmds runs LD, not CC, wlarc should be empty
7266 wlarc='${wl}'
7267
vapier7f19c022007-02-17 14:46:31 +00007268 # Set some defaults for GNU ld with shared library support. These
7269 # are reset later if shared libraries are not supported. Putting them
7270 # here allows them to be overridden if necessary.
7271 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007273 export_dynamic_flag_spec='${wl}--export-dynamic'
7274 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007275 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7276 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7277 else
7278 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007279 fi
7280 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007281 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7285 *\ 2.11.*) ;; # other 2.11 versions
7286 *) supports_anon_versioning=yes ;;
7287 esac
7288
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 # See if GNU ld supports shared libraries.
7290 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007291 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007292 # On AIX/PPC, the GNU linker is very broken
7293 if test "$host_cpu" != ia64; then
7294 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007295 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007296
7297*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7298*** to be unable to reliably create shared libraries on AIX.
7299*** Therefore, libtool is disabling shared libraries support. If you
7300*** really care for shared libraries, you may want to modify your PATH
7301*** so that a non-GNU linker is found, and then restart.
7302
mlcreech636a9952008-05-05 22:52:56 +00007303_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007304 fi
7305 ;;
7306
7307 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007308 case $host_cpu in
7309 powerpc)
7310 # see comment about AmigaOS4 .so support
7311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7312 archive_expsym_cmds=''
7313 ;;
7314 m68k)
7315 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)'
7316 hardcode_libdir_flag_spec='-L$libdir'
7317 hardcode_minus_L=yes
7318 ;;
7319 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007320 ;;
7321
7322 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007324 allow_undefined_flag=unsupported
7325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7326 # support --undefined. This deserves some investigation. FIXME
7327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328 else
7329 ld_shlibs=no
7330 fi
7331 ;;
7332
vapier6acb2cf2009-01-28 04:46:28 +00007333 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007334 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007335 # as there is no search path for DLLs.
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 allow_undefined_flag=unsupported
7338 always_export_symbols=no
7339 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007340 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 +00007341
mlcreech636a9952008-05-05 22:52:56 +00007342 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007343 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 +00007344 # If the export-symbols file already is a .def file (1st line
7345 # is EXPORTS), use it as is; otherwise, prepend...
7346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7347 cp $export_symbols $output_objdir/$soname.def;
7348 else
7349 echo EXPORTS > $output_objdir/$soname.def;
7350 cat $export_symbols >> $output_objdir/$soname.def;
7351 fi~
vapier7f19c022007-02-17 14:46:31 +00007352 $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 +00007353 else
7354 ld_shlibs=no
7355 fi
7356 ;;
7357
mlcreech636a9952008-05-05 22:52:56 +00007358 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007359 hardcode_direct=no
7360 hardcode_shlibpath_var=no
7361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7362 export_dynamic_flag_spec='${wl}-E'
7363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7364 # Instead, shared libraries are loaded at an image base (0x10000000 by
7365 # default) and relocated if they conflict, which is a slow very memory
7366 # consuming and fragmenting process. To avoid this, we pick a random,
7367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7369 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7370 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'
7371 ;;
7372
mlcreech636a9952008-05-05 22:52:56 +00007373 gnu* | linux* | tpf* | k*bsd*-gnu)
7374 tmp_diet=no
7375 if test "$host_os" = linux-dietlibc; then
7376 case $cc_basename in
7377 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7378 esac
7379 fi
7380 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7381 && test "$tmp_diet" = no
7382 then
vapier7f19c022007-02-17 14:46:31 +00007383 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007384 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007385 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007386 pgcc*) # Portland Group C compiler
7387 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 +00007388 tmp_addflag=' $pic_flag'
7389 ;;
7390 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007391 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 +00007392 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007394 tmp_addflag=' -i_dynamic' ;;
7395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7396 tmp_addflag=' -i_dynamic -nofor_main' ;;
7397 ifc* | ifort*) # Intel Fortran compiler
7398 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007399 lf95*) # Lahey Fortran 8.1
7400 whole_archive_flag_spec=
7401 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007402 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7403 tmp_sharedflag='-qmkshrobj'
7404 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007405 esac
mlcreech636a9952008-05-05 22:52:56 +00007406 case `$CC -V 2>&1 | sed 5q` in
7407 *Sun\ C*) # Sun C 5.9
7408 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'
7409 compiler_needs_object=yes
7410 tmp_sharedflag='-G' ;;
7411 *Sun\ F*) # Sun Fortran 8.3
7412 tmp_sharedflag='-G' ;;
7413 esac
7414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007415
mlcreech636a9952008-05-05 22:52:56 +00007416 if test "x$supports_anon_versioning" = xyes; then
7417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7419 echo "local: *; };" >> $output_objdir/$libname.ver~
7420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7421 fi
7422
7423 case $cc_basename in
7424 xlf*)
7425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7426 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7427 hardcode_libdir_flag_spec=
7428 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7429 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7430 if test "x$supports_anon_versioning" = xyes; then
7431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7433 echo "local: *; };" >> $output_objdir/$libname.ver~
7434 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7435 fi
7436 ;;
7437 esac
vapier7f19c022007-02-17 14:46:31 +00007438 else
mlcreech636a9952008-05-05 22:52:56 +00007439 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007440 fi
7441 ;;
7442
7443 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7446 wlarc=
7447 else
7448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7450 fi
7451 ;;
7452
vapier7f19c022007-02-17 14:46:31 +00007453 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007455 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007456 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007457
7458*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7459*** create shared libraries on Solaris systems. Therefore, libtool
7460*** is disabling shared libraries support. We urge you to upgrade GNU
7461*** binutils to release 2.9.1 or newer. Another option is to modify
7462*** your PATH or compiler configuration so that the native linker is
7463*** used, and then restart.
7464
mlcreech636a9952008-05-05 22:52:56 +00007465_LT_EOF
7466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469 else
7470 ld_shlibs=no
7471 fi
7472 ;;
7473
vapier7f19c022007-02-17 14:46:31 +00007474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7475 case `$LD -v 2>&1` in
7476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7477 ld_shlibs=no
7478 cat <<_LT_EOF 1>&2
7479
7480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7481*** reliably create shared libraries on SCO systems. Therefore, libtool
7482*** is disabling shared libraries support. We urge you to upgrade GNU
7483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7484*** your PATH or compiler configuration so that the native linker is
7485*** used, and then restart.
7486
7487_LT_EOF
7488 ;;
7489 *)
mlcreech636a9952008-05-05 22:52:56 +00007490 # For security reasons, it is highly recommended that you always
7491 # use absolute paths for naming shared libraries, and exclude the
7492 # DT_RUNPATH tag from executables and libraries. But doing so
7493 # requires that you compile everything twice, which is a pain.
7494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 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 +00007498 else
7499 ld_shlibs=no
7500 fi
7501 ;;
7502 esac
7503 ;;
7504
a.rottmann9bc8b932004-02-29 15:18:31 +00007505 sunos4*)
7506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507 wlarc=
7508 hardcode_direct=yes
7509 hardcode_shlibpath_var=no
7510 ;;
7511
a.rottmann9bc8b932004-02-29 15:18:31 +00007512 *)
mlcreech636a9952008-05-05 22:52:56 +00007513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7516 else
7517 ld_shlibs=no
7518 fi
7519 ;;
7520 esac
7521
vapier7f19c022007-02-17 14:46:31 +00007522 if test "$ld_shlibs" = no; then
7523 runpath_var=
7524 hardcode_libdir_flag_spec=
7525 export_dynamic_flag_spec=
7526 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007527 fi
7528 else
7529 # PORTME fill in a description of your system's linker (not GNU ld)
7530 case $host_os in
7531 aix3*)
7532 allow_undefined_flag=unsupported
7533 always_export_symbols=yes
7534 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'
7535 # Note: this linker hardcodes the directories in LIBPATH if there
7536 # are no directories specified by -L.
7537 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007539 # Neither direct hardcoding nor static linking is supported with a
7540 # broken collect2.
7541 hardcode_direct=unsupported
7542 fi
7543 ;;
7544
mlcreech636a9952008-05-05 22:52:56 +00007545 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007546 if test "$host_cpu" = ia64; then
7547 # On IA64, the linker does run time linking by default, so we don't
7548 # have to do anything special.
7549 aix_use_runtimelinking=no
7550 exp_sym_flag='-Bexport'
7551 no_entry_flag=""
7552 else
7553 # If we're using GNU nm, then we don't want the "-C" option.
7554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007555 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7556 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 +00007557 else
mlcreech636a9952008-05-05 22:52:56 +00007558 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 +00007559 fi
7560 aix_use_runtimelinking=no
7561
7562 # Test if we are trying to use run time linking or normal
7563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7564 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007566 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007567 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7568 aix_use_runtimelinking=yes
7569 break
7570 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007571 done
vapier7f19c022007-02-17 14:46:31 +00007572 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007573 esac
7574
7575 exp_sym_flag='-bexport'
7576 no_entry_flag='-bnoentry'
7577 fi
7578
7579 # When large executables or shared objects are built, AIX ld can
7580 # have problems creating the table of contents. If linking a library
7581 # or program results in "error TOC overflow" add -mminimal-toc to
7582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7584
7585 archive_cmds=''
7586 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007587 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007588 hardcode_libdir_separator=':'
7589 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007590 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007591
7592 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007593 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007594 # We only want to do this on AIX 4.2 and lower, the check
7595 # below for broken collect2 doesn't work under 4.3+
7596 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007597 if test -f "$collect2name" &&
7598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007599 then
mlcreech636a9952008-05-05 22:52:56 +00007600 # We have reworked collect2
7601 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007602 else
mlcreech636a9952008-05-05 22:52:56 +00007603 # We have old collect2
7604 hardcode_direct=unsupported
7605 # It fails to find uninstalled libraries when the uninstalled
7606 # path is not listed in the libpath. Setting hardcode_minus_L
7607 # to unsupported forces relinking
7608 hardcode_minus_L=yes
7609 hardcode_libdir_flag_spec='-L$libdir'
7610 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007611 fi
vapier7f19c022007-02-17 14:46:31 +00007612 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007613 esac
7614 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007615 if test "$aix_use_runtimelinking" = yes; then
7616 shared_flag="$shared_flag "'${wl}-G'
7617 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007618 else
7619 # not using gcc
7620 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7622 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007623 shared_flag='-G'
7624 else
vapier7f19c022007-02-17 14:46:31 +00007625 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007626 shared_flag='${wl}-G'
7627 else
7628 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007629 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007630 fi
7631 fi
7632
vapier6acb2cf2009-01-28 04:46:28 +00007633 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007634 # It seems that -bexpall does not export symbols beginning with
7635 # underscore (_), so it is better to generate a list of symbols to export.
7636 always_export_symbols=yes
7637 if test "$aix_use_runtimelinking" = yes; then
7638 # Warning - without using the other runtime loading flags (-brtl),
7639 # -berok will link without error, but may produce a broken library.
7640 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007641 # Determine the default libpath from the value encoded in an
7642 # empty executable.
dana9f39fd2011-08-12 16:34:42 +00007643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007644/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007645
a.rottmann84e63352003-03-24 09:42:16 +00007646int
7647main ()
7648{
a.rottmann9bc8b932004-02-29 15:18:31 +00007649
a.rottmann84e63352003-03-24 09:42:16 +00007650 ;
7651 return 0;
7652}
7653_ACEOF
dana9f39fd2011-08-12 16:34:42 +00007654if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007655
mlcreech636a9952008-05-05 22:52:56 +00007656lt_aix_libpath_sed='
7657 /Import File Strings/,/^$/ {
7658 /^0/ {
7659 s/^0 *\(.*\)$/\1/
7660 p
7661 }
7662 }'
7663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007664# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007665if test -z "$aix_libpath"; then
7666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7667fi
a.rottmann84e63352003-03-24 09:42:16 +00007668fi
dana9f39fd2011-08-12 16:34:42 +00007669rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007672
mlcreech636a9952008-05-05 22:52:56 +00007673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7674 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"
7675 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007676 if test "$host_cpu" = ia64; then
7677 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7678 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007679 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 +00007680 else
mlcreech636a9952008-05-05 22:52:56 +00007681 # Determine the default libpath from the value encoded in an
7682 # empty executable.
dana9f39fd2011-08-12 16:34:42 +00007683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007684/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007685
a.rottmann9bc8b932004-02-29 15:18:31 +00007686int
7687main ()
7688{
a.rottmann84e63352003-03-24 09:42:16 +00007689
a.rottmann9bc8b932004-02-29 15:18:31 +00007690 ;
7691 return 0;
7692}
7693_ACEOF
dana9f39fd2011-08-12 16:34:42 +00007694if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007695
mlcreech636a9952008-05-05 22:52:56 +00007696lt_aix_libpath_sed='
7697 /Import File Strings/,/^$/ {
7698 /^0/ {
7699 s/^0 *\(.*\)$/\1/
7700 p
7701 }
7702 }'
7703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007704# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007705if test -z "$aix_libpath"; then
7706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7707fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007708fi
dana9f39fd2011-08-12 16:34:42 +00007709rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007712
a.rottmann9bc8b932004-02-29 15:18:31 +00007713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7714 # Warning - without using the other run time loading flags,
7715 # -berok will link without error, but may produce a broken library.
7716 no_undefined_flag=' ${wl}-bernotok'
7717 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007718 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007719 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007720 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007721 # This is similar to how AIX traditionally builds its shared libraries.
7722 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 +00007723 fi
7724 fi
a.rottmann84e63352003-03-24 09:42:16 +00007725 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007726
7727 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007728 case $host_cpu in
7729 powerpc)
7730 # see comment about AmigaOS4 .so support
7731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7732 archive_expsym_cmds=''
7733 ;;
7734 m68k)
7735 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)'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_minus_L=yes
7738 ;;
7739 esac
a.rottmann84e63352003-03-24 09:42:16 +00007740 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007741
vapier7f19c022007-02-17 14:46:31 +00007742 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007743 export_dynamic_flag_spec=-rdynamic
7744 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007745
vapier6acb2cf2009-01-28 04:46:28 +00007746 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007747 # When not using gcc, we currently assume that we are using
7748 # Microsoft Visual C++.
7749 # hardcode_libdir_flag_spec is actually meaningless, as there is
7750 # no search path for DLLs.
7751 hardcode_libdir_flag_spec=' '
7752 allow_undefined_flag=unsupported
7753 # Tell ltmain to make .lib files, not .a files.
7754 libext=lib
7755 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007756 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007757 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007758 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 +00007759 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007760 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007761 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007762 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007763 fix_srcfile_path='`cygpath -w "$srcfile"`'
7764 enable_shared_with_static_runtimes=yes
7765 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007766
a.rottmann9bc8b932004-02-29 15:18:31 +00007767 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007768
7769
7770 archive_cmds_need_lc=no
7771 hardcode_direct=no
7772 hardcode_automatic=yes
7773 hardcode_shlibpath_var=unsupported
7774 whole_archive_flag_spec=''
7775 link_all_deplibs=yes
7776 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007777 case $cc_basename in
7778 ifort*) _lt_dar_can_shared=yes ;;
7779 *) _lt_dar_can_shared=$GCC ;;
7780 esac
7781 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007782 output_verbose_link_cmd=echo
7783 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7784 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7785 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}"
7786 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}"
7787
7788 else
7789 ld_shlibs=no
7790 fi
7791
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007793
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 dgux*)
7795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796 hardcode_libdir_flag_spec='-L$libdir'
7797 hardcode_shlibpath_var=no
7798 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007799
a.rottmann9bc8b932004-02-29 15:18:31 +00007800 freebsd1*)
7801 ld_shlibs=no
7802 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007803
a.rottmann9bc8b932004-02-29 15:18:31 +00007804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7805 # support. Future versions do this automatically, but an explicit c++rt0.o
7806 # does not break anything, and helps significantly (at the cost of a little
7807 # extra space).
7808 freebsd2.2*)
7809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7810 hardcode_libdir_flag_spec='-R$libdir'
7811 hardcode_direct=yes
7812 hardcode_shlibpath_var=no
7813 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007814
a.rottmann9bc8b932004-02-29 15:18:31 +00007815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7816 freebsd2*)
7817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7818 hardcode_direct=yes
7819 hardcode_minus_L=yes
7820 hardcode_shlibpath_var=no
7821 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007822
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007824 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7826 hardcode_libdir_flag_spec='-R$libdir'
7827 hardcode_direct=yes
7828 hardcode_shlibpath_var=no
7829 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007830
a.rottmann9bc8b932004-02-29 15:18:31 +00007831 hpux9*)
7832 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007833 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 +00007834 else
mlcreech636a9952008-05-05 22:52:56 +00007835 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 +00007836 fi
7837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7838 hardcode_libdir_separator=:
7839 hardcode_direct=yes
7840
7841 # hardcode_minus_L: Not really in the search PATH,
7842 # but as the default location of the library.
7843 hardcode_minus_L=yes
7844 export_dynamic_flag_spec='${wl}-E'
7845 ;;
7846
vapier7f19c022007-02-17 14:46:31 +00007847 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7850 else
7851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7852 fi
7853 if test "$with_gnu_ld" = no; then
7854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007855 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007856 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007857 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007858 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007859 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007860 # hardcode_minus_L: Not really in the search PATH,
7861 # but as the default location of the library.
7862 hardcode_minus_L=yes
7863 fi
7864 ;;
7865
7866 hpux11*)
7867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7868 case $host_cpu in
7869 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007870 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7871 ;;
vapier7f19c022007-02-17 14:46:31 +00007872 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007873 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007874 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007875 *)
7876 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7877 ;;
7878 esac
7879 else
vapier7f19c022007-02-17 14:46:31 +00007880 case $host_cpu in
7881 hppa*64*)
7882 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7883 ;;
7884 ia64*)
7885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007886 ;;
7887 *)
vapier7f19c022007-02-17 14:46:31 +00007888 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 +00007889 ;;
7890 esac
7891 fi
7892 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007895
vapier7f19c022007-02-17 14:46:31 +00007896 case $host_cpu in
7897 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007898 hardcode_direct=no
7899 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007900 ;;
7901 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007902 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007903 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007904 export_dynamic_flag_spec='${wl}-E'
7905
7906 # hardcode_minus_L: Not really in the search PATH,
7907 # but as the default location of the library.
7908 hardcode_minus_L=yes
7909 ;;
7910 esac
7911 fi
7912 ;;
7913
7914 irix5* | irix6* | nonstopux*)
7915 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007916 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'
7917 # Try to use the -exported_symbol ld option, if it does not
7918 # work, assume that -exports_file does not work either and
7919 # implicitly export all symbols.
7920 save_LDFLAGS="$LDFLAGS"
7921 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
dana9f39fd2011-08-12 16:34:42 +00007922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007924int foo(void) {}
7925_ACEOF
dana9f39fd2011-08-12 16:34:42 +00007926if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007927 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'
7928
mlcreech636a9952008-05-05 22:52:56 +00007929fi
dana9f39fd2011-08-12 16:34:42 +00007930rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007932 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007933 else
mlcreech636a9952008-05-05 22:52:56 +00007934 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'
7935 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 +00007936 fi
mlcreech636a9952008-05-05 22:52:56 +00007937 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7939 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007940 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007941 link_all_deplibs=yes
7942 ;;
7943
vapier7f19c022007-02-17 14:46:31 +00007944 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7947 else
7948 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7949 fi
7950 hardcode_libdir_flag_spec='-R$libdir'
7951 hardcode_direct=yes
7952 hardcode_shlibpath_var=no
7953 ;;
7954
7955 newsos6)
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_direct=yes
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959 hardcode_libdir_separator=:
7960 hardcode_shlibpath_var=no
7961 ;;
7962
mlcreech636a9952008-05-05 22:52:56 +00007963 *nto* | *qnx*)
7964 ;;
7965
a.rottmann9bc8b932004-02-29 15:18:31 +00007966 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007967 if test -f /usr/libexec/ld.so; then
7968 hardcode_direct=yes
7969 hardcode_shlibpath_var=no
7970 hardcode_direct_absolute=yes
7971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7973 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7975 export_dynamic_flag_spec='${wl}-E'
7976 else
7977 case $host_os in
7978 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7980 hardcode_libdir_flag_spec='-R$libdir'
7981 ;;
7982 *)
7983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7985 ;;
7986 esac
7987 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007988 else
mlcreech636a9952008-05-05 22:52:56 +00007989 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007990 fi
7991 ;;
7992
7993 os2*)
7994 hardcode_libdir_flag_spec='-L$libdir'
7995 hardcode_minus_L=yes
7996 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007997 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'
7998 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00007999 ;;
8000
8001 osf3*)
8002 if test "$GCC" = yes; then
8003 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008004 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 +00008005 else
8006 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008007 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 +00008008 fi
mlcreech636a9952008-05-05 22:52:56 +00008009 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8011 hardcode_libdir_separator=:
8012 ;;
8013
8014 osf4* | osf5*) # as osf3* with the addition of -msym flag
8015 if test "$GCC" = yes; then
8016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008017 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 +00008018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8019 else
8020 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008021 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'
8022 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~
8023 $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 +00008024
8025 # Both c and cxx compiler support -rpath directly
8026 hardcode_libdir_flag_spec='-rpath $libdir'
8027 fi
mlcreech636a9952008-05-05 22:52:56 +00008028 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008029 hardcode_libdir_separator=:
8030 ;;
8031
a.rottmann9bc8b932004-02-29 15:18:31 +00008032 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008033 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008034 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008035 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008036 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8038 $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 +00008039 else
mlcreech636a9952008-05-05 22:52:56 +00008040 case `$CC -V 2>&1` in
8041 *"Compilers 5.0"*)
8042 wlarc=''
8043 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8044 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8046 ;;
8047 *)
8048 wlarc='${wl}'
8049 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8051 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8052 ;;
8053 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008054 fi
8055 hardcode_libdir_flag_spec='-R$libdir'
8056 hardcode_shlibpath_var=no
8057 case $host_os in
8058 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008059 *)
mlcreech636a9952008-05-05 22:52:56 +00008060 # The compiler driver will combine and reorder linker options,
8061 # but understands `-z linker_flag'. GCC discards it without `$wl',
8062 # but is careful enough not to reorder.
8063 # Supported since Solaris 2.6 (maybe 2.5.1?)
8064 if test "$GCC" = yes; then
8065 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8066 else
8067 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8068 fi
8069 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008070 esac
8071 link_all_deplibs=yes
8072 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008073
a.rottmann9bc8b932004-02-29 15:18:31 +00008074 sunos4*)
8075 if test "x$host_vendor" = xsequent; then
8076 # Use $CC to link under sequent, because it throws in some extra .o
8077 # files that make .init and .fini sections work.
8078 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8079 else
8080 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8081 fi
8082 hardcode_libdir_flag_spec='-L$libdir'
8083 hardcode_direct=yes
8084 hardcode_minus_L=yes
8085 hardcode_shlibpath_var=no
8086 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008087
a.rottmann9bc8b932004-02-29 15:18:31 +00008088 sysv4)
8089 case $host_vendor in
8090 sni)
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_direct=yes # is this really true???
8093 ;;
8094 siemens)
8095 ## LD is ld it makes a PLAMLIB
8096 ## CC just makes a GrossModule.
8097 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8098 reload_cmds='$CC -r -o $output$reload_objs'
8099 hardcode_direct=no
8100 ;;
8101 motorola)
8102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8104 ;;
8105 esac
8106 runpath_var='LD_RUN_PATH'
8107 hardcode_shlibpath_var=no
8108 ;;
8109
8110 sysv4.3*)
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_shlibpath_var=no
8113 export_dynamic_flag_spec='-Bexport'
8114 ;;
8115
8116 sysv4*MP*)
8117 if test -d /usr/nec; then
8118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8119 hardcode_shlibpath_var=no
8120 runpath_var=LD_RUN_PATH
8121 hardcode_runpath_var=yes
8122 ld_shlibs=yes
8123 fi
8124 ;;
8125
mlcreech636a9952008-05-05 22:52:56 +00008126 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008127 no_undefined_flag='${wl}-z,text'
8128 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008129 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008130 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008131
a.rottmann9bc8b932004-02-29 15:18:31 +00008132 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008133 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 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 +00008135 else
vapier7f19c022007-02-17 14:46:31 +00008136 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8137 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 +00008138 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008139 ;;
8140
vapier7f19c022007-02-17 14:46:31 +00008141 sysv5* | sco3.2v5* | sco5v6*)
8142 # Note: We can NOT use -z defs as we might desire, because we do not
8143 # link with -lc, and that would cause any symbols used from libc to
8144 # always be unresolved, which means just about no library would
8145 # ever link correctly. If we're not using GNU ld we use -z text
8146 # though, which does catch some bad symbols but isn't as heavy-handed
8147 # as -z defs.
8148 no_undefined_flag='${wl}-z,text'
8149 allow_undefined_flag='${wl}-z,nodefs'
8150 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008151 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008152 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008153 hardcode_libdir_separator=':'
8154 link_all_deplibs=yes
8155 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008156 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008157
8158 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008161 else
mlcreech636a9952008-05-05 22:52:56 +00008162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008164 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008165 ;;
8166
8167 uts4*)
8168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_libdir_flag_spec='-L$libdir'
8170 hardcode_shlibpath_var=no
8171 ;;
8172
8173 *)
8174 ld_shlibs=no
8175 ;;
8176 esac
mlcreech636a9952008-05-05 22:52:56 +00008177
8178 if test x$host_vendor = xsni; then
8179 case $host in
8180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8181 export_dynamic_flag_spec='${wl}-Blargedynsym'
8182 ;;
8183 esac
8184 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008185 fi
8186
dana9f39fd2011-08-12 16:34:42 +00008187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008188$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008189test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008190
mlcreech636a9952008-05-05 22:52:56 +00008191with_gnu_ld=$with_gnu_ld
8192
8193
danielk197733a14782008-08-04 14:50:05 +00008194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
a.rottmann9bc8b932004-02-29 15:18:31 +00008207#
8208# Do we need to explicitly link libc?
8209#
8210case "x$archive_cmds_need_lc" in
8211x|xyes)
8212 # Assume -lc should be added
8213 archive_cmds_need_lc=yes
8214
8215 if test "$enable_shared" = yes && test "$GCC" = yes; then
8216 case $archive_cmds in
8217 *'~'*)
8218 # FIXME: we may have to deal with multi-command sequences.
8219 ;;
8220 '$CC '*)
8221 # Test whether the compiler implicitly links with -lc since on some
8222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8223 # to ld, don't add -lc before -lgcc.
dana9f39fd2011-08-12 16:34:42 +00008224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008225$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008226 $RM conftest*
8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008228
dana9f39fd2011-08-12 16:34:42 +00008229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008230 (eval $ac_compile) 2>&5
8231 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00008232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008234 soname=conftest
8235 lib=conftest
8236 libobjs=conftest.$ac_objext
8237 deplibs=
8238 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008239 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008240 compiler_flags=-v
8241 linker_flags=-v
8242 verstring=
8243 output_objdir=.
8244 libname=conftest
8245 lt_save_allow_undefined_flag=$allow_undefined_flag
8246 allow_undefined_flag=
dana9f39fd2011-08-12 16:34:42 +00008247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00008248 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008249 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00008250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8251 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008252 then
8253 archive_cmds_need_lc=no
8254 else
8255 archive_cmds_need_lc=yes
8256 fi
8257 allow_undefined_flag=$lt_save_allow_undefined_flag
8258 else
8259 cat conftest.err 1>&5
8260 fi
mlcreech636a9952008-05-05 22:52:56 +00008261 $RM conftest*
dana9f39fd2011-08-12 16:34:42 +00008262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008263$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008264 ;;
8265 esac
drh71eb93e2001-09-28 01:34:43 +00008266 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008267 ;;
8268esac
drh71eb93e2001-09-28 01:34:43 +00008269
mlcreech636a9952008-05-05 22:52:56 +00008270
danielk197733a14782008-08-04 14:50:05 +00008271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
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
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
dana9f39fd2011-08-12 16:34:42 +00008426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008427$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008428
8429if test "$GCC" = yes; then
8430 case $host_os in
8431 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8432 *) lt_awk_arg="/^libraries:/" ;;
8433 esac
8434 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8435 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8436 # if the path contains ";" then we assume it to be the separator
8437 # otherwise default to the standard path separator (i.e. ":") - it is
8438 # assumed that no part of a normal pathname contains ";" but that should
8439 # okay in the real world where ";" in dirpaths is itself problematic.
8440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8441 else
8442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8443 fi
8444 # Ok, now we have the path, separated by spaces, we can step through it
8445 # and add multilib dir if necessary.
8446 lt_tmp_lt_search_path_spec=
8447 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8448 for lt_sys_path in $lt_search_path_spec; do
8449 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8450 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8451 else
8452 test -d "$lt_sys_path" && \
8453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8454 fi
8455 done
8456 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8457BEGIN {RS=" "; FS="/|\n";} {
8458 lt_foo="";
8459 lt_count=0;
8460 for (lt_i = NF; lt_i > 0; lt_i--) {
8461 if ($lt_i != "" && $lt_i != ".") {
8462 if ($lt_i == "..") {
8463 lt_count++;
8464 } else {
8465 if (lt_count == 0) {
8466 lt_foo="/" $lt_i lt_foo;
8467 } else {
8468 lt_count--;
8469 }
8470 }
8471 }
8472 }
8473 if (lt_foo != "") { lt_freq[lt_foo]++; }
8474 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8475}'`
8476 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8477else
8478 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8479fi
drh71eb93e2001-09-28 01:34:43 +00008480library_names_spec=
8481libname_spec='lib$name'
8482soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008483shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008484postinstall_cmds=
8485postuninstall_cmds=
8486finish_cmds=
8487finish_eval=
8488shlibpath_var=
8489shlibpath_overrides_runpath=unknown
8490version_type=none
8491dynamic_linker="$host_os ld.so"
8492sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008493need_lib_prefix=unknown
8494hardcode_into_libs=no
8495
8496# when you set need_version to no, make sure it does not cause -set_version
8497# flags to be left without arguments
8498need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008499
8500case $host_os in
8501aix3*)
8502 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008504 shlibpath_var=LIBPATH
8505
a.rottmann9bc8b932004-02-29 15:18:31 +00008506 # AIX 3 has no versioning support, so we append a major version to the name.
8507 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008508 ;;
8509
mlcreech636a9952008-05-05 22:52:56 +00008510aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008511 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008512 need_lib_prefix=no
8513 need_version=no
8514 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008515 if test "$host_cpu" = ia64; then
8516 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008517 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008518 shlibpath_var=LD_LIBRARY_PATH
8519 else
8520 # With GCC up to 2.95.x, collect2 would create an import file
8521 # for dependence libraries. The import file would start with
8522 # the line `#! .'. This would cause the generated library to
8523 # depend on `.', always an invalid library. This was fixed in
8524 # development snapshots of GCC prior to 3.0.
8525 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008526 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8528 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008529 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008530 :
8531 else
8532 can_build_shared=no
8533 fi
8534 ;;
drh71eb93e2001-09-28 01:34:43 +00008535 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008536 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8537 # soname into executable. Probably we can add versioning support to
8538 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008539 if test "$aix_use_runtimelinking" = yes; then
8540 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8541 # instead of lib<name>.a to let people know that these are not
8542 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008544 else
8545 # We preserve .a as extension for shared libraries through AIX4.2
8546 # and later when we are not doing run time linking.
8547 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008548 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008549 fi
8550 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008551 fi
8552 ;;
8553
8554amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008555 case $host_cpu in
8556 powerpc)
8557 # Since July 2007 AmigaOS4 officially supports .so libraries.
8558 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 ;;
8561 m68k)
8562 library_names_spec='$libname.ixlibrary $libname.a'
8563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8564 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'
8565 ;;
8566 esac
drh71eb93e2001-09-28 01:34:43 +00008567 ;;
8568
8569beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008570 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008571 dynamic_linker="$host_os ld.so"
8572 shlibpath_var=LIBRARY_PATH
8573 ;;
8574
vapier7f19c022007-02-17 14:46:31 +00008575bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008576 version_type=linux
8577 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8581 shlibpath_var=LD_LIBRARY_PATH
8582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8584 # the default ld.so.conf also contains /usr/contrib/lib and
8585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8586 # libtool to hard-code these into programs
8587 ;;
8588
vapier6acb2cf2009-01-28 04:46:28 +00008589cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008590 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008591 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008592 need_version=no
8593 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008594
drh71eb93e2001-09-28 01:34:43 +00008595 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008596 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008597 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8599 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008601 dldir=$destdir/`dirname \$dlpath`~
8602 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008603 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008604 chmod a+x \$dldir/$dlname~
8605 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8606 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8607 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008609 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008610 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008611 shlibpath_overrides_runpath=yes
8612
8613 case $host_os in
8614 cygwin*)
8615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8618 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008619 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008620 # MinGW DLLs use traditional 'lib' prefix
8621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008622 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008624 # It is most probably a Windows format PATH printed by
8625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8626 # path with ; separators, and with drive letters. We can handle the
8627 # drive letters (cygwin fileutils understands them), so leave them,
8628 # especially as we might pass files found there to a mingw objdump,
8629 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008631 else
mlcreech636a9952008-05-05 22:52:56 +00008632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008633 fi
8634 ;;
8635 pw32*)
8636 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008637 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 +00008638 ;;
8639 esac
drh71eb93e2001-09-28 01:34:43 +00008640 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008641
drh71eb93e2001-09-28 01:34:43 +00008642 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008644 ;;
8645 esac
8646 dynamic_linker='Win32 ld.exe'
8647 # FIXME: first we should search . and the directory the executable is in
8648 shlibpath_var=PATH
8649 ;;
8650
8651darwin* | rhapsody*)
8652 dynamic_linker="$host_os dyld"
8653 version_type=darwin
8654 need_lib_prefix=no
8655 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008656 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008657 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008658 shlibpath_overrides_runpath=yes
8659 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008661
8662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8664 ;;
8665
8666dgux*)
8667 version_type=linux
8668 need_lib_prefix=no
8669 need_version=no
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8671 soname_spec='${libname}${release}${shared_ext}$major'
8672 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008673 ;;
8674
a.rottmann84e63352003-03-24 09:42:16 +00008675freebsd1*)
8676 dynamic_linker=no
8677 ;;
8678
vapier7f19c022007-02-17 14:46:31 +00008679freebsd* | dragonfly*)
8680 # DragonFly does not have aout. When/if they implement a new
8681 # versioning mechanism, adjust this.
8682 if test -x /usr/bin/objformat; then
8683 objformat=`/usr/bin/objformat`
8684 else
8685 case $host_os in
8686 freebsd[123]*) objformat=aout ;;
8687 *) objformat=elf ;;
8688 esac
8689 fi
8690 # Handle Gentoo/FreeBSD as it was Linux
8691 case $host_vendor in
8692 gentoo)
8693 version_type=linux ;;
8694 *)
8695 version_type=freebsd-$objformat ;;
8696 esac
8697
drh71eb93e2001-09-28 01:34:43 +00008698 case $version_type in
8699 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008701 need_version=no
8702 need_lib_prefix=no
8703 ;;
8704 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008706 need_version=yes
8707 ;;
vapier7f19c022007-02-17 14:46:31 +00008708 linux)
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 need_lib_prefix=no
8712 need_version=no
8713 ;;
drh71eb93e2001-09-28 01:34:43 +00008714 esac
8715 shlibpath_var=LD_LIBRARY_PATH
8716 case $host_os in
8717 freebsd2*)
8718 shlibpath_overrides_runpath=yes
8719 ;;
vapier7f19c022007-02-17 14:46:31 +00008720 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008721 shlibpath_overrides_runpath=yes
8722 hardcode_into_libs=yes
8723 ;;
vapier7f19c022007-02-17 14:46:31 +00008724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008726 shlibpath_overrides_runpath=no
8727 hardcode_into_libs=yes
8728 ;;
mlcreech636a9952008-05-05 22:52:56 +00008729 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008730 shlibpath_overrides_runpath=yes
8731 hardcode_into_libs=yes
8732 ;;
drh71eb93e2001-09-28 01:34:43 +00008733 esac
8734 ;;
8735
8736gnu*)
8737 version_type=linux
8738 need_lib_prefix=no
8739 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008742 shlibpath_var=LD_LIBRARY_PATH
8743 hardcode_into_libs=yes
8744 ;;
8745
8746hpux9* | hpux10* | hpux11*)
8747 # Give a soname corresponding to the major version so that dld.sl refuses to
8748 # link against other versions.
8749 version_type=sunos
8750 need_lib_prefix=no
8751 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008752 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008753 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008754 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008755 hardcode_into_libs=yes
8756 dynamic_linker="$host_os dld.so"
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 if test "X$HPUX_IA64_MODE" = X32; then
8762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8763 else
8764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8765 fi
8766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8767 ;;
mlcreech636a9952008-05-05 22:52:56 +00008768 hppa*64*)
8769 shrext_cmds='.sl'
8770 hardcode_into_libs=yes
8771 dynamic_linker="$host_os dld.sl"
8772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8778 ;;
8779 *)
vapier7f19c022007-02-17 14:46:31 +00008780 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008781 dynamic_linker="$host_os dld.sl"
8782 shlibpath_var=SHLIB_PATH
8783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 ;;
8787 esac
drh71eb93e2001-09-28 01:34:43 +00008788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8789 postinstall_cmds='chmod 555 $lib'
8790 ;;
8791
mlcreech636a9952008-05-05 22:52:56 +00008792interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008793 version_type=linux
8794 need_lib_prefix=no
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=no
8801 hardcode_into_libs=yes
8802 ;;
8803
a.rottmann84e63352003-03-24 09:42:16 +00008804irix5* | irix6* | nonstopux*)
8805 case $host_os in
8806 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008807 *)
8808 if test "$lt_cv_prog_gnu_ld" = yes; then
8809 version_type=linux
8810 else
8811 version_type=irix
8812 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008813 esac
drh71eb93e2001-09-28 01:34:43 +00008814 need_lib_prefix=no
8815 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008816 soname_spec='${libname}${release}${shared_ext}$major'
8817 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 +00008818 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008819 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008820 libsuff= shlibsuff=
8821 ;;
8822 *)
8823 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8825 libsuff= shlibsuff= libmagic=32-bit;;
8826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8827 libsuff=32 shlibsuff=N32 libmagic=N32;;
8828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008830 *) libsuff= shlibsuff= libmagic=never-match;;
8831 esac
8832 ;;
8833 esac
8834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8835 shlibpath_overrides_runpath=no
8836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008838 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008839 ;;
8840
8841# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008842linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008843 dynamic_linker=no
8844 ;;
8845
8846# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008847linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008848 version_type=linux
8849 need_lib_prefix=no
8850 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008856 # Some binutils ld are patched to set DT_RUNPATH
8857 save_LDFLAGS=$LDFLAGS
8858 save_libdir=$libdir
8859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
dana9f39fd2011-08-12 16:34:42 +00008861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008862/* end confdefs.h. */
8863
8864int
8865main ()
8866{
8867
8868 ;
8869 return 0;
8870}
8871_ACEOF
dana9f39fd2011-08-12 16:34:42 +00008872if ac_fn_c_try_link "$LINENO"; then :
8873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008874 shlibpath_overrides_runpath=yes
8875fi
mlcreech636a9952008-05-05 22:52:56 +00008876fi
dana9f39fd2011-08-12 16:34:42 +00008877rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008879 LDFLAGS=$save_LDFLAGS
8880 libdir=$save_libdir
8881
drh71eb93e2001-09-28 01:34:43 +00008882 # This implies no fast_install, which is unacceptable.
8883 # Some rework will be needed to allow for fast_install
8884 # before this can be enabled.
8885 hardcode_into_libs=yes
8886
a.rottmann9bc8b932004-02-29 15:18:31 +00008887 # Append ld.so.conf contents to the search path
8888 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008889 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 +00008890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008891 fi
8892
drh71eb93e2001-09-28 01:34:43 +00008893 # We used to test for /lib/ld.so.1 and disable shared libraries on
8894 # powerpc, because MkLinux only supported shared libraries with the
8895 # GNU dynamic linker. Since this was broken with cross compilers,
8896 # most powerpc-linux boxes support dynamic linking these days and
8897 # people can always --disable-shared, the test was removed, and we
8898 # assume the GNU/Linux dynamic linker is in use.
8899 dynamic_linker='GNU/Linux ld.so'
8900 ;;
8901
8902netbsd*)
8903 version_type=sunos
8904 need_lib_prefix=no
8905 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8909 dynamic_linker='NetBSD (a.out) ld.so'
8910 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008913 dynamic_linker='NetBSD ld.elf_so'
8914 fi
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 hardcode_into_libs=yes
8918 ;;
8919
8920newsos6)
8921 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=yes
8925 ;;
8926
mlcreech636a9952008-05-05 22:52:56 +00008927*nto* | *qnx*)
8928 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008929 need_lib_prefix=no
8930 need_version=no
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008933 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008934 shlibpath_overrides_runpath=no
8935 hardcode_into_libs=yes
8936 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008937 ;;
8938
drh71eb93e2001-09-28 01:34:43 +00008939openbsd*)
8940 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008941 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008942 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008943 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8944 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8946 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008947 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008951 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 +00008952 case $host_os in
8953 openbsd2.[89] | openbsd2.[89].*)
8954 shlibpath_overrides_runpath=no
8955 ;;
8956 *)
8957 shlibpath_overrides_runpath=yes
8958 ;;
8959 esac
a.rottmann84e63352003-03-24 09:42:16 +00008960 else
8961 shlibpath_overrides_runpath=yes
8962 fi
drh71eb93e2001-09-28 01:34:43 +00008963 ;;
8964
8965os2*)
8966 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008967 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008968 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008969 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008970 dynamic_linker='OS/2 ld.exe'
8971 shlibpath_var=LIBPATH
8972 ;;
8973
8974osf3* | osf4* | osf5*)
8975 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008976 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008977 need_version=no
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008980 shlibpath_var=LD_LIBRARY_PATH
8981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8983 ;;
8984
mlcreech636a9952008-05-05 22:52:56 +00008985rdos*)
8986 dynamic_linker=no
8987 ;;
8988
drh71eb93e2001-09-28 01:34:43 +00008989solaris*)
8990 version_type=linux
8991 need_lib_prefix=no
8992 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes
8997 hardcode_into_libs=yes
8998 # ldd complains unless libraries are executable
8999 postinstall_cmds='chmod +x $lib'
9000 ;;
9001
9002sunos4*)
9003 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=yes
9008 if test "$with_gnu_ld" = yes; then
9009 need_lib_prefix=no
9010 fi
9011 need_version=yes
9012 ;;
9013
vapier7f19c022007-02-17 14:46:31 +00009014sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009015 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009018 shlibpath_var=LD_LIBRARY_PATH
9019 case $host_vendor in
9020 sni)
9021 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009022 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009023 runpath_var=LD_RUN_PATH
9024 ;;
9025 siemens)
9026 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009027 ;;
9028 motorola)
9029 need_lib_prefix=no
9030 need_version=no
9031 shlibpath_overrides_runpath=no
9032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9033 ;;
9034 esac
9035 ;;
9036
9037sysv4*MP*)
9038 if test -d /usr/nec ;then
9039 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009040 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9041 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009042 shlibpath_var=LD_LIBRARY_PATH
9043 fi
9044 ;;
9045
vapier7f19c022007-02-17 14:46:31 +00009046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9047 version_type=freebsd-elf
9048 need_lib_prefix=no
9049 need_version=no
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009053 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009054 hardcode_into_libs=yes
9055 if test "$with_gnu_ld" = yes; then
9056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009057 else
9058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009059 case $host_os in
9060 sco3.2v5*)
9061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9062 ;;
9063 esac
9064 fi
9065 sys_lib_dlsearch_path_spec='/usr/lib'
9066 ;;
9067
mlcreech636a9952008-05-05 22:52:56 +00009068tpf*)
9069 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9077 ;;
9078
a.rottmann9bc8b932004-02-29 15:18:31 +00009079uts4*)
9080 version_type=linux
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 ;;
9085
drh71eb93e2001-09-28 01:34:43 +00009086*)
9087 dynamic_linker=no
9088 ;;
9089esac
dana9f39fd2011-08-12 16:34:42 +00009090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009091$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009092test "$dynamic_linker" = no && can_build_shared=no
9093
vapier7f19c022007-02-17 14:46:31 +00009094variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9095if test "$GCC" = yes; then
9096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9097fi
9098
mlcreech636a9952008-05-05 22:52:56 +00009099if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9100 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9101fi
9102if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9103 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9104fi
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
dana9f39fd2011-08-12 16:34:42 +00009192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009193$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009194hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009195if test -n "$hardcode_libdir_flag_spec" ||
9196 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009197 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009198
mlcreech636a9952008-05-05 22:52:56 +00009199 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009200 if test "$hardcode_direct" != no &&
9201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9202 # have to relink, otherwise we might link with an installed library
9203 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009205 test "$hardcode_minus_L" != no; then
9206 # Linking always hardcodes the temporary library directory.
9207 hardcode_action=relink
9208 else
9209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9210 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009211 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009212else
9213 # We cannot hardcode anything, or else we can only hardcode existing
9214 # directories.
9215 hardcode_action=unsupported
9216fi
dana9f39fd2011-08-12 16:34:42 +00009217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009218$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009219
mlcreech636a9952008-05-05 22:52:56 +00009220if test "$hardcode_action" = relink ||
9221 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009222 # Fast installation is not supported
9223 enable_fast_install=no
9224elif test "$shlibpath_overrides_runpath" = yes ||
9225 test "$enable_shared" = no; then
9226 # Fast installation is not necessary
9227 enable_fast_install=needless
9228fi
9229
a.rottmann84e63352003-03-24 09:42:16 +00009230
mlcreech636a9952008-05-05 22:52:56 +00009231
9232
9233
9234
9235 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009236 enable_dlopen=unknown
9237 enable_dlopen_self=unknown
9238 enable_dlopen_self_static=unknown
9239else
9240 lt_cv_dlopen=no
9241 lt_cv_dlopen_libs=
9242
9243 case $host_os in
9244 beos*)
9245 lt_cv_dlopen="load_add_on"
9246 lt_cv_dlopen_libs=
9247 lt_cv_dlopen_self=yes
9248 ;;
9249
vapier6acb2cf2009-01-28 04:46:28 +00009250 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009251 lt_cv_dlopen="LoadLibrary"
9252 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009253 ;;
drh71eb93e2001-09-28 01:34:43 +00009254
a.rottmann9bc8b932004-02-29 15:18:31 +00009255 cygwin*)
9256 lt_cv_dlopen="dlopen"
9257 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009258 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009259
9260 darwin*)
9261 # if libdl is installed we need to link against it
dana9f39fd2011-08-12 16:34:42 +00009262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009263$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009264if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009265 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009266else
9267 ac_check_lib_save_LIBS=$LIBS
9268LIBS="-ldl $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009270/* end confdefs.h. */
9271
drh8b727472009-01-19 18:18:40 +00009272/* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009275#ifdef __cplusplus
9276extern "C"
9277#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009278char dlopen ();
9279int
9280main ()
9281{
drh8b727472009-01-19 18:18:40 +00009282return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009283 ;
9284 return 0;
9285}
9286_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009287if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009288 ac_cv_lib_dl_dlopen=yes
9289else
dana9f39fd2011-08-12 16:34:42 +00009290 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009291fi
dana9f39fd2011-08-12 16:34:42 +00009292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009294LIBS=$ac_check_lib_save_LIBS
9295fi
dana9f39fd2011-08-12 16:34:42 +00009296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009297$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009298if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9300else
9301
9302 lt_cv_dlopen="dyld"
9303 lt_cv_dlopen_libs=
9304 lt_cv_dlopen_self=yes
9305
9306fi
9307
mlcreech636a9952008-05-05 22:52:56 +00009308 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009309
drh71eb93e2001-09-28 01:34:43 +00009310 *)
dana9f39fd2011-08-12 16:34:42 +00009311 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
drh6a8ab6d2011-11-09 01:53:25 +00009312if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009313 lt_cv_dlopen="shl_load"
9314else
dana9f39fd2011-08-12 16:34:42 +00009315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009316$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009317if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009318 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009319else
9320 ac_check_lib_save_LIBS=$LIBS
9321LIBS="-ldld $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009323/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009324
drh8b727472009-01-19 18:18:40 +00009325/* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009328#ifdef __cplusplus
9329extern "C"
9330#endif
drh71eb93e2001-09-28 01:34:43 +00009331char shl_load ();
9332int
9333main ()
9334{
drh8b727472009-01-19 18:18:40 +00009335return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009336 ;
9337 return 0;
9338}
9339_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009340if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009341 ac_cv_lib_dld_shl_load=yes
9342else
dana9f39fd2011-08-12 16:34:42 +00009343 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009344fi
dana9f39fd2011-08-12 16:34:42 +00009345rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009347LIBS=$ac_check_lib_save_LIBS
9348fi
dana9f39fd2011-08-12 16:34:42 +00009349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009350$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009351if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009352 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009353else
dana9f39fd2011-08-12 16:34:42 +00009354 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
drh6a8ab6d2011-11-09 01:53:25 +00009355if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009356 lt_cv_dlopen="dlopen"
9357else
dana9f39fd2011-08-12 16:34:42 +00009358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009359$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009360if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009361 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009362else
9363 ac_check_lib_save_LIBS=$LIBS
9364LIBS="-ldl $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009366/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009367
drh8b727472009-01-19 18:18:40 +00009368/* Override any GCC internal prototype to avoid an error.
9369 Use char because int might match the return type of a GCC
9370 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009371#ifdef __cplusplus
9372extern "C"
9373#endif
drh71eb93e2001-09-28 01:34:43 +00009374char dlopen ();
9375int
9376main ()
9377{
drh8b727472009-01-19 18:18:40 +00009378return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009379 ;
9380 return 0;
9381}
9382_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009383if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009384 ac_cv_lib_dl_dlopen=yes
9385else
dana9f39fd2011-08-12 16:34:42 +00009386 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009387fi
dana9f39fd2011-08-12 16:34:42 +00009388rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009390LIBS=$ac_check_lib_save_LIBS
9391fi
dana9f39fd2011-08-12 16:34:42 +00009392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009393$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009394if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9396else
dana9f39fd2011-08-12 16:34:42 +00009397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009398$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009399if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009400 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009401else
9402 ac_check_lib_save_LIBS=$LIBS
9403LIBS="-lsvld $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009405/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009406
drh8b727472009-01-19 18:18:40 +00009407/* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009410#ifdef __cplusplus
9411extern "C"
9412#endif
drh71eb93e2001-09-28 01:34:43 +00009413char dlopen ();
9414int
9415main ()
9416{
drh8b727472009-01-19 18:18:40 +00009417return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009418 ;
9419 return 0;
9420}
9421_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009422if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009423 ac_cv_lib_svld_dlopen=yes
9424else
dana9f39fd2011-08-12 16:34:42 +00009425 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009426fi
dana9f39fd2011-08-12 16:34:42 +00009427rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009429LIBS=$ac_check_lib_save_LIBS
9430fi
dana9f39fd2011-08-12 16:34:42 +00009431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009432$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009433if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009435else
dana9f39fd2011-08-12 16:34:42 +00009436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009437$as_echo_n "checking for dld_link in -ldld... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009438if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009439 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009440else
9441 ac_check_lib_save_LIBS=$LIBS
9442LIBS="-ldld $LIBS"
dana9f39fd2011-08-12 16:34:42 +00009443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009444/* end confdefs.h. */
9445
drh8b727472009-01-19 18:18:40 +00009446/* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009449#ifdef __cplusplus
9450extern "C"
9451#endif
a.rottmann84e63352003-03-24 09:42:16 +00009452char dld_link ();
9453int
9454main ()
9455{
drh8b727472009-01-19 18:18:40 +00009456return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009457 ;
9458 return 0;
9459}
9460_ACEOF
dana9f39fd2011-08-12 16:34:42 +00009461if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009462 ac_cv_lib_dld_dld_link=yes
9463else
dana9f39fd2011-08-12 16:34:42 +00009464 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009465fi
dana9f39fd2011-08-12 16:34:42 +00009466rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009468LIBS=$ac_check_lib_save_LIBS
9469fi
dana9f39fd2011-08-12 16:34:42 +00009470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009471$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009472if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009473 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009474fi
9475
drh71eb93e2001-09-28 01:34:43 +00009476
9477fi
9478
drh71eb93e2001-09-28 01:34:43 +00009479
9480fi
9481
a.rottmann84e63352003-03-24 09:42:16 +00009482
9483fi
9484
9485
9486fi
9487
9488
drh71eb93e2001-09-28 01:34:43 +00009489fi
9490
9491 ;;
9492 esac
9493
9494 if test "x$lt_cv_dlopen" != xno; then
9495 enable_dlopen=yes
9496 else
9497 enable_dlopen=no
9498 fi
9499
9500 case $lt_cv_dlopen in
9501 dlopen)
9502 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009503 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009504
9505 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009507
9508 save_LIBS="$LIBS"
9509 LIBS="$lt_cv_dlopen_libs $LIBS"
9510
dana9f39fd2011-08-12 16:34:42 +00009511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009512$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009513if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009514 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009515else
9516 if test "$cross_compiling" = yes; then :
9517 lt_cv_dlopen_self=cross
9518else
a.rottmann9bc8b932004-02-29 15:18:31 +00009519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009520 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009521 cat > conftest.$ac_ext <<_LT_EOF
drh6a8ab6d2011-11-09 01:53:25 +00009522#line 9522 "configure"
drh71eb93e2001-09-28 01:34:43 +00009523#include "confdefs.h"
9524
9525#if HAVE_DLFCN_H
9526#include <dlfcn.h>
9527#endif
9528
9529#include <stdio.h>
9530
9531#ifdef RTLD_GLOBAL
9532# define LT_DLGLOBAL RTLD_GLOBAL
9533#else
9534# ifdef DL_GLOBAL
9535# define LT_DLGLOBAL DL_GLOBAL
9536# else
9537# define LT_DLGLOBAL 0
9538# endif
9539#endif
9540
9541/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9542 find out it does not work in some platform. */
9543#ifndef LT_DLLAZY_OR_NOW
9544# ifdef RTLD_LAZY
9545# define LT_DLLAZY_OR_NOW RTLD_LAZY
9546# else
9547# ifdef DL_LAZY
9548# define LT_DLLAZY_OR_NOW DL_LAZY
9549# else
9550# ifdef RTLD_NOW
9551# define LT_DLLAZY_OR_NOW RTLD_NOW
9552# else
9553# ifdef DL_NOW
9554# define LT_DLLAZY_OR_NOW DL_NOW
9555# else
9556# define LT_DLLAZY_OR_NOW 0
9557# endif
9558# endif
9559# endif
9560# endif
9561#endif
9562
drh71eb93e2001-09-28 01:34:43 +00009563void fnord() { int i=42;}
9564int main ()
9565{
9566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9567 int status = $lt_dlunknown;
9568
9569 if (self)
9570 {
9571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9572 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9573 /* dlclose (self); */
9574 }
vapier7f19c022007-02-17 14:46:31 +00009575 else
9576 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009577
vapier6acb2cf2009-01-28 04:46:28 +00009578 return status;
drh71eb93e2001-09-28 01:34:43 +00009579}
mlcreech636a9952008-05-05 22:52:56 +00009580_LT_EOF
dana9f39fd2011-08-12 16:34:42 +00009581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009582 (eval $ac_link) 2>&5
9583 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00009584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009586 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009587 lt_status=$?
9588 case x$lt_status in
9589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009592 esac
9593 else :
9594 # compilation failed
9595 lt_cv_dlopen_self=no
9596 fi
9597fi
9598rm -fr conftest*
9599
a.rottmann84e63352003-03-24 09:42:16 +00009600
drh71eb93e2001-09-28 01:34:43 +00009601fi
dana9f39fd2011-08-12 16:34:42 +00009602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009603$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009604
9605 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dana9f39fd2011-08-12 16:34:42 +00009607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009608$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009609if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009610 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009611else
9612 if test "$cross_compiling" = yes; then :
9613 lt_cv_dlopen_self_static=cross
9614else
a.rottmann9bc8b932004-02-29 15:18:31 +00009615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009616 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009617 cat > conftest.$ac_ext <<_LT_EOF
drh6a8ab6d2011-11-09 01:53:25 +00009618#line 9618 "configure"
drh71eb93e2001-09-28 01:34:43 +00009619#include "confdefs.h"
9620
9621#if HAVE_DLFCN_H
9622#include <dlfcn.h>
9623#endif
9624
9625#include <stdio.h>
9626
9627#ifdef RTLD_GLOBAL
9628# define LT_DLGLOBAL RTLD_GLOBAL
9629#else
9630# ifdef DL_GLOBAL
9631# define LT_DLGLOBAL DL_GLOBAL
9632# else
9633# define LT_DLGLOBAL 0
9634# endif
9635#endif
9636
9637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9638 find out it does not work in some platform. */
9639#ifndef LT_DLLAZY_OR_NOW
9640# ifdef RTLD_LAZY
9641# define LT_DLLAZY_OR_NOW RTLD_LAZY
9642# else
9643# ifdef DL_LAZY
9644# define LT_DLLAZY_OR_NOW DL_LAZY
9645# else
9646# ifdef RTLD_NOW
9647# define LT_DLLAZY_OR_NOW RTLD_NOW
9648# else
9649# ifdef DL_NOW
9650# define LT_DLLAZY_OR_NOW DL_NOW
9651# else
9652# define LT_DLLAZY_OR_NOW 0
9653# endif
9654# endif
9655# endif
9656# endif
9657#endif
9658
drh71eb93e2001-09-28 01:34:43 +00009659void fnord() { int i=42;}
9660int main ()
9661{
9662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9663 int status = $lt_dlunknown;
9664
9665 if (self)
9666 {
9667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9668 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9669 /* dlclose (self); */
9670 }
vapier7f19c022007-02-17 14:46:31 +00009671 else
9672 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009673
vapier6acb2cf2009-01-28 04:46:28 +00009674 return status;
drh71eb93e2001-09-28 01:34:43 +00009675}
mlcreech636a9952008-05-05 22:52:56 +00009676_LT_EOF
dana9f39fd2011-08-12 16:34:42 +00009677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009678 (eval $ac_link) 2>&5
9679 ac_status=$?
dana9f39fd2011-08-12 16:34:42 +00009680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009682 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009683 lt_status=$?
9684 case x$lt_status in
9685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009687 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009688 esac
9689 else :
9690 # compilation failed
9691 lt_cv_dlopen_self_static=no
9692 fi
9693fi
9694rm -fr conftest*
9695
a.rottmann84e63352003-03-24 09:42:16 +00009696
drh71eb93e2001-09-28 01:34:43 +00009697fi
dana9f39fd2011-08-12 16:34:42 +00009698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009699$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009700 fi
9701
9702 CPPFLAGS="$save_CPPFLAGS"
9703 LDFLAGS="$save_LDFLAGS"
9704 LIBS="$save_LIBS"
9705 ;;
9706 esac
9707
9708 case $lt_cv_dlopen_self in
9709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9710 *) enable_dlopen_self=unknown ;;
9711 esac
9712
9713 case $lt_cv_dlopen_self_static in
9714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9715 *) enable_dlopen_self_static=unknown ;;
9716 esac
9717fi
9718
drh71eb93e2001-09-28 01:34:43 +00009719
drh71eb93e2001-09-28 01:34:43 +00009720
a.rottmann9bc8b932004-02-29 15:18:31 +00009721
a.rottmann9bc8b932004-02-29 15:18:31 +00009722
mlcreech636a9952008-05-05 22:52:56 +00009723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735striplib=
9736old_striplib=
dana9f39fd2011-08-12 16:34:42 +00009737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009738$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009739if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dana9f39fd2011-08-12 16:34:42 +00009742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009743$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009744else
9745# FIXME - insert some real tests, host_os isn't really good enough
9746 case $host_os in
9747 darwin*)
9748 if test -n "$STRIP" ; then
9749 striplib="$STRIP -x"
9750 old_striplib="$STRIP -S"
dana9f39fd2011-08-12 16:34:42 +00009751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009752$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009753 else
dana9f39fd2011-08-12 16:34:42 +00009754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009755$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009756 fi
a.rottmann84e63352003-03-24 09:42:16 +00009757 ;;
mlcreech636a9952008-05-05 22:52:56 +00009758 *)
dana9f39fd2011-08-12 16:34:42 +00009759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009760$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009761 ;;
9762 esac
mlcreech636a9952008-05-05 22:52:56 +00009763fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009764
a.rottmann9bc8b932004-02-29 15:18:31 +00009765
drh71eb93e2001-09-28 01:34:43 +00009766
drh71eb93e2001-09-28 01:34:43 +00009767
a.rottmann84e63352003-03-24 09:42:16 +00009768
drh71eb93e2001-09-28 01:34:43 +00009769
drh71eb93e2001-09-28 01:34:43 +00009770
a.rottmann9bc8b932004-02-29 15:18:31 +00009771
drh71eb93e2001-09-28 01:34:43 +00009772
drh71eb93e2001-09-28 01:34:43 +00009773
drh71eb93e2001-09-28 01:34:43 +00009774
drh71eb93e2001-09-28 01:34:43 +00009775
mlcreech636a9952008-05-05 22:52:56 +00009776 # Report which library types will actually be built
dana9f39fd2011-08-12 16:34:42 +00009777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009778$as_echo_n "checking if libtool supports shared libraries... " >&6; }
dana9f39fd2011-08-12 16:34:42 +00009779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009780$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009781
dana9f39fd2011-08-12 16:34:42 +00009782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009783$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009784 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009785
mlcreech636a9952008-05-05 22:52:56 +00009786 # On AIX, shared libraries and static libraries use the same namespace, and
9787 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009788 case $host_os in
9789 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009790 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009791 if test -n "$RANLIB"; then
9792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9793 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009794 fi
9795 ;;
9796
mlcreech636a9952008-05-05 22:52:56 +00009797 aix[4-9]*)
9798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9799 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009800 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009801 ;;
9802 esac
dana9f39fd2011-08-12 16:34:42 +00009803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009804$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009805
dana9f39fd2011-08-12 16:34:42 +00009806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009807$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009808 # Make sure either enable_shared or enable_static is yes.
9809 test "$enable_shared" = yes || enable_static=yes
dana9f39fd2011-08-12 16:34:42 +00009810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009811$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009812
a.rottmann9bc8b932004-02-29 15:18:31 +00009813
a.rottmann9bc8b932004-02-29 15:18:31 +00009814
a.rottmann9bc8b932004-02-29 15:18:31 +00009815
vapier7f19c022007-02-17 14:46:31 +00009816fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009817ac_ext=c
9818ac_cpp='$CPP $CPPFLAGS'
9819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9821ac_compiler_gnu=$ac_cv_c_compiler_gnu
9822
9823CC="$lt_save_CC"
9824
a.rottmann9bc8b932004-02-29 15:18:31 +00009825
a.rottmann9bc8b932004-02-29 15:18:31 +00009826
9827
a.rottmann9bc8b932004-02-29 15:18:31 +00009828
a.rottmann9bc8b932004-02-29 15:18:31 +00009829
a.rottmann9bc8b932004-02-29 15:18:31 +00009830
a.rottmann9bc8b932004-02-29 15:18:31 +00009831
a.rottmann9bc8b932004-02-29 15:18:31 +00009832
a.rottmann9bc8b932004-02-29 15:18:31 +00009833
vapier7f19c022007-02-17 14:46:31 +00009834
a.rottmann9bc8b932004-02-29 15:18:31 +00009835
9836
drh8b727472009-01-19 18:18:40 +00009837 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009838
vapier7f19c022007-02-17 14:46:31 +00009839
9840
vapier7f19c022007-02-17 14:46:31 +00009841
mlcreech636a9952008-05-05 22:52:56 +00009842# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
9844
drh71eb93e2001-09-28 01:34:43 +00009845# Find a good install program. We prefer a C program (faster),
9846# so one script is as good as another. But avoid the broken or
9847# incompatible versions:
9848# SysV /etc/install, /usr/sbin/install
9849# SunOS /usr/etc/install
9850# IRIX /sbin/install
9851# AIX /bin/install
9852# AmigaOS /C/install, which installs bootblocks on floppy discs
9853# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9854# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9855# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009856# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009857# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009858# Reject install programs that cannot install multiple files.
dana9f39fd2011-08-12 16:34:42 +00009859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009860$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009861if test -z "$INSTALL"; then
drh6a8ab6d2011-11-09 01:53:25 +00009862if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009863 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009864else
a.rottmann84e63352003-03-24 09:42:16 +00009865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00009870 # Account for people who put trailing slashes in PATH elements.
9871case $as_dir/ in #((
9872 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009873 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
dana9f39fd2011-08-12 16:34:42 +00009874 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009875 /usr/ucb/* ) ;;
9876 *)
9877 # OSF1 and SCO ODT 3.0 have their own names for install.
9878 # Don't use installbsd from OSF since it installs stuff as root
9879 # by default.
9880 for ac_prog in ginstall scoinst install; do
9881 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00009882 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
a.rottmann964dbb12004-02-26 19:47:42 +00009883 if test $ac_prog = install &&
9884 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9885 # AIX install. It has an incompatible calling convention.
9886 :
9887 elif test $ac_prog = install &&
9888 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9889 # program-specific install script used by HP pwplus--don't use.
9890 :
9891 else
drh8b727472009-01-19 18:18:40 +00009892 rm -rf conftest.one conftest.two conftest.dir
9893 echo one > conftest.one
9894 echo two > conftest.two
9895 mkdir conftest.dir
9896 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9897 test -s conftest.one && test -s conftest.two &&
9898 test -s conftest.dir/conftest.one &&
9899 test -s conftest.dir/conftest.two
9900 then
9901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9902 break 3
9903 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009904 fi
9905 fi
drh71eb93e2001-09-28 01:34:43 +00009906 done
a.rottmann84e63352003-03-24 09:42:16 +00009907 done
9908 ;;
9909esac
a.rottmann84e63352003-03-24 09:42:16 +00009910
dana9f39fd2011-08-12 16:34:42 +00009911 done
drh8b727472009-01-19 18:18:40 +00009912IFS=$as_save_IFS
9913
9914rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009915
9916fi
9917 if test "${ac_cv_path_install+set}" = set; then
9918 INSTALL=$ac_cv_path_install
9919 else
drh8b727472009-01-19 18:18:40 +00009920 # As a last resort, use the slow shell script. Don't cache a
9921 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009922 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009923 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009924 INSTALL=$ac_install_sh
9925 fi
9926fi
dana9f39fd2011-08-12 16:34:42 +00009927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009928$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009929
9930# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9931# It thinks the first close brace ends the variable substitution.
9932test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9933
9934test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9935
9936test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9937
drhf1878b42006-01-23 18:06:52 +00009938for ac_prog in gawk mawk nawk awk
9939do
9940 # Extract the first word of "$ac_prog", so it can be a program name with args.
9941set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +00009942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00009943$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009944if ${ac_cv_prog_AWK+:} false; then :
drh8b727472009-01-19 18:18:40 +00009945 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +00009946else
9947 if test -n "$AWK"; then
9948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9949else
9950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951for as_dir in $PATH
9952do
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +00009955 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00009956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
drhf1878b42006-01-23 18:06:52 +00009957 ac_cv_prog_AWK="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +00009958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009959 break 2
9960 fi
9961done
dana9f39fd2011-08-12 16:34:42 +00009962 done
drh8b727472009-01-19 18:18:40 +00009963IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +00009964
9965fi
9966fi
9967AWK=$ac_cv_prog_AWK
9968if test -n "$AWK"; then
dana9f39fd2011-08-12 16:34:42 +00009969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +00009970$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +00009971else
dana9f39fd2011-08-12 16:34:42 +00009972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009973$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +00009974fi
9975
drh8b727472009-01-19 18:18:40 +00009976
drhf1878b42006-01-23 18:06:52 +00009977 test -n "$AWK" && break
9978done
9979
a.rottmann84e63352003-03-24 09:42:16 +00009980
drh75897232000-05-29 14:26:00 +00009981#########
mlcreech636a9952008-05-05 22:52:56 +00009982# Enable large file support (if special flags are necessary)
9983#
drh8b727472009-01-19 18:18:40 +00009984# Check whether --enable-largefile was given.
dana9f39fd2011-08-12 16:34:42 +00009985if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009986 enableval=$enable_largefile;
9987fi
mlcreech636a9952008-05-05 22:52:56 +00009988
9989if test "$enable_largefile" != no; then
9990
dana9f39fd2011-08-12 16:34:42 +00009991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009992$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +00009993if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009994 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009995else
mlcreech636a9952008-05-05 22:52:56 +00009996 ac_cv_sys_largefile_CC=no
9997 if test "$GCC" != yes; then
9998 ac_save_CC=$CC
9999 while :; do
drh8b727472009-01-19 18:18:40 +000010000 # IRIX 6.2 and later do not support large files by default,
10001 # so use the C compiler's -n32 option if that helps.
dana9f39fd2011-08-12 16:34:42 +000010002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010003/* end confdefs.h. */
10004#include <sys/types.h>
10005 /* Check that off_t can represent 2**63 - 1 correctly.
10006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10007 since some C++ compilers masquerading as C compilers
10008 incorrectly reject 9223372036854775807. */
10009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10011 && LARGE_OFF_T % 2147483647 == 1)
10012 ? 1 : -1];
10013int
10014main ()
10015{
10016
10017 ;
10018 return 0;
10019}
10020_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010021 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010022 break
mlcreech636a9952008-05-05 22:52:56 +000010023fi
drh8b727472009-01-19 18:18:40 +000010024rm -f core conftest.err conftest.$ac_objext
10025 CC="$CC -n32"
dana9f39fd2011-08-12 16:34:42 +000010026 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010027 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010028fi
drh8b727472009-01-19 18:18:40 +000010029rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010030 break
10031 done
10032 CC=$ac_save_CC
10033 rm -f conftest.$ac_ext
10034 fi
10035fi
dana9f39fd2011-08-12 16:34:42 +000010036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010037$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010038 if test "$ac_cv_sys_largefile_CC" != no; then
10039 CC=$CC$ac_cv_sys_largefile_CC
10040 fi
10041
dana9f39fd2011-08-12 16:34:42 +000010042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010043$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010044if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010045 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010046else
10047 while :; do
dana9f39fd2011-08-12 16:34:42 +000010048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010049/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010050#include <sys/types.h>
10051 /* Check that off_t can represent 2**63 - 1 correctly.
10052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10053 since some C++ compilers masquerading as C compilers
10054 incorrectly reject 9223372036854775807. */
10055#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10057 && LARGE_OFF_T % 2147483647 == 1)
10058 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010059int
10060main ()
10061{
mlcreech636a9952008-05-05 22:52:56 +000010062
mlcreechb87057f2008-03-06 07:19:20 +000010063 ;
10064 return 0;
10065}
10066_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010067if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010068 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010069fi
drh8b727472009-01-19 18:18:40 +000010070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +000010071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010072/* end confdefs.h. */
10073#define _FILE_OFFSET_BITS 64
10074#include <sys/types.h>
10075 /* Check that off_t can represent 2**63 - 1 correctly.
10076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10077 since some C++ compilers masquerading as C compilers
10078 incorrectly reject 9223372036854775807. */
10079#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10081 && LARGE_OFF_T % 2147483647 == 1)
10082 ? 1 : -1];
10083int
10084main ()
10085{
10086
10087 ;
10088 return 0;
10089}
10090_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010091if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010092 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010093fi
drh8b727472009-01-19 18:18:40 +000010094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010096 break
10097done
10098fi
dana9f39fd2011-08-12 16:34:42 +000010099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010100$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10101case $ac_cv_sys_file_offset_bits in #(
10102 no | unknown) ;;
10103 *)
mlcreech636a9952008-05-05 22:52:56 +000010104cat >>confdefs.h <<_ACEOF
10105#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10106_ACEOF
drh8b727472009-01-19 18:18:40 +000010107;;
10108esac
10109rm -rf conftest*
10110 if test $ac_cv_sys_file_offset_bits = unknown; then
dana9f39fd2011-08-12 16:34:42 +000010111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010112$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010113if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010114 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010115else
10116 while :; do
dana9f39fd2011-08-12 16:34:42 +000010117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010118/* end confdefs.h. */
10119#include <sys/types.h>
10120 /* Check that off_t can represent 2**63 - 1 correctly.
10121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10122 since some C++ compilers masquerading as C compilers
10123 incorrectly reject 9223372036854775807. */
10124#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10127 ? 1 : -1];
10128int
10129main ()
10130{
10131
10132 ;
10133 return 0;
10134}
10135_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010136if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010137 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010138fi
drh8b727472009-01-19 18:18:40 +000010139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dana9f39fd2011-08-12 16:34:42 +000010140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010141/* end confdefs.h. */
10142#define _LARGE_FILES 1
10143#include <sys/types.h>
10144 /* Check that off_t can represent 2**63 - 1 correctly.
10145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10146 since some C++ compilers masquerading as C compilers
10147 incorrectly reject 9223372036854775807. */
10148#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10150 && LARGE_OFF_T % 2147483647 == 1)
10151 ? 1 : -1];
10152int
10153main ()
10154{
10155
10156 ;
10157 return 0;
10158}
10159_ACEOF
dana9f39fd2011-08-12 16:34:42 +000010160if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010161 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010162fi
drh8b727472009-01-19 18:18:40 +000010163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010165 break
10166done
10167fi
dana9f39fd2011-08-12 16:34:42 +000010168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010169$as_echo "$ac_cv_sys_large_files" >&6; }
10170case $ac_cv_sys_large_files in #(
10171 no | unknown) ;;
10172 *)
mlcreech636a9952008-05-05 22:52:56 +000010173cat >>confdefs.h <<_ACEOF
10174#define _LARGE_FILES $ac_cv_sys_large_files
10175_ACEOF
drh8b727472009-01-19 18:18:40 +000010176;;
10177esac
10178rm -rf conftest*
10179 fi
mlcreech636a9952008-05-05 22:52:56 +000010180fi
10181
10182
10183#########
10184# Check for needed/wanted data types
dana9f39fd2011-08-12 16:34:42 +000010185ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010186if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010187
10188cat >>confdefs.h <<_ACEOF
10189#define HAVE_INT8_T 1
10190_ACEOF
10191
10192
10193fi
dana9f39fd2011-08-12 16:34:42 +000010194ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010195if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010196
10197cat >>confdefs.h <<_ACEOF
10198#define HAVE_INT16_T 1
10199_ACEOF
10200
10201
10202fi
dana9f39fd2011-08-12 16:34:42 +000010203ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010204if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010205
10206cat >>confdefs.h <<_ACEOF
10207#define HAVE_INT32_T 1
10208_ACEOF
10209
10210
10211fi
dana9f39fd2011-08-12 16:34:42 +000010212ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010213if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010214
10215cat >>confdefs.h <<_ACEOF
10216#define HAVE_INT64_T 1
10217_ACEOF
10218
10219
10220fi
dana9f39fd2011-08-12 16:34:42 +000010221ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010222if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010223
10224cat >>confdefs.h <<_ACEOF
10225#define HAVE_INTPTR_T 1
10226_ACEOF
10227
10228
10229fi
dana9f39fd2011-08-12 16:34:42 +000010230ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010231if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010232
10233cat >>confdefs.h <<_ACEOF
10234#define HAVE_UINT8_T 1
10235_ACEOF
10236
10237
10238fi
dana9f39fd2011-08-12 16:34:42 +000010239ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010240if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010241
10242cat >>confdefs.h <<_ACEOF
10243#define HAVE_UINT16_T 1
10244_ACEOF
10245
10246
10247fi
dana9f39fd2011-08-12 16:34:42 +000010248ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010249if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010250
10251cat >>confdefs.h <<_ACEOF
10252#define HAVE_UINT32_T 1
10253_ACEOF
10254
10255
10256fi
dana9f39fd2011-08-12 16:34:42 +000010257ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010258if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010259
10260cat >>confdefs.h <<_ACEOF
10261#define HAVE_UINT64_T 1
10262_ACEOF
10263
10264
10265fi
dana9f39fd2011-08-12 16:34:42 +000010266ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000010267if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010268
10269cat >>confdefs.h <<_ACEOF
10270#define HAVE_UINTPTR_T 1
10271_ACEOF
10272
10273
10274fi
mlcreechb87057f2008-03-06 07:19:20 +000010275
10276
10277#########
10278# Check for needed/wanted headers
mlcreech8390bc32008-03-06 08:54:38 +000010279for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
dana9f39fd2011-08-12 16:34:42 +000010280do :
10281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10282ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
drh0fe0c462011-09-22 00:56:38 +000010283if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010284 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010286_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010287
mlcreechb87057f2008-03-06 07:19:20 +000010288fi
10289
10290done
10291
10292
10293#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010294# Figure out whether or not we have these functions
10295#
drh6a8ab6d2011-11-09 01:53:25 +000010296for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
dana9f39fd2011-08-12 16:34:42 +000010297do :
10298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10299ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
drh0fe0c462011-09-22 00:56:38 +000010300if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010301 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010302#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010303_ACEOF
10304
10305fi
10306done
10307
10308
mlcreechab1c47b2008-03-09 02:51:10 +000010309#########
mlcreechf3868112008-03-11 18:03:30 +000010310# By default, we use the amalgamation (this may be changed below...)
10311#
10312USE_AMALGAMATION=1
10313
10314#########
mlcreechab1c47b2008-03-09 02:51:10 +000010315# See whether we can run specific tclsh versions known to work well;
10316# if not, then we fall back to plain tclsh.
10317# TODO: try other versions before falling back?
10318#
drhd7ceb372010-07-27 16:42:22 +000010319for ac_prog in tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010320do
10321 # Extract the first word of "$ac_prog", so it can be a program name with args.
10322set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +000010323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010324$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010325if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010326 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010327else
10328 if test -n "$TCLSH_CMD"; then
10329 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10330else
10331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332for as_dir in $PATH
10333do
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000010336 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreechab1c47b2008-03-09 02:51:10 +000010338 ac_cv_prog_TCLSH_CMD="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +000010339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010340 break 2
10341 fi
10342done
dana9f39fd2011-08-12 16:34:42 +000010343 done
drh8b727472009-01-19 18:18:40 +000010344IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010345
10346fi
10347fi
10348TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10349if test -n "$TCLSH_CMD"; then
dana9f39fd2011-08-12 16:34:42 +000010350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010351$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010352else
dana9f39fd2011-08-12 16:34:42 +000010353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010354$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010355fi
10356
drh8b727472009-01-19 18:18:40 +000010357
mlcreechab1c47b2008-03-09 02:51:10 +000010358 test -n "$TCLSH_CMD" && break
10359done
mlcreechf3868112008-03-11 18:03:30 +000010360test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010361
mlcreechf3868112008-03-11 18:03:30 +000010362if test "$TCLSH_CMD" = "none"; then
10363 # If we can't find a local tclsh, then building the amalgamation will fail.
10364 # We act as though --disable-amalgamation has been used.
10365 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10366 USE_AMALGAMATION=0
10367 TCLSH_CMD="tclsh"
10368fi
mlcreechab1c47b2008-03-09 02:51:10 +000010369
10370
mlcreech5b0a9eb2008-03-09 01:38:09 +000010371
vapier6acb2cf2009-01-28 04:46:28 +000010372if test "x${TCLLIBDIR+set}" != "xset" ; then
10373 TCLLIBDIR='$(libdir)'
10374 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10375 TCLLIBDIR=$i
10376 break
10377 done
10378 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10379fi
10380
10381
mlcreech5b0a9eb2008-03-09 01:38:09 +000010382#########
drh75897232000-05-29 14:26:00 +000010383# Set up an appropriate program prefix
10384#
10385if test "$program_prefix" = "NONE"; then
10386 program_prefix=""
10387fi
10388
a.rottmann84e63352003-03-24 09:42:16 +000010389
drh4b2266a2004-11-27 15:52:16 +000010390VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
dana9f39fd2011-08-12 16:34:42 +000010391{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010392$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010393
10394RELEASE=`cat $srcdir/VERSION`
dana9f39fd2011-08-12 16:34:42 +000010395{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010396$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010397
vapier6acb2cf2009-01-28 04:46:28 +000010398VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010399 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010400 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
dana9f39fd2011-08-12 16:34:42 +000010401{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010402$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010403
drh26d0e2a2005-07-06 13:51:27 +000010404
drh75897232000-05-29 14:26:00 +000010405#########
10406# Check to see if the --with-hints=FILE option is used. If there is none,
10407# then check for a files named "$host.hints" and ../$hosts.hints where
10408# $host is the hostname of the build system. If still no hints are
10409# found, try looking in $system.hints and ../$system.hints where
10410# $system is the result of uname -s.
10411#
drh71eb93e2001-09-28 01:34:43 +000010412
drh8b727472009-01-19 18:18:40 +000010413# Check whether --with-hints was given.
dana9f39fd2011-08-12 16:34:42 +000010414if test "${with_hints+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010415 withval=$with_hints; hints=$withval
10416fi
10417
drh75897232000-05-29 14:26:00 +000010418if test "$hints" = ""; then
10419 host=`hostname | sed 's/\..*//'`
10420 if test -r $host.hints; then
10421 hints=$host.hints
10422 else
10423 if test -r ../$host.hints; then
10424 hints=../$host.hints
10425 fi
10426 fi
10427fi
10428if test "$hints" = ""; then
10429 sys=`uname -s`
10430 if test -r $sys.hints; then
10431 hints=$sys.hints
10432 else
10433 if test -r ../$sys.hints; then
10434 hints=../$sys.hints
10435 fi
10436 fi
10437fi
10438if test "$hints" != ""; then
dana9f39fd2011-08-12 16:34:42 +000010439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reading hints from $hints" >&5
drh8b727472009-01-19 18:18:40 +000010440$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000010441 . $hints
10442fi
10443
10444#########
10445# Locate a compiler for the build machine. This compiler should
10446# generate command-line programs that run on the build machine.
10447#
vapier7f19c022007-02-17 14:46:31 +000010448if test x"$cross_compiling" = xno; then
10449 BUILD_CC=$CC
10450 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010451else
vapier7f19c022007-02-17 14:46:31 +000010452 if test "${BUILD_CC+set}" != set; then
10453 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010454do
10455 # Extract the first word of "$ac_prog", so it can be a program name with args.
10456set dummy $ac_prog; ac_word=$2
dana9f39fd2011-08-12 16:34:42 +000010457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010458$as_echo_n "checking for $ac_word... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010459if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010460 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010461else
vapier7f19c022007-02-17 14:46:31 +000010462 if test -n "$BUILD_CC"; then
10463 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010464else
a.rottmann84e63352003-03-24 09:42:16 +000010465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466for as_dir in $PATH
10467do
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000010470 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
vapier7f19c022007-02-17 14:46:31 +000010472 ac_cv_prog_BUILD_CC="$ac_prog"
dana9f39fd2011-08-12 16:34:42 +000010473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010474 break 2
10475 fi
10476done
dana9f39fd2011-08-12 16:34:42 +000010477 done
drh8b727472009-01-19 18:18:40 +000010478IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010479
drh71eb93e2001-09-28 01:34:43 +000010480fi
10481fi
vapier7f19c022007-02-17 14:46:31 +000010482BUILD_CC=$ac_cv_prog_BUILD_CC
10483if test -n "$BUILD_CC"; then
dana9f39fd2011-08-12 16:34:42 +000010484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010485$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010486else
dana9f39fd2011-08-12 16:34:42 +000010487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010488$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010489fi
drh75897232000-05-29 14:26:00 +000010490
drh8b727472009-01-19 18:18:40 +000010491
vapier7f19c022007-02-17 14:46:31 +000010492 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010493done
drh75897232000-05-29 14:26:00 +000010494
vapier7f19c022007-02-17 14:46:31 +000010495 fi
10496 if test "${BUILD_CFLAGS+set}" != set; then
10497 BUILD_CFLAGS="-g"
10498 fi
drh71eb93e2001-09-28 01:34:43 +000010499fi
10500
a.rottmann84e63352003-03-24 09:42:16 +000010501
drh297ecf12001-04-05 15:57:13 +000010502##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010503# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010504#
drh8b727472009-01-19 18:18:40 +000010505# Check whether --enable-threadsafe was given.
dana9f39fd2011-08-12 16:34:42 +000010506if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010507 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010508else
drh5a3032b2007-09-03 16:12:09 +000010509 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010510fi
10511
dana9f39fd2011-08-12 16:34:42 +000010512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010513$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010514if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010515 SQLITE_THREADSAFE=0
dana9f39fd2011-08-12 16:34:42 +000010516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010517$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010518else
drh5a3032b2007-09-03 16:12:09 +000010519 SQLITE_THREADSAFE=1
dana9f39fd2011-08-12 16:34:42 +000010520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010521$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010522fi
10523
a.rottmann964dbb12004-02-26 19:47:42 +000010524
drh5a3032b2007-09-03 16:12:09 +000010525if test "$SQLITE_THREADSAFE" = "1"; then
dana9f39fd2011-08-12 16:34:42 +000010526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010527$as_echo_n "checking for library containing pthread_create... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010528if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010529 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010530else
mlcreechc658b0f2008-03-09 02:20:11 +000010531 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000010532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010533/* end confdefs.h. */
10534
drh8b727472009-01-19 18:18:40 +000010535/* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010538#ifdef __cplusplus
10539extern "C"
10540#endif
dougcurrie65623c72004-09-20 14:57:23 +000010541char pthread_create ();
10542int
10543main ()
10544{
drh8b727472009-01-19 18:18:40 +000010545return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010546 ;
10547 return 0;
10548}
10549_ACEOF
drh8b727472009-01-19 18:18:40 +000010550for ac_lib in '' pthread; do
10551 if test -z "$ac_lib"; then
10552 ac_res="none required"
10553 else
10554 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010556 fi
dana9f39fd2011-08-12 16:34:42 +000010557 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010558 ac_cv_search_pthread_create=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010559fi
dana9f39fd2011-08-12 16:34:42 +000010560rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext
drh6a8ab6d2011-11-09 01:53:25 +000010562 if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010563 break
drh866108f2008-05-13 00:57:21 +000010564fi
drh8b727472009-01-19 18:18:40 +000010565done
drh6a8ab6d2011-11-09 01:53:25 +000010566if ${ac_cv_search_pthread_create+:} false; then :
dana9f39fd2011-08-12 16:34:42 +000010567
drh8b727472009-01-19 18:18:40 +000010568else
10569 ac_cv_search_pthread_create=no
10570fi
10571rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010572LIBS=$ac_func_search_save_LIBS
10573fi
dana9f39fd2011-08-12 16:34:42 +000010574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010575$as_echo "$ac_cv_search_pthread_create" >&6; }
10576ac_res=$ac_cv_search_pthread_create
dana9f39fd2011-08-12 16:34:42 +000010577if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010579
dougcurrie65623c72004-09-20 14:57:23 +000010580fi
10581
mlcreechc658b0f2008-03-09 02:20:11 +000010582fi
dougcurrie65623c72004-09-20 14:57:23 +000010583
xdong28f79f72003-09-23 00:35:21 +000010584##########
drh91636d52005-11-24 23:14:00 +000010585# Do we want to allow a connection created in one thread to be used
10586# in another thread. This does not work on many Linux systems (ex: RedHat 9)
10587# due to bugs in the threading implementations. This is thus off by default.
10588#
drh8b727472009-01-19 18:18:40 +000010589# Check whether --enable-cross-thread-connections was given.
dana9f39fd2011-08-12 16:34:42 +000010590if test "${enable_cross_thread_connections+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010591 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000010592else
10593 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000010594fi
10595
dana9f39fd2011-08-12 16:34:42 +000010596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
drh8b727472009-01-19 18:18:40 +000010597$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000010598if test "$enable_xthreadconnect" = "no"; then
10599 XTHREADCONNECT=''
dana9f39fd2011-08-12 16:34:42 +000010600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010601$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000010602else
10603 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
dana9f39fd2011-08-12 16:34:42 +000010604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010605$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000010606fi
10607
10608
10609##########
xdong28f79f72003-09-23 00:35:21 +000010610# Do we want to support release
10611#
drh8b727472009-01-19 18:18:40 +000010612# Check whether --enable-releasemode was given.
dana9f39fd2011-08-12 16:34:42 +000010613if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010614 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010615else
10616 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010617fi
10618
dana9f39fd2011-08-12 16:34:42 +000010619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000010620$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010621if test "$enable_releasemode" = "no"; then
10622 ALLOWRELEASE=""
dana9f39fd2011-08-12 16:34:42 +000010623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010624$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010625else
drh0b47d342007-11-27 14:50:06 +000010626 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
dana9f39fd2011-08-12 16:34:42 +000010627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010628$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010629fi
paulb0208cc2003-04-13 18:26:49 +000010630
a.rottmann964dbb12004-02-26 19:47:42 +000010631
paulb0208cc2003-04-13 18:26:49 +000010632##########
10633# Do we want temporary databases in memory
10634#
drh8b727472009-01-19 18:18:40 +000010635# Check whether --enable-tempstore was given.
dana9f39fd2011-08-12 16:34:42 +000010636if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010637 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010638else
drh54414bb2005-10-10 00:05:50 +000010639 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010640fi
10641
dana9f39fd2011-08-12 16:34:42 +000010642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000010643$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010644case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010645 never )
paul2dc96f92003-04-20 11:46:34 +000010646 TEMP_STORE=0
dana9f39fd2011-08-12 16:34:42 +000010647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010648$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010649 ;;
10650 no )
paul2dc96f92003-04-20 11:46:34 +000010651 TEMP_STORE=1
dana9f39fd2011-08-12 16:34:42 +000010652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010653$as_echo "no" >&6; }
10654 ;;
10655 yes )
10656 TEMP_STORE=2
dana9f39fd2011-08-12 16:34:42 +000010657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010658$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010659 ;;
10660 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010661 TEMP_STORE=3
dana9f39fd2011-08-12 16:34:42 +000010662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010663$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010664 ;;
paulb0208cc2003-04-13 18:26:49 +000010665 * )
drh54414bb2005-10-10 00:05:50 +000010666 TEMP_STORE=1
dana9f39fd2011-08-12 16:34:42 +000010667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010668$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010669 ;;
10670esac
10671
10672
10673
drh75897232000-05-29 14:26:00 +000010674###########
10675# Lots of things are different if we are compiling for Windows using
10676# the CYGWIN environment. So check for that special case and handle
10677# things accordingly.
10678#
dana9f39fd2011-08-12 16:34:42 +000010679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010680$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010681if test "$config_BUILD_EXEEXT" = ".exe"; then
10682 CYGWIN=yes
dana9f39fd2011-08-12 16:34:42 +000010683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010684$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010685else
dana9f39fd2011-08-12 16:34:42 +000010686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010687$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010688fi
10689if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010690
10691case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010692 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010693 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010694esac
drh75897232000-05-29 14:26:00 +000010695
drh75897232000-05-29 14:26:00 +000010696fi
10697if test "$CYGWIN" = "yes"; then
10698 BUILD_EXEEXT=.exe
10699else
dougcurrie6194a5f2003-12-19 20:09:51 +000010700 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010701fi
vapier7f19c022007-02-17 14:46:31 +000010702if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010703 TARGET_EXEEXT=$BUILD_EXEEXT
10704else
10705 TARGET_EXEEXT=$config_TARGET_EXEEXT
10706fi
10707if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000010708 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000010709 SQLITE_OS_UNIX=0
10710 SQLITE_OS_WIN=0
10711 SQLITE_OS_OS2=1
10712 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000010713 else
danielk197729bafea2008-06-26 10:41:19 +000010714 SQLITE_OS_UNIX=0
10715 SQLITE_OS_WIN=1
10716 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000010717 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000010718 fi
drh75897232000-05-29 14:26:00 +000010719else
danielk197729bafea2008-06-26 10:41:19 +000010720 SQLITE_OS_UNIX=1
10721 SQLITE_OS_WIN=0
10722 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000010723 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010724fi
drh75897232000-05-29 14:26:00 +000010725
a.rottmann84e63352003-03-24 09:42:16 +000010726
10727
10728
10729
10730
drh75897232000-05-29 14:26:00 +000010731
drh75897232000-05-29 14:26:00 +000010732##########
drh7b5717e2004-11-25 13:50:01 +000010733# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010734#
drh7b5717e2004-11-25 13:50:01 +000010735# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10736# macros in the in the tcl.m4 file of the standard TCL distribution.
10737# Those macros could not be used directly since we have to make some
10738# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010739#
drh8b727472009-01-19 18:18:40 +000010740# Check whether --enable-tcl was given.
dana9f39fd2011-08-12 16:34:42 +000010741if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010742 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010743else
drh7b5717e2004-11-25 13:50:01 +000010744 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010745fi
10746
drh7b5717e2004-11-25 13:50:01 +000010747if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010748
drh8b727472009-01-19 18:18:40 +000010749# Check whether --with-tcl was given.
dana9f39fd2011-08-12 16:34:42 +000010750if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010751 withval=$with_tcl; with_tclconfig=${withval}
10752fi
10753
dana9f39fd2011-08-12 16:34:42 +000010754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010755$as_echo_n "checking for Tcl configuration... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010756 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010757 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010758else
a.rottmann84e63352003-03-24 09:42:16 +000010759
drh7b5717e2004-11-25 13:50:01 +000010760 # First check to see if --with-tcl was specified.
10761 if test x"${with_tclconfig}" != x ; then
10762 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10763 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10764 else
drh0fe0c462011-09-22 00:56:38 +000010765 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010766 fi
10767 fi
vapier6acb2cf2009-01-28 04:46:28 +000010768
10769 # Start autosearch by asking tclsh
10770 if test x"$cross_compiling" = xno; then
10771 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10772 do
10773 if test -f "$i/tclConfig.sh" ; then
10774 ac_cv_c_tclconfig="$i"
10775 break
10776 fi
10777 done
10778 fi
10779
drh7b5717e2004-11-25 13:50:01 +000010780 # then check for a private Tcl installation
10781 if test x"${ac_cv_c_tclconfig}" = x ; then
10782 for i in \
10783 ../tcl \
10784 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10785 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10786 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10787 ../../tcl \
10788 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10789 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10790 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10791 ../../../tcl \
10792 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10793 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10794 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10795 do
10796 if test -f "$i/unix/tclConfig.sh" ; then
10797 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10798 break
10799 fi
10800 done
10801 fi
10802
10803 # check in a few common install locations
10804 if test x"${ac_cv_c_tclconfig}" = x ; then
10805 for i in \
10806 `ls -d ${libdir} 2>/dev/null` \
10807 `ls -d /usr/local/lib 2>/dev/null` \
10808 `ls -d /usr/contrib/lib 2>/dev/null` \
10809 `ls -d /usr/lib 2>/dev/null`
10810 do
10811 if test -f "$i/tclConfig.sh" ; then
10812 ac_cv_c_tclconfig=`(cd $i; pwd)`
10813 break
10814 fi
10815 done
10816 fi
10817
10818 # check in a few other private locations
10819 if test x"${ac_cv_c_tclconfig}" = x ; then
10820 for i in \
10821 ${srcdir}/../tcl \
10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10825 do
10826 if test -f "$i/unix/tclConfig.sh" ; then
10827 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10828 break
10829 fi
10830 done
10831 fi
10832
drh75897232000-05-29 14:26:00 +000010833fi
10834
drh7b5717e2004-11-25 13:50:01 +000010835
10836 if test x"${ac_cv_c_tclconfig}" = x ; then
10837 use_tcl=no
dana9f39fd2011-08-12 16:34:42 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
dana9f39fd2011-08-12 16:34:42 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
dana9f39fd2011-08-12 16:34:42 +000010842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010843$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010844 else
10845 TCL_BIN_DIR=${ac_cv_c_tclconfig}
dana9f39fd2011-08-12 16:34:42 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010847$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010848
dana9f39fd2011-08-12 16:34:42 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010850$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010851 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
dana9f39fd2011-08-12 16:34:42 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010853$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010854 . $TCL_BIN_DIR/tclConfig.sh
10855 else
dana9f39fd2011-08-12 16:34:42 +000010856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010857$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010858 fi
drh7b5717e2004-11-25 13:50:01 +000010859
10860 #
10861 # If the TCL_BIN_DIR is the build directory (not the install directory),
10862 # then set the common variable name to the value of the build variables.
10863 # For example, the variable TCL_LIB_SPEC will be set to the value
10864 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10865 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10866 # installed and uninstalled version of Tcl.
10867 #
10868
mlcreechab1c47b2008-03-09 02:51:10 +000010869 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010870 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10871 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10872 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10873 fi
10874
10875 #
10876 # eval is required to do the TCL_DBGX substitution
10877 #
10878
10879 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10880 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10881 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10882
10883 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10884 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10885 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900 fi
drh75897232000-05-29 14:26:00 +000010901fi
drh7b5717e2004-11-25 13:50:01 +000010902if test "${use_tcl}" = "no" ; then
10903 HAVE_TCL=""
10904else
10905 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010906fi
drh75897232000-05-29 14:26:00 +000010907
a.rottmann84e63352003-03-24 09:42:16 +000010908
drh75897232000-05-29 14:26:00 +000010909##########
10910# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010911# that use "readline()" library.
10912#
vapier7f19c022007-02-17 14:46:31 +000010913TARGET_READLINE_LIBS=""
10914TARGET_READLINE_INC=""
10915TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000010916# Check whether --enable-readline was given.
dana9f39fd2011-08-12 16:34:42 +000010917if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010918 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010919else
vapier7f19c022007-02-17 14:46:31 +000010920 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010921fi
10922
vapier7f19c022007-02-17 14:46:31 +000010923
10924if test x"$with_readline" != xno; then
10925 found="yes"
10926
10927
drh8b727472009-01-19 18:18:40 +000010928# Check whether --with-readline-lib was given.
dana9f39fd2011-08-12 16:34:42 +000010929if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010930 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010931else
10932 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010933fi
10934
vapier7f19c022007-02-17 14:46:31 +000010935 if test "x$with_readline_lib" = xauto; then
10936 save_LIBS="$LIBS"
10937 LIBS=""
dana9f39fd2011-08-12 16:34:42 +000010938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010939$as_echo_n "checking for library containing tgetent... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010940if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010941 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010942else
drh71eb93e2001-09-28 01:34:43 +000010943 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000010944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010945/* end confdefs.h. */
10946
drh8b727472009-01-19 18:18:40 +000010947/* Override any GCC internal prototype to avoid an error.
10948 Use char because int might match the return type of a GCC
10949 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000010950#ifdef __cplusplus
10951extern "C"
10952#endif
paul38372372003-04-22 08:04:49 +000010953char tgetent ();
10954int
10955main ()
10956{
drh8b727472009-01-19 18:18:40 +000010957return tgetent ();
paul38372372003-04-22 08:04:49 +000010958 ;
10959 return 0;
10960}
10961_ACEOF
drh8b727472009-01-19 18:18:40 +000010962for ac_lib in '' readline ncurses curses termcap; do
10963 if test -z "$ac_lib"; then
10964 ac_res="none required"
10965 else
10966 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010968 fi
dana9f39fd2011-08-12 16:34:42 +000010969 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010970 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000010971fi
dana9f39fd2011-08-12 16:34:42 +000010972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext
drh6a8ab6d2011-11-09 01:53:25 +000010974 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010975 break
drh866108f2008-05-13 00:57:21 +000010976fi
drh8b727472009-01-19 18:18:40 +000010977done
drh6a8ab6d2011-11-09 01:53:25 +000010978if ${ac_cv_search_tgetent+:} false; then :
dana9f39fd2011-08-12 16:34:42 +000010979
drh8b727472009-01-19 18:18:40 +000010980else
10981 ac_cv_search_tgetent=no
10982fi
10983rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010984LIBS=$ac_func_search_save_LIBS
10985fi
dana9f39fd2011-08-12 16:34:42 +000010986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010987$as_echo "$ac_cv_search_tgetent" >&6; }
10988ac_res=$ac_cv_search_tgetent
dana9f39fd2011-08-12 16:34:42 +000010989if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000010991 term_LIBS="$LIBS"
10992else
10993 term_LIBS=""
paul38372372003-04-22 08:04:49 +000010994fi
10995
dana9f39fd2011-08-12 16:34:42 +000010996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000010997$as_echo_n "checking for readline in -lreadline... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000010998if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000010999 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011000else
11001 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-lreadline $LIBS"
dana9f39fd2011-08-12 16:34:42 +000011003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011004/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011005
drh8b727472009-01-19 18:18:40 +000011006/* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011009#ifdef __cplusplus
11010extern "C"
11011#endif
drh71eb93e2001-09-28 01:34:43 +000011012char readline ();
11013int
11014main ()
11015{
drh8b727472009-01-19 18:18:40 +000011016return readline ();
drh71eb93e2001-09-28 01:34:43 +000011017 ;
11018 return 0;
11019}
11020_ACEOF
dana9f39fd2011-08-12 16:34:42 +000011021if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011022 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011023else
dana9f39fd2011-08-12 16:34:42 +000011024 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011025fi
dana9f39fd2011-08-12 16:34:42 +000011026rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011028LIBS=$ac_check_lib_save_LIBS
11029fi
dana9f39fd2011-08-12 16:34:42 +000011030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011031$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000011032if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011033 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011034else
vapier7f19c022007-02-17 14:46:31 +000011035 found="no"
11036fi
drhf1878b42006-01-23 18:06:52 +000011037
vapier7f19c022007-02-17 14:46:31 +000011038 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11039 LIBS="$save_LIBS"
11040 else
11041 TARGET_READLINE_LIBS="$with_readline_lib"
11042 fi
11043
11044
drh8b727472009-01-19 18:18:40 +000011045# Check whether --with-readline-inc was given.
dana9f39fd2011-08-12 16:34:42 +000011046if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011047 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011048else
vapier7f19c022007-02-17 14:46:31 +000011049 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011050fi
11051
vapier7f19c022007-02-17 14:46:31 +000011052 if test "x$with_readline_inc" = xauto; then
dana9f39fd2011-08-12 16:34:42 +000011053 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
drh6a8ab6d2011-11-09 01:53:25 +000011054if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011055 found="yes"
11056else
drh75897232000-05-29 14:26:00 +000011057
vapier7f19c022007-02-17 14:46:31 +000011058 found="no"
11059 if test "$cross_compiling" != yes; then
11060 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11061 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011062 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
dana9f39fd2011-08-12 16:34:42 +000011063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011064$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000011065if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011066 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011067else
11068 test "$cross_compiling" = yes &&
drh0fe0c462011-09-22 00:56:38 +000011069 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011070if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011071 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011072else
drh71eb93e2001-09-28 01:34:43 +000011073 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011074fi
11075fi
dana9f39fd2011-08-12 16:34:42 +000011076eval ac_res=\$$as_ac_File
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011078$as_echo "$ac_res" >&6; }
drh0fe0c462011-09-22 00:56:38 +000011079if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011080 found=yes
drh75897232000-05-29 14:26:00 +000011081fi
11082
vapier7f19c022007-02-17 14:46:31 +000011083 if test "$found" = "yes"; then
11084 TARGET_READLINE_INC="-I$dir/$subdir"
11085 break
11086 fi
11087 done
11088 test "$found" = "yes" && break
11089 done
11090 fi
11091
11092fi
11093
11094
11095 else
11096 TARGET_READLINE_INC="$with_readline_inc"
11097 fi
11098
11099 if test x"$found" = xno; then
11100 TARGET_READLINE_LIBS=""
11101 TARGET_READLINE_INC=""
11102 TARGET_HAVE_READLINE=0
11103 else
11104 TARGET_HAVE_READLINE=1
11105 fi
11106fi
11107
11108
11109
11110
11111
11112##########
11113# Figure out what C libraries are required to compile programs
11114# that use "fdatasync()" function.
11115#
dana9f39fd2011-08-12 16:34:42 +000011116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011117$as_echo_n "checking for library containing fdatasync... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000011118if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011119 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011120else
vapier7f19c022007-02-17 14:46:31 +000011121 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000011122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011123/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011124
drh8b727472009-01-19 18:18:40 +000011125/* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011128#ifdef __cplusplus
11129extern "C"
11130#endif
11131char fdatasync ();
11132int
11133main ()
11134{
drh8b727472009-01-19 18:18:40 +000011135return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011136 ;
11137 return 0;
11138}
11139_ACEOF
drh8b727472009-01-19 18:18:40 +000011140for ac_lib in '' rt; do
11141 if test -z "$ac_lib"; then
11142 ac_res="none required"
11143 else
11144 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011146 fi
dana9f39fd2011-08-12 16:34:42 +000011147 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011148 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011149fi
dana9f39fd2011-08-12 16:34:42 +000011150rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext
drh6a8ab6d2011-11-09 01:53:25 +000011152 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011153 break
drh866108f2008-05-13 00:57:21 +000011154fi
drh8b727472009-01-19 18:18:40 +000011155done
drh6a8ab6d2011-11-09 01:53:25 +000011156if ${ac_cv_search_fdatasync+:} false; then :
dana9f39fd2011-08-12 16:34:42 +000011157
drh8b727472009-01-19 18:18:40 +000011158else
11159 ac_cv_search_fdatasync=no
11160fi
11161rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011162LIBS=$ac_func_search_save_LIBS
11163fi
dana9f39fd2011-08-12 16:34:42 +000011164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011165$as_echo "$ac_cv_search_fdatasync" >&6; }
11166ac_res=$ac_cv_search_fdatasync
dana9f39fd2011-08-12 16:34:42 +000011167if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011169
vapier7f19c022007-02-17 14:46:31 +000011170fi
11171
a.rottmann84e63352003-03-24 09:42:16 +000011172
drh75897232000-05-29 14:26:00 +000011173#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011174# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011175# Check whether --enable-debug was given.
dana9f39fd2011-08-12 16:34:42 +000011176if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011177 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011178else
11179 use_debug=no
drh8b727472009-01-19 18:18:40 +000011180fi
11181
tpoindex9d9f76c2005-01-03 21:28:56 +000011182if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011183 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011184else
11185 TARGET_DEBUG="-DNDEBUG"
11186fi
11187
11188
11189#########
mlcreech94984912008-03-04 19:03:08 +000011190# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011191# Check whether --enable-amalgamation was given.
dana9f39fd2011-08-12 16:34:42 +000011192if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011193 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011194else
11195 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011196fi
11197
mlcreechf3868112008-03-11 18:03:30 +000011198if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011199 USE_AMALGAMATION=0
11200fi
11201
11202
11203#########
mlcreecha4edab02008-03-06 04:14:17 +000011204# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011205# Check whether --enable-load-extension was given.
dana9f39fd2011-08-12 16:34:42 +000011206if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011207 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011208else
11209 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000011210fi
11211
mlcreecha4edab02008-03-06 04:14:17 +000011212if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011213 OPT_FEATURE_FLAGS=""
dana9f39fd2011-08-12 16:34:42 +000011214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011215$as_echo_n "checking for library containing dlopen... " >&6; }
drh6a8ab6d2011-11-09 01:53:25 +000011216if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011217 $as_echo_n "(cached) " >&6
11218else
11219 ac_func_search_save_LIBS=$LIBS
dana9f39fd2011-08-12 16:34:42 +000011220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011221/* end confdefs.h. */
11222
11223/* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226#ifdef __cplusplus
11227extern "C"
11228#endif
11229char dlopen ();
11230int
11231main ()
11232{
11233return dlopen ();
11234 ;
11235 return 0;
11236}
11237_ACEOF
11238for ac_lib in '' dl; do
11239 if test -z "$ac_lib"; then
11240 ac_res="none required"
11241 else
11242 ac_res=-l$ac_lib
11243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11244 fi
dana9f39fd2011-08-12 16:34:42 +000011245 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011246 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011247fi
dana9f39fd2011-08-12 16:34:42 +000011248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext
drh6a8ab6d2011-11-09 01:53:25 +000011250 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011251 break
11252fi
11253done
drh6a8ab6d2011-11-09 01:53:25 +000011254if ${ac_cv_search_dlopen+:} false; then :
dana9f39fd2011-08-12 16:34:42 +000011255
drhdbe4b882011-06-20 18:00:17 +000011256else
11257 ac_cv_search_dlopen=no
11258fi
11259rm conftest.$ac_ext
11260LIBS=$ac_func_search_save_LIBS
11261fi
dana9f39fd2011-08-12 16:34:42 +000011262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011263$as_echo "$ac_cv_search_dlopen" >&6; }
11264ac_res=$ac_cv_search_dlopen
dana9f39fd2011-08-12 16:34:42 +000011265if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11267
11268fi
11269
mlcreecha4edab02008-03-06 04:14:17 +000011270else
shanefbedede2008-07-22 05:05:01 +000011271 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011272fi
11273
mlcreechaac7b932008-04-01 02:45:22 +000011274#########
shaneb1cd7302008-10-22 18:27:31 +000011275# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011276for option in $CFLAGS $CPPFLAGS
11277do
11278 case $option in
danielk197733a14782008-08-04 14:50:05 +000011279 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011280 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011281 esac
11282done
11283
11284
danielk197733a14782008-08-04 14:50:05 +000011285
shaneb1cd7302008-10-22 18:27:31 +000011286# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011287ac_temp_CFLAGS=""
11288for option in $CFLAGS
11289do
11290 case $option in
11291 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011292 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011293 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011294 esac
11295done
11296CFLAGS=$ac_temp_CFLAGS
11297
11298
shaneb1cd7302008-10-22 18:27:31 +000011299# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011300ac_temp_CPPFLAGS=""
11301for option in $CPPFLAGS
11302do
11303 case $option in
11304 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011305 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011306 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011307 esac
11308done
11309CPPFLAGS=$ac_temp_CPPFLAGS
11310
danielk197733a14782008-08-04 14:50:05 +000011311
drh8b727472009-01-19 18:18:40 +000011312# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011313ac_temp_BUILD_CFLAGS=""
11314for option in $BUILD_CFLAGS
11315do
11316 case $option in
11317 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011318 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011319 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011320 esac
11321done
11322BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11323
11324
11325#########
11326# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011327# Check whether --enable-gcov was given.
dana9f39fd2011-08-12 16:34:42 +000011328if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011329 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011330else
11331 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011332fi
11333
mlcreechaac7b932008-04-01 02:45:22 +000011334if test "${use_gcov}" = "yes" ; then
11335 USE_GCOV=1
11336else
11337 USE_GCOV=0
11338fi
11339
11340
danielk197733a14782008-08-04 14:50:05 +000011341
drh2dfbbca2000-07-28 14:32:48 +000011342#########
mlcreechb87057f2008-03-06 07:19:20 +000011343# Output the config header
drh8b727472009-01-19 18:18:40 +000011344ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011345
11346
11347#########
drh75897232000-05-29 14:26:00 +000011348# Generate the output files.
11349#
mlcreechdf59c7c2008-03-06 07:51:15 +000011350
drh8b727472009-01-19 18:18:40 +000011351ac_config_files="$ac_config_files Makefile sqlite3.pc"
11352
drh71eb93e2001-09-28 01:34:43 +000011353cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011354# This file is a shell script that caches the results of configure
11355# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011356# scripts and configure runs, see configure's option --config-cache.
11357# It is not useful on other systems. If it contains results you don't
11358# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011359#
drh71eb93e2001-09-28 01:34:43 +000011360# config.status only pays attention to the cache file if you give it
11361# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011362#
a.rottmann84e63352003-03-24 09:42:16 +000011363# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011364# loading this file, other *unset* `ac_cv_foo' will be assigned the
11365# following values.
11366
11367_ACEOF
11368
drh75897232000-05-29 14:26:00 +000011369# The following way of writing the cache mishandles newlines in values,
11370# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011371# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011372# Ultrix sh set writes to stderr and can't be redirected directly,
11373# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011374(
11375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11376 eval ac_val=\$$ac_var
11377 case $ac_val in #(
11378 *${as_nl}*)
11379 case $ac_var in #(
dana9f39fd2011-08-12 16:34:42 +000011380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11381$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011382 esac
11383 case $ac_var in #(
11384 _ | IFS | as_nl) ;; #(
11385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dana9f39fd2011-08-12 16:34:42 +000011386 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011387 esac ;;
11388 esac
11389 done
11390
drh71eb93e2001-09-28 01:34:43 +000011391 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11393 *${as_nl}ac_space=\ *)
dana9f39fd2011-08-12 16:34:42 +000011394 # `set' does not quote correctly, so add quotes: double-quote
11395 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011396 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011397 "s/'/'\\\\''/g;
11398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011399 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011400 *)
11401 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011403 ;;
drh8b727472009-01-19 18:18:40 +000011404 esac |
11405 sort
11406) |
drh71eb93e2001-09-28 01:34:43 +000011407 sed '
drh8b727472009-01-19 18:18:40 +000011408 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011409 t clear
drh8b727472009-01-19 18:18:40 +000011410 :clear
drh71eb93e2001-09-28 01:34:43 +000011411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11412 t end
drh8b727472009-01-19 18:18:40 +000011413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11414 :end' >>confcache
11415if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11416 if test -w "$cache_file"; then
drh6a8ab6d2011-11-09 01:53:25 +000011417 if test "x$cache_file" != "x/dev/null"; then
dana9f39fd2011-08-12 16:34:42 +000011418 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011419$as_echo "$as_me: updating cache $cache_file" >&6;}
drh6a8ab6d2011-11-09 01:53:25 +000011420 if test ! -f "$cache_file" || test -h "$cache_file"; then
11421 cat confcache >"$cache_file"
11422 else
11423 case $cache_file in #(
11424 */* | ?:*)
11425 mv -f confcache "$cache_file"$$ &&
11426 mv -f "$cache_file"$$ "$cache_file" ;; #(
11427 *)
11428 mv -f confcache "$cache_file" ;;
11429 esac
11430 fi
11431 fi
drh75897232000-05-29 14:26:00 +000011432 else
dana9f39fd2011-08-12 16:34:42 +000011433 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011434$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011435 fi
11436fi
11437rm -f confcache
11438
drh75897232000-05-29 14:26:00 +000011439test "x$prefix" = xNONE && prefix=$ac_default_prefix
11440# Let make expand exec_prefix.
11441test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11442
mlcreechb87057f2008-03-06 07:19:20 +000011443DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011444
11445ac_libobjs=
11446ac_ltlibobjs=
drh0fe0c462011-09-22 00:56:38 +000011447U=
a.rottmann84e63352003-03-24 09:42:16 +000011448for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11449 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11451 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11453 # will be set to the directory where LIBOBJS objects are built.
dana9f39fd2011-08-12 16:34:42 +000011454 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11455 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011456done
11457LIBOBJS=$ac_libobjs
11458
11459LTLIBOBJS=$ac_ltlibobjs
11460
11461
11462
drh6a8ab6d2011-11-09 01:53:25 +000011463: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011464ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011465ac_clean_files_save=$ac_clean_files
11466ac_clean_files="$ac_clean_files $CONFIG_STATUS"
dana9f39fd2011-08-12 16:34:42 +000011467{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011468$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
dana9f39fd2011-08-12 16:34:42 +000011469as_write_fail=0
11470cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011471#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011472# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011473# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011474# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011475# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011476
drh71eb93e2001-09-28 01:34:43 +000011477debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011478ac_cs_recheck=false
11479ac_cs_silent=false
drh75897232000-05-29 14:26:00 +000011480
dana9f39fd2011-08-12 16:34:42 +000011481SHELL=\${CONFIG_SHELL-$SHELL}
11482export SHELL
11483_ASEOF
11484cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11485## -------------------- ##
11486## M4sh Initialization. ##
11487## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011488
drh8b727472009-01-19 18:18:40 +000011489# Be more Bourne compatible
11490DUALCASE=1; export DUALCASE # for MKS sh
dana9f39fd2011-08-12 16:34:42 +000011491if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011492 emulate sh
11493 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011494 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011495 # is contrary to our usage. Disable this feature.
11496 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011497 setopt NO_GLOB_SUBST
11498else
dana9f39fd2011-08-12 16:34:42 +000011499 case `(set -o) 2>/dev/null` in #(
11500 *posix*) :
11501 set -o posix ;; #(
11502 *) :
11503 ;;
drh8b727472009-01-19 18:18:40 +000011504esac
a.rottmann84e63352003-03-24 09:42:16 +000011505fi
drh8b727472009-01-19 18:18:40 +000011506
11507
drh8b727472009-01-19 18:18:40 +000011508as_nl='
11509'
11510export as_nl
11511# Printing a long string crashes Solaris 7 /usr/bin/printf.
11512as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11513as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11514as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
dana9f39fd2011-08-12 16:34:42 +000011515# Prefer a ksh shell builtin over an external printf program on Solaris,
11516# but without wasting forks for bash or zsh.
11517if test -z "$BASH_VERSION$ZSH_VERSION" \
11518 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11519 as_echo='print -r --'
11520 as_echo_n='print -rn --'
11521elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011522 as_echo='printf %s\n'
11523 as_echo_n='printf %s'
11524else
11525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11526 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11527 as_echo_n='/usr/ucb/echo -n'
11528 else
11529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11530 as_echo_n_body='eval
11531 arg=$1;
dana9f39fd2011-08-12 16:34:42 +000011532 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011533 *"$as_nl"*)
11534 expr "X$arg" : "X\\(.*\\)$as_nl";
11535 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11536 esac;
11537 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11538 '
11539 export as_echo_n_body
11540 as_echo_n='sh -c $as_echo_n_body as_echo'
11541 fi
11542 export as_echo_body
11543 as_echo='sh -c $as_echo_body as_echo'
11544fi
11545
11546# The user is always right.
11547if test "${PATH_SEPARATOR+set}" != set; then
11548 PATH_SEPARATOR=:
11549 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11550 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11551 PATH_SEPARATOR=';'
11552 }
11553fi
a.rottmann84e63352003-03-24 09:42:16 +000011554
mlcreech94984912008-03-04 19:03:08 +000011555
drh8b727472009-01-19 18:18:40 +000011556# IFS
11557# We need space, tab and new line, in precisely that order. Quoting is
11558# there to prevent editors from complaining about space-tab.
11559# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11560# splitting by setting IFS to empty value.)
11561IFS=" "" $as_nl"
11562
11563# Find who we are. Look in the path if we contain no directory separator.
drh6a8ab6d2011-11-09 01:53:25 +000011564as_myself=
dana9f39fd2011-08-12 16:34:42 +000011565case $0 in #((
drh8b727472009-01-19 18:18:40 +000011566 *[\\/]* ) as_myself=$0 ;;
11567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568for as_dir in $PATH
11569do
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
dana9f39fd2011-08-12 16:34:42 +000011572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11573 done
drh8b727472009-01-19 18:18:40 +000011574IFS=$as_save_IFS
11575
11576 ;;
11577esac
11578# We did not find ourselves, most probably we were run as `sh COMMAND'
11579# in which case we are not to be found in the path.
11580if test "x$as_myself" = x; then
11581 as_myself=$0
11582fi
11583if test ! -f "$as_myself"; then
11584 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dana9f39fd2011-08-12 16:34:42 +000011585 exit 1
drh8b727472009-01-19 18:18:40 +000011586fi
11587
dana9f39fd2011-08-12 16:34:42 +000011588# Unset variables that we do not need and which cause bugs (e.g. in
11589# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11590# suppresses any "Segmentation fault" message there. '((' could
11591# trigger a bug in pdksh 5.2.14.
11592for as_var in BASH_ENV ENV MAIL MAILPATH
11593do eval test x\${$as_var+set} = xset \
11594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011595done
mlcreech94984912008-03-04 19:03:08 +000011596PS1='$ '
11597PS2='> '
11598PS4='+ '
11599
11600# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011601LC_ALL=C
11602export LC_ALL
11603LANGUAGE=C
11604export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011605
dana9f39fd2011-08-12 16:34:42 +000011606# CDPATH.
11607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11608
11609
drh0fe0c462011-09-22 00:56:38 +000011610# as_fn_error STATUS ERROR [LINENO LOG_FD]
11611# ----------------------------------------
dana9f39fd2011-08-12 16:34:42 +000011612# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11613# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
drh0fe0c462011-09-22 00:56:38 +000011614# script with STATUS, using 1 if that was 0.
dana9f39fd2011-08-12 16:34:42 +000011615as_fn_error ()
11616{
drh0fe0c462011-09-22 00:56:38 +000011617 as_status=$1; test $as_status -eq 0 && as_status=1
11618 if test "$4"; then
11619 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
dana9f39fd2011-08-12 16:34:42 +000011621 fi
drh0fe0c462011-09-22 00:56:38 +000011622 $as_echo "$as_me: error: $2" >&2
dana9f39fd2011-08-12 16:34:42 +000011623 as_fn_exit $as_status
11624} # as_fn_error
11625
11626
11627# as_fn_set_status STATUS
11628# -----------------------
11629# Set $? to STATUS, without forking.
11630as_fn_set_status ()
11631{
11632 return $1
11633} # as_fn_set_status
11634
11635# as_fn_exit STATUS
11636# -----------------
11637# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11638as_fn_exit ()
11639{
11640 set +e
11641 as_fn_set_status $1
11642 exit $1
11643} # as_fn_exit
11644
11645# as_fn_unset VAR
11646# ---------------
11647# Portably unset VAR.
11648as_fn_unset ()
11649{
11650 { eval $1=; unset $1;}
11651}
11652as_unset=as_fn_unset
11653# as_fn_append VAR VALUE
11654# ----------------------
11655# Append the text in VALUE to the end of the definition contained in VAR. Take
11656# advantage of any shell optimizations that allow amortized linear growth over
11657# repeated appends, instead of the typical quadratic growth present in naive
11658# implementations.
11659if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11660 eval 'as_fn_append ()
11661 {
11662 eval $1+=\$2
11663 }'
11664else
11665 as_fn_append ()
11666 {
11667 eval $1=\$$1\$2
11668 }
11669fi # as_fn_append
11670
11671# as_fn_arith ARG...
11672# ------------------
11673# Perform arithmetic evaluation on the ARGs, and store the result in the
11674# global $as_val. Take advantage of shells that can avoid forks. The arguments
11675# must be portable across $(()) and expr.
11676if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11677 eval 'as_fn_arith ()
11678 {
11679 as_val=$(( $* ))
11680 }'
11681else
11682 as_fn_arith ()
11683 {
11684 as_val=`expr "$@" || test $? -eq 1`
11685 }
11686fi # as_fn_arith
11687
11688
drh8b727472009-01-19 18:18:40 +000011689if expr a : '\(a\)' >/dev/null 2>&1 &&
11690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011691 as_expr=expr
11692else
11693 as_expr=false
11694fi
11695
drh8b727472009-01-19 18:18:40 +000011696if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011697 as_basename=basename
11698else
11699 as_basename=false
11700fi
11701
dana9f39fd2011-08-12 16:34:42 +000011702if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11703 as_dirname=dirname
11704else
11705 as_dirname=false
11706fi
mlcreech94984912008-03-04 19:03:08 +000011707
drh8b727472009-01-19 18:18:40 +000011708as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011709$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11710 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11712$as_echo X/"$0" |
11713 sed '/^.*\/\([^/][^/]*\)\/*$/{
11714 s//\1/
11715 q
11716 }
11717 /^X\/\(\/\/\)$/{
11718 s//\1/
11719 q
11720 }
11721 /^X\/\(\/\).*/{
11722 s//\1/
11723 q
11724 }
11725 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011726
dana9f39fd2011-08-12 16:34:42 +000011727# Avoid depending upon Character Ranges.
11728as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11730as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11731as_cr_digits='0123456789'
11732as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011733
drh8b727472009-01-19 18:18:40 +000011734ECHO_C= ECHO_N= ECHO_T=
dana9f39fd2011-08-12 16:34:42 +000011735case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011736-n*)
dana9f39fd2011-08-12 16:34:42 +000011737 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011738 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
dana9f39fd2011-08-12 16:34:42 +000011739 xy) ECHO_C='\c';;
11740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11741 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011742 esac;;
11743*)
11744 ECHO_N='-n';;
11745esac
drh71eb93e2001-09-28 01:34:43 +000011746
11747rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011748if test -d conf$$.dir; then
11749 rm -f conf$$.dir/conf$$.file
11750else
11751 rm -f conf$$.dir
11752 mkdir conf$$.dir 2>/dev/null
11753fi
11754if (echo >conf$$.file) 2>/dev/null; then
11755 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011756 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011757 # ... but there are two gotchas:
11758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11760 # In both cases, we have to default to `cp -p'.
11761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11762 as_ln_s='cp -p'
11763 elif ln conf$$.file conf$$ 2>/dev/null; then
11764 as_ln_s=ln
11765 else
11766 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000011767 fi
drh71eb93e2001-09-28 01:34:43 +000011768else
11769 as_ln_s='cp -p'
11770fi
drh8b727472009-01-19 18:18:40 +000011771rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11772rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011773
dana9f39fd2011-08-12 16:34:42 +000011774
11775# as_fn_mkdir_p
11776# -------------
11777# Create "$as_dir" as a directory, including parents if necessary.
11778as_fn_mkdir_p ()
11779{
11780
11781 case $as_dir in #(
11782 -*) as_dir=./$as_dir;;
11783 esac
11784 test -d "$as_dir" || eval $as_mkdir_p || {
11785 as_dirs=
11786 while :; do
11787 case $as_dir in #(
11788 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11789 *) as_qdir=$as_dir;;
11790 esac
11791 as_dirs="'$as_qdir' $as_dirs"
11792 as_dir=`$as_dirname -- "$as_dir" ||
11793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11794 X"$as_dir" : 'X\(//\)[^/]' \| \
11795 X"$as_dir" : 'X\(//\)$' \| \
11796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11797$as_echo X"$as_dir" |
11798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11799 s//\1/
11800 q
11801 }
11802 /^X\(\/\/\)[^/].*/{
11803 s//\1/
11804 q
11805 }
11806 /^X\(\/\/\)$/{
11807 s//\1/
11808 q
11809 }
11810 /^X\(\/\).*/{
11811 s//\1/
11812 q
11813 }
11814 s/.*/./; q'`
11815 test -d "$as_dir" && break
11816 done
11817 test -z "$as_dirs" || eval "mkdir $as_dirs"
drh0fe0c462011-09-22 00:56:38 +000011818 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dana9f39fd2011-08-12 16:34:42 +000011819
11820
11821} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000011822if mkdir -p . 2>/dev/null; then
dana9f39fd2011-08-12 16:34:42 +000011823 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000011824else
a.rottmann964dbb12004-02-26 19:47:42 +000011825 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000011826 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000011827fi
11828
drh8b727472009-01-19 18:18:40 +000011829if test -x / >/dev/null 2>&1; then
11830 as_test_x='test -x'
11831else
11832 if ls -dL / >/dev/null 2>&1; then
11833 as_ls_L_option=L
11834 else
11835 as_ls_L_option=
11836 fi
11837 as_test_x='
11838 eval sh -c '\''
11839 if test -d "$1"; then
11840 test -d "$1/.";
11841 else
dana9f39fd2011-08-12 16:34:42 +000011842 case $1 in #(
drh8b727472009-01-19 18:18:40 +000011843 -*)set "./$1";;
11844 esac;
dana9f39fd2011-08-12 16:34:42 +000011845 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
drh8b727472009-01-19 18:18:40 +000011846 ???[sx]*):;;*)false;;esac;fi
11847 '\'' sh
11848 '
11849fi
11850as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000011851
11852# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000011853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011854
11855# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000011856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011857
drh71eb93e2001-09-28 01:34:43 +000011858
drh71eb93e2001-09-28 01:34:43 +000011859exec 6>&1
dana9f39fd2011-08-12 16:34:42 +000011860## ----------------------------------- ##
11861## Main body of $CONFIG_STATUS script. ##
11862## ----------------------------------- ##
11863_ASEOF
11864test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011865
dana9f39fd2011-08-12 16:34:42 +000011866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11867# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000011868# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000011869# values after options handling.
11870ac_log="
drh5c0c56b2011-11-25 21:51:03 +000011871This file was extended by sqlite $as_me 3.7.10, which was
drh6a8ab6d2011-11-09 01:53:25 +000011872generated by GNU Autoconf 2.68. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000011873
11874 CONFIG_FILES = $CONFIG_FILES
11875 CONFIG_HEADERS = $CONFIG_HEADERS
11876 CONFIG_LINKS = $CONFIG_LINKS
11877 CONFIG_COMMANDS = $CONFIG_COMMANDS
11878 $ $0 $@
11879
drh8b727472009-01-19 18:18:40 +000011880on `(hostname || uname -n) 2>/dev/null | sed 1q`
11881"
11882
drh71eb93e2001-09-28 01:34:43 +000011883_ACEOF
11884
dana9f39fd2011-08-12 16:34:42 +000011885case $ac_config_files in *"
11886"*) set x $ac_config_files; shift; ac_config_files=$*;;
11887esac
11888
11889case $ac_config_headers in *"
11890"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11891esac
11892
11893
drh8b727472009-01-19 18:18:40 +000011894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011895# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000011896config_files="$ac_config_files"
11897config_headers="$ac_config_headers"
11898config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000011899
drh8b727472009-01-19 18:18:40 +000011900_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011901
drh8b727472009-01-19 18:18:40 +000011902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011903ac_cs_usage="\
dana9f39fd2011-08-12 16:34:42 +000011904\`$as_me' instantiates files and other configuration actions
11905from templates according to the current configuration. Unless the files
11906and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000011907
dana9f39fd2011-08-12 16:34:42 +000011908Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000011909
11910 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000011911 -V, --version print version number and configuration settings, then exit
dana9f39fd2011-08-12 16:34:42 +000011912 --config print configuration, then exit
11913 -q, --quiet, --silent
11914 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000011915 -d, --debug don't remove temporary files
11916 --recheck update $as_me by reconfiguring in the same conditions
dana9f39fd2011-08-12 16:34:42 +000011917 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011918 instantiate the configuration file FILE
dana9f39fd2011-08-12 16:34:42 +000011919 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011920 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000011921
11922Configuration files:
11923$config_files
11924
mlcreechb87057f2008-03-06 07:19:20 +000011925Configuration headers:
11926$config_headers
11927
mlcreech636a9952008-05-05 22:52:56 +000011928Configuration commands:
11929$config_commands
11930
dana9f39fd2011-08-12 16:34:42 +000011931Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000011932
mlcreech94984912008-03-04 19:03:08 +000011933_ACEOF
drh8b727472009-01-19 18:18:40 +000011934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
dana9f39fd2011-08-12 16:34:42 +000011935ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000011936ac_cs_version="\\
drh5c0c56b2011-11-25 21:51:03 +000011937sqlite config.status 3.7.10
drh6a8ab6d2011-11-09 01:53:25 +000011938configured by $0, generated by GNU Autoconf 2.68,
dana9f39fd2011-08-12 16:34:42 +000011939 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000011940
drh0fe0c462011-09-22 00:56:38 +000011941Copyright (C) 2010 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000011942This config.status script is free software; the Free Software Foundation
11943gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000011944
11945ac_pwd='$ac_pwd'
11946srcdir='$srcdir'
11947INSTALL='$INSTALL'
11948AWK='$AWK'
11949test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000011950_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011951
drh8b727472009-01-19 18:18:40 +000011952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11953# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000011954ac_need_defaults=:
11955while test $# != 0
11956do
11957 case $1 in
drh0fe0c462011-09-22 00:56:38 +000011958 --*=?*)
drh8b727472009-01-19 18:18:40 +000011959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11960 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000011961 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000011962 ;;
drh0fe0c462011-09-22 00:56:38 +000011963 --*=)
11964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11965 ac_optarg=
11966 ac_shift=:
11967 ;;
drh8b727472009-01-19 18:18:40 +000011968 *)
a.rottmann84e63352003-03-24 09:42:16 +000011969 ac_option=$1
11970 ac_optarg=$2
11971 ac_shift=shift
11972 ;;
drh75897232000-05-29 14:26:00 +000011973 esac
11974
a.rottmann84e63352003-03-24 09:42:16 +000011975 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000011976 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000011977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000011978 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000011979 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11980 $as_echo "$ac_cs_version"; exit ;;
dana9f39fd2011-08-12 16:34:42 +000011981 --config | --confi | --conf | --con | --co | --c )
11982 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000011983 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000011984 debug=: ;;
11985 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000011986 $ac_shift
drh8b727472009-01-19 18:18:40 +000011987 case $ac_optarg in
11988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drh0fe0c462011-09-22 00:56:38 +000011989 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000011990 esac
dana9f39fd2011-08-12 16:34:42 +000011991 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000011992 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000011993 --header | --heade | --head | --hea )
11994 $ac_shift
drh8b727472009-01-19 18:18:40 +000011995 case $ac_optarg in
11996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11997 esac
dana9f39fd2011-08-12 16:34:42 +000011998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000011999 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012000 --he | --h)
12001 # Conflict between --help and --header
drh0fe0c462011-09-22 00:56:38 +000012002 as_fn_error $? "ambiguous option: \`$1'
dana9f39fd2011-08-12 16:34:42 +000012003Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012004 --help | --hel | -h )
12005 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12008 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012009
drh71eb93e2001-09-28 01:34:43 +000012010 # This is an error.
drh0fe0c462011-09-22 00:56:38 +000012011 -*) as_fn_error $? "unrecognized option: \`$1'
dana9f39fd2011-08-12 16:34:42 +000012012Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012013
dana9f39fd2011-08-12 16:34:42 +000012014 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012015 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012016
12017 esac
12018 shift
12019done
12020
a.rottmann84e63352003-03-24 09:42:16 +000012021ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012022
a.rottmann84e63352003-03-24 09:42:16 +000012023if $ac_cs_silent; then
12024 exec 6>/dev/null
12025 ac_configure_extra_args="$ac_configure_extra_args --silent"
12026fi
drh71eb93e2001-09-28 01:34:43 +000012027
12028_ACEOF
drh8b727472009-01-19 18:18:40 +000012029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012030if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000012031 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12032 shift
12033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12034 CONFIG_SHELL='$SHELL'
12035 export CONFIG_SHELL
12036 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012037fi
drh71eb93e2001-09-28 01:34:43 +000012038
a.rottmann84e63352003-03-24 09:42:16 +000012039_ACEOF
drh8b727472009-01-19 18:18:40 +000012040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041exec 5>>config.log
12042{
12043 echo
12044 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12045## Running $as_me. ##
12046_ASBOX
12047 $as_echo "$ac_log"
12048} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012049
drh8b727472009-01-19 18:18:40 +000012050_ACEOF
12051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012052#
drh8b727472009-01-19 18:18:40 +000012053# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012054#
12055
12056
12057# The HP-UX ksh and POSIX shell print the target directory to stdout
12058# if CDPATH is set.
12059(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12060
12061sed_quote_subst='$sed_quote_subst'
12062double_quote_subst='$double_quote_subst'
12063delay_variable_subst='$delay_variable_subst'
12064macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12065macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12066enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12067enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12068pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12069enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12070host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12071host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12072host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12073build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12074build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12075build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12076SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12077Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12078GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12079EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12080FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12081LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12082NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12083LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12084max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12085ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12086exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12087lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12088lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12089lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12090reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12091reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012092OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012093deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12094file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12095AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12096AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12097STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12098RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12099old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12100old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12101old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12102CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12103CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12104compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12105GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12106lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12107lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12108lt_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"`'
12109lt_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"`'
12110objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12111SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12112ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12113MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12114lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12115lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12116lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12117lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12118lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12119need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12120DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12121NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12122LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12123OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12124OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12125libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12126shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12127extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12128archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12129enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12130export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12131whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12132compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12133old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12135archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12136archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12137module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12138module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12139with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12140allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12141no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12142hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12143hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12144hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12145hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12146hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12147hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12148hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12149hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12150inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12151link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12152fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12153always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12154export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12155exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12156include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12157prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12158file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12159variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12160need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12161need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12162version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12163runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12164shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12165shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12166libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12167library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12168soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12169postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12172finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12173hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12174sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12175sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12176hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12177enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12178enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12179enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12180old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12181striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12182
12183LTCC='$LTCC'
12184LTCFLAGS='$LTCFLAGS'
12185compiler='$compiler_DEFAULT'
12186
12187# Quote evaled strings.
12188for var in SED \
12189GREP \
12190EGREP \
12191FGREP \
12192LD \
12193NM \
12194LN_S \
12195lt_SP2NL \
12196lt_NL2SP \
12197reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012198OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012199deplibs_check_method \
12200file_magic_cmd \
12201AR \
12202AR_FLAGS \
12203STRIP \
12204RANLIB \
12205CC \
12206CFLAGS \
12207compiler \
12208lt_cv_sys_global_symbol_pipe \
12209lt_cv_sys_global_symbol_to_cdecl \
12210lt_cv_sys_global_symbol_to_c_name_address \
12211lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12212SHELL \
12213ECHO \
12214lt_prog_compiler_no_builtin_flag \
12215lt_prog_compiler_wl \
12216lt_prog_compiler_pic \
12217lt_prog_compiler_static \
12218lt_cv_prog_compiler_c_o \
12219need_locks \
12220DSYMUTIL \
12221NMEDIT \
12222LIPO \
12223OTOOL \
12224OTOOL64 \
12225shrext_cmds \
12226export_dynamic_flag_spec \
12227whole_archive_flag_spec \
12228compiler_needs_object \
12229with_gnu_ld \
12230allow_undefined_flag \
12231no_undefined_flag \
12232hardcode_libdir_flag_spec \
12233hardcode_libdir_flag_spec_ld \
12234hardcode_libdir_separator \
12235fix_srcfile_path \
12236exclude_expsyms \
12237include_expsyms \
12238file_list_spec \
12239variables_saved_for_relink \
12240libname_spec \
12241library_names_spec \
12242soname_spec \
12243finish_eval \
12244old_striplib \
12245striplib; do
12246 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12247 *[\\\\\\\`\\"\\\$]*)
12248 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12249 ;;
12250 *)
12251 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12252 ;;
12253 esac
12254done
12255
12256# Double-quote double-evaled strings.
12257for var in reload_cmds \
12258old_postinstall_cmds \
12259old_postuninstall_cmds \
12260old_archive_cmds \
12261extract_expsyms_cmds \
12262old_archive_from_new_cmds \
12263old_archive_from_expsyms_cmds \
12264archive_cmds \
12265archive_expsym_cmds \
12266module_cmds \
12267module_expsym_cmds \
12268export_symbols_cmds \
12269prelink_cmds \
12270postinstall_cmds \
12271postuninstall_cmds \
12272finish_cmds \
12273sys_lib_search_path_spec \
12274sys_lib_dlsearch_path_spec; do
12275 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12276 *[\\\\\\\`\\"\\\$]*)
12277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12278 ;;
12279 *)
12280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12281 ;;
12282 esac
12283done
12284
12285# Fix-up fallback echo if it was mangled by the above quoting rules.
12286case \$lt_ECHO in
12287*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12288 ;;
12289esac
12290
12291ac_aux_dir='$ac_aux_dir'
12292xsi_shell='$xsi_shell'
12293lt_shell_append='$lt_shell_append'
12294
12295# See if we are running on zsh, and set the options which allow our
12296# commands through without removal of \ escapes INIT.
12297if test -n "\${ZSH_VERSION+set}" ; then
12298 setopt NO_GLOB_SUBST
12299fi
12300
12301
12302 PACKAGE='$PACKAGE'
12303 VERSION='$VERSION'
12304 TIMESTAMP='$TIMESTAMP'
12305 RM='$RM'
12306 ofile='$ofile'
12307
12308
12309
12310
mlcreech94984912008-03-04 19:03:08 +000012311_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012312
drh8b727472009-01-19 18:18:40 +000012313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012314
drh8b727472009-01-19 18:18:40 +000012315# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012316for ac_config_target in $ac_config_targets
12317do
drh8b727472009-01-19 18:18:40 +000012318 case $ac_config_target in
12319 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12320 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12321 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12322 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12323
drh6a8ab6d2011-11-09 01:53:25 +000012324 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012325 esac
12326done
12327
drh8b727472009-01-19 18:18:40 +000012328
drh71eb93e2001-09-28 01:34:43 +000012329# If the user did not use the arguments to specify the items to instantiate,
12330# then the envvar interface is used. Set only those that are not.
12331# We use the long form for the default assignment because of an extremely
12332# bizarre bug on SunOS 4.1.3.
12333if $ac_need_defaults; then
12334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012337fi
12338
a.rottmann84e63352003-03-24 09:42:16 +000012339# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012340# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012341# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012342# Hook for its removal unless debugging.
12343# Note that there is a small window in which the directory will not be cleaned:
12344# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012345$debug ||
12346{
drh6a8ab6d2011-11-09 01:53:25 +000012347 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012348 trap 'exit_status=$?
drh6a8ab6d2011-11-09 01:53:25 +000012349 : "${ac_tmp:=$tmp}"
12350 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012351' 0
dana9f39fd2011-08-12 16:34:42 +000012352 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012353}
drh71eb93e2001-09-28 01:34:43 +000012354# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012355
drh71eb93e2001-09-28 01:34:43 +000012356{
drh8b727472009-01-19 18:18:40 +000012357 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh6a8ab6d2011-11-09 01:53:25 +000012358 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012359} ||
12360{
drh8b727472009-01-19 18:18:40 +000012361 tmp=./conf$$-$RANDOM
12362 (umask 077 && mkdir "$tmp")
drh0fe0c462011-09-22 00:56:38 +000012363} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
drh6a8ab6d2011-11-09 01:53:25 +000012364ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012365
drh8b727472009-01-19 18:18:40 +000012366# Set up the scripts for CONFIG_FILES section.
12367# No need to generate them if there are no CONFIG_FILES.
12368# This happens for instance with `./config.status config.h'.
12369if test -n "$CONFIG_FILES"; then
12370
12371
dana9f39fd2011-08-12 16:34:42 +000012372ac_cr=`echo X | tr X '\015'`
12373# On cygwin, bash can eat \r inside `` if the user requested igncr.
12374# But we know of no other shell where ac_cr would be empty at this
12375# point, so we can use a bashism as a fallback.
12376if test "x$ac_cr" = x; then
12377 eval ac_cr=\$\'\\r\'
12378fi
drh8b727472009-01-19 18:18:40 +000012379ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12380if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012381 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012382else
12383 ac_cs_awk_cr=$ac_cr
12384fi
12385
drh6a8ab6d2011-11-09 01:53:25 +000012386echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012387_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012388
mlcreech94984912008-03-04 19:03:08 +000012389
drh8b727472009-01-19 18:18:40 +000012390{
12391 echo "cat >conf$$subs.awk <<_ACEOF" &&
12392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12393 echo "_ACEOF"
12394} >conf$$subs.sh ||
drh0fe0c462011-09-22 00:56:38 +000012395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12396ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012397ac_delim='%!_!# '
12398for ac_last_try in false false false false false :; do
12399 . ./conf$$subs.sh ||
drh0fe0c462011-09-22 00:56:38 +000012400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012401
dana9f39fd2011-08-12 16:34:42 +000012402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12403 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012404 break
12405 elif $ac_last_try; then
drh0fe0c462011-09-22 00:56:38 +000012406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012407 else
12408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012409 fi
drh8b727472009-01-19 18:18:40 +000012410done
12411rm -f conf$$subs.sh
12412
12413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh6a8ab6d2011-11-09 01:53:25 +000012414cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012415_ACEOF
12416sed -n '
12417h
12418s/^/S["/; s/!.*/"]=/
12419p
12420g
12421s/^[^!]*!//
12422:repl
12423t repl
12424s/'"$ac_delim"'$//
12425t delim
12426:nl
12427h
dana9f39fd2011-08-12 16:34:42 +000012428s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012429t more1
12430s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12431p
12432n
12433b repl
12434:more1
12435s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12436p
12437g
12438s/.\{148\}//
12439t nl
12440:delim
12441h
dana9f39fd2011-08-12 16:34:42 +000012442s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012443t more2
12444s/["\\]/\\&/g; s/^/"/; s/$/"/
12445p
12446b
12447:more2
12448s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12449p
12450g
12451s/.\{148\}//
12452t delim
12453' <conf$$subs.awk | sed '
12454/^[^""]/{
12455 N
12456 s/\n//
12457}
12458' >>$CONFIG_STATUS || ac_write_fail=1
12459rm -f conf$$subs.awk
12460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461_ACAWK
drh6a8ab6d2011-11-09 01:53:25 +000012462cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012463 for (key in S) S_is_set[key] = 1
12464 FS = ""
12465
12466}
12467{
12468 line = $ 0
12469 nfields = split(line, field, "@")
12470 substed = 0
12471 len = length(field[1])
12472 for (i = 2; i < nfields; i++) {
12473 key = field[i]
12474 keylen = length(key)
12475 if (S_is_set[key]) {
12476 value = S[key]
12477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12478 len += length(value) + length(field[++i])
12479 substed = 1
12480 } else
12481 len += 1 + keylen
12482 }
12483
12484 print line
12485}
12486
12487_ACAWK
12488_ACEOF
12489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12490if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12491 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12492else
12493 cat
drh6a8ab6d2011-11-09 01:53:25 +000012494fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
drh0fe0c462011-09-22 00:56:38 +000012495 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012496_ACEOF
12497
drh0fe0c462011-09-22 00:56:38 +000012498# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12499# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012500# trailing colons and then remove the whole line if VPATH becomes empty
12501# (actually we leave an empty line to preserve line numbers).
12502if test "x$srcdir" = x.; then
drh0fe0c462011-09-22 00:56:38 +000012503 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12504h
12505s///
12506s/^/:/
12507s/[ ]*$/:/
12508s/:\$(srcdir):/:/g
12509s/:\${srcdir}:/:/g
12510s/:@srcdir@:/:/g
12511s/^:*//
drh8b727472009-01-19 18:18:40 +000012512s/:*$//
drh0fe0c462011-09-22 00:56:38 +000012513x
12514s/\(=[ ]*\).*/\1/
12515G
12516s/\n//
drh8b727472009-01-19 18:18:40 +000012517s/^[^=]*=[ ]*$//
12518}'
12519fi
12520
12521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012522fi # test -n "$CONFIG_FILES"
12523
drh8b727472009-01-19 18:18:40 +000012524# Set up the scripts for CONFIG_HEADERS section.
12525# No need to generate them if there are no CONFIG_HEADERS.
12526# This happens for instance with `./config.status Makefile'.
12527if test -n "$CONFIG_HEADERS"; then
drh6a8ab6d2011-11-09 01:53:25 +000012528cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012529BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012530_ACEOF
drh8b727472009-01-19 18:18:40 +000012531
12532# Transform confdefs.h into an awk script `defines.awk', embedded as
12533# here-document in config.status, that substitutes the proper values into
12534# config.h.in to produce config.h.
12535
12536# Create a delimiter string that does not exist in confdefs.h, to ease
12537# handling of long lines.
12538ac_delim='%!_!# '
12539for ac_last_try in false false :; do
drh6a8ab6d2011-11-09 01:53:25 +000012540 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12541 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012542 break
12543 elif $ac_last_try; then
drh0fe0c462011-09-22 00:56:38 +000012544 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012545 else
12546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12547 fi
12548done
12549
12550# For the awk script, D is an array of macro values keyed by name,
12551# likewise P contains macro parameters if any. Preserve backslash
12552# newline sequences.
12553
12554ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12555sed -n '
12556s/.\{148\}/&'"$ac_delim"'/g
12557t rset
12558:rset
12559s/^[ ]*#[ ]*define[ ][ ]*/ /
12560t def
12561d
12562:def
12563s/\\$//
12564t bsnl
12565s/["\\]/\\&/g
12566s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12567D["\1"]=" \3"/p
12568s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12569d
12570:bsnl
12571s/["\\]/\\&/g
12572s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12573D["\1"]=" \3\\\\\\n"\\/p
12574t cont
12575s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12576t cont
12577d
12578:cont
12579n
12580s/.\{148\}/&'"$ac_delim"'/g
12581t clear
12582:clear
12583s/\\$//
12584t bsnlc
12585s/["\\]/\\&/g; s/^/"/; s/$/"/p
12586d
12587:bsnlc
12588s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12589b cont
12590' <confdefs.h | sed '
12591s/'"$ac_delim"'/"\\\
12592"/g' >>$CONFIG_STATUS || ac_write_fail=1
12593
12594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12595 for (key in D) D_is_set[key] = 1
12596 FS = ""
12597}
12598/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12599 line = \$ 0
12600 split(line, arg, " ")
12601 if (arg[1] == "#") {
12602 defundef = arg[2]
12603 mac1 = arg[3]
12604 } else {
12605 defundef = substr(arg[1], 2)
12606 mac1 = arg[2]
12607 }
12608 split(mac1, mac2, "(") #)
12609 macro = mac2[1]
dana9f39fd2011-08-12 16:34:42 +000012610 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012611 if (D_is_set[macro]) {
12612 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012613 print prefix "define", macro P[macro] D[macro]
12614 next
12615 } else {
12616 # Replace #undef with comments. This is necessary, for example,
12617 # in the case of _POSIX_SOURCE, which is predefined and required
12618 # on some systems where configure will not decide to define it.
12619 if (defundef == "undef") {
dana9f39fd2011-08-12 16:34:42 +000012620 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012621 next
12622 }
12623 }
12624}
12625{ print }
12626_ACAWK
12627_ACEOF
12628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh0fe0c462011-09-22 00:56:38 +000012629 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012630fi # test -n "$CONFIG_HEADERS"
12631
12632
12633eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12634shift
12635for ac_tag
12636do
12637 case $ac_tag in
12638 :[FHLC]) ac_mode=$ac_tag; continue;;
12639 esac
12640 case $ac_mode$ac_tag in
12641 :[FHL]*:*);;
drh6a8ab6d2011-11-09 01:53:25 +000012642 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012643 :[FH]-) ac_tag=-:-;;
12644 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12645 esac
12646 ac_save_IFS=$IFS
12647 IFS=:
12648 set x $ac_tag
12649 IFS=$ac_save_IFS
12650 shift
12651 ac_file=$1
12652 shift
12653
12654 case $ac_mode in
12655 :L) ac_source=$1;;
12656 :[FH])
12657 ac_file_inputs=
12658 for ac_f
12659 do
12660 case $ac_f in
drh6a8ab6d2011-11-09 01:53:25 +000012661 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012662 *) # Look for the file first in the build tree, then in the source tree
12663 # (if the path is not absolute). The absolute path cannot be DOS-style,
12664 # because $ac_f cannot contain `:'.
12665 test -f "$ac_f" ||
12666 case $ac_f in
12667 [\\/$]*) false;;
12668 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12669 esac ||
drh6a8ab6d2011-11-09 01:53:25 +000012670 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012671 esac
12672 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
dana9f39fd2011-08-12 16:34:42 +000012673 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012674 done
12675
12676 # Let's still pretend it is `configure' which instantiates (i.e., don't
12677 # use $as_me), people would be surprised to read:
12678 # /* config.h. Generated by config.status. */
12679 configure_input='Generated from '`
12680 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12681 `' by configure.'
12682 if test x"$ac_file" != x-; then
12683 configure_input="$ac_file. $configure_input"
dana9f39fd2011-08-12 16:34:42 +000012684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012685$as_echo "$as_me: creating $ac_file" >&6;}
12686 fi
12687 # Neutralize special characters interpreted by sed in replacement strings.
12688 case $configure_input in #(
12689 *\&* | *\|* | *\\* )
12690 ac_sed_conf_input=`$as_echo "$configure_input" |
12691 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12692 *) ac_sed_conf_input=$configure_input;;
12693 esac
12694
12695 case $ac_tag in
drh6a8ab6d2011-11-09 01:53:25 +000012696 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012698 esac
12699 ;;
drh71eb93e2001-09-28 01:34:43 +000012700 esac
12701
drh8b727472009-01-19 18:18:40 +000012702 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012703$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012704 X"$ac_file" : 'X\(//\)[^/]' \| \
12705 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12707$as_echo X"$ac_file" |
12708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12709 s//\1/
12710 q
12711 }
12712 /^X\(\/\/\)[^/].*/{
12713 s//\1/
12714 q
12715 }
12716 /^X\(\/\/\)$/{
12717 s//\1/
12718 q
12719 }
12720 /^X\(\/\).*/{
12721 s//\1/
12722 q
12723 }
12724 s/.*/./; q'`
dana9f39fd2011-08-12 16:34:42 +000012725 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012726 ac_builddir=.
12727
drh8b727472009-01-19 18:18:40 +000012728case "$ac_dir" in
12729.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12730*)
12731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12732 # A ".." for each directory in $ac_dir_suffix.
12733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12734 case $ac_top_builddir_sub in
12735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12737 esac ;;
12738esac
12739ac_abs_top_builddir=$ac_pwd
12740ac_abs_builddir=$ac_pwd$ac_dir_suffix
12741# for backward compatibility:
12742ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012743
12744case $srcdir in
drh8b727472009-01-19 18:18:40 +000012745 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012746 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012747 ac_top_srcdir=$ac_top_builddir_sub
12748 ac_abs_top_srcdir=$ac_pwd ;;
12749 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012750 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012751 ac_top_srcdir=$srcdir
12752 ac_abs_top_srcdir=$srcdir ;;
12753 *) # Relative name.
12754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12755 ac_top_srcdir=$ac_top_build_prefix$srcdir
12756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012757esac
drh8b727472009-01-19 18:18:40 +000012758ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012759
a.rottmann84e63352003-03-24 09:42:16 +000012760
drh8b727472009-01-19 18:18:40 +000012761 case $ac_mode in
12762 :F)
12763 #
12764 # CONFIG_FILE
12765 #
drh75897232000-05-29 14:26:00 +000012766
drh71eb93e2001-09-28 01:34:43 +000012767 case $INSTALL in
12768 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012769 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012770 esac
mlcreech94984912008-03-04 19:03:08 +000012771_ACEOF
drh8b727472009-01-19 18:18:40 +000012772
12773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12774# If the template does not know about datarootdir, expand it.
12775# FIXME: This hack should be removed a few years after 2.60.
12776ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012777ac_sed_dataroot='
12778/datarootdir/ {
12779 p
12780 q
12781}
12782/@datadir@/p
12783/@docdir@/p
12784/@infodir@/p
12785/@localedir@/p
dana9f39fd2011-08-12 16:34:42 +000012786/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012787case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12788*datarootdir*) ac_datarootdir_seen=yes;;
12789*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
dana9f39fd2011-08-12 16:34:42 +000012790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000012791$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12792_ACEOF
12793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794 ac_datarootdir_hack='
12795 s&@datadir@&$datadir&g
12796 s&@docdir@&$docdir&g
12797 s&@infodir@&$infodir&g
12798 s&@localedir@&$localedir&g
12799 s&@mandir@&$mandir&g
dana9f39fd2011-08-12 16:34:42 +000012800 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000012801esac
12802_ACEOF
12803
12804# Neutralize VPATH when `$srcdir' = `.'.
12805# Shell code in configure.ac might set extrasub.
12806# FIXME: do we really want to maintain this feature?
12807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12808ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000012809$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000012810_ACEOF
drh8b727472009-01-19 18:18:40 +000012811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012812:t
12813/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000012814s|@configure_input@|$ac_sed_conf_input|;t t
12815s&@top_builddir@&$ac_top_builddir_sub&;t t
12816s&@top_build_prefix@&$ac_top_build_prefix&;t t
12817s&@srcdir@&$ac_srcdir&;t t
12818s&@abs_srcdir@&$ac_abs_srcdir&;t t
12819s&@top_srcdir@&$ac_top_srcdir&;t t
12820s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12821s&@builddir@&$ac_builddir&;t t
12822s&@abs_builddir@&$ac_abs_builddir&;t t
12823s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12824s&@INSTALL@&$ac_INSTALL&;t t
12825$ac_datarootdir_hack
12826"
drh6a8ab6d2011-11-09 01:53:25 +000012827eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12828 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012829
drh8b727472009-01-19 18:18:40 +000012830test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drh6a8ab6d2011-11-09 01:53:25 +000012831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12833 "$ac_tmp/out"`; test -z "$ac_out"; } &&
dana9f39fd2011-08-12 16:34:42 +000012834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh0fe0c462011-09-22 00:56:38 +000012835which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000012836$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh0fe0c462011-09-22 00:56:38 +000012837which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000012838
drh6a8ab6d2011-11-09 01:53:25 +000012839 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000012840 case $ac_file in
drh6a8ab6d2011-11-09 01:53:25 +000012841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000012843 esac \
drh0fe0c462011-09-22 00:56:38 +000012844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012845 ;;
12846 :H)
12847 #
12848 # CONFIG_HEADER
12849 #
drh866108f2008-05-13 00:57:21 +000012850 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000012851 {
12852 $as_echo "/* $configure_input */" \
drh6a8ab6d2011-11-09 01:53:25 +000012853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12854 } >"$ac_tmp/config.h" \
drh0fe0c462011-09-22 00:56:38 +000012855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh6a8ab6d2011-11-09 01:53:25 +000012856 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
dana9f39fd2011-08-12 16:34:42 +000012857 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000012858$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000012859 else
drh8b727472009-01-19 18:18:40 +000012860 rm -f "$ac_file"
drh6a8ab6d2011-11-09 01:53:25 +000012861 mv "$ac_tmp/config.h" "$ac_file" \
drh0fe0c462011-09-22 00:56:38 +000012862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012863 fi
12864 else
drh8b727472009-01-19 18:18:40 +000012865 $as_echo "/* $configure_input */" \
drh6a8ab6d2011-11-09 01:53:25 +000012866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
drh0fe0c462011-09-22 00:56:38 +000012867 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012868 fi
drh8b727472009-01-19 18:18:40 +000012869 ;;
drh866108f2008-05-13 00:57:21 +000012870
dana9f39fd2011-08-12 16:34:42 +000012871 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000012872$as_echo "$as_me: executing $ac_file commands" >&6;}
12873 ;;
12874 esac
drh866108f2008-05-13 00:57:21 +000012875
12876
drh8b727472009-01-19 18:18:40 +000012877 case $ac_file$ac_mode in
12878 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000012879
12880 # See if we are running on zsh, and set the options which allow our
12881 # commands through without removal of \ escapes.
12882 if test -n "${ZSH_VERSION+set}" ; then
12883 setopt NO_GLOB_SUBST
12884 fi
12885
12886 cfgfile="${ofile}T"
12887 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12888 $RM "$cfgfile"
12889
12890 cat <<_LT_EOF >> "$cfgfile"
12891#! $SHELL
12892
12893# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12894# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12896# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12897#
12898# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12899# 2006, 2007, 2008 Free Software Foundation, Inc.
12900# Written by Gordon Matzigkeit, 1996
12901#
12902# This file is part of GNU Libtool.
12903#
12904# GNU Libtool is free software; you can redistribute it and/or
12905# modify it under the terms of the GNU General Public License as
12906# published by the Free Software Foundation; either version 2 of
12907# the License, or (at your option) any later version.
12908#
12909# As a special exception to the GNU General Public License,
12910# if you distribute this file as part of a program or library that
12911# is built using GNU Libtool, you may include this file under the
12912# same distribution terms that you use for the rest of that program.
12913#
12914# GNU Libtool is distributed in the hope that it will be useful,
12915# but WITHOUT ANY WARRANTY; without even the implied warranty of
12916# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12917# GNU General Public License for more details.
12918#
12919# You should have received a copy of the GNU General Public License
12920# along with GNU Libtool; see the file COPYING. If not, a copy
12921# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12922# obtained by writing to the Free Software Foundation, Inc.,
12923# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12924
12925
12926# The names of the tagged configurations supported by this script.
12927available_tags=""
12928
12929# ### BEGIN LIBTOOL CONFIG
12930
12931# Which release of libtool.m4 was used?
12932macro_version=$macro_version
12933macro_revision=$macro_revision
12934
12935# Whether or not to build shared libraries.
12936build_libtool_libs=$enable_shared
12937
12938# Whether or not to build static libraries.
12939build_old_libs=$enable_static
12940
12941# What type of objects to build.
12942pic_mode=$pic_mode
12943
12944# Whether or not to optimize for fast installation.
12945fast_install=$enable_fast_install
12946
12947# The host system.
12948host_alias=$host_alias
12949host=$host
12950host_os=$host_os
12951
12952# The build system.
12953build_alias=$build_alias
12954build=$build
12955build_os=$build_os
12956
12957# A sed program that does not truncate output.
12958SED=$lt_SED
12959
12960# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12961Xsed="\$SED -e 1s/^X//"
12962
12963# A grep program that handles long lines.
12964GREP=$lt_GREP
12965
12966# An ERE matcher.
12967EGREP=$lt_EGREP
12968
12969# A literal string matcher.
12970FGREP=$lt_FGREP
12971
12972# A BSD- or MS-compatible name lister.
12973NM=$lt_NM
12974
12975# Whether we need soft or hard links.
12976LN_S=$lt_LN_S
12977
12978# What is the maximum length of a command?
12979max_cmd_len=$max_cmd_len
12980
12981# Object file suffix (normally "o").
12982objext=$ac_objext
12983
12984# Executable file suffix (normally "").
12985exeext=$exeext
12986
12987# whether the shell understands "unset".
12988lt_unset=$lt_unset
12989
12990# turn spaces into newlines.
12991SP2NL=$lt_lt_SP2NL
12992
12993# turn newlines into spaces.
12994NL2SP=$lt_lt_NL2SP
12995
12996# How to create reloadable object files.
12997reload_flag=$lt_reload_flag
12998reload_cmds=$lt_reload_cmds
12999
vapier6acb2cf2009-01-28 04:46:28 +000013000# An object symbol dumper.
13001OBJDUMP=$lt_OBJDUMP
13002
mlcreech636a9952008-05-05 22:52:56 +000013003# Method to check whether dependent libraries are shared objects.
13004deplibs_check_method=$lt_deplibs_check_method
13005
13006# Command to use when deplibs_check_method == "file_magic".
13007file_magic_cmd=$lt_file_magic_cmd
13008
13009# The archiver.
13010AR=$lt_AR
13011AR_FLAGS=$lt_AR_FLAGS
13012
13013# A symbol stripping program.
13014STRIP=$lt_STRIP
13015
13016# Commands used to install an old-style archive.
13017RANLIB=$lt_RANLIB
13018old_postinstall_cmds=$lt_old_postinstall_cmds
13019old_postuninstall_cmds=$lt_old_postuninstall_cmds
13020
13021# A C compiler.
13022LTCC=$lt_CC
13023
13024# LTCC compiler flags.
13025LTCFLAGS=$lt_CFLAGS
13026
13027# Take the output of nm and produce a listing of raw symbols and C names.
13028global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13029
13030# Transform the output of nm in a proper C declaration.
13031global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13032
13033# Transform the output of nm in a C name address pair.
13034global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13035
13036# Transform the output of nm in a C name address pair when lib prefix is needed.
13037global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13038
13039# The name of the directory that contains temporary libtool files.
13040objdir=$objdir
13041
13042# Shell to use when invoking shell scripts.
13043SHELL=$lt_SHELL
13044
13045# An echo program that does not interpret backslashes.
13046ECHO=$lt_ECHO
13047
13048# Used to examine libraries when file_magic_cmd begins with "file".
13049MAGIC_CMD=$MAGIC_CMD
13050
13051# Must we lock files when doing compilation?
13052need_locks=$lt_need_locks
13053
13054# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13055DSYMUTIL=$lt_DSYMUTIL
13056
13057# Tool to change global to local symbols on Mac OS X.
13058NMEDIT=$lt_NMEDIT
13059
13060# Tool to manipulate fat objects and archives on Mac OS X.
13061LIPO=$lt_LIPO
13062
13063# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13064OTOOL=$lt_OTOOL
13065
13066# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13067OTOOL64=$lt_OTOOL64
13068
13069# Old archive suffix (normally "a").
13070libext=$libext
13071
13072# Shared library suffix (normally ".so").
13073shrext_cmds=$lt_shrext_cmds
13074
13075# The commands to extract the exported symbol list from a shared archive.
13076extract_expsyms_cmds=$lt_extract_expsyms_cmds
13077
13078# Variables whose values should be saved in libtool wrapper scripts and
13079# restored at link time.
13080variables_saved_for_relink=$lt_variables_saved_for_relink
13081
13082# Do we need the "lib" prefix for modules?
13083need_lib_prefix=$need_lib_prefix
13084
13085# Do we need a version for libraries?
13086need_version=$need_version
13087
13088# Library versioning type.
13089version_type=$version_type
13090
13091# Shared library runtime path variable.
13092runpath_var=$runpath_var
13093
13094# Shared library path variable.
13095shlibpath_var=$shlibpath_var
13096
13097# Is shlibpath searched before the hard-coded library search path?
13098shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13099
13100# Format of library name prefix.
13101libname_spec=$lt_libname_spec
13102
13103# List of archive names. First name is the real one, the rest are links.
13104# The last name is the one that the linker finds with -lNAME
13105library_names_spec=$lt_library_names_spec
13106
13107# The coded name of the library, if different from the real name.
13108soname_spec=$lt_soname_spec
13109
13110# Command to use after installation of a shared archive.
13111postinstall_cmds=$lt_postinstall_cmds
13112
13113# Command to use after uninstallation of a shared archive.
13114postuninstall_cmds=$lt_postuninstall_cmds
13115
13116# Commands used to finish a libtool library installation in a directory.
13117finish_cmds=$lt_finish_cmds
13118
13119# As "finish_cmds", except a single script fragment to be evaled but
13120# not shown.
13121finish_eval=$lt_finish_eval
13122
13123# Whether we should hardcode library paths into libraries.
13124hardcode_into_libs=$hardcode_into_libs
13125
13126# Compile-time system search path for libraries.
13127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13128
13129# Run-time system search path for libraries.
13130sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13131
13132# Whether dlopen is supported.
13133dlopen_support=$enable_dlopen
13134
13135# Whether dlopen of programs is supported.
13136dlopen_self=$enable_dlopen_self
13137
13138# Whether dlopen of statically linked programs is supported.
13139dlopen_self_static=$enable_dlopen_self_static
13140
13141# Commands to strip libraries.
13142old_striplib=$lt_old_striplib
13143striplib=$lt_striplib
13144
13145
13146# The linker used to build libraries.
13147LD=$lt_LD
13148
13149# Commands used to build an old-style archive.
13150old_archive_cmds=$lt_old_archive_cmds
13151
13152# A language specific compiler.
13153CC=$lt_compiler
13154
13155# Is the compiler the GNU compiler?
13156with_gcc=$GCC
13157
13158# Compiler flag to turn off builtin functions.
13159no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13160
13161# How to pass a linker flag through the compiler.
13162wl=$lt_lt_prog_compiler_wl
13163
13164# Additional compiler flags for building library objects.
13165pic_flag=$lt_lt_prog_compiler_pic
13166
13167# Compiler flag to prevent dynamic linking.
13168link_static_flag=$lt_lt_prog_compiler_static
13169
13170# Does compiler simultaneously support -c and -o options?
13171compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13172
13173# Whether or not to add -lc for building shared libraries.
13174build_libtool_need_lc=$archive_cmds_need_lc
13175
13176# Whether or not to disallow shared libs when runtime libs are static.
13177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13178
13179# Compiler flag to allow reflexive dlopens.
13180export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13181
13182# Compiler flag to generate shared objects directly from archives.
13183whole_archive_flag_spec=$lt_whole_archive_flag_spec
13184
13185# Whether the compiler copes with passing no objects directly.
13186compiler_needs_object=$lt_compiler_needs_object
13187
13188# Create an old-style archive from a shared archive.
13189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13190
13191# Create a temporary old-style archive to link instead of a shared archive.
13192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13193
13194# Commands used to build a shared archive.
13195archive_cmds=$lt_archive_cmds
13196archive_expsym_cmds=$lt_archive_expsym_cmds
13197
13198# Commands used to build a loadable module if different from building
13199# a shared archive.
13200module_cmds=$lt_module_cmds
13201module_expsym_cmds=$lt_module_expsym_cmds
13202
13203# Whether we are building with GNU ld or not.
13204with_gnu_ld=$lt_with_gnu_ld
13205
13206# Flag that allows shared libraries with undefined symbols to be built.
13207allow_undefined_flag=$lt_allow_undefined_flag
13208
13209# Flag that enforces no undefined symbols.
13210no_undefined_flag=$lt_no_undefined_flag
13211
13212# Flag to hardcode \$libdir into a binary during linking.
13213# This must work even if \$libdir does not exist
13214hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13215
13216# If ld is used when linking, flag to hardcode \$libdir into a binary
13217# during linking. This must work even if \$libdir does not exist.
13218hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13219
13220# Whether we need a single "-rpath" flag with a separated argument.
13221hardcode_libdir_separator=$lt_hardcode_libdir_separator
13222
13223# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13224# DIR into the resulting binary.
13225hardcode_direct=$hardcode_direct
13226
13227# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13228# DIR into the resulting binary and the resulting library dependency is
13229# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13230# library is relocated.
13231hardcode_direct_absolute=$hardcode_direct_absolute
13232
13233# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13234# into the resulting binary.
13235hardcode_minus_L=$hardcode_minus_L
13236
13237# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13238# into the resulting binary.
13239hardcode_shlibpath_var=$hardcode_shlibpath_var
13240
13241# Set to "yes" if building a shared library automatically hardcodes DIR
13242# into the library and all subsequent libraries and executables linked
13243# against it.
13244hardcode_automatic=$hardcode_automatic
13245
13246# Set to yes if linker adds runtime paths of dependent libraries
13247# to runtime path list.
13248inherit_rpath=$inherit_rpath
13249
13250# Whether libtool must link a program against all its dependency libraries.
13251link_all_deplibs=$link_all_deplibs
13252
13253# Fix the shell variable \$srcfile for the compiler.
13254fix_srcfile_path=$lt_fix_srcfile_path
13255
13256# Set to "yes" if exported symbols are required.
13257always_export_symbols=$always_export_symbols
13258
13259# The commands to list exported symbols.
13260export_symbols_cmds=$lt_export_symbols_cmds
13261
13262# Symbols that should not be listed in the preloaded symbols.
13263exclude_expsyms=$lt_exclude_expsyms
13264
13265# Symbols that must always be exported.
13266include_expsyms=$lt_include_expsyms
13267
13268# Commands necessary for linking programs (against libraries) with templates.
13269prelink_cmds=$lt_prelink_cmds
13270
13271# Specify filename containing input files.
13272file_list_spec=$lt_file_list_spec
13273
13274# How to hardcode a shared library path into an executable.
13275hardcode_action=$hardcode_action
13276
13277# ### END LIBTOOL CONFIG
13278
13279_LT_EOF
13280
13281 case $host_os in
13282 aix3*)
13283 cat <<\_LT_EOF >> "$cfgfile"
13284# AIX sometimes has problems with the GCC collect2 program. For some
13285# reason, if we set the COLLECT_NAMES environment variable, the problems
13286# vanish in a puff of smoke.
13287if test "X${COLLECT_NAMES+set}" != Xset; then
13288 COLLECT_NAMES=
13289 export COLLECT_NAMES
13290fi
13291_LT_EOF
13292 ;;
13293 esac
13294
13295
13296ltmain="$ac_aux_dir/ltmain.sh"
13297
13298
13299 # We use sed instead of cat because bash on DJGPP gets confused if
13300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13301 # text mode, it properly converts lines to CR/LF. This bash problem
13302 # is reportedly fixed, but why not run on old versions too?
13303 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13304 || (rm -f "$cfgfile"; exit 1)
13305
13306 case $xsi_shell in
13307 yes)
13308 cat << \_LT_EOF >> "$cfgfile"
13309
13310# func_dirname file append nondir_replacement
13311# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13312# otherwise set result to NONDIR_REPLACEMENT.
13313func_dirname ()
13314{
13315 case ${1} in
13316 */*) func_dirname_result="${1%/*}${2}" ;;
13317 * ) func_dirname_result="${3}" ;;
13318 esac
13319}
13320
13321# func_basename file
13322func_basename ()
13323{
13324 func_basename_result="${1##*/}"
13325}
13326
13327# func_dirname_and_basename file append nondir_replacement
13328# perform func_basename and func_dirname in a single function
13329# call:
13330# dirname: Compute the dirname of FILE. If nonempty,
13331# add APPEND to the result, otherwise set result
13332# to NONDIR_REPLACEMENT.
13333# value returned in "$func_dirname_result"
13334# basename: Compute filename of FILE.
13335# value retuned in "$func_basename_result"
13336# Implementation must be kept synchronized with func_dirname
13337# and func_basename. For efficiency, we do not delegate to
13338# those functions but instead duplicate the functionality here.
13339func_dirname_and_basename ()
13340{
13341 case ${1} in
13342 */*) func_dirname_result="${1%/*}${2}" ;;
13343 * ) func_dirname_result="${3}" ;;
13344 esac
13345 func_basename_result="${1##*/}"
13346}
13347
13348# func_stripname prefix suffix name
13349# strip PREFIX and SUFFIX off of NAME.
13350# PREFIX and SUFFIX must not contain globbing or regex special
13351# characters, hashes, percent signs, but SUFFIX may contain a leading
13352# dot (in which case that matches only a dot).
13353func_stripname ()
13354{
13355 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13356 # positional parameters, so assign one to ordinary parameter first.
13357 func_stripname_result=${3}
13358 func_stripname_result=${func_stripname_result#"${1}"}
13359 func_stripname_result=${func_stripname_result%"${2}"}
13360}
13361
13362# func_opt_split
13363func_opt_split ()
13364{
13365 func_opt_split_opt=${1%%=*}
13366 func_opt_split_arg=${1#*=}
13367}
13368
13369# func_lo2o object
13370func_lo2o ()
13371{
13372 case ${1} in
13373 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13374 *) func_lo2o_result=${1} ;;
13375 esac
13376}
13377
13378# func_xform libobj-or-source
13379func_xform ()
13380{
13381 func_xform_result=${1%.*}.lo
13382}
13383
13384# func_arith arithmetic-term...
13385func_arith ()
13386{
13387 func_arith_result=$(( $* ))
13388}
13389
13390# func_len string
13391# STRING may not start with a hyphen.
13392func_len ()
13393{
13394 func_len_result=${#1}
13395}
13396
13397_LT_EOF
13398 ;;
13399 *) # Bourne compatible functions.
13400 cat << \_LT_EOF >> "$cfgfile"
13401
13402# func_dirname file append nondir_replacement
13403# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13404# otherwise set result to NONDIR_REPLACEMENT.
13405func_dirname ()
13406{
13407 # Extract subdirectory from the argument.
13408 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13409 if test "X$func_dirname_result" = "X${1}"; then
13410 func_dirname_result="${3}"
13411 else
13412 func_dirname_result="$func_dirname_result${2}"
13413 fi
13414}
13415
13416# func_basename file
13417func_basename ()
13418{
13419 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13420}
13421
13422
13423# func_stripname prefix suffix name
13424# strip PREFIX and SUFFIX off of NAME.
13425# PREFIX and SUFFIX must not contain globbing or regex special
13426# characters, hashes, percent signs, but SUFFIX may contain a leading
13427# dot (in which case that matches only a dot).
13428# func_strip_suffix prefix name
13429func_stripname ()
13430{
13431 case ${2} in
13432 .*) func_stripname_result=`$ECHO "X${3}" \
13433 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13434 *) func_stripname_result=`$ECHO "X${3}" \
13435 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13436 esac
13437}
13438
13439# sed scripts:
13440my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13441my_sed_long_arg='1s/^-[^=]*=//'
13442
13443# func_opt_split
13444func_opt_split ()
13445{
13446 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13447 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13448}
13449
13450# func_lo2o object
13451func_lo2o ()
13452{
13453 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13454}
13455
13456# func_xform libobj-or-source
13457func_xform ()
13458{
13459 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13460}
13461
13462# func_arith arithmetic-term...
13463func_arith ()
13464{
13465 func_arith_result=`expr "$@"`
13466}
13467
13468# func_len string
13469# STRING may not start with a hyphen.
13470func_len ()
13471{
13472 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13473}
13474
13475_LT_EOF
13476esac
13477
13478case $lt_shell_append in
13479 yes)
13480 cat << \_LT_EOF >> "$cfgfile"
13481
13482# func_append var value
13483# Append VALUE to the end of shell variable VAR.
13484func_append ()
13485{
13486 eval "$1+=\$2"
13487}
13488_LT_EOF
13489 ;;
13490 *)
13491 cat << \_LT_EOF >> "$cfgfile"
13492
13493# func_append var value
13494# Append VALUE to the end of shell variable VAR.
13495func_append ()
13496{
13497 eval "$1=\$$1\$2"
13498}
13499
13500_LT_EOF
13501 ;;
13502 esac
13503
13504
13505 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13506 || (rm -f "$cfgfile"; exit 1)
13507
13508 mv -f "$cfgfile" "$ofile" ||
13509 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13510 chmod +x "$ofile"
13511
13512 ;;
mlcreech94984912008-03-04 19:03:08 +000013513
drh8b727472009-01-19 18:18:40 +000013514 esac
13515done # for ac_tag
13516
drh71eb93e2001-09-28 01:34:43 +000013517
dana9f39fd2011-08-12 16:34:42 +000013518as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013519_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013520ac_clean_files=$ac_clean_files_save
13521
drh8b727472009-01-19 18:18:40 +000013522test $ac_write_fail = 0 ||
drh0fe0c462011-09-22 00:56:38 +000013523 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013524
a.rottmann84e63352003-03-24 09:42:16 +000013525
drh71eb93e2001-09-28 01:34:43 +000013526# configure is writing to config.log, and then calls config.status.
13527# config.status does its own redirection, appending to config.log.
13528# Unfortunately, on DOS this fails, as config.log is still kept open
13529# by configure, so config.status won't be able to write to it; its
13530# output is simply discarded. So we exec the FD to /dev/null,
13531# effectively closing config.log, so it can be properly (re)opened and
13532# appended to by config.status. When coming back to configure, we
13533# need to make the FD available again.
13534if test "$no_create" != yes; then
13535 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013536 ac_config_status_args=
13537 test "$silent" = yes &&
13538 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013539 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013541 exec 5>>config.log
13542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13543 # would make configure fail if this is the last instruction.
drh0fe0c462011-09-22 00:56:38 +000013544 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013545fi
drh8b727472009-01-19 18:18:40 +000013546if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
dana9f39fd2011-08-12 16:34:42 +000013547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13548$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013549fi
drhbc7a22d2009-10-13 22:47:13 +000013550