]> git.ipfire.org Git - thirdparty/sqlite.git/blame - configure
When compiling with SQLITE_ALLOW_ROWID_IN_VIEW, if the RETURNING clause of
[thirdparty/sqlite.git] / configure
CommitLineData
75897234 1#! /bin/sh
75897234 2# Guess values for system-dependent variables and create Makefiles.
0a626b2b 3# Generated by GNU Autoconf 2.69 for sqlite 3.46.0.
f922ca49 4#
5#
22166f83 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
f922ca49 7#
75897234 8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
f922ca49 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
84e6335c 14
8b72747d 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
22166f83 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
84e6335c 18 emulate sh
19 NULLCMD=:
8b72747d 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
84e6335c 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
8b72747d 23 setopt NO_GLOB_SUBST
22166f83 24else
f922ca49 25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
8b72747d 30esac
8b72747d 31fi
32
33
8b72747d 34as_nl='
35'
36export as_nl
22166f83 37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
8b72747d 71
72# The user is always right.
22166f83 73if test "${PATH_SEPARATOR+set}" != set; then
8b72747d 74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
84e6335c 79fi
80
84e6335c 81
22166f83 82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
8b72747d 89# Find who we are. Look in the path if we contain no directory separator.
f922ca49 90as_myself=
91case $0 in #((
8b72747d 92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
22166f83 97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
f922ca49 99 done
8b72747d 100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
22166f83 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f922ca49 111 exit 1
8b72747d 112fi
113
22166f83 114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
f922ca49 134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
22166f83 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
f922ca49 157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
22166f83 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
f922ca49 162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
22166f83 168else
f922ca49 169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
22166f83 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
f922ca49 189
22166f83 190else
f922ca49 191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
22166f83 200 if (eval "$as_required") 2>/dev/null; then :
f922ca49 201 as_have_required=yes
22166f83 202else
f922ca49 203 as_have_required=no
204fi
22166f83 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
f922ca49 206
22166f83 207else
f922ca49 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
22166f83 213 test -z "$as_dir" && as_dir=.
f922ca49 214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
22166f83 219 as_shell=$as_dir/$as_base
f922ca49 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
22166f83 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
f922ca49 222 CONFIG_SHELL=$as_shell as_have_required=yes
22166f83 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
f922ca49 224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
22166f83 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
f0962c9f 233 CONFIG_SHELL=$SHELL as_have_required=yes
22166f83 234fi; }
235IFS=$as_save_IFS
f922ca49 236
237
22166f83 238 if test "x$CONFIG_SHELL" != x; then :
f922ca49 239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
22166f83 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
f922ca49 257exit 255
258fi
259
22166f83 260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
f922ca49 266 else
22166f83 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
f922ca49 268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
22166f83 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
f922ca49 326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22166f83 334$as_echo X"$as_dir" |
f922ca49 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
22166f83 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
f922ca49 374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
22166f83 378else
f922ca49 379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
22166f83 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
f922ca49 391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
22166f83 395else
f922ca49 396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f922ca49 414 fi
22166f83 415 $as_echo "$as_me: error: $2" >&2
f922ca49 416 as_fn_exit $as_status
417} # as_fn_error
418
8b72747d 419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
84e6335c 421 as_expr=expr
422else
423 as_expr=false
424fi
425
8b72747d 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
84e6335c 427 as_basename=basename
428else
429 as_basename=false
430fi
431
f922ca49 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
84e6335c 437
8b72747d 438as_me=`$as_basename -- "$0" ||
84e6335c 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
8b72747d 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22166f83 442$as_echo X/"$0" |
8b72747d 443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
7f19c02f 456
f922ca49 457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
7f19c02f 463
94984910 464
f922ca49 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
22166f83 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
94984910 487
f922ca49 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
8b72747d 498}
94984910 499
f922ca49 500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
8b72747d 512
f922ca49 513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
a9f39fde 516else
f922ca49 517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
8b72747d 519fi
f922ca49 520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
710658c7 536fi
f922ca49 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
710658c7 539
f922ca49 540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
8b72747d 542else
f922ca49 543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
8b72747d 545fi
546
f922ca49 547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
710658c7 549
f922ca49 550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
710658c7 552
f922ca49 553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
710658c7 555
710658c7 556
710658c7 557
f922ca49 558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
710658c7 560
f922ca49 561case X$lt_ECHO in
562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
71eb93ea 566esac
567
636a995d 568ECHO=${lt_ECHO-echo}
71eb93ea 569if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
636a995d 575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
71eb93ea 577 :
578else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
636a995d 586 cat <<_LT_EOF
9bc8b93f 587$*
636a995d 588_LT_EOF
71eb93ea 589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
7f19c02f 594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
71eb93ea 595
636a995d 596if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
71eb93ea 608
636a995d 609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
71eb93ea 619
636a995d 620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
9bc8b93f 631 IFS="$lt_save_ifs"
71eb93ea 632
636a995d 633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
71eb93ea 648 else
636a995d 649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
71eb93ea 673
636a995d 674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
71eb93ea 681
636a995d 682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
689 fi
690 fi
71eb93ea 691 fi
692 fi
693 fi
694fi
71eb93ea 695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
636a995d 698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
71eb93ea 701fi
702
71eb93ea 703
71eb93ea 704
9bc8b93f 705
f922ca49 706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
8b72747d 708
71eb93ea 709# Name of the host.
f922ca49 710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
71eb93ea 711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
71eb93ea 714#
715# Initializations.
716#
75897234 717ac_default_prefix=/usr/local
8b72747d 718ac_clean_files=
84e6335c 719ac_config_libobj_dir=.
8b72747d 720LIBOBJS=
71eb93ea 721cross_compiling=no
722subdirs=
84e6335c 723MFLAGS=
724MAKEFLAGS=
71eb93ea 725
84e6335c 726# Identity of this package.
b87057f2 727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
0a626b2b 729PACKAGE_VERSION='3.46.0'
730PACKAGE_STRING='sqlite 3.46.0'
b87057f2 731PACKAGE_BUGREPORT=''
f922ca49 732PACKAGE_URL=''
84e6335c 733
84e6335c 734# Factoring default headers for most tests.
735ac_includes_default="\
22166f83 736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
84e6335c 742#endif
22166f83 743#ifdef STDC_HEADERS
84e6335c 744# include <stdlib.h>
22166f83 745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748# include <stdlib.h>
749# endif
84e6335c 750#endif
8b72747d 751#ifdef HAVE_STRING_H
22166f83 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753# include <memory.h>
754# endif
84e6335c 755# include <string.h>
756#endif
22166f83 757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
8b72747d 760#ifdef HAVE_INTTYPES_H
84e6335c 761# include <inttypes.h>
84e6335c 762#endif
8b72747d 763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
84e6335c 767# include <unistd.h>
768#endif"
769
f922ca49 770ac_subst_vars='LTLIBOBJS
710658c7 771LIBOBJS
f922ca49 772BUILD_CFLAGS
4a0a98d3 773AMALGAMATION_LINE_MACROS
f922ca49 774USE_GCOV
775OPT_FEATURE_FLAGS
56c9311c 776HAVE_ZLIB
f922ca49 777USE_AMALGAMATION
778TARGET_DEBUG
8525e2d9 779TARGET_HAVE_LINENOISE
e44b835e 780TARGET_HAVE_EDITLINE
f922ca49 781TARGET_HAVE_READLINE
782TARGET_READLINE_INC
783TARGET_READLINE_LIBS
784HAVE_TCL
785TCL_SHLIB_SUFFIX
786TCL_STUB_LIB_SPEC
787TCL_STUB_LIB_FLAG
788TCL_STUB_LIB_FILE
789TCL_LIB_SPEC
790TCL_LIB_FLAG
791TCL_LIB_FILE
792TCL_INCLUDE_SPEC
793TCL_SRC_DIR
794TCL_BIN_DIR
795TCL_VERSION
796TARGET_EXEEXT
797SQLITE_OS_WIN
798SQLITE_OS_UNIX
799BUILD_EXEEXT
800TEMP_STORE
801ALLOWRELEASE
802SQLITE_THREADSAFE
803BUILD_CC
14696188 804HAVE_WASI_SDK
f922ca49 805RELEASE
806VERSION
807program_prefix
808TCLLIBDIR
809TCLSH_CMD
f922ca49 810INSTALL_DATA
811INSTALL_SCRIPT
812INSTALL_PROGRAM
22166f83 813CPP
f922ca49 814OTOOL64
815OTOOL
816LIPO
817NMEDIT
818DSYMUTIL
819lt_ECHO
820RANLIB
821STRIP
822AR
823OBJDUMP
824LN_S
825NM
826ac_ct_DUMPBIN
827DUMPBIN
828LD
829FGREP
830EGREP
831GREP
832SED
833OBJEXT
834EXEEXT
835ac_ct_CC
836CPPFLAGS
837LDFLAGS
838CFLAGS
839CC
840host_os
841host_vendor
842host_cpu
843host
844build_os
845build_vendor
846build_cpu
847build
848LIBTOOL
849target_alias
850host_alias
851build_alias
852LIBS
853ECHO_T
854ECHO_N
855ECHO_C
856DEFS
857mandir
858localedir
859libdir
860psdir
861pdfdir
862dvidir
863htmldir
864infodir
865docdir
866oldincludedir
867includedir
868localstatedir
869sharedstatedir
870sysconfdir
871datadir
872datarootdir
873libexecdir
874sbindir
875bindir
876program_transform_name
877prefix
878exec_prefix
879PACKAGE_URL
880PACKAGE_BUGREPORT
881PACKAGE_STRING
882PACKAGE_VERSION
883PACKAGE_TARNAME
884PACKAGE_NAME
885PATH_SEPARATOR
886SHELL'
84e6335c 887ac_subst_files=''
8b72747d 888ac_user_opts='
889enable_option_checking
890enable_shared
891enable_static
892with_pic
893enable_fast_install
894with_gnu_ld
895enable_libtool_lock
896enable_largefile
14696188 897with_wasi_sdk
8b72747d 898enable_threadsafe
8b72747d 899enable_releasemode
900enable_tempstore
901enable_tcl
902with_tcl
e44b835e 903enable_editline
8b72747d 904enable_readline
905with_readline_lib
906with_readline_inc
8525e2d9 907with_linenoise
8b72747d 908enable_debug
909enable_amalgamation
910enable_load_extension
e2ce8c44 911enable_math
9dbf96bd 912enable_json
42c93b5e 913enable_all
c530b9c6 914enable_memsys5
5d513ba0 915enable_memsys3
ce1d9f54 916enable_fts3
917enable_fts4
918enable_fts5
83bebddb 919enable_update_limit
748b8fda 920enable_geopoly
ce1d9f54 921enable_rtree
5e18d402 922enable_session
8b72747d 923enable_gcov
924'
925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931LIBS
932CPPFLAGS
22166f83 933CPP
6acb2cf6 934TCLLIBDIR'
8b72747d 935
75897234 936
937# Initialize some variables set by options.
71eb93ea 938ac_init_help=
939ac_init_version=false
8b72747d 940ac_unrecognized_opts=
941ac_unrecognized_sep=
75897234 942# The variables have the same names as the options, with
943# dashes changed to underlines.
71eb93ea 944cache_file=/dev/null
75897234 945exec_prefix=NONE
75897234 946no_create=
75897234 947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
75897234 955verbose=
956x_includes=NONE
957x_libraries=NONE
71eb93ea 958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
8b72747d 964# (The list follows the same order as the GNU Coding Standards.)
75897234 965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
8b72747d 968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
75897234 970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
75897234 973includedir='${prefix}/include'
974oldincludedir='/usr/include'
8b72747d 975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
75897234 984
75897234 985ac_prev=
8b72747d 986ac_dashdash=
75897234 987for ac_option
988do
75897234 989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
8b72747d 991 eval $ac_prev=\$ac_option
75897234 992 ac_prev=
993 continue
994 fi
995
8b72747d 996 case $ac_option in
f922ca49 997 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *=) ac_optarg= ;;
999 *) ac_optarg=yes ;;
8b72747d 1000 esac
75897234 1001
22166f83 1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1003
8b72747d 1004 case $ac_dashdash$ac_option in
1005 --)
1006 ac_dashdash=yes ;;
75897234 1007
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 ac_prev=bindir ;;
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
71eb93ea 1011 bindir=$ac_optarg ;;
75897234 1012
1013 -build | --build | --buil | --bui | --bu)
71eb93ea 1014 ac_prev=build_alias ;;
75897234 1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
71eb93ea 1016 build_alias=$ac_optarg ;;
75897234 1017
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
71eb93ea 1023 cache_file=$ac_optarg ;;
1024
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
75897234 1027
8b72747d 1028 -datadir | --datadir | --datadi | --datad)
75897234 1029 ac_prev=datadir ;;
8b72747d 1030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
71eb93ea 1031 datadir=$ac_optarg ;;
75897234 1032
8b72747d 1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1039
75897234 1040 -disable-* | --disable-*)
8b72747d 1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
75897234 1042 # Reject names that are not valid shell variable names.
8b72747d 1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22166f83 1044 as_fn_error $? "invalid feature name: $ac_useropt"
8b72747d 1045 ac_useropt_orig=$ac_useropt
22166f83 1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8b72747d 1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
75897234 1065
1066 -enable-* | --enable-*)
8b72747d 1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
75897234 1068 # Reject names that are not valid shell variable names.
8b72747d 1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22166f83 1070 as_fn_error $? "invalid feature name: $ac_useropt"
8b72747d 1071 ac_useropt_orig=$ac_useropt
22166f83 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8b72747d 1073 case $ac_user_opts in
1074 *"
1075"enable_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
636a995d 1079 esac
8b72747d 1080 eval enable_$ac_useropt=\$ac_optarg ;;
75897234 1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
71eb93ea 1089 exec_prefix=$ac_optarg ;;
75897234 1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
71eb93ea 1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
75897234 1101
1102 -host | --host | --hos | --ho)
71eb93ea 1103 ac_prev=host_alias ;;
75897234 1104 -host=* | --host=* | --hos=* | --ho=*)
71eb93ea 1105 host_alias=$ac_optarg ;;
75897234 1106
8b72747d 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
75897234 1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
71eb93ea 1118 includedir=$ac_optarg ;;
75897234 1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
71eb93ea 1123 infodir=$ac_optarg ;;
75897234 1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
71eb93ea 1128 libdir=$ac_optarg ;;
75897234 1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
71eb93ea 1135 libexecdir=$ac_optarg ;;
75897234 1136
8b72747d 1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
75897234 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
8b72747d 1143 | --localstate | --localstat | --localsta | --localst | --locals)
75897234 1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8b72747d 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
71eb93ea 1147 localstatedir=$ac_optarg ;;
75897234 1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
71eb93ea 1152 mandir=$ac_optarg ;;
75897234 1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
84e6335c 1159 | --no-cr | --no-c | -n)
75897234 1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
71eb93ea 1173 oldincludedir=$ac_optarg ;;
75897234 1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
71eb93ea 1178 prefix=$ac_optarg ;;
75897234 1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
71eb93ea 1185 program_prefix=$ac_optarg ;;
75897234 1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
71eb93ea 1192 program_suffix=$ac_optarg ;;
75897234 1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
71eb93ea 1209 program_transform_name=$ac_optarg ;;
75897234 1210
8b72747d 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
75897234 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
71eb93ea 1229 sbindir=$ac_optarg ;;
75897234 1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
71eb93ea 1240 sharedstatedir=$ac_optarg ;;
75897234 1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
71eb93ea 1245 site=$ac_optarg ;;
75897234 1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
71eb93ea 1250 srcdir=$ac_optarg ;;
75897234 1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
71eb93ea 1257 sysconfdir=$ac_optarg ;;
75897234 1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
71eb93ea 1260 ac_prev=target_alias ;;
75897234 1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
71eb93ea 1262 target_alias=$ac_optarg ;;
75897234 1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
71eb93ea 1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
75897234 1269
1270 -with-* | --with-*)
8b72747d 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
75897234 1272 # Reject names that are not valid shell variable names.
8b72747d 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22166f83 1274 as_fn_error $? "invalid package name: $ac_useropt"
8b72747d 1275 ac_useropt_orig=$ac_useropt
22166f83 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8b72747d 1277 case $ac_user_opts in
1278 *"
1279"with_$ac_useropt"
1280"*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
636a995d 1283 esac
8b72747d 1284 eval with_$ac_useropt=\$ac_optarg ;;
75897234 1285
1286 -without-* | --without-*)
8b72747d 1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
75897234 1288 # Reject names that are not valid shell variable names.
8b72747d 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22166f83 1290 as_fn_error $? "invalid package name: $ac_useropt"
8b72747d 1291 ac_useropt_orig=$ac_useropt
22166f83 1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8b72747d 1293 case $ac_user_opts in
1294 *"
1295"with_$ac_useropt"
1296"*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=no ;;
75897234 1301
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1305
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
71eb93ea 1311 x_includes=$ac_optarg ;;
75897234 1312
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
71eb93ea 1318 x_libraries=$ac_optarg ;;
75897234 1319
f922ca49 1320 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1321Try \`$0 --help' for more information"
75897234 1322 ;;
1323
71eb93ea 1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
f922ca49 1327 case $ac_envvar in #(
1328 '' | [0-9]* | *[!_$as_cr_alnum]* )
1329 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1330 esac
8b72747d 1331 eval $ac_envvar=\$ac_optarg
71eb93ea 1332 export $ac_envvar ;;
1333
75897234 1334 *)
71eb93ea 1335 # FIXME: should be removed in autoconf 3.0.
22166f83 1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
71eb93ea 1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
22166f83 1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
f922ca49 1339 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
75897234 1340 ;;
1341
1342 esac
1343done
1344
1345if test -n "$ac_prev"; then
71eb93ea 1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f922ca49 1347 as_fn_error $? "missing argument to $ac_option"
75897234 1348fi
75897234 1349
8b72747d 1350if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
f922ca49 1353 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
22166f83 1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
636a995d 1355 esac
8b72747d 1356fi
866108f8 1357
8b72747d 1358# Check all directory arguments for consistency.
1359for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
22166f83 1362 libdir localedir mandir
866108f8 1363do
8b72747d 1364 eval ac_val=\$$ac_var
1365 # Remove trailing slashes.
71eb93ea 1366 case $ac_val in
8b72747d 1367 */ )
1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369 eval $ac_var=\$ac_val;;
1370 esac
1371 # Be sure to have absolute directory names.
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
613a0fe4 1375 esac
f922ca49 1376 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
613a0fe4 1377done
1378
1379# There might be people who depend on the old broken behavior: `$host'
1380# used to hold the argument of --host etc.
1381# FIXME: To remove some day.
1382build=$build_alias
1383host=$host_alias
71eb93ea 1384target=$target_alias
1385
84e6335c 1386# FIXME: To remove some day.
71eb93ea 1387if test "x$host_alias" != x; then
1388 if test "x$build_alias" = x; then
1389 cross_compiling=maybe
71eb93ea 1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393fi
75897234 1394
71eb93ea 1395ac_tool_prefix=
1396test -n "$host_alias" && ac_tool_prefix=$host_alias-
75897234 1397
71eb93ea 1398test "$silent" = yes && exec 6>/dev/null
75897234 1399
84e6335c 1400
8b72747d 1401ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402ac_ls_di=`ls -di .` &&
1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f922ca49 1404 as_fn_error $? "working directory cannot be determined"
8b72747d 1405test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f922ca49 1406 as_fn_error $? "pwd does not report name of working directory"
8b72747d 1407
1408
1409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
22166f83 1418$as_echo X"$as_myself" |
8b72747d 1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
75897234 1436 srcdir=$ac_confdir
8b72747d 1437 if test ! -r "$srcdir/$ac_unique_file"; then
75897234 1438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
8b72747d 1443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f922ca49 1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
75897234 1446fi
8b72747d 1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
f922ca49 1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
8b72747d 1450 pwd)`
1451# When building in place, set srcdir=.
1452if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454fi
1455# Remove unnecessary trailing slashes from srcdir.
1456# Double slashes in file names in object file debugging info
1457# mess up M-x gdb in Emacs.
1458case $srcdir in
1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460esac
1461for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466done
71eb93ea 1467
1468#
1469# Report the --help message.
1470#
1471if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
84e6335c 1474 cat <<_ACEOF
0a626b2b 1475\`configure' configures sqlite 3.46.0 to adapt to many kinds of systems.
71eb93ea 1476
1477Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482Defaults for the options are specified in brackets.
1483
1484Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
f922ca49 1489 -q, --quiet, --silent do not print \`checking ...' messages
71eb93ea 1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
71eb93ea 1495Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
8b72747d 1497 [$ac_default_prefix]
71eb93ea 1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8b72747d 1499 [PREFIX]
71eb93ea 1500
1501By default, \`make install' will install all the files in
1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504for instance \`--prefix=\$HOME'.
1505
1506For better control, use the options below.
1507
1508Fine tuning of the installation directories:
8b72747d 1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
84e6335c 1528_ACEOF
71eb93ea 1529
84e6335c 1530 cat <<\_ACEOF
71eb93ea 1531
1532System types:
1533 --build=BUILD configure for building on BUILD [guessed]
84e6335c 1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535_ACEOF
71eb93ea 1536fi
1537
1538if test -n "$ac_init_help"; then
b87057f2 1539 case $ac_init_help in
0a626b2b 1540 short | recursive ) echo "Configuration of sqlite 3.46.0:";;
b87057f2 1541 esac
84e6335c 1542 cat <<\_ACEOF
71eb93ea 1543
1544Optional Features:
8b72747d 1545 --disable-option-checking ignore unrecognized --enable/--with options
71eb93ea 1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8b72747d 1548 --enable-shared[=PKGS] build shared libraries [default=yes]
1549 --enable-static[=PKGS] build static libraries [default=yes]
9bc8b93f 1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation [default=yes]
71eb93ea 1552 --disable-libtool-lock avoid locking (might break parallel builds)
636a995d 1553 --disable-largefile omit support for large files
05c7e0bd 1554 --disable-threadsafe Disable mutexing
94e4f82f 1555 --enable-releasemode Support libtool link to release mode
1556 --enable-tempstore Use an in-ram database for temporary tables
1557 (never,no,yes,always)
1558 --disable-tcl do not build TCL extension
e44b835e 1559 --enable-editline enable BSD editline support
1560 --disable-readline disable readline support
94e4f82f 1561 --enable-debug enable debugging & verbose explain
94984910 1562 --disable-amalgamation Disable the amalgamation and instead build all files
969b2cd7 1563 separately
05c7e0bd 1564 --disable-load-extension
1565 Disable loading of external extensions
f6e904bd 1566 --disable-math Disable math functions
9dbf96bd 1567 --disable-json Disable JSON functions
1568 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
c530b9c6 1569 --enable-memsys5 Enable MEMSYS5
5d513ba0 1570 --enable-memsys3 Enable MEMSYS3
ce1d9f54 1571 --enable-fts3 Enable the FTS3 extension
1572 --enable-fts4 Enable the FTS4 extension
1573 --enable-fts5 Enable the FTS5 extension
83bebddb 1574 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
748b8fda 1575 --enable-geopoly Enable the GEOPOLY extension
ce1d9f54 1576 --enable-rtree Enable the RTREE extension
5e18d402 1577 --enable-session Enable the SESSION extension
aac7b93e 1578 --enable-gcov Enable coverage testing using gcov
71eb93ea 1579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9bc8b93f 1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
636a995d 1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
14696188 1586 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1587 cross-compile to WASM.
94e4f82f 1588 --with-tcl=DIR directory containing tcl configuration
1589 (tclConfig.sh)
7f19c02f 1590 --with-readline-lib specify readline library
1591 --with-readline-inc specify readline include paths
8525e2d9 1592 --with-linenoise=DIR source directory for linenoise library
71eb93ea 1593
1594Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
8b72747d 1599 LIBS libraries to pass to the linker, e.g. -l<library>
f922ca49 1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
8b72747d 1601 you have headers in a nonstandard directory <include dir>
22166f83 1602 CPP C preprocessor
6acb2cf6 1603 TCLLIBDIR Where to install tcl plugin
71eb93ea 1604
1605Use these variables to override the choices made by `configure' or to help
1606it to find libraries and programs with nonstandard names/locations.
1607
f922ca49 1608Report bugs to the package provider.
84e6335c 1609_ACEOF
8b72747d 1610ac_status=$?
71eb93ea 1611fi
1612
1613if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
84e6335c 1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8b72747d 1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
84e6335c 1619 ac_builddir=.
1620
8b72747d 1621case "$ac_dir" in
1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623*)
22166f83 1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8b72747d 1625 # A ".." for each directory in $ac_dir_suffix.
22166f83 1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8b72747d 1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631esac
1632ac_abs_top_builddir=$ac_pwd
1633ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634# for backward compatibility:
1635ac_top_builddir=$ac_top_build_prefix
71eb93ea 1636
84e6335c 1637case $srcdir in
8b72747d 1638 .) # We are building in place.
84e6335c 1639 ac_srcdir=.
8b72747d 1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
84e6335c 1643 ac_srcdir=$srcdir$ac_dir_suffix;
8b72747d 1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
866108f8 1650esac
8b72747d 1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653 cd "$ac_dir" || { ac_status=$?; continue; }
22166f83 1654 # Check for guested configure.
8b72747d 1655 if test -f "$ac_srcdir/configure.gnu"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure" --help=recursive
71eb93ea 1661 else
22166f83 1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
8b72747d 1663 fi || ac_status=$?
1664 cd "$ac_pwd" || { ac_status=$?; break; }
71eb93ea 1665 done
1666fi
1667
8b72747d 1668test -n "$ac_init_help" && exit $ac_status
71eb93ea 1669if $ac_init_version; then
84e6335c 1670 cat <<\_ACEOF
0a626b2b 1671sqlite configure 3.46.0
22166f83 1672generated by GNU Autoconf 2.69
71eb93ea 1673
22166f83 1674Copyright (C) 2012 Free Software Foundation, Inc.
71eb93ea 1675This configure script is free software; the Free Software Foundation
1676gives unlimited permission to copy, distribute and modify it.
84e6335c 1677_ACEOF
8b72747d 1678 exit
71eb93ea 1679fi
710658c7 1680
f922ca49 1681## ------------------------ ##
1682## Autoconf initialization. ##
1683## ------------------------ ##
71eb93ea 1684
f922ca49 1685# ac_fn_c_try_compile LINENO
1686# --------------------------
1687# Try to compile conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_compile ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 1691 rm -f conftest.$ac_objext
f922ca49 1692 if { { ac_try="$ac_compile"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 1698$as_echo "$ac_try_echo"; } >&5
f922ca49 1699 (eval "$ac_compile") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
22166f83 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
22166f83 1710 } && test -s conftest.$ac_objext; then :
f922ca49 1711 ac_retval=0
22166f83 1712else
1713 $as_echo "$as_me: failed program was:" >&5
f922ca49 1714sed 's/^/| /' conftest.$ac_ext >&5
71eb93ea 1715
f922ca49 1716 ac_retval=1
1717fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_compile
1722
1723# ac_fn_c_try_link LINENO
1724# -----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_link ()
71eb93ea 1727{
f922ca49 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 1729 rm -f conftest.$ac_objext conftest$ac_exeext
f922ca49 1730 if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 1736$as_echo "$ac_try_echo"; } >&5
f922ca49 1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
22166f83 1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest$ac_exeext
22166f83 1751 }; then :
f922ca49 1752 ac_retval=0
22166f83 1753else
1754 $as_echo "$as_me: failed program was:" >&5
f922ca49 1755sed 's/^/| /' conftest.$ac_ext >&5
84e6335c 1756
f922ca49 1757 ac_retval=1
1758fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
84e6335c 1766
f922ca49 1767} # ac_fn_c_try_link
71eb93ea 1768
f922ca49 1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770# -------------------------------------------------------
1771# Tests whether HEADER exists and can be compiled using the include files in
1772# INCLUDES, setting the cache variable VAR accordingly.
1773ac_fn_c_check_header_compile ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780else
f922ca49 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h. */
1783$4
1784#include <$2>
1785_ACEOF
22166f83 1786if ac_fn_c_try_compile "$LINENO"; then :
f922ca49 1787 eval "$3=yes"
22166f83 1788else
f922ca49 1789 eval "$3=no"
1790fi
22166f83 1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f922ca49 1792fi
1793eval ac_res=\$$3
22166f83 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
f922ca49 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
84e6335c 1797
f922ca49 1798} # ac_fn_c_check_header_compile
84e6335c 1799
22166f83 1800# ac_fn_c_try_cpp LINENO
1801# ----------------------
1802# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_cpp ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_cpp
1836
1837# ac_fn_c_try_run LINENO
1838# ----------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840# that executables *can* be run.
1841ac_fn_c_try_run ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status
1872fi
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877} # ac_fn_c_try_run
1878
f922ca49 1879# ac_fn_c_check_func LINENO FUNC VAR
1880# ----------------------------------
1881# Tests whether FUNC exists, setting the cache variable VAR accordingly
1882ac_fn_c_check_func ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889else
f922ca49 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */
1892/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894#define $2 innocuous_$2
a9f39fde 1895
f922ca49 1896/* System header to define __stub macros and hopefully few prototypes,
22166f83 1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1900
1901#ifdef __STDC__
1902# include <limits.h>
1903#else
1904# include <assert.h>
1905#endif
f922ca49 1906
1907#undef $2
1908
1909/* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1912#ifdef __cplusplus
1913extern "C"
1914#endif
1915char $2 ();
1916/* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919#if defined __stub_$2 || defined __stub___$2
1920choke me
1921#endif
1922
1923int
22166f83 1924main ()
f922ca49 1925{
1926return $2 ();
1927 ;
1928 return 0;
1929}
1930_ACEOF
22166f83 1931if ac_fn_c_try_link "$LINENO"; then :
f922ca49 1932 eval "$3=yes"
22166f83 1933else
f922ca49 1934 eval "$3=no"
1935fi
22166f83 1936rm -f core conftest.err conftest.$ac_objext \
f922ca49 1937 conftest$ac_exeext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
22166f83 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
f922ca49 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944} # ac_fn_c_check_func
1945
1946# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947# -------------------------------------------
1948# Tests whether TYPE exists after having included INCLUDES, setting cache
1949# variable VAR accordingly.
1950ac_fn_c_check_type ()
1951{
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954$as_echo_n "checking for $2... " >&6; }
1955if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957else
f922ca49 1958 eval "$3=no"
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962int
22166f83 1963main ()
f922ca49 1964{
1965if (sizeof ($2))
1966 return 0;
1967 ;
1968 return 0;
1969}
1970_ACEOF
22166f83 1971if ac_fn_c_try_compile "$LINENO"; then :
f922ca49 1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
22166f83 1976main ()
f922ca49 1977{
1978if (sizeof (($2)))
1979 return 0;
1980 ;
1981 return 0;
1982}
1983_ACEOF
22166f83 1984if ac_fn_c_try_compile "$LINENO"; then :
f922ca49 1985
22166f83 1986else
f922ca49 1987 eval "$3=yes"
1988fi
22166f83 1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f922ca49 1990fi
22166f83 1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f922ca49 1992fi
1993eval ac_res=\$$3
22166f83 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995$as_echo "$ac_res" >&6; }
f922ca49 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998} # ac_fn_c_check_type
1999
22166f83 2000# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001# -------------------------------------------------------
2002# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003# the include files in INCLUDES and setting the cache variable VAR
2004# accordingly.
2005ac_fn_c_check_header_mongrel ()
2006{
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if eval \${$3+:} false; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013fi
2014eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017else
2018 # Is the header compilable?
2019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020$as_echo_n "checking $2 usability... " >&6; }
2021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024#include <$2>
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_header_compiler=yes
2028else
2029 ac_header_compiler=no
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033$as_echo "$ac_header_compiler" >&6; }
2034
2035# Is the header present?
2036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037$as_echo_n "checking $2 presence... " >&6; }
2038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040#include <$2>
2041_ACEOF
2042if ac_fn_c_try_cpp "$LINENO"; then :
2043 ac_header_preproc=yes
2044else
2045 ac_header_preproc=no
2046fi
2047rm -f conftest.err conftest.i conftest.$ac_ext
2048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049$as_echo "$ac_header_preproc" >&6; }
2050
2051# So? What about this header?
2052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2053 yes:no: )
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058 ;;
2059 no:yes:* )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2070 ;;
f922ca49 2071esac
22166f83 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073$as_echo_n "checking for $2... " >&6; }
2074if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076else
2077 eval "$3=\$ac_header_compiler"
2078fi
2079eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081$as_echo "$ac_res" >&6; }
2082fi
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f922ca49 2084
22166f83 2085} # ac_fn_c_check_header_mongrel
f922ca49 2086cat >config.log <<_ACEOF
2087This file contains any messages produced by compilers while
2088running configure, to aid debugging if configure makes a mistake.
2089
0a626b2b 2090It was created by sqlite $as_me 3.46.0, which was
22166f83 2091generated by GNU Autoconf 2.69. Invocation command line was
f922ca49 2092
22166f83 2093 $ $0 $@
f922ca49 2094
2095_ACEOF
2096exec 5>>config.log
2097{
2098cat <<_ASUNAME
2099## --------- ##
2100## Platform. ##
2101## --------- ##
2102
2103hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107uname -v = `(uname -v) 2>/dev/null || echo unknown`
2108
2109/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2111
2112/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2113/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2114/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2116/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2117/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2118/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2119
2120_ASUNAME
2121
2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123for as_dir in $PATH
2124do
2125 IFS=$as_save_IFS
22166f83 2126 test -z "$as_dir" && as_dir=.
2127 $as_echo "PATH: $as_dir"
f922ca49 2128 done
2129IFS=$as_save_IFS
2130
2131} >&5
2132
2133cat >&5 <<_ACEOF
2134
2135
2136## ----------- ##
2137## Core tests. ##
2138## ----------- ##
2139
2140_ACEOF
2141
2142
2143# Keep a trace of the command line.
2144# Strip out --no-create and --no-recursion so they do not pile up.
84e6335c 2145# Strip out --silent because we don't want to record it for future runs.
71eb93ea 2146# Also quote any args containing shell meta-characters.
84e6335c 2147# Make two passes to allow for proper duplicate-argument suppression.
71eb93ea 2148ac_configure_args=
84e6335c 2149ac_configure_args0=
2150ac_configure_args1=
84e6335c 2151ac_must_keep_next=false
2152for ac_pass in 1 2
71eb93ea 2153do
84e6335c 2154 for ac_arg
2155 do
2156 case $ac_arg in
2157 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159 | -silent | --silent | --silen | --sile | --sil)
2160 continue ;;
8b72747d 2161 *\'*)
22166f83 2162 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
84e6335c 2163 esac
2164 case $ac_pass in
f922ca49 2165 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
84e6335c 2166 2)
f922ca49 2167 as_fn_append ac_configure_args1 " '$ac_arg'"
84e6335c 2168 if test $ac_must_keep_next = true; then
964dbb1e 2169 ac_must_keep_next=false # Got value, back to normal.
84e6335c 2170 else
964dbb1e 2171 case $ac_arg in
2172 *=* | --config-cache | -C | -disable-* | --disable-* \
2173 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175 | -with-* | --with-* | -without-* | --without-* | --x)
2176 case "$ac_configure_args0 " in
2177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178 esac
2179 ;;
2180 -* ) ac_must_keep_next=true ;;
2181 esac
84e6335c 2182 fi
f922ca49 2183 as_fn_append ac_configure_args " '$ac_arg'"
84e6335c 2184 ;;
2185 esac
2186 done
2187done
f922ca49 2188{ ac_configure_args0=; unset ac_configure_args0;}
2189{ ac_configure_args1=; unset ac_configure_args1;}
84e6335c 2190
2191# When interrupted or exit'd, cleanup temporary files, and complete
2192# config.log. We remove comments because anyway the quotes in there
2193# would cause problems or look ugly.
8b72747d 2194# WARNING: Use '\'' to represent an apostrophe within the trap.
2195# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
84e6335c 2196trap 'exit_status=$?
71eb93ea 2197 # Save into config.log some information that might help in debugging.
84e6335c 2198 {
2199 echo
2200
22166f83 2201 $as_echo "## ---------------- ##
84e6335c 2202## Cache variables. ##
f922ca49 2203## ---------------- ##"
84e6335c 2204 echo
2205 # The following way of writing the cache mishandles newlines in values,
8b72747d 2206(
2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208 eval ac_val=\$$ac_var
2209 case $ac_val in #(
2210 *${as_nl}*)
2211 case $ac_var in #(
22166f83 2212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8b72747d 2214 esac
2215 case $ac_var in #(
2216 _ | IFS | as_nl) ;; #(
2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f922ca49 2218 *) { eval $ac_var=; unset $ac_var;} ;;
8b72747d 2219 esac ;;
2220 esac
2221 done
71eb93ea 2222 (set) 2>&1 |
8b72747d 2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224 *${as_nl}ac_space=\ *)
71eb93ea 2225 sed -n \
8b72747d 2226 "s/'\''/'\''\\\\'\'''\''/g;
2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228 ;; #(
71eb93ea 2229 *)
8b72747d 2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
71eb93ea 2231 ;;
8b72747d 2232 esac |
2233 sort
2234)
84e6335c 2235 echo
2236
22166f83 2237 $as_echo "## ----------------- ##
84e6335c 2238## Output variables. ##
f922ca49 2239## ----------------- ##"
84e6335c 2240 echo
2241 for ac_var in $ac_subst_vars
2242 do
8b72747d 2243 eval ac_val=\$$ac_var
2244 case $ac_val in
22166f83 2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
8b72747d 2246 esac
22166f83 2247 $as_echo "$ac_var='\''$ac_val'\''"
84e6335c 2248 done | sort
2249 echo
2250
2251 if test -n "$ac_subst_files"; then
22166f83 2252 $as_echo "## ------------------- ##
8b72747d 2253## File substitutions. ##
f922ca49 2254## ------------------- ##"
84e6335c 2255 echo
2256 for ac_var in $ac_subst_files
2257 do
8b72747d 2258 eval ac_val=\$$ac_var
2259 case $ac_val in
22166f83 2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
8b72747d 2261 esac
22166f83 2262 $as_echo "$ac_var='\''$ac_val'\''"
84e6335c 2263 done | sort
2264 echo
2265 fi
2266
2267 if test -s confdefs.h; then
22166f83 2268 $as_echo "## ----------- ##
84e6335c 2269## confdefs.h. ##
f922ca49 2270## ----------- ##"
84e6335c 2271 echo
8b72747d 2272 cat confdefs.h
84e6335c 2273 echo
2274 fi
2275 test "$ac_signal" != 0 &&
22166f83 2276 $as_echo "$as_me: caught signal $ac_signal"
2277 $as_echo "$as_me: exit $exit_status"
84e6335c 2278 } >&5
8b72747d 2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
71eb93ea 2281 exit $exit_status
8b72747d 2282' 0
71eb93ea 2283for ac_signal in 1 2 13 15; do
f922ca49 2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
71eb93ea 2285done
2286ac_signal=0
2287
2288# confdefs.h avoids OS command line length limits that DEFS can exceed.
8b72747d 2289rm -f -r conftest* confdefs.h
75897234 2290
22166f83 2291$as_echo "/* confdefs.h */" > confdefs.h
f922ca49 2292
84e6335c 2293# Predefined preprocessor variables.
2294
22166f83 2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_NAME "$PACKAGE_NAME"
2297_ACEOF
84e6335c 2298
22166f83 2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2301_ACEOF
84e6335c 2302
22166f83 2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_VERSION "$PACKAGE_VERSION"
2305_ACEOF
84e6335c 2306
22166f83 2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_STRING "$PACKAGE_STRING"
2309_ACEOF
84e6335c 2310
22166f83 2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313_ACEOF
a9f39fde 2314
22166f83 2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_URL "$PACKAGE_URL"
2317_ACEOF
f922ca49 2318
84e6335c 2319
71eb93ea 2320# Let the site file select an alternate cache file if it wants to.
8b72747d 2321# Prefer an explicitly selected file to automatically selected ones.
22166f83 2322ac_site_file1=NONE
2323ac_site_file2=NONE
8b72747d 2324if test -n "$CONFIG_SITE"; then
22166f83 2325 # We do not want a PATH search for config.site.
2326 case $CONFIG_SITE in #((
2327 -*) ac_site_file1=./$CONFIG_SITE;;
2328 */*) ac_site_file1=$CONFIG_SITE;;
2329 *) ac_site_file1=./$CONFIG_SITE;;
2330 esac
8b72747d 2331elif test "x$prefix" != xNONE; then
22166f83 2332 ac_site_file1=$prefix/share/config.site
2333 ac_site_file2=$prefix/etc/config.site
8b72747d 2334else
22166f83 2335 ac_site_file1=$ac_default_prefix/share/config.site
2336 ac_site_file2=$ac_default_prefix/etc/config.site
8b72747d 2337fi
22166f83 2338for ac_site_file in "$ac_site_file1" "$ac_site_file2"
8b72747d 2339do
22166f83 2340 test "x$ac_site_file" = xNONE && continue
2341 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343$as_echo "$as_me: loading site script $ac_site_file" >&6;}
84e6335c 2344 sed 's/^/| /' "$ac_site_file" >&5
f922ca49 2345 . "$ac_site_file" \
22166f83 2346 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f922ca49 2348as_fn_error $? "failed to load site script $ac_site_file
2349See \`config.log' for more details" "$LINENO" 5; }
75897234 2350 fi
2351done
2352
2353if test -r "$cache_file"; then
f922ca49 2354 # Some versions of bash will fail to source /dev/null (special files
2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
22166f83 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358$as_echo "$as_me: loading cache $cache_file" >&6;}
71eb93ea 2359 case $cache_file in
8b72747d 2360 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2361 *) . "./$cache_file";;
71eb93ea 2362 esac
2363 fi
75897234 2364else
22166f83 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366$as_echo "$as_me: creating cache $cache_file" >&6;}
71eb93ea 2367 >$cache_file
2368fi
2369
2370# Check that the precious variables saved in the cache have kept the same
2371# value.
2372ac_cache_corrupted=false
8b72747d 2373for ac_var in $ac_precious_vars; do
71eb93ea 2374 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2375 eval ac_new_set=\$ac_env_${ac_var}_set
8b72747d 2376 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2377 eval ac_new_val=\$ac_env_${ac_var}_value
71eb93ea 2378 case $ac_old_set,$ac_new_set in
2379 set,)
22166f83 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2381$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
71eb93ea 2382 ac_cache_corrupted=: ;;
2383 ,set)
22166f83 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2385$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
71eb93ea 2386 ac_cache_corrupted=: ;;
2387 ,);;
2388 *)
2389 if test "x$ac_old_val" != "x$ac_new_val"; then
8b72747d 2390 # differences in whitespace do not lead to failure.
2391 ac_old_val_w=`echo x $ac_old_val`
2392 ac_new_val_w=`echo x $ac_new_val`
2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
22166f83 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2395$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8b72747d 2396 ac_cache_corrupted=:
2397 else
22166f83 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2399$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
8b72747d 2400 eval $ac_var=\$ac_old_val
2401 fi
22166f83 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2403$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2405$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
71eb93ea 2406 fi;;
2407 esac
84e6335c 2408 # Pass precious variables to config.status.
71eb93ea 2409 if test "$ac_new_set" = set; then
2410 case $ac_new_val in
22166f83 2411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
84e6335c 2412 *) ac_arg=$ac_var=$ac_new_val ;;
2413 esac
2414 case " $ac_configure_args " in
2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
f922ca49 2416 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
71eb93ea 2417 esac
2418 fi
2419done
2420if $ac_cache_corrupted; then
22166f83 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2424$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2425 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
75897234 2426fi
f922ca49 2427## -------------------- ##
2428## Main body of script. ##
2429## -------------------- ##
84e6335c 2430
8b72747d 2431ac_ext=c
2432ac_cpp='$CPP $CPPFLAGS'
2433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435ac_compiler_gnu=$ac_cv_c_compiler_gnu
84e6335c 2436
2437
75897234 2438
04446100 2439sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
faa68dbb 2440if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
f922ca49 2441as_fn_error $? "configure script is out of date:
710658c7 2442 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2443 top level VERSION file = $sqlite_version_sanity_check
f922ca49 2444please regen with autoconf" "$LINENO" 5
faa68dbb 2445fi
2446
75897234 2447#########
71eb93ea 2448# Programs needed
75897234 2449#
636a995d 2450case `pwd` in
2451 *\ * | *\ *)
22166f83 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2453$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
636a995d 2454esac
2455
2456
2457
6acb2cf6 2458macro_version='2.2.6'
2459macro_revision='1.3012'
636a995d 2460
2461
2462
2463
2464
2465
9bc8b93f 2466
94984910 2467
9bc8b93f 2468
94984910 2469
94984910 2470
9bc8b93f 2471
636a995d 2472
f0962c9f 2473ltmain="$ac_aux_dir/ltmain.sh"
8b72747d 2474
22166f83 2475ac_aux_dir=
2476for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2477 if test -f "$ac_dir/install-sh"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/install-sh -c"
2480 break
2481 elif test -f "$ac_dir/install.sh"; then
2482 ac_aux_dir=$ac_dir
2483 ac_install_sh="$ac_aux_dir/install.sh -c"
2484 break
2485 elif test -f "$ac_dir/shtool"; then
2486 ac_aux_dir=$ac_dir
2487 ac_install_sh="$ac_aux_dir/shtool install -c"
2488 break
2489 fi
2490done
2491if test -z "$ac_aux_dir"; then
2492 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2493fi
2494
2495# These three variables are undocumented and unsupported,
2496# and are intended to be withdrawn in a future Autoconf release.
2497# They can cause serious problems if a builder's source tree is in a directory
2498# whose full name contains unusual characters.
2499ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
71eb93ea 2502
71eb93ea 2503
22166f83 2504# Make sure we can run config.sub.
2505$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2506 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
f0962c9f 2507
22166f83 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2509$as_echo_n "checking build system type... " >&6; }
2510if ${ac_cv_build+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512else
8b72747d 2513 ac_build_alias=$build_alias
2514test "x$ac_build_alias" = x &&
22166f83 2515 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
8b72747d 2516test "x$ac_build_alias" = x &&
f922ca49 2517 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
22166f83 2518ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
75897234 2520
75897234 2521fi
22166f83 2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2523$as_echo "$ac_cv_build" >&6; }
8b72747d 2524case $ac_cv_build in
2525*-*-*) ;;
f922ca49 2526*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8b72747d 2527esac
71eb93ea 2528build=$ac_cv_build
8b72747d 2529ac_save_IFS=$IFS; IFS='-'
2530set x $ac_cv_build
2531shift
2532build_cpu=$1
2533build_vendor=$2
2534shift; shift
2535# Remember, the first character of IFS is used to create $*,
2536# except with old shells:
2537build_os=$*
2538IFS=$ac_save_IFS
2539case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2540
2541
22166f83 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2543$as_echo_n "checking host system type... " >&6; }
2544if ${ac_cv_host+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546else
8b72747d 2547 if test "x$host_alias" = x; then
2548 ac_cv_host=$ac_cv_build
2549else
22166f83 2550 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
8b72747d 2552fi
75897234 2553
75897234 2554fi
22166f83 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2556$as_echo "$ac_cv_host" >&6; }
8b72747d 2557case $ac_cv_host in
2558*-*-*) ;;
f922ca49 2559*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8b72747d 2560esac
71eb93ea 2561host=$ac_cv_host
8b72747d 2562ac_save_IFS=$IFS; IFS='-'
2563set x $ac_cv_host
2564shift
2565host_cpu=$1
2566host_vendor=$2
2567shift; shift
2568# Remember, the first character of IFS is used to create $*,
2569# except with old shells:
2570host_os=$*
2571IFS=$ac_save_IFS
2572case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
75897234 2573
84e6335c 2574
71eb93ea 2575ac_ext=c
2576ac_cpp='$CPP $CPPFLAGS'
2577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2582set dummy ${ac_tool_prefix}gcc; ac_word=$2
22166f83 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584$as_echo_n "checking for $ac_word... " >&6; }
2585if ${ac_cv_prog_CC+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587else
75897234 2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590else
84e6335c 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594 IFS=$as_save_IFS
22166f83 2595 test -z "$as_dir" && as_dir=.
f922ca49 2596 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
84e6335c 2598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22166f83 2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 2600 break 2
2601 fi
2602done
f922ca49 2603 done
8b72747d 2604IFS=$as_save_IFS
71eb93ea 2605
2606fi
2607fi
2608CC=$ac_cv_prog_CC
2609if test -n "$CC"; then
22166f83 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611$as_echo "$CC" >&6; }
71eb93ea 2612else
22166f83 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614$as_echo "no" >&6; }
71eb93ea 2615fi
2616
8b72747d 2617
71eb93ea 2618fi
2619if test -z "$ac_cv_prog_CC"; then
2620 ac_ct_CC=$CC
2621 # Extract the first word of "gcc", so it can be a program name with args.
2622set dummy gcc; ac_word=$2
22166f83 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if ${ac_cv_prog_ac_ct_CC+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627else
71eb93ea 2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630else
84e6335c 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
22166f83 2635 test -z "$as_dir" && as_dir=.
f922ca49 2636 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
84e6335c 2638 ac_cv_prog_ac_ct_CC="gcc"
22166f83 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 2640 break 2
2641 fi
2642done
f922ca49 2643 done
8b72747d 2644IFS=$as_save_IFS
71eb93ea 2645
2646fi
2647fi
2648ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649if test -n "$ac_ct_CC"; then
22166f83 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651$as_echo "$ac_ct_CC" >&6; }
71eb93ea 2652else
22166f83 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
71eb93ea 2655fi
2656
8b72747d 2657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661yes:)
22166f83 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 2664ac_tool_warned=yes ;;
2665esac
2666 CC=$ac_ct_CC
2667 fi
71eb93ea 2668else
2669 CC="$ac_cv_prog_CC"
2670fi
2671
2672if test -z "$CC"; then
8b72747d 2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
71eb93ea 2675set dummy ${ac_tool_prefix}cc; ac_word=$2
22166f83 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677$as_echo_n "checking for $ac_word... " >&6; }
2678if ${ac_cv_prog_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680else
71eb93ea 2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
84e6335c 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
22166f83 2688 test -z "$as_dir" && as_dir=.
f922ca49 2689 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
84e6335c 2691 ac_cv_prog_CC="${ac_tool_prefix}cc"
22166f83 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 2693 break 2
2694 fi
2695done
f922ca49 2696 done
8b72747d 2697IFS=$as_save_IFS
71eb93ea 2698
2699fi
2700fi
2701CC=$ac_cv_prog_CC
2702if test -n "$CC"; then
22166f83 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704$as_echo "$CC" >&6; }
866108f8 2705else
22166f83 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
866108f8 2708fi
2709
866108f8 2710
8b72747d 2711 fi
71eb93ea 2712fi
2713if test -z "$CC"; then
2714 # Extract the first word of "cc", so it can be a program name with args.
2715set dummy cc; ac_word=$2
22166f83 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717$as_echo_n "checking for $ac_word... " >&6; }
2718if ${ac_cv_prog_CC+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720else
71eb93ea 2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723else
2724 ac_prog_rejected=no
84e6335c 2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728 IFS=$as_save_IFS
22166f83 2729 test -z "$as_dir" && as_dir=.
f922ca49 2730 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
84e6335c 2733 ac_prog_rejected=yes
2734 continue
2735 fi
2736 ac_cv_prog_CC="cc"
22166f83 2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 2738 break 2
2739 fi
2740done
f922ca49 2741 done
8b72747d 2742IFS=$as_save_IFS
71eb93ea 2743
2744if test $ac_prog_rejected = yes; then
2745 # We found a bogon in the path, so make sure we never use it.
2746 set dummy $ac_cv_prog_CC
2747 shift
2748 if test $# != 0; then
2749 # We chose a different compiler from the bogus one.
2750 # However, it has the same basename, so the bogon will be chosen
2751 # first if we set CC to just the basename; use the full file name.
2752 shift
22166f83 2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
71eb93ea 2754 fi
2755fi
2756fi
2757fi
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
22166f83 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761$as_echo "$CC" >&6; }
71eb93ea 2762else
22166f83 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
71eb93ea 2765fi
2766
8b72747d 2767
71eb93ea 2768fi
2769if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
8b72747d 2771 for ac_prog in cl.exe
71eb93ea 2772 do
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22166f83 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
71eb93ea 2779else
f0962c9f 2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
22166f83 2787 test -z "$as_dir" && as_dir=.
f0962c9f 2788 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0962c9f 2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
22166f83 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
f0962c9f 2804else
22166f83 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
f0962c9f 2807fi
2808
2809
22166f83 2810 test -n "$CC" && break
2811 done
f0962c9f 2812fi
22166f83 2813if test -z "$CC"; then
71eb93ea 2814 ac_ct_CC=$CC
22166f83 2815 for ac_prog in cl.exe
2816do
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818set dummy $ac_prog; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if ${ac_cv_prog_ac_ct_CC+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823else
71eb93ea 2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826else
84e6335c 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
22166f83 2831 test -z "$as_dir" && as_dir=.
f922ca49 2832 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC="$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 2836 break 2
2837 fi
2838done
f922ca49 2839 done
8b72747d 2840IFS=$as_save_IFS
71eb93ea 2841
2842fi
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
22166f83 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847$as_echo "$ac_ct_CC" >&6; }
71eb93ea 2848else
22166f83 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
71eb93ea 2851fi
2852
22166f83 2853
2854 test -n "$ac_ct_CC" && break
2855done
2856
8b72747d 2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861yes:)
22166f83 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 2864ac_tool_warned=yes ;;
2865esac
2866 CC=$ac_ct_CC
2867 fi
71eb93ea 2868fi
2869
2870fi
2871
84e6335c 2872
22166f83 2873test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f922ca49 2875as_fn_error $? "no acceptable C compiler found in \$PATH
2876See \`config.log' for more details" "$LINENO" 5; }
71eb93ea 2877
2878# Provide some information about the compiler.
22166f83 2879$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8b72747d 2880set X $ac_compile
2881ac_compiler=$2
22166f83 2882for ac_option in --version -v -V -qversion; do
f922ca49 2883 { { ac_try="$ac_compiler $ac_option >&5"
710658c7 2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
f922ca49 2888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 2889$as_echo "$ac_try_echo"; } >&5
f922ca49 2890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
710658c7 2891 ac_status=$?
f922ca49 2892 if test -s conftest.err; then
2893 sed '10a\
2894... rest of stderr output deleted ...
2895 10q' conftest.err >conftest.er1
2896 cat conftest.er1 >&5
2897 fi
2898 rm -f conftest.er1 conftest.err
22166f83 2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 2900 test $ac_status = 0; }
2901done
710658c7 2902
f922ca49 2903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
710658c7 2904/* end confdefs.h. */
71eb93ea 2905
2906int
22166f83 2907main ()
71eb93ea 2908{
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914ac_clean_files_save=$ac_clean_files
8b72747d 2915ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
71eb93ea 2916# Try to create an executable without -o first, disregard a.out.
2917# It will help us diagnose broken compilers, and finding out an intuition
2918# of exeext.
22166f83 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2920$as_echo_n "checking whether the C compiler works... " >&6; }
2921ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8b72747d 2922
2923# The possible output files:
2924ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2925
2926ac_rmfiles=
2927for ac_file in $ac_files
2928do
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 esac
2933done
2934rm -f $ac_rmfiles
2935
f922ca49 2936if { { ac_try="$ac_link_default"
8b72747d 2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
f922ca49 2941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 2942$as_echo "$ac_try_echo"; } >&5
8b72747d 2943 (eval "$ac_link_default") 2>&5
71eb93ea 2944 ac_status=$?
22166f83 2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; then :
8b72747d 2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949# in a Makefile. We should not override ac_cv_exeext if it was cached,
2950# so that the user can short-circuit this test for compilers unknown to
2951# Autoconf.
2952for ac_file in $ac_files ''
84e6335c 2953do
2954 test -f "$ac_file" || continue
71eb93ea 2955 case $ac_file in
8b72747d 2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
964dbb1e 2957 ;;
84e6335c 2958 [ab].out )
964dbb1e 2959 # We found the default executable, but exeext='' is most
2960 # certainly right.
2961 break;;
84e6335c 2962 *.* )
22166f83 2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8b72747d 2964 then :; else
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 fi
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2971 # actually working.
964dbb1e 2972 break;;
84e6335c 2973 * )
964dbb1e 2974 break;;
71eb93ea 2975 esac
2976done
8b72747d 2977test "$ac_cv_exeext" = no && ac_cv_exeext=
2978
22166f83 2979else
8b72747d 2980 ac_file=''
2981fi
22166f83 2982if test -z "$ac_file"; then :
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985$as_echo "$as_me: failed program was:" >&5
84e6335c 2986sed 's/^/| /' conftest.$ac_ext >&5
2987
22166f83 2988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f922ca49 2990as_fn_error 77 "C compiler cannot create executables
2991See \`config.log' for more details" "$LINENO" 5; }
22166f83 2992else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994$as_echo "yes" >&6; }
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2997$as_echo_n "checking for C compiler default output file name... " >&6; }
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2999$as_echo "$ac_file" >&6; }
71eb93ea 3000ac_exeext=$ac_cv_exeext
71eb93ea 3001
f922ca49 3002rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3003ac_clean_files=$ac_clean_files_save
22166f83 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3005$as_echo_n "checking for suffix of executables... " >&6; }
f922ca49 3006if { { ac_try="$ac_link"
3007case "(($ac_try" in
710658c7 3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
f922ca49 3011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 3012$as_echo "$ac_try_echo"; } >&5
f922ca49 3013 (eval "$ac_link") 2>&5
710658c7 3014 ac_status=$?
22166f83 3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
71eb93ea 3017 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3018# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3019# work properly (i.e., refer to `conftest.exe'), while it won't with
3020# `rm'.
84e6335c 3021for ac_file in conftest.exe conftest conftest.*; do
3022 test -f "$ac_file" || continue
71eb93ea 3023 case $ac_file in
8b72747d 3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
71eb93ea 3025 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
964dbb1e 3026 break;;
71eb93ea 3027 * ) break;;
3028 esac
3029done
22166f83 3030else
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f922ca49 3033as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3034See \`config.log' for more details" "$LINENO" 5; }
71eb93ea 3035fi
f922ca49 3036rm -f conftest conftest$ac_cv_exeext
22166f83 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3038$as_echo "$ac_cv_exeext" >&6; }
71eb93ea 3039
3040rm -f conftest.$ac_ext
3041EXEEXT=$ac_cv_exeext
3042ac_exeext=$EXEEXT
f922ca49 3043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h. */
3045#include <stdio.h>
3046int
22166f83 3047main ()
f922ca49 3048{
3049FILE *f = fopen ("conftest.out", "w");
3050 return ferror (f) || fclose (f) != 0;
3051
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056ac_clean_files="$ac_clean_files conftest.out"
3057# Check that the compiler produces executables we can run. If not, either
3058# the compiler is broken, or we cross compile.
22166f83 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3060$as_echo_n "checking whether we are cross compiling... " >&6; }
f922ca49 3061if test "$cross_compiling" != yes; then
3062 { { ac_try="$ac_link"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 3068$as_echo "$ac_try_echo"; } >&5
f922ca49 3069 (eval "$ac_link") 2>&5
3070 ac_status=$?
22166f83 3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 3072 test $ac_status = 0; }
3073 if { ac_try='./conftest$ac_cv_exeext'
3074 { { case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 3079$as_echo "$ac_try_echo"; } >&5
f922ca49 3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
22166f83 3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 3083 test $ac_status = 0; }; }; then
3084 cross_compiling=no
3085 else
3086 if test "$cross_compiling" = maybe; then
3087 cross_compiling=yes
3088 else
22166f83 3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091as_fn_error $? "cannot run C compiled programs.
f922ca49 3092If you meant to cross compile, use \`--host'.
3093See \`config.log' for more details" "$LINENO" 5; }
3094 fi
3095 fi
3096fi
22166f83 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3098$as_echo "$cross_compiling" >&6; }
f922ca49 3099
3100rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3101ac_clean_files=$ac_clean_files_save
22166f83 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3103$as_echo_n "checking for suffix of object files... " >&6; }
3104if ${ac_cv_objext+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106else
f922ca49 3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84e6335c 3108/* end confdefs.h. */
71eb93ea 3109
3110int
22166f83 3111main ()
71eb93ea 3112{
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.o conftest.obj
f922ca49 3119if { { ac_try="$ac_compile"
8b72747d 3120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
f922ca49 3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22166f83 3125$as_echo "$ac_try_echo"; } >&5
8b72747d 3126 (eval "$ac_compile") 2>&5
71eb93ea 3127 ac_status=$?
22166f83 3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
8b72747d 3130 for ac_file in conftest.o conftest.obj conftest.*; do
3131 test -f "$ac_file" || continue;
71eb93ea 3132 case $ac_file in
8b72747d 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
71eb93ea 3134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3135 break;;
3136 esac
3137done
22166f83 3138else
3139 $as_echo "$as_me: failed program was:" >&5
84e6335c 3140sed 's/^/| /' conftest.$ac_ext >&5
3141
22166f83 3142{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
f922ca49 3144as_fn_error $? "cannot compute suffix of object files: cannot compile
3145See \`config.log' for more details" "$LINENO" 5; }
71eb93ea 3146fi
71eb93ea 3147rm -f conftest.$ac_cv_objext conftest.$ac_ext
3148fi
22166f83 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3150$as_echo "$ac_cv_objext" >&6; }
71eb93ea 3151OBJEXT=$ac_cv_objext
3152ac_objext=$OBJEXT
22166f83 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3154$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3155if ${ac_cv_c_compiler_gnu+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157else
f922ca49 3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84e6335c 3159/* end confdefs.h. */
71eb93ea 3160
3161int
22166f83 3162main ()
71eb93ea 3163{
3164#ifndef __GNUC__
3165 choke me
3166#endif
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
22166f83 3172if ac_fn_c_try_compile "$LINENO"; then :
71eb93ea 3173 ac_compiler_gnu=yes
22166f83 3174else
f922ca49 3175 ac_compiler_gnu=no
71eb93ea 3176fi
22166f83 3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71eb93ea 3178ac_cv_c_compiler_gnu=$ac_compiler_gnu
3179
3180fi
22166f83 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3182$as_echo "$ac_cv_c_compiler_gnu" >&6; }
8b72747d 3183if test $ac_compiler_gnu = yes; then
3184 GCC=yes
3185else
3186 GCC=
3187fi
22166f83 3188ac_test_CFLAGS=${CFLAGS+set}
71eb93ea 3189ac_save_CFLAGS=$CFLAGS
22166f83 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3191$as_echo_n "checking whether $CC accepts -g... " >&6; }
3192if ${ac_cv_prog_cc_g+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194else
8b72747d 3195 ac_save_c_werror_flag=$ac_c_werror_flag
3196 ac_c_werror_flag=yes
3197 ac_cv_prog_cc_g=no
3198 CFLAGS="-g"
f922ca49 3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84e6335c 3200/* end confdefs.h. */
71eb93ea 3201
3202int
22166f83 3203main ()
71eb93ea 3204{
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
22166f83 3210if ac_fn_c_try_compile "$LINENO"; then :
8b72747d 3211 ac_cv_prog_cc_g=yes
22166f83 3212else
f922ca49 3213 CFLAGS=""
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8b72747d 3215/* end confdefs.h. */
3216
3217int
22166f83 3218main ()
8b72747d 3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
22166f83 3225if ac_fn_c_try_compile "$LINENO"; then :
710658c7 3226
22166f83 3227else
f922ca49 3228 ac_c_werror_flag=$ac_save_c_werror_flag
8b72747d 3229 CFLAGS="-g"
f922ca49 3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8b72747d 3231/* end confdefs.h. */
3232
3233int
22166f83 3234main ()
8b72747d 3235{
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
22166f83 3241if ac_fn_c_try_compile "$LINENO"; then :
71eb93ea 3242 ac_cv_prog_cc_g=yes
8b72747d 3243fi
22166f83 3244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8b72747d 3245fi
22166f83 3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94984910 3247fi
22166f83 3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8b72747d 3249 ac_c_werror_flag=$ac_save_c_werror_flag
71eb93ea 3250fi
22166f83 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3252$as_echo "$ac_cv_prog_cc_g" >&6; }
3253if test "$ac_test_CFLAGS" = set; then
71eb93ea 3254 CFLAGS=$ac_save_CFLAGS
3255elif test $ac_cv_prog_cc_g = yes; then
3256 if test "$GCC" = yes; then
3257 CFLAGS="-g -O2"
3258 else
3259 CFLAGS="-g"
3260 fi
3261else
3262 if test "$GCC" = yes; then
3263 CFLAGS="-O2"
3264 else
3265 CFLAGS=
3266 fi
3267fi
22166f83 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3269$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3270if ${ac_cv_prog_cc_c89+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272else
3273 ac_cv_prog_cc_c89=no
84e6335c 3274ac_save_CC=$CC
f922ca49 3275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84e6335c 3276/* end confdefs.h. */
22166f83 3277#include <stdarg.h>
3278#include <stdio.h>
3279struct stat;
3280/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3281struct buf { int x; };
3282FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283static char *e (p, i)
3284 char **p;
3285 int i;
3286{
3287 return p[i];
3288}
3289static char *f (char * (*g) (char **, int), char **p, ...)
3290{
3291 char *s;
3292 va_list v;
3293 va_start (v,p);
3294 s = g (p, va_arg (v,int));
3295 va_end (v);
3296 return s;
3297}
964dbb1e 3298
22166f83 3299/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3300 function prototypes and stuff, but not '\xHH' hex character constants.
3301 These don't provoke an error unfortunately, instead are silently treated
3302 as 'x'. The following induces an error, until -std is added to get
3303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3304 array size at least. It's necessary to write '\x00'==0 to get something
3305 that's true only with -std. */
3306int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8b72747d 3307
22166f83 3308/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3309 inside strings and character constants. */
3310#define FOO(x) 'x'
3311int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312
3313int test (int i, double x);
3314struct s1 {int (*f) (int a);};
3315struct s2 {int (*f) (double a);};
3316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317int argc;
3318char **argv;
3319int
3320main ()
3321{
3322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 ;
3324 return 0;
3325}
84e6335c 3326_ACEOF
22166f83 3327for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
84e6335c 3329do
3330 CC="$ac_save_CC $ac_arg"
22166f83 3331 if ac_fn_c_try_compile "$LINENO"; then :
8b72747d 3332 ac_cv_prog_cc_c89=$ac_arg
84e6335c 3333fi
22166f83 3334rm -f core conftest.err conftest.$ac_objext
8b72747d 3335 test "x$ac_cv_prog_cc_c89" != "xno" && break
84e6335c 3336done
8b72747d 3337rm -f conftest.$ac_ext
84e6335c 3338CC=$ac_save_CC
84e6335c 3339
f0962c9f 3340fi
22166f83 3341# AC_CACHE_VAL
3342case "x$ac_cv_prog_cc_c89" in
3343 x)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3345$as_echo "none needed" >&6; } ;;
3346 xno)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3348$as_echo "unsupported" >&6; } ;;
3349 *)
3350 CC="$CC $ac_cv_prog_cc_c89"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3352$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3353esac
3354if test "x$ac_cv_prog_cc_c89" != xno; then :
3355
f922ca49 3356fi
8b72747d 3357
3358ac_ext=c
3359ac_cpp='$CPP $CPPFLAGS'
3360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363
22166f83 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3365$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3366if ${ac_cv_path_SED+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368else
8b72747d 3369 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3370 for ac_i in 1 2 3 4 5 6 7; do
3371 ac_script="$ac_script$as_nl$ac_script"
3372 done
3373 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
f922ca49 3374 { ac_script=; unset ac_script;}
8b72747d 3375 if test -z "$SED"; then
3376 ac_path_SED_found=false
3377 # Loop through the user's path and test for each of PROGNAME-LIST
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
94984910 3380do
3381 IFS=$as_save_IFS
22166f83 3382 test -z "$as_dir" && as_dir=.
3383 for ac_prog in sed gsed; do
636a995d 3384 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 3385 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
f922ca49 3386 as_fn_executable_p "$ac_path_SED" || continue
8b72747d 3387# Check for GNU ac_path_SED and select it if it is found.
3388 # Check for GNU $ac_path_SED
3389case `"$ac_path_SED" --version 2>&1` in
3390*GNU*)
3391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3392*)
3393 ac_count=0
22166f83 3394 $as_echo_n 0123456789 >"conftest.in"
8b72747d 3395 while :
3396 do
3397 cat "conftest.in" "conftest.in" >"conftest.tmp"
3398 mv "conftest.tmp" "conftest.in"
3399 cp "conftest.in" "conftest.nl"
22166f83 3400 $as_echo '' >> "conftest.nl"
8b72747d 3401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
f922ca49 3403 as_fn_arith $ac_count + 1 && ac_count=$as_val
8b72747d 3404 if test $ac_count -gt ${ac_path_SED_max-0}; then
3405 # Best one so far, save it but keep looking for a better one
3406 ac_cv_path_SED="$ac_path_SED"
3407 ac_path_SED_max=$ac_count
3408 fi
3409 # 10*(2^10) chars as input seems more than enough
3410 test $ac_count -gt 10 && break
3411 done
3412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413esac
3414
3415 $ac_path_SED_found && break 3
636a995d 3416 done
94984910 3417 done
f922ca49 3418 done
94984910 3419IFS=$as_save_IFS
8b72747d 3420 if test -z "$ac_cv_path_SED"; then
f922ca49 3421 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
636a995d 3422 fi
8b72747d 3423else
3424 ac_cv_path_SED=$SED
94984910 3425fi
94984910 3426
8b72747d 3427fi
22166f83 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3429$as_echo "$ac_cv_path_SED" >&6; }
8b72747d 3430 SED="$ac_cv_path_SED"
3431 rm -f conftest.sed
94984910 3432
866108f8 3433test -z "$SED" && SED=sed
3434Xsed="$SED -e 1s/^X//"
94984910 3435
9bc8b93f 3436
84e6335c 3437
636a995d 3438
866108f8 3439
3440
3441
3442
3443
3444
3445
22166f83 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3447$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3448if ${ac_cv_path_GREP+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450else
8b72747d 3451 if test -z "$GREP"; then
3452 ac_path_GREP_found=false
3453 # Loop through the user's path and test for each of PROGNAME-LIST
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3456do
3457 IFS=$as_save_IFS
22166f83 3458 test -z "$as_dir" && as_dir=.
3459 for ac_prog in grep ggrep; do
8b72747d 3460 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 3461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
f922ca49 3462 as_fn_executable_p "$ac_path_GREP" || continue
8b72747d 3463# Check for GNU ac_path_GREP and select it if it is found.
3464 # Check for GNU $ac_path_GREP
3465case `"$ac_path_GREP" --version 2>&1` in
3466*GNU*)
3467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3468*)
3469 ac_count=0
22166f83 3470 $as_echo_n 0123456789 >"conftest.in"
8b72747d 3471 while :
3472 do
3473 cat "conftest.in" "conftest.in" >"conftest.tmp"
3474 mv "conftest.tmp" "conftest.in"
3475 cp "conftest.in" "conftest.nl"
22166f83 3476 $as_echo 'GREP' >> "conftest.nl"
8b72747d 3477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
f922ca49 3479 as_fn_arith $ac_count + 1 && ac_count=$as_val
8b72747d 3480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3481 # Best one so far, save it but keep looking for a better one
3482 ac_cv_path_GREP="$ac_path_GREP"
3483 ac_path_GREP_max=$ac_count
3484 fi
3485 # 10*(2^10) chars as input seems more than enough
3486 test $ac_count -gt 10 && break
3487 done
3488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3489esac
3490
3491 $ac_path_GREP_found && break 3
3492 done
3493 done
f922ca49 3494 done
8b72747d 3495IFS=$as_save_IFS
3496 if test -z "$ac_cv_path_GREP"; then
f922ca49 3497 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8b72747d 3498 fi
3499else
3500 ac_cv_path_GREP=$GREP
3501fi
3502
3503fi
22166f83 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3505$as_echo "$ac_cv_path_GREP" >&6; }
8b72747d 3506 GREP="$ac_cv_path_GREP"
3507
3508
22166f83 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3510$as_echo_n "checking for egrep... " >&6; }
3511if ${ac_cv_path_EGREP+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513else
8b72747d 3514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3515 then ac_cv_path_EGREP="$GREP -E"
3516 else
3517 if test -z "$EGREP"; then
3518 ac_path_EGREP_found=false
3519 # Loop through the user's path and test for each of PROGNAME-LIST
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3522do
3523 IFS=$as_save_IFS
22166f83 3524 test -z "$as_dir" && as_dir=.
3525 for ac_prog in egrep; do
8b72747d 3526 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 3527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
f922ca49 3528 as_fn_executable_p "$ac_path_EGREP" || continue
8b72747d 3529# Check for GNU ac_path_EGREP and select it if it is found.
3530 # Check for GNU $ac_path_EGREP
3531case `"$ac_path_EGREP" --version 2>&1` in
3532*GNU*)
3533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3534*)
3535 ac_count=0
22166f83 3536 $as_echo_n 0123456789 >"conftest.in"
8b72747d 3537 while :
3538 do
3539 cat "conftest.in" "conftest.in" >"conftest.tmp"
3540 mv "conftest.tmp" "conftest.in"
3541 cp "conftest.in" "conftest.nl"
22166f83 3542 $as_echo 'EGREP' >> "conftest.nl"
8b72747d 3543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
f922ca49 3545 as_fn_arith $ac_count + 1 && ac_count=$as_val
8b72747d 3546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3547 # Best one so far, save it but keep looking for a better one
3548 ac_cv_path_EGREP="$ac_path_EGREP"
3549 ac_path_EGREP_max=$ac_count
866108f8 3550 fi
8b72747d 3551 # 10*(2^10) chars as input seems more than enough
3552 test $ac_count -gt 10 && break
3553 done
3554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3555esac
3556
3557 $ac_path_EGREP_found && break 3
3558 done
3559 done
f922ca49 3560 done
8b72747d 3561IFS=$as_save_IFS
3562 if test -z "$ac_cv_path_EGREP"; then
f922ca49 3563 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8b72747d 3564 fi
3565else
3566 ac_cv_path_EGREP=$EGREP
3567fi
3568
3569 fi
636a995d 3570fi
22166f83 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3572$as_echo "$ac_cv_path_EGREP" >&6; }
8b72747d 3573 EGREP="$ac_cv_path_EGREP"
636a995d 3574
866108f8 3575
22166f83 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3577$as_echo_n "checking for fgrep... " >&6; }
3578if ${ac_cv_path_FGREP+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580else
8b72747d 3581 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3582 then ac_cv_path_FGREP="$GREP -F"
3583 else
3584 if test -z "$FGREP"; then
3585 ac_path_FGREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3589do
3590 IFS=$as_save_IFS
22166f83 3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in fgrep; do
8b72747d 3593 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 3594 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
f922ca49 3595 as_fn_executable_p "$ac_path_FGREP" || continue
8b72747d 3596# Check for GNU ac_path_FGREP and select it if it is found.
3597 # Check for GNU $ac_path_FGREP
3598case `"$ac_path_FGREP" --version 2>&1` in
3599*GNU*)
3600 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3601*)
3602 ac_count=0
22166f83 3603 $as_echo_n 0123456789 >"conftest.in"
8b72747d 3604 while :
3605 do
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
22166f83 3609 $as_echo 'FGREP' >> "conftest.nl"
8b72747d 3610 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
f922ca49 3612 as_fn_arith $ac_count + 1 && ac_count=$as_val
8b72747d 3613 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_FGREP="$ac_path_FGREP"
3616 ac_path_FGREP_max=$ac_count
866108f8 3617 fi
8b72747d 3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3620 done
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622esac
3623
3624 $ac_path_FGREP_found && break 3
3625 done
3626 done
f922ca49 3627 done
8b72747d 3628IFS=$as_save_IFS
3629 if test -z "$ac_cv_path_FGREP"; then
f922ca49 3630 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8b72747d 3631 fi
3632else
3633 ac_cv_path_FGREP=$FGREP
3634fi
3635
3636 fi
636a995d 3637fi
22166f83 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3639$as_echo "$ac_cv_path_FGREP" >&6; }
8b72747d 3640 FGREP="$ac_cv_path_FGREP"
636a995d 3641
3642
3643test -z "$GREP" && GREP=grep
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
8b72747d 3663# Check whether --with-gnu-ld was given.
22166f83 3664if test "${with_gnu_ld+set}" = set; then :
8b72747d 3665 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22166f83 3666else
636a995d 3667 with_gnu_ld=no
8b72747d 3668fi
3669
636a995d 3670ac_prog=ld
3671if test "$GCC" = yes; then
71eb93ea 3672 # Check if gcc -print-prog-name=ld gives a path.
22166f83 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3674$as_echo_n "checking for ld used by $CC... " >&6; }
71eb93ea 3675 case $host in
3676 *-*-mingw*)
3677 # gcc leaves a trailing carriage return which upsets mingw
3678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3679 *)
3680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3681 esac
3682 case $ac_prog in
3683 # Accept absolute paths.
9bc8b93f 3684 [\\/]* | ?:[\\/]*)
71eb93ea 3685 re_direlt='/[^/][^/]*/\.\./'
9bc8b93f 3686 # Canonicalize the pathname of ld
636a995d 3687 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3688 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3689 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
71eb93ea 3690 done
3691 test -z "$LD" && LD="$ac_prog"
3692 ;;
3693 "")
3694 # If it fails, then pretend we aren't using GCC.
3695 ac_prog=ld
3696 ;;
3697 *)
3698 # If it is relative, then search for the first ld in PATH.
3699 with_gnu_ld=unknown
3700 ;;
3701 esac
3702elif test "$with_gnu_ld" = yes; then
22166f83 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3704$as_echo_n "checking for GNU ld... " >&6; }
71eb93ea 3705else
22166f83 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3707$as_echo_n "checking for non-GNU ld... " >&6; }
71eb93ea 3708fi
22166f83 3709if ${lt_cv_path_LD+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711else
71eb93ea 3712 if test -z "$LD"; then
9bc8b93f 3713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
71eb93ea 3714 for ac_dir in $PATH; do
9bc8b93f 3715 IFS="$lt_save_ifs"
71eb93ea 3716 test -z "$ac_dir" && ac_dir=.
3717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3718 lt_cv_path_LD="$ac_dir/$ac_prog"
3719 # Check to see if the program is GNU ld. I'd rather use --version,
7f19c02f 3720 # but apparently some variants of GNU ld only accept -v.
71eb93ea 3721 # Break only if it was the GNU/non-GNU ld that we prefer.
9bc8b93f 3722 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3723 *GNU* | *'with BFD'*)
71eb93ea 3724 test "$with_gnu_ld" != no && break
9bc8b93f 3725 ;;
3726 *)
71eb93ea 3727 test "$with_gnu_ld" != yes && break
9bc8b93f 3728 ;;
3729 esac
71eb93ea 3730 fi
3731 done
9bc8b93f 3732 IFS="$lt_save_ifs"
71eb93ea 3733else
3734 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3735fi
3736fi
3737
3738LD="$lt_cv_path_LD"
3739if test -n "$LD"; then
22166f83 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3741$as_echo "$LD" >&6; }
71eb93ea 3742else
22166f83 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744$as_echo "no" >&6; }
71eb93ea 3745fi
f922ca49 3746test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22166f83 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3748$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3749if ${lt_cv_prog_gnu_ld+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751else
7f19c02f 3752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9bc8b93f 3753case `$LD -v 2>&1 </dev/null` in
3754*GNU* | *'with BFD'*)
71eb93ea 3755 lt_cv_prog_gnu_ld=yes
9bc8b93f 3756 ;;
3757*)
71eb93ea 3758 lt_cv_prog_gnu_ld=no
9bc8b93f 3759 ;;
3760esac
71eb93ea 3761fi
22166f83 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3763$as_echo "$lt_cv_prog_gnu_ld" >&6; }
71eb93ea 3764with_gnu_ld=$lt_cv_prog_gnu_ld
3765
84e6335c 3766
71eb93ea 3767
636a995d 3768
3769
3770
3771
3772
3773
22166f83 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3775$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3776if ${lt_cv_path_NM+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778else
71eb93ea 3779 if test -n "$NM"; then
3780 # Let the user override the test.
3781 lt_cv_path_NM="$NM"
3782else
7f19c02f 3783 lt_nm_to_check="${ac_tool_prefix}nm"
3784 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3785 lt_nm_to_check="$lt_nm_to_check nm"
3786 fi
3787 for lt_tmp_nm in $lt_nm_to_check; do
3788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3789 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3790 IFS="$lt_save_ifs"
3791 test -z "$ac_dir" && ac_dir=.
3792 tmp_nm="$ac_dir/$lt_tmp_nm"
3793 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3794 # Check to see if the nm accepts a BSD-compat flag.
3795 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3796 # nm: unknown option "B" ignored
3797 # Tru64's nm complains that /dev/null is an invalid object file
3798 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3799 */dev/null* | *'Invalid file or object type'*)
3800 lt_cv_path_NM="$tmp_nm -B"
9bc8b93f 3801 break
3802 ;;
3803 *)
7f19c02f 3804 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3805 */dev/null*)
3806 lt_cv_path_NM="$tmp_nm -p"
3807 break
3808 ;;
3809 *)
3810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3811 continue # so that we can try to find one that supports BSD flags
3812 ;;
3813 esac
9bc8b93f 3814 ;;
3815 esac
7f19c02f 3816 fi
3817 done
3818 IFS="$lt_save_ifs"
71eb93ea 3819 done
636a995d 3820 : ${lt_cv_path_NM=no}
71eb93ea 3821fi
3822fi
22166f83 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3824$as_echo "$lt_cv_path_NM" >&6; }
636a995d 3825if test "$lt_cv_path_NM" != "no"; then
3826 NM="$lt_cv_path_NM"
3827else
3828 # Didn't find any BSD compatible name lister, look for dumpbin.
3829 if test -n "$ac_tool_prefix"; then
3830 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3831 do
3832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22166f83 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835$as_echo_n "checking for $ac_word... " >&6; }
3836if ${ac_cv_prog_DUMPBIN+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838else
636a995d 3839 if test -n "$DUMPBIN"; then
3840 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3841else
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845 IFS=$as_save_IFS
22166f83 3846 test -z "$as_dir" && as_dir=.
f922ca49 3847 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 3849 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
22166f83 3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 3851 break 2
3852 fi
3853done
f922ca49 3854 done
8b72747d 3855IFS=$as_save_IFS
84e6335c 3856
636a995d 3857fi
3858fi
3859DUMPBIN=$ac_cv_prog_DUMPBIN
3860if test -n "$DUMPBIN"; then
22166f83 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3862$as_echo "$DUMPBIN" >&6; }
84e6335c 3863else
22166f83 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865$as_echo "no" >&6; }
84e6335c 3866fi
3867
8b72747d 3868
636a995d 3869 test -n "$DUMPBIN" && break
3870 done
3871fi
3872if test -z "$DUMPBIN"; then
3873 ac_ct_DUMPBIN=$DUMPBIN
3874 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3875do
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877set dummy $ac_prog; ac_word=$2
22166f83 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879$as_echo_n "checking for $ac_word... " >&6; }
3880if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882else
636a995d 3883 if test -n "$ac_ct_DUMPBIN"; then
3884 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3885else
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
22166f83 3890 test -z "$as_dir" && as_dir=.
f922ca49 3891 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 3892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 3893 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
22166f83 3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 3895 break 2
3896 fi
3897done
f922ca49 3898 done
8b72747d 3899IFS=$as_save_IFS
71eb93ea 3900
636a995d 3901fi
3902fi
3903ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3904if test -n "$ac_ct_DUMPBIN"; then
22166f83 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3906$as_echo "$ac_ct_DUMPBIN" >&6; }
636a995d 3907else
22166f83 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909$as_echo "no" >&6; }
636a995d 3910fi
71eb93ea 3911
8b72747d 3912
636a995d 3913 test -n "$ac_ct_DUMPBIN" && break
3914done
9bc8b93f 3915
8b72747d 3916 if test "x$ac_ct_DUMPBIN" = x; then
3917 DUMPBIN=":"
3918 else
3919 case $cross_compiling:$ac_tool_warned in
3920yes:)
22166f83 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 3923ac_tool_warned=yes ;;
3924esac
3925 DUMPBIN=$ac_ct_DUMPBIN
3926 fi
636a995d 3927fi
71eb93ea 3928
71eb93ea 3929
636a995d 3930 if test "$DUMPBIN" != ":"; then
3931 NM="$DUMPBIN"
71eb93ea 3932 fi
636a995d 3933fi
3934test -z "$NM" && NM=nm
71eb93ea 3935
71eb93ea 3936
9bc8b93f 3937
7f19c02f 3938
71eb93ea 3939
71eb93ea 3940
22166f83 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3942$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3943if ${lt_cv_nm_interface+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945else
636a995d 3946 lt_cv_nm_interface="BSD nm"
3947 echo "int some_variable = 0;" > conftest.$ac_ext
8525e2d9 3948 (eval echo "\"\$as_me:3948: $ac_compile\"" >&5)
636a995d 3949 (eval "$ac_compile" 2>conftest.err)
3950 cat conftest.err >&5
8525e2d9 3951 (eval echo "\"\$as_me:3951: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
636a995d 3952 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3953 cat conftest.err >&5
8525e2d9 3954 (eval echo "\"\$as_me:3954: output\"" >&5)
636a995d 3955 cat conftest.out >&5
3956 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3957 lt_cv_nm_interface="MS dumpbin"
71eb93ea 3958 fi
636a995d 3959 rm -f conftest*
3960fi
22166f83 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3962$as_echo "$lt_cv_nm_interface" >&6; }
71eb93ea 3963
22166f83 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3965$as_echo_n "checking whether ln -s works... " >&6; }
636a995d 3966LN_S=$as_ln_s
3967if test "$LN_S" = "ln -s"; then
22166f83 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969$as_echo "yes" >&6; }
636a995d 3970else
22166f83 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3972$as_echo "no, using $LN_S" >&6; }
636a995d 3973fi
9bc8b93f 3974
636a995d 3975# find the maximum length of command line arguments
22166f83 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3977$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3978if ${lt_cv_sys_max_cmd_len+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980else
636a995d 3981 i=0
3982 teststring="ABCD"
71eb93ea 3983
636a995d 3984 case $build_os in
3985 msdosdjgpp*)
3986 # On DJGPP, this test can blow up pretty badly due to problems in libc
3987 # (any single argument exceeding 2000 bytes causes a buffer overrun
3988 # during glob expansion). Even if it were fixed, the result of this
3989 # check would be larger than it should be.
3990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3991 ;;
71eb93ea 3992
636a995d 3993 gnu*)
3994 # Under GNU Hurd, this test is not required because there is
3995 # no limit to the length of command line arguments.
3996 # Libtool will interpret -1 as no limit whatsoever
3997 lt_cv_sys_max_cmd_len=-1;
3998 ;;
84e6335c 3999
6acb2cf6 4000 cygwin* | mingw* | cegcc*)
636a995d 4001 # On Win9x/ME, this test blows up -- it succeeds, but takes
4002 # about 5 minutes as the teststring grows exponentially.
4003 # Worse, since 9x/ME are not pre-emptively multitasking,
4004 # you end up with a "frozen" computer, even though with patience
4005 # the test eventually succeeds (with a max line length of 256k).
4006 # Instead, let's just punt: use the minimum linelength reported by
4007 # all of the supported platforms: 8192 (on NT/2K/XP).
4008 lt_cv_sys_max_cmd_len=8192;
71eb93ea 4009 ;;
636a995d 4010
4011 amigaos*)
4012 # On AmigaOS with pdksh, this test takes hours, literally.
4013 # So we just punt and use a minimum line length of 8192.
4014 lt_cv_sys_max_cmd_len=8192;
71eb93ea 4015 ;;
636a995d 4016
4017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4018 # This has been around since 386BSD, at least. Likely further.
4019 if test -x /sbin/sysctl; then
4020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4021 elif test -x /usr/sbin/sysctl; then
4022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4023 else
4024 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4025 fi
4026 # And add a safety zone
4027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
71eb93ea 4029 ;;
636a995d 4030
4031 interix*)
4032 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4033 lt_cv_sys_max_cmd_len=196608
71eb93ea 4034 ;;
636a995d 4035
4036 osf*)
4037 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4038 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4039 # nice to cause kernel panics so lets avoid the loop below.
4040 # First set a reasonable default.
4041 lt_cv_sys_max_cmd_len=16384
4042 #
4043 if test -x /sbin/sysconfig; then
4044 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4045 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4046 esac
4047 fi
84e6335c 4048 ;;
636a995d 4049 sco3.2v5*)
4050 lt_cv_sys_max_cmd_len=102400
4051 ;;
4052 sysv5* | sco5v6* | sysv4.2uw2*)
4053 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4054 if test -n "$kargmax"; then
4055 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4056 else
4057 lt_cv_sys_max_cmd_len=32768
4058 fi
4059 ;;
4060 *)
4061 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4062 if test -n "$lt_cv_sys_max_cmd_len"; then
4063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4065 else
4066 # Make teststring a little bigger before we do anything with it.
4067 # a 1K string should be a reasonable start.
4068 for i in 1 2 3 4 5 6 7 8 ; do
4069 teststring=$teststring$teststring
4070 done
4071 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4072 # If test is not a shell built-in, we'll probably end up computing a
4073 # maximum length that is only half of the actual maximum length, but
4074 # we can't tell.
4075 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4076 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4077 test $i != 17 # 1/2 MB should be enough
4078 do
4079 i=`expr $i + 1`
4080 teststring=$teststring$teststring
4081 done
4082 # Only check the string length outside the loop.
4083 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4084 teststring=
4085 # Add a significant safety factor because C++ compilers can tack on
4086 # massive amounts of additional arguments before passing them to the
4087 # linker. It appears as though 1/2 is a usable value.
4088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4089 fi
7f19c02f 4090 ;;
71eb93ea 4091 esac
9bc8b93f 4092
636a995d 4093fi
71eb93ea 4094
636a995d 4095if test -n $lt_cv_sys_max_cmd_len ; then
22166f83 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4097$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
636a995d 4098else
22166f83 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4100$as_echo "none" >&6; }
71eb93ea 4101fi
636a995d 4102max_cmd_len=$lt_cv_sys_max_cmd_len
71eb93ea 4103
71eb93ea 4104
71eb93ea 4105
71eb93ea 4106
71eb93ea 4107
7f19c02f 4108
636a995d 4109: ${CP="cp -f"}
4110: ${MV="mv -f"}
4111: ${RM="rm -f"}
71eb93ea 4112
22166f83 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4114$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
636a995d 4115# Try some XSI features
4116xsi_shell=no
4117( _lt_dummy="a/b/c"
4118 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4119 = c,a/b,, \
4120 && eval 'test $(( 1 + 1 )) -eq 2 \
4121 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4122 && xsi_shell=yes
22166f83 4123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4124$as_echo "$xsi_shell" >&6; }
84e6335c 4125
636a995d 4126
22166f83 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4128$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
636a995d 4129lt_shell_append=no
4130( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4131 >/dev/null 2>&1 \
4132 && lt_shell_append=yes
22166f83 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4134$as_echo "$lt_shell_append" >&6; }
636a995d 4135
4136
4137if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4138 lt_unset=unset
4139else
4140 lt_unset=false
94984910 4141fi
84e6335c 4142
71eb93ea 4143
636a995d 4144
4145
4146
4147# test EBCDIC or ASCII
4148case `echo X|tr X '\101'` in
4149 A) # ASCII based system
4150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4151 lt_SP2NL='tr \040 \012'
4152 lt_NL2SP='tr \015\012 \040\040'
84e6335c 4153 ;;
636a995d 4154 *) # EBCDIC based system
4155 lt_SP2NL='tr \100 \n'
4156 lt_NL2SP='tr \r\n \100\100'
9bc8b93f 4157 ;;
636a995d 4158esac
9bc8b93f 4159
84e6335c 4160
84e6335c 4161
84e6335c 4162
84e6335c 4163
84e6335c 4164
94984910 4165
84e6335c 4166
636a995d 4167
22166f83 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4169$as_echo_n "checking for $LD option to reload object files... " >&6; }
4170if ${lt_cv_ld_reload_flag+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172else
636a995d 4173 lt_cv_ld_reload_flag='-r'
84e6335c 4174fi
22166f83 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4176$as_echo "$lt_cv_ld_reload_flag" >&6; }
636a995d 4177reload_flag=$lt_cv_ld_reload_flag
4178case $reload_flag in
4179"" | " "*) ;;
4180*) reload_flag=" $reload_flag" ;;
4181esac
4182reload_cmds='$LD$reload_flag -o $output$reload_objs'
4183case $host_os in
4184 darwin*)
4185 if test "$GCC" = yes; then
4186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4187 else
4188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4189 fi
4190 ;;
9bc8b93f 4191esac
9bc8b93f 4192
84e6335c 4193
84e6335c 4194
94984910 4195
84e6335c 4196
84e6335c 4197
94984910 4198
71eb93ea 4199
71eb93ea 4200
6acb2cf6 4201if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4203set dummy ${ac_tool_prefix}objdump; ac_word=$2
22166f83 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if ${ac_cv_prog_OBJDUMP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208else
6acb2cf6 4209 if test -n "$OBJDUMP"; then
4210 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
22166f83 4216 test -z "$as_dir" && as_dir=.
f922ca49 4217 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6acb2cf6 4219 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
22166f83 4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6acb2cf6 4221 break 2
4222 fi
4223done
f922ca49 4224 done
6acb2cf6 4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229OBJDUMP=$ac_cv_prog_OBJDUMP
4230if test -n "$OBJDUMP"; then
22166f83 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4232$as_echo "$OBJDUMP" >&6; }
6acb2cf6 4233else
22166f83 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
6acb2cf6 4236fi
4237
4238
4239fi
4240if test -z "$ac_cv_prog_OBJDUMP"; then
4241 ac_ct_OBJDUMP=$OBJDUMP
4242 # Extract the first word of "objdump", so it can be a program name with args.
4243set dummy objdump; ac_word=$2
22166f83 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248else
6acb2cf6 4249 if test -n "$ac_ct_OBJDUMP"; then
4250 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
22166f83 4256 test -z "$as_dir" && as_dir=.
f922ca49 4257 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6acb2cf6 4259 ac_cv_prog_ac_ct_OBJDUMP="objdump"
22166f83 4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6acb2cf6 4261 break 2
4262 fi
4263done
f922ca49 4264 done
6acb2cf6 4265IFS=$as_save_IFS
4266
4267fi
4268fi
4269ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4270if test -n "$ac_ct_OBJDUMP"; then
22166f83 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4272$as_echo "$ac_ct_OBJDUMP" >&6; }
6acb2cf6 4273else
22166f83 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
6acb2cf6 4276fi
4277
4278 if test "x$ac_ct_OBJDUMP" = x; then
4279 OBJDUMP="false"
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282yes:)
22166f83 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6acb2cf6 4285ac_tool_warned=yes ;;
4286esac
4287 OBJDUMP=$ac_ct_OBJDUMP
4288 fi
4289else
4290 OBJDUMP="$ac_cv_prog_OBJDUMP"
4291fi
4292
4293test -z "$OBJDUMP" && OBJDUMP=objdump
4294
4295
4296
4297
4298
4299
4300
4301
71eb93ea 4302
22166f83 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4304$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4305if ${lt_cv_deplibs_check_method+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307else
636a995d 4308 lt_cv_file_magic_cmd='$MAGIC_CMD'
4309lt_cv_file_magic_test_file=
4310lt_cv_deplibs_check_method='unknown'
4311# Need to set the preceding variable on all platforms that support
4312# interlibrary dependencies.
4313# 'none' -- dependencies not supported.
4314# `unknown' -- same as none, but documents that we really don't know.
4315# 'pass_all' -- all dependencies passed with no checks.
4316# 'test_compile' -- check by making test program.
4317# 'file_magic [[regex]]' -- check by looking for files in library path
4318# which responds to the $file_magic_cmd with a given extended regex.
4319# If you have `file' or equivalent on your system and you're not sure
4320# whether `pass_all' will *always* work, you probably want this one.
84e6335c 4321
636a995d 4322case $host_os in
4323aix[4-9]*)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
94984910 4326
636a995d 4327beos*)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
71eb93ea 4330
636a995d 4331bsdi[45]*)
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4333 lt_cv_file_magic_cmd='/usr/bin/file -L'
4334 lt_cv_file_magic_test_file=/shlib/libc.so
4335 ;;
84e6335c 4336
636a995d 4337cygwin*)
4338 # func_win32_libid is a shell function defined in ltmain.sh
4339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4340 lt_cv_file_magic_cmd='func_win32_libid'
4341 ;;
94984910 4342
636a995d 4343mingw* | pw32*)
4344 # Base MSYS/MinGW do not provide the 'file' command needed by
4345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4346 # unless we find 'file', for example because we are cross-compiling.
4347 if ( file / ) >/dev/null 2>&1; then
4348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4349 lt_cv_file_magic_cmd='func_win32_libid'
4350 else
4351 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4352 lt_cv_file_magic_cmd='$OBJDUMP -f'
4353 fi
4354 ;;
71eb93ea 4355
6acb2cf6 4356cegcc)
4357 # use the weaker test based on 'objdump'. See mingw*.
4358 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4359 lt_cv_file_magic_cmd='$OBJDUMP -f'
4360 ;;
4361
636a995d 4362darwin* | rhapsody*)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
71eb93ea 4365
636a995d 4366freebsd* | dragonfly*)
4367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4368 case $host_cpu in
4369 i*86 )
4370 # Not sure whether the presence of OpenBSD here was a mistake.
4371 # Let's accept both of them until this is cleared up.
4372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4373 lt_cv_file_magic_cmd=/usr/bin/file
4374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4375 ;;
4376 esac
4377 else
4378 lt_cv_deplibs_check_method=pass_all
4379 fi
4380 ;;
71eb93ea 4381
636a995d 4382gnu*)
4383 lt_cv_deplibs_check_method=pass_all
4384 ;;
84e6335c 4385
636a995d 4386hpux10.20* | hpux11*)
4387 lt_cv_file_magic_cmd=/usr/bin/file
4388 case $host_cpu in
4389 ia64*)
4390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4391 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4392 ;;
4393 hppa*64*)
4394 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]'
4395 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4396 ;;
4397 *)
4398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4400 ;;
4401 esac
4402 ;;
84e6335c 4403
636a995d 4404interix[3-9]*)
4405 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4407 ;;
84e6335c 4408
636a995d 4409irix5* | irix6* | nonstopux*)
4410 case $LD in
4411 *-32|*"-32 ") libmagic=32-bit;;
4412 *-n32|*"-n32 ") libmagic=N32;;
4413 *-64|*"-64 ") libmagic=64-bit;;
4414 *) libmagic=never-match;;
4415 esac
4416 lt_cv_deplibs_check_method=pass_all
4417 ;;
71eb93ea 4418
636a995d 4419# This must be Linux ELF.
4420linux* | k*bsd*-gnu)
4421 lt_cv_deplibs_check_method=pass_all
4422 ;;
94984910 4423
636a995d 4424netbsd*)
4425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4427 else
4428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4429 fi
4430 ;;
71eb93ea 4431
636a995d 4432newos6*)
4433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4434 lt_cv_file_magic_cmd=/usr/bin/file
4435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4436 ;;
71eb93ea 4437
636a995d 4438*nto* | *qnx*)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
84e6335c 4441
636a995d 4442openbsd*)
4443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4445 else
4446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4447 fi
4448 ;;
84e6335c 4449
636a995d 4450osf3* | osf4* | osf5*)
4451 lt_cv_deplibs_check_method=pass_all
4452 ;;
84e6335c 4453
636a995d 4454rdos*)
4455 lt_cv_deplibs_check_method=pass_all
4456 ;;
71eb93ea 4457
636a995d 4458solaris*)
4459 lt_cv_deplibs_check_method=pass_all
4460 ;;
71eb93ea 4461
636a995d 4462sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
71eb93ea 4465
636a995d 4466sysv4 | sysv4.3*)
4467 case $host_vendor in
4468 motorola)
4469 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]'
4470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4471 ;;
4472 ncr)
4473 lt_cv_deplibs_check_method=pass_all
4474 ;;
4475 sequent)
4476 lt_cv_file_magic_cmd='/bin/file'
4477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4478 ;;
4479 sni)
4480 lt_cv_file_magic_cmd='/bin/file'
4481 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4482 lt_cv_file_magic_test_file=/lib/libc.so
4483 ;;
4484 siemens)
4485 lt_cv_deplibs_check_method=pass_all
4486 ;;
4487 pc)
4488 lt_cv_deplibs_check_method=pass_all
4489 ;;
4490 esac
4491 ;;
4492
4493tpf*)
4494 lt_cv_deplibs_check_method=pass_all
4495 ;;
94984910 4496esac
84e6335c 4497
84e6335c 4498fi
22166f83 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4500$as_echo "$lt_cv_deplibs_check_method" >&6; }
636a995d 4501file_magic_cmd=$lt_cv_file_magic_cmd
4502deplibs_check_method=$lt_cv_deplibs_check_method
4503test -z "$deplibs_check_method" && deplibs_check_method=unknown
94984910 4504
4505
84e6335c 4506
84e6335c 4507
4508
4509
4510
4511
4512
4513
4514
4515
636a995d 4516if test -n "$ac_tool_prefix"; then
4517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4518set dummy ${ac_tool_prefix}ar; ac_word=$2
22166f83 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520$as_echo_n "checking for $ac_word... " >&6; }
4521if ${ac_cv_prog_AR+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523else
636a995d 4524 if test -n "$AR"; then
4525 ac_cv_prog_AR="$AR" # Let the user override the test.
71eb93ea 4526else
636a995d 4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
22166f83 4531 test -z "$as_dir" && as_dir=.
f922ca49 4532 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 4534 ac_cv_prog_AR="${ac_tool_prefix}ar"
22166f83 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 4536 break 2
4537 fi
4538done
f922ca49 4539 done
8b72747d 4540IFS=$as_save_IFS
84e6335c 4541
71eb93ea 4542fi
71eb93ea 4543fi
636a995d 4544AR=$ac_cv_prog_AR
4545if test -n "$AR"; then
22166f83 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4547$as_echo "$AR" >&6; }
636a995d 4548else
22166f83 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550$as_echo "no" >&6; }
71eb93ea 4551fi
84e6335c 4552
8b72747d 4553
71eb93ea 4554fi
636a995d 4555if test -z "$ac_cv_prog_AR"; then
4556 ac_ct_AR=$AR
4557 # Extract the first word of "ar", so it can be a program name with args.
4558set dummy ar; ac_word=$2
22166f83 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if ${ac_cv_prog_ac_ct_AR+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563else
636a995d 4564 if test -n "$ac_ct_AR"; then
4565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
71eb93ea 4566else
636a995d 4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
22166f83 4571 test -z "$as_dir" && as_dir=.
f922ca49 4572 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 4574 ac_cv_prog_ac_ct_AR="ar"
22166f83 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 4576 break 2
4577 fi
4578done
f922ca49 4579 done
8b72747d 4580IFS=$as_save_IFS
84e6335c 4581
636a995d 4582fi
4583fi
4584ac_ct_AR=$ac_cv_prog_ac_ct_AR
4585if test -n "$ac_ct_AR"; then
22166f83 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4587$as_echo "$ac_ct_AR" >&6; }
636a995d 4588else
22166f83 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
71eb93ea 4591fi
94984910 4592
8b72747d 4593 if test "x$ac_ct_AR" = x; then
4594 AR="false"
4595 else
4596 case $cross_compiling:$ac_tool_warned in
4597yes:)
22166f83 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 4600ac_tool_warned=yes ;;
4601esac
4602 AR=$ac_ct_AR
4603 fi
71eb93ea 4604else
636a995d 4605 AR="$ac_cv_prog_AR"
71eb93ea 4606fi
94984910 4607
636a995d 4608test -z "$AR" && AR=ar
4609test -z "$AR_FLAGS" && AR_FLAGS=cru
84e6335c 4610
94984910 4611
84e6335c 4612
71eb93ea 4613
71eb93ea 4614
71eb93ea 4615
636a995d 4616
4617
4618
4619
4620
4621if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4623set dummy ${ac_tool_prefix}strip; ac_word=$2
22166f83 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625$as_echo_n "checking for $ac_word... " >&6; }
4626if ${ac_cv_prog_STRIP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628else
636a995d 4629 if test -n "$STRIP"; then
4630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
84e6335c 4631else
4632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
22166f83 4636 test -z "$as_dir" && as_dir=.
f922ca49 4637 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 4639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
22166f83 4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 4641 break 2
4642 fi
4643done
f922ca49 4644 done
8b72747d 4645IFS=$as_save_IFS
71eb93ea 4646
84e6335c 4647fi
4648fi
636a995d 4649STRIP=$ac_cv_prog_STRIP
4650if test -n "$STRIP"; then
22166f83 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4652$as_echo "$STRIP" >&6; }
84e6335c 4653else
22166f83 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655$as_echo "no" >&6; }
84e6335c 4656fi
71eb93ea 4657
8b72747d 4658
84e6335c 4659fi
636a995d 4660if test -z "$ac_cv_prog_STRIP"; then
4661 ac_ct_STRIP=$STRIP
4662 # Extract the first word of "strip", so it can be a program name with args.
4663set dummy strip; ac_word=$2
22166f83 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665$as_echo_n "checking for $ac_word... " >&6; }
4666if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668else
636a995d 4669 if test -n "$ac_ct_STRIP"; then
4670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
84e6335c 4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
22166f83 4676 test -z "$as_dir" && as_dir=.
f922ca49 4677 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 4679 ac_cv_prog_ac_ct_STRIP="strip"
22166f83 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
84e6335c 4681 break 2
4682 fi
4683done
f922ca49 4684 done
8b72747d 4685IFS=$as_save_IFS
71eb93ea 4686
84e6335c 4687fi
4688fi
636a995d 4689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4690if test -n "$ac_ct_STRIP"; then
22166f83 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4692$as_echo "$ac_ct_STRIP" >&6; }
84e6335c 4693else
22166f83 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
84e6335c 4696fi
71eb93ea 4697
8b72747d 4698 if test "x$ac_ct_STRIP" = x; then
4699 STRIP=":"
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702yes:)
22166f83 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 4705ac_tool_warned=yes ;;
4706esac
4707 STRIP=$ac_ct_STRIP
4708 fi
636a995d 4709else
4710 STRIP="$ac_cv_prog_STRIP"
84e6335c 4711fi
71eb93ea 4712
636a995d 4713test -z "$STRIP" && STRIP=:
4714
4715
4716
4717
4718
4719
4720if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4722set dummy ${ac_tool_prefix}ranlib; ac_word=$2
22166f83 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724$as_echo_n "checking for $ac_word... " >&6; }
4725if ${ac_cv_prog_RANLIB+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
636a995d 4728 if test -n "$RANLIB"; then
4729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4730else
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734 IFS=$as_save_IFS
22166f83 4735 test -z "$as_dir" && as_dir=.
f922ca49 4736 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 4738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
22166f83 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 4740 break 2
94984910 4741 fi
636a995d 4742done
f922ca49 4743 done
8b72747d 4744IFS=$as_save_IFS
9bc8b93f 4745
636a995d 4746fi
4747fi
4748RANLIB=$ac_cv_prog_RANLIB
4749if test -n "$RANLIB"; then
22166f83 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4751$as_echo "$RANLIB" >&6; }
84e6335c 4752else
22166f83 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754$as_echo "no" >&6; }
636a995d 4755fi
71eb93ea 4756
8b72747d 4757
636a995d 4758fi
4759if test -z "$ac_cv_prog_RANLIB"; then
4760 ac_ct_RANLIB=$RANLIB
4761 # Extract the first word of "ranlib", so it can be a program name with args.
4762set dummy ranlib; ac_word=$2
22166f83 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764$as_echo_n "checking for $ac_word... " >&6; }
4765if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767else
636a995d 4768 if test -n "$ac_ct_RANLIB"; then
4769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774 IFS=$as_save_IFS
22166f83 4775 test -z "$as_dir" && as_dir=.
f922ca49 4776 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 4778 ac_cv_prog_ac_ct_RANLIB="ranlib"
22166f83 4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 4780 break 2
4781 fi
4782done
f922ca49 4783 done
8b72747d 4784IFS=$as_save_IFS
71eb93ea 4785
636a995d 4786fi
4787fi
4788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4789if test -n "$ac_ct_RANLIB"; then
22166f83 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4791$as_echo "$ac_ct_RANLIB" >&6; }
636a995d 4792else
22166f83 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
84e6335c 4795fi
94984910 4796
8b72747d 4797 if test "x$ac_ct_RANLIB" = x; then
4798 RANLIB=":"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801yes:)
22166f83 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 4804ac_tool_warned=yes ;;
4805esac
4806 RANLIB=$ac_ct_RANLIB
4807 fi
84e6335c 4808else
636a995d 4809 RANLIB="$ac_cv_prog_RANLIB"
4810fi
71eb93ea 4811
636a995d 4812test -z "$RANLIB" && RANLIB=:
94984910 4813
94984910 4814
71eb93ea 4815
94984910 4816
94984910 4817
71eb93ea 4818
636a995d 4819# Determine commands to create old-style static archives.
4820old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4821old_postinstall_cmds='chmod 644 $oldlib'
4822old_postuninstall_cmds=
94984910 4823
636a995d 4824if test -n "$RANLIB"; then
4825 case $host_os in
4826 openbsd*)
4827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4828 ;;
4829 *)
4830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4831 ;;
4832 esac
4833 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7f19c02f 4834fi
94984910 4835
84e6335c 4836
94984910 4837
84e6335c 4838
94984910 4839
84e6335c 4840
9bc8b93f 4841
94984910 4842
9bc8b93f 4843
9bc8b93f 4844
9bc8b93f 4845
9bc8b93f 4846
94984910 4847
9bc8b93f 4848
9bc8b93f 4849
94984910 4850
9bc8b93f 4851
9bc8b93f 4852
9bc8b93f 4853
7f19c02f 4854
9bc8b93f 4855
9bc8b93f 4856
9bc8b93f 4857
94984910 4858
9bc8b93f 4859
9bc8b93f 4860
94984910 4861
9bc8b93f 4862
9bc8b93f 4863
4864
9bc8b93f 4865
9bc8b93f 4866
9bc8b93f 4867
94984910 4868
636a995d 4869# If no C compiler was specified, use CC.
4870LTCC=${LTCC-"$CC"}
9bc8b93f 4871
636a995d 4872# If no C compiler flags were specified, use CFLAGS.
4873LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4874
4875# Allow CC to be a program name with arguments.
4876compiler=$CC
4877
4878
4879# Check for command to grab the raw symbol name followed by C symbol from nm.
22166f83 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4881$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4882if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884else
9bc8b93f 4885
4886# These are sane defaults that work on at least a few old systems.
4887# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4888
4889# Character class describing NM global symbol codes.
4890symcode='[BCDEGRST]'
4891
4892# Regexp to match symbols that can be accessed directly from C.
4893sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4894
9bc8b93f 4895# Define system-specific variables.
4896case $host_os in
4897aix*)
4898 symcode='[BCDT]'
4899 ;;
6acb2cf6 4900cygwin* | mingw* | pw32* | cegcc*)
9bc8b93f 4901 symcode='[ABCDGISTW]'
4902 ;;
636a995d 4903hpux*)
9bc8b93f 4904 if test "$host_cpu" = ia64; then
4905 symcode='[ABCDEGRST]'
4906 fi
7f19c02f 4907 ;;
9bc8b93f 4908irix* | nonstopux*)
4909 symcode='[BCDEGRST]'
4910 ;;
4911osf*)
4912 symcode='[BCDEGQRST]'
4913 ;;
7f19c02f 4914solaris*)
9bc8b93f 4915 symcode='[BDRT]'
4916 ;;
7f19c02f 4917sco3.2v5*)
4918 symcode='[DT]'
4919 ;;
4920sysv4.2uw2*)
4921 symcode='[DT]'
4922 ;;
4923sysv5* | sco5v6* | unixware* | OpenUNIX*)
4924 symcode='[ABDT]'
4925 ;;
9bc8b93f 4926sysv4)
4927 symcode='[DFNSTU]'
4928 ;;
4929esac
4930
636a995d 4931# If we're using GNU nm, then use its standard symbol codes.
4932case `$NM -V 2>&1` in
4933*GNU* | *'with BFD'*)
4934 symcode='[ABCDGIRSTW]' ;;
4935esac
4936
4937# Transform an extracted symbol line into a proper C declaration.
4938# Some systems (esp. on ia64) link data and code symbols differently,
4939# so use this general approach.
4940lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4941
4942# Transform an extracted symbol line into symbol name and symbol address
4943lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4944lt_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'"
4945
9bc8b93f 4946# Handle CRLF in mingw tool chain
4947opt_cr=
4948case $build_os in
4949mingw*)
636a995d 4950 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9bc8b93f 4951 ;;
4952esac
4953
636a995d 4954# Try without a prefix underscore, then with it.
9bc8b93f 4955for ac_symprfx in "" "_"; do
4956
7f19c02f 4957 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4958 symxfrm="\\1 $ac_symprfx\\2 \\2"
4959
9bc8b93f 4960 # Write the raw and C identifiers.
636a995d 4961 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4962 # Fake it for dumpbin and say T for any non-static function
4963 # and D for any global variable.
4964 # Also find C++ and __fastcall symbols from MSVC++,
4965 # which start with @ or ?.
4966 lt_cv_sys_global_symbol_pipe="$AWK '"\
4967" {last_section=section; section=\$ 3};"\
4968" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4969" \$ 0!~/External *\|/{next};"\
4970" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4971" {if(hide[section]) next};"\
4972" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4973" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4974" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4975" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4976" ' prfx=^$ac_symprfx"
4977 else
4978 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4979 fi
9bc8b93f 4980
4981 # Check to see that the pipe works correctly.
4982 pipe_works=no
4983
4984 rm -f conftest*
636a995d 4985 cat > conftest.$ac_ext <<_LT_EOF
9bc8b93f 4986#ifdef __cplusplus
4987extern "C" {
4988#endif
4989char nm_test_var;
636a995d 4990void nm_test_func(void);
4991void nm_test_func(void){}
9bc8b93f 4992#ifdef __cplusplus
4993}
4994#endif
4995int main(){nm_test_var='a';nm_test_func();return(0);}
636a995d 4996_LT_EOF
9bc8b93f 4997
f922ca49 4998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9bc8b93f 4999 (eval $ac_compile) 2>&5
5000 ac_status=$?
22166f83 5001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5002 test $ac_status = 0; }; then
9bc8b93f 5003 # Now try to grab the symbols.
5004 nlist=conftest.nm
f922ca49 5005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9bc8b93f 5006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5007 ac_status=$?
22166f83 5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5009 test $ac_status = 0; } && test -s "$nlist"; then
9bc8b93f 5010 # Try sorting and uniquifying the output.
5011 if sort "$nlist" | uniq > "$nlist"T; then
5012 mv -f "$nlist"T "$nlist"
5013 else
5014 rm -f "$nlist"T
5015 fi
5016
5017 # Make sure that we snagged all the symbols we need.
636a995d 5018 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5019 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5020 cat <<_LT_EOF > conftest.$ac_ext
9bc8b93f 5021#ifdef __cplusplus
5022extern "C" {
5023#endif
5024
636a995d 5025_LT_EOF
9bc8b93f 5026 # Now generate the symbol file.
636a995d 5027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9bc8b93f 5028
636a995d 5029 cat <<_LT_EOF >> conftest.$ac_ext
9bc8b93f 5030
636a995d 5031/* The mapping between symbol names and symbols. */
9bc8b93f 5032const struct {
5033 const char *name;
636a995d 5034 void *address;
9bc8b93f 5035}
636a995d 5036lt__PROGRAM__LTX_preloaded_symbols[] =
9bc8b93f 5037{
636a995d 5038 { "@PROGRAM@", (void *) 0 },
5039_LT_EOF
5040 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5041 cat <<\_LT_EOF >> conftest.$ac_ext
5042 {0, (void *) 0}
9bc8b93f 5043};
5044
636a995d 5045/* This works around a problem in FreeBSD linker */
5046#ifdef FREEBSD_WORKAROUND
5047static const void *lt_preloaded_setup() {
5048 return lt__PROGRAM__LTX_preloaded_symbols;
5049}
5050#endif
5051
9bc8b93f 5052#ifdef __cplusplus
5053}
5054#endif
636a995d 5055_LT_EOF
9bc8b93f 5056 # Now try linking the two files.
5057 mv conftest.$ac_objext conftstm.$ac_objext
5058 lt_save_LIBS="$LIBS"
5059 lt_save_CFLAGS="$CFLAGS"
5060 LIBS="conftstm.$ac_objext"
5061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
f922ca49 5062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9bc8b93f 5063 (eval $ac_link) 2>&5
5064 ac_status=$?
22166f83 5065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5066 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9bc8b93f 5067 pipe_works=yes
5068 fi
5069 LIBS="$lt_save_LIBS"
5070 CFLAGS="$lt_save_CFLAGS"
5071 else
5072 echo "cannot find nm_test_func in $nlist" >&5
5073 fi
5074 else
5075 echo "cannot find nm_test_var in $nlist" >&5
5076 fi
5077 else
5078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5079 fi
5080 else
5081 echo "$progname: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5083 fi
636a995d 5084 rm -rf conftest* conftst*
9bc8b93f 5085
5086 # Do not use the global_symbol_pipe unless it works.
5087 if test "$pipe_works" = yes; then
5088 break
5089 else
5090 lt_cv_sys_global_symbol_pipe=
5091 fi
5092done
5093
5094fi
5095
5096if test -z "$lt_cv_sys_global_symbol_pipe"; then
5097 lt_cv_sys_global_symbol_to_cdecl=
5098fi
5099if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
22166f83 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5101$as_echo "failed" >&6; }
9bc8b93f 5102else
22166f83 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5104$as_echo "ok" >&6; }
9bc8b93f 5105fi
5106
9bc8b93f 5107
5108
5109
5110
5111
9bc8b93f 5112
9bc8b93f 5113
9bc8b93f 5114
9bc8b93f 5115
9bc8b93f 5116
9bc8b93f 5117
9bc8b93f 5118
71eb93ea 5119
9bc8b93f 5120
9bc8b93f 5121
94984910 5122
9bc8b93f 5123
636a995d 5124
5125
5126
5127
5128
8b72747d 5129# Check whether --enable-libtool-lock was given.
22166f83 5130if test "${enable_libtool_lock+set}" = set; then :
8b72747d 5131 enableval=$enable_libtool_lock;
5132fi
636a995d 5133
5134test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5135
5136# Some flags need to be propagated to the compiler or linker for good
5137# libtool support.
5138case $host in
5139ia64-*-hpux*)
5140 # Find out which ABI we are using.
5141 echo 'int i;' > conftest.$ac_ext
f922ca49 5142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
636a995d 5143 (eval $ac_compile) 2>&5
5144 ac_status=$?
22166f83 5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5146 test $ac_status = 0; }; then
636a995d 5147 case `/usr/bin/file conftest.$ac_objext` in
5148 *ELF-32*)
5149 HPUX_IA64_MODE="32"
5150 ;;
5151 *ELF-64*)
5152 HPUX_IA64_MODE="64"
5153 ;;
5154 esac
5155 fi
5156 rm -rf conftest*
5157 ;;
5158*-*-irix6*)
5159 # Find out which ABI we are using.
8525e2d9 5160 echo '#line 5160 "configure"' > conftest.$ac_ext
f922ca49 5161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
636a995d 5162 (eval $ac_compile) 2>&5
5163 ac_status=$?
22166f83 5164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5165 test $ac_status = 0; }; then
636a995d 5166 if test "$lt_cv_prog_gnu_ld" = yes; then
5167 case `/usr/bin/file conftest.$ac_objext` in
5168 *32-bit*)
5169 LD="${LD-ld} -melf32bsmip"
5170 ;;
5171 *N32*)
5172 LD="${LD-ld} -melf32bmipn32"
5173 ;;
5174 *64-bit*)
5175 LD="${LD-ld} -melf64bmip"
5176 ;;
5177 esac
5178 else
5179 case `/usr/bin/file conftest.$ac_objext` in
5180 *32-bit*)
5181 LD="${LD-ld} -32"
5182 ;;
5183 *N32*)
5184 LD="${LD-ld} -n32"
5185 ;;
5186 *64-bit*)
5187 LD="${LD-ld} -64"
5188 ;;
5189 esac
5190 fi
5191 fi
5192 rm -rf conftest*
5193 ;;
5194
5195x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5196s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5197 # Find out which ABI we are using.
5198 echo 'int i;' > conftest.$ac_ext
f922ca49 5199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
636a995d 5200 (eval $ac_compile) 2>&5
5201 ac_status=$?
22166f83 5202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5203 test $ac_status = 0; }; then
636a995d 5204 case `/usr/bin/file conftest.o` in
5205 *32-bit*)
5206 case $host in
5207 x86_64-*kfreebsd*-gnu)
5208 LD="${LD-ld} -m elf_i386_fbsd"
5209 ;;
5210 x86_64-*linux*)
5211 LD="${LD-ld} -m elf_i386"
5212 ;;
5213 ppc64-*linux*|powerpc64-*linux*)
5214 LD="${LD-ld} -m elf32ppclinux"
5215 ;;
5216 s390x-*linux*)
5217 LD="${LD-ld} -m elf_s390"
5218 ;;
5219 sparc64-*linux*)
5220 LD="${LD-ld} -m elf32_sparc"
5221 ;;
5222 esac
5223 ;;
5224 *64-bit*)
5225 case $host in
5226 x86_64-*kfreebsd*-gnu)
5227 LD="${LD-ld} -m elf_x86_64_fbsd"
5228 ;;
5229 x86_64-*linux*)
5230 LD="${LD-ld} -m elf_x86_64"
5231 ;;
5232 ppc*-*linux*|powerpc*-*linux*)
5233 LD="${LD-ld} -m elf64ppc"
5234 ;;
5235 s390*-*linux*|s390*-*tpf*)
5236 LD="${LD-ld} -m elf64_s390"
5237 ;;
5238 sparc*-*linux*)
5239 LD="${LD-ld} -m elf64_sparc"
5240 ;;
5241 esac
5242 ;;
5243 esac
5244 fi
5245 rm -rf conftest*
5246 ;;
5247
5248*-*-sco3.2v5*)
5249 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5250 SAVE_CFLAGS="$CFLAGS"
5251 CFLAGS="$CFLAGS -belf"
22166f83 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5253$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5254if ${lt_cv_cc_needs_belf+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256else
636a995d 5257 ac_ext=c
5258ac_cpp='$CPP $CPPFLAGS'
5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
f922ca49 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 5264/* end confdefs.h. */
5265
5266int
22166f83 5267main ()
636a995d 5268{
5269
5270 ;
5271 return 0;
5272}
5273_ACEOF
22166f83 5274if ac_fn_c_try_link "$LINENO"; then :
636a995d 5275 lt_cv_cc_needs_belf=yes
22166f83 5276else
f922ca49 5277 lt_cv_cc_needs_belf=no
9bc8b93f 5278fi
22166f83 5279rm -f core conftest.err conftest.$ac_objext \
f922ca49 5280 conftest$ac_exeext conftest.$ac_ext
636a995d 5281 ac_ext=c
5282ac_cpp='$CPP $CPPFLAGS'
5283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286
5287fi
22166f83 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5289$as_echo "$lt_cv_cc_needs_belf" >&6; }
636a995d 5290 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5291 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5292 CFLAGS="$SAVE_CFLAGS"
5293 fi
5294 ;;
5295sparc*-*solaris*)
5296 # Find out which ABI we are using.
5297 echo 'int i;' > conftest.$ac_ext
f922ca49 5298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
636a995d 5299 (eval $ac_compile) 2>&5
5300 ac_status=$?
22166f83 5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 5302 test $ac_status = 0; }; then
636a995d 5303 case `/usr/bin/file conftest.o` in
5304 *64-bit*)
5305 case $lt_cv_prog_gnu_ld in
5306 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5307 *)
5308 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5309 LD="${LD-ld} -64"
5310 fi
5311 ;;
5312 esac
5313 ;;
5314 esac
5315 fi
5316 rm -rf conftest*
5317 ;;
5318esac
5319
5320need_locks="$enable_libtool_lock"
5321
5322
5323 case $host_os in
5324 rhapsody* | darwin*)
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5327set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
22166f83 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329$as_echo_n "checking for $ac_word... " >&6; }
5330if ${ac_cv_prog_DSYMUTIL+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332else
636a995d 5333 if test -n "$DSYMUTIL"; then
5334 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5335else
5336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337for as_dir in $PATH
5338do
5339 IFS=$as_save_IFS
22166f83 5340 test -z "$as_dir" && as_dir=.
f922ca49 5341 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5343 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
22166f83 5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 5345 break 2
5346 fi
5347done
f922ca49 5348 done
8b72747d 5349IFS=$as_save_IFS
636a995d 5350
5351fi
5352fi
5353DSYMUTIL=$ac_cv_prog_DSYMUTIL
5354if test -n "$DSYMUTIL"; then
22166f83 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5356$as_echo "$DSYMUTIL" >&6; }
9bc8b93f 5357else
22166f83 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }
9bc8b93f 5360fi
5361
8b72747d 5362
636a995d 5363fi
5364if test -z "$ac_cv_prog_DSYMUTIL"; then
5365 ac_ct_DSYMUTIL=$DSYMUTIL
5366 # Extract the first word of "dsymutil", so it can be a program name with args.
5367set dummy dsymutil; ac_word=$2
22166f83 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369$as_echo_n "checking for $ac_word... " >&6; }
5370if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372else
636a995d 5373 if test -n "$ac_ct_DSYMUTIL"; then
5374 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379 IFS=$as_save_IFS
22166f83 5380 test -z "$as_dir" && as_dir=.
f922ca49 5381 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5383 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
22166f83 5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 5385 break 2
5386 fi
5387done
f922ca49 5388 done
8b72747d 5389IFS=$as_save_IFS
636a995d 5390
5391fi
5392fi
5393ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5394if test -n "$ac_ct_DSYMUTIL"; then
22166f83 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5396$as_echo "$ac_ct_DSYMUTIL" >&6; }
636a995d 5397else
22166f83 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399$as_echo "no" >&6; }
636a995d 5400fi
5401
8b72747d 5402 if test "x$ac_ct_DSYMUTIL" = x; then
5403 DSYMUTIL=":"
5404 else
5405 case $cross_compiling:$ac_tool_warned in
5406yes:)
22166f83 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 5409ac_tool_warned=yes ;;
5410esac
5411 DSYMUTIL=$ac_ct_DSYMUTIL
5412 fi
9bc8b93f 5413else
636a995d 5414 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9bc8b93f 5415fi
5416
636a995d 5417 if test -n "$ac_tool_prefix"; then
5418 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5419set dummy ${ac_tool_prefix}nmedit; ac_word=$2
22166f83 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421$as_echo_n "checking for $ac_word... " >&6; }
5422if ${ac_cv_prog_NMEDIT+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424else
636a995d 5425 if test -n "$NMEDIT"; then
5426 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9bc8b93f 5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
22166f83 5432 test -z "$as_dir" && as_dir=.
f922ca49 5433 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5435 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
22166f83 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9bc8b93f 5437 break 2
5438 fi
5439done
f922ca49 5440 done
8b72747d 5441IFS=$as_save_IFS
9bc8b93f 5442
5443fi
5444fi
636a995d 5445NMEDIT=$ac_cv_prog_NMEDIT
5446if test -n "$NMEDIT"; then
22166f83 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5448$as_echo "$NMEDIT" >&6; }
9bc8b93f 5449else
22166f83 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }
9bc8b93f 5452fi
5453
8b72747d 5454
9bc8b93f 5455fi
636a995d 5456if test -z "$ac_cv_prog_NMEDIT"; then
5457 ac_ct_NMEDIT=$NMEDIT
5458 # Extract the first word of "nmedit", so it can be a program name with args.
5459set dummy nmedit; ac_word=$2
22166f83 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461$as_echo_n "checking for $ac_word... " >&6; }
5462if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464else
636a995d 5465 if test -n "$ac_ct_NMEDIT"; then
5466 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9bc8b93f 5467else
5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471 IFS=$as_save_IFS
22166f83 5472 test -z "$as_dir" && as_dir=.
f922ca49 5473 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5475 ac_cv_prog_ac_ct_NMEDIT="nmedit"
22166f83 5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9bc8b93f 5477 break 2
5478 fi
5479done
f922ca49 5480 done
8b72747d 5481IFS=$as_save_IFS
9bc8b93f 5482
9bc8b93f 5483fi
5484fi
636a995d 5485ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5486if test -n "$ac_ct_NMEDIT"; then
22166f83 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5488$as_echo "$ac_ct_NMEDIT" >&6; }
9bc8b93f 5489else
22166f83 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491$as_echo "no" >&6; }
9bc8b93f 5492fi
5493
8b72747d 5494 if test "x$ac_ct_NMEDIT" = x; then
5495 NMEDIT=":"
5496 else
5497 case $cross_compiling:$ac_tool_warned in
5498yes:)
22166f83 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 5501ac_tool_warned=yes ;;
5502esac
5503 NMEDIT=$ac_ct_NMEDIT
5504 fi
9bc8b93f 5505else
636a995d 5506 NMEDIT="$ac_cv_prog_NMEDIT"
9bc8b93f 5507fi
5508
636a995d 5509 if test -n "$ac_tool_prefix"; then
5510 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5511set dummy ${ac_tool_prefix}lipo; ac_word=$2
22166f83 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if ${ac_cv_prog_LIPO+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
636a995d 5517 if test -n "$LIPO"; then
5518 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9bc8b93f 5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
22166f83 5524 test -z "$as_dir" && as_dir=.
f922ca49 5525 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5527 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
22166f83 5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9bc8b93f 5529 break 2
5530 fi
5531done
f922ca49 5532 done
8b72747d 5533IFS=$as_save_IFS
9bc8b93f 5534
5535fi
5536fi
636a995d 5537LIPO=$ac_cv_prog_LIPO
5538if test -n "$LIPO"; then
22166f83 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5540$as_echo "$LIPO" >&6; }
9bc8b93f 5541else
22166f83 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
9bc8b93f 5544fi
5545
8b72747d 5546
9bc8b93f 5547fi
636a995d 5548if test -z "$ac_cv_prog_LIPO"; then
5549 ac_ct_LIPO=$LIPO
5550 # Extract the first word of "lipo", so it can be a program name with args.
5551set dummy lipo; ac_word=$2
22166f83 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553$as_echo_n "checking for $ac_word... " >&6; }
5554if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556else
636a995d 5557 if test -n "$ac_ct_LIPO"; then
5558 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9bc8b93f 5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563 IFS=$as_save_IFS
22166f83 5564 test -z "$as_dir" && as_dir=.
f922ca49 5565 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5567 ac_cv_prog_ac_ct_LIPO="lipo"
22166f83 5568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9bc8b93f 5569 break 2
5570 fi
5571done
f922ca49 5572 done
8b72747d 5573IFS=$as_save_IFS
9bc8b93f 5574
9bc8b93f 5575fi
5576fi
636a995d 5577ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5578if test -n "$ac_ct_LIPO"; then
22166f83 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5580$as_echo "$ac_ct_LIPO" >&6; }
9bc8b93f 5581else
22166f83 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583$as_echo "no" >&6; }
9bc8b93f 5584fi
5585
8b72747d 5586 if test "x$ac_ct_LIPO" = x; then
5587 LIPO=":"
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590yes:)
22166f83 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 5593ac_tool_warned=yes ;;
5594esac
5595 LIPO=$ac_ct_LIPO
5596 fi
9bc8b93f 5597else
636a995d 5598 LIPO="$ac_cv_prog_LIPO"
9bc8b93f 5599fi
5600
636a995d 5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5603set dummy ${ac_tool_prefix}otool; ac_word=$2
22166f83 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if ${ac_cv_prog_OTOOL+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608else
636a995d 5609 if test -n "$OTOOL"; then
5610 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
22166f83 5616 test -z "$as_dir" && as_dir=.
f922ca49 5617 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5619 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
22166f83 5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 5621 break 2
5622 fi
5623done
f922ca49 5624 done
8b72747d 5625IFS=$as_save_IFS
9bc8b93f 5626
636a995d 5627fi
5628fi
5629OTOOL=$ac_cv_prog_OTOOL
5630if test -n "$OTOOL"; then
22166f83 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5632$as_echo "$OTOOL" >&6; }
636a995d 5633else
22166f83 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
636a995d 5636fi
9bc8b93f 5637
8b72747d 5638
9bc8b93f 5639fi
636a995d 5640if test -z "$ac_cv_prog_OTOOL"; then
5641 ac_ct_OTOOL=$OTOOL
5642 # Extract the first word of "otool", so it can be a program name with args.
5643set dummy otool; ac_word=$2
22166f83 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648else
636a995d 5649 if test -n "$ac_ct_OTOOL"; then
5650 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
22166f83 5656 test -z "$as_dir" && as_dir=.
f922ca49 5657 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5659 ac_cv_prog_ac_ct_OTOOL="otool"
22166f83 5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 5661 break 2
5662 fi
7f19c02f 5663done
f922ca49 5664 done
8b72747d 5665IFS=$as_save_IFS
7f19c02f 5666
636a995d 5667fi
5668fi
5669ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5670if test -n "$ac_ct_OTOOL"; then
22166f83 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5672$as_echo "$ac_ct_OTOOL" >&6; }
9bc8b93f 5673else
22166f83 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
636a995d 5676fi
9bc8b93f 5677
8b72747d 5678 if test "x$ac_ct_OTOOL" = x; then
5679 OTOOL=":"
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682yes:)
22166f83 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 5685ac_tool_warned=yes ;;
5686esac
5687 OTOOL=$ac_ct_OTOOL
5688 fi
636a995d 5689else
5690 OTOOL="$ac_cv_prog_OTOOL"
9bc8b93f 5691fi
5692
636a995d 5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5695set dummy ${ac_tool_prefix}otool64; ac_word=$2
22166f83 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697$as_echo_n "checking for $ac_word... " >&6; }
5698if ${ac_cv_prog_OTOOL64+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700else
636a995d 5701 if test -n "$OTOOL64"; then
5702 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707 IFS=$as_save_IFS
22166f83 5708 test -z "$as_dir" && as_dir=.
f922ca49 5709 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5711 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
22166f83 5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 5713 break 2
5714 fi
5715done
f922ca49 5716 done
8b72747d 5717IFS=$as_save_IFS
9bc8b93f 5718
636a995d 5719fi
5720fi
5721OTOOL64=$ac_cv_prog_OTOOL64
5722if test -n "$OTOOL64"; then
22166f83 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5724$as_echo "$OTOOL64" >&6; }
9bc8b93f 5725else
22166f83 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727$as_echo "no" >&6; }
636a995d 5728fi
9bc8b93f 5729
8b72747d 5730
9bc8b93f 5731fi
636a995d 5732if test -z "$ac_cv_prog_OTOOL64"; then
5733 ac_ct_OTOOL64=$OTOOL64
5734 # Extract the first word of "otool64", so it can be a program name with args.
5735set dummy otool64; ac_word=$2
22166f83 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740else
636a995d 5741 if test -n "$ac_ct_OTOOL64"; then
5742 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747 IFS=$as_save_IFS
22166f83 5748 test -z "$as_dir" && as_dir=.
f922ca49 5749 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 5751 ac_cv_prog_ac_ct_OTOOL64="otool64"
22166f83 5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 5753 break 2
5754 fi
5755done
f922ca49 5756 done
8b72747d 5757IFS=$as_save_IFS
9bc8b93f 5758
636a995d 5759fi
5760fi
5761ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5762if test -n "$ac_ct_OTOOL64"; then
22166f83 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5764$as_echo "$ac_ct_OTOOL64" >&6; }
9bc8b93f 5765else
22166f83 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
9bc8b93f 5768fi
5769
8b72747d 5770 if test "x$ac_ct_OTOOL64" = x; then
5771 OTOOL64=":"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774yes:)
22166f83 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8b72747d 5777ac_tool_warned=yes ;;
5778esac
5779 OTOOL64=$ac_ct_OTOOL64
5780 fi
636a995d 5781else
5782 OTOOL64="$ac_cv_prog_OTOOL64"
9bc8b93f 5783fi
5784
9bc8b93f 5785
9bc8b93f 5786
9bc8b93f 5787
9bc8b93f 5788
5789
94984910 5790
9bc8b93f 5791
7f19c02f 5792
7f19c02f 5793
7f19c02f 5794
7f19c02f 5795
7f19c02f 5796
7f19c02f 5797
7f19c02f 5798
7f19c02f 5799
7f19c02f 5800
5801
9bc8b93f 5802
5803
9bc8b93f 5804
9bc8b93f 5805
9bc8b93f 5806
9bc8b93f 5807
5808
9bc8b93f 5809
7f19c02f 5810
22166f83 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5812$as_echo_n "checking for -single_module linker flag... " >&6; }
5813if ${lt_cv_apple_cc_single_mod+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815else
636a995d 5816 lt_cv_apple_cc_single_mod=no
5817 if test -z "${LT_MULTI_MODULE}"; then
5818 # By default we will add the -single_module flag. You can override
5819 # by either setting the environment variable LT_MULTI_MODULE
5820 # non-empty at configure time, or by adding -multi_module to the
5821 # link flags.
5822 rm -rf libconftest.dylib*
5823 echo "int foo(void){return 1;}" > conftest.c
5824 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5825-dynamiclib -Wl,-single_module conftest.c" >&5
5826 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5827 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5828 _lt_result=$?
5829 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5830 lt_cv_apple_cc_single_mod=yes
5831 else
5832 cat conftest.err >&5
5833 fi
5834 rm -rf libconftest.dylib*
5835 rm -f conftest.*
5836 fi
5837fi
22166f83 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5839$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5841$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5842if ${lt_cv_ld_exported_symbols_list+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844else
636a995d 5845 lt_cv_ld_exported_symbols_list=no
5846 save_LDFLAGS=$LDFLAGS
5847 echo "_main" > conftest.sym
5848 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
f922ca49 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 5850/* end confdefs.h. */
9bc8b93f 5851
636a995d 5852int
22166f83 5853main ()
636a995d 5854{
9bc8b93f 5855
636a995d 5856 ;
5857 return 0;
5858}
5859_ACEOF
22166f83 5860if ac_fn_c_try_link "$LINENO"; then :
710658c7 5861 lt_cv_ld_exported_symbols_list=yes
22166f83 5862else
f922ca49 5863 lt_cv_ld_exported_symbols_list=no
710658c7 5864fi
22166f83 5865rm -f core conftest.err conftest.$ac_objext \
f922ca49 5866 conftest$ac_exeext conftest.$ac_ext
710658c7 5867 LDFLAGS="$save_LDFLAGS"
5868
5869fi
22166f83 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5871$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
636a995d 5872 case $host_os in
5873 rhapsody* | darwin1.[012])
5874 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5875 darwin1.*)
5876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5877 darwin*) # darwin 5.x on
5878 # if running on 10.5 or later, the deployment target defaults
5879 # to the OS version, if on x86, and 10.4, the deployment
5880 # target defaults to 10.4. Don't you love it?
5881 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5882 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5884 10.[012]*)
5885 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5886 10.*)
5887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5888 esac
5889 ;;
5890 esac
5891 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5892 _lt_dar_single_mod='$single_module'
5893 fi
5894 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5895 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5896 else
5897 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5898 fi
5899 if test "$DSYMUTIL" != ":"; then
5900 _lt_dsymutil='~$DSYMUTIL $lib || :'
5901 else
5902 _lt_dsymutil=
5903 fi
5904 ;;
5905 esac
9bc8b93f 5906
22166f83 5907ac_ext=c
5908ac_cpp='$CPP $CPPFLAGS'
5909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911ac_compiler_gnu=$ac_cv_c_compiler_gnu
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5913$as_echo_n "checking how to run the C preprocessor... " >&6; }
5914# On Suns, sometimes $CPP names a directory.
5915if test -n "$CPP" && test -d "$CPP"; then
5916 CPP=
5917fi
5918if test -z "$CPP"; then
5919 if ${ac_cv_prog_CPP+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921else
5922 # Double quotes because CPP needs to be expanded
5923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5924 do
5925 ac_preproc_ok=false
5926for ac_c_preproc_warn_flag in '' yes
5927do
5928 # Use a header file that comes with gcc, so configuring glibc
5929 # with a fresh cross-compiler works.
5930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931 # <limits.h> exists even on freestanding compilers.
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp. "Syntax error" is here to catch this case.
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h. */
5936#ifdef __STDC__
5937# include <limits.h>
5938#else
5939# include <assert.h>
5940#endif
5941 Syntax error
5942_ACEOF
5943if ac_fn_c_try_cpp "$LINENO"; then :
5944
5945else
5946 # Broken: fails on valid input.
5947continue
5948fi
5949rm -f conftest.err conftest.i conftest.$ac_ext
5950
5951 # OK, works on sane cases. Now check whether nonexistent headers
5952 # can be detected and how.
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h. */
5955#include <ac_nonexistent.h>
5956_ACEOF
5957if ac_fn_c_try_cpp "$LINENO"; then :
5958 # Broken: success on invalid input.
5959continue
5960else
5961 # Passes both tests.
5962ac_preproc_ok=:
5963break
5964fi
5965rm -f conftest.err conftest.i conftest.$ac_ext
5966
5967done
5968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969rm -f conftest.i conftest.err conftest.$ac_ext
5970if $ac_preproc_ok; then :
5971 break
5972fi
5973
5974 done
5975 ac_cv_prog_CPP=$CPP
5976
5977fi
5978 CPP=$ac_cv_prog_CPP
5979else
5980 ac_cv_prog_CPP=$CPP
5981fi
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5983$as_echo "$CPP" >&6; }
5984ac_preproc_ok=false
5985for ac_c_preproc_warn_flag in '' yes
636a995d 5986do
22166f83 5987 # Use a header file that comes with gcc, so configuring glibc
5988 # with a fresh cross-compiler works.
5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 # <limits.h> exists even on freestanding compilers.
5991 # On the NeXT, cc -E runs the code through the compiler's parser,
5992 # not just through cpp. "Syntax error" is here to catch this case.
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h. */
5995#ifdef __STDC__
5996# include <limits.h>
5997#else
5998# include <assert.h>
5999#endif
6000 Syntax error
6001_ACEOF
6002if ac_fn_c_try_cpp "$LINENO"; then :
6003
6004else
6005 # Broken: fails on valid input.
6006continue
6007fi
6008rm -f conftest.err conftest.i conftest.$ac_ext
6009
6010 # OK, works on sane cases. Now check whether nonexistent headers
6011 # can be detected and how.
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h. */
6014#include <ac_nonexistent.h>
6015_ACEOF
6016if ac_fn_c_try_cpp "$LINENO"; then :
6017 # Broken: success on invalid input.
6018continue
6019else
6020 # Passes both tests.
6021ac_preproc_ok=:
6022break
6023fi
6024rm -f conftest.err conftest.i conftest.$ac_ext
6025
f0962c9f 6026done
22166f83 6027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6028rm -f conftest.i conftest.err conftest.$ac_ext
6029if $ac_preproc_ok; then :
6030
6031else
6032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6035See \`config.log' for more details" "$LINENO" 5; }
6036fi
6037
6038ac_ext=c
6039ac_cpp='$CPP $CPPFLAGS'
6040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043
6044
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6046$as_echo_n "checking for ANSI C header files... " >&6; }
6047if ${ac_cv_header_stdc+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h. */
6052#include <stdlib.h>
6053#include <stdarg.h>
6054#include <string.h>
6055#include <float.h>
6056
6057int
6058main ()
6059{
6060
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066 ac_cv_header_stdc=yes
6067else
6068 ac_cv_header_stdc=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071
6072if test $ac_cv_header_stdc = yes; then
6073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h. */
6076#include <string.h>
6077
6078_ACEOF
6079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "memchr" >/dev/null 2>&1; then :
6081
6082else
6083 ac_cv_header_stdc=no
6084fi
6085rm -f conftest*
6086
6087fi
6088
6089if test $ac_cv_header_stdc = yes; then
6090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h. */
6093#include <stdlib.h>
6094
6095_ACEOF
6096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "free" >/dev/null 2>&1; then :
6098
6099else
6100 ac_cv_header_stdc=no
6101fi
6102rm -f conftest*
6103
6104fi
6105
6106if test $ac_cv_header_stdc = yes; then
6107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6108 if test "$cross_compiling" = yes; then :
6109 :
6110else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113#include <ctype.h>
6114#include <stdlib.h>
6115#if ((' ' & 0x0FF) == 0x020)
6116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118#else
6119# define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124#endif
7f19c02f 6125
22166f83 6126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6127int
6128main ()
6129{
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 return 2;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_run "$LINENO"; then :
710658c7 6139
22166f83 6140else
6141 ac_cv_header_stdc=no
6142fi
6143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 conftest.$ac_objext conftest.beam conftest.$ac_ext
6145fi
8b72747d 6146
22166f83 6147fi
6148fi
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6150$as_echo "$ac_cv_header_stdc" >&6; }
6151if test $ac_cv_header_stdc = yes; then
9bc8b93f 6152
22166f83 6153$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9bc8b93f 6154
22166f83 6155fi
9bc8b93f 6156
22166f83 6157# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6158for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6159 inttypes.h stdint.h unistd.h
6160do :
6161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6162ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6163"
6164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6165 cat >>confdefs.h <<_ACEOF
6166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167_ACEOF
9bc8b93f 6168
22166f83 6169fi
9bc8b93f 6170
22166f83 6171done
9bc8b93f 6172
9bc8b93f 6173
22166f83 6174for ac_header in dlfcn.h
6175do :
6176 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
f922ca49 6177"
22166f83 6178if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6179 cat >>confdefs.h <<_ACEOF
6180#define HAVE_DLFCN_H 1
6181_ACEOF
9bc8b93f 6182
636a995d 6183fi
9bc8b93f 6184
22166f83 6185done
6186
9bc8b93f 6187
9bc8b93f 6188
636a995d 6189# Set options
9bc8b93f 6190
7f19c02f 6191
7f19c02f 6192
636a995d 6193 enable_dlopen=no
6194
6195
6196 enable_win32_dll=no
7f19c02f 6197
636a995d 6198
8b72747d 6199 # Check whether --enable-shared was given.
22166f83 6200if test "${enable_shared+set}" = set; then :
8b72747d 6201 enableval=$enable_shared; p=${PACKAGE-default}
636a995d 6202 case $enableval in
6203 yes) enable_shared=yes ;;
6204 no) enable_shared=no ;;
6205 *)
6206 enable_shared=no
6207 # Look at the argument we got. We use all the common list separators.
6208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6209 for pkg in $enableval; do
6210 IFS="$lt_save_ifs"
6211 if test "X$pkg" = "X$p"; then
6212 enable_shared=yes
7f19c02f 6213 fi
636a995d 6214 done
6215 IFS="$lt_save_ifs"
9bc8b93f 6216 ;;
636a995d 6217 esac
22166f83 6218else
636a995d 6219 enable_shared=yes
8b72747d 6220fi
9bc8b93f 6221
9bc8b93f 6222
9bc8b93f 6223
9bc8b93f 6224
9bc8b93f 6225
7f19c02f 6226
7f19c02f 6227
7f19c02f 6228
8b72747d 6229
6230 # Check whether --enable-static was given.
22166f83 6231if test "${enable_static+set}" = set; then :
8b72747d 6232 enableval=$enable_static; p=${PACKAGE-default}
636a995d 6233 case $enableval in
6234 yes) enable_static=yes ;;
6235 no) enable_static=no ;;
9bc8b93f 6236 *)
636a995d 6237 enable_static=no
6238 # Look at the argument we got. We use all the common list separators.
6239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6240 for pkg in $enableval; do
6241 IFS="$lt_save_ifs"
6242 if test "X$pkg" = "X$p"; then
6243 enable_static=yes
6244 fi
6245 done
6246 IFS="$lt_save_ifs"
9bc8b93f 6247 ;;
636a995d 6248 esac
22166f83 6249else
636a995d 6250 enable_static=yes
8b72747d 6251fi
9bc8b93f 6252
9bc8b93f 6253
9bc8b93f 6254
9bc8b93f 6255
9bc8b93f 6256
9bc8b93f 6257
9bc8b93f 6258
9bc8b93f 6259
9bc8b93f 6260
8b72747d 6261
6262# Check whether --with-pic was given.
22166f83 6263if test "${with_pic+set}" = set; then :
8b72747d 6264 withval=$with_pic; pic_mode="$withval"
22166f83 6265else
636a995d 6266 pic_mode=default
8b72747d 6267fi
6268
9bc8b93f 6269
636a995d 6270test -z "$pic_mode" && pic_mode=default
9bc8b93f 6271
9bc8b93f 6272
9bc8b93f 6273
9bc8b93f 6274
94984910 6275
94984910 6276
9bc8b93f 6277
8b72747d 6278 # Check whether --enable-fast-install was given.
22166f83 6279if test "${enable_fast_install+set}" = set; then :
8b72747d 6280 enableval=$enable_fast_install; p=${PACKAGE-default}
636a995d 6281 case $enableval in
6282 yes) enable_fast_install=yes ;;
6283 no) enable_fast_install=no ;;
6284 *)
6285 enable_fast_install=no
6286 # Look at the argument we got. We use all the common list separators.
6287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6288 for pkg in $enableval; do
6289 IFS="$lt_save_ifs"
6290 if test "X$pkg" = "X$p"; then
6291 enable_fast_install=yes
9bc8b93f 6292 fi
636a995d 6293 done
6294 IFS="$lt_save_ifs"
9bc8b93f 6295 ;;
636a995d 6296 esac
22166f83 6297else
636a995d 6298 enable_fast_install=yes
8b72747d 6299fi
6300
9bc8b93f 6301
9bc8b93f 6302
9bc8b93f 6303
9bc8b93f 6304
9bc8b93f 6305
9bc8b93f 6306
9bc8b93f 6307
9bc8b93f 6308
9bc8b93f 6309
9bc8b93f 6310
636a995d 6311# This can be used to rebuild libtool when needed
6312LIBTOOL_DEPS="$ltmain"
9bc8b93f 6313
636a995d 6314# Always use our own libtool.
6315LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7f19c02f 6316
7f19c02f 6317
7f19c02f 6318
7f19c02f 6319
9bc8b93f 6320
9bc8b93f 6321
9bc8b93f 6322
9bc8b93f 6323
9bc8b93f 6324
9bc8b93f 6325
9bc8b93f 6326
9bc8b93f 6327
9bc8b93f 6328
9bc8b93f 6329
9bc8b93f 6330
9bc8b93f 6331
9bc8b93f 6332
9bc8b93f 6333
9bc8b93f 6334
9bc8b93f 6335
9bc8b93f 6336
7f19c02f 6337
9bc8b93f 6338
9bc8b93f 6339
9bc8b93f 6340
636a995d 6341test -z "$LN_S" && LN_S="ln -s"
9bc8b93f 6342
9bc8b93f 6343
9bc8b93f 6344
9bc8b93f 6345
636a995d 6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356if test -n "${ZSH_VERSION+set}" ; then
6357 setopt NO_GLOB_SUBST
6358fi
6359
22166f83 6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6361$as_echo_n "checking for objdir... " >&6; }
6362if ${lt_cv_objdir+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364else
636a995d 6365 rm -f .libs 2>/dev/null
6366mkdir .libs 2>/dev/null
6367if test -d .libs; then
6368 lt_cv_objdir=.libs
6369else
6370 # MS-DOS does not allow filenames that begin with a dot.
6371 lt_cv_objdir=_libs
9bc8b93f 6372fi
636a995d 6373rmdir .libs 2>/dev/null
6374fi
22166f83 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6376$as_echo "$lt_cv_objdir" >&6; }
636a995d 6377objdir=$lt_cv_objdir
9bc8b93f 6378
9bc8b93f 6379
9bc8b93f 6380
9bc8b93f 6381
9bc8b93f 6382
22166f83 6383cat >>confdefs.h <<_ACEOF
6384#define LT_OBJDIR "$lt_cv_objdir/"
6385_ACEOF
9bc8b93f 6386
9bc8b93f 6387
9bc8b93f 6388
9bc8b93f 6389
9bc8b93f 6390
9bc8b93f 6391
7f19c02f 6392
9bc8b93f 6393
9bc8b93f 6394
9bc8b93f 6395
9bc8b93f 6396
9bc8b93f 6397
7f19c02f 6398
9bc8b93f 6399
9bc8b93f 6400
9bc8b93f 6401
7f19c02f 6402
636a995d 6403case $host_os in
6404aix3*)
6405 # AIX sometimes has problems with the GCC collect2 program. For some
6406 # reason, if we set the COLLECT_NAMES environment variable, the problems
6407 # vanish in a puff of smoke.
6408 if test "X${COLLECT_NAMES+set}" != Xset; then
6409 COLLECT_NAMES=
6410 export COLLECT_NAMES
6411 fi
9bc8b93f 6412 ;;
636a995d 6413esac
9bc8b93f 6414
636a995d 6415# Sed substitution that helps us do robust quoting. It backslashifies
6416# metacharacters that are still active within double-quoted strings.
6417sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9bc8b93f 6418
636a995d 6419# Same as above, but do not quote variable references.
6420double_quote_subst='s/\(["`\\]\)/\\\1/g'
9bc8b93f 6421
636a995d 6422# Sed substitution to delay expansion of an escaped shell variable in a
6423# double_quote_subst'ed string.
6424delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9bc8b93f 6425
636a995d 6426# Sed substitution to delay expansion of an escaped single quote.
6427delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9bc8b93f 6428
636a995d 6429# Sed substitution to avoid accidental globbing in evaled expressions
6430no_glob_subst='s/\*/\\\*/g'
9bc8b93f 6431
636a995d 6432# Global variables:
6433ofile=libtool
6434can_build_shared=yes
9bc8b93f 6435
636a995d 6436# All known linkers require a `.a' archive for static linking (except MSVC,
6437# which needs '.lib').
6438libext=a
9bc8b93f 6439
636a995d 6440with_gnu_ld="$lt_cv_prog_gnu_ld"
9bc8b93f 6441
636a995d 6442old_CC="$CC"
6443old_CFLAGS="$CFLAGS"
9bc8b93f 6444
636a995d 6445# Set sane defaults for various variables
6446test -z "$CC" && CC=cc
6447test -z "$LTCC" && LTCC=$CC
6448test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6449test -z "$LD" && LD=ld
6450test -z "$ac_objext" && ac_objext=o
9bc8b93f 6451
636a995d 6452for cc_temp in $compiler""; do
6453 case $cc_temp in
6454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6456 \-*) ;;
6457 *) break;;
6458 esac
6459done
6460cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9bc8b93f 6461
9bc8b93f 6462
636a995d 6463# Only perform the check for file, if the check method requires it
6464test -z "$MAGIC_CMD" && MAGIC_CMD=file
6465case $deplibs_check_method in
6466file_magic*)
6467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
22166f83 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6469$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6470if ${lt_cv_path_MAGIC_CMD+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472else
636a995d 6473 case $MAGIC_CMD in
6474[\\/*] | ?:[\\/]*)
6475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9bc8b93f 6476 ;;
636a995d 6477*)
6478 lt_save_MAGIC_CMD="$MAGIC_CMD"
6479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6481 for ac_dir in $ac_dummy; do
6482 IFS="$lt_save_ifs"
6483 test -z "$ac_dir" && ac_dir=.
6484 if test -f $ac_dir/${ac_tool_prefix}file; then
6485 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6486 if test -n "$file_magic_test_file"; then
6487 case $deplibs_check_method in
6488 "file_magic "*)
6489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6492 $EGREP "$file_magic_regex" > /dev/null; then
6493 :
6494 else
6495 cat <<_LT_EOF 1>&2
9bc8b93f 6496
636a995d 6497*** Warning: the command libtool uses to detect shared libraries,
6498*** $file_magic_cmd, produces output that libtool cannot recognize.
6499*** The result is that libtool may fail to recognize shared libraries
6500*** as such. This will affect the creation of libtool libraries that
6501*** depend on shared libraries, but programs linked with such libtool
6502*** libraries will work regardless of this problem. Nevertheless, you
6503*** may want to report the problem to your system manager and/or to
6504*** bug-libtool@gnu.org
9bc8b93f 6505
636a995d 6506_LT_EOF
6507 fi ;;
6508 esac
6509 fi
6510 break
6511 fi
6512 done
6513 IFS="$lt_save_ifs"
6514 MAGIC_CMD="$lt_save_MAGIC_CMD"
9bc8b93f 6515 ;;
636a995d 6516esac
6517fi
6518
6519MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6520if test -n "$MAGIC_CMD"; then
22166f83 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6522$as_echo "$MAGIC_CMD" >&6; }
636a995d 6523else
22166f83 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
636a995d 6526fi
6527
6528
9bc8b93f 6529
7f19c02f 6530
9bc8b93f 6531
636a995d 6532if test -z "$lt_cv_path_MAGIC_CMD"; then
6533 if test -n "$ac_tool_prefix"; then
22166f83 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6535$as_echo_n "checking for file... " >&6; }
6536if ${lt_cv_path_MAGIC_CMD+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538else
636a995d 6539 case $MAGIC_CMD in
6540[\\/*] | ?:[\\/]*)
6541 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6542 ;;
9bc8b93f 6543*)
636a995d 6544 lt_save_MAGIC_CMD="$MAGIC_CMD"
6545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6547 for ac_dir in $ac_dummy; do
6548 IFS="$lt_save_ifs"
6549 test -z "$ac_dir" && ac_dir=.
6550 if test -f $ac_dir/file; then
6551 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6552 if test -n "$file_magic_test_file"; then
6553 case $deplibs_check_method in
6554 "file_magic "*)
6555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6558 $EGREP "$file_magic_regex" > /dev/null; then
6559 :
6560 else
6561 cat <<_LT_EOF 1>&2
6562
6563*** Warning: the command libtool uses to detect shared libraries,
6564*** $file_magic_cmd, produces output that libtool cannot recognize.
6565*** The result is that libtool may fail to recognize shared libraries
6566*** as such. This will affect the creation of libtool libraries that
6567*** depend on shared libraries, but programs linked with such libtool
6568*** libraries will work regardless of this problem. Nevertheless, you
6569*** may want to report the problem to your system manager and/or to
6570*** bug-libtool@gnu.org
6571
6572_LT_EOF
6573 fi ;;
6574 esac
6575 fi
6576 break
6577 fi
6578 done
6579 IFS="$lt_save_ifs"
6580 MAGIC_CMD="$lt_save_MAGIC_CMD"
9bc8b93f 6581 ;;
6582esac
636a995d 6583fi
9bc8b93f 6584
636a995d 6585MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6586if test -n "$MAGIC_CMD"; then
22166f83 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6588$as_echo "$MAGIC_CMD" >&6; }
636a995d 6589else
22166f83 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591$as_echo "no" >&6; }
7f19c02f 6592fi
6593
9bc8b93f 6594
9bc8b93f 6595 else
636a995d 6596 MAGIC_CMD=:
9bc8b93f 6597 fi
9bc8b93f 6598fi
9bc8b93f 6599
636a995d 6600 fi
6601 ;;
6602esac
9bc8b93f 6603
636a995d 6604# Use C for the default configuration in the libtool script
9bc8b93f 6605
636a995d 6606lt_save_CC="$CC"
6607ac_ext=c
6608ac_cpp='$CPP $CPPFLAGS'
6609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611ac_compiler_gnu=$ac_cv_c_compiler_gnu
9bc8b93f 6612
9bc8b93f 6613
636a995d 6614# Source file extension for C test sources.
6615ac_ext=c
9bc8b93f 6616
636a995d 6617# Object file extension for compiled C test sources.
6618objext=o
6619objext=$objext
9bc8b93f 6620
636a995d 6621# Code to be used in simple compile tests
6622lt_simple_compile_test_code="int some_variable = 0;"
9bc8b93f 6623
636a995d 6624# Code to be used in simple link tests
6625lt_simple_link_test_code='int main(){return(0);}'
9bc8b93f 6626
94984910 6627
9bc8b93f 6628
9bc8b93f 6629
9bc8b93f 6630
9bc8b93f 6631
9bc8b93f 6632
636a995d 6633# If no C compiler was specified, use CC.
6634LTCC=${LTCC-"$CC"}
9bc8b93f 6635
636a995d 6636# If no C compiler flags were specified, use CFLAGS.
6637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9bc8b93f 6638
636a995d 6639# Allow CC to be a program name with arguments.
6640compiler=$CC
9bc8b93f 6641
636a995d 6642# Save the default compiler, since it gets overwritten when the other
6643# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6644compiler_DEFAULT=$CC
9bc8b93f 6645
636a995d 6646# save warnings/boilerplate of simple test code
6647ac_outfile=conftest.$ac_objext
6648echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6649eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6650_lt_compiler_boilerplate=`cat conftest.err`
6651$RM conftest*
9bc8b93f 6652
636a995d 6653ac_outfile=conftest.$ac_objext
6654echo "$lt_simple_link_test_code" >conftest.$ac_ext
6655eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6656_lt_linker_boilerplate=`cat conftest.err`
6657$RM -r conftest*
94984910 6658
9bc8b93f 6659
636a995d 6660if test -n "$compiler"; then
6661
6662lt_prog_compiler_no_builtin_flag=
6663
6664if test "$GCC" = yes; then
6665 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6666
22166f83 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6668$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6669if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671else
636a995d 6672 lt_cv_prog_compiler_rtti_exceptions=no
6673 ac_outfile=conftest.$ac_objext
6674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6675 lt_compiler_flag="-fno-rtti -fno-exceptions"
6676 # Insert the option either (1) after the last *FLAGS variable, or
6677 # (2) before a word containing "conftest.", or (3) at the end.
6678 # Note that $ac_compile itself does not contain backslashes and begins
6679 # with a dollar sign (not a hyphen), so the echo should work correctly.
6680 # The option is referenced via a variable to avoid confusing sed.
6681 lt_compile=`echo "$ac_compile" | $SED \
6682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6684 -e 's:$: $lt_compiler_flag:'`
8525e2d9 6685 (eval echo "\"\$as_me:6685: $lt_compile\"" >&5)
636a995d 6686 (eval "$lt_compile" 2>conftest.err)
6687 ac_status=$?
6688 cat conftest.err >&5
8525e2d9 6689 echo "$as_me:6689: \$? = $ac_status" >&5
636a995d 6690 if (exit $ac_status) && test -s "$ac_outfile"; then
6691 # The compiler can only warn and ignore the option if not recognized
6692 # So say no if there are warnings other than the usual output.
6693 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6696 lt_cv_prog_compiler_rtti_exceptions=yes
6697 fi
6698 fi
6699 $RM conftest*
9bc8b93f 6700
9bc8b93f 6701fi
22166f83 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6703$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
94984910 6704
636a995d 6705if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9bc8b93f 6707else
636a995d 6708 :
9bc8b93f 6709fi
94984910 6710
9bc8b93f 6711fi
9bc8b93f 6712
9bc8b93f 6713
94984910 6714
9bc8b93f 6715
6716
9bc8b93f 6717
636a995d 6718 lt_prog_compiler_wl=
6719lt_prog_compiler_pic=
6720lt_prog_compiler_static=
9bc8b93f 6721
22166f83 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6723$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9bc8b93f 6724
636a995d 6725 if test "$GCC" = yes; then
6726 lt_prog_compiler_wl='-Wl,'
6727 lt_prog_compiler_static='-static'
9bc8b93f 6728
636a995d 6729 case $host_os in
6730 aix*)
6731 # All AIX code is PIC.
6732 if test "$host_cpu" = ia64; then
6733 # AIX 5 now supports IA64 processor
6734 lt_prog_compiler_static='-Bstatic'
6735 fi
6736 ;;
9bc8b93f 6737
636a995d 6738 amigaos*)
6739 case $host_cpu in
6740 powerpc)
6741 # see comment about AmigaOS4 .so support
6742 lt_prog_compiler_pic='-fPIC'
6743 ;;
6744 m68k)
6745 # FIXME: we need at least 68020 code to build shared libraries, but
6746 # adding the `-m68020' flag to GCC prevents building anything better,
6747 # like `-m68040'.
6748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6749 ;;
6750 esac
6751 ;;
9bc8b93f 6752
636a995d 6753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6754 # PIC is the default for these OSes.
6755 ;;
9bc8b93f 6756
6acb2cf6 6757 mingw* | cygwin* | pw32* | os2* | cegcc*)
636a995d 6758 # This hack is so that the source file can tell whether it is being
6759 # built for inclusion in a dll (and should export symbols for example).
6760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6761 # (--disable-auto-import) libraries
6762 lt_prog_compiler_pic='-DDLL_EXPORT'
6763 ;;
9bc8b93f 6764
636a995d 6765 darwin* | rhapsody*)
6766 # PIC is the default on this platform
6767 # Common symbols not allowed in MH_DYLIB files
6768 lt_prog_compiler_pic='-fno-common'
6769 ;;
9bc8b93f 6770
636a995d 6771 hpux*)
6acb2cf6 6772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6774 # sets the default TLS model and affects inlining.
636a995d 6775 case $host_cpu in
6acb2cf6 6776 hppa*64*)
636a995d 6777 # +Z the default
6778 ;;
6779 *)
6780 lt_prog_compiler_pic='-fPIC'
6781 ;;
6782 esac
6783 ;;
9bc8b93f 6784
636a995d 6785 interix[3-9]*)
6786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6787 # Instead, we relocate shared libraries at runtime.
6788 ;;
9bc8b93f 6789
636a995d 6790 msdosdjgpp*)
6791 # Just because we use GCC doesn't mean we suddenly get shared libraries
6792 # on systems that don't support them.
6793 lt_prog_compiler_can_build_shared=no
6794 enable_shared=no
6795 ;;
9bc8b93f 6796
636a995d 6797 *nto* | *qnx*)
6798 # QNX uses GNU C++, but need to define -shared option too, otherwise
6799 # it will coredump.
6800 lt_prog_compiler_pic='-fPIC -shared'
6801 ;;
9bc8b93f 6802
636a995d 6803 sysv4*MP*)
6804 if test -d /usr/nec; then
6805 lt_prog_compiler_pic=-Kconform_pic
6806 fi
6807 ;;
9bc8b93f 6808
636a995d 6809 *)
6810 lt_prog_compiler_pic='-fPIC'
6811 ;;
6812 esac
6813 else
6814 # PORTME Check for flag to pass linker flags through the system compiler.
6815 case $host_os in
6816 aix*)
6817 lt_prog_compiler_wl='-Wl,'
6818 if test "$host_cpu" = ia64; then
6819 # AIX 5 now supports IA64 processor
6820 lt_prog_compiler_static='-Bstatic'
6821 else
6822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6823 fi
6824 ;;
9bc8b93f 6825
6acb2cf6 6826 mingw* | cygwin* | pw32* | os2* | cegcc*)
636a995d 6827 # This hack is so that the source file can tell whether it is being
6828 # built for inclusion in a dll (and should export symbols for example).
6829 lt_prog_compiler_pic='-DDLL_EXPORT'
6830 ;;
9bc8b93f 6831
636a995d 6832 hpux9* | hpux10* | hpux11*)
6833 lt_prog_compiler_wl='-Wl,'
6834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6835 # not for PA HP-UX.
6836 case $host_cpu in
6837 hppa*64*|ia64*)
6838 # +Z the default
6839 ;;
6840 *)
6841 lt_prog_compiler_pic='+Z'
6842 ;;
6843 esac
6844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6845 lt_prog_compiler_static='${wl}-a ${wl}archive'
6846 ;;
9bc8b93f 6847
636a995d 6848 irix5* | irix6* | nonstopux*)
6849 lt_prog_compiler_wl='-Wl,'
6850 # PIC (with -KPIC) is the default.
6851 lt_prog_compiler_static='-non_shared'
6852 ;;
9bc8b93f 6853
636a995d 6854 linux* | k*bsd*-gnu)
6855 case $cc_basename in
6acb2cf6 6856 # old Intel for x86_64 which still supported -KPIC.
6857 ecc*)
636a995d 6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-static'
6861 ;;
6acb2cf6 6862 # icc used to be incompatible with GCC.
6863 # ICC 10 doesn't accept -KPIC any more.
6864 icc* | ifort*)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-fPIC'
6867 lt_prog_compiler_static='-static'
6868 ;;
6869 # Lahey Fortran 8.1.
6870 lf95*)
6871 lt_prog_compiler_wl='-Wl,'
6872 lt_prog_compiler_pic='--shared'
6873 lt_prog_compiler_static='--static'
6874 ;;
636a995d 6875 pgcc* | pgf77* | pgf90* | pgf95*)
6876 # Portland Group compilers (*not* the Pentium gcc compiler,
6877 # which looks to be a dead project)
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_pic='-fpic'
6880 lt_prog_compiler_static='-Bstatic'
6881 ;;
6882 ccc*)
6883 lt_prog_compiler_wl='-Wl,'
6884 # All Alpha code is PIC.
6885 lt_prog_compiler_static='-non_shared'
6886 ;;
6887 xl*)
6888 # IBM XL C 8.0/Fortran 10.1 on PPC
6889 lt_prog_compiler_wl='-Wl,'
6890 lt_prog_compiler_pic='-qpic'
6891 lt_prog_compiler_static='-qstaticlink'
6892 ;;
6893 *)
6894 case `$CC -V 2>&1 | sed 5q` in
6895 *Sun\ C*)
6896 # Sun C 5.9
6897 lt_prog_compiler_pic='-KPIC'
6898 lt_prog_compiler_static='-Bstatic'
6899 lt_prog_compiler_wl='-Wl,'
6900 ;;
6901 *Sun\ F*)
6902 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6903 lt_prog_compiler_pic='-KPIC'
6904 lt_prog_compiler_static='-Bstatic'
6905 lt_prog_compiler_wl=''
6906 ;;
6907 esac
6908 ;;
6909 esac
6910 ;;
9bc8b93f 6911
636a995d 6912 newsos6)
6913 lt_prog_compiler_pic='-KPIC'
6914 lt_prog_compiler_static='-Bstatic'
6915 ;;
9bc8b93f 6916
636a995d 6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6921 ;;
9bc8b93f 6922
636a995d 6923 osf3* | osf4* | osf5*)
6924 lt_prog_compiler_wl='-Wl,'
6925 # All OSF/1 code is PIC.
6926 lt_prog_compiler_static='-non_shared'
6927 ;;
9bc8b93f 6928
636a995d 6929 rdos*)
6930 lt_prog_compiler_static='-non_shared'
6931 ;;
9bc8b93f 6932
636a995d 6933 solaris*)
6934 lt_prog_compiler_pic='-KPIC'
6935 lt_prog_compiler_static='-Bstatic'
6936 case $cc_basename in
6937 f77* | f90* | f95*)
6938 lt_prog_compiler_wl='-Qoption ld ';;
6939 *)
6940 lt_prog_compiler_wl='-Wl,';;
6941 esac
6942 ;;
9bc8b93f 6943
636a995d 6944 sunos4*)
6945 lt_prog_compiler_wl='-Qoption ld '
6946 lt_prog_compiler_pic='-PIC'
6947 lt_prog_compiler_static='-Bstatic'
6948 ;;
9bc8b93f 6949
636a995d 6950 sysv4 | sysv4.2uw2* | sysv4.3*)
6951 lt_prog_compiler_wl='-Wl,'
6952 lt_prog_compiler_pic='-KPIC'
6953 lt_prog_compiler_static='-Bstatic'
6954 ;;
9bc8b93f 6955
636a995d 6956 sysv4*MP*)
6957 if test -d /usr/nec ;then
6958 lt_prog_compiler_pic='-Kconform_pic'
6959 lt_prog_compiler_static='-Bstatic'
6960 fi
6961 ;;
9bc8b93f 6962
636a995d 6963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6964 lt_prog_compiler_wl='-Wl,'
6965 lt_prog_compiler_pic='-KPIC'
6966 lt_prog_compiler_static='-Bstatic'
6967 ;;
9bc8b93f 6968
636a995d 6969 unicos*)
6970 lt_prog_compiler_wl='-Wl,'
6971 lt_prog_compiler_can_build_shared=no
6972 ;;
9bc8b93f 6973
636a995d 6974 uts4*)
6975 lt_prog_compiler_pic='-pic'
6976 lt_prog_compiler_static='-Bstatic'
6977 ;;
9bc8b93f 6978
636a995d 6979 *)
6980 lt_prog_compiler_can_build_shared=no
6981 ;;
9bc8b93f 6982 esac
9bc8b93f 6983 fi
9bc8b93f 6984
7f19c02f 6985case $host_os in
636a995d 6986 # For platforms which do not support PIC, -DPIC is meaningless:
6987 *djgpp*)
6988 lt_prog_compiler_pic=
6989 ;;
6990 *)
6991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9bc8b93f 6992 ;;
6993esac
22166f83 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6995$as_echo "$lt_prog_compiler_pic" >&6; }
636a995d 6996
6997
9bc8b93f 6998
9bc8b93f 6999
9bc8b93f 7000
9bc8b93f 7001
9bc8b93f 7002#
636a995d 7003# Check to make sure the PIC flag actually works.
9bc8b93f 7004#
636a995d 7005if test -n "$lt_prog_compiler_pic"; then
22166f83 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7007$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7008if ${lt_cv_prog_compiler_pic_works+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010else
636a995d 7011 lt_cv_prog_compiler_pic_works=no
7012 ac_outfile=conftest.$ac_objext
7013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 # The option is referenced via a variable to avoid confusing sed.
7020 lt_compile=`echo "$ac_compile" | $SED \
7021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7023 -e 's:$: $lt_compiler_flag:'`
8525e2d9 7024 (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
636a995d 7025 (eval "$lt_compile" 2>conftest.err)
7026 ac_status=$?
7027 cat conftest.err >&5
8525e2d9 7028 echo "$as_me:7028: \$? = $ac_status" >&5
636a995d 7029 if (exit $ac_status) && test -s "$ac_outfile"; then
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings other than the usual output.
7032 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7035 lt_cv_prog_compiler_pic_works=yes
7036 fi
7037 fi
7038 $RM conftest*
9bc8b93f 7039
636a995d 7040fi
22166f83 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7042$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9bc8b93f 7043
636a995d 7044if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7045 case $lt_prog_compiler_pic in
7046 "" | " "*) ;;
7047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7048 esac
7049else
7050 lt_prog_compiler_pic=
7051 lt_prog_compiler_can_build_shared=no
7052fi
9bc8b93f 7053
636a995d 7054fi
9bc8b93f 7055
9bc8b93f 7056
9bc8b93f 7057
9bc8b93f 7058
9bc8b93f 7059
9bc8b93f 7060
636a995d 7061#
7062# Check to make sure the static flag actually works.
7063#
7064wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
22166f83 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7066$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7067if ${lt_cv_prog_compiler_static_works+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069else
636a995d 7070 lt_cv_prog_compiler_static_works=no
7071 save_LDFLAGS="$LDFLAGS"
7072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7075 # The linker can only warn and ignore the option if not recognized
7076 # So say no if there are warnings
7077 if test -s conftest.err; then
7078 # Append any errors to the config.log.
7079 cat conftest.err 1>&5
7080 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7082 if diff conftest.exp conftest.er2 >/dev/null; then
7083 lt_cv_prog_compiler_static_works=yes
7084 fi
7085 else
7086 lt_cv_prog_compiler_static_works=yes
7087 fi
7088 fi
7089 $RM -r conftest*
7090 LDFLAGS="$save_LDFLAGS"
9bc8b93f 7091
636a995d 7092fi
22166f83 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7094$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9bc8b93f 7095
636a995d 7096if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7097 :
7098else
7099 lt_prog_compiler_static=
7100fi
9bc8b93f 7101
9bc8b93f 7102
7f19c02f 7103
9bc8b93f 7104
9bc8b93f 7105
9bc8b93f 7106
9bc8b93f 7107
22166f83 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7109$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7110if ${lt_cv_prog_compiler_c_o+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112else
636a995d 7113 lt_cv_prog_compiler_c_o=no
7114 $RM -r conftest 2>/dev/null
7115 mkdir conftest
7116 cd conftest
7117 mkdir out
7118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7f19c02f 7119
636a995d 7120 lt_compiler_flag="-o out/conftest2.$ac_objext"
7121 # Insert the option either (1) after the last *FLAGS variable, or
7122 # (2) before a word containing "conftest.", or (3) at the end.
7123 # Note that $ac_compile itself does not contain backslashes and begins
7124 # with a dollar sign (not a hyphen), so the echo should work correctly.
7125 lt_compile=`echo "$ac_compile" | $SED \
7126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7128 -e 's:$: $lt_compiler_flag:'`
8525e2d9 7129 (eval echo "\"\$as_me:7129: $lt_compile\"" >&5)
636a995d 7130 (eval "$lt_compile" 2>out/conftest.err)
7131 ac_status=$?
7132 cat out/conftest.err >&5
8525e2d9 7133 echo "$as_me:7133: \$? = $ac_status" >&5
636a995d 7134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7135 then
7136 # The compiler can only warn and ignore the option if not recognized
7137 # So say no if there are warnings
7138 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7141 lt_cv_prog_compiler_c_o=yes
7142 fi
7143 fi
7144 chmod u+w . 2>&5
7145 $RM conftest*
7146 # SGI C++ compiler will create directory out/ii_files/ for
7147 # template instantiation
7148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7149 $RM out/* && rmdir out
7150 cd ..
7151 $RM -r conftest
7152 $RM conftest*
9bc8b93f 7153
636a995d 7154fi
22166f83 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7156$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9bc8b93f 7157
9bc8b93f 7158
9bc8b93f 7159
9bc8b93f 7160
9bc8b93f 7161
9bc8b93f 7162
22166f83 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7164$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7165if ${lt_cv_prog_compiler_c_o+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167else
636a995d 7168 lt_cv_prog_compiler_c_o=no
7169 $RM -r conftest 2>/dev/null
7170 mkdir conftest
7171 cd conftest
7172 mkdir out
7173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9bc8b93f 7174
636a995d 7175 lt_compiler_flag="-o out/conftest2.$ac_objext"
7176 # Insert the option either (1) after the last *FLAGS variable, or
7177 # (2) before a word containing "conftest.", or (3) at the end.
7178 # Note that $ac_compile itself does not contain backslashes and begins
7179 # with a dollar sign (not a hyphen), so the echo should work correctly.
7180 lt_compile=`echo "$ac_compile" | $SED \
7181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7183 -e 's:$: $lt_compiler_flag:'`
8525e2d9 7184 (eval echo "\"\$as_me:7184: $lt_compile\"" >&5)
636a995d 7185 (eval "$lt_compile" 2>out/conftest.err)
7186 ac_status=$?
7187 cat out/conftest.err >&5
8525e2d9 7188 echo "$as_me:7188: \$? = $ac_status" >&5
636a995d 7189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7190 then
7191 # The compiler can only warn and ignore the option if not recognized
7192 # So say no if there are warnings
7193 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7196 lt_cv_prog_compiler_c_o=yes
7197 fi
7198 fi
7199 chmod u+w . 2>&5
7200 $RM conftest*
7201 # SGI C++ compiler will create directory out/ii_files/ for
7202 # template instantiation
7203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7204 $RM out/* && rmdir out
7205 cd ..
7206 $RM -r conftest
7207 $RM conftest*
9bc8b93f 7208
636a995d 7209fi
22166f83 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7211$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9bc8b93f 7212
9bc8b93f 7213
9bc8b93f 7214
9bc8b93f 7215
636a995d 7216hard_links="nottested"
7217if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7218 # do not overwrite the value of need_locks provided by the user
22166f83 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7220$as_echo_n "checking if we can lock with hard links... " >&6; }
636a995d 7221 hard_links=yes
7222 $RM conftest*
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224 touch conftest.a
7225 ln conftest.a conftest.b 2>&5 || hard_links=no
7226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22166f83 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7228$as_echo "$hard_links" >&6; }
636a995d 7229 if test "$hard_links" = no; then
22166f83 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7231$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
636a995d 7232 need_locks=warn
7233 fi
7234else
7235 need_locks=no
7236fi
9bc8b93f 7237
9bc8b93f 7238
9bc8b93f 7239
9bc8b93f 7240
9bc8b93f 7241
9bc8b93f 7242
22166f83 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7244$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9bc8b93f 7245
636a995d 7246 runpath_var=
7247 allow_undefined_flag=
7248 always_export_symbols=no
7249 archive_cmds=
7250 archive_expsym_cmds=
7251 compiler_needs_object=no
7252 enable_shared_with_static_runtimes=no
7253 export_dynamic_flag_spec=
7254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7255 hardcode_automatic=no
7256 hardcode_direct=no
7257 hardcode_direct_absolute=no
7258 hardcode_libdir_flag_spec=
7259 hardcode_libdir_flag_spec_ld=
7260 hardcode_libdir_separator=
7261 hardcode_minus_L=no
7262 hardcode_shlibpath_var=unsupported
7263 inherit_rpath=no
7264 link_all_deplibs=unknown
7265 module_cmds=
7266 module_expsym_cmds=
7267 old_archive_from_new_cmds=
7268 old_archive_from_expsyms_cmds=
7269 thread_safe_flag_spec=
7270 whole_archive_flag_spec=
7271 # include_expsyms should be a list of space-separated symbols to be *always*
7272 # included in the symbol list
7273 include_expsyms=
7274 # exclude_expsyms can be an extended regexp of symbols to exclude
7275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7277 # as well as any symbol that contains `d'.
7278 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7280 # platforms (ab)use it in PIC code, but their linkers get confused if
7281 # the symbol is explicitly referenced. Since portable code cannot
7282 # rely on this symbol name, it's probably fine to never include it in
7283 # preloaded symbol tables.
7284 # Exclude shared library initialization/finalization symbols.
7285 extract_expsyms_cmds=
9bc8b93f 7286
636a995d 7287 case $host_os in
6acb2cf6 7288 cygwin* | mingw* | pw32* | cegcc*)
636a995d 7289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7290 # When not using gcc, we currently assume that we are using
7291 # Microsoft Visual C++.
7292 if test "$GCC" != yes; then
7293 with_gnu_ld=no
7294 fi
7295 ;;
7296 interix*)
7297 # we just hope/assume this is gcc and not c89 (= MSVC++)
7298 with_gnu_ld=yes
7299 ;;
7300 openbsd*)
7301 with_gnu_ld=no
7302 ;;
7303 esac
9bc8b93f 7304
636a995d 7305 ld_shlibs=yes
7306 if test "$with_gnu_ld" = yes; then
7307 # If archive_cmds runs LD, not CC, wlarc should be empty
7308 wlarc='${wl}'
9bc8b93f 7309
636a995d 7310 # Set some defaults for GNU ld with shared library support. These
7311 # are reset later if shared libraries are not supported. Putting them
7312 # here allows them to be overridden if necessary.
7313 runpath_var=LD_RUN_PATH
7314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7315 export_dynamic_flag_spec='${wl}--export-dynamic'
7316 # ancient GNU ld didn't support --whole-archive et. al.
7317 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7318 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7319 else
7320 whole_archive_flag_spec=
7321 fi
7322 supports_anon_versioning=no
7323 case `$LD -v 2>&1` in
7324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7327 *\ 2.11.*) ;; # other 2.11 versions
7328 *) supports_anon_versioning=yes ;;
7329 esac
9bc8b93f 7330
636a995d 7331 # See if GNU ld supports shared libraries.
7332 case $host_os in
7333 aix[3-9]*)
7334 # On AIX/PPC, the GNU linker is very broken
7335 if test "$host_cpu" != ia64; then
7336 ld_shlibs=no
7337 cat <<_LT_EOF 1>&2
9bc8b93f 7338
636a995d 7339*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7340*** to be unable to reliably create shared libraries on AIX.
7341*** Therefore, libtool is disabling shared libraries support. If you
7342*** really care for shared libraries, you may want to modify your PATH
7343*** so that a non-GNU linker is found, and then restart.
9bc8b93f 7344
636a995d 7345_LT_EOF
7346 fi
7347 ;;
9bc8b93f 7348
636a995d 7349 amigaos*)
7350 case $host_cpu in
7351 powerpc)
7352 # see comment about AmigaOS4 .so support
7353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354 archive_expsym_cmds=''
7355 ;;
7356 m68k)
7357 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)'
7358 hardcode_libdir_flag_spec='-L$libdir'
7359 hardcode_minus_L=yes
7360 ;;
7361 esac
7362 ;;
9bc8b93f 7363
636a995d 7364 beos*)
7365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7366 allow_undefined_flag=unsupported
7367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7368 # support --undefined. This deserves some investigation. FIXME
7369 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7370 else
7371 ld_shlibs=no
7372 fi
7373 ;;
9bc8b93f 7374
6acb2cf6 7375 cygwin* | mingw* | pw32* | cegcc*)
636a995d 7376 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7377 # as there is no search path for DLLs.
7378 hardcode_libdir_flag_spec='-L$libdir'
7379 allow_undefined_flag=unsupported
7380 always_export_symbols=no
7381 enable_shared_with_static_runtimes=yes
7382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9bc8b93f 7383
636a995d 7384 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7386 # If the export-symbols file already is a .def file (1st line
7387 # is EXPORTS), use it as is; otherwise, prepend...
7388 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7389 cp $export_symbols $output_objdir/$soname.def;
7390 else
7391 echo EXPORTS > $output_objdir/$soname.def;
7392 cat $export_symbols >> $output_objdir/$soname.def;
7393 fi~
7394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7395 else
7396 ld_shlibs=no
7397 fi
7398 ;;
9bc8b93f 7399
636a995d 7400 interix[3-9]*)
7401 hardcode_direct=no
7402 hardcode_shlibpath_var=no
7403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7404 export_dynamic_flag_spec='${wl}-E'
7405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7406 # Instead, shared libraries are loaded at an image base (0x10000000 by
7407 # default) and relocated if they conflict, which is a slow very memory
7408 # consuming and fragmenting process. To avoid this, we pick a random,
7409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7410 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7411 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7412 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'
7413 ;;
9bc8b93f 7414
636a995d 7415 gnu* | linux* | tpf* | k*bsd*-gnu)
7416 tmp_diet=no
7417 if test "$host_os" = linux-dietlibc; then
7418 case $cc_basename in
7419 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7420 esac
7421 fi
7422 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7423 && test "$tmp_diet" = no
7424 then
7425 tmp_addflag=
7426 tmp_sharedflag='-shared'
7427 case $cc_basename,$host_cpu in
7428 pgcc*) # Portland Group C compiler
7429 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'
7430 tmp_addflag=' $pic_flag'
7431 ;;
7432 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7433 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'
7434 tmp_addflag=' $pic_flag -Mnomain' ;;
7435 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7436 tmp_addflag=' -i_dynamic' ;;
7437 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7438 tmp_addflag=' -i_dynamic -nofor_main' ;;
7439 ifc* | ifort*) # Intel Fortran compiler
7440 tmp_addflag=' -nofor_main' ;;
6acb2cf6 7441 lf95*) # Lahey Fortran 8.1
7442 whole_archive_flag_spec=
7443 tmp_sharedflag='--shared' ;;
636a995d 7444 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7445 tmp_sharedflag='-qmkshrobj'
7446 tmp_addflag= ;;
7447 esac
7448 case `$CC -V 2>&1 | sed 5q` in
7449 *Sun\ C*) # Sun C 5.9
7450 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'
7451 compiler_needs_object=yes
7452 tmp_sharedflag='-G' ;;
7453 *Sun\ F*) # Sun Fortran 8.3
7454 tmp_sharedflag='-G' ;;
7455 esac
7456 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9bc8b93f 7457
636a995d 7458 if test "x$supports_anon_versioning" = xyes; then
7459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7461 echo "local: *; };" >> $output_objdir/$libname.ver~
7462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7463 fi
9bc8b93f 7464
636a995d 7465 case $cc_basename in
7466 xlf*)
7467 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7468 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7469 hardcode_libdir_flag_spec=
7470 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7471 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7472 if test "x$supports_anon_versioning" = xyes; then
7473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7475 echo "local: *; };" >> $output_objdir/$libname.ver~
7476 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7477 fi
7478 ;;
7479 esac
7480 else
7481 ld_shlibs=no
7482 fi
7483 ;;
9bc8b93f 7484
636a995d 7485 netbsd*)
7486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7488 wlarc=
7489 else
7490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7492 fi
7493 ;;
9bc8b93f 7494
636a995d 7495 solaris*)
7496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
9bc8b93f 7499
636a995d 7500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7501*** create shared libraries on Solaris systems. Therefore, libtool
7502*** is disabling shared libraries support. We urge you to upgrade GNU
7503*** binutils to release 2.9.1 or newer. Another option is to modify
7504*** your PATH or compiler configuration so that the native linker is
7505*** used, and then restart.
9bc8b93f 7506
636a995d 7507_LT_EOF
7508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7511 else
7512 ld_shlibs=no
7513 fi
7514 ;;
9bc8b93f 7515
636a995d 7516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7517 case `$LD -v 2>&1` in
7518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7519 ld_shlibs=no
7520 cat <<_LT_EOF 1>&2
9bc8b93f 7521
636a995d 7522*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7523*** reliably create shared libraries on SCO systems. Therefore, libtool
7524*** is disabling shared libraries support. We urge you to upgrade GNU
7525*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7526*** your PATH or compiler configuration so that the native linker is
7527*** used, and then restart.
9bc8b93f 7528
636a995d 7529_LT_EOF
7530 ;;
7531 *)
7532 # For security reasons, it is highly recommended that you always
7533 # use absolute paths for naming shared libraries, and exclude the
7534 # DT_RUNPATH tag from executables and libraries. But doing so
7535 # requires that you compile everything twice, which is a pain.
7536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7540 else
7541 ld_shlibs=no
7542 fi
7543 ;;
7544 esac
7545 ;;
9bc8b93f 7546
636a995d 7547 sunos4*)
7548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7549 wlarc=
7550 hardcode_direct=yes
7551 hardcode_shlibpath_var=no
7552 ;;
9bc8b93f 7553
636a995d 7554 *)
7555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7558 else
7559 ld_shlibs=no
7560 fi
7561 ;;
7562 esac
9bc8b93f 7563
636a995d 7564 if test "$ld_shlibs" = no; then
7565 runpath_var=
7566 hardcode_libdir_flag_spec=
7567 export_dynamic_flag_spec=
7568 whole_archive_flag_spec=
7569 fi
7570 else
7571 # PORTME fill in a description of your system's linker (not GNU ld)
7572 case $host_os in
7573 aix3*)
7574 allow_undefined_flag=unsupported
7575 always_export_symbols=yes
7576 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'
7577 # Note: this linker hardcodes the directories in LIBPATH if there
7578 # are no directories specified by -L.
7579 hardcode_minus_L=yes
7580 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7581 # Neither direct hardcoding nor static linking is supported with a
7582 # broken collect2.
7583 hardcode_direct=unsupported
7584 fi
7585 ;;
9bc8b93f 7586
636a995d 7587 aix[4-9]*)
7588 if test "$host_cpu" = ia64; then
7589 # On IA64, the linker does run time linking by default, so we don't
7590 # have to do anything special.
7591 aix_use_runtimelinking=no
7592 exp_sym_flag='-Bexport'
7593 no_entry_flag=""
7594 else
7595 # If we're using GNU nm, then we don't want the "-C" option.
7596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7597 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7598 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'
7599 else
7600 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'
7601 fi
7602 aix_use_runtimelinking=no
9bc8b93f 7603
636a995d 7604 # Test if we are trying to use run time linking or normal
7605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7606 # need to do runtime linking.
7607 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7608 for ld_flag in $LDFLAGS; do
7609 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7610 aix_use_runtimelinking=yes
7611 break
7612 fi
7613 done
7614 ;;
7615 esac
9bc8b93f 7616
636a995d 7617 exp_sym_flag='-bexport'
7618 no_entry_flag='-bnoentry'
7619 fi
9bc8b93f 7620
636a995d 7621 # When large executables or shared objects are built, AIX ld can
7622 # have problems creating the table of contents. If linking a library
7623 # or program results in "error TOC overflow" add -mminimal-toc to
7624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9bc8b93f 7626
636a995d 7627 archive_cmds=''
7628 hardcode_direct=yes
7629 hardcode_direct_absolute=yes
7630 hardcode_libdir_separator=':'
7631 link_all_deplibs=yes
7632 file_list_spec='${wl}-f,'
9bc8b93f 7633
636a995d 7634 if test "$GCC" = yes; then
7635 case $host_os in aix4.[012]|aix4.[012].*)
7636 # We only want to do this on AIX 4.2 and lower, the check
7637 # below for broken collect2 doesn't work under 4.3+
7638 collect2name=`${CC} -print-prog-name=collect2`
7639 if test -f "$collect2name" &&
7640 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7641 then
7642 # We have reworked collect2
7643 :
7644 else
7645 # We have old collect2
7646 hardcode_direct=unsupported
7647 # It fails to find uninstalled libraries when the uninstalled
7648 # path is not listed in the libpath. Setting hardcode_minus_L
7649 # to unsupported forces relinking
7650 hardcode_minus_L=yes
7651 hardcode_libdir_flag_spec='-L$libdir'
7652 hardcode_libdir_separator=
7653 fi
7654 ;;
7655 esac
7656 shared_flag='-shared'
7657 if test "$aix_use_runtimelinking" = yes; then
7658 shared_flag="$shared_flag "'${wl}-G'
7659 fi
7660 else
7661 # not using gcc
7662 if test "$host_cpu" = ia64; then
7663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7664 # chokes on -Wl,-G. The following line is correct:
7665 shared_flag='-G'
7666 else
7667 if test "$aix_use_runtimelinking" = yes; then
7668 shared_flag='${wl}-G'
7669 else
7670 shared_flag='${wl}-bM:SRE'
7671 fi
7672 fi
7673 fi
9bc8b93f 7674
6acb2cf6 7675 export_dynamic_flag_spec='${wl}-bexpall'
636a995d 7676 # It seems that -bexpall does not export symbols beginning with
7677 # underscore (_), so it is better to generate a list of symbols to export.
7678 always_export_symbols=yes
7679 if test "$aix_use_runtimelinking" = yes; then
7680 # Warning - without using the other runtime loading flags (-brtl),
7681 # -berok will link without error, but may produce a broken library.
7682 allow_undefined_flag='-berok'
7683 # Determine the default libpath from the value encoded in an
7684 # empty executable.
f922ca49 7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 7686/* end confdefs.h. */
9bc8b93f 7687
636a995d 7688int
22166f83 7689main ()
636a995d 7690{
9bc8b93f 7691
636a995d 7692 ;
7693 return 0;
7694}
7695_ACEOF
22166f83 7696if ac_fn_c_try_link "$LINENO"; then :
9bc8b93f 7697
636a995d 7698lt_aix_libpath_sed='
7699 /Import File Strings/,/^$/ {
7700 /^0/ {
7701 s/^0 *\(.*\)$/\1/
7702 p
7703 }
7704 }'
7705aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7706# Check for a 64-bit object if we didn't find anything.
7707if test -z "$aix_libpath"; then
7708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7709fi
636a995d 7710fi
22166f83 7711rm -f core conftest.err conftest.$ac_objext \
f922ca49 7712 conftest$ac_exeext conftest.$ac_ext
636a995d 7713if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9bc8b93f 7714
636a995d 7715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7716 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"
7717 else
7718 if test "$host_cpu" = ia64; then
7719 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7720 allow_undefined_flag="-z nodefs"
7721 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"
7722 else
7723 # Determine the default libpath from the value encoded in an
7724 # empty executable.
f922ca49 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 7726/* end confdefs.h. */
9bc8b93f 7727
636a995d 7728int
22166f83 7729main ()
636a995d 7730{
9bc8b93f 7731
636a995d 7732 ;
7733 return 0;
7734}
7735_ACEOF
22166f83 7736if ac_fn_c_try_link "$LINENO"; then :
9bc8b93f 7737
636a995d 7738lt_aix_libpath_sed='
7739 /Import File Strings/,/^$/ {
7740 /^0/ {
7741 s/^0 *\(.*\)$/\1/
7742 p
7743 }
7744 }'
7745aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7746# Check for a 64-bit object if we didn't find anything.
7747if test -z "$aix_libpath"; then
7748 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7749fi
636a995d 7750fi
22166f83 7751rm -f core conftest.err conftest.$ac_objext \
f922ca49 7752 conftest$ac_exeext conftest.$ac_ext
636a995d 7753if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9bc8b93f 7754
636a995d 7755 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7756 # Warning - without using the other run time loading flags,
7757 # -berok will link without error, but may produce a broken library.
7758 no_undefined_flag=' ${wl}-bernotok'
7759 allow_undefined_flag=' ${wl}-berok'
7760 # Exported symbols can be pulled into shared objects from archives
7761 whole_archive_flag_spec='$convenience'
7762 archive_cmds_need_lc=yes
7763 # This is similar to how AIX traditionally builds its shared libraries.
7764 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'
7765 fi
7766 fi
7767 ;;
9bc8b93f 7768
636a995d 7769 amigaos*)
7770 case $host_cpu in
7771 powerpc)
7772 # see comment about AmigaOS4 .so support
7773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7774 archive_expsym_cmds=''
7775 ;;
7776 m68k)
7777 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)'
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_minus_L=yes
7780 ;;
7781 esac
7782 ;;
9bc8b93f 7783
636a995d 7784 bsdi[45]*)
7785 export_dynamic_flag_spec=-rdynamic
7786 ;;
9bc8b93f 7787
6acb2cf6 7788 cygwin* | mingw* | pw32* | cegcc*)
636a995d 7789 # When not using gcc, we currently assume that we are using
7790 # Microsoft Visual C++.
7791 # hardcode_libdir_flag_spec is actually meaningless, as there is
7792 # no search path for DLLs.
7793 hardcode_libdir_flag_spec=' '
7794 allow_undefined_flag=unsupported
7795 # Tell ltmain to make .lib files, not .a files.
7796 libext=lib
7797 # Tell ltmain to make .dll files, not .so files.
7798 shrext_cmds=".dll"
7799 # FIXME: Setting linknames here is a bad hack.
7800 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7801 # The linker will automatically build a .lib file if we build a DLL.
7802 old_archive_from_new_cmds='true'
7803 # FIXME: Should let the user specify the lib program.
7804 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7805 fix_srcfile_path='`cygpath -w "$srcfile"`'
7806 enable_shared_with_static_runtimes=yes
7807 ;;
9bc8b93f 7808
636a995d 7809 darwin* | rhapsody*)
9bc8b93f 7810
9bc8b93f 7811
636a995d 7812 archive_cmds_need_lc=no
7813 hardcode_direct=no
7814 hardcode_automatic=yes
7815 hardcode_shlibpath_var=unsupported
7816 whole_archive_flag_spec=''
7817 link_all_deplibs=yes
7818 allow_undefined_flag="$_lt_dar_allow_undefined"
6acb2cf6 7819 case $cc_basename in
7820 ifort*) _lt_dar_can_shared=yes ;;
7821 *) _lt_dar_can_shared=$GCC ;;
7822 esac
7823 if test "$_lt_dar_can_shared" = "yes"; then
636a995d 7824 output_verbose_link_cmd=echo
7825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7827 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}"
7828 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}"
9bc8b93f 7829
636a995d 7830 else
7831 ld_shlibs=no
7832 fi
9bc8b93f 7833
636a995d 7834 ;;
9bc8b93f 7835
636a995d 7836 dgux*)
7837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_libdir_flag_spec='-L$libdir'
7839 hardcode_shlibpath_var=no
7840 ;;
9bc8b93f 7841
636a995d 7842 freebsd1*)
7843 ld_shlibs=no
7844 ;;
9bc8b93f 7845
636a995d 7846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7847 # support. Future versions do this automatically, but an explicit c++rt0.o
7848 # does not break anything, and helps significantly (at the cost of a little
7849 # extra space).
7850 freebsd2.2*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7852 hardcode_libdir_flag_spec='-R$libdir'
7853 hardcode_direct=yes
7854 hardcode_shlibpath_var=no
7855 ;;
9bc8b93f 7856
636a995d 7857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7858 freebsd2*)
7859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7860 hardcode_direct=yes
7861 hardcode_minus_L=yes
7862 hardcode_shlibpath_var=no
7863 ;;
9bc8b93f 7864
636a995d 7865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7866 freebsd* | dragonfly*)
7867 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7868 hardcode_libdir_flag_spec='-R$libdir'
7869 hardcode_direct=yes
7870 hardcode_shlibpath_var=no
7871 ;;
9bc8b93f 7872
636a995d 7873 hpux9*)
7874 if test "$GCC" = yes; then
7875 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'
7876 else
7877 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'
7878 fi
7879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7880 hardcode_libdir_separator=:
7881 hardcode_direct=yes
9bc8b93f 7882
636a995d 7883 # hardcode_minus_L: Not really in the search PATH,
7884 # but as the default location of the library.
7885 hardcode_minus_L=yes
7886 export_dynamic_flag_spec='${wl}-E'
7887 ;;
9bc8b93f 7888
636a995d 7889 hpux10*)
7890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7892 else
7893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7894 fi
7895 if test "$with_gnu_ld" = no; then
7896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7897 hardcode_libdir_flag_spec_ld='+b $libdir'
7898 hardcode_libdir_separator=:
7899 hardcode_direct=yes
7900 hardcode_direct_absolute=yes
7901 export_dynamic_flag_spec='${wl}-E'
7902 # hardcode_minus_L: Not really in the search PATH,
7903 # but as the default location of the library.
7904 hardcode_minus_L=yes
7905 fi
7906 ;;
9bc8b93f 7907
636a995d 7908 hpux11*)
7909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7910 case $host_cpu in
7911 hppa*64*)
7912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7913 ;;
7914 ia64*)
6acb2cf6 7915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
636a995d 7916 ;;
7917 *)
7918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7919 ;;
7920 esac
7921 else
7922 case $host_cpu in
7923 hppa*64*)
7924 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7925 ;;
7926 ia64*)
7927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7928 ;;
7929 *)
7930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7931 ;;
7932 esac
7933 fi
7934 if test "$with_gnu_ld" = no; then
7935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7936 hardcode_libdir_separator=:
9bc8b93f 7937
636a995d 7938 case $host_cpu in
7939 hppa*64*|ia64*)
7940 hardcode_direct=no
7941 hardcode_shlibpath_var=no
7942 ;;
7943 *)
7944 hardcode_direct=yes
7945 hardcode_direct_absolute=yes
7946 export_dynamic_flag_spec='${wl}-E'
9bc8b93f 7947
636a995d 7948 # hardcode_minus_L: Not really in the search PATH,
7949 # but as the default location of the library.
7950 hardcode_minus_L=yes
7951 ;;
7952 esac
7953 fi
7954 ;;
9bc8b93f 7955
636a995d 7956 irix5* | irix6* | nonstopux*)
7957 if test "$GCC" = yes; then
7958 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'
7959 # Try to use the -exported_symbol ld option, if it does not
7960 # work, assume that -exports_file does not work either and
7961 # implicitly export all symbols.
7962 save_LDFLAGS="$LDFLAGS"
7963 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
f922ca49 7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h. */
636a995d 7966int foo(void) {}
7967_ACEOF
22166f83 7968if ac_fn_c_try_link "$LINENO"; then :
636a995d 7969 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'
9bc8b93f 7970
94984910 7971fi
22166f83 7972rm -f core conftest.err conftest.$ac_objext \
f922ca49 7973 conftest$ac_exeext conftest.$ac_ext
636a995d 7974 LDFLAGS="$save_LDFLAGS"
7975 else
7976 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'
7977 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'
7978 fi
7979 archive_cmds_need_lc='no'
7980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7981 hardcode_libdir_separator=:
7982 inherit_rpath=yes
7983 link_all_deplibs=yes
7984 ;;
9bc8b93f 7985
636a995d 7986 netbsd*)
7987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7989 else
7990 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7991 fi
7992 hardcode_libdir_flag_spec='-R$libdir'
7993 hardcode_direct=yes
7994 hardcode_shlibpath_var=no
7995 ;;
9bc8b93f 7996
636a995d 7997 newsos6)
7998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7999 hardcode_direct=yes
8000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8001 hardcode_libdir_separator=:
8002 hardcode_shlibpath_var=no
8003 ;;
9bc8b93f 8004
636a995d 8005 *nto* | *qnx*)
8006 ;;
9bc8b93f 8007
636a995d 8008 openbsd*)
8009 if test -f /usr/libexec/ld.so; then
8010 hardcode_direct=yes
8011 hardcode_shlibpath_var=no
8012 hardcode_direct_absolute=yes
8013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8015 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8017 export_dynamic_flag_spec='${wl}-E'
8018 else
8019 case $host_os in
8020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8022 hardcode_libdir_flag_spec='-R$libdir'
8023 ;;
8024 *)
8025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8027 ;;
8028 esac
8029 fi
8030 else
8031 ld_shlibs=no
8032 fi
8033 ;;
9bc8b93f 8034
636a995d 8035 os2*)
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_minus_L=yes
8038 allow_undefined_flag=unsupported
8039 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'
8040 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8041 ;;
9bc8b93f 8042
636a995d 8043 osf3*)
8044 if test "$GCC" = yes; then
8045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8046 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'
8047 else
8048 allow_undefined_flag=' -expect_unresolved \*'
8049 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'
8050 fi
8051 archive_cmds_need_lc='no'
8052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8053 hardcode_libdir_separator=:
8054 ;;
9bc8b93f 8055
636a995d 8056 osf4* | osf5*) # as osf3* with the addition of -msym flag
8057 if test "$GCC" = yes; then
8058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8059 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'
8060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8061 else
8062 allow_undefined_flag=' -expect_unresolved \*'
8063 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'
8064 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~
8065 $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'
7f19c02f 8066
636a995d 8067 # Both c and cxx compiler support -rpath directly
8068 hardcode_libdir_flag_spec='-rpath $libdir'
8069 fi
8070 archive_cmds_need_lc='no'
8071 hardcode_libdir_separator=:
8072 ;;
9bc8b93f 8073
636a995d 8074 solaris*)
8075 no_undefined_flag=' -z defs'
8076 if test "$GCC" = yes; then
8077 wlarc='${wl}'
8078 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8080 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8081 else
8082 case `$CC -V 2>&1` in
8083 *"Compilers 5.0"*)
8084 wlarc=''
8085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8088 ;;
8089 *)
8090 wlarc='${wl}'
8091 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8093 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8094 ;;
8095 esac
8096 fi
8097 hardcode_libdir_flag_spec='-R$libdir'
8098 hardcode_shlibpath_var=no
8099 case $host_os in
8100 solaris2.[0-5] | solaris2.[0-5].*) ;;
8101 *)
8102 # The compiler driver will combine and reorder linker options,
8103 # but understands `-z linker_flag'. GCC discards it without `$wl',
8104 # but is careful enough not to reorder.
8105 # Supported since Solaris 2.6 (maybe 2.5.1?)
8106 if test "$GCC" = yes; then
8107 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8108 else
8109 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8110 fi
8111 ;;
8112 esac
8113 link_all_deplibs=yes
8114 ;;
9bc8b93f 8115
636a995d 8116 sunos4*)
8117 if test "x$host_vendor" = xsequent; then
8118 # Use $CC to link under sequent, because it throws in some extra .o
8119 # files that make .init and .fini sections work.
8120 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8121 else
8122 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8123 fi
8124 hardcode_libdir_flag_spec='-L$libdir'
8125 hardcode_direct=yes
8126 hardcode_minus_L=yes
8127 hardcode_shlibpath_var=no
8128 ;;
7f19c02f 8129
636a995d 8130 sysv4)
8131 case $host_vendor in
8132 sni)
8133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_direct=yes # is this really true???
8135 ;;
8136 siemens)
8137 ## LD is ld it makes a PLAMLIB
8138 ## CC just makes a GrossModule.
8139 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8140 reload_cmds='$CC -r -o $output$reload_objs'
8141 hardcode_direct=no
8142 ;;
8143 motorola)
8144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8146 ;;
8147 esac
8148 runpath_var='LD_RUN_PATH'
8149 hardcode_shlibpath_var=no
8150 ;;
7f19c02f 8151
636a995d 8152 sysv4.3*)
8153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154 hardcode_shlibpath_var=no
8155 export_dynamic_flag_spec='-Bexport'
8156 ;;
7f19c02f 8157
636a995d 8158 sysv4*MP*)
8159 if test -d /usr/nec; then
8160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_shlibpath_var=no
8162 runpath_var=LD_RUN_PATH
8163 hardcode_runpath_var=yes
8164 ld_shlibs=yes
8165 fi
8166 ;;
7f19c02f 8167
636a995d 8168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8169 no_undefined_flag='${wl}-z,text'
8170 archive_cmds_need_lc=no
8171 hardcode_shlibpath_var=no
8172 runpath_var='LD_RUN_PATH'
9bc8b93f 8173
636a995d 8174 if test "$GCC" = yes; then
8175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8177 else
8178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 fi
8181 ;;
9bc8b93f 8182
636a995d 8183 sysv5* | sco3.2v5* | sco5v6*)
8184 # Note: We can NOT use -z defs as we might desire, because we do not
8185 # link with -lc, and that would cause any symbols used from libc to
8186 # always be unresolved, which means just about no library would
8187 # ever link correctly. If we're not using GNU ld we use -z text
8188 # though, which does catch some bad symbols but isn't as heavy-handed
8189 # as -z defs.
8190 no_undefined_flag='${wl}-z,text'
8191 allow_undefined_flag='${wl}-z,nodefs'
8192 archive_cmds_need_lc=no
8193 hardcode_shlibpath_var=no
8194 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8195 hardcode_libdir_separator=':'
8196 link_all_deplibs=yes
8197 export_dynamic_flag_spec='${wl}-Bexport'
8198 runpath_var='LD_RUN_PATH'
9bc8b93f 8199
636a995d 8200 if test "$GCC" = yes; then
8201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 else
8204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8206 fi
8207 ;;
9bc8b93f 8208
636a995d 8209 uts4*)
8210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_libdir_flag_spec='-L$libdir'
8212 hardcode_shlibpath_var=no
8213 ;;
94984910 8214
636a995d 8215 *)
8216 ld_shlibs=no
9bc8b93f 8217 ;;
636a995d 8218 esac
8219
8220 if test x$host_vendor = xsni; then
8221 case $host in
8222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8223 export_dynamic_flag_spec='${wl}-Blargedynsym'
9bc8b93f 8224 ;;
8225 esac
8226 fi
636a995d 8227 fi
9bc8b93f 8228
22166f83 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8230$as_echo "$ld_shlibs" >&6; }
636a995d 8231test "$ld_shlibs" = no && can_build_shared=no
9bc8b93f 8232
636a995d 8233with_gnu_ld=$with_gnu_ld
9bc8b93f 8234
8235
33a14781 8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
636a995d 8249#
8250# Do we need to explicitly link libc?
8251#
8252case "x$archive_cmds_need_lc" in
8253x|xyes)
8254 # Assume -lc should be added
8255 archive_cmds_need_lc=yes
8256
8257 if test "$enable_shared" = yes && test "$GCC" = yes; then
8258 case $archive_cmds in
8259 *'~'*)
8260 # FIXME: we may have to deal with multi-command sequences.
8261 ;;
8262 '$CC '*)
8263 # Test whether the compiler implicitly links with -lc since on some
8264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8265 # to ld, don't add -lc before -lgcc.
22166f83 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8267$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
636a995d 8268 $RM conftest*
8269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8270
f922ca49 8271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
636a995d 8272 (eval $ac_compile) 2>&5
8273 ac_status=$?
22166f83 8274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 8275 test $ac_status = 0; } 2>conftest.err; then
636a995d 8276 soname=conftest
8277 lib=conftest
8278 libobjs=conftest.$ac_objext
8279 deplibs=
8280 wl=$lt_prog_compiler_wl
8281 pic_flag=$lt_prog_compiler_pic
8282 compiler_flags=-v
8283 linker_flags=-v
8284 verstring=
8285 output_objdir=.
8286 libname=conftest
8287 lt_save_allow_undefined_flag=$allow_undefined_flag
8288 allow_undefined_flag=
f922ca49 8289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
636a995d 8290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8291 ac_status=$?
22166f83 8292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 8293 test $ac_status = 0; }
636a995d 8294 then
8295 archive_cmds_need_lc=no
8296 else
8297 archive_cmds_need_lc=yes
8298 fi
8299 allow_undefined_flag=$lt_save_allow_undefined_flag
9bc8b93f 8300 else
636a995d 8301 cat conftest.err 1>&5
9bc8b93f 8302 fi
636a995d 8303 $RM conftest*
22166f83 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8305$as_echo "$archive_cmds_need_lc" >&6; }
636a995d 8306 ;;
8307 esac
8308 fi
8309 ;;
8310esac
8311
8312
33a14781 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
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
22166f83 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8469$as_echo_n "checking dynamic linker characteristics... " >&6; }
636a995d 8470
8471if test "$GCC" = yes; then
8472 case $host_os in
8473 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8474 *) lt_awk_arg="/^libraries:/" ;;
8475 esac
8476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8477 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8478 # if the path contains ";" then we assume it to be the separator
8479 # otherwise default to the standard path separator (i.e. ":") - it is
8480 # assumed that no part of a normal pathname contains ";" but that should
8481 # okay in the real world where ";" in dirpaths is itself problematic.
8482 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8483 else
8484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8485 fi
8486 # Ok, now we have the path, separated by spaces, we can step through it
8487 # and add multilib dir if necessary.
8488 lt_tmp_lt_search_path_spec=
8489 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8490 for lt_sys_path in $lt_search_path_spec; do
8491 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8493 else
8494 test -d "$lt_sys_path" && \
8495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8496 fi
8497 done
8498 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8499BEGIN {RS=" "; FS="/|\n";} {
8500 lt_foo="";
8501 lt_count=0;
8502 for (lt_i = NF; lt_i > 0; lt_i--) {
8503 if ($lt_i != "" && $lt_i != ".") {
8504 if ($lt_i == "..") {
8505 lt_count++;
8506 } else {
8507 if (lt_count == 0) {
8508 lt_foo="/" $lt_i lt_foo;
8509 } else {
8510 lt_count--;
8511 }
8512 }
8513 }
8514 }
8515 if (lt_foo != "") { lt_freq[lt_foo]++; }
8516 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8517}'`
8518 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8519else
8520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8521fi
9bc8b93f 8522library_names_spec=
8523libname_spec='lib$name'
8524soname_spec=
7f19c02f 8525shrext_cmds=".so"
9bc8b93f 8526postinstall_cmds=
8527postuninstall_cmds=
8528finish_cmds=
8529finish_eval=
8530shlibpath_var=
8531shlibpath_overrides_runpath=unknown
8532version_type=none
8533dynamic_linker="$host_os ld.so"
8534sys_lib_dlsearch_path_spec="/lib /usr/lib"
9bc8b93f 8535need_lib_prefix=unknown
8536hardcode_into_libs=no
8537
8538# when you set need_version to no, make sure it does not cause -set_version
8539# flags to be left without arguments
8540need_version=unknown
8541
8542case $host_os in
8543aix3*)
8544 version_type=linux
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8546 shlibpath_var=LIBPATH
8547
8548 # AIX 3 has no versioning support, so we append a major version to the name.
8549 soname_spec='${libname}${release}${shared_ext}$major'
8550 ;;
8551
636a995d 8552aix[4-9]*)
9bc8b93f 8553 version_type=linux
8554 need_lib_prefix=no
8555 need_version=no
8556 hardcode_into_libs=yes
8557 if test "$host_cpu" = ia64; then
8558 # AIX 5 supports IA64
8559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 else
8562 # With GCC up to 2.95.x, collect2 would create an import file
8563 # for dependence libraries. The import file would start with
8564 # the line `#! .'. This would cause the generated library to
8565 # depend on `.', always an invalid library. This was fixed in
8566 # development snapshots of GCC prior to 3.0.
8567 case $host_os in
8568 aix4 | aix4.[01] | aix4.[01].*)
8569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8570 echo ' yes '
636a995d 8571 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9bc8b93f 8572 :
8573 else
8574 can_build_shared=no
8575 fi
8576 ;;
8577 esac
8578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8579 # soname into executable. Probably we can add versioning support to
8580 # collect2, so additional links can be useful in future.
8581 if test "$aix_use_runtimelinking" = yes; then
8582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8583 # instead of lib<name>.a to let people know that these are not
8584 # typical AIX shared libraries.
8585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586 else
8587 # We preserve .a as extension for shared libraries through AIX4.2
8588 # and later when we are not doing run time linking.
8589 library_names_spec='${libname}${release}.a $libname.a'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8591 fi
8592 shlibpath_var=LIBPATH
8593 fi
8594 ;;
8595
8596amigaos*)
636a995d 8597 case $host_cpu in
8598 powerpc)
8599 # Since July 2007 AmigaOS4 officially supports .so libraries.
8600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8602 ;;
8603 m68k)
8604 library_names_spec='$libname.ixlibrary $libname.a'
8605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606 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'
8607 ;;
8608 esac
9bc8b93f 8609 ;;
8610
8611beos*)
8612 library_names_spec='${libname}${shared_ext}'
8613 dynamic_linker="$host_os ld.so"
8614 shlibpath_var=LIBRARY_PATH
8615 ;;
8616
7f19c02f 8617bsdi[45]*)
9bc8b93f 8618 version_type=linux
8619 need_version=no
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8626 # the default ld.so.conf also contains /usr/contrib/lib and
8627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8628 # libtool to hard-code these into programs
8629 ;;
8630
6acb2cf6 8631cygwin* | mingw* | pw32* | cegcc*)
9bc8b93f 8632 version_type=windows
7f19c02f 8633 shrext_cmds=".dll"
9bc8b93f 8634 need_version=no
8635 need_lib_prefix=no
8636
8637 case $GCC,$host_os in
6acb2cf6 8638 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9bc8b93f 8639 library_names_spec='$libname.dll.a'
8640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8641 postinstall_cmds='base_file=`basename \${file}`~
636a995d 8642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9bc8b93f 8643 dldir=$destdir/`dirname \$dlpath`~
8644 test -d \$dldir || mkdir -p \$dldir~
7f19c02f 8645 $install_prog $dir/$dlname \$dldir/$dlname~
636a995d 8646 chmod a+x \$dldir/$dlname~
8647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8649 fi'
9bc8b93f 8650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8651 dlpath=$dir/\$dldll~
636a995d 8652 $RM \$dlpath'
9bc8b93f 8653 shlibpath_overrides_runpath=yes
8654
8655 case $host_os in
8656 cygwin*)
8657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8660 ;;
6acb2cf6 8661 mingw* | cegcc*)
9bc8b93f 8662 # MinGW DLLs use traditional 'lib' prefix
8663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
636a995d 8664 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8665 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9bc8b93f 8666 # It is most probably a Windows format PATH printed by
8667 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8668 # path with ; separators, and with drive letters. We can handle the
8669 # drive letters (cygwin fileutils understands them), so leave them,
8670 # especially as we might pass files found there to a mingw objdump,
8671 # which wouldn't understand a cygwinified path. Ahh.
636a995d 8672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9bc8b93f 8673 else
636a995d 8674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9bc8b93f 8675 fi
8676 ;;
8677 pw32*)
8678 # pw32 DLLs use 'pw' prefix rather than 'lib'
7f19c02f 8679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9bc8b93f 8680 ;;
8681 esac
8682 ;;
8683
8684 *)
8685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8686 ;;
8687 esac
8688 dynamic_linker='Win32 ld.exe'
8689 # FIXME: first we should search . and the directory the executable is in
8690 shlibpath_var=PATH
8691 ;;
8692
8693darwin* | rhapsody*)
8694 dynamic_linker="$host_os dyld"
8695 version_type=darwin
8696 need_lib_prefix=no
8697 need_version=no
636a995d 8698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9bc8b93f 8699 soname_spec='${libname}${release}${major}$shared_ext'
8700 shlibpath_overrides_runpath=yes
8701 shlibpath_var=DYLD_LIBRARY_PATH
7f19c02f 8702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
636a995d 8703
8704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9bc8b93f 8705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8706 ;;
8707
8708dgux*)
8709 version_type=linux
8710 need_lib_prefix=no
8711 need_version=no
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 ;;
8716
8717freebsd1*)
8718 dynamic_linker=no
8719 ;;
8720
7f19c02f 8721freebsd* | dragonfly*)
8722 # DragonFly does not have aout. When/if they implement a new
8723 # versioning mechanism, adjust this.
8724 if test -x /usr/bin/objformat; then
8725 objformat=`/usr/bin/objformat`
8726 else
8727 case $host_os in
8728 freebsd[123]*) objformat=aout ;;
8729 *) objformat=elf ;;
8730 esac
8731 fi
8732 # Handle Gentoo/FreeBSD as it was Linux
8733 case $host_vendor in
8734 gentoo)
8735 version_type=linux ;;
8736 *)
8737 version_type=freebsd-$objformat ;;
8738 esac
8739
9bc8b93f 8740 case $version_type in
8741 freebsd-elf*)
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8743 need_version=no
8744 need_lib_prefix=no
8745 ;;
8746 freebsd-*)
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8748 need_version=yes
8749 ;;
7f19c02f 8750 linux)
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 need_lib_prefix=no
8754 need_version=no
8755 ;;
9bc8b93f 8756 esac
8757 shlibpath_var=LD_LIBRARY_PATH
8758 case $host_os in
8759 freebsd2*)
8760 shlibpath_overrides_runpath=yes
8761 ;;
7f19c02f 8762 freebsd3.[01]* | freebsdelf3.[01]*)
9bc8b93f 8763 shlibpath_overrides_runpath=yes
8764 hardcode_into_libs=yes
8765 ;;
7f19c02f 8766 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8767 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9bc8b93f 8768 shlibpath_overrides_runpath=no
8769 hardcode_into_libs=yes
8770 ;;
636a995d 8771 *) # from 4.6 on, and DragonFly
7f19c02f 8772 shlibpath_overrides_runpath=yes
8773 hardcode_into_libs=yes
8774 ;;
9bc8b93f 8775 esac
8776 ;;
8777
8778gnu*)
8779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 hardcode_into_libs=yes
8786 ;;
8787
8788hpux9* | hpux10* | hpux11*)
8789 # Give a soname corresponding to the major version so that dld.sl refuses to
8790 # link against other versions.
8791 version_type=sunos
8792 need_lib_prefix=no
8793 need_version=no
7f19c02f 8794 case $host_cpu in
9bc8b93f 8795 ia64*)
7f19c02f 8796 shrext_cmds='.so'
9bc8b93f 8797 hardcode_into_libs=yes
8798 dynamic_linker="$host_os dld.so"
8799 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 if test "X$HPUX_IA64_MODE" = X32; then
8804 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8805 else
8806 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8807 fi
8808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8809 ;;
636a995d 8810 hppa*64*)
8811 shrext_cmds='.sl'
8812 hardcode_into_libs=yes
8813 dynamic_linker="$host_os dld.sl"
8814 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8820 ;;
8821 *)
7f19c02f 8822 shrext_cmds='.sl'
9bc8b93f 8823 dynamic_linker="$host_os dld.sl"
8824 shlibpath_var=SHLIB_PATH
8825 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 ;;
8829 esac
8830 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8831 postinstall_cmds='chmod 555 $lib'
8832 ;;
8833
636a995d 8834interix[3-9]*)
7f19c02f 8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8841 shlibpath_var=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath=no
8843 hardcode_into_libs=yes
8844 ;;
8845
9bc8b93f 8846irix5* | irix6* | nonstopux*)
8847 case $host_os in
8848 nonstopux*) version_type=nonstopux ;;
8849 *)
8850 if test "$lt_cv_prog_gnu_ld" = yes; then
8851 version_type=linux
8852 else
8853 version_type=irix
8854 fi ;;
8855 esac
8856 need_lib_prefix=no
8857 need_version=no
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8860 case $host_os in
8861 irix5* | nonstopux*)
8862 libsuff= shlibsuff=
8863 ;;
8864 *)
8865 case $LD in # libtool.m4 will add one of these switches to LD
8866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8867 libsuff= shlibsuff= libmagic=32-bit;;
8868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8869 libsuff=32 shlibsuff=N32 libmagic=N32;;
8870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8872 *) libsuff= shlibsuff= libmagic=never-match;;
8873 esac
8874 ;;
8875 esac
8876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8877 shlibpath_overrides_runpath=no
8878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8880 hardcode_into_libs=yes
8881 ;;
8882
8883# No shared lib support for Linux oldld, aout, or coff.
8884linux*oldld* | linux*aout* | linux*coff*)
8885 dynamic_linker=no
8886 ;;
8887
8888# This must be Linux ELF.
636a995d 8889linux* | k*bsd*-gnu)
9bc8b93f 8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=no
636a995d 8898 # Some binutils ld are patched to set DT_RUNPATH
8899 save_LDFLAGS=$LDFLAGS
8900 save_libdir=$libdir
8901 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8902 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
f922ca49 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 8904/* end confdefs.h. */
8905
8906int
22166f83 8907main ()
636a995d 8908{
8909
8910 ;
8911 return 0;
8912}
8913_ACEOF
22166f83 8914if ac_fn_c_try_link "$LINENO"; then :
8915 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
636a995d 8916 shlibpath_overrides_runpath=yes
8917fi
636a995d 8918fi
22166f83 8919rm -f core conftest.err conftest.$ac_objext \
f922ca49 8920 conftest$ac_exeext conftest.$ac_ext
636a995d 8921 LDFLAGS=$save_LDFLAGS
8922 libdir=$save_libdir
8923
9bc8b93f 8924 # This implies no fast_install, which is unacceptable.
8925 # Some rework will be needed to allow for fast_install
8926 # before this can be enabled.
8927 hardcode_into_libs=yes
8928
8929 # Append ld.so.conf contents to the search path
8930 if test -f /etc/ld.so.conf; then
636a995d 8931 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' ' '`
7f19c02f 8932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9bc8b93f 8933 fi
8934
8935 # We used to test for /lib/ld.so.1 and disable shared libraries on
8936 # powerpc, because MkLinux only supported shared libraries with the
8937 # GNU dynamic linker. Since this was broken with cross compilers,
8938 # most powerpc-linux boxes support dynamic linking these days and
8939 # people can always --disable-shared, the test was removed, and we
8940 # assume the GNU/Linux dynamic linker is in use.
8941 dynamic_linker='GNU/Linux ld.so'
8942 ;;
8943
9bc8b93f 8944netbsd*)
8945 version_type=sunos
8946 need_lib_prefix=no
8947 need_version=no
636a995d 8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9bc8b93f 8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8951 dynamic_linker='NetBSD (a.out) ld.so'
8952 else
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 dynamic_linker='NetBSD ld.elf_so'
8956 fi
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 hardcode_into_libs=yes
8960 ;;
8961
8962newsos6)
8963 version_type=linux
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=yes
8967 ;;
8968
636a995d 8969*nto* | *qnx*)
8970 version_type=qnx
9bc8b93f 8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
636a995d 8976 shlibpath_overrides_runpath=no
8977 hardcode_into_libs=yes
8978 dynamic_linker='ldqnx.so'
9bc8b93f 8979 ;;
8980
8981openbsd*)
8982 version_type=sunos
7f19c02f 8983 sys_lib_dlsearch_path_spec="/usr/lib"
9bc8b93f 8984 need_lib_prefix=no
7f19c02f 8985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8986 case $host_os in
636a995d 8987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8988 *) need_version=no ;;
7f19c02f 8989 esac
9bc8b93f 8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
636a995d 8993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9bc8b93f 8994 case $host_os in
8995 openbsd2.[89] | openbsd2.[89].*)
8996 shlibpath_overrides_runpath=no
8997 ;;
8998 *)
8999 shlibpath_overrides_runpath=yes
9000 ;;
9001 esac
9002 else
9003 shlibpath_overrides_runpath=yes
9004 fi
9005 ;;
9006
9007os2*)
9008 libname_spec='$name'
7f19c02f 9009 shrext_cmds=".dll"
9bc8b93f 9010 need_lib_prefix=no
9011 library_names_spec='$libname${shared_ext} $libname.a'
9012 dynamic_linker='OS/2 ld.exe'
9013 shlibpath_var=LIBPATH
9014 ;;
9015
9016osf3* | osf4* | osf5*)
9017 version_type=osf
9018 need_lib_prefix=no
9019 need_version=no
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9025 ;;
9026
636a995d 9027rdos*)
9028 dynamic_linker=no
9029 ;;
9030
9bc8b93f 9031solaris*)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 # ldd complains unless libraries are executable
9041 postinstall_cmds='chmod +x $lib'
9042 ;;
9043
9044sunos4*)
9045 version_type=sunos
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 if test "$with_gnu_ld" = yes; then
9051 need_lib_prefix=no
9052 fi
9053 need_version=yes
9054 ;;
9055
7f19c02f 9056sysv4 | sysv4.3*)
9bc8b93f 9057 version_type=linux
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 case $host_vendor in
9062 sni)
9063 shlibpath_overrides_runpath=no
9064 need_lib_prefix=no
9bc8b93f 9065 runpath_var=LD_RUN_PATH
9066 ;;
9067 siemens)
9068 need_lib_prefix=no
9069 ;;
9070 motorola)
9071 need_lib_prefix=no
9072 need_version=no
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9075 ;;
9076 esac
9077 ;;
9078
9079sysv4*MP*)
9080 if test -d /usr/nec ;then
9081 version_type=linux
9082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9083 soname_spec='$libname${shared_ext}.$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 fi
9086 ;;
9087
7f19c02f 9088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9089 version_type=freebsd-elf
9090 need_lib_prefix=no
9091 need_version=no
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
636a995d 9095 shlibpath_overrides_runpath=yes
7f19c02f 9096 hardcode_into_libs=yes
9097 if test "$with_gnu_ld" = yes; then
9098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
7f19c02f 9099 else
9100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
7f19c02f 9101 case $host_os in
9102 sco3.2v5*)
9103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9104 ;;
9105 esac
9106 fi
9107 sys_lib_dlsearch_path_spec='/usr/lib'
9108 ;;
9109
636a995d 9110tpf*)
9111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
6acb2cf6 9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
636a995d 9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 hardcode_into_libs=yes
9119 ;;
9120
9bc8b93f 9121uts4*)
9122 version_type=linux
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 ;;
9127
9128*)
9129 dynamic_linker=no
9130 ;;
9131esac
22166f83 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9133$as_echo "$dynamic_linker" >&6; }
9bc8b93f 9134test "$dynamic_linker" = no && can_build_shared=no
9135
7f19c02f 9136variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9137if test "$GCC" = yes; then
9138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9139fi
9140
636a995d 9141if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9142 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9bc8b93f 9143fi
636a995d 9144if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9145 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9bc8b93f 9146fi
9147
7f19c02f 9148
9bc8b93f 9149
9bc8b93f 9150
9bc8b93f 9151
9bc8b93f 9152
9bc8b93f 9153
9bc8b93f 9154
9bc8b93f 9155
9bc8b93f 9156
9bc8b93f 9157
9bc8b93f 9158
9bc8b93f 9159
9bc8b93f 9160
9bc8b93f 9161
9bc8b93f 9162
9bc8b93f 9163
9bc8b93f 9164
9bc8b93f 9165
9bc8b93f 9166
9bc8b93f 9167
9bc8b93f 9168
9bc8b93f 9169
9bc8b93f 9170
9bc8b93f 9171
9bc8b93f 9172
9bc8b93f 9173
9bc8b93f 9174
9bc8b93f 9175
9bc8b93f 9176
9177
9bc8b93f 9178
9179
9bc8b93f 9180
9181
9bc8b93f 9182
9183
9bc8b93f 9184
9185
9bc8b93f 9186
9bc8b93f 9187
9bc8b93f 9188
9bc8b93f 9189
9bc8b93f 9190
9bc8b93f 9191
9bc8b93f 9192
9bc8b93f 9193
9bc8b93f 9194
9bc8b93f 9195
9bc8b93f 9196
9bc8b93f 9197
9bc8b93f 9198
9bc8b93f 9199
9bc8b93f 9200
9201
9bc8b93f 9202
9bc8b93f 9203
9bc8b93f 9204
9bc8b93f 9205
9bc8b93f 9206
9bc8b93f 9207
9bc8b93f 9208
9bc8b93f 9209
9bc8b93f 9210
9bc8b93f 9211
9212
9bc8b93f 9213
9bc8b93f 9214
9bc8b93f 9215
9bc8b93f 9216
9217
9bc8b93f 9218
9bc8b93f 9219
9bc8b93f 9220
9bc8b93f 9221
9bc8b93f 9222
9bc8b93f 9223
9bc8b93f 9224
9bc8b93f 9225
9bc8b93f 9226
9bc8b93f 9227
9bc8b93f 9228
9bc8b93f 9229
9bc8b93f 9230
9bc8b93f 9231
9bc8b93f 9232
9bc8b93f 9233
22166f83 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9235$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
636a995d 9236hardcode_action=
9237if test -n "$hardcode_libdir_flag_spec" ||
9238 test -n "$runpath_var" ||
9239 test "X$hardcode_automatic" = "Xyes" ; then
9bc8b93f 9240
636a995d 9241 # We can hardcode non-existent directories.
9242 if test "$hardcode_direct" != no &&
9243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9244 # have to relink, otherwise we might link with an installed library
9245 # when we should be linking with a yet-to-be-installed one
9246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9247 test "$hardcode_minus_L" != no; then
9248 # Linking always hardcodes the temporary library directory.
9249 hardcode_action=relink
9250 else
9251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9252 hardcode_action=immediate
9253 fi
9254else
9255 # We cannot hardcode anything, or else we can only hardcode existing
9256 # directories.
9257 hardcode_action=unsupported
9258fi
22166f83 9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9260$as_echo "$hardcode_action" >&6; }
9bc8b93f 9261
636a995d 9262if test "$hardcode_action" = relink ||
9263 test "$inherit_rpath" = yes; then
9264 # Fast installation is not supported
9265 enable_fast_install=no
9266elif test "$shlibpath_overrides_runpath" = yes ||
9267 test "$enable_shared" = no; then
9268 # Fast installation is not necessary
9269 enable_fast_install=needless
9270fi
9bc8b93f 9271
9bc8b93f 9272
9bc8b93f 9273
9bc8b93f 9274
9bc8b93f 9275
9bc8b93f 9276
636a995d 9277 if test "x$enable_dlopen" != xyes; then
9278 enable_dlopen=unknown
9279 enable_dlopen_self=unknown
9280 enable_dlopen_self_static=unknown
7f19c02f 9281else
636a995d 9282 lt_cv_dlopen=no
9283 lt_cv_dlopen_libs=
9bc8b93f 9284
636a995d 9285 case $host_os in
9286 beos*)
9287 lt_cv_dlopen="load_add_on"
9288 lt_cv_dlopen_libs=
9289 lt_cv_dlopen_self=yes
9290 ;;
9bc8b93f 9291
6acb2cf6 9292 mingw* | pw32* | cegcc*)
636a995d 9293 lt_cv_dlopen="LoadLibrary"
9294 lt_cv_dlopen_libs=
9295 ;;
9bc8b93f 9296
636a995d 9297 cygwin*)
9298 lt_cv_dlopen="dlopen"
9299 lt_cv_dlopen_libs=
9300 ;;
9bc8b93f 9301
636a995d 9302 darwin*)
9303 # if libdl is installed we need to link against it
22166f83 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9305$as_echo_n "checking for dlopen in -ldl... " >&6; }
9306if ${ac_cv_lib_dl_dlopen+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308else
636a995d 9309 ac_check_lib_save_LIBS=$LIBS
9310LIBS="-ldl $LIBS"
f922ca49 9311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 9312/* end confdefs.h. */
9bc8b93f 9313
8b72747d 9314/* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
22166f83 9317#ifdef __cplusplus
9318extern "C"
9319#endif
636a995d 9320char dlopen ();
9321int
22166f83 9322main ()
636a995d 9323{
8b72747d 9324return dlopen ();
636a995d 9325 ;
9326 return 0;
9327}
9328_ACEOF
22166f83 9329if ac_fn_c_try_link "$LINENO"; then :
710658c7 9330 ac_cv_lib_dl_dlopen=yes
22166f83 9331else
f922ca49 9332 ac_cv_lib_dl_dlopen=no
636a995d 9333fi
22166f83 9334rm -f core conftest.err conftest.$ac_objext \
f922ca49 9335 conftest$ac_exeext conftest.$ac_ext
636a995d 9336LIBS=$ac_check_lib_save_LIBS
9337fi
22166f83 9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9339$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9340if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
636a995d 9341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22166f83 9342else
9bc8b93f 9343
636a995d 9344 lt_cv_dlopen="dyld"
9345 lt_cv_dlopen_libs=
9346 lt_cv_dlopen_self=yes
9bc8b93f 9347
636a995d 9348fi
9bc8b93f 9349
636a995d 9350 ;;
9bc8b93f 9351
636a995d 9352 *)
f922ca49 9353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22166f83 9354if test "x$ac_cv_func_shl_load" = xyes; then :
f922ca49 9355 lt_cv_dlopen="shl_load"
22166f83 9356else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9358$as_echo_n "checking for shl_load in -ldld... " >&6; }
9359if ${ac_cv_lib_dld_shl_load+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361else
f922ca49 9362 ac_check_lib_save_LIBS=$LIBS
9363LIBS="-ldld $LIBS"
9364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
710658c7 9365/* end confdefs.h. */
710658c7 9366
9367/* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
22166f83 9370#ifdef __cplusplus
9371extern "C"
9372#endif
710658c7 9373char shl_load ();
710658c7 9374int
22166f83 9375main ()
710658c7 9376{
9377return shl_load ();
9378 ;
9379 return 0;
9380}
9381_ACEOF
22166f83 9382if ac_fn_c_try_link "$LINENO"; then :
f922ca49 9383 ac_cv_lib_dld_shl_load=yes
22166f83 9384else
f922ca49 9385 ac_cv_lib_dld_shl_load=no
636a995d 9386fi
22166f83 9387rm -f core conftest.err conftest.$ac_objext \
f922ca49 9388 conftest$ac_exeext conftest.$ac_ext
636a995d 9389LIBS=$ac_check_lib_save_LIBS
9390fi
22166f83 9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9392$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9393if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
636a995d 9394 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
22166f83 9395else
f922ca49 9396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22166f83 9397if test "x$ac_cv_func_dlopen" = xyes; then :
636a995d 9398 lt_cv_dlopen="dlopen"
22166f83 9399else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9401$as_echo_n "checking for dlopen in -ldl... " >&6; }
9402if ${ac_cv_lib_dl_dlopen+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404else
636a995d 9405 ac_check_lib_save_LIBS=$LIBS
9406LIBS="-ldl $LIBS"
f922ca49 9407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 9408/* end confdefs.h. */
9bc8b93f 9409
8b72747d 9410/* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
22166f83 9413#ifdef __cplusplus
9414extern "C"
9415#endif
636a995d 9416char dlopen ();
9417int
22166f83 9418main ()
636a995d 9419{
8b72747d 9420return dlopen ();
636a995d 9421 ;
9422 return 0;
9423}
9424_ACEOF
22166f83 9425if ac_fn_c_try_link "$LINENO"; then :
636a995d 9426 ac_cv_lib_dl_dlopen=yes
22166f83 9427else
f922ca49 9428 ac_cv_lib_dl_dlopen=no
636a995d 9429fi
22166f83 9430rm -f core conftest.err conftest.$ac_objext \
f922ca49 9431 conftest$ac_exeext conftest.$ac_ext
636a995d 9432LIBS=$ac_check_lib_save_LIBS
9433fi
22166f83 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9435$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9436if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
636a995d 9437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22166f83 9438else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9440$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9441if ${ac_cv_lib_svld_dlopen+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443else
636a995d 9444 ac_check_lib_save_LIBS=$LIBS
9445LIBS="-lsvld $LIBS"
f922ca49 9446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 9447/* end confdefs.h. */
9bc8b93f 9448
8b72747d 9449/* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
22166f83 9452#ifdef __cplusplus
9453extern "C"
9454#endif
636a995d 9455char dlopen ();
9456int
22166f83 9457main ()
636a995d 9458{
8b72747d 9459return dlopen ();
636a995d 9460 ;
9461 return 0;
9462}
9463_ACEOF
22166f83 9464if ac_fn_c_try_link "$LINENO"; then :
636a995d 9465 ac_cv_lib_svld_dlopen=yes
22166f83 9466else
f922ca49 9467 ac_cv_lib_svld_dlopen=no
636a995d 9468fi
22166f83 9469rm -f core conftest.err conftest.$ac_objext \
f922ca49 9470 conftest$ac_exeext conftest.$ac_ext
636a995d 9471LIBS=$ac_check_lib_save_LIBS
9472fi
22166f83 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9474$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9475if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
636a995d 9476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
22166f83 9477else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9479$as_echo_n "checking for dld_link in -ldld... " >&6; }
9480if ${ac_cv_lib_dld_dld_link+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482else
636a995d 9483 ac_check_lib_save_LIBS=$LIBS
9484LIBS="-ldld $LIBS"
f922ca49 9485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 9486/* end confdefs.h. */
9bc8b93f 9487
8b72747d 9488/* Override any GCC internal prototype to avoid an error.
9489 Use char because int might match the return type of a GCC
9490 builtin and then its argument prototype would still apply. */
22166f83 9491#ifdef __cplusplus
9492extern "C"
9493#endif
636a995d 9494char dld_link ();
9495int
22166f83 9496main ()
636a995d 9497{
8b72747d 9498return dld_link ();
636a995d 9499 ;
9500 return 0;
9501}
9502_ACEOF
22166f83 9503if ac_fn_c_try_link "$LINENO"; then :
636a995d 9504 ac_cv_lib_dld_dld_link=yes
22166f83 9505else
f922ca49 9506 ac_cv_lib_dld_dld_link=no
9bc8b93f 9507fi
22166f83 9508rm -f core conftest.err conftest.$ac_objext \
f922ca49 9509 conftest$ac_exeext conftest.$ac_ext
636a995d 9510LIBS=$ac_check_lib_save_LIBS
9511fi
22166f83 9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9513$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9514if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
636a995d 9515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9516fi
71eb93ea 9517
71eb93ea 9518
636a995d 9519fi
71eb93ea 9520
71eb93ea 9521
636a995d 9522fi
71eb93ea 9523
71eb93ea 9524
636a995d 9525fi
7f19c02f 9526
9bc8b93f 9527
636a995d 9528fi
9529
71eb93ea 9530
7f19c02f 9531fi
9532
636a995d 9533 ;;
9534 esac
84e6335c 9535
636a995d 9536 if test "x$lt_cv_dlopen" != xno; then
9537 enable_dlopen=yes
9bc8b93f 9538 else
636a995d 9539 enable_dlopen=no
84e6335c 9540 fi
636a995d 9541
9542 case $lt_cv_dlopen in
9543 dlopen)
9544 save_CPPFLAGS="$CPPFLAGS"
9545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9546
9547 save_LDFLAGS="$LDFLAGS"
9548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9549
9550 save_LIBS="$LIBS"
9551 LIBS="$lt_cv_dlopen_libs $LIBS"
9552
22166f83 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9554$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9555if ${lt_cv_dlopen_self+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557else
636a995d 9558 if test "$cross_compiling" = yes; then :
9559 lt_cv_dlopen_self=cross
9560else
9561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9562 lt_status=$lt_dlunknown
9563 cat > conftest.$ac_ext <<_LT_EOF
8525e2d9 9564#line 9564 "configure"
636a995d 9565#include "confdefs.h"
84e6335c 9566
636a995d 9567#if HAVE_DLFCN_H
9568#include <dlfcn.h>
9569#endif
84e6335c 9570
636a995d 9571#include <stdio.h>
7f19c02f 9572
636a995d 9573#ifdef RTLD_GLOBAL
9574# define LT_DLGLOBAL RTLD_GLOBAL
9575#else
9576# ifdef DL_GLOBAL
9577# define LT_DLGLOBAL DL_GLOBAL
9578# else
9579# define LT_DLGLOBAL 0
9580# endif
9581#endif
7f19c02f 9582
636a995d 9583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9584 find out it does not work in some platform. */
9585#ifndef LT_DLLAZY_OR_NOW
9586# ifdef RTLD_LAZY
9587# define LT_DLLAZY_OR_NOW RTLD_LAZY
9588# else
9589# ifdef DL_LAZY
9590# define LT_DLLAZY_OR_NOW DL_LAZY
9591# else
9592# ifdef RTLD_NOW
9593# define LT_DLLAZY_OR_NOW RTLD_NOW
9594# else
9595# ifdef DL_NOW
9596# define LT_DLLAZY_OR_NOW DL_NOW
9597# else
9598# define LT_DLLAZY_OR_NOW 0
9599# endif
9600# endif
9601# endif
9602# endif
9603#endif
84e6335c 9604
636a995d 9605void fnord() { int i=42;}
9606int main ()
9607{
9608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9609 int status = $lt_dlunknown;
71eb93ea 9610
636a995d 9611 if (self)
9612 {
9613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9615 /* dlclose (self); */
9616 }
9617 else
9618 puts (dlerror ());
71eb93ea 9619
6acb2cf6 9620 return status;
636a995d 9621}
9622_LT_EOF
f922ca49 9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
636a995d 9624 (eval $ac_link) 2>&5
9625 ac_status=$?
22166f83 9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 9627 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
636a995d 9628 (./conftest; exit; ) >&5 2>/dev/null
9629 lt_status=$?
9630 case x$lt_status in
9631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9633 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9634 esac
9635 else :
9636 # compilation failed
9637 lt_cv_dlopen_self=no
9638 fi
9639fi
9640rm -fr conftest*
9bc8b93f 9641
9bc8b93f 9642
636a995d 9643fi
22166f83 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9645$as_echo "$lt_cv_dlopen_self" >&6; }
9bc8b93f 9646
636a995d 9647 if test "x$lt_cv_dlopen_self" = xyes; then
9648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22166f83 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9650$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9651if ${lt_cv_dlopen_self_static+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653else
636a995d 9654 if test "$cross_compiling" = yes; then :
9655 lt_cv_dlopen_self_static=cross
9656else
9657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9658 lt_status=$lt_dlunknown
9659 cat > conftest.$ac_ext <<_LT_EOF
8525e2d9 9660#line 9660 "configure"
636a995d 9661#include "confdefs.h"
9bc8b93f 9662
636a995d 9663#if HAVE_DLFCN_H
9664#include <dlfcn.h>
9665#endif
9bc8b93f 9666
636a995d 9667#include <stdio.h>
9bc8b93f 9668
636a995d 9669#ifdef RTLD_GLOBAL
9670# define LT_DLGLOBAL RTLD_GLOBAL
9671#else
9672# ifdef DL_GLOBAL
9673# define LT_DLGLOBAL DL_GLOBAL
9674# else
9675# define LT_DLGLOBAL 0
9676# endif
9677#endif
9bc8b93f 9678
636a995d 9679/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9680 find out it does not work in some platform. */
9681#ifndef LT_DLLAZY_OR_NOW
9682# ifdef RTLD_LAZY
9683# define LT_DLLAZY_OR_NOW RTLD_LAZY
9684# else
9685# ifdef DL_LAZY
9686# define LT_DLLAZY_OR_NOW DL_LAZY
9687# else
9688# ifdef RTLD_NOW
9689# define LT_DLLAZY_OR_NOW RTLD_NOW
9690# else
9691# ifdef DL_NOW
9692# define LT_DLLAZY_OR_NOW DL_NOW
9693# else
9694# define LT_DLLAZY_OR_NOW 0
9695# endif
9696# endif
9697# endif
9698# endif
9699#endif
964dbb1e 9700
636a995d 9701void fnord() { int i=42;}
9702int main ()
9703{
9704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9705 int status = $lt_dlunknown;
964dbb1e 9706
636a995d 9707 if (self)
9708 {
9709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9711 /* dlclose (self); */
9712 }
9713 else
9714 puts (dlerror ());
964dbb1e 9715
6acb2cf6 9716 return status;
636a995d 9717}
9718_LT_EOF
f922ca49 9719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
636a995d 9720 (eval $ac_link) 2>&5
9721 ac_status=$?
22166f83 9722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f922ca49 9723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
636a995d 9724 (./conftest; exit; ) >&5 2>/dev/null
9725 lt_status=$?
9726 case x$lt_status in
9727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9729 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9730 esac
9731 else :
9732 # compilation failed
9733 lt_cv_dlopen_self_static=no
9734 fi
9735fi
9736rm -fr conftest*
71eb93ea 9737
84e6335c 9738
636a995d 9739fi
22166f83 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9741$as_echo "$lt_cv_dlopen_self_static" >&6; }
636a995d 9742 fi
71eb93ea 9743
636a995d 9744 CPPFLAGS="$save_CPPFLAGS"
9745 LDFLAGS="$save_LDFLAGS"
9746 LIBS="$save_LIBS"
9747 ;;
9748 esac
84e6335c 9749
636a995d 9750 case $lt_cv_dlopen_self in
9751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9752 *) enable_dlopen_self=unknown ;;
9753 esac
964dbb1e 9754
636a995d 9755 case $lt_cv_dlopen_self_static in
9756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9757 *) enable_dlopen_self_static=unknown ;;
9758 esac
9759fi
964dbb1e 9760
964dbb1e 9761
964dbb1e 9762
84e6335c 9763
84e6335c 9764
71eb93ea 9765
84e6335c 9766
84e6335c 9767
84e6335c 9768
71eb93ea 9769
84e6335c 9770
71eb93ea 9771
84e6335c 9772
84e6335c 9773
9774
71eb93ea 9775
84e6335c 9776
636a995d 9777striplib=
9778old_striplib=
22166f83 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9780$as_echo_n "checking whether stripping libraries is possible... " >&6; }
636a995d 9781if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22166f83 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9785$as_echo "yes" >&6; }
636a995d 9786else
9787# FIXME - insert some real tests, host_os isn't really good enough
9788 case $host_os in
9789 darwin*)
9790 if test -n "$STRIP" ; then
9791 striplib="$STRIP -x"
9792 old_striplib="$STRIP -S"
22166f83 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794$as_echo "yes" >&6; }
636a995d 9795 else
22166f83 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797$as_echo "no" >&6; }
636a995d 9798 fi
9799 ;;
9800 *)
22166f83 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
636a995d 9803 ;;
9804 esac
9805fi
71eb93ea 9806
84e6335c 9807
71eb93ea 9808
84e6335c 9809
71eb93ea 9810
71eb93ea 9811
71eb93ea 9812
71eb93ea 9813
71eb93ea 9814
71eb93ea 9815
71eb93ea 9816
71eb93ea 9817
636a995d 9818 # Report which library types will actually be built
22166f83 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9820$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9822$as_echo "$can_build_shared" >&6; }
71eb93ea 9823
22166f83 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9825$as_echo_n "checking whether to build shared libraries... " >&6; }
636a995d 9826 test "$can_build_shared" = "no" && enable_shared=no
71eb93ea 9827
636a995d 9828 # On AIX, shared libraries and static libraries use the same namespace, and
9829 # are all built from PIC.
9830 case $host_os in
9831 aix3*)
9832 test "$enable_shared" = yes && enable_static=no
9833 if test -n "$RANLIB"; then
9834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9835 postinstall_cmds='$RANLIB $lib'
9836 fi
9837 ;;
71eb93ea 9838
636a995d 9839 aix[4-9]*)
9840 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9841 test "$enable_shared" = yes && enable_static=no
9842 fi
9843 ;;
9844 esac
22166f83 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9846$as_echo "$enable_shared" >&6; }
71eb93ea 9847
22166f83 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9849$as_echo_n "checking whether to build static libraries... " >&6; }
636a995d 9850 # Make sure either enable_shared or enable_static is yes.
9851 test "$enable_shared" = yes || enable_static=yes
22166f83 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9853$as_echo "$enable_static" >&6; }
71eb93ea 9854
71eb93ea 9855
71eb93ea 9856
84e6335c 9857
636a995d 9858fi
9859ac_ext=c
9860ac_cpp='$CPP $CPPFLAGS'
9861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9863ac_compiler_gnu=$ac_cv_c_compiler_gnu
71eb93ea 9864
636a995d 9865CC="$lt_save_CC"
71eb93ea 9866
71eb93ea 9867
71eb93ea 9868
71eb93ea 9869
71eb93ea 9870
71eb93ea 9871
71eb93ea 9872
71eb93ea 9873
71eb93ea 9874
84e6335c 9875
9bc8b93f 9876
9bc8b93f 9877
9bc8b93f 9878
8b72747d 9879 ac_config_commands="$ac_config_commands libtool"
9bc8b93f 9880
9881
9bc8b93f 9882
9bc8b93f 9883
636a995d 9884# Only expand once:
9bc8b93f 9885
9bc8b93f 9886
22166f83 9887# Find a good install program. We prefer a C program (faster),
636a995d 9888# so one script is as good as another. But avoid the broken or
9889# incompatible versions:
9890# SysV /etc/install, /usr/sbin/install
9891# SunOS /usr/etc/install
9892# IRIX /sbin/install
9893# AIX /bin/install
9894# AmigaOS /C/install, which installs bootblocks on floppy discs
9895# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9896# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9897# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9898# OS/2's system install, which has a completely different semantic
9899# ./install, which can be erroneously created by make from ./install.sh.
8b72747d 9900# Reject install programs that cannot install multiple files.
22166f83 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9902$as_echo_n "checking for a BSD-compatible install... " >&6; }
636a995d 9903if test -z "$INSTALL"; then
22166f83 9904if ${ac_cv_path_install+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906else
636a995d 9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908for as_dir in $PATH
9909do
9910 IFS=$as_save_IFS
22166f83 9911 test -z "$as_dir" && as_dir=.
9912 # Account for people who put trailing slashes in PATH elements.
9913case $as_dir/ in #((
9914 ./ | .// | /[cC]/* | \
636a995d 9915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
f922ca49 9916 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
636a995d 9917 /usr/ucb/* ) ;;
9918 *)
9919 # OSF1 and SCO ODT 3.0 have their own names for install.
9920 # Don't use installbsd from OSF since it installs stuff as root
9921 # by default.
9922 for ac_prog in ginstall scoinst install; do
9923 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 9924 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
636a995d 9925 if test $ac_prog = install &&
22166f83 9926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
636a995d 9927 # AIX install. It has an incompatible calling convention.
9928 :
9929 elif test $ac_prog = install &&
22166f83 9930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
636a995d 9931 # program-specific install script used by HP pwplus--don't use.
9932 :
9933 else
8b72747d 9934 rm -rf conftest.one conftest.two conftest.dir
9935 echo one > conftest.one
9936 echo two > conftest.two
9937 mkdir conftest.dir
22166f83 9938 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8b72747d 9939 test -s conftest.one && test -s conftest.two &&
9940 test -s conftest.dir/conftest.one &&
9941 test -s conftest.dir/conftest.two
9942 then
22166f83 9943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8b72747d 9944 break 3
9945 fi
636a995d 9946 fi
9947 fi
9948 done
9949 done
9950 ;;
9951esac
8b72747d 9952
f922ca49 9953 done
8b72747d 9954IFS=$as_save_IFS
9bc8b93f 9955
8b72747d 9956rm -rf conftest.one conftest.two conftest.dir
9bc8b93f 9957
636a995d 9958fi
22166f83 9959 if test "${ac_cv_path_install+set}" = set; then
636a995d 9960 INSTALL=$ac_cv_path_install
9961 else
8b72747d 9962 # As a last resort, use the slow shell script. Don't cache a
9963 # value for INSTALL within a source directory, because that will
636a995d 9964 # break other packages using the cache if that directory is
8b72747d 9965 # removed, or if the value is a relative name.
636a995d 9966 INSTALL=$ac_install_sh
9967 fi
9968fi
22166f83 9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9970$as_echo "$INSTALL" >&6; }
9bc8b93f 9971
636a995d 9972# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9973# It thinks the first close brace ends the variable substitution.
9974test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9bc8b93f 9975
636a995d 9976test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9bc8b93f 9977
636a995d 9978test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9bc8b93f 9979
84e6335c 9980
636a995d 9981#########
9982# Enable large file support (if special flags are necessary)
9983#
8b72747d 9984# Check whether --enable-largefile was given.
22166f83 9985if test "${enable_largefile+set}" = set; then :
8b72747d 9986 enableval=$enable_largefile;
9987fi
84e6335c 9988
636a995d 9989if test "$enable_largefile" != no; then
84e6335c 9990
22166f83 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9992$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9993if ${ac_cv_sys_largefile_CC+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995else
636a995d 9996 ac_cv_sys_largefile_CC=no
9997 if test "$GCC" != yes; then
9998 ac_save_CC=$CC
9999 while :; do
8b72747d 10000 # IRIX 6.2 and later do not support large files by default,
10001 # so use the C compiler's -n32 option if that helps.
f922ca49 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 10003/* 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. */
22166f83 10009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
636a995d 10010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10011 && LARGE_OFF_T % 2147483647 == 1)
10012 ? 1 : -1];
10013int
22166f83 10014main ()
636a995d 10015{
84e6335c 10016
636a995d 10017 ;
10018 return 0;
10019}
10020_ACEOF
22166f83 10021 if ac_fn_c_try_compile "$LINENO"; then :
636a995d 10022 break
636a995d 10023fi
22166f83 10024rm -f core conftest.err conftest.$ac_objext
8b72747d 10025 CC="$CC -n32"
22166f83 10026 if ac_fn_c_try_compile "$LINENO"; then :
636a995d 10027 ac_cv_sys_largefile_CC=' -n32'; break
84e6335c 10028fi
22166f83 10029rm -f core conftest.err conftest.$ac_objext
636a995d 10030 break
10031 done
10032 CC=$ac_save_CC
10033 rm -f conftest.$ac_ext
10034 fi
10035fi
22166f83 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10037$as_echo "$ac_cv_sys_largefile_CC" >&6; }
636a995d 10038 if test "$ac_cv_sys_largefile_CC" != no; then
10039 CC=$CC$ac_cv_sys_largefile_CC
10040 fi
84e6335c 10041
22166f83 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10043$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10044if ${ac_cv_sys_file_offset_bits+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046else
636a995d 10047 while :; do
f922ca49 10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 10049/* end confdefs.h. */
10050#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. */
22166f83 10055#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
636a995d 10056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10057 && LARGE_OFF_T % 2147483647 == 1)
10058 ? 1 : -1];
10059int
22166f83 10060main ()
636a995d 10061{
9bc8b93f 10062
636a995d 10063 ;
10064 return 0;
10065}
10066_ACEOF
22166f83 10067if ac_fn_c_try_compile "$LINENO"; then :
8b72747d 10068 ac_cv_sys_file_offset_bits=no; break
636a995d 10069fi
22166f83 10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f922ca49 10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 10072/* 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. */
22166f83 10079#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
636a995d 10080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10081 && LARGE_OFF_T % 2147483647 == 1)
10082 ? 1 : -1];
10083int
22166f83 10084main ()
636a995d 10085{
9bc8b93f 10086
636a995d 10087 ;
10088 return 0;
10089}
10090_ACEOF
22166f83 10091if ac_fn_c_try_compile "$LINENO"; then :
636a995d 10092 ac_cv_sys_file_offset_bits=64; break
636a995d 10093fi
22166f83 10094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8b72747d 10095 ac_cv_sys_file_offset_bits=unknown
636a995d 10096 break
10097done
10098fi
22166f83 10099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10100$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8b72747d 10101case $ac_cv_sys_file_offset_bits in #(
10102 no | unknown) ;;
10103 *)
22166f83 10104cat >>confdefs.h <<_ACEOF
10105#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10106_ACEOF
8b72747d 10107;;
10108esac
10109rm -rf conftest*
10110 if test $ac_cv_sys_file_offset_bits = unknown; then
22166f83 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10112$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10113if ${ac_cv_sys_large_files+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115else
636a995d 10116 while :; do
f922ca49 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 10118/* 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. */
22166f83 10124#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
636a995d 10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10127 ? 1 : -1];
10128int
22166f83 10129main ()
636a995d 10130{
9bc8b93f 10131
636a995d 10132 ;
10133 return 0;
10134}
10135_ACEOF
22166f83 10136if ac_fn_c_try_compile "$LINENO"; then :
8b72747d 10137 ac_cv_sys_large_files=no; break
636a995d 10138fi
22166f83 10139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f922ca49 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
636a995d 10141/* 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. */
22166f83 10148#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
636a995d 10149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10150 && LARGE_OFF_T % 2147483647 == 1)
10151 ? 1 : -1];
10152int
22166f83 10153main ()
636a995d 10154{
9bc8b93f 10155
636a995d 10156 ;
10157 return 0;
10158}
10159_ACEOF
22166f83 10160if ac_fn_c_try_compile "$LINENO"; then :
636a995d 10161 ac_cv_sys_large_files=1; break
636a995d 10162fi
22166f83 10163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8b72747d 10164 ac_cv_sys_large_files=unknown
636a995d 10165 break
7f19c02f 10166done
636a995d 10167fi
22166f83 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10169$as_echo "$ac_cv_sys_large_files" >&6; }
8b72747d 10170case $ac_cv_sys_large_files in #(
10171 no | unknown) ;;
10172 *)
22166f83 10173cat >>confdefs.h <<_ACEOF
10174#define _LARGE_FILES $ac_cv_sys_large_files
10175_ACEOF
8b72747d 10176;;
10177esac
10178rm -rf conftest*
10179 fi
22166f83 10180
10181
636a995d 10182fi
71eb93ea 10183
71eb93ea 10184
636a995d 10185#########
10186# Check for needed/wanted data types
f922ca49 10187ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
22166f83 10188if test "x$ac_cv_type_int8_t" = xyes; then :
f922ca49 10189
22166f83 10190cat >>confdefs.h <<_ACEOF
10191#define HAVE_INT8_T 1
10192_ACEOF
710658c7 10193
710658c7 10194
710658c7 10195fi
f922ca49 10196ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
22166f83 10197if test "x$ac_cv_type_int16_t" = xyes; then :
71eb93ea 10198
22166f83 10199cat >>confdefs.h <<_ACEOF
10200#define HAVE_INT16_T 1
10201_ACEOF
71eb93ea 10202
71eb93ea 10203
636a995d 10204fi
f922ca49 10205ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
22166f83 10206if test "x$ac_cv_type_int32_t" = xyes; then :
84e6335c 10207
22166f83 10208cat >>confdefs.h <<_ACEOF
10209#define HAVE_INT32_T 1
10210_ACEOF
71eb93ea 10211
f922ca49 10212
75897234 10213fi
f922ca49 10214ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
22166f83 10215if test "x$ac_cv_type_int64_t" = xyes; then :
75897234 10216
22166f83 10217cat >>confdefs.h <<_ACEOF
10218#define HAVE_INT64_T 1
10219_ACEOF
7f19c02f 10220
a9f39fde 10221
f922ca49 10222fi
10223ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22166f83 10224if test "x$ac_cv_type_intptr_t" = xyes; then :
f922ca49 10225
22166f83 10226cat >>confdefs.h <<_ACEOF
10227#define HAVE_INTPTR_T 1
10228_ACEOF
7f19c02f 10229
7f19c02f 10230
f922ca49 10231fi
10232ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
22166f83 10233if test "x$ac_cv_type_uint8_t" = xyes; then :
7f19c02f 10234
22166f83 10235cat >>confdefs.h <<_ACEOF
10236#define HAVE_UINT8_T 1
10237_ACEOF
a9f39fde 10238
7f19c02f 10239
f922ca49 10240fi
10241ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
22166f83 10242if test "x$ac_cv_type_uint16_t" = xyes; then :
75897234 10243
22166f83 10244cat >>confdefs.h <<_ACEOF
10245#define HAVE_UINT16_T 1
10246_ACEOF
75897234 10247
05c7e0bd 10248
f922ca49 10249fi
10250ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
22166f83 10251if test "x$ac_cv_type_uint32_t" = xyes; then :
8567d406 10252
22166f83 10253cat >>confdefs.h <<_ACEOF
10254#define HAVE_UINT32_T 1
10255_ACEOF
75897234 10256
33a14781 10257
f922ca49 10258fi
10259ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
22166f83 10260if test "x$ac_cv_type_uint64_t" = xyes; then :
636a995d 10261
22166f83 10262cat >>confdefs.h <<_ACEOF
10263#define HAVE_UINT64_T 1
10264_ACEOF
75897234 10265
75897234 10266
f922ca49 10267fi
10268ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22166f83 10269if test "x$ac_cv_type_uintptr_t" = xyes; then :
f922ca49 10270
22166f83 10271cat >>confdefs.h <<_ACEOF
10272#define HAVE_UINTPTR_T 1
10273_ACEOF
84e6335c 10274
f922ca49 10275
a9f39fde 10276fi
10277
f922ca49 10278
10279#########
10280# Check for needed/wanted headers
22166f83 10281for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10282do :
10283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10286 cat >>confdefs.h <<_ACEOF
10287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288_ACEOF
f0962c9f 10289
10290fi
f0962c9f 10291
22166f83 10292done
f922ca49 10293
10294
10295#########
10296# Figure out whether or not we have these functions
10297#
22166f83 10298for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
10299do :
10300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10301ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10302if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10303 cat >>confdefs.h <<_ACEOF
10304#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10305_ACEOF
75897234 10306
636a995d 10307fi
22166f83 10308done
84e6335c 10309
75897234 10310
636a995d 10311#########
10312# By default, we use the amalgamation (this may be changed below...)
10313#
10314USE_AMALGAMATION=1
71eb93ea 10315
636a995d 10316#########
10317# See whether we can run specific tclsh versions known to work well;
10318# if not, then we fall back to plain tclsh.
10319# TODO: try other versions before falling back?
10320#
0b11bcb3 10321for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
636a995d 10322do
10323 # Extract the first word of "$ac_prog", so it can be a program name with args.
10324set dummy $ac_prog; ac_word=$2
22166f83 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326$as_echo_n "checking for $ac_word... " >&6; }
10327if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329else
636a995d 10330 if test -n "$TCLSH_CMD"; then
10331 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10332else
10333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $PATH
10335do
10336 IFS=$as_save_IFS
22166f83 10337 test -z "$as_dir" && as_dir=.
f922ca49 10338 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 10339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 10340 ac_cv_prog_TCLSH_CMD="$ac_prog"
22166f83 10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
636a995d 10342 break 2
10343 fi
10344done
f922ca49 10345 done
8b72747d 10346IFS=$as_save_IFS
71eb93ea 10347
636a995d 10348fi
10349fi
10350TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10351if test -n "$TCLSH_CMD"; then
22166f83 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10353$as_echo "$TCLSH_CMD" >&6; }
636a995d 10354else
22166f83 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356$as_echo "no" >&6; }
636a995d 10357fi
7f19c02f 10358
8b72747d 10359
636a995d 10360 test -n "$TCLSH_CMD" && break
10361done
10362test -n "$TCLSH_CMD" || TCLSH_CMD="none"
7f19c02f 10363
636a995d 10364if test "$TCLSH_CMD" = "none"; then
10365 # If we can't find a local tclsh, then building the amalgamation will fail.
10366 # We act as though --disable-amalgamation has been used.
10367 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10368 USE_AMALGAMATION=0
10369 TCLSH_CMD="tclsh"
10370fi
7f19c02f 10371
10372
10373
6acb2cf6 10374if test "x${TCLLIBDIR+set}" != "xset" ; then
10375 TCLLIBDIR='$(libdir)'
10376 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
d9cc532a 10377 if test -d $i ; then
10378 TCLLIBDIR=$i
10379 break
10380 fi
6acb2cf6 10381 done
10382 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10383fi
10384
10385
636a995d 10386#########
10387# Set up an appropriate program prefix
10388#
10389if test "$program_prefix" = "NONE"; then
10390 program_prefix=""
10391fi
7f19c02f 10392
10393
636a995d 10394VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
22166f83 10395{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10396$as_echo "$as_me: Version set to $VERSION" >&6;}
7f19c02f 10397
636a995d 10398RELEASE=`cat $srcdir/VERSION`
22166f83 10399{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10400$as_echo "$as_me: Release set to $RELEASE" >&6;}
7f19c02f 10401
7f19c02f 10402
14696188 10403##########
10404# Handle --with-wasi-sdk=DIR
10405#
10406# This must be early because it changes the toolchain.
10407#
10408
10409# Check whether --with-wasi-sdk was given.
22166f83 10410if test "${with_wasi_sdk+set}" = set; then :
14696188 10411 withval=$with_wasi_sdk; with_wasisdk=${withval}
10412fi
10413
22166f83 10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
10415$as_echo_n "checking for WASI SDK directory... " >&6; }
10416if ${ac_cv_c_wasi_sdk+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418else
14696188 10419
10420 # First check to see if --with-tcl was specified.
10421 if test x"${with_wasi_sdk}" != x ; then
10422 if ! test -d "${with_wasi_sdk}" ; then
10423 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
10424 fi
22166f83 10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
10426$as_echo "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
14696188 10427 use_wasi_sdk=yes
10428 else
10429 use_wasi_sdk=no
10430 fi
10431
10432fi
10433
10434if test "${use_wasi_sdk}" = "no" ; then
10435 HAVE_WASI_SDK=""
a7c49859 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437$as_echo "no" >&6; }
14696188 10438else
10439 HAVE_WASI_SDK=1
10440# Changing --host and --target have no effect here except to possibly
10441# cause confusion. autoconf has finished processing them by this
10442# point.
10443#
10444# host_alias=wasm32-wasi
10445# target=wasm32-wasi
10446#
10447# Merely changing CC and LD to the wasi-sdk's is enough to get
10448# sqlite3.o building in WASM format.
10449 CC="${with_wasi_sdk}/bin/clang"
10450 LD="${with_wasi_sdk}/bin/wasm-ld"
60a1a0f7 10451 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
14696188 10452 cross_compiling=yes
10453 enable_threadsafe=no
10454 use_tcl=no
10455 enable_tcl=no
3bcb5ce4 10456 # libtool is apparently hard-coded to use gcc for linking DLLs, so
10457 # we disable the DLL build...
10458 enable_shared=no
a7c49859 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10460$as_echo "yes" >&6; }
14696188 10461fi
10462
10463
10464
636a995d 10465#########
10466# Locate a compiler for the build machine. This compiler should
10467# generate command-line programs that run on the build machine.
10468#
10469if test x"$cross_compiling" = xno; then
10470 BUILD_CC=$CC
10471 BUILD_CFLAGS=$CFLAGS
10472else
10473 if test "${BUILD_CC+set}" != set; then
10474 for ac_prog in gcc cc cl
84e6335c 10475do
7f19c02f 10476 # Extract the first word of "$ac_prog", so it can be a program name with args.
10477set dummy $ac_prog; ac_word=$2
22166f83 10478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479$as_echo_n "checking for $ac_word... " >&6; }
10480if ${ac_cv_prog_BUILD_CC+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482else
636a995d 10483 if test -n "$BUILD_CC"; then
10484 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
7f19c02f 10485else
10486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487for as_dir in $PATH
10488do
10489 IFS=$as_save_IFS
22166f83 10490 test -z "$as_dir" && as_dir=.
f922ca49 10491 for ac_exec_ext in '' $ac_executable_extensions; do
22166f83 10492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
636a995d 10493 ac_cv_prog_BUILD_CC="$ac_prog"
22166f83 10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7f19c02f 10495 break 2
10496 fi
10497done
f922ca49 10498 done
8b72747d 10499IFS=$as_save_IFS
84e6335c 10500
10501fi
7f19c02f 10502fi
636a995d 10503BUILD_CC=$ac_cv_prog_BUILD_CC
10504if test -n "$BUILD_CC"; then
22166f83 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10506$as_echo "$BUILD_CC" >&6; }
636a995d 10507else
22166f83 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509$as_echo "no" >&6; }
636a995d 10510fi
10511
8b72747d 10512
636a995d 10513 test -n "$BUILD_CC" && break
10514done
10515
10516 fi
10517 if test "${BUILD_CFLAGS+set}" != set; then
10518 BUILD_CFLAGS="-g"
10519 fi
10520fi
10521
10522
10523##########
10524# Do we want to support multithreaded use of sqlite
10525#
8b72747d 10526# Check whether --enable-threadsafe was given.
22166f83 10527if test "${enable_threadsafe+set}" = set; then :
8b72747d 10528 enableval=$enable_threadsafe;
8b72747d 10529fi
10530
22166f83 10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10532$as_echo_n "checking whether to support threadsafe operation... " >&6; }
636a995d 10533if test "$enable_threadsafe" = "no"; then
10534 SQLITE_THREADSAFE=0
22166f83 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536$as_echo "no" >&6; }
636a995d 10537else
10538 SQLITE_THREADSAFE=1
22166f83 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540$as_echo "yes" >&6; }
636a995d 10541fi
84e6335c 10542
7f19c02f 10543
636a995d 10544if test "$SQLITE_THREADSAFE" = "1"; then
22166f83 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10546$as_echo_n "checking for library containing pthread_create... " >&6; }
10547if ${ac_cv_search_pthread_create+:} false; then :
10548 $as_echo_n "(cached) " >&6
10549else
ba60fbb6 10550 ac_func_search_save_LIBS=$LIBS
10551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h. */
10553
10554/* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
22166f83 10557#ifdef __cplusplus
10558extern "C"
10559#endif
ba60fbb6 10560char pthread_create ();
10561int
22166f83 10562main ()
ba60fbb6 10563{
10564return pthread_create ();
10565 ;
10566 return 0;
10567}
10568_ACEOF
22166f83 10569for ac_lib in '' pthread; do
ba60fbb6 10570 if test -z "$ac_lib"; then
10571 ac_res="none required"
10572 else
10573 ac_res=-l$ac_lib
10574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10575 fi
22166f83 10576 if ac_fn_c_try_link "$LINENO"; then :
ba60fbb6 10577 ac_cv_search_pthread_create=$ac_res
10578fi
22166f83 10579rm -f core conftest.err conftest.$ac_objext \
ba60fbb6 10580 conftest$ac_exeext
22166f83 10581 if ${ac_cv_search_pthread_create+:} false; then :
ba60fbb6 10582 break
10583fi
10584done
22166f83 10585if ${ac_cv_search_pthread_create+:} false; then :
ba60fbb6 10586
22166f83 10587else
ba60fbb6 10588 ac_cv_search_pthread_create=no
10589fi
10590rm conftest.$ac_ext
10591LIBS=$ac_func_search_save_LIBS
10592fi
22166f83 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10594$as_echo "$ac_cv_search_pthread_create" >&6; }
ba60fbb6 10595ac_res=$ac_cv_search_pthread_create
22166f83 10596if test "$ac_res" != no; then :
ba60fbb6 10597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10598
10599fi
10600
22166f83 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10602$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10603if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605else
636a995d 10606 ac_func_search_save_LIBS=$LIBS
f922ca49 10607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b87057f2 10608/* end confdefs.h. */
636a995d 10609
8b72747d 10610/* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
22166f83 10613#ifdef __cplusplus
10614extern "C"
10615#endif
13c808a9 10616char pthread_mutexattr_init ();
b87057f2 10617int
22166f83 10618main ()
b87057f2 10619{
13c808a9 10620return pthread_mutexattr_init ();
b87057f2 10621 ;
10622 return 0;
10623}
10624_ACEOF
22166f83 10625for ac_lib in '' pthread; do
8b72747d 10626 if test -z "$ac_lib"; then
10627 ac_res="none required"
10628 else
10629 ac_res=-l$ac_lib
10630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10631 fi
22166f83 10632 if ac_fn_c_try_link "$LINENO"; then :
13c808a9 10633 ac_cv_search_pthread_mutexattr_init=$ac_res
8b72747d 10634fi
22166f83 10635rm -f core conftest.err conftest.$ac_objext \
f922ca49 10636 conftest$ac_exeext
22166f83 10637 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
8b72747d 10638 break
866108f8 10639fi
8b72747d 10640done
22166f83 10641if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
f922ca49 10642
22166f83 10643else
13c808a9 10644 ac_cv_search_pthread_mutexattr_init=no
636a995d 10645fi
8b72747d 10646rm conftest.$ac_ext
636a995d 10647LIBS=$ac_func_search_save_LIBS
10648fi
22166f83 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10650$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13c808a9 10651ac_res=$ac_cv_search_pthread_mutexattr_init
22166f83 10652if test "$ac_res" != no; then :
8b72747d 10653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
84e6335c 10654
636a995d 10655fi
84e6335c 10656
636a995d 10657fi
75897234 10658
636a995d 10659##########
10660# Do we want to support release
10661#
8b72747d 10662# Check whether --enable-releasemode was given.
22166f83 10663if test "${enable_releasemode+set}" = set; then :
8b72747d 10664 enableval=$enable_releasemode;
22166f83 10665else
636a995d 10666 enable_releasemode=no
8b72747d 10667fi
10668
22166f83 10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10670$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
636a995d 10671if test "$enable_releasemode" = "no"; then
10672 ALLOWRELEASE=""
22166f83 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
636a995d 10675else
10676 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
22166f83 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678$as_echo "yes" >&6; }
636a995d 10679fi
10680
10681
10682##########
10683# Do we want temporary databases in memory
10684#
8b72747d 10685# Check whether --enable-tempstore was given.
22166f83 10686if test "${enable_tempstore+set}" = set; then :
8b72747d 10687 enableval=$enable_tempstore;
22166f83 10688else
636a995d 10689 enable_tempstore=no
8b72747d 10690fi
10691
22166f83 10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10693$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
636a995d 10694case "$enable_tempstore" in
10695 never )
10696 TEMP_STORE=0
22166f83 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10698$as_echo "never" >&6; }
636a995d 10699 ;;
10700 no )
10701 TEMP_STORE=1
22166f83 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
636a995d 10704 ;;
10705 yes )
8b72747d 10706 TEMP_STORE=2
22166f83 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708$as_echo "yes" >&6; }
8b72747d 10709 ;;
10710 always )
636a995d 10711 TEMP_STORE=3
22166f83 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10713$as_echo "always" >&6; }
636a995d 10714 ;;
10715 * )
10716 TEMP_STORE=1
22166f83 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718$as_echo "no" >&6; }
636a995d 10719 ;;
b87057f2 10720esac
636a995d 10721
10722
10723
10724###########
10725# Lots of things are different if we are compiling for Windows using
10726# the CYGWIN environment. So check for that special case and handle
10727# things accordingly.
10728#
22166f83 10729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10730$as_echo_n "checking if executables have the .exe suffix... " >&6; }
636a995d 10731if test "$config_BUILD_EXEEXT" = ".exe"; then
10732 CYGWIN=yes
22166f83 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734$as_echo "yes" >&6; }
b87057f2 10735else
22166f83 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10737$as_echo "unknown" >&6; }
636a995d 10738fi
10739if test "$CYGWIN" != "yes"; then
636a995d 10740
10741case $host_os in
10742 *cygwin* ) CYGWIN=yes;;
10743 * ) CYGWIN=no;;
10744esac
10745
10746fi
10747if test "$CYGWIN" = "yes"; then
10748 BUILD_EXEEXT=.exe
10749else
10750 BUILD_EXEEXT=$EXEEXT
10751fi
10752if test x"$cross_compiling" = xno; then
10753 TARGET_EXEEXT=$BUILD_EXEEXT
10754else
10755 TARGET_EXEEXT=$config_TARGET_EXEEXT
10756fi
10757if test "$TARGET_EXEEXT" = ".exe"; then
fe27b089 10758 SQLITE_OS_UNIX=0
10759 SQLITE_OS_WIN=1
10760 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
636a995d 10761else
29bafeab 10762 SQLITE_OS_UNIX=1
10763 SQLITE_OS_WIN=0
29bafeab 10764 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
b0208cca 10765fi
964dbb1e 10766
65623c78 10767
65623c78 10768
94984910 10769
b87057f2 10770
b87057f2 10771
636a995d 10772##########
10773# Figure out all the parameters needed to compile against Tcl.
10774#
10775# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10776# macros in the in the tcl.m4 file of the standard TCL distribution.
10777# Those macros could not be used directly since we have to make some
10778# minor changes to accomodate systems that do not have TCL installed.
10779#
8b72747d 10780# Check whether --enable-tcl was given.
22166f83 10781if test "${enable_tcl+set}" = set; then :
8b72747d 10782 enableval=$enable_tcl; use_tcl=$enableval
22166f83 10783else
636a995d 10784 use_tcl=yes
8b72747d 10785fi
10786
636a995d 10787if test "${use_tcl}" = "yes" ; then
10788
8b72747d 10789# Check whether --with-tcl was given.
22166f83 10790if test "${with_tcl+set}" = set; then :
8b72747d 10791 withval=$with_tcl; with_tclconfig=${withval}
10792fi
10793
22166f83 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10795$as_echo_n "checking for Tcl configuration... " >&6; }
10796 if ${ac_cv_c_tclconfig+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798else
b87057f2 10799
636a995d 10800 # First check to see if --with-tcl was specified.
10801 if test x"${with_tclconfig}" != x ; then
10802 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10803 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10804 else
f922ca49 10805 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
636a995d 10806 fi
10807 fi
6acb2cf6 10808
10809 # Start autosearch by asking tclsh
e74f4651 10810 if test x"${ac_cv_c_tclconfig}" = x ; then
10811 if test x"$cross_compiling" = xno; then
10812 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10813 do
10814 if test -f "$i/tclConfig.sh" ; then
10815 ac_cv_c_tclconfig="$i"
10816 break
10817 fi
10818 done
10819 fi
6acb2cf6 10820 fi
10821
f960a64d 10822 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10823 # So try again after applying corrections.
10824 if test x"${ac_cv_c_tclconfig}" = x ; then
10825 if test x"$cross_compiling" = xno; then
10826 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10827 do
10828 if test -f "$i/tclConfig.sh" ; then
10829 ac_cv_c_tclconfig="$i"
10830 break
10831 fi
10832 done
10833 fi
10834 fi
10835
68314743 10836 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10837 # in a strange place.
10838 if test x"${ac_cv_c_tclconfig}" = x ; then
10839 if test x"$cross_compiling" = xno; then
10840 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10841 do
10842 if test -f "$i/tclConfig.sh" ; then
10843 ac_cv_c_tclconfig="$i"
10844 break
10845 fi
10846 done
10847 fi
10848 fi
10849
636a995d 10850 # then check for a private Tcl installation
10851 if test x"${ac_cv_c_tclconfig}" = x ; then
10852 for i in \
10853 ../tcl \
10854 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10855 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10856 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10857 ../../tcl \
10858 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10859 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10860 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10861 ../../../tcl \
10862 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10863 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10864 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10865 do
10866 if test -f "$i/unix/tclConfig.sh" ; then
10867 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10868 break
10869 fi
10870 done
10871 fi
b87057f2 10872
636a995d 10873 # check in a few common install locations
10874 if test x"${ac_cv_c_tclconfig}" = x ; then
10875 for i in \
10876 `ls -d ${libdir} 2>/dev/null` \
10877 `ls -d /usr/local/lib 2>/dev/null` \
10878 `ls -d /usr/contrib/lib 2>/dev/null` \
10879 `ls -d /usr/lib 2>/dev/null`
10880 do
10881 if test -f "$i/tclConfig.sh" ; then
10882 ac_cv_c_tclconfig=`(cd $i; pwd)`
10883 break
10884 fi
10885 done
10886 fi
b87057f2 10887
636a995d 10888 # check in a few other private locations
10889 if test x"${ac_cv_c_tclconfig}" = x ; then
10890 for i in \
10891 ${srcdir}/../tcl \
10892 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10893 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10894 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10895 do
10896 if test -f "$i/unix/tclConfig.sh" ; then
10897 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10898 break
10899 fi
10900 done
10901 fi
b87057f2 10902
b87057f2 10903fi
b87057f2 10904
636a995d 10905
10906 if test x"${ac_cv_c_tclconfig}" = x ; then
10907 use_tcl=no
22166f83 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10909$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10911$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10913$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
636a995d 10914 else
10915 TCL_BIN_DIR=${ac_cv_c_tclconfig}
22166f83 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10917$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
636a995d 10918
22166f83 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10920$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
636a995d 10921 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
22166f83 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10923$as_echo "loading" >&6; }
636a995d 10924 . $TCL_BIN_DIR/tclConfig.sh
10925 else
22166f83 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10927$as_echo "file not found" >&6; }
636a995d 10928 fi
10929
10930 #
10931 # If the TCL_BIN_DIR is the build directory (not the install directory),
10932 # then set the common variable name to the value of the build variables.
10933 # For example, the variable TCL_LIB_SPEC will be set to the value
10934 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10935 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10936 # installed and uninstalled version of Tcl.
10937 #
10938
10939 if test -f $TCL_BIN_DIR/Makefile ; then
10940 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10941 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10942 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10943 fi
10944
10945 #
10946 # eval is required to do the TCL_DBGX substitution
10947 #
10948
10949 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10950 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10951 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10952
10953 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10954 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10955 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
b87057f2 10956
10957
b87057f2 10958
b87057f2 10959
b87057f2 10960
b87057f2 10961
10962
b87057f2 10963
b87057f2 10964
b87057f2 10965
b87057f2 10966
10967
636a995d 10968
d881ce8f 10969
636a995d 10970 fi
b87057f2 10971fi
636a995d 10972if test "${use_tcl}" = "no" ; then
10973 HAVE_TCL=""
b87057f2 10974else
636a995d 10975 HAVE_TCL=1
b87057f2 10976fi
10977
636a995d 10978
10979##########
10980# Figure out what C libraries are required to compile programs
10981# that use "readline()" library.
10982#
10983TARGET_READLINE_LIBS=""
10984TARGET_READLINE_INC=""
10985TARGET_HAVE_READLINE=0
e44b835e 10986TARGET_HAVE_EDITLINE=0
10987# Check whether --enable-editline was given.
22166f83 10988if test "${enable_editline+set}" = set; then :
e44b835e 10989 enableval=$enable_editline; with_editline=$enableval
22166f83 10990else
e44b835e 10991 with_editline=auto
10992fi
10993
8b72747d 10994# Check whether --enable-readline was given.
22166f83 10995if test "${enable_readline+set}" = set; then :
8b72747d 10996 enableval=$enable_readline; with_readline=$enableval
22166f83 10997else
636a995d 10998 with_readline=auto
8b72747d 10999fi
11000
636a995d 11001
e44b835e 11002if test x"$with_editline" != xno; then
11003 sLIBS=$LIBS
11004 LIBS=""
11005 TARGET_HAVE_EDITLINE=1
22166f83 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11007$as_echo_n "checking for library containing readline... " >&6; }
11008if ${ac_cv_search_readline+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010else
e44b835e 11011 ac_func_search_save_LIBS=$LIBS
11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h. */
11014
11015/* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
22166f83 11018#ifdef __cplusplus
11019extern "C"
11020#endif
e44b835e 11021char readline ();
11022int
22166f83 11023main ()
e44b835e 11024{
11025return readline ();
11026 ;
11027 return 0;
11028}
11029_ACEOF
22166f83 11030for ac_lib in '' edit; do
e44b835e 11031 if test -z "$ac_lib"; then
11032 ac_res="none required"
11033 else
11034 ac_res=-l$ac_lib
11035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11036 fi
22166f83 11037 if ac_fn_c_try_link "$LINENO"; then :
e44b835e 11038 ac_cv_search_readline=$ac_res
11039fi
22166f83 11040rm -f core conftest.err conftest.$ac_objext \
e44b835e 11041 conftest$ac_exeext
22166f83 11042 if ${ac_cv_search_readline+:} false; then :
e44b835e 11043 break
11044fi
11045done
22166f83 11046if ${ac_cv_search_readline+:} false; then :
e44b835e 11047
22166f83 11048else
e44b835e 11049 ac_cv_search_readline=no
11050fi
11051rm conftest.$ac_ext
11052LIBS=$ac_func_search_save_LIBS
11053fi
22166f83 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
11055$as_echo "$ac_cv_search_readline" >&6; }
e44b835e 11056ac_res=$ac_cv_search_readline
22166f83 11057if test "$ac_res" != no; then :
e44b835e 11058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11059 with_readline=no
22166f83 11060else
e44b835e 11061 TARGET_HAVE_EDITLINE=0
11062fi
11063
11064 TARGET_READLINE_LIBS=$LIBS
11065 LIBS=$sLIBS
11066fi
636a995d 11067if test x"$with_readline" != xno; then
11068 found="yes"
b87057f2 11069
11070
8b72747d 11071# Check whether --with-readline-lib was given.
22166f83 11072if test "${with_readline_lib+set}" = set; then :
8b72747d 11073 withval=$with_readline_lib; with_readline_lib=$withval
22166f83 11074else
636a995d 11075 with_readline_lib="auto"
8b72747d 11076fi
11077
636a995d 11078 if test "x$with_readline_lib" = xauto; then
11079 save_LIBS="$LIBS"
11080 LIBS=""
22166f83 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11082$as_echo_n "checking for library containing tgetent... " >&6; }
11083if ${ac_cv_search_tgetent+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085else
636a995d 11086 ac_func_search_save_LIBS=$LIBS
f922ca49 11087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b87057f2 11088/* end confdefs.h. */
636a995d 11089
8b72747d 11090/* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
22166f83 11093#ifdef __cplusplus
11094extern "C"
11095#endif
636a995d 11096char tgetent ();
b87057f2 11097int
22166f83 11098main ()
b87057f2 11099{
8b72747d 11100return tgetent ();
b87057f2 11101 ;
11102 return 0;
11103}
11104_ACEOF
22166f83 11105for ac_lib in '' readline ncurses curses termcap; do
8b72747d 11106 if test -z "$ac_lib"; then
11107 ac_res="none required"
11108 else
11109 ac_res=-l$ac_lib
11110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11111 fi
22166f83 11112 if ac_fn_c_try_link "$LINENO"; then :
8b72747d 11113 ac_cv_search_tgetent=$ac_res
8b72747d 11114fi
22166f83 11115rm -f core conftest.err conftest.$ac_objext \
f922ca49 11116 conftest$ac_exeext
22166f83 11117 if ${ac_cv_search_tgetent+:} false; then :
8b72747d 11118 break
866108f8 11119fi
8b72747d 11120done
22166f83 11121if ${ac_cv_search_tgetent+:} false; then :
f922ca49 11122
22166f83 11123else
8b72747d 11124 ac_cv_search_tgetent=no
636a995d 11125fi
8b72747d 11126rm conftest.$ac_ext
636a995d 11127LIBS=$ac_func_search_save_LIBS
11128fi
22166f83 11129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11130$as_echo "$ac_cv_search_tgetent" >&6; }
8b72747d 11131ac_res=$ac_cv_search_tgetent
22166f83 11132if test "$ac_res" != no; then :
8b72747d 11133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
636a995d 11134 term_LIBS="$LIBS"
22166f83 11135else
636a995d 11136 term_LIBS=""
11137fi
11138
22166f83 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11140$as_echo_n "checking for readline in -lreadline... " >&6; }
11141if ${ac_cv_lib_readline_readline+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143else
636a995d 11144 ac_check_lib_save_LIBS=$LIBS
11145LIBS="-lreadline $LIBS"
f922ca49 11146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b87057f2 11147/* end confdefs.h. */
636a995d 11148
8b72747d 11149/* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
22166f83 11152#ifdef __cplusplus
11153extern "C"
11154#endif
636a995d 11155char readline ();
b87057f2 11156int
22166f83 11157main ()
b87057f2 11158{
8b72747d 11159return readline ();
b87057f2 11160 ;
11161 return 0;
11162}
11163_ACEOF
22166f83 11164if ac_fn_c_try_link "$LINENO"; then :
636a995d 11165 ac_cv_lib_readline_readline=yes
22166f83 11166else
f922ca49 11167 ac_cv_lib_readline_readline=no
b87057f2 11168fi
22166f83 11169rm -f core conftest.err conftest.$ac_objext \
f922ca49 11170 conftest$ac_exeext conftest.$ac_ext
636a995d 11171LIBS=$ac_check_lib_save_LIBS
b87057f2 11172fi
22166f83 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11174$as_echo "$ac_cv_lib_readline_readline" >&6; }
11175if test "x$ac_cv_lib_readline_readline" = xyes; then :
a9f39fde 11176 TARGET_READLINE_LIBS="-lreadline"
22166f83 11177else
a9f39fde 11178 found="no"
8390bc38 11179fi
8b72747d 11180
a9f39fde 11181 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11182 LIBS="$save_LIBS"
11183 else
11184 TARGET_READLINE_LIBS="$with_readline_lib"
11185 fi
8390bc38 11186
8b72747d 11187
f922ca49 11188# Check whether --with-readline-inc was given.
22166f83 11189if test "${with_readline_inc+set}" = set; then :
f922ca49 11190 withval=$with_readline_inc; with_readline_inc=$withval
22166f83 11191else
f922ca49 11192 with_readline_inc="auto"
5b0a9ebe 11193fi
ab1c47b0 11194
f922ca49 11195 if test "x$with_readline_inc" = xauto; then
22166f83 11196 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11197if test "x$ac_cv_header_readline_h" = xyes; then :
636a995d 11198 found="yes"
22166f83 11199else
b87057f2 11200
636a995d 11201 found="no"
11202 if test "$cross_compiling" != yes; then
11203 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11204 for subdir in include include/readline; do
22166f83 11205 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11207$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11208if eval \${$as_ac_File+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210else
636a995d 11211 test "$cross_compiling" = yes &&
f922ca49 11212 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
636a995d 11213if test -r "$dir/$subdir/readline.h"; then
11214 eval "$as_ac_File=yes"
b87057f2 11215else
636a995d 11216 eval "$as_ac_File=no"
b87057f2 11217fi
11218fi
f922ca49 11219eval ac_res=\$$as_ac_File
22166f83 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11221$as_echo "$ac_res" >&6; }
11222if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
636a995d 11223 found=yes
b87057f2 11224fi
11225
636a995d 11226 if test "$found" = "yes"; then
11227 TARGET_READLINE_INC="-I$dir/$subdir"
11228 break
11229 fi
11230 done
11231 test "$found" = "yes" && break
11232 done
11233 fi
11234
11235fi
b87057f2 11236
22166f83 11237
636a995d 11238 else
11239 TARGET_READLINE_INC="$with_readline_inc"
b87057f2 11240 fi
636a995d 11241
11242 if test x"$found" = xno; then
11243 TARGET_READLINE_LIBS=""
11244 TARGET_READLINE_INC=""
11245 TARGET_HAVE_READLINE=0
11246 else
11247 TARGET_HAVE_READLINE=1
b87057f2 11248 fi
11249fi
11250
8525e2d9 11251# Check whether --with-linenoise was given.
11252if test "${with_linenoise+set}" = set; then :
11253 withval=$with_linenoise; with_linenoise=$withval
11254else
11255 with_linenoise="no"
11256fi
11257
11258if test "x$with_linenoise" != "xno"; then
11259 TARGET_HAVE_READLINE=0
11260 TARGET_HAVE_EDITLINE=0
11261 TARGET_HAVE_LINENOISE=1
11262 TARGET_READLINE_INC="-I${with_linenoise}"
11263 TARGET_READLINE_LIBS="${with_linenoise}/linenoise.c"
11264 echo "using linenoise source code at ${with_linenoise}"
11265else
11266 TARGET_HAVE_LINENOISE=0
11267 echo "not using linenoise"
11268fi
11269
11270
11271
b87057f2 11272
b87057f2 11273
b87057f2 11274
11275
e44b835e 11276
636a995d 11277##########
11278# Figure out what C libraries are required to compile programs
11279# that use "fdatasync()" function.
11280#
22166f83 11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11282$as_echo_n "checking for library containing fdatasync... " >&6; }
11283if ${ac_cv_search_fdatasync+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285else
c658b0ff 11286 ac_func_search_save_LIBS=$LIBS
f922ca49 11287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b87057f2 11288/* end confdefs.h. */
11289
8b72747d 11290/* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
22166f83 11293#ifdef __cplusplus
11294extern "C"
11295#endif
636a995d 11296char fdatasync ();
b87057f2 11297int
22166f83 11298main ()
b87057f2 11299{
8b72747d 11300return fdatasync ();
b87057f2 11301 ;
11302 return 0;
11303}
11304_ACEOF
22166f83 11305for ac_lib in '' rt; do
8b72747d 11306 if test -z "$ac_lib"; then
11307 ac_res="none required"
11308 else
11309 ac_res=-l$ac_lib
11310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11311 fi
22166f83 11312 if ac_fn_c_try_link "$LINENO"; then :
8b72747d 11313 ac_cv_search_fdatasync=$ac_res
8b72747d 11314fi
22166f83 11315rm -f core conftest.err conftest.$ac_objext \
f922ca49 11316 conftest$ac_exeext
22166f83 11317 if ${ac_cv_search_fdatasync+:} false; then :
8b72747d 11318 break
866108f8 11319fi
8b72747d 11320done
22166f83 11321if ${ac_cv_search_fdatasync+:} false; then :
f922ca49 11322
22166f83 11323else
8b72747d 11324 ac_cv_search_fdatasync=no
636a995d 11325fi
8b72747d 11326rm conftest.$ac_ext
636a995d 11327LIBS=$ac_func_search_save_LIBS
11328fi
22166f83 11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11330$as_echo "$ac_cv_search_fdatasync" >&6; }
8b72747d 11331ac_res=$ac_cv_search_fdatasync
22166f83 11332if test "$ac_res" != no; then :
8b72747d 11333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
636a995d 11334
11335fi
11336
11337
11338#########
11339# check for debug enabled
8b72747d 11340# Check whether --enable-debug was given.
22166f83 11341if test "${enable_debug+set}" = set; then :
8fa622d6 11342 enableval=$enable_debug;
8b72747d 11343fi
11344
22166f83 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11346$as_echo_n "checking build type... " >&6; }
8fa622d6 11347if test "${enable_debug}" = "yes" ; then
cc11526e 11348 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0 -Wall"
22166f83 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11350$as_echo "debug" >&6; }
636a995d 11351else
11352 TARGET_DEBUG="-DNDEBUG"
22166f83 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11354$as_echo "release" >&6; }
636a995d 11355fi
11356
11357
11358#########
11359# See whether we should use the amalgamation to build
f0962c9f 11360
8b72747d 11361# Check whether --enable-amalgamation was given.
22166f83 11362if test "${enable_amalgamation+set}" = set; then :
8fa622d6 11363 enableval=$enable_amalgamation;
8b72747d 11364fi
11365
b13d5c25 11366if test "${enable_amalgamation}" = "no" ; then
636a995d 11367 USE_AMALGAMATION=0
11368fi
11369
11370
56c9311c 11371#########
11372# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
22166f83 11373for ac_header in zlib.h
11374do :
11375 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11376if test "x$ac_cv_header_zlib_h" = xyes; then :
11377 cat >>confdefs.h <<_ACEOF
11378#define HAVE_ZLIB_H 1
11379_ACEOF
56c9311c 11380
11381fi
11382
22166f83 11383done
11384
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11386$as_echo_n "checking for library containing deflate... " >&6; }
11387if ${ac_cv_search_deflate+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389else
56c9311c 11390 ac_func_search_save_LIBS=$LIBS
11391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392/* end confdefs.h. */
11393
11394/* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
22166f83 11397#ifdef __cplusplus
11398extern "C"
11399#endif
56c9311c 11400char deflate ();
11401int
22166f83 11402main ()
56c9311c 11403{
11404return deflate ();
11405 ;
11406 return 0;
11407}
11408_ACEOF
22166f83 11409for ac_lib in '' z; do
56c9311c 11410 if test -z "$ac_lib"; then
11411 ac_res="none required"
11412 else
11413 ac_res=-l$ac_lib
11414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11415 fi
22166f83 11416 if ac_fn_c_try_link "$LINENO"; then :
56c9311c 11417 ac_cv_search_deflate=$ac_res
11418fi
22166f83 11419rm -f core conftest.err conftest.$ac_objext \
56c9311c 11420 conftest$ac_exeext
22166f83 11421 if ${ac_cv_search_deflate+:} false; then :
56c9311c 11422 break
11423fi
11424done
22166f83 11425if ${ac_cv_search_deflate+:} false; then :
56c9311c 11426
22166f83 11427else
56c9311c 11428 ac_cv_search_deflate=no
11429fi
11430rm conftest.$ac_ext
11431LIBS=$ac_func_search_save_LIBS
11432fi
22166f83 11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11434$as_echo "$ac_cv_search_deflate" >&6; }
56c9311c 11435ac_res=$ac_cv_search_deflate
22166f83 11436if test "$ac_res" != no; then :
56c9311c 11437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11438 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
22166f83 11439else
56c9311c 11440 HAVE_ZLIB=""
11441fi
11442
11443
11444
636a995d 11445#########
11446# See whether we should allow loadable extensions
8b72747d 11447# Check whether --enable-load-extension was given.
22166f83 11448if test "${enable_load_extension+set}" = set; then :
8fa622d6 11449 enableval=$enable_load_extension;
22166f83 11450else
8fa622d6 11451 enable_load_extension=yes
8b72747d 11452fi
11453
8fa622d6 11454if test "${enable_load_extension}" = "yes" ; then
fbededef 11455 OPT_FEATURE_FLAGS=""
22166f83 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11457$as_echo_n "checking for library containing dlopen... " >&6; }
11458if ${ac_cv_search_dlopen+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460else
dbe4b88a 11461 ac_func_search_save_LIBS=$LIBS
f922ca49 11462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dbe4b88a 11463/* end confdefs.h. */
11464
11465/* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
22166f83 11468#ifdef __cplusplus
11469extern "C"
11470#endif
dbe4b88a 11471char dlopen ();
11472int
22166f83 11473main ()
dbe4b88a 11474{
11475return dlopen ();
11476 ;
11477 return 0;
11478}
11479_ACEOF
22166f83 11480for ac_lib in '' dl; do
dbe4b88a 11481 if test -z "$ac_lib"; then
11482 ac_res="none required"
11483 else
11484 ac_res=-l$ac_lib
11485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11486 fi
22166f83 11487 if ac_fn_c_try_link "$LINENO"; then :
dbe4b88a 11488 ac_cv_search_dlopen=$ac_res
dbe4b88a 11489fi
22166f83 11490rm -f core conftest.err conftest.$ac_objext \
f922ca49 11491 conftest$ac_exeext
22166f83 11492 if ${ac_cv_search_dlopen+:} false; then :
dbe4b88a 11493 break
11494fi
11495done
22166f83 11496if ${ac_cv_search_dlopen+:} false; then :
f922ca49 11497
22166f83 11498else
dbe4b88a 11499 ac_cv_search_dlopen=no
11500fi
11501rm conftest.$ac_ext
11502LIBS=$ac_func_search_save_LIBS
11503fi
22166f83 11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11505$as_echo "$ac_cv_search_dlopen" >&6; }
dbe4b88a 11506ac_res=$ac_cv_search_dlopen
22166f83 11507if test "$ac_res" != no; then :
dbe4b88a 11508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11509
11510fi
11511
636a995d 11512else
fbededef 11513 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
636a995d 11514fi
11515
f6e904bd 11516##########
11517# Do we want to support math functions
11518#
e2ce8c44 11519# Check whether --enable-math was given.
22166f83 11520if test "${enable_math+set}" = set; then :
e2ce8c44 11521 enableval=$enable_math;
f6e904bd 11522fi
11523
22166f83 11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11525$as_echo_n "checking whether to support math functions... " >&6; }
42c93b5e 11526if test "$enable_math" = "no"; then
22166f83 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528$as_echo "no" >&6; }
42c93b5e 11529else
22166f83 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }
f6e904bd 11532 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
22166f83 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11534$as_echo_n "checking for library containing ceil... " >&6; }
11535if ${ac_cv_search_ceil+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537else
f6e904bd 11538 ac_func_search_save_LIBS=$LIBS
11539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540/* end confdefs.h. */
11541
11542/* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
22166f83 11545#ifdef __cplusplus
11546extern "C"
11547#endif
f6e904bd 11548char ceil ();
11549int
22166f83 11550main ()
f6e904bd 11551{
11552return ceil ();
11553 ;
11554 return 0;
11555}
11556_ACEOF
22166f83 11557for ac_lib in '' m; do
f6e904bd 11558 if test -z "$ac_lib"; then
11559 ac_res="none required"
11560 else
11561 ac_res=-l$ac_lib
11562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11563 fi
22166f83 11564 if ac_fn_c_try_link "$LINENO"; then :
f6e904bd 11565 ac_cv_search_ceil=$ac_res
11566fi
22166f83 11567rm -f core conftest.err conftest.$ac_objext \
f6e904bd 11568 conftest$ac_exeext
22166f83 11569 if ${ac_cv_search_ceil+:} false; then :
f6e904bd 11570 break
11571fi
11572done
22166f83 11573if ${ac_cv_search_ceil+:} false; then :
f6e904bd 11574
22166f83 11575else
f6e904bd 11576 ac_cv_search_ceil=no
11577fi
11578rm conftest.$ac_ext
11579LIBS=$ac_func_search_save_LIBS
11580fi
22166f83 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11582$as_echo "$ac_cv_search_ceil" >&6; }
f6e904bd 11583ac_res=$ac_cv_search_ceil
22166f83 11584if test "$ac_res" != no; then :
f6e904bd 11585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11586
11587fi
11588
11589fi
11590
9dbf96bd 11591##########
11592# Do we want to support JSON functions
11593#
11594# Check whether --enable-json was given.
22166f83 11595if test "${enable_json+set}" = set; then :
9dbf96bd 11596 enableval=$enable_json;
11597fi
11598
22166f83 11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
11600$as_echo_n "checking whether to support JSON functions... " >&6; }
9dbf96bd 11601if test "$enable_json" = "no"; then
22166f83 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
9dbf96bd 11604 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
11605else
22166f83 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607$as_echo "yes" >&6; }
9dbf96bd 11608fi
42c93b5e 11609
11610########
11611# The --enable-all argument is short-hand to enable
11612# multiple extensions.
11613# Check whether --enable-all was given.
22166f83 11614if test "${enable_all+set}" = set; then :
42c93b5e 11615 enableval=$enable_all;
11616fi
11617
11618
c530b9c6 11619##########
11620# Do we want to support memsys3 and/or memsys5
11621#
5d513ba0 11622# Check whether --enable-memsys5 was given.
22166f83 11623if test "${enable_memsys5+set}" = set; then :
8fa622d6 11624 enableval=$enable_memsys5;
c530b9c6 11625fi
11626
22166f83 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11628$as_echo_n "checking whether to support MEMSYS5... " >&6; }
5d513ba0 11629if test "${enable_memsys5}" = "yes"; then
8c9ed054 11630 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
22166f83 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632$as_echo "yes" >&6; }
c530b9c6 11633else
22166f83 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
c530b9c6 11636fi
5d513ba0 11637# Check whether --enable-memsys3 was given.
22166f83 11638if test "${enable_memsys3+set}" = set; then :
8fa622d6 11639 enableval=$enable_memsys3;
c530b9c6 11640fi
11641
22166f83 11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11643$as_echo_n "checking whether to support MEMSYS3... " >&6; }
5d513ba0 11644if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
8c9ed054 11645 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
22166f83 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647$as_echo "yes" >&6; }
c530b9c6 11648else
22166f83 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
c530b9c6 11651fi
11652
ce1d9f54 11653#########
11654# See whether we should enable Full Text Search extensions
11655# Check whether --enable-fts3 was given.
22166f83 11656if test "${enable_fts3+set}" = set; then :
8fa622d6 11657 enableval=$enable_fts3;
ce1d9f54 11658fi
11659
22166f83 11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11661$as_echo_n "checking whether to support FTS3... " >&6; }
ce1d9f54 11662if test "${enable_fts3}" = "yes" ; then
8c9ed054 11663 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
22166f83 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11665$as_echo "yes" >&6; }
24ec37c3 11666else
22166f83 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
ce1d9f54 11669fi
11670# Check whether --enable-fts4 was given.
22166f83 11671if test "${enable_fts4+set}" = set; then :
8fa622d6 11672 enableval=$enable_fts4;
ce1d9f54 11673fi
11674
22166f83 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11676$as_echo_n "checking whether to support FTS4... " >&6; }
29368eab 11677if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
22166f83 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11679$as_echo "yes" >&6; }
8c9ed054 11680 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
22166f83 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11682$as_echo_n "checking for library containing log... " >&6; }
11683if ${ac_cv_search_log+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685else
ce1d9f54 11686 ac_func_search_save_LIBS=$LIBS
11687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688/* end confdefs.h. */
11689
11690/* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
22166f83 11693#ifdef __cplusplus
11694extern "C"
11695#endif
ce1d9f54 11696char log ();
11697int
22166f83 11698main ()
ce1d9f54 11699{
11700return log ();
11701 ;
11702 return 0;
11703}
11704_ACEOF
22166f83 11705for ac_lib in '' m; do
ce1d9f54 11706 if test -z "$ac_lib"; then
11707 ac_res="none required"
11708 else
11709 ac_res=-l$ac_lib
11710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11711 fi
22166f83 11712 if ac_fn_c_try_link "$LINENO"; then :
ce1d9f54 11713 ac_cv_search_log=$ac_res
11714fi
22166f83 11715rm -f core conftest.err conftest.$ac_objext \
ce1d9f54 11716 conftest$ac_exeext
22166f83 11717 if ${ac_cv_search_log+:} false; then :
ce1d9f54 11718 break
11719fi
11720done
22166f83 11721if ${ac_cv_search_log+:} false; then :
ce1d9f54 11722
22166f83 11723else
ce1d9f54 11724 ac_cv_search_log=no
11725fi
11726rm conftest.$ac_ext
11727LIBS=$ac_func_search_save_LIBS
11728fi
22166f83 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11730$as_echo "$ac_cv_search_log" >&6; }
ce1d9f54 11731ac_res=$ac_cv_search_log
22166f83 11732if test "$ac_res" != no; then :
ce1d9f54 11733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11734
11735fi
11736
24ec37c3 11737else
22166f83 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; }
ce1d9f54 11740fi
11741# Check whether --enable-fts5 was given.
22166f83 11742if test "${enable_fts5+set}" = set; then :
8fa622d6 11743 enableval=$enable_fts5;
ce1d9f54 11744fi
11745
22166f83 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11747$as_echo_n "checking whether to support FTS5... " >&6; }
29368eab 11748if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
22166f83 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750$as_echo "yes" >&6; }
8c9ed054 11751 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
22166f83 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11753$as_echo_n "checking for library containing log... " >&6; }
11754if ${ac_cv_search_log+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756else
ce1d9f54 11757 ac_func_search_save_LIBS=$LIBS
11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759/* end confdefs.h. */
11760
11761/* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
22166f83 11764#ifdef __cplusplus
11765extern "C"
11766#endif
ce1d9f54 11767char log ();
11768int
22166f83 11769main ()
ce1d9f54 11770{
11771return log ();
11772 ;
11773 return 0;
11774}
11775_ACEOF
22166f83 11776for ac_lib in '' m; do
ce1d9f54 11777 if test -z "$ac_lib"; then
11778 ac_res="none required"
11779 else
11780 ac_res=-l$ac_lib
11781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11782 fi
22166f83 11783 if ac_fn_c_try_link "$LINENO"; then :
ce1d9f54 11784 ac_cv_search_log=$ac_res
11785fi
22166f83 11786rm -f core conftest.err conftest.$ac_objext \
ce1d9f54 11787 conftest$ac_exeext
22166f83 11788 if ${ac_cv_search_log+:} false; then :
ce1d9f54 11789 break
11790fi
11791done
22166f83 11792if ${ac_cv_search_log+:} false; then :
ce1d9f54 11793
22166f83 11794else
ce1d9f54 11795 ac_cv_search_log=no
11796fi
11797rm conftest.$ac_ext
11798LIBS=$ac_func_search_save_LIBS
11799fi
22166f83 11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11801$as_echo "$ac_cv_search_log" >&6; }
ce1d9f54 11802ac_res=$ac_cv_search_log
22166f83 11803if test "$ac_res" != no; then :
ce1d9f54 11804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11805
11806fi
11807
24ec37c3 11808else
22166f83 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
ce1d9f54 11811fi
11812
83bebddb 11813#########
11814# See whether we should enable the LIMIT clause on UPDATE and DELETE
11815# statements.
11816# Check whether --enable-update-limit was given.
22166f83 11817if test "${enable_update_limit+set}" = set; then :
8fa622d6 11818 enableval=$enable_update_limit;
83bebddb 11819fi
11820
22166f83 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11822$as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
b13c3a33 11823if test "${enable_update_limit}" = "yes" ; then
83bebddb 11824 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
22166f83 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11826$as_echo "yes" >&6; }
24ec37c3 11827else
22166f83 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
83bebddb 11830fi
11831
748b8fda 11832#########
11833# See whether we should enable GEOPOLY
11834# Check whether --enable-geopoly was given.
22166f83 11835if test "${enable_geopoly+set}" = set; then :
748b8fda 11836 enableval=$enable_geopoly; enable_geopoly=yes
22166f83 11837else
748b8fda 11838 enable_geopoly=no
11839fi
11840
22166f83 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11842$as_echo_n "checking whether to support GEOPOLY... " >&6; }
29368eab 11843if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
748b8fda 11844 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11845 enable_rtree=yes
22166f83 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11847$as_echo "yes" >&6; }
24ec37c3 11848else
22166f83 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850$as_echo "no" >&6; }
748b8fda 11851fi
11852
ce1d9f54 11853#########
11854# See whether we should enable RTREE
11855# Check whether --enable-rtree was given.
22166f83 11856if test "${enable_rtree+set}" = set; then :
8fa622d6 11857 enableval=$enable_rtree;
ce1d9f54 11858fi
11859
22166f83 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11861$as_echo_n "checking whether to support RTREE... " >&6; }
ce1d9f54 11862if test "${enable_rtree}" = "yes" ; then
8c9ed054 11863 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
22166f83 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865$as_echo "yes" >&6; }
24ec37c3 11866else
22166f83 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
ce1d9f54 11869fi
11870
5e18d402 11871#########
11872# See whether we should enable the SESSION extension
11873# Check whether --enable-session was given.
22166f83 11874if test "${enable_session+set}" = set; then :
8fa622d6 11875 enableval=$enable_session;
5e18d402 11876fi
11877
22166f83 11878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11879$as_echo_n "checking whether to support SESSION... " >&6; }
29368eab 11880if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
8c9ed054 11881 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11882 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
22166f83 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884$as_echo "yes" >&6; }
24ec37c3 11885else
22166f83 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
5e18d402 11888fi
11889
636a995d 11890#########
8c9ed054 11891# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
fbededef 11892for option in $CFLAGS $CPPFLAGS
11893do
11894 case $option in
33a14781 11895 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
b1cd7308 11896 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
fbededef 11897 esac
11898done
11899
11900
33a14781 11901
b1cd7308 11902# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
fbededef 11903ac_temp_CFLAGS=""
11904for option in $CFLAGS
11905do
11906 case $option in
11907 -DSQLITE_OMIT*) ;;
b1cd7308 11908 -DSQLITE_ENABLE*) ;;
33a14781 11909 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
fbededef 11910 esac
11911done
11912CFLAGS=$ac_temp_CFLAGS
11913
11914
b1cd7308 11915# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
fbededef 11916ac_temp_CPPFLAGS=""
11917for option in $CPPFLAGS
11918do
11919 case $option in
11920 -DSQLITE_OMIT*) ;;
b1cd7308 11921 -DSQLITE_ENABLE*) ;;
33a14781 11922 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
fbededef 11923 esac
11924done
11925CPPFLAGS=$ac_temp_CPPFLAGS
11926
33a14781 11927
8b72747d 11928# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
fbededef 11929ac_temp_BUILD_CFLAGS=""
11930for option in $BUILD_CFLAGS
11931do
11932 case $option in
11933 -DSQLITE_OMIT*) ;;
b1cd7308 11934 -DSQLITE_ENABLE*) ;;
33a14781 11935 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
fbededef 11936 esac
11937done
11938BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11939
11940
11941#########
11942# See whether we should use GCOV
8b72747d 11943# Check whether --enable-gcov was given.
22166f83 11944if test "${enable_gcov+set}" = set; then :
8fa622d6 11945 enableval=$enable_gcov;
8b72747d 11946fi
11947
636a995d 11948if test "${use_gcov}" = "yes" ; then
11949 USE_GCOV=1
11950else
11951 USE_GCOV=0
11952fi
11953
11954
4a0a98d3 11955#########
11956# Enable/disabled amalagamation line macros
11957########
11958AMALGAMATION_LINE_MACROS=--linemacros=0
11959if test "${amalgamation_line_macros}" = "yes" ; then
11960 AMALGAMATION_LINE_MACROS=--linemacros=1
11961fi
11962if test "${amalgamation_line_macros}" = "no" ; then
11963 AMALGAMATION_LINE_MACROS=--linemacros=0
11964fi
11965
33a14781 11966
636a995d 11967#########
11968# Output the config header
a4b2f419 11969ac_config_headers="$ac_config_headers sqlite_cfg.h"
636a995d 11970
11971
11972#########
11973# Generate the output files.
11974#
11975
8b72747d 11976ac_config_files="$ac_config_files Makefile sqlite3.pc"
11977
636a995d 11978cat >confcache <<\_ACEOF
11979# This file is a shell script that caches the results of configure
11980# tests run on this system so they can be shared between configure
11981# scripts and configure runs, see configure's option --config-cache.
11982# It is not useful on other systems. If it contains results you don't
11983# want to keep, you may remove or edit it.
11984#
11985# config.status only pays attention to the cache file if you give it
11986# the --recheck option to rerun configure.
11987#
11988# `ac_cv_env_foo' variables (set or unset) will be overridden when
11989# loading this file, other *unset* `ac_cv_foo' will be assigned the
11990# following values.
11991
11992_ACEOF
11993
11994# The following way of writing the cache mishandles newlines in values,
11995# but we know of no workaround that is simple, portable, and efficient.
8b72747d 11996# So, we kill variables containing newlines.
636a995d 11997# Ultrix sh set writes to stderr and can't be redirected directly,
11998# and sets the high bit in the cache file unless we assign to the vars.
8b72747d 11999(
12000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12001 eval ac_val=\$$ac_var
12002 case $ac_val in #(
12003 *${as_nl}*)
12004 case $ac_var in #(
22166f83 12005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8b72747d 12007 esac
12008 case $ac_var in #(
12009 _ | IFS | as_nl) ;; #(
12010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f922ca49 12011 *) { eval $ac_var=; unset $ac_var;} ;;
8b72747d 12012 esac ;;
12013 esac
12014 done
12015
636a995d 12016 (set) 2>&1 |
8b72747d 12017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12018 *${as_nl}ac_space=\ *)
f922ca49 12019 # `set' does not quote correctly, so add quotes: double-quote
12020 # substitution turns \\\\ into \\, and sed turns \\ into \.
636a995d 12021 sed -n \
12022 "s/'/'\\\\''/g;
12023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8b72747d 12024 ;; #(
636a995d 12025 *)
12026 # `set' quotes correctly as required by POSIX, so do not add quotes.
8b72747d 12027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
636a995d 12028 ;;
8b72747d 12029 esac |
12030 sort
12031) |
636a995d 12032 sed '
8b72747d 12033 /^ac_cv_env_/b end
636a995d 12034 t clear
8b72747d 12035 :clear
22166f83 12036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
636a995d 12037 t end
8b72747d 12038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12039 :end' >>confcache
12040if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12041 if test -w "$cache_file"; then
f922ca49 12042 if test "x$cache_file" != "x/dev/null"; then
22166f83 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12044$as_echo "$as_me: updating cache $cache_file" >&6;}
f922ca49 12045 if test ! -f "$cache_file" || test -h "$cache_file"; then
12046 cat confcache >"$cache_file"
12047 else
12048 case $cache_file in #(
12049 */* | ?:*)
12050 mv -f confcache "$cache_file"$$ &&
12051 mv -f "$cache_file"$$ "$cache_file" ;; #(
12052 *)
12053 mv -f confcache "$cache_file" ;;
12054 esac
12055 fi
12056 fi
636a995d 12057 else
22166f83 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12059$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c658b0ff 12060 fi
b87057f2 12061fi
636a995d 12062rm -f confcache
b87057f2 12063
636a995d 12064test "x$prefix" = xNONE && prefix=$ac_default_prefix
12065# Let make expand exec_prefix.
12066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
65623c78 12067
636a995d 12068DEFS=-DHAVE_CONFIG_H
65623c78 12069
636a995d 12070ac_libobjs=
12071ac_ltlibobjs=
f922ca49 12072U=
636a995d 12073for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12074 # 1. Remove the extension, and $U if already installed.
8b72747d 12075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22166f83 12076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8b72747d 12077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12078 # will be set to the directory where LIBOBJS objects are built.
f922ca49 12079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
636a995d 12081done
12082LIBOBJS=$ac_libobjs
65623c78 12083
636a995d 12084LTLIBOBJS=$ac_ltlibobjs
94984910 12085
91636d58 12086
12087
f922ca49 12088: "${CONFIG_STATUS=./config.status}"
8b72747d 12089ac_write_fail=0
636a995d 12090ac_clean_files_save=$ac_clean_files
12091ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22166f83 12092{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12093$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f922ca49 12094as_write_fail=0
12095cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
636a995d 12096#! $SHELL
12097# Generated by $as_me.
12098# Run this file to recreate the current configuration.
12099# Compiler output produced by configure, useful for debugging
12100# configure, is in config.log if it exists.
94984910 12101
636a995d 12102debug=false
12103ac_cs_recheck=false
12104ac_cs_silent=false
710658c7 12105
f922ca49 12106SHELL=\${CONFIG_SHELL-$SHELL}
12107export SHELL
12108_ASEOF
12109cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12110## -------------------- ##
12111## M4sh Initialization. ##
12112## -------------------- ##
8e2e2a16 12113
8b72747d 12114# Be more Bourne compatible
12115DUALCASE=1; export DUALCASE # for MKS sh
22166f83 12116if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
636a995d 12117 emulate sh
12118 NULLCMD=:
8b72747d 12119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
636a995d 12120 # is contrary to our usage. Disable this feature.
12121 alias -g '${1+"$@"}'='"$@"'
8b72747d 12122 setopt NO_GLOB_SUBST
22166f83 12123else
f922ca49 12124 case `(set -o) 2>/dev/null` in #(
12125 *posix*) :
12126 set -o posix ;; #(
12127 *) :
12128 ;;
8b72747d 12129esac
8b72747d 12130fi
12131
12132
8b72747d 12133as_nl='
12134'
12135export as_nl
22166f83 12136# Printing a long string crashes Solaris 7 /usr/bin/printf.
12137as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12139as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12140# Prefer a ksh shell builtin over an external printf program on Solaris,
12141# but without wasting forks for bash or zsh.
12142if test -z "$BASH_VERSION$ZSH_VERSION" \
12143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12144 as_echo='print -r --'
12145 as_echo_n='print -rn --'
12146elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12147 as_echo='printf %s\n'
12148 as_echo_n='printf %s'
12149else
12150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12152 as_echo_n='/usr/ucb/echo -n'
12153 else
12154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12155 as_echo_n_body='eval
12156 arg=$1;
12157 case $arg in #(
12158 *"$as_nl"*)
12159 expr "X$arg" : "X\\(.*\\)$as_nl";
12160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12161 esac;
12162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12163 '
12164 export as_echo_n_body
12165 as_echo_n='sh -c $as_echo_n_body as_echo'
12166 fi
12167 export as_echo_body
12168 as_echo='sh -c $as_echo_body as_echo'
12169fi
8b72747d 12170
12171# The user is always right.
22166f83 12172if test "${PATH_SEPARATOR+set}" != set; then
8b72747d 12173 PATH_SEPARATOR=:
12174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12176 PATH_SEPARATOR=';'
12177 }
75897234 12178fi
636a995d 12179
94984910 12180
22166f83 12181# IFS
12182# We need space, tab and new line, in precisely that order. Quoting is
12183# there to prevent editors from complaining about space-tab.
12184# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12185# splitting by setting IFS to empty value.)
12186IFS=" "" $as_nl"
12187
8b72747d 12188# Find who we are. Look in the path if we contain no directory separator.
f922ca49 12189as_myself=
12190case $0 in #((
8b72747d 12191 *[\\/]* ) as_myself=$0 ;;
12192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195 IFS=$as_save_IFS
22166f83 12196 test -z "$as_dir" && as_dir=.
12197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
f922ca49 12198 done
8b72747d 12199IFS=$as_save_IFS
12200
12201 ;;
12202esac
12203# We did not find ourselves, most probably we were run as `sh COMMAND'
12204# in which case we are not to be found in the path.
12205if test "x$as_myself" = x; then
12206 as_myself=$0
12207fi
12208if test ! -f "$as_myself"; then
22166f83 12209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f922ca49 12210 exit 1
8b72747d 12211fi
12212
22166f83 12213# Unset variables that we do not need and which cause bugs (e.g. in
12214# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12215# suppresses any "Segmentation fault" message there. '((' could
12216# trigger a bug in pdksh 5.2.14.
12217for as_var in BASH_ENV ENV MAIL MAILPATH
12218do eval test x\${$as_var+set} = xset \
12219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12220done
12221PS1='$ '
12222PS2='> '
12223PS4='+ '
12224
12225# NLS nuisances.
12226LC_ALL=C
12227export LC_ALL
12228LANGUAGE=C
12229export LANGUAGE
12230
12231# CDPATH.
12232(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
f922ca49 12233
12234
12235# as_fn_error STATUS ERROR [LINENO LOG_FD]
12236# ----------------------------------------
12237# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12238# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12239# script with STATUS, using 1 if that was 0.
12240as_fn_error ()
12241{
12242 as_status=$1; test $as_status -eq 0 && as_status=1
12243 if test "$4"; then
12244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22166f83 12245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f922ca49 12246 fi
22166f83 12247 $as_echo "$as_me: error: $2" >&2
f922ca49 12248 as_fn_exit $as_status
12249} # as_fn_error
12250
12251
12252# as_fn_set_status STATUS
12253# -----------------------
12254# Set $? to STATUS, without forking.
12255as_fn_set_status ()
12256{
12257 return $1
12258} # as_fn_set_status
12259
12260# as_fn_exit STATUS
12261# -----------------
12262# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12263as_fn_exit ()
12264{
12265 set +e
12266 as_fn_set_status $1
12267 exit $1
12268} # as_fn_exit
12269
12270# as_fn_unset VAR
12271# ---------------
12272# Portably unset VAR.
12273as_fn_unset ()
12274{
12275 { eval $1=; unset $1;}
12276}
12277as_unset=as_fn_unset
12278# as_fn_append VAR VALUE
12279# ----------------------
12280# Append the text in VALUE to the end of the definition contained in VAR. Take
12281# advantage of any shell optimizations that allow amortized linear growth over
12282# repeated appends, instead of the typical quadratic growth present in naive
12283# implementations.
22166f83 12284if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
f922ca49 12285 eval 'as_fn_append ()
12286 {
12287 eval $1+=\$2
12288 }'
22166f83 12289else
f922ca49 12290 as_fn_append ()
12291 {
12292 eval $1=\$$1\$2
12293 }
12294fi # as_fn_append
12295
12296# as_fn_arith ARG...
12297# ------------------
12298# Perform arithmetic evaluation on the ARGs, and store the result in the
12299# global $as_val. Take advantage of shells that can avoid forks. The arguments
12300# must be portable across $(()) and expr.
22166f83 12301if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
f922ca49 12302 eval 'as_fn_arith ()
12303 {
12304 as_val=$(( $* ))
12305 }'
22166f83 12306else
f922ca49 12307 as_fn_arith ()
12308 {
12309 as_val=`expr "$@" || test $? -eq 1`
12310 }
12311fi # as_fn_arith
12312
12313
8b72747d 12314if expr a : '\(a\)' >/dev/null 2>&1 &&
12315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
636a995d 12316 as_expr=expr
75897234 12317else
636a995d 12318 as_expr=false
75897234 12319fi
636a995d 12320
8b72747d 12321if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
636a995d 12322 as_basename=basename
75897234 12323else
636a995d 12324 as_basename=false
75897234 12325fi
75897234 12326
f922ca49 12327if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12328 as_dirname=dirname
12329else
12330 as_dirname=false
12331fi
84e6335c 12332
8b72747d 12333as_me=`$as_basename -- "$0" ||
636a995d 12334$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12335 X"$0" : 'X\(//\)$' \| \
8b72747d 12336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22166f83 12337$as_echo X/"$0" |
8b72747d 12338 sed '/^.*\/\([^/][^/]*\)\/*$/{
12339 s//\1/
12340 q
12341 }
12342 /^X\/\(\/\/\)$/{
12343 s//\1/
12344 q
12345 }
12346 /^X\/\(\/\).*/{
12347 s//\1/
12348 q
12349 }
12350 s/.*/./; q'`
866108f8 12351
f922ca49 12352# Avoid depending upon Character Ranges.
12353as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12354as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12355as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12356as_cr_digits='0123456789'
12357as_cr_alnum=$as_cr_Letters$as_cr_digits
866108f8 12358
8b72747d 12359ECHO_C= ECHO_N= ECHO_T=
f922ca49 12360case `echo -n x` in #(((((
8b72747d 12361-n*)
f922ca49 12362 case `echo 'xy\c'` in
8b72747d 12363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f922ca49 12364 xy) ECHO_C='\c';;
12365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12366 ECHO_T=' ';;
8b72747d 12367 esac;;
12368*)
12369 ECHO_N='-n';;
12370esac
7b5717e1 12371
636a995d 12372rm -f conf$$ conf$$.exe conf$$.file
8b72747d 12373if test -d conf$$.dir; then
12374 rm -f conf$$.dir/conf$$.file
12375else
12376 rm -f conf$$.dir
12377 mkdir conf$$.dir 2>/dev/null
12378fi
12379if (echo >conf$$.file) 2>/dev/null; then
12380 if ln -s conf$$.file conf$$ 2>/dev/null; then
866108f8 12381 as_ln_s='ln -s'
8b72747d 12382 # ... but there are two gotchas:
12383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
f922ca49 12385 # In both cases, we have to default to `cp -pR'.
8b72747d 12386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f922ca49 12387 as_ln_s='cp -pR'
8b72747d 12388 elif ln conf$$.file conf$$ 2>/dev/null; then
12389 as_ln_s=ln
12390 else
f922ca49 12391 as_ln_s='cp -pR'
636a995d 12392 fi
12393else
f922ca49 12394 as_ln_s='cp -pR'
94984910 12395fi
8b72747d 12396rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12397rmdir conf$$.dir 2>/dev/null
94984910 12398
f922ca49 12399
12400# as_fn_mkdir_p
12401# -------------
12402# Create "$as_dir" as a directory, including parents if necessary.
12403as_fn_mkdir_p ()
12404{
12405
12406 case $as_dir in #(
12407 -*) as_dir=./$as_dir;;
12408 esac
12409 test -d "$as_dir" || eval $as_mkdir_p || {
12410 as_dirs=
12411 while :; do
12412 case $as_dir in #(
22166f83 12413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
f922ca49 12414 *) as_qdir=$as_dir;;
12415 esac
12416 as_dirs="'$as_qdir' $as_dirs"
12417 as_dir=`$as_dirname -- "$as_dir" ||
12418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12419 X"$as_dir" : 'X\(//\)[^/]' \| \
12420 X"$as_dir" : 'X\(//\)$' \| \
12421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22166f83 12422$as_echo X"$as_dir" |
f922ca49 12423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12424 s//\1/
12425 q
12426 }
12427 /^X\(\/\/\)[^/].*/{
12428 s//\1/
12429 q
12430 }
12431 /^X\(\/\/\)$/{
12432 s//\1/
12433 q
12434 }
12435 /^X\(\/\).*/{
12436 s//\1/
12437 q
12438 }
12439 s/.*/./; q'`
12440 test -d "$as_dir" && break
12441 done
12442 test -z "$as_dirs" || eval "mkdir $as_dirs"
12443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12444
12445
12446} # as_fn_mkdir_p
636a995d 12447if mkdir -p . 2>/dev/null; then
f922ca49 12448 as_mkdir_p='mkdir -p "$as_dir"'
866108f8 12449else
12450 test -d ./-p && rmdir ./-p
12451 as_mkdir_p=false
75897234 12452fi
8b72747d 12453
f922ca49 12454
12455# as_fn_executable_p FILE
12456# -----------------------
12457# Test if FILE is an executable regular file.
12458as_fn_executable_p ()
12459{
12460 test -f "$1" && test -x "$1"
12461} # as_fn_executable_p
12462as_test_x='test -x'
12463as_executable_p=as_fn_executable_p
75897234 12464
636a995d 12465# Sed expression to map a string onto a valid CPP name.
12466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
84e6335c 12467
636a995d 12468# Sed expression to map a string onto a valid variable name.
12469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
71eb93ea 12470
7b5717e1 12471
636a995d 12472exec 6>&1
f922ca49 12473## ----------------------------------- ##
12474## Main body of $CONFIG_STATUS script. ##
12475## ----------------------------------- ##
12476_ASEOF
12477test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
84e6335c 12478
f922ca49 12479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12480# Save the log message, to keep $0 and so on meaningful, and to
636a995d 12481# report actual input values of CONFIG_FILES etc. instead of their
8b72747d 12482# values after options handling.
12483ac_log="
0a626b2b 12484This file was extended by sqlite $as_me 3.46.0, which was
22166f83 12485generated by GNU Autoconf 2.69. Invocation command line was
75897234 12486
636a995d 12487 CONFIG_FILES = $CONFIG_FILES
12488 CONFIG_HEADERS = $CONFIG_HEADERS
12489 CONFIG_LINKS = $CONFIG_LINKS
12490 CONFIG_COMMANDS = $CONFIG_COMMANDS
12491 $ $0 $@
75897234 12492
8b72747d 12493on `(hostname || uname -n) 2>/dev/null | sed 1q`
12494"
12495
636a995d 12496_ACEOF
71eb93ea 12497
f922ca49 12498case $ac_config_files in *"
12499"*) set x $ac_config_files; shift; ac_config_files=$*;;
12500esac
12501
12502case $ac_config_headers in *"
12503"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12504esac
12505
12506
8b72747d 12507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
636a995d 12508# Files that config.status was made for.
8b72747d 12509config_files="$ac_config_files"
12510config_headers="$ac_config_headers"
12511config_commands="$ac_config_commands"
866108f8 12512
8b72747d 12513_ACEOF
71eb93ea 12514
8b72747d 12515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
636a995d 12516ac_cs_usage="\
f922ca49 12517\`$as_me' instantiates files and other configuration actions
12518from templates according to the current configuration. Unless the files
12519and actions are specified as TAGs, all are instantiated by default.
84e6335c 12520
f922ca49 12521Usage: $0 [OPTION]... [TAG]...
71eb93ea 12522
636a995d 12523 -h, --help print this help, then exit
8b72747d 12524 -V, --version print version number and configuration settings, then exit
f922ca49 12525 --config print configuration, then exit
12526 -q, --quiet, --silent
12527 do not print progress messages
636a995d 12528 -d, --debug don't remove temporary files
12529 --recheck update $as_me by reconfiguring in the same conditions
f922ca49 12530 --file=FILE[:TEMPLATE]
8b72747d 12531 instantiate the configuration file FILE
f922ca49 12532 --header=FILE[:TEMPLATE]
8b72747d 12533 instantiate the configuration header FILE
71eb93ea 12534
636a995d 12535Configuration files:
12536$config_files
75897234 12537
636a995d 12538Configuration headers:
12539$config_headers
84e6335c 12540
636a995d 12541Configuration commands:
12542$config_commands
84e6335c 12543
f922ca49 12544Report bugs to the package provider."
866108f8 12545
8b72747d 12546_ACEOF
12547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22166f83 12548ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
636a995d 12549ac_cs_version="\\
0a626b2b 12550sqlite config.status 3.46.0
22166f83 12551configured by $0, generated by GNU Autoconf 2.69,
f922ca49 12552 with options \\"\$ac_cs_config\\"
84e6335c 12553
22166f83 12554Copyright (C) 2012 Free Software Foundation, Inc.
636a995d 12555This config.status script is free software; the Free Software Foundation
12556gives unlimited permission to copy, distribute and modify it."
8b72747d 12557
12558ac_pwd='$ac_pwd'
12559srcdir='$srcdir'
12560INSTALL='$INSTALL'
8b72747d 12561test -n "\$AWK" || AWK=awk
636a995d 12562_ACEOF
84e6335c 12563
8b72747d 12564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565# The default lists apply if the user does not specify any file.
636a995d 12566ac_need_defaults=:
12567while test $# != 0
12568do
12569 case $1 in
f922ca49 12570 --*=?*)
8b72747d 12571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
636a995d 12573 ac_shift=:
12574 ;;
f922ca49 12575 --*=)
12576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12577 ac_optarg=
12578 ac_shift=:
12579 ;;
8b72747d 12580 *)
636a995d 12581 ac_option=$1
12582 ac_optarg=$2
12583 ac_shift=shift
12584 ;;
12585 esac
75897234 12586
636a995d 12587 case $ac_option in
12588 # Handling of the options.
12589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12590 ac_cs_recheck=: ;;
8b72747d 12591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22166f83 12592 $as_echo "$ac_cs_version"; exit ;;
f922ca49 12593 --config | --confi | --conf | --con | --co | --c )
22166f83 12594 $as_echo "$ac_cs_config"; exit ;;
8b72747d 12595 --debug | --debu | --deb | --de | --d | -d )
636a995d 12596 debug=: ;;
12597 --file | --fil | --fi | --f )
12598 $ac_shift
8b72747d 12599 case $ac_optarg in
22166f83 12600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
f922ca49 12601 '') as_fn_error $? "missing file argument" ;;
8b72747d 12602 esac
f922ca49 12603 as_fn_append CONFIG_FILES " '$ac_optarg'"
636a995d 12604 ac_need_defaults=false;;
12605 --header | --heade | --head | --hea )
12606 $ac_shift
8b72747d 12607 case $ac_optarg in
22166f83 12608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8b72747d 12609 esac
f922ca49 12610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
636a995d 12611 ac_need_defaults=false;;
8b72747d 12612 --he | --h)
12613 # Conflict between --help and --header
f922ca49 12614 as_fn_error $? "ambiguous option: \`$1'
12615Try \`$0 --help' for more information.";;
8b72747d 12616 --help | --hel | -h )
22166f83 12617 $as_echo "$ac_cs_usage"; exit ;;
636a995d 12618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12620 ac_cs_silent=: ;;
84e6335c 12621
636a995d 12622 # This is an error.
f922ca49 12623 -*) as_fn_error $? "unrecognized option: \`$1'
12624Try \`$0 --help' for more information." ;;
94984910 12625
f922ca49 12626 *) as_fn_append ac_config_targets " $1"
8b72747d 12627 ac_need_defaults=false ;;
38372379 12628
636a995d 12629 esac
12630 shift
12631done
38372379 12632
636a995d 12633ac_configure_extra_args=
38372379 12634
636a995d 12635if $ac_cs_silent; then
12636 exec 6>/dev/null
12637 ac_configure_extra_args="$ac_configure_extra_args --silent"
94984910 12638fi
12639
f1878b4a 12640_ACEOF
8b72747d 12641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
636a995d 12642if \$ac_cs_recheck; then
f922ca49 12643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8b72747d 12644 shift
22166f83 12645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8b72747d 12646 CONFIG_SHELL='$SHELL'
12647 export CONFIG_SHELL
12648 exec "\$@"
636a995d 12649fi
f1878b4a 12650
636a995d 12651_ACEOF
8b72747d 12652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12653exec 5>>config.log
12654{
12655 echo
12656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12657## Running $as_me. ##
12658_ASBOX
22166f83 12659 $as_echo "$ac_log"
8b72747d 12660} >&5
636a995d 12661
8b72747d 12662_ACEOF
12663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
636a995d 12664#
8b72747d 12665# INIT-COMMANDS
636a995d 12666#
f1878b4a 12667
7f19c02f 12668
636a995d 12669# The HP-UX ksh and POSIX shell print the target directory to stdout
12670# if CDPATH is set.
12671(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613a0fe4 12672
636a995d 12673sed_quote_subst='$sed_quote_subst'
12674double_quote_subst='$double_quote_subst'
12675delay_variable_subst='$delay_variable_subst'
12676macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12677macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12678enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12679enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12680pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12681enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12682host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12683host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12684host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12685build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12686build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12687build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12688SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12689Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12690GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12691EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12692FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12693LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12694NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12695LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12696max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12697ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12698exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12699lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12700lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12701lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12702reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12703reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
6acb2cf6 12704OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
636a995d 12705deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12706file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12707AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12708AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12709STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12710RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12711old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12712old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12713old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12714CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12715CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12716compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12717GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12718lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12719lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12720lt_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"`'
12721lt_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"`'
12722objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12723SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12724ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12725MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12726lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12727lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12728lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12729lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12730lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12731need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12732DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12733NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12734LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12735OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12736OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12737libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12738shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12739extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12740archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12741enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12742export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12743whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12744compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12745old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12746old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12747archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12748archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12749module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12750module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12751with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12752allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12753no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12754hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12755hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12756hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12757hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12758hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12759hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12760hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12761hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12762inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12763link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12764fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12765always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12766export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12767exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12768include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12769prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12770file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12771variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12772need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12773need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12774version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12775runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12776shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12777shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12778libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12779library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12780soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12781postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12782postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12783finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12784finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12785hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12786sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12787sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12788hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12789enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12790enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12791enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12792old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12793striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12794
12795LTCC='$LTCC'
12796LTCFLAGS='$LTCFLAGS'
12797compiler='$compiler_DEFAULT'
12798
12799# Quote evaled strings.
12800for var in SED \
12801GREP \
12802EGREP \
12803FGREP \
12804LD \
12805NM \
12806LN_S \
12807lt_SP2NL \
12808lt_NL2SP \
12809reload_flag \
6acb2cf6 12810OBJDUMP \
636a995d 12811deplibs_check_method \
12812file_magic_cmd \
12813AR \
12814AR_FLAGS \
12815STRIP \
12816RANLIB \
12817CC \
12818CFLAGS \
12819compiler \
12820lt_cv_sys_global_symbol_pipe \
12821lt_cv_sys_global_symbol_to_cdecl \
12822lt_cv_sys_global_symbol_to_c_name_address \
12823lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12824SHELL \
12825ECHO \
12826lt_prog_compiler_no_builtin_flag \
12827lt_prog_compiler_wl \
12828lt_prog_compiler_pic \
12829lt_prog_compiler_static \
12830lt_cv_prog_compiler_c_o \
12831need_locks \
12832DSYMUTIL \
12833NMEDIT \
12834LIPO \
12835OTOOL \
12836OTOOL64 \
12837shrext_cmds \
12838export_dynamic_flag_spec \
12839whole_archive_flag_spec \
12840compiler_needs_object \
12841with_gnu_ld \
12842allow_undefined_flag \
12843no_undefined_flag \
12844hardcode_libdir_flag_spec \
12845hardcode_libdir_flag_spec_ld \
12846hardcode_libdir_separator \
12847fix_srcfile_path \
12848exclude_expsyms \
12849include_expsyms \
12850file_list_spec \
12851variables_saved_for_relink \
12852libname_spec \
12853library_names_spec \
12854soname_spec \
12855finish_eval \
12856old_striplib \
12857striplib; do
12858 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12859 *[\\\\\\\`\\"\\\$]*)
12860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12861 ;;
12862 *)
12863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12864 ;;
12865 esac
94984910 12866done
f1878b4a 12867
636a995d 12868# Double-quote double-evaled strings.
12869for var in reload_cmds \
12870old_postinstall_cmds \
12871old_postuninstall_cmds \
12872old_archive_cmds \
12873extract_expsyms_cmds \
12874old_archive_from_new_cmds \
12875old_archive_from_expsyms_cmds \
12876archive_cmds \
12877archive_expsym_cmds \
12878module_cmds \
12879module_expsym_cmds \
12880export_symbols_cmds \
12881prelink_cmds \
12882postinstall_cmds \
12883postuninstall_cmds \
12884finish_cmds \
12885sys_lib_search_path_spec \
12886sys_lib_dlsearch_path_spec; do
12887 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12888 *[\\\\\\\`\\"\\\$]*)
12889 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12890 ;;
12891 *)
12892 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12893 ;;
12894 esac
12895done
f1878b4a 12896
636a995d 12897# Fix-up fallback echo if it was mangled by the above quoting rules.
12898case \$lt_ECHO in
12899*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12900 ;;
12901esac
94984910 12902
636a995d 12903ac_aux_dir='$ac_aux_dir'
12904xsi_shell='$xsi_shell'
12905lt_shell_append='$lt_shell_append'
12906
12907# See if we are running on zsh, and set the options which allow our
12908# commands through without removal of \ escapes INIT.
12909if test -n "\${ZSH_VERSION+set}" ; then
12910 setopt NO_GLOB_SUBST
f1878b4a 12911fi
636a995d 12912
12913
12914 PACKAGE='$PACKAGE'
12915 VERSION='$VERSION'
12916 TIMESTAMP='$TIMESTAMP'
12917 RM='$RM'
12918 ofile='$ofile'
12919
12920
12921
12922
12923_ACEOF
12924
8b72747d 12925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
636a995d 12926
8b72747d 12927# Handling of arguments.
636a995d 12928for ac_config_target in $ac_config_targets
12929do
8b72747d 12930 case $ac_config_target in
12931 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
a4b2f419 12932 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
8b72747d 12933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12934 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12935
f922ca49 12936 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
636a995d 12937 esac
12938done
12939
8b72747d 12940
636a995d 12941# If the user did not use the arguments to specify the items to instantiate,
12942# then the envvar interface is used. Set only those that are not.
12943# We use the long form for the default assignment because of an extremely
12944# bizarre bug on SunOS 4.1.3.
12945if $ac_need_defaults; then
22166f83 12946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
f1878b4a 12949fi
f1878b4a 12950
636a995d 12951# Have a temporary directory for convenience. Make it in the build tree
8b72747d 12952# simply because there is no reason against having it here, and in addition,
636a995d 12953# creating and moving files from /tmp can sometimes cause problems.
8b72747d 12954# Hook for its removal unless debugging.
12955# Note that there is a small window in which the directory will not be cleaned:
12956# after its creation but before its name has been assigned to `$tmp'.
636a995d 12957$debug ||
12958{
f922ca49 12959 tmp= ac_tmp=
8b72747d 12960 trap 'exit_status=$?
f922ca49 12961 : "${ac_tmp:=$tmp}"
12962 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8b72747d 12963' 0
f922ca49 12964 trap 'as_fn_exit 1' 1 2 13 15
636a995d 12965}
12966# Create a (secure) tmp directory for tmp files.
f1878b4a 12967
636a995d 12968{
8b72747d 12969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f922ca49 12970 test -d "$tmp"
636a995d 12971} ||
12972{
8b72747d 12973 tmp=./conf$$-$RANDOM
12974 (umask 077 && mkdir "$tmp")
f922ca49 12975} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12976ac_tmp=$tmp
f1878b4a 12977
8b72747d 12978# Set up the scripts for CONFIG_FILES section.
12979# No need to generate them if there are no CONFIG_FILES.
12980# This happens for instance with `./config.status config.h'.
12981if test -n "$CONFIG_FILES"; then
12982
12983
f922ca49 12984ac_cr=`echo X | tr X '\015'`
12985# On cygwin, bash can eat \r inside `` if the user requested igncr.
12986# But we know of no other shell where ac_cr would be empty at this
12987# point, so we can use a bashism as a fallback.
12988if test "x$ac_cr" = x; then
12989 eval ac_cr=\$\'\\r\'
12990fi
8b72747d 12991ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12992if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
0fe0c466 12993 ac_cs_awk_cr='\\r'
8b72747d 12994else
12995 ac_cs_awk_cr=$ac_cr
12996fi
12997
f922ca49 12998echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
84e6335c 12999_ACEOF
84e6335c 13000
94984910 13001
8b72747d 13002{
13003 echo "cat >conf$$subs.awk <<_ACEOF" &&
13004 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13005 echo "_ACEOF"
13006} >conf$$subs.sh ||
f922ca49 13007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13008ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8b72747d 13009ac_delim='%!_!# '
13010for ac_last_try in false false false false false :; do
13011 . ./conf$$subs.sh ||
f922ca49 13012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
84e6335c 13013
f922ca49 13014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13015 if test $ac_delim_n = $ac_delim_num; then
8b72747d 13016 break
13017 elif $ac_last_try; then
f922ca49 13018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8b72747d 13019 else
13020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
636a995d 13021 fi
8b72747d 13022done
13023rm -f conf$$subs.sh
13024
13025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f922ca49 13026cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8b72747d 13027_ACEOF
13028sed -n '
13029h
13030s/^/S["/; s/!.*/"]=/
13031p
13032g
13033s/^[^!]*!//
13034:repl
13035t repl
13036s/'"$ac_delim"'$//
13037t delim
13038:nl
13039h
f922ca49 13040s/\(.\{148\}\)..*/\1/
8b72747d 13041t more1
13042s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13043p
13044n
13045b repl
13046:more1
13047s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13048p
13049g
13050s/.\{148\}//
13051t nl
13052:delim
13053h
f922ca49 13054s/\(.\{148\}\)..*/\1/
8b72747d 13055t more2
13056s/["\\]/\\&/g; s/^/"/; s/$/"/
13057p
13058b
13059:more2
13060s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13061p
13062g
13063s/.\{148\}//
13064t delim
13065' <conf$$subs.awk | sed '
13066/^[^""]/{
13067 N
13068 s/\n//
13069}
13070' >>$CONFIG_STATUS || ac_write_fail=1
13071rm -f conf$$subs.awk
13072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073_ACAWK
f922ca49 13074cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8b72747d 13075 for (key in S) S_is_set[key] = 1
13076 FS = "\a"
13077
13078}
13079{
13080 line = $ 0
13081 nfields = split(line, field, "@")
13082 substed = 0
13083 len = length(field[1])
13084 for (i = 2; i < nfields; i++) {
13085 key = field[i]
13086 keylen = length(key)
13087 if (S_is_set[key]) {
13088 value = S[key]
13089 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13090 len += length(value) + length(field[++i])
13091 substed = 1
13092 } else
13093 len += 1 + keylen
13094 }
13095
13096 print line
13097}
13098
13099_ACAWK
13100_ACEOF
13101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13102if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13103 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13104else
13105 cat
f922ca49 13106fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13107 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8b72747d 13108_ACEOF
13109
f922ca49 13110# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13111# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8b72747d 13112# trailing colons and then remove the whole line if VPATH becomes empty
13113# (actually we leave an empty line to preserve line numbers).
13114if test "x$srcdir" = x.; then
f922ca49 13115 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13116h
13117s///
13118s/^/:/
13119s/[ ]*$/:/
13120s/:\$(srcdir):/:/g
13121s/:\${srcdir}:/:/g
13122s/:@srcdir@:/:/g
13123s/^:*//
8b72747d 13124s/:*$//
f922ca49 13125x
13126s/\(=[ ]*\).*/\1/
13127G
13128s/\n//
8b72747d 13129s/^[^=]*=[ ]*$//
13130}'
13131fi
13132
13133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
636a995d 13134fi # test -n "$CONFIG_FILES"
84e6335c 13135
8b72747d 13136# Set up the scripts for CONFIG_HEADERS section.
13137# No need to generate them if there are no CONFIG_HEADERS.
13138# This happens for instance with `./config.status Makefile'.
13139if test -n "$CONFIG_HEADERS"; then
f922ca49 13140cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8b72747d 13141BEGIN {
636a995d 13142_ACEOF
8b72747d 13143
13144# Transform confdefs.h into an awk script `defines.awk', embedded as
13145# here-document in config.status, that substitutes the proper values into
13146# config.h.in to produce config.h.
13147
13148# Create a delimiter string that does not exist in confdefs.h, to ease
13149# handling of long lines.
13150ac_delim='%!_!# '
13151for ac_last_try in false false :; do
f922ca49 13152 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13153 if test -z "$ac_tt"; then
8b72747d 13154 break
13155 elif $ac_last_try; then
f922ca49 13156 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8b72747d 13157 else
13158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13159 fi
13160done
13161
13162# For the awk script, D is an array of macro values keyed by name,
13163# likewise P contains macro parameters if any. Preserve backslash
13164# newline sequences.
13165
13166ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13167sed -n '
13168s/.\{148\}/&'"$ac_delim"'/g
13169t rset
13170:rset
13171s/^[ ]*#[ ]*define[ ][ ]*/ /
13172t def
13173d
13174:def
13175s/\\$//
13176t bsnl
13177s/["\\]/\\&/g
13178s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13179D["\1"]=" \3"/p
13180s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13181d
13182:bsnl
13183s/["\\]/\\&/g
13184s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13185D["\1"]=" \3\\\\\\n"\\/p
13186t cont
13187s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13188t cont
13189d
13190:cont
13191n
13192s/.\{148\}/&'"$ac_delim"'/g
13193t clear
13194:clear
13195s/\\$//
13196t bsnlc
13197s/["\\]/\\&/g; s/^/"/; s/$/"/p
13198d
13199:bsnlc
13200s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13201b cont
13202' <confdefs.h | sed '
13203s/'"$ac_delim"'/"\\\
13204"/g' >>$CONFIG_STATUS || ac_write_fail=1
13205
13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 for (key in D) D_is_set[key] = 1
13208 FS = "\a"
13209}
13210/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13211 line = \$ 0
13212 split(line, arg, " ")
13213 if (arg[1] == "#") {
13214 defundef = arg[2]
13215 mac1 = arg[3]
13216 } else {
13217 defundef = substr(arg[1], 2)
13218 mac1 = arg[2]
13219 }
13220 split(mac1, mac2, "(") #)
13221 macro = mac2[1]
f922ca49 13222 prefix = substr(line, 1, index(line, defundef) - 1)
8b72747d 13223 if (D_is_set[macro]) {
13224 # Preserve the white space surrounding the "#".
8b72747d 13225 print prefix "define", macro P[macro] D[macro]
13226 next
13227 } else {
13228 # Replace #undef with comments. This is necessary, for example,
13229 # in the case of _POSIX_SOURCE, which is predefined and required
13230 # on some systems where configure will not decide to define it.
13231 if (defundef == "undef") {
f922ca49 13232 print "/*", prefix defundef, macro, "*/"
8b72747d 13233 next
13234 }
13235 }
13236}
13237{ print }
13238_ACAWK
13239_ACEOF
13240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f922ca49 13241 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8b72747d 13242fi # test -n "$CONFIG_HEADERS"
13243
13244
13245eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13246shift
13247for ac_tag
13248do
13249 case $ac_tag in
13250 :[FHLC]) ac_mode=$ac_tag; continue;;
13251 esac
13252 case $ac_mode$ac_tag in
13253 :[FHL]*:*);;
f922ca49 13254 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8b72747d 13255 :[FH]-) ac_tag=-:-;;
13256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13257 esac
13258 ac_save_IFS=$IFS
13259 IFS=:
13260 set x $ac_tag
13261 IFS=$ac_save_IFS
13262 shift
13263 ac_file=$1
13264 shift
13265
13266 case $ac_mode in
13267 :L) ac_source=$1;;
13268 :[FH])
13269 ac_file_inputs=
13270 for ac_f
13271 do
13272 case $ac_f in
f922ca49 13273 -) ac_f="$ac_tmp/stdin";;
8b72747d 13274 *) # Look for the file first in the build tree, then in the source tree
13275 # (if the path is not absolute). The absolute path cannot be DOS-style,
13276 # because $ac_f cannot contain `:'.
13277 test -f "$ac_f" ||
13278 case $ac_f in
13279 [\\/$]*) false;;
13280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13281 esac ||
f922ca49 13282 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8b72747d 13283 esac
22166f83 13284 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f922ca49 13285 as_fn_append ac_file_inputs " '$ac_f'"
8b72747d 13286 done
13287
13288 # Let's still pretend it is `configure' which instantiates (i.e., don't
13289 # use $as_me), people would be surprised to read:
13290 # /* config.h. Generated by config.status. */
13291 configure_input='Generated from '`
22166f83 13292 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8b72747d 13293 `' by configure.'
13294 if test x"$ac_file" != x-; then
13295 configure_input="$ac_file. $configure_input"
22166f83 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13297$as_echo "$as_me: creating $ac_file" >&6;}
8b72747d 13298 fi
13299 # Neutralize special characters interpreted by sed in replacement strings.
13300 case $configure_input in #(
13301 *\&* | *\|* | *\\* )
22166f83 13302 ac_sed_conf_input=`$as_echo "$configure_input" |
8b72747d 13303 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13304 *) ac_sed_conf_input=$configure_input;;
13305 esac
13306
13307 case $ac_tag in
f922ca49 13308 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8b72747d 13310 esac
13311 ;;
636a995d 13312 esac
7f19c02f 13313
8b72747d 13314 ac_dir=`$as_dirname -- "$ac_file" ||
636a995d 13315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13316 X"$ac_file" : 'X\(//\)[^/]' \| \
13317 X"$ac_file" : 'X\(//\)$' \| \
8b72747d 13318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22166f83 13319$as_echo X"$ac_file" |
8b72747d 13320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13321 s//\1/
13322 q
13323 }
13324 /^X\(\/\/\)[^/].*/{
13325 s//\1/
13326 q
13327 }
13328 /^X\(\/\/\)$/{
13329 s//\1/
13330 q
13331 }
13332 /^X\(\/\).*/{
13333 s//\1/
13334 q
13335 }
13336 s/.*/./; q'`
f922ca49 13337 as_dir="$ac_dir"; as_fn_mkdir_p
636a995d 13338 ac_builddir=.
7f19c02f 13339
8b72747d 13340case "$ac_dir" in
13341.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13342*)
22166f83 13343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8b72747d 13344 # A ".." for each directory in $ac_dir_suffix.
22166f83 13345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8b72747d 13346 case $ac_top_builddir_sub in
13347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13349 esac ;;
13350esac
13351ac_abs_top_builddir=$ac_pwd
13352ac_abs_builddir=$ac_pwd$ac_dir_suffix
13353# for backward compatibility:
13354ac_top_builddir=$ac_top_build_prefix
7f19c02f 13355
636a995d 13356case $srcdir in
8b72747d 13357 .) # We are building in place.
636a995d 13358 ac_srcdir=.
8b72747d 13359 ac_top_srcdir=$ac_top_builddir_sub
13360 ac_abs_top_srcdir=$ac_pwd ;;
13361 [\\/]* | ?:[\\/]* ) # Absolute name.
636a995d 13362 ac_srcdir=$srcdir$ac_dir_suffix;
8b72747d 13363 ac_top_srcdir=$srcdir
13364 ac_abs_top_srcdir=$srcdir ;;
13365 *) # Relative name.
13366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13367 ac_top_srcdir=$ac_top_build_prefix$srcdir
13368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
636a995d 13369esac
8b72747d 13370ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7f19c02f 13371
13372
8b72747d 13373 case $ac_mode in
13374 :F)
13375 #
13376 # CONFIG_FILE
13377 #
7f19c02f 13378
636a995d 13379 case $INSTALL in
13380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8b72747d 13381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
636a995d 13382 esac
8b72747d 13383_ACEOF
636a995d 13384
8b72747d 13385cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386# If the template does not know about datarootdir, expand it.
13387# FIXME: This hack should be removed a few years after 2.60.
13388ac_datarootdir_hack=; ac_datarootdir_seen=
8b72747d 13389ac_sed_dataroot='
13390/datarootdir/ {
13391 p
13392 q
13393}
13394/@datadir@/p
13395/@docdir@/p
13396/@infodir@/p
13397/@localedir@/p
f922ca49 13398/@mandir@/p'
8b72747d 13399case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13400*datarootdir*) ac_datarootdir_seen=yes;;
13401*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22166f83 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13403$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8b72747d 13404_ACEOF
13405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13406 ac_datarootdir_hack='
13407 s&@datadir@&$datadir&g
13408 s&@docdir@&$docdir&g
13409 s&@infodir@&$infodir&g
13410 s&@localedir@&$localedir&g
13411 s&@mandir@&$mandir&g
f922ca49 13412 s&\\\${datarootdir}&$datarootdir&g' ;;
8b72747d 13413esac
636a995d 13414_ACEOF
8b72747d 13415
13416# Neutralize VPATH when `$srcdir' = `.'.
13417# Shell code in configure.ac might set extrasub.
13418# FIXME: do we really want to maintain this feature?
13419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13420ac_sed_extra="$ac_vpsub
636a995d 13421$extrasub
13422_ACEOF
8b72747d 13423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
636a995d 13424:t
13425/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8b72747d 13426s|@configure_input@|$ac_sed_conf_input|;t t
13427s&@top_builddir@&$ac_top_builddir_sub&;t t
13428s&@top_build_prefix@&$ac_top_build_prefix&;t t
13429s&@srcdir@&$ac_srcdir&;t t
13430s&@abs_srcdir@&$ac_abs_srcdir&;t t
13431s&@top_srcdir@&$ac_top_srcdir&;t t
13432s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13433s&@builddir@&$ac_builddir&;t t
13434s&@abs_builddir@&$ac_abs_builddir&;t t
13435s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13436s&@INSTALL@&$ac_INSTALL&;t t
13437$ac_datarootdir_hack
13438"
f922ca49 13439eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13440 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
94984910 13441
8b72747d 13442test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
f922ca49 13443 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13445 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22166f83 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f922ca49 13447which seems to be undefined. Please make sure it is defined" >&5
22166f83 13448$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f922ca49 13449which seems to be undefined. Please make sure it is defined" >&2;}
9d9f76c0 13450
f922ca49 13451 rm -f "$ac_tmp/stdin"
636a995d 13452 case $ac_file in
f922ca49 13453 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13454 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8b72747d 13455 esac \
f922ca49 13456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8b72747d 13457 ;;
13458 :H)
13459 #
13460 # CONFIG_HEADER
13461 #
866108f8 13462 if test x"$ac_file" != x-; then
8b72747d 13463 {
22166f83 13464 $as_echo "/* $configure_input */" \
f922ca49 13465 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13466 } >"$ac_tmp/config.h" \
13467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13468 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22166f83 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13470$as_echo "$as_me: $ac_file is unchanged" >&6;}
636a995d 13471 else
8b72747d 13472 rm -f "$ac_file"
f922ca49 13473 mv "$ac_tmp/config.h" "$ac_file" \
13474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
636a995d 13475 fi
13476 else
22166f83 13477 $as_echo "/* $configure_input */" \
f922ca49 13478 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13479 || as_fn_error $? "could not create -" "$LINENO" 5
636a995d 13480 fi
8b72747d 13481 ;;
866108f8 13482
22166f83 13483 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13484$as_echo "$as_me: executing $ac_file commands" >&6;}
8b72747d 13485 ;;
13486 esac
94984910 13487
94984910 13488
8b72747d 13489 case $ac_file$ac_mode in
13490 "libtool":C)
94984910 13491
636a995d 13492 # See if we are running on zsh, and set the options which allow our
13493 # commands through without removal of \ escapes.
13494 if test -n "${ZSH_VERSION+set}" ; then
13495 setopt NO_GLOB_SUBST
13496 fi
a4edab0e 13497
636a995d 13498 cfgfile="${ofile}T"
13499 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13500 $RM "$cfgfile"
a4edab0e 13501
636a995d 13502 cat <<_LT_EOF >> "$cfgfile"
13503#! $SHELL
a4edab0e 13504
636a995d 13505# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13506# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13507# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13508# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13509#
13510# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13511# 2006, 2007, 2008 Free Software Foundation, Inc.
13512# Written by Gordon Matzigkeit, 1996
13513#
13514# This file is part of GNU Libtool.
13515#
13516# GNU Libtool is free software; you can redistribute it and/or
13517# modify it under the terms of the GNU General Public License as
13518# published by the Free Software Foundation; either version 2 of
13519# the License, or (at your option) any later version.
13520#
13521# As a special exception to the GNU General Public License,
13522# if you distribute this file as part of a program or library that
13523# is built using GNU Libtool, you may include this file under the
13524# same distribution terms that you use for the rest of that program.
13525#
13526# GNU Libtool is distributed in the hope that it will be useful,
13527# but WITHOUT ANY WARRANTY; without even the implied warranty of
13528# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13529# GNU General Public License for more details.
13530#
13531# You should have received a copy of the GNU General Public License
13532# along with GNU Libtool; see the file COPYING. If not, a copy
13533# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13534# obtained by writing to the Free Software Foundation, Inc.,
13535# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
aac7b93e 13536
aac7b93e 13537
636a995d 13538# The names of the tagged configurations supported by this script.
13539available_tags=""
aac7b93e 13540
636a995d 13541# ### BEGIN LIBTOOL CONFIG
af6edf55 13542
636a995d 13543# Which release of libtool.m4 was used?
13544macro_version=$macro_version
13545macro_revision=$macro_revision
b87057f2 13546
636a995d 13547# Whether or not to build shared libraries.
13548build_libtool_libs=$enable_shared
b87057f2 13549
636a995d 13550# Whether or not to build static libraries.
13551build_old_libs=$enable_static
df59c7c7 13552
636a995d 13553# What type of objects to build.
13554pic_mode=$pic_mode
94984910 13555
636a995d 13556# Whether or not to optimize for fast installation.
13557fast_install=$enable_fast_install
71eb93ea 13558
636a995d 13559# The host system.
13560host_alias=$host_alias
13561host=$host
13562host_os=$host_os
71eb93ea 13563
636a995d 13564# The build system.
13565build_alias=$build_alias
13566build=$build
13567build_os=$build_os
94984910 13568
636a995d 13569# A sed program that does not truncate output.
13570SED=$lt_SED
75897234 13571
636a995d 13572# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13573Xsed="\$SED -e 1s/^X//"
75897234 13574
636a995d 13575# A grep program that handles long lines.
13576GREP=$lt_GREP
84e6335c 13577
636a995d 13578# An ERE matcher.
13579EGREP=$lt_EGREP
84e6335c 13580
636a995d 13581# A literal string matcher.
13582FGREP=$lt_FGREP
84e6335c 13583
636a995d 13584# A BSD- or MS-compatible name lister.
13585NM=$lt_NM
84e6335c 13586
636a995d 13587# Whether we need soft or hard links.
13588LN_S=$lt_LN_S
84e6335c 13589
636a995d 13590# What is the maximum length of a command?
13591max_cmd_len=$max_cmd_len
75897234 13592
636a995d 13593# Object file suffix (normally "o").
13594objext=$ac_objext
71eb93ea 13595
636a995d 13596# Executable file suffix (normally "").
13597exeext=$exeext
84e6335c 13598
636a995d 13599# whether the shell understands "unset".
13600lt_unset=$lt_unset
94984910 13601
636a995d 13602# turn spaces into newlines.
13603SP2NL=$lt_lt_SP2NL
13604
13605# turn newlines into spaces.
13606NL2SP=$lt_lt_NL2SP
84e6335c 13607
636a995d 13608# How to create reloadable object files.
13609reload_flag=$lt_reload_flag
13610reload_cmds=$lt_reload_cmds
84e6335c 13611
6acb2cf6 13612# An object symbol dumper.
13613OBJDUMP=$lt_OBJDUMP
13614
636a995d 13615# Method to check whether dependent libraries are shared objects.
13616deplibs_check_method=$lt_deplibs_check_method
84e6335c 13617
636a995d 13618# Command to use when deplibs_check_method == "file_magic".
13619file_magic_cmd=$lt_file_magic_cmd
84e6335c 13620
636a995d 13621# The archiver.
13622AR=$lt_AR
13623AR_FLAGS=$lt_AR_FLAGS
613a0fe4 13624
636a995d 13625# A symbol stripping program.
13626STRIP=$lt_STRIP
84e6335c 13627
636a995d 13628# Commands used to install an old-style archive.
13629RANLIB=$lt_RANLIB
13630old_postinstall_cmds=$lt_old_postinstall_cmds
13631old_postuninstall_cmds=$lt_old_postuninstall_cmds
94984910 13632
636a995d 13633# A C compiler.
13634LTCC=$lt_CC
84e6335c 13635
636a995d 13636# LTCC compiler flags.
13637LTCFLAGS=$lt_CFLAGS
94984910 13638
636a995d 13639# Take the output of nm and produce a listing of raw symbols and C names.
13640global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
613a0fe4 13641
636a995d 13642# Transform the output of nm in a proper C declaration.
13643global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
94984910 13644
636a995d 13645# Transform the output of nm in a C name address pair.
13646global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
94984910 13647
636a995d 13648# Transform the output of nm in a C name address pair when lib prefix is needed.
13649global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
94984910 13650
636a995d 13651# The name of the directory that contains temporary libtool files.
13652objdir=$objdir
94984910 13653
636a995d 13654# Shell to use when invoking shell scripts.
13655SHELL=$lt_SHELL
94984910 13656
636a995d 13657# An echo program that does not interpret backslashes.
13658ECHO=$lt_ECHO
94984910 13659
636a995d 13660# Used to examine libraries when file_magic_cmd begins with "file".
13661MAGIC_CMD=$MAGIC_CMD
94984910 13662
636a995d 13663# Must we lock files when doing compilation?
13664need_locks=$lt_need_locks
94984910 13665
636a995d 13666# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13667DSYMUTIL=$lt_DSYMUTIL
94984910 13668
636a995d 13669# Tool to change global to local symbols on Mac OS X.
13670NMEDIT=$lt_NMEDIT
94984910 13671
636a995d 13672# Tool to manipulate fat objects and archives on Mac OS X.
13673LIPO=$lt_LIPO
84e6335c 13674
636a995d 13675# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13676OTOOL=$lt_OTOOL
84e6335c 13677
636a995d 13678# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13679OTOOL64=$lt_OTOOL64
84e6335c 13680
636a995d 13681# Old archive suffix (normally "a").
13682libext=$libext
84e6335c 13683
636a995d 13684# Shared library suffix (normally ".so").
13685shrext_cmds=$lt_shrext_cmds
94984910 13686
636a995d 13687# The commands to extract the exported symbol list from a shared archive.
13688extract_expsyms_cmds=$lt_extract_expsyms_cmds
71eb93ea 13689
636a995d 13690# Variables whose values should be saved in libtool wrapper scripts and
13691# restored at link time.
13692variables_saved_for_relink=$lt_variables_saved_for_relink
71eb93ea 13693
636a995d 13694# Do we need the "lib" prefix for modules?
13695need_lib_prefix=$need_lib_prefix
71eb93ea 13696
636a995d 13697# Do we need a version for libraries?
13698need_version=$need_version
71eb93ea 13699
636a995d 13700# Library versioning type.
13701version_type=$version_type
84e6335c 13702
636a995d 13703# Shared library runtime path variable.
13704runpath_var=$runpath_var
84e6335c 13705
636a995d 13706# Shared library path variable.
13707shlibpath_var=$shlibpath_var
84e6335c 13708
636a995d 13709# Is shlibpath searched before the hard-coded library search path?
13710shlibpath_overrides_runpath=$shlibpath_overrides_runpath
71eb93ea 13711
636a995d 13712# Format of library name prefix.
13713libname_spec=$lt_libname_spec
71eb93ea 13714
636a995d 13715# List of archive names. First name is the real one, the rest are links.
13716# The last name is the one that the linker finds with -lNAME
13717library_names_spec=$lt_library_names_spec
84e6335c 13718
636a995d 13719# The coded name of the library, if different from the real name.
13720soname_spec=$lt_soname_spec
84e6335c 13721
636a995d 13722# Command to use after installation of a shared archive.
13723postinstall_cmds=$lt_postinstall_cmds
94984910 13724
636a995d 13725# Command to use after uninstallation of a shared archive.
13726postuninstall_cmds=$lt_postuninstall_cmds
71eb93ea 13727
636a995d 13728# Commands used to finish a libtool library installation in a directory.
13729finish_cmds=$lt_finish_cmds
71eb93ea 13730
636a995d 13731# As "finish_cmds", except a single script fragment to be evaled but
13732# not shown.
13733finish_eval=$lt_finish_eval
71eb93ea 13734
636a995d 13735# Whether we should hardcode library paths into libraries.
13736hardcode_into_libs=$hardcode_into_libs
71eb93ea 13737
636a995d 13738# Compile-time system search path for libraries.
13739sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
71eb93ea 13740
636a995d 13741# Run-time system search path for libraries.
13742sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
71eb93ea 13743
636a995d 13744# Whether dlopen is supported.
13745dlopen_support=$enable_dlopen
71eb93ea 13746
636a995d 13747# Whether dlopen of programs is supported.
13748dlopen_self=$enable_dlopen_self
b87057f2 13749
636a995d 13750# Whether dlopen of statically linked programs is supported.
13751dlopen_self_static=$enable_dlopen_self_static
613a0fe4 13752
636a995d 13753# Commands to strip libraries.
13754old_striplib=$lt_old_striplib
13755striplib=$lt_striplib
71eb93ea 13756
94984910 13757
636a995d 13758# The linker used to build libraries.
13759LD=$lt_LD
71eb93ea 13760
636a995d 13761# Commands used to build an old-style archive.
13762old_archive_cmds=$lt_old_archive_cmds
71eb93ea 13763
636a995d 13764# A language specific compiler.
13765CC=$lt_compiler
71eb93ea 13766
636a995d 13767# Is the compiler the GNU compiler?
13768with_gcc=$GCC
71eb93ea 13769
636a995d 13770# Compiler flag to turn off builtin functions.
13771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
71eb93ea 13772
636a995d 13773# How to pass a linker flag through the compiler.
13774wl=$lt_lt_prog_compiler_wl
75897234 13775
636a995d 13776# Additional compiler flags for building library objects.
13777pic_flag=$lt_lt_prog_compiler_pic
71eb93ea 13778
636a995d 13779# Compiler flag to prevent dynamic linking.
13780link_static_flag=$lt_lt_prog_compiler_static
75897234 13781
636a995d 13782# Does compiler simultaneously support -c and -o options?
13783compiler_c_o=$lt_lt_cv_prog_compiler_c_o
71eb93ea 13784
636a995d 13785# Whether or not to add -lc for building shared libraries.
13786build_libtool_need_lc=$archive_cmds_need_lc
75897234 13787
636a995d 13788# Whether or not to disallow shared libs when runtime libs are static.
13789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
613a0fe4 13790
636a995d 13791# Compiler flag to allow reflexive dlopens.
13792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
94984910 13793
636a995d 13794# Compiler flag to generate shared objects directly from archives.
13795whole_archive_flag_spec=$lt_whole_archive_flag_spec
94984910 13796
636a995d 13797# Whether the compiler copes with passing no objects directly.
13798compiler_needs_object=$lt_compiler_needs_object
71eb93ea 13799
636a995d 13800# Create an old-style archive from a shared archive.
13801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
94984910 13802
636a995d 13803# Create a temporary old-style archive to link instead of a shared archive.
13804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
71eb93ea 13805
636a995d 13806# Commands used to build a shared archive.
13807archive_cmds=$lt_archive_cmds
13808archive_expsym_cmds=$lt_archive_expsym_cmds
84e6335c 13809
636a995d 13810# Commands used to build a loadable module if different from building
13811# a shared archive.
13812module_cmds=$lt_module_cmds
13813module_expsym_cmds=$lt_module_expsym_cmds
75897234 13814
636a995d 13815# Whether we are building with GNU ld or not.
13816with_gnu_ld=$lt_with_gnu_ld
71eb93ea 13817
636a995d 13818# Flag that allows shared libraries with undefined symbols to be built.
13819allow_undefined_flag=$lt_allow_undefined_flag
7f19c02f 13820
636a995d 13821# Flag that enforces no undefined symbols.
13822no_undefined_flag=$lt_no_undefined_flag
7f19c02f 13823
636a995d 13824# Flag to hardcode \$libdir into a binary during linking.
13825# This must work even if \$libdir does not exist
13826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
94984910 13827
636a995d 13828# If ld is used when linking, flag to hardcode \$libdir into a binary
13829# during linking. This must work even if \$libdir does not exist.
13830hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
94984910 13831
636a995d 13832# Whether we need a single "-rpath" flag with a separated argument.
13833hardcode_libdir_separator=$lt_hardcode_libdir_separator
94984910 13834
636a995d 13835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13836# DIR into the resulting binary.
13837hardcode_direct=$hardcode_direct
94984910 13838
636a995d 13839# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13840# DIR into the resulting binary and the resulting library dependency is
13841# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13842# library is relocated.
13843hardcode_direct_absolute=$hardcode_direct_absolute
94984910 13844
636a995d 13845# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13846# into the resulting binary.
13847hardcode_minus_L=$hardcode_minus_L
94984910 13848
636a995d 13849# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13850# into the resulting binary.
13851hardcode_shlibpath_var=$hardcode_shlibpath_var
94984910 13852
636a995d 13853# Set to "yes" if building a shared library automatically hardcodes DIR
13854# into the library and all subsequent libraries and executables linked
13855# against it.
13856hardcode_automatic=$hardcode_automatic
94984910 13857
636a995d 13858# Set to yes if linker adds runtime paths of dependent libraries
13859# to runtime path list.
13860inherit_rpath=$inherit_rpath
94984910 13861
636a995d 13862# Whether libtool must link a program against all its dependency libraries.
13863link_all_deplibs=$link_all_deplibs
7f19c02f 13864
636a995d 13865# Fix the shell variable \$srcfile for the compiler.
13866fix_srcfile_path=$lt_fix_srcfile_path
94984910 13867
636a995d 13868# Set to "yes" if exported symbols are required.
13869always_export_symbols=$always_export_symbols
94984910 13870
636a995d 13871# The commands to list exported symbols.
13872export_symbols_cmds=$lt_export_symbols_cmds
94984910 13873
636a995d 13874# Symbols that should not be listed in the preloaded symbols.
13875exclude_expsyms=$lt_exclude_expsyms
94984910 13876
636a995d 13877# Symbols that must always be exported.
13878include_expsyms=$lt_include_expsyms
94984910 13879
636a995d 13880# Commands necessary for linking programs (against libraries) with templates.
13881prelink_cmds=$lt_prelink_cmds
94984910 13882
636a995d 13883# Specify filename containing input files.
13884file_list_spec=$lt_file_list_spec
94984910 13885
636a995d 13886# How to hardcode a shared library path into an executable.
13887hardcode_action=$hardcode_action
94984910 13888
636a995d 13889# ### END LIBTOOL CONFIG
13890
13891_LT_EOF
13892
13893 case $host_os in
13894 aix3*)
13895 cat <<\_LT_EOF >> "$cfgfile"
13896# AIX sometimes has problems with the GCC collect2 program. For some
13897# reason, if we set the COLLECT_NAMES environment variable, the problems
13898# vanish in a puff of smoke.
13899if test "X${COLLECT_NAMES+set}" != Xset; then
13900 COLLECT_NAMES=
13901 export COLLECT_NAMES
13902fi
13903_LT_EOF
94984910 13904 ;;
75897234 13905 esac
13906
84e6335c 13907
636a995d 13908ltmain="$ac_aux_dir/ltmain.sh"
84e6335c 13909
964dbb1e 13910
636a995d 13911 # We use sed instead of cat because bash on DJGPP gets confused if
13912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13913 # text mode, it properly converts lines to CR/LF. This bash problem
13914 # is reportedly fixed, but why not run on old versions too?
13915 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13916 || (rm -f "$cfgfile"; exit 1)
84e6335c 13917
636a995d 13918 case $xsi_shell in
13919 yes)
13920 cat << \_LT_EOF >> "$cfgfile"
75897234 13921
636a995d 13922# func_dirname file append nondir_replacement
13923# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13924# otherwise set result to NONDIR_REPLACEMENT.
13925func_dirname ()
13926{
13927 case ${1} in
13928 */*) func_dirname_result="${1%/*}${2}" ;;
13929 * ) func_dirname_result="${3}" ;;
75897234 13930 esac
636a995d 13931}
75897234 13932
636a995d 13933# func_basename file
13934func_basename ()
13935{
13936 func_basename_result="${1##*/}"
13937}
94984910 13938
636a995d 13939# func_dirname_and_basename file append nondir_replacement
13940# perform func_basename and func_dirname in a single function
13941# call:
13942# dirname: Compute the dirname of FILE. If nonempty,
13943# add APPEND to the result, otherwise set result
13944# to NONDIR_REPLACEMENT.
13945# value returned in "$func_dirname_result"
13946# basename: Compute filename of FILE.
13947# value retuned in "$func_basename_result"
13948# Implementation must be kept synchronized with func_dirname
13949# and func_basename. For efficiency, we do not delegate to
13950# those functions but instead duplicate the functionality here.
13951func_dirname_and_basename ()
13952{
13953 case ${1} in
13954 */*) func_dirname_result="${1%/*}${2}" ;;
13955 * ) func_dirname_result="${3}" ;;
13956 esac
13957 func_basename_result="${1##*/}"
94984910 13958}
94984910 13959
636a995d 13960# func_stripname prefix suffix name
13961# strip PREFIX and SUFFIX off of NAME.
13962# PREFIX and SUFFIX must not contain globbing or regex special
13963# characters, hashes, percent signs, but SUFFIX may contain a leading
13964# dot (in which case that matches only a dot).
13965func_stripname ()
13966{
13967 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13968 # positional parameters, so assign one to ordinary parameter first.
13969 func_stripname_result=${3}
13970 func_stripname_result=${func_stripname_result#"${1}"}
13971 func_stripname_result=${func_stripname_result%"${2}"}
13972}
94984910 13973
636a995d 13974# func_opt_split
13975func_opt_split ()
13976{
13977 func_opt_split_opt=${1%%=*}
13978 func_opt_split_arg=${1#*=}
13979}
94984910 13980
636a995d 13981# func_lo2o object
13982func_lo2o ()
13983{
13984 case ${1} in
13985 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13986 *) func_lo2o_result=${1} ;;
94984910 13987 esac
636a995d 13988}
b87057f2 13989
636a995d 13990# func_xform libobj-or-source
13991func_xform ()
13992{
13993 func_xform_result=${1%.*}.lo
13994}
7f19c02f 13995
636a995d 13996# func_arith arithmetic-term...
13997func_arith ()
13998{
13999 func_arith_result=$(( $* ))
14000}
14001
14002# func_len string
14003# STRING may not start with a hyphen.
14004func_len ()
14005{
14006 func_len_result=${#1}
14007}
14008
14009_LT_EOF
14010 ;;
14011 *) # Bourne compatible functions.
14012 cat << \_LT_EOF >> "$cfgfile"
14013
14014# func_dirname file append nondir_replacement
14015# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14016# otherwise set result to NONDIR_REPLACEMENT.
14017func_dirname ()
14018{
14019 # Extract subdirectory from the argument.
14020 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14021 if test "X$func_dirname_result" = "X${1}"; then
14022 func_dirname_result="${3}"
b87057f2 14023 else
636a995d 14024 func_dirname_result="$func_dirname_result${2}"
b87057f2 14025 fi
636a995d 14026}
14027
14028# func_basename file
14029func_basename ()
14030{
14031 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14032}
14033
14034
14035# func_stripname prefix suffix name
14036# strip PREFIX and SUFFIX off of NAME.
14037# PREFIX and SUFFIX must not contain globbing or regex special
14038# characters, hashes, percent signs, but SUFFIX may contain a leading
14039# dot (in which case that matches only a dot).
14040# func_strip_suffix prefix name
14041func_stripname ()
14042{
14043 case ${2} in
14044 .*) func_stripname_result=`$ECHO "X${3}" \
14045 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14046 *) func_stripname_result=`$ECHO "X${3}" \
14047 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14048 esac
14049}
14050
14051# sed scripts:
14052my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14053my_sed_long_arg='1s/^-[^=]*=//'
14054
14055# func_opt_split
14056func_opt_split ()
14057{
14058 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14059 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14060}
14061
14062# func_lo2o object
14063func_lo2o ()
14064{
14065 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14066}
14067
14068# func_xform libobj-or-source
14069func_xform ()
14070{
14071 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14072}
14073
14074# func_arith arithmetic-term...
14075func_arith ()
14076{
14077 func_arith_result=`expr "$@"`
14078}
14079
14080# func_len string
14081# STRING may not start with a hyphen.
14082func_len ()
14083{
14084 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14085}
14086
14087_LT_EOF
14088esac
14089
14090case $lt_shell_append in
14091 yes)
14092 cat << \_LT_EOF >> "$cfgfile"
14093
14094# func_append var value
14095# Append VALUE to the end of shell variable VAR.
14096func_append ()
14097{
14098 eval "$1+=\$2"
14099}
14100_LT_EOF
14101 ;;
14102 *)
14103 cat << \_LT_EOF >> "$cfgfile"
7f19c02f 14104
636a995d 14105# func_append var value
14106# Append VALUE to the end of shell variable VAR.
14107func_append ()
14108{
14109 eval "$1=\$$1\$2"
14110}
94984910 14111
636a995d 14112_LT_EOF
14113 ;;
94984910 14114 esac
14115
636a995d 14116
14117 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14118 || (rm -f "$cfgfile"; exit 1)
14119
14120 mv -f "$cfgfile" "$ofile" ||
14121 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14122 chmod +x "$ofile"
14123
14124 ;;
8b72747d 14125
636a995d 14126 esac
8b72747d 14127done # for ac_tag
94984910 14128
71eb93ea 14129
f922ca49 14130as_fn_exit 0
84e6335c 14131_ACEOF
71eb93ea 14132ac_clean_files=$ac_clean_files_save
14133
8b72747d 14134test $ac_write_fail = 0 ||
f922ca49 14135 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8b72747d 14136
84e6335c 14137
71eb93ea 14138# configure is writing to config.log, and then calls config.status.
14139# config.status does its own redirection, appending to config.log.
14140# Unfortunately, on DOS this fails, as config.log is still kept open
14141# by configure, so config.status won't be able to write to it; its
14142# output is simply discarded. So we exec the FD to /dev/null,
14143# effectively closing config.log, so it can be properly (re)opened and
14144# appended to by config.status. When coming back to configure, we
14145# need to make the FD available again.
14146if test "$no_create" != yes; then
14147 ac_cs_success=:
84e6335c 14148 ac_config_status_args=
14149 test "$silent" = yes &&
14150 ac_config_status_args="$ac_config_status_args --quiet"
71eb93ea 14151 exec 5>/dev/null
84e6335c 14152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
71eb93ea 14153 exec 5>>config.log
14154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14155 # would make configure fail if this is the last instruction.
f922ca49 14156 $ac_cs_success || as_fn_exit 1
71eb93ea 14157fi
8b72747d 14158if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22166f83 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14160$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8b72747d 14161fi
63a49ce0 14162