blob: 8da48f587a24ba5af46a26f56e8a82de5dfb23c2 [file] [log] [blame]
drh75897232000-05-29 14:26:00 +00001#! /bin/sh
drh75897232000-05-29 14:26:00 +00002# Guess values for system-dependent variables and create Makefiles.
drhf51bad42021-06-19 18:35:20 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.37.0.
drh75897232000-05-29 14:26:00 +00004#
drhf922ca42015-05-14 15:39:18 +00005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
drh75897232000-05-29 14:26:00 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
drhf922ca42015-05-14 15:39:18 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000014
drh8b727472009-01-19 18:18:40 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000018 emulate sh
19 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000023 setopt NO_GLOB_SUBST
24else
drhf922ca42015-05-14 15:39:18 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
drh8b727472009-01-19 18:18:40 +000030esac
a.rottmann84e63352003-03-24 09:42:16 +000031fi
drh8b727472009-01-19 18:18:40 +000032
33
drh8b727472009-01-19 18:18:40 +000034as_nl='
35'
36export as_nl
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
drhf922ca42015-05-14 15:39:18 +000041# 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
drh8b727472009-01-19 18:18:40 +000048 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;
drhf922ca42015-05-14 15:39:18 +000058 case $arg in #(
drh8b727472009-01-19 18:18:40 +000059 *"$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
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
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 }
79fi
a.rottmann84e63352003-03-24 09:42:16 +000080
mlcreech94984912008-03-04 19:03:08 +000081
drh8b727472009-01-19 18:18:40 +000082# 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
89# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000090as_myself=
91case $0 in #((
drh8b727472009-01-19 18:18:40 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
drh8b727472009-01-19 18:18:40 +0000100IFS=$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
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +0000111 exit 1
drh8b727472009-01-19 18:18:40 +0000112fi
113
drhf922ca42015-05-14 15:39:18 +0000114# 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 || :
drh8b727472009-01-19 18:18:40 +0000121done
mlcreech94984912008-03-04 19:03:08 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000131
drhf922ca42015-05-14 15:39:18 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
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
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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
168else
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.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
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"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
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
213 test -z "$as_dir" && as_dir=.
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.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
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 :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
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'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
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."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
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 #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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 ||
334$as_echo X"$as_dir" |
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.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
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.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
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
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
drh8b727472009-01-19 18:18:40 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
drh8b727472009-01-19 18:18:40 +0000426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
drhf922ca42015-05-14 15:39:18 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
mlcreech94984912008-03-04 19:03:08 +0000437
drh8b727472009-01-19 18:18:40 +0000438as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
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'`
456
drhf922ca42015-05-14 15:39:18 +0000457# 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
mlcreech94984912008-03-04 19:03:08 +0000463
464
drhf922ca42015-05-14 15:39:18 +0000465 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. :-)
drh8b727472009-01-19 18:18:40 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000474 sed '
drh8b727472009-01-19 18:18:40 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000479 N
drh8b727472009-01-19 18:18:40 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000482 t loop
drh8b727472009-01-19 18:18:40 +0000483 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000484 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000485 chmod +x "$as_me.lineno" ||
drhf922ca42015-05-14 15:39:18 +0000486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000487
drhf922ca42015-05-14 15:39:18 +0000488 # 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
a.rottmann84e63352003-03-24 09:42:16 +0000492 # 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
drh8b727472009-01-19 18:18:40 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000496 # Exit status is that of the last command.
497 exit
498}
499
drh8b727472009-01-19 18:18:40 +0000500ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +0000501case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000502-n*)
drhf922ca42015-05-14 15:39:18 +0000503 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000508 esac;;
509*)
510 ECHO_N='-n';;
511esac
a.rottmann84e63352003-03-24 09:42:16 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000522 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000523 # ... 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.
drhf922ca42015-05-14 15:39:18 +0000526 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +0000528 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
drhf922ca42015-05-14 15:39:18 +0000532 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +0000533 fi
a.rottmann84e63352003-03-24 09:42:16 +0000534else
drhf922ca42015-05-14 15:39:18 +0000535 as_ln_s='cp -pR'
a.rottmann84e63352003-03-24 09:42:16 +0000536fi
drh8b727472009-01-19 18:18:40 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000539
540if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000542else
a.rottmann964dbb12004-02-26 19:47:42 +0000543 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000544 as_mkdir_p=false
545fi
546
drhf922ca42015-05-14 15:39:18 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +0000549
550# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000552
553# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000555
556
drh75897232000-05-29 14:26:00 +0000557
drh71eb93e2001-09-28 01:34:43 +0000558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
mlcreech636a9952008-05-05 22:52:56 +0000561case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000565 ;;
566esac
567
mlcreech636a9952008-05-05 22:52:56 +0000568ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000569if 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 :
mlcreech636a9952008-05-05 22:52:56 +0000575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000577 :
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
mlcreech636a9952008-05-05 22:52:56 +0000586 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000587$*
mlcreech636a9952008-05-05 22:52:56 +0000588_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000595
mlcreech636a9952008-05-05 22:52:56 +0000596if 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
drh71eb93e2001-09-28 01:34:43 +0000608
mlcreech636a9952008-05-05 22:52:56 +0000609 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.
drh71eb93e2001-09-28 01:34:43 +0000619
mlcreech636a9952008-05-05 22:52:56 +0000620 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
a.rottmann9bc8b932004-02-29 15:18:31 +0000631 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000632
mlcreech636a9952008-05-05 22:52:56 +0000633 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+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000648 else
mlcreech636a9952008-05-05 22:52:56 +0000649 # 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=:
drh71eb93e2001-09-28 01:34:43 +0000673
mlcreech636a9952008-05-05 22:52:56 +0000674 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
681
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
drh71eb93e2001-09-28 01:34:43 +0000689 fi
mlcreech636a9952008-05-05 22:52:56 +0000690 fi
drh71eb93e2001-09-28 01:34:43 +0000691 fi
692 fi
693 fi
694fi
drh71eb93e2001-09-28 01:34:43 +0000695
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.
mlcreech636a9952008-05-05 22:52:56 +0000698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000701fi
702
drh71eb93e2001-09-28 01:34:43 +0000703
drh71eb93e2001-09-28 01:34:43 +0000704
a.rottmann9bc8b932004-02-29 15:18:31 +0000705
drhf922ca42015-05-14 15:39:18 +0000706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
drh8b727472009-01-19 18:18:40 +0000708
drh71eb93e2001-09-28 01:34:43 +0000709# Name of the host.
drhf922ca42015-05-14 15:39:18 +0000710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
drh71eb93e2001-09-28 01:34:43 +0000714#
715# Initializations.
716#
drh75897232000-05-29 14:26:00 +0000717ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000718ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000719ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000720LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000721cross_compiling=no
722subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000723MFLAGS=
724MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
drhf51bad42021-06-19 18:35:20 +0000729PACKAGE_VERSION='3.37.0'
730PACKAGE_STRING='sqlite 3.37.0'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
drhf922ca42015-05-14 15:39:18 +0000732PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000733
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000738# include <sys/types.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
drh8b727472009-01-19 18:18:40 +0000747# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000748# include <stdlib.h>
749# endif
a.rottmann84e63352003-03-24 09:42:16 +0000750#endif
drh8b727472009-01-19 18:18:40 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
drh8b727472009-01-19 18:18:40 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
drh8b727472009-01-19 18:18:40 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
drh8b727472009-01-19 18:18:40 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
drhf922ca42015-05-14 15:39:18 +0000770ac_subst_vars='LTLIBOBJS
drh710658c2012-01-16 13:00:05 +0000771LIBOBJS
drhf922ca42015-05-14 15:39:18 +0000772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
drh56c93112017-11-24 16:55:48 +0000775HAVE_ZLIB
drhf922ca42015-05-14 15:39:18 +0000776USE_AMALGAMATION
mistachkin696555d2021-07-13 21:59:22 +0000777AMALGAMATION_LINE_MACROS
drhf922ca42015-05-14 15:39:18 +0000778TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000779TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000780TARGET_HAVE_READLINE
781TARGET_READLINE_INC
782TARGET_READLINE_LIBS
783HAVE_TCL
784TCL_SHLIB_SUFFIX
785TCL_STUB_LIB_SPEC
786TCL_STUB_LIB_FLAG
787TCL_STUB_LIB_FILE
788TCL_LIB_SPEC
789TCL_LIB_FLAG
790TCL_LIB_FILE
791TCL_INCLUDE_SPEC
792TCL_SRC_DIR
793TCL_BIN_DIR
794TCL_VERSION
795TARGET_EXEEXT
796SQLITE_OS_WIN
797SQLITE_OS_UNIX
798BUILD_EXEEXT
799TEMP_STORE
800ALLOWRELEASE
801SQLITE_THREADSAFE
802BUILD_CC
drhf922ca42015-05-14 15:39:18 +0000803RELEASE
804VERSION
805program_prefix
806TCLLIBDIR
807TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811CPP
812OTOOL64
813OTOOL
814LIPO
815NMEDIT
816DSYMUTIL
817lt_ECHO
818RANLIB
819STRIP
820AR
821OBJDUMP
822LN_S
823NM
824ac_ct_DUMPBIN
825DUMPBIN
826LD
827FGREP
828EGREP
829GREP
830SED
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846LIBTOOL
847target_alias
848host_alias
849build_alias
850LIBS
851ECHO_T
852ECHO_N
853ECHO_C
854DEFS
855mandir
856localedir
857libdir
858psdir
859pdfdir
860dvidir
861htmldir
862infodir
863docdir
864oldincludedir
865includedir
866localstatedir
867sharedstatedir
868sysconfdir
869datadir
870datarootdir
871libexecdir
872sbindir
873bindir
874program_transform_name
875prefix
876exec_prefix
877PACKAGE_URL
878PACKAGE_BUGREPORT
879PACKAGE_STRING
880PACKAGE_VERSION
881PACKAGE_TARNAME
882PACKAGE_NAME
883PATH_SEPARATOR
884SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000885ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000886ac_user_opts='
887enable_option_checking
888enable_shared
889enable_static
890with_pic
891enable_fast_install
892with_gnu_ld
893enable_libtool_lock
894enable_largefile
drh8b727472009-01-19 18:18:40 +0000895enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000896enable_releasemode
897enable_tempstore
898enable_tcl
899with_tcl
drhe44b8352015-10-30 14:25:57 +0000900enable_editline
drh8b727472009-01-19 18:18:40 +0000901enable_readline
902with_readline_lib
903with_readline_inc
904enable_debug
905enable_amalgamation
mistachkin696555d2021-07-13 21:59:22 +0000906amalgamation_line_macros
drh8b727472009-01-19 18:18:40 +0000907enable_load_extension
drhe2ce8c42020-12-07 21:19:17 +0000908enable_math
drh42c93b52021-03-09 16:35:14 +0000909enable_all
drhc530b9c2016-07-25 11:27:22 +0000910enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000911enable_memsys3
drhce1d9f52015-10-09 12:48:33 +0000912enable_fts3
913enable_fts4
914enable_fts5
915enable_json1
drh83bebdd2017-08-28 17:00:12 +0000916enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000917enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000918enable_rtree
drh5e18d402016-05-03 13:14:18 +0000919enable_session
drh8b727472009-01-19 18:18:40 +0000920enable_gcov
921'
922 ac_precious_vars='build_alias
923host_alias
924target_alias
925CC
926CFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000930CPP
931TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000932
drh75897232000-05-29 14:26:00 +0000933
934# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000935ac_init_help=
936ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000937ac_unrecognized_opts=
938ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000939# The variables have the same names as the options, with
940# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000941cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000942exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000943no_create=
drh75897232000-05-29 14:26:00 +0000944no_recursion=
945prefix=NONE
946program_prefix=NONE
947program_suffix=NONE
948program_transform_name=s,x,x,
949silent=
950site=
951srcdir=
drh75897232000-05-29 14:26:00 +0000952verbose=
953x_includes=NONE
954x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000955
956# Installation directory options.
957# These are left unexpanded so users can "make install exec_prefix=/foo"
958# and all the variables that are supposed to be based on exec_prefix
959# by default will actually change.
960# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000961# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000962bindir='${exec_prefix}/bin'
963sbindir='${exec_prefix}/sbin'
964libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000965datarootdir='${prefix}/share'
966datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000967sysconfdir='${prefix}/etc'
968sharedstatedir='${prefix}/com'
969localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000970includedir='${prefix}/include'
971oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000981
drh75897232000-05-29 14:26:00 +0000982ac_prev=
drh8b727472009-01-19 18:18:40 +0000983ac_dashdash=
drh75897232000-05-29 14:26:00 +0000984for ac_option
985do
drh75897232000-05-29 14:26:00 +0000986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000988 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000989 ac_prev=
990 continue
991 fi
992
drh8b727472009-01-19 18:18:40 +0000993 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000994 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *=) ac_optarg= ;;
996 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000997 esac
drh75897232000-05-29 14:26:00 +0000998
999 # Accept the important Cygnus configure options, so we can diagnose typos.
1000
drh8b727472009-01-19 18:18:40 +00001001 case $ac_dashdash$ac_option in
1002 --)
1003 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001004
1005 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 ac_prev=bindir ;;
1007 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001008 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001009
1010 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001011 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001012 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001013 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
1015 -cache-file | --cache-file | --cache-fil | --cache-fi \
1016 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017 ac_prev=cache_file ;;
1018 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001020 cache_file=$ac_optarg ;;
1021
1022 --config-cache | -C)
1023 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001024
drh8b727472009-01-19 18:18:40 +00001025 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001026 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001027 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001028 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001029
drh8b727472009-01-19 18:18:40 +00001030 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031 | --dataroo | --dataro | --datar)
1032 ac_prev=datarootdir ;;
1033 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035 datarootdir=$ac_optarg ;;
1036
drh75897232000-05-29 14:26:00 +00001037 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001038 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001039 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001041 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1052
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1057
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001062
1063 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001065 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001067 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"enable_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001076 esac
drh8b727472009-01-19 18:18:40 +00001077 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001086 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
drh71eb93e2001-09-28 01:34:43 +00001092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001098
1099 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001100 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001101 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001102 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001103
drh8b727472009-01-19 18:18:40 +00001104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
drh75897232000-05-29 14:26:00 +00001110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001115 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001120 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001125 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001132 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001133
drh8b727472009-01-19 18:18:40 +00001134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
drh75897232000-05-29 14:26:00 +00001139 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001140 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001144 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001149 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001156 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001170 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001175 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001182 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001189 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001206 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001207
drh8b727472009-01-19 18:18:40 +00001208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
drh75897232000-05-29 14:26:00 +00001218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001226 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001227
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001237 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001238
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001242 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001243
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001247 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001248
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001254 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001257 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001259 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001260
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1263
drh71eb93e2001-09-28 01:34:43 +00001264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001266
1267 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001269 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001271 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1275 *"
1276"with_$ac_useropt"
1277"*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001280 esac
drh8b727472009-01-19 18:18:40 +00001281 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001282
1283 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001284 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001285 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001287 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1291 *"
1292"with_$ac_useropt"
1293"*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001298
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1302
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001308 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001309
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001315 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001316
drhf922ca42015-05-14 15:39:18 +00001317 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1318Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001319 ;;
1320
drh71eb93e2001-09-28 01:34:43 +00001321 *=*)
1322 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1323 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001324 case $ac_envvar in #(
1325 '' | [0-9]* | *[!_$as_cr_alnum]* )
1326 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1327 esac
drh8b727472009-01-19 18:18:40 +00001328 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001329 export $ac_envvar ;;
1330
drh75897232000-05-29 14:26:00 +00001331 *)
drh71eb93e2001-09-28 01:34:43 +00001332 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001333 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001335 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001336 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001337 ;;
1338
1339 esac
1340done
1341
1342if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001344 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001345fi
1346
drh8b727472009-01-19 18:18:40 +00001347if test -n "$ac_unrecognized_opts"; then
1348 case $enable_option_checking in
1349 no) ;;
drhf922ca42015-05-14 15:39:18 +00001350 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001352 esac
drh8b727472009-01-19 18:18:40 +00001353fi
drh866108f2008-05-13 00:57:21 +00001354
drh8b727472009-01-19 18:18:40 +00001355# Check all directory arguments for consistency.
1356for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drh6b236032019-04-19 22:01:10 +00001359 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001360do
drh8b727472009-01-19 18:18:40 +00001361 eval ac_val=\$$ac_var
1362 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001363 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001364 */ )
1365 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001367 esac
drh8b727472009-01-19 18:18:40 +00001368 # Be sure to have absolute directory names.
1369 case $ac_val in
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372 esac
drhf922ca42015-05-14 15:39:18 +00001373 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001374done
drh75897232000-05-29 14:26:00 +00001375
drh71eb93e2001-09-28 01:34:43 +00001376# There might be people who depend on the old broken behavior: `$host'
1377# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001378# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001379build=$build_alias
1380host=$host_alias
1381target=$target_alias
drh75897232000-05-29 14:26:00 +00001382
a.rottmann84e63352003-03-24 09:42:16 +00001383# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001384if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001396
a.rottmann84e63352003-03-24 09:42:16 +00001397
drh8b727472009-01-19 18:18:40 +00001398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001401 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001402test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001403 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001404
1405
drh75897232000-05-29 14:26:00 +00001406# Find the source files, if location was not specified.
1407if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415$as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\/\)$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\).*/{
1429 s//\1/
1430 q
1431 }
1432 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001433 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001434 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001435 srcdir=..
1436 fi
1437else
1438 ac_srcdir_defaulted=no
1439fi
drh8b727472009-01-19 18:18:40 +00001440if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001442 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001443fi
drh8b727472009-01-19 18:18:40 +00001444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001446 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001447 pwd)`
1448# When building in place, set srcdir=.
1449if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451fi
1452# Remove unnecessary trailing slashes from srcdir.
1453# Double slashes in file names in object file debugging info
1454# mess up M-x gdb in Emacs.
1455case $srcdir in
1456*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457esac
1458for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463done
drh75897232000-05-29 14:26:00 +00001464
drh71eb93e2001-09-28 01:34:43 +00001465#
1466# Report the --help message.
1467#
1468if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001471 cat <<_ACEOF
drhf51bad42021-06-19 18:35:20 +00001472\`configure' configures sqlite 3.37.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001473
1474Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479Defaults for the options are specified in brackets.
1480
1481Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001486 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491
drh71eb93e2001-09-28 01:34:43 +00001492Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001494 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001496 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001497
1498By default, \`make install' will install all the files in
1499\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501for instance \`--prefix=\$HOME'.
1502
1503For better control, use the options below.
1504
1505Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001525_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001526
a.rottmann84e63352003-03-24 09:42:16 +00001527 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001528
1529System types:
1530 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001531 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1532_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001533fi
1534
1535if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001536 case $ac_init_help in
drhf51bad42021-06-19 18:35:20 +00001537 short | recursive ) echo "Configuration of sqlite 3.37.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001538 esac
a.rottmann84e63352003-03-24 09:42:16 +00001539 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001540
1541Optional Features:
drh8b727472009-01-19 18:18:40 +00001542 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001545 --enable-shared[=PKGS] build shared libraries [default=yes]
1546 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001547 --enable-fast-install[=PKGS]
1548 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001549 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001550 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001551 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001552 --enable-releasemode Support libtool link to release mode
1553 --enable-tempstore Use an in-ram database for temporary tables
1554 (never,no,yes,always)
1555 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001556 --enable-editline enable BSD editline support
1557 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001558 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001559 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001560 separately
drh05c7e0b2015-01-10 14:27:17 +00001561 --disable-load-extension
1562 Disable loading of external extensions
drhf6e904b2020-12-07 17:15:32 +00001563 --disable-math Disable math functions
drh42c93b52021-03-09 16:35:14 +00001564 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
drhc530b9c2016-07-25 11:27:22 +00001565 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001566 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001567 --enable-fts3 Enable the FTS3 extension
1568 --enable-fts4 Enable the FTS4 extension
1569 --enable-fts5 Enable the FTS5 extension
1570 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001571 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001572 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001573 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001574 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001575 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001576
1577Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001580 --with-pic try to use only PIC/non-PIC objects [default=use
1581 both]
mlcreech636a9952008-05-05 22:52:56 +00001582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001583 --with-tcl=DIR directory containing tcl configuration
1584 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001585 --with-readline-lib specify readline library
1586 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001587
1588Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001593 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001595 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001596 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001597 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
drhf922ca42015-05-14 15:39:18 +00001602Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001603_ACEOF
drh8b727472009-01-19 18:18:40 +00001604ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
a.rottmann84e63352003-03-24 09:42:16 +00001613 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001614
drh8b727472009-01-19 18:18:40 +00001615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001630
a.rottmann84e63352003-03-24 09:42:16 +00001631case $srcdir in
drh8b727472009-01-19 18:18:40 +00001632 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001633 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001637 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001644esac
drh8b727472009-01-19 18:18:40 +00001645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001646
drh8b727472009-01-19 18:18:40 +00001647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001655 else
drh8b727472009-01-19 18:18:40 +00001656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001659 done
1660fi
1661
drh8b727472009-01-19 18:18:40 +00001662test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001663if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001664 cat <<\_ACEOF
drhf51bad42021-06-19 18:35:20 +00001665sqlite configure 3.37.0
drhf922ca42015-05-14 15:39:18 +00001666generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001667
drhf922ca42015-05-14 15:39:18 +00001668Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001671_ACEOF
drh8b727472009-01-19 18:18:40 +00001672 exit
drh71eb93e2001-09-28 01:34:43 +00001673fi
drhf922ca42015-05-14 15:39:18 +00001674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706else
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_c_try_link LINENO
1718# -----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_link ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1745 }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_link
1762
1763# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764# -------------------------------------------------------
1765# Tests whether HEADER exists and can be compiled using the include files in
1766# INCLUDES, setting the cache variable VAR accordingly.
1767ac_fn_c_check_header_compile ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
1772if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782else
1783 eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_header_compile
1793
1794# ac_fn_c_try_cpp LINENO
1795# ----------------------
1796# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_cpp ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } > conftest.i && {
1816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 }; then :
1819 ac_retval=0
1820else
1821 $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825fi
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_cpp
1830
1831# ac_fn_c_try_run LINENO
1832# ----------------------
1833# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834# that executables *can* be run.
1835ac_fn_c_try_run ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_link"
1839case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849 { { case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852esac
1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854$as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_try") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; }; }; then :
1859 ac_retval=0
1860else
1861 $as_echo "$as_me: program exited with status $ac_status" >&5
1862 $as_echo "$as_me: failed program was:" >&5
1863sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=$ac_status
1866fi
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_run
1872
1873# ac_fn_c_check_func LINENO FUNC VAR
1874# ----------------------------------
1875# Tests whether FUNC exists, setting the cache variable VAR accordingly
1876ac_fn_c_check_func ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1883else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h. */
1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888#define $2 innocuous_$2
1889
1890/* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1894
1895#ifdef __STDC__
1896# include <limits.h>
1897#else
1898# include <assert.h>
1899#endif
1900
1901#undef $2
1902
1903/* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1906#ifdef __cplusplus
1907extern "C"
1908#endif
1909char $2 ();
1910/* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913#if defined __stub_$2 || defined __stub___$2
1914choke me
1915#endif
1916
1917int
1918main ()
1919{
1920return $2 ();
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_link "$LINENO"; then :
1926 eval "$3=yes"
1927else
1928 eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_func
1939
1940# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941# -------------------------------------------
1942# Tests whether TYPE exists after having included INCLUDES, setting cache
1943# variable VAR accordingly.
1944ac_fn_c_check_type ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
1949if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951else
1952 eval "$3=no"
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$4
1956int
1957main ()
1958{
1959if (sizeof ($2))
1960 return 0;
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969int
1970main ()
1971{
1972if (sizeof (($2)))
1973 return 0;
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979
1980else
1981 eval "$3=yes"
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992} # ac_fn_c_check_type
1993
1994# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1995# -------------------------------------------------------
1996# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1997# the include files in INCLUDES and setting the cache variable VAR
1998# accordingly.
1999ac_fn_c_check_header_mongrel ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if eval \${$3+:} false; then :
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004$as_echo_n "checking for $2... " >&6; }
2005if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011else
2012 # Is the header compilable?
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2014$as_echo_n "checking $2 usability... " >&6; }
2015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018#include <$2>
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_header_compiler=yes
2022else
2023 ac_header_compiler=no
2024fi
2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2027$as_echo "$ac_header_compiler" >&6; }
2028
2029# Is the header present?
2030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2031$as_echo_n "checking $2 presence... " >&6; }
2032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034#include <$2>
2035_ACEOF
2036if ac_fn_c_try_cpp "$LINENO"; then :
2037 ac_header_preproc=yes
2038else
2039 ac_header_preproc=no
2040fi
2041rm -f conftest.err conftest.i conftest.$ac_ext
2042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2043$as_echo "$ac_header_preproc" >&6; }
2044
2045# So? What about this header?
2046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2047 yes:no: )
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2049$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 ;;
2053 no:yes:* )
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2055$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2057$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2059$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2061$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 ;;
2065esac
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067$as_echo_n "checking for $2... " >&6; }
2068if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070else
2071 eval "$3=\$ac_header_compiler"
2072fi
2073eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076fi
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002080cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002081This file contains any messages produced by compilers while
2082running configure, to aid debugging if configure makes a mistake.
2083
drhf51bad42021-06-19 18:35:20 +00002084It was created by sqlite $as_me 3.37.0, which was
drhf922ca42015-05-14 15:39:18 +00002085generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002086
2087 $ $0 $@
2088
a.rottmann84e63352003-03-24 09:42:16 +00002089_ACEOF
drh8b727472009-01-19 18:18:40 +00002090exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002091{
2092cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002093## --------- ##
2094## Platform. ##
2095## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002096
2097hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2105
2106/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002109/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002110/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2113
drh71eb93e2001-09-28 01:34:43 +00002114_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002115
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002121 $as_echo "PATH: $as_dir"
2122 done
drh8b727472009-01-19 18:18:40 +00002123IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002124
drh71eb93e2001-09-28 01:34:43 +00002125} >&5
2126
a.rottmann84e63352003-03-24 09:42:16 +00002127cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002128
a.rottmann84e63352003-03-24 09:42:16 +00002129
2130## ----------- ##
2131## Core tests. ##
2132## ----------- ##
2133
2134_ACEOF
2135
drh71eb93e2001-09-28 01:34:43 +00002136
2137# Keep a trace of the command line.
2138# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002139# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002140# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002141# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002142ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002143ac_configure_args0=
2144ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002145ac_must_keep_next=false
2146for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002147do
a.rottmann84e63352003-03-24 09:42:16 +00002148 for ac_arg
2149 do
2150 case $ac_arg in
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2154 continue ;;
drh8b727472009-01-19 18:18:40 +00002155 *\'*)
2156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002157 esac
2158 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002160 2)
drhf922ca42015-05-14 15:39:18 +00002161 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002162 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002163 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002164 else
a.rottmann964dbb12004-02-26 19:47:42 +00002165 case $ac_arg in
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172 esac
2173 ;;
2174 -* ) ac_must_keep_next=true ;;
2175 esac
a.rottmann84e63352003-03-24 09:42:16 +00002176 fi
drhf922ca42015-05-14 15:39:18 +00002177 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002178 ;;
2179 esac
2180 done
drh71eb93e2001-09-28 01:34:43 +00002181done
drhf922ca42015-05-14 15:39:18 +00002182{ ac_configure_args0=; unset ac_configure_args0;}
2183{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002184
2185# When interrupted or exit'd, cleanup temporary files, and complete
2186# config.log. We remove comments because anyway the quotes in there
2187# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002188# WARNING: Use '\'' to represent an apostrophe within the trap.
2189# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002190trap 'exit_status=$?
2191 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002192 {
2193 echo
2194
drhf922ca42015-05-14 15:39:18 +00002195 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002196## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002197## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002198 echo
2199 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002200(
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in #(
2204 *${as_nl}*)
2205 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002208 esac
2209 case $ac_var in #(
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002212 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002213 esac ;;
2214 esac
2215 done
drh71eb93e2001-09-28 01:34:43 +00002216 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002219 sed -n \
drh8b727472009-01-19 18:18:40 +00002220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222 ;; #(
drh866108f2008-05-13 00:57:21 +00002223 *)
drh8b727472009-01-19 18:18:40 +00002224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002225 ;;
drh8b727472009-01-19 18:18:40 +00002226 esac |
2227 sort
2228)
a.rottmann84e63352003-03-24 09:42:16 +00002229 echo
2230
drhf922ca42015-05-14 15:39:18 +00002231 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002232## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002233## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002234 echo
2235 for ac_var in $ac_subst_vars
2236 do
drh8b727472009-01-19 18:18:40 +00002237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002242 done | sort
2243 echo
2244
2245 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002246 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002247## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002248## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002249 echo
2250 for ac_var in $ac_subst_files
2251 do
drh8b727472009-01-19 18:18:40 +00002252 eval ac_val=\$$ac_var
2253 case $ac_val in
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 esac
2256 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002257 done | sort
2258 echo
2259 fi
2260
2261 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002262 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002263## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002264## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002265 echo
drh8b727472009-01-19 18:18:40 +00002266 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002267 echo
2268 fi
2269 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002270 $as_echo "$as_me: caught signal $ac_signal"
2271 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002272 } >&5
drh8b727472009-01-19 18:18:40 +00002273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002275 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002276' 0
drh71eb93e2001-09-28 01:34:43 +00002277for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002279done
2280ac_signal=0
2281
2282# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002283rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002284
drhf922ca42015-05-14 15:39:18 +00002285$as_echo "/* confdefs.h */" > confdefs.h
2286
a.rottmann84e63352003-03-24 09:42:16 +00002287# Predefined preprocessor variables.
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_NAME "$PACKAGE_NAME"
2291_ACEOF
2292
a.rottmann84e63352003-03-24 09:42:16 +00002293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295_ACEOF
2296
a.rottmann84e63352003-03-24 09:42:16 +00002297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_VERSION "$PACKAGE_VERSION"
2299_ACEOF
2300
a.rottmann84e63352003-03-24 09:42:16 +00002301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_STRING "$PACKAGE_STRING"
2303_ACEOF
2304
dana9f39fd2011-08-12 16:34:42 +00002305cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002306#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002307_ACEOF
2308
drhf922ca42015-05-14 15:39:18 +00002309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_URL "$PACKAGE_URL"
2311_ACEOF
2312
a.rottmann84e63352003-03-24 09:42:16 +00002313
drh71eb93e2001-09-28 01:34:43 +00002314# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002315# Prefer an explicitly selected file to automatically selected ones.
2316ac_site_file1=NONE
2317ac_site_file2=NONE
2318if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002319 # We do not want a PATH search for config.site.
2320 case $CONFIG_SITE in #((
2321 -*) ac_site_file1=./$CONFIG_SITE;;
2322 */*) ac_site_file1=$CONFIG_SITE;;
2323 *) ac_site_file1=./$CONFIG_SITE;;
2324 esac
drh8b727472009-01-19 18:18:40 +00002325elif test "x$prefix" != xNONE; then
2326 ac_site_file1=$prefix/share/config.site
2327 ac_site_file2=$prefix/etc/config.site
2328else
2329 ac_site_file1=$ac_default_prefix/share/config.site
2330 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002331fi
drh8b727472009-01-19 18:18:40 +00002332for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333do
2334 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002337$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002338 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002339 . "$ac_site_file" \
2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342as_fn_error $? "failed to load site script $ac_site_file
2343See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002344 fi
2345done
2346
2347if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002348 # Some versions of bash will fail to source /dev/null (special files
2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002352$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002353 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002354 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002356 esac
2357 fi
drh75897232000-05-29 14:26:00 +00002358else
drhf922ca42015-05-14 15:39:18 +00002359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002360$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002361 >$cache_file
2362fi
2363
2364# Check that the precious variables saved in the cache have kept the same
2365# value.
2366ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002367for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002368 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002370 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002372 case $ac_old_set,$ac_new_set in
2373 set,)
drhf922ca42015-05-14 15:39:18 +00002374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002375$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002376 ac_cache_corrupted=: ;;
2377 ,set)
drhf922ca42015-05-14 15:39:18 +00002378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002379$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002380 ac_cache_corrupted=: ;;
2381 ,);;
2382 *)
2383 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002384 # differences in whitespace do not lead to failure.
2385 ac_old_val_w=`echo x $ac_old_val`
2386 ac_new_val_w=`echo x $ac_new_val`
2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002389$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390 ac_cache_corrupted=:
2391 else
drhf922ca42015-05-14 15:39:18 +00002392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002393$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394 eval $ac_var=\$ac_old_val
2395 fi
drhf922ca42015-05-14 15:39:18 +00002396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002397$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002399$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002400 fi;;
2401 esac
a.rottmann84e63352003-03-24 09:42:16 +00002402 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002403 if test "$ac_new_set" = set; then
2404 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002406 *) ac_arg=$ac_var=$ac_new_val ;;
2407 esac
2408 case " $ac_configure_args " in
2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002410 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002411 esac
2412 fi
2413done
2414if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002418$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002420fi
drhf922ca42015-05-14 15:39:18 +00002421## -------------------- ##
2422## Main body of script. ##
2423## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002424
drh75897232000-05-29 14:26:00 +00002425ac_ext=c
drh75897232000-05-29 14:26:00 +00002426ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002430
a.rottmann84e63352003-03-24 09:42:16 +00002431
2432
drh04446102009-06-15 00:04:06 +00002433sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002434if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002435as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002436 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2437 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002438please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002439fi
2440
drh75897232000-05-29 14:26:00 +00002441#########
drh71eb93e2001-09-28 01:34:43 +00002442# Programs needed
drh75897232000-05-29 14:26:00 +00002443#
mlcreech636a9952008-05-05 22:52:56 +00002444case `pwd` in
2445 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002447$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002448esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002449
mlcreech94984912008-03-04 19:03:08 +00002450
mlcreech636a9952008-05-05 22:52:56 +00002451
vapier6acb2cf2009-01-28 04:46:28 +00002452macro_version='2.2.6'
2453macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002454
mlcreech94984912008-03-04 19:03:08 +00002455
mlcreech94984912008-03-04 19:03:08 +00002456
a.rottmann9bc8b932004-02-29 15:18:31 +00002457
mlcreech636a9952008-05-05 22:52:56 +00002458
2459
2460
2461
2462
2463
2464
2465
2466
2467ltmain="$ac_aux_dir/ltmain.sh"
2468
drh71eb93e2001-09-28 01:34:43 +00002469ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002470for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002471 if test -f "$ac_dir/install-sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install-sh -c"
2474 break
2475 elif test -f "$ac_dir/install.sh"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/install.sh -c"
2478 break
2479 elif test -f "$ac_dir/shtool"; then
2480 ac_aux_dir=$ac_dir
2481 ac_install_sh="$ac_aux_dir/shtool install -c"
2482 break
2483 fi
drh71eb93e2001-09-28 01:34:43 +00002484done
2485if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002487fi
drh8b727472009-01-19 18:18:40 +00002488
2489# These three variables are undocumented and unsupported,
2490# and are intended to be withdrawn in a future Autoconf release.
2491# They can cause serious problems if a builder's source tree is in a directory
2492# whose full name contains unusual characters.
2493ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2494ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2495ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496
drh71eb93e2001-09-28 01:34:43 +00002497
2498# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002501
drhf922ca42015-05-14 15:39:18 +00002502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002503$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002504if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002505 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002506else
drh8b727472009-01-19 18:18:40 +00002507 ac_build_alias=$build_alias
2508test "x$ac_build_alias" = x &&
2509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002514
2515fi
drhf922ca42015-05-14 15:39:18 +00002516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002517$as_echo "$ac_cv_build" >&6; }
2518case $ac_cv_build in
2519*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002521esac
drh71eb93e2001-09-28 01:34:43 +00002522build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002523ac_save_IFS=$IFS; IFS='-'
2524set x $ac_cv_build
2525shift
2526build_cpu=$1
2527build_vendor=$2
2528shift; shift
2529# Remember, the first character of IFS is used to create $*,
2530# except with old shells:
2531build_os=$*
2532IFS=$ac_save_IFS
2533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002534
a.rottmann84e63352003-03-24 09:42:16 +00002535
drhf922ca42015-05-14 15:39:18 +00002536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002537$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002538if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002539 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002540else
drh8b727472009-01-19 18:18:40 +00002541 if test "x$host_alias" = x; then
2542 ac_cv_host=$ac_cv_build
2543else
2544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002546fi
drh71eb93e2001-09-28 01:34:43 +00002547
2548fi
drhf922ca42015-05-14 15:39:18 +00002549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002550$as_echo "$ac_cv_host" >&6; }
2551case $ac_cv_host in
2552*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002554esac
drh71eb93e2001-09-28 01:34:43 +00002555host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002556ac_save_IFS=$IFS; IFS='-'
2557set x $ac_cv_host
2558shift
2559host_cpu=$1
2560host_vendor=$2
2561shift; shift
2562# Remember, the first character of IFS is used to create $*,
2563# except with old shells:
2564host_os=$*
2565IFS=$ac_save_IFS
2566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002567
a.rottmann84e63352003-03-24 09:42:16 +00002568
drh71eb93e2001-09-28 01:34:43 +00002569ac_ext=c
2570ac_cpp='$CPP $CPPFLAGS'
2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2576set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002578$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002579if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002580 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002581else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584else
a.rottmann84e63352003-03-24 09:42:16 +00002585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002594 break 2
2595 fi
2596done
drhf922ca42015-05-14 15:39:18 +00002597 done
drh8b727472009-01-19 18:18:40 +00002598IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002599
2600fi
2601fi
2602CC=$ac_cv_prog_CC
2603if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002605$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002606else
drhf922ca42015-05-14 15:39:18 +00002607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002608$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002609fi
2610
drh8b727472009-01-19 18:18:40 +00002611
drh71eb93e2001-09-28 01:34:43 +00002612fi
2613if test -z "$ac_cv_prog_CC"; then
2614 ac_ct_CC=$CC
2615 # Extract the first word of "gcc", so it can be a program name with args.
2616set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002618$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002619if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002620 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002621else
2622 if test -n "$ac_ct_CC"; then
2623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2624else
a.rottmann84e63352003-03-24 09:42:16 +00002625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002632 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002634 break 2
2635 fi
2636done
drhf922ca42015-05-14 15:39:18 +00002637 done
drh8b727472009-01-19 18:18:40 +00002638IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002639
2640fi
2641fi
2642ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002645$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002646else
drhf922ca42015-05-14 15:39:18 +00002647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002648$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002649fi
2650
drh8b727472009-01-19 18:18:40 +00002651 if test "x$ac_ct_CC" = x; then
2652 CC=""
2653 else
2654 case $cross_compiling:$ac_tool_warned in
2655yes:)
drhf922ca42015-05-14 15:39:18 +00002656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002658ac_tool_warned=yes ;;
2659esac
2660 CC=$ac_ct_CC
2661 fi
drh71eb93e2001-09-28 01:34:43 +00002662else
2663 CC="$ac_cv_prog_CC"
2664fi
2665
2666if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002669set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002671$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002672if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002673 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002674else
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2677else
a.rottmann84e63352003-03-24 09:42:16 +00002678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002685 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002687 break 2
2688 fi
2689done
drhf922ca42015-05-14 15:39:18 +00002690 done
drh8b727472009-01-19 18:18:40 +00002691IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002692
2693fi
2694fi
2695CC=$ac_cv_prog_CC
2696if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002698$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002699else
drhf922ca42015-05-14 15:39:18 +00002700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002701$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002702fi
2703
drh8b727472009-01-19 18:18:40 +00002704
a.rottmann84e63352003-03-24 09:42:16 +00002705 fi
drh71eb93e2001-09-28 01:34:43 +00002706fi
2707if test -z "$CC"; then
2708 # Extract the first word of "cc", so it can be a program name with args.
2709set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002711$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002712if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002713 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002714else
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2727 ac_prog_rejected=yes
2728 continue
2729 fi
2730 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002732 break 2
2733 fi
2734done
drhf922ca42015-05-14 15:39:18 +00002735 done
drh8b727472009-01-19 18:18:40 +00002736IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002737
2738if test $ac_prog_rejected = yes; then
2739 # We found a bogon in the path, so make sure we never use it.
2740 set dummy $ac_cv_prog_CC
2741 shift
2742 if test $# != 0; then
2743 # We chose a different compiler from the bogus one.
2744 # However, it has the same basename, so the bogon will be chosen
2745 # first if we set CC to just the basename; use the full file name.
2746 shift
a.rottmann84e63352003-03-24 09:42:16 +00002747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002748 fi
2749fi
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002755$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002756else
drhf922ca42015-05-14 15:39:18 +00002757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002758$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002759fi
2760
drh8b727472009-01-19 18:18:40 +00002761
drh71eb93e2001-09-28 01:34:43 +00002762fi
2763if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002765 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002766 do
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002770$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002771if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002772 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002773else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
a.rottmann84e63352003-03-24 09:42:16 +00002777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002786 break 2
2787 fi
2788done
drhf922ca42015-05-14 15:39:18 +00002789 done
drh8b727472009-01-19 18:18:40 +00002790IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002791
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002797$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002798else
drhf922ca42015-05-14 15:39:18 +00002799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002800$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002801fi
2802
drh8b727472009-01-19 18:18:40 +00002803
drh71eb93e2001-09-28 01:34:43 +00002804 test -n "$CC" && break
2805 done
2806fi
2807if test -z "$CC"; then
2808 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002809 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002810do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002814$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002815if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002816 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002817else
2818 if test -n "$ac_ct_CC"; then
2819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820else
a.rottmann84e63352003-03-24 09:42:16 +00002821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002828 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002830 break 2
2831 fi
2832done
drhf922ca42015-05-14 15:39:18 +00002833 done
drh8b727472009-01-19 18:18:40 +00002834IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002835
2836fi
2837fi
2838ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002841$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002842else
drhf922ca42015-05-14 15:39:18 +00002843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002844$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002845fi
2846
drh8b727472009-01-19 18:18:40 +00002847
drh71eb93e2001-09-28 01:34:43 +00002848 test -n "$ac_ct_CC" && break
2849done
2850
drh8b727472009-01-19 18:18:40 +00002851 if test "x$ac_ct_CC" = x; then
2852 CC=""
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855yes:)
drhf922ca42015-05-14 15:39:18 +00002856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002858ac_tool_warned=yes ;;
2859esac
2860 CC=$ac_ct_CC
2861 fi
drh71eb93e2001-09-28 01:34:43 +00002862fi
2863
2864fi
2865
a.rottmann84e63352003-03-24 09:42:16 +00002866
drhf922ca42015-05-14 15:39:18 +00002867test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869as_fn_error $? "no acceptable C compiler found in \$PATH
2870See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002871
2872# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002873$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002874set X $ac_compile
2875ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002876for ac_option in --version -v -V -qversion; do
2877 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
drhf922ca42015-05-14 15:39:18 +00002882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883$as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002885 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002886 if test -s conftest.err; then
2887 sed '10a\
2888... rest of stderr output deleted ...
2889 10q' conftest.err >conftest.er1
2890 cat conftest.er1 >&5
2891 fi
2892 rm -f conftest.er1 conftest.err
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2895done
drh71eb93e2001-09-28 01:34:43 +00002896
drhf922ca42015-05-14 15:39:18 +00002897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002898/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002899
2900int
2901main ()
2902{
2903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002909ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002910# Try to create an executable without -o first, disregard a.out.
2911# It will help us diagnose broken compilers, and finding out an intuition
2912# of exeext.
drhf922ca42015-05-14 15:39:18 +00002913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2914$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002915ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002916
drh8b727472009-01-19 18:18:40 +00002917# The possible output files:
2918ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2919
2920ac_rmfiles=
2921for ac_file in $ac_files
2922do
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2926 esac
2927done
2928rm -f $ac_rmfiles
2929
drhf922ca42015-05-14 15:39:18 +00002930if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
drhf922ca42015-05-14 15:39:18 +00002935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002937 (eval "$ac_link_default") 2>&5
2938 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2942# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2943# in a Makefile. We should not override ac_cv_exeext if it was cached,
2944# so that the user can short-circuit this test for compilers unknown to
2945# Autoconf.
2946for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002947do
2948 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002949 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002951 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002952 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002953 # We found the default executable, but exeext='' is most
2954 # certainly right.
2955 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002956 *.* )
drhf922ca42015-05-14 15:39:18 +00002957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002958 then :; else
2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2960 fi
2961 # We set ac_cv_exeext here because the later test for it is not
2962 # safe: cross compilers may not add the suffix if given an `-o'
2963 # argument, so we may need to know it at that point already.
2964 # Even if this section looks crufty: it has the advantage of
2965 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002966 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002967 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002968 break;;
drh71eb93e2001-09-28 01:34:43 +00002969 esac
2970done
drh8b727472009-01-19 18:18:40 +00002971test "$ac_cv_exeext" = no && ac_cv_exeext=
2972
drh71eb93e2001-09-28 01:34:43 +00002973else
drh8b727472009-01-19 18:18:40 +00002974 ac_file=''
2975fi
drhf922ca42015-05-14 15:39:18 +00002976if test -z "$ac_file"; then :
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002980sed 's/^/| /' conftest.$ac_ext >&5
2981
drhf922ca42015-05-14 15:39:18 +00002982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984as_fn_error 77 "C compiler cannot create executables
2985See \`config.log' for more details" "$LINENO" 5; }
2986else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002988$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002989fi
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2991$as_echo_n "checking for C compiler default output file name... " >&6; }
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2993$as_echo "$ac_file" >&6; }
2994ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002995
drh8b727472009-01-19 18:18:40 +00002996rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002997ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002999$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003000if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00003001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
drhf922ca42015-05-14 15:39:18 +00003005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003007 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003008 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013# work properly (i.e., refer to `conftest.exe'), while it won't with
3014# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003015for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003017 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003020 break;;
drh71eb93e2001-09-28 01:34:43 +00003021 * ) break;;
3022 esac
3023done
3024else
drhf922ca42015-05-14 15:39:18 +00003025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3028See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003029fi
drhf922ca42015-05-14 15:39:18 +00003030rm -f conftest conftest$ac_cv_exeext
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003032$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003033
3034rm -f conftest.$ac_ext
3035EXEEXT=$ac_cv_exeext
3036ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039#include <stdio.h>
3040int
3041main ()
3042{
3043FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050ac_clean_files="$ac_clean_files conftest.out"
3051# Check that the compiler produces executables we can run. If not, either
3052# the compiler is broken, or we cross compile.
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3054$as_echo_n "checking whether we are cross compiling... " >&6; }
3055if test "$cross_compiling" != yes; then
3056 { { ac_try="$ac_link"
3057case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062$as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 if { ac_try='./conftest$ac_cv_exeext'
3068 { { case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; }; then
3078 cross_compiling=no
3079 else
3080 if test "$cross_compiling" = maybe; then
3081 cross_compiling=yes
3082 else
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error $? "cannot run C compiled programs.
3086If you meant to cross compile, use \`--host'.
3087See \`config.log' for more details" "$LINENO" 5; }
3088 fi
3089 fi
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3092$as_echo "$cross_compiling" >&6; }
3093
3094rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3095ac_clean_files=$ac_clean_files_save
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003097$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003098if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003099 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003100else
drhf922ca42015-05-14 15:39:18 +00003101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003102/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003103
3104int
3105main ()
3106{
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003113if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
drhf922ca42015-05-14 15:39:18 +00003118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003120 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003121 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003126 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 break;;
3130 esac
3131done
3132else
drh8b727472009-01-19 18:18:40 +00003133 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003134sed 's/^/| /' conftest.$ac_ext >&5
3135
drhf922ca42015-05-14 15:39:18 +00003136{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138as_fn_error $? "cannot compute suffix of object files: cannot compile
3139See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003140fi
drh71eb93e2001-09-28 01:34:43 +00003141rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142fi
drhf922ca42015-05-14 15:39:18 +00003143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003144$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003145OBJEXT=$ac_cv_objext
3146ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003148$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003149if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003150 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003151else
drhf922ca42015-05-14 15:39:18 +00003152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003153/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003154
3155int
3156main ()
3157{
3158#ifndef __GNUC__
3159 choke me
3160#endif
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
drhf922ca42015-05-14 15:39:18 +00003166if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003167 ac_compiler_gnu=yes
3168else
drhf922ca42015-05-14 15:39:18 +00003169 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003170fi
drh8b727472009-01-19 18:18:40 +00003171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003172ac_cv_c_compiler_gnu=$ac_compiler_gnu
3173
3174fi
drhf922ca42015-05-14 15:39:18 +00003175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003176$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3177if test $ac_compiler_gnu = yes; then
3178 GCC=yes
3179else
3180 GCC=
3181fi
drh71eb93e2001-09-28 01:34:43 +00003182ac_test_CFLAGS=${CFLAGS+set}
3183ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003185$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003186if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003187 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003188else
drh8b727472009-01-19 18:18:40 +00003189 ac_save_c_werror_flag=$ac_c_werror_flag
3190 ac_c_werror_flag=yes
3191 ac_cv_prog_cc_g=no
3192 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003194/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003195
3196int
3197main ()
3198{
3199
3200 ;
3201 return 0;
3202}
3203_ACEOF
drhf922ca42015-05-14 15:39:18 +00003204if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003205 ac_cv_prog_cc_g=yes
3206else
drhf922ca42015-05-14 15:39:18 +00003207 CFLAGS=""
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003209/* end confdefs.h. */
3210
3211int
3212main ()
3213{
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
drhf922ca42015-05-14 15:39:18 +00003219if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003220
drhf922ca42015-05-14 15:39:18 +00003221else
3222 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003223 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003225/* end confdefs.h. */
3226
3227int
3228main ()
3229{
3230
3231 ;
3232 return 0;
3233}
3234_ACEOF
drhf922ca42015-05-14 15:39:18 +00003235if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003236 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003237fi
drh8b727472009-01-19 18:18:40 +00003238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003239fi
drh8b727472009-01-19 18:18:40 +00003240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241fi
drh8b727472009-01-19 18:18:40 +00003242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3244fi
drhf922ca42015-05-14 15:39:18 +00003245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003246$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003247if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3251 CFLAGS="-g -O2"
3252 else
3253 CFLAGS="-g"
3254 fi
3255else
3256 if test "$GCC" = yes; then
3257 CFLAGS="-O2"
3258 else
3259 CFLAGS=
3260 fi
3261fi
drhf922ca42015-05-14 15:39:18 +00003262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003264if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003265 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003266else
drh8b727472009-01-19 18:18:40 +00003267 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003268ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003270/* end confdefs.h. */
3271#include <stdarg.h>
3272#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003273struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3275struct buf { int x; };
3276FILE * (*rcsopen) (struct buf *, struct stat *, int);
3277static char *e (p, i)
3278 char **p;
3279 int i;
3280{
3281 return p[i];
3282}
3283static char *f (char * (*g) (char **, int), char **p, ...)
3284{
3285 char *s;
3286 va_list v;
3287 va_start (v,p);
3288 s = g (p, va_arg (v,int));
3289 va_end (v);
3290 return s;
3291}
a.rottmann964dbb12004-02-26 19:47:42 +00003292
3293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3294 function prototypes and stuff, but not '\xHH' hex character constants.
3295 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003296 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3298 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003299 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003300int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3301
drh8b727472009-01-19 18:18:40 +00003302/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3303 inside strings and character constants. */
3304#define FOO(x) 'x'
3305int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3306
a.rottmann84e63352003-03-24 09:42:16 +00003307int test (int i, double x);
3308struct s1 {int (*f) (int a);};
3309struct s2 {int (*f) (double a);};
3310int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3311int argc;
3312char **argv;
3313int
3314main ()
3315{
3316return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3317 ;
3318 return 0;
3319}
3320_ACEOF
drh8b727472009-01-19 18:18:40 +00003321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003323do
3324 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003325 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003326 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003327fi
drh8b727472009-01-19 18:18:40 +00003328rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003330done
drh8b727472009-01-19 18:18:40 +00003331rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003332CC=$ac_save_CC
3333
3334fi
drh8b727472009-01-19 18:18:40 +00003335# AC_CACHE_VAL
3336case "x$ac_cv_prog_cc_c89" in
3337 x)
drhf922ca42015-05-14 15:39:18 +00003338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003339$as_echo "none needed" >&6; } ;;
3340 xno)
drhf922ca42015-05-14 15:39:18 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003342$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003343 *)
drh8b727472009-01-19 18:18:40 +00003344 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003346$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003347esac
drhf922ca42015-05-14 15:39:18 +00003348if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003349
drhf922ca42015-05-14 15:39:18 +00003350fi
a.rottmann84e63352003-03-24 09:42:16 +00003351
drh71eb93e2001-09-28 01:34:43 +00003352ac_ext=c
3353ac_cpp='$CPP $CPPFLAGS'
3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357
drhf922ca42015-05-14 15:39:18 +00003358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003359$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003360if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003361 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003362else
drh8b727472009-01-19 18:18:40 +00003363 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3364 for ac_i in 1 2 3 4 5 6 7; do
3365 ac_script="$ac_script$as_nl$ac_script"
3366 done
3367 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003368 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003369 if test -z "$SED"; then
3370 ac_path_SED_found=false
3371 # Loop through the user's path and test for each of PROGNAME-LIST
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003377 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003378 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003379 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003380 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003381# Check for GNU ac_path_SED and select it if it is found.
3382 # Check for GNU $ac_path_SED
3383case `"$ac_path_SED" --version 2>&1` in
3384*GNU*)
3385 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3386*)
3387 ac_count=0
3388 $as_echo_n 0123456789 >"conftest.in"
3389 while :
3390 do
3391 cat "conftest.in" "conftest.in" >"conftest.tmp"
3392 mv "conftest.tmp" "conftest.in"
3393 cp "conftest.in" "conftest.nl"
3394 $as_echo '' >> "conftest.nl"
3395 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003397 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003398 if test $ac_count -gt ${ac_path_SED_max-0}; then
3399 # Best one so far, save it but keep looking for a better one
3400 ac_cv_path_SED="$ac_path_SED"
3401 ac_path_SED_max=$ac_count
3402 fi
3403 # 10*(2^10) chars as input seems more than enough
3404 test $ac_count -gt 10 && break
3405 done
3406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3407esac
3408
3409 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003410 done
3411 done
drhf922ca42015-05-14 15:39:18 +00003412 done
mlcreech636a9952008-05-05 22:52:56 +00003413IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003414 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003415 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003416 fi
drh8b727472009-01-19 18:18:40 +00003417else
3418 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003419fi
drh866108f2008-05-13 00:57:21 +00003420
drh8b727472009-01-19 18:18:40 +00003421fi
drhf922ca42015-05-14 15:39:18 +00003422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003423$as_echo "$ac_cv_path_SED" >&6; }
3424 SED="$ac_cv_path_SED"
3425 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003426
mlcreech636a9952008-05-05 22:52:56 +00003427test -z "$SED" && SED=sed
3428Xsed="$SED -e 1s/^X//"
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
drhf922ca42015-05-14 15:39:18 +00003440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003441$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003442if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003443 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003444else
drh8b727472009-01-19 18:18:40 +00003445 if test -z "$GREP"; then
3446 ac_path_GREP_found=false
3447 # Loop through the user's path and test for each of PROGNAME-LIST
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3450do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003453 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003456 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003457# Check for GNU ac_path_GREP and select it if it is found.
3458 # Check for GNU $ac_path_GREP
3459case `"$ac_path_GREP" --version 2>&1` in
3460*GNU*)
3461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3462*)
3463 ac_count=0
3464 $as_echo_n 0123456789 >"conftest.in"
3465 while :
3466 do
3467 cat "conftest.in" "conftest.in" >"conftest.tmp"
3468 mv "conftest.tmp" "conftest.in"
3469 cp "conftest.in" "conftest.nl"
3470 $as_echo 'GREP' >> "conftest.nl"
3471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003473 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3475 # Best one so far, save it but keep looking for a better one
3476 ac_cv_path_GREP="$ac_path_GREP"
3477 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003478 fi
drh8b727472009-01-19 18:18:40 +00003479 # 10*(2^10) chars as input seems more than enough
3480 test $ac_count -gt 10 && break
3481 done
3482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3483esac
3484
3485 $ac_path_GREP_found && break 3
3486 done
3487 done
drhf922ca42015-05-14 15:39:18 +00003488 done
drh8b727472009-01-19 18:18:40 +00003489IFS=$as_save_IFS
3490 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003491 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003492 fi
3493else
3494 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003495fi
drh8b727472009-01-19 18:18:40 +00003496
3497fi
drhf922ca42015-05-14 15:39:18 +00003498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003499$as_echo "$ac_cv_path_GREP" >&6; }
3500 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003501
3502
drhf922ca42015-05-14 15:39:18 +00003503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003504$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003505if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003506 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003507else
drh8b727472009-01-19 18:18:40 +00003508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3509 then ac_cv_path_EGREP="$GREP -E"
3510 else
3511 if test -z "$EGREP"; then
3512 ac_path_EGREP_found=false
3513 # Loop through the user's path and test for each of PROGNAME-LIST
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003519 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003522 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003523# Check for GNU ac_path_EGREP and select it if it is found.
3524 # Check for GNU $ac_path_EGREP
3525case `"$ac_path_EGREP" --version 2>&1` in
3526*GNU*)
3527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3528*)
3529 ac_count=0
3530 $as_echo_n 0123456789 >"conftest.in"
3531 while :
3532 do
3533 cat "conftest.in" "conftest.in" >"conftest.tmp"
3534 mv "conftest.tmp" "conftest.in"
3535 cp "conftest.in" "conftest.nl"
3536 $as_echo 'EGREP' >> "conftest.nl"
3537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003539 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3541 # Best one so far, save it but keep looking for a better one
3542 ac_cv_path_EGREP="$ac_path_EGREP"
3543 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003544 fi
drh8b727472009-01-19 18:18:40 +00003545 # 10*(2^10) chars as input seems more than enough
3546 test $ac_count -gt 10 && break
3547 done
3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549esac
3550
3551 $ac_path_EGREP_found && break 3
3552 done
3553 done
drhf922ca42015-05-14 15:39:18 +00003554 done
drh8b727472009-01-19 18:18:40 +00003555IFS=$as_save_IFS
3556 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003557 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003558 fi
3559else
3560 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003561fi
drh8b727472009-01-19 18:18:40 +00003562
3563 fi
3564fi
drhf922ca42015-05-14 15:39:18 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003566$as_echo "$ac_cv_path_EGREP" >&6; }
3567 EGREP="$ac_cv_path_EGREP"
3568
3569
drhf922ca42015-05-14 15:39:18 +00003570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003571$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003572if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003573 $as_echo_n "(cached) " >&6
3574else
3575 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3576 then ac_cv_path_FGREP="$GREP -F"
3577 else
3578 if test -z "$FGREP"; then
3579 ac_path_FGREP_found=false
3580 # Loop through the user's path and test for each of PROGNAME-LIST
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003586 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003589 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003590# Check for GNU ac_path_FGREP and select it if it is found.
3591 # Check for GNU $ac_path_FGREP
3592case `"$ac_path_FGREP" --version 2>&1` in
3593*GNU*)
3594 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3595*)
3596 ac_count=0
3597 $as_echo_n 0123456789 >"conftest.in"
3598 while :
3599 do
3600 cat "conftest.in" "conftest.in" >"conftest.tmp"
3601 mv "conftest.tmp" "conftest.in"
3602 cp "conftest.in" "conftest.nl"
3603 $as_echo 'FGREP' >> "conftest.nl"
3604 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003606 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003607 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3608 # Best one so far, save it but keep looking for a better one
3609 ac_cv_path_FGREP="$ac_path_FGREP"
3610 ac_path_FGREP_max=$ac_count
3611 fi
3612 # 10*(2^10) chars as input seems more than enough
3613 test $ac_count -gt 10 && break
3614 done
3615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3616esac
3617
3618 $ac_path_FGREP_found && break 3
3619 done
3620 done
drhf922ca42015-05-14 15:39:18 +00003621 done
drh8b727472009-01-19 18:18:40 +00003622IFS=$as_save_IFS
3623 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003624 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003625 fi
3626else
3627 ac_cv_path_FGREP=$FGREP
3628fi
3629
3630 fi
3631fi
drhf922ca42015-05-14 15:39:18 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003633$as_echo "$ac_cv_path_FGREP" >&6; }
3634 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003635
3636
3637test -z "$GREP" && GREP=grep
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
a.rottmann9bc8b932004-02-29 15:18:31 +00003654
3655
a.rottmann84e63352003-03-24 09:42:16 +00003656
drh8b727472009-01-19 18:18:40 +00003657# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003658if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003660else
3661 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003662fi
3663
drh71eb93e2001-09-28 01:34:43 +00003664ac_prog=ld
3665if test "$GCC" = yes; then
3666 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003668$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003669 case $host in
3670 *-*-mingw*)
3671 # gcc leaves a trailing carriage return which upsets mingw
3672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3673 *)
3674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3675 esac
3676 case $ac_prog in
3677 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003678 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003679 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003680 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003681 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3682 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3683 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003684 done
3685 test -z "$LD" && LD="$ac_prog"
3686 ;;
3687 "")
3688 # If it fails, then pretend we aren't using GCC.
3689 ac_prog=ld
3690 ;;
3691 *)
3692 # If it is relative, then search for the first ld in PATH.
3693 with_gnu_ld=unknown
3694 ;;
3695 esac
3696elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003698$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003699else
drhf922ca42015-05-14 15:39:18 +00003700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003701$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003702fi
drhf922ca42015-05-14 15:39:18 +00003703if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003704 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003705else
3706 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003708 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003709 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003710 test -z "$ac_dir" && ac_dir=.
3711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3712 lt_cv_path_LD="$ac_dir/$ac_prog"
3713 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003714 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003715 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3717 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003718 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003719 ;;
3720 *)
drh71eb93e2001-09-28 01:34:43 +00003721 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003722 ;;
3723 esac
drh71eb93e2001-09-28 01:34:43 +00003724 fi
3725 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003726 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003727else
3728 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3729fi
3730fi
3731
3732LD="$lt_cv_path_LD"
3733if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003735$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003736else
drhf922ca42015-05-14 15:39:18 +00003737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003738$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003739fi
drhf922ca42015-05-14 15:39:18 +00003740test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003742$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003743if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003744 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003745else
vapier7f19c022007-02-17 14:46:31 +00003746 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003747case `$LD -v 2>&1 </dev/null` in
3748*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003749 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003750 ;;
3751*)
drh71eb93e2001-09-28 01:34:43 +00003752 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003753 ;;
3754esac
drh71eb93e2001-09-28 01:34:43 +00003755fi
drhf922ca42015-05-14 15:39:18 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003757$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003758with_gnu_ld=$lt_cv_prog_gnu_ld
3759
a.rottmann84e63352003-03-24 09:42:16 +00003760
drh71eb93e2001-09-28 01:34:43 +00003761
mlcreech636a9952008-05-05 22:52:56 +00003762
3763
3764
3765
3766
3767
drhf922ca42015-05-14 15:39:18 +00003768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003769$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003770if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003771 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003772else
3773 if test -n "$NM"; then
3774 # Let the user override the test.
3775 lt_cv_path_NM="$NM"
3776else
vapier7f19c022007-02-17 14:46:31 +00003777 lt_nm_to_check="${ac_tool_prefix}nm"
3778 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3779 lt_nm_to_check="$lt_nm_to_check nm"
3780 fi
3781 for lt_tmp_nm in $lt_nm_to_check; do
3782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3783 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3784 IFS="$lt_save_ifs"
3785 test -z "$ac_dir" && ac_dir=.
3786 tmp_nm="$ac_dir/$lt_tmp_nm"
3787 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3788 # Check to see if the nm accepts a BSD-compat flag.
3789 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3790 # nm: unknown option "B" ignored
3791 # Tru64's nm complains that /dev/null is an invalid object file
3792 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3793 */dev/null* | *'Invalid file or object type'*)
3794 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003795 break
3796 ;;
3797 *)
vapier7f19c022007-02-17 14:46:31 +00003798 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3799 */dev/null*)
3800 lt_cv_path_NM="$tmp_nm -p"
3801 break
3802 ;;
3803 *)
3804 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3805 continue # so that we can try to find one that supports BSD flags
3806 ;;
3807 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003808 ;;
3809 esac
vapier7f19c022007-02-17 14:46:31 +00003810 fi
3811 done
3812 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003813 done
mlcreech636a9952008-05-05 22:52:56 +00003814 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003815fi
3816fi
drhf922ca42015-05-14 15:39:18 +00003817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003818$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003819if test "$lt_cv_path_NM" != "no"; then
3820 NM="$lt_cv_path_NM"
3821else
3822 # Didn't find any BSD compatible name lister, look for dumpbin.
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003829$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003830if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003831 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003832else
3833 if test -n "$DUMPBIN"; then
3834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003845 break 2
3846 fi
3847done
drhf922ca42015-05-14 15:39:18 +00003848 done
drh8b727472009-01-19 18:18:40 +00003849IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003850
mlcreech636a9952008-05-05 22:52:56 +00003851fi
3852fi
3853DUMPBIN=$ac_cv_prog_DUMPBIN
3854if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003856$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003857else
drhf922ca42015-05-14 15:39:18 +00003858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003859$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003860fi
3861
drh8b727472009-01-19 18:18:40 +00003862
mlcreech636a9952008-05-05 22:52:56 +00003863 test -n "$DUMPBIN" && break
3864 done
3865fi
3866if test -z "$DUMPBIN"; then
3867 ac_ct_DUMPBIN=$DUMPBIN
3868 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3869do
3870 # Extract the first word of "$ac_prog", so it can be a program name with args.
3871set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003873$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003874if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003875 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003876else
3877 if test -n "$ac_ct_DUMPBIN"; then
3878 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003887 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003889 break 2
3890 fi
3891done
drhf922ca42015-05-14 15:39:18 +00003892 done
drh8b727472009-01-19 18:18:40 +00003893IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003894
3895fi
3896fi
3897ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3898if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003900$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003901else
drhf922ca42015-05-14 15:39:18 +00003902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003903$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003904fi
3905
drh8b727472009-01-19 18:18:40 +00003906
mlcreech636a9952008-05-05 22:52:56 +00003907 test -n "$ac_ct_DUMPBIN" && break
3908done
3909
drh8b727472009-01-19 18:18:40 +00003910 if test "x$ac_ct_DUMPBIN" = x; then
3911 DUMPBIN=":"
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914yes:)
drhf922ca42015-05-14 15:39:18 +00003915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003917ac_tool_warned=yes ;;
3918esac
3919 DUMPBIN=$ac_ct_DUMPBIN
3920 fi
mlcreech636a9952008-05-05 22:52:56 +00003921fi
3922
3923
3924 if test "$DUMPBIN" != ":"; then
3925 NM="$DUMPBIN"
3926 fi
3927fi
3928test -z "$NM" && NM=nm
3929
3930
3931
3932
3933
3934
drhf922ca42015-05-14 15:39:18 +00003935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003936$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003937if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003938 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003939else
3940 lt_cv_nm_interface="BSD nm"
3941 echo "int some_variable = 0;" > conftest.$ac_ext
drhe2ce8c42020-12-07 21:19:17 +00003942 (eval echo "\"\$as_me:3940: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003943 (eval "$ac_compile" 2>conftest.err)
3944 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00003945 (eval echo "\"\$as_me:3943: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003946 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3947 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00003948 (eval echo "\"\$as_me:3946: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003949 cat conftest.out >&5
3950 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3951 lt_cv_nm_interface="MS dumpbin"
3952 fi
3953 rm -f conftest*
3954fi
drhf922ca42015-05-14 15:39:18 +00003955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003956$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003957
drhf922ca42015-05-14 15:39:18 +00003958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003959$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003960LN_S=$as_ln_s
3961if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003963$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003964else
drhf922ca42015-05-14 15:39:18 +00003965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003966$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003967fi
3968
mlcreech636a9952008-05-05 22:52:56 +00003969# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003971$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003972if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003973 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003974else
3975 i=0
3976 teststring="ABCD"
3977
3978 case $build_os in
3979 msdosdjgpp*)
3980 # On DJGPP, this test can blow up pretty badly due to problems in libc
3981 # (any single argument exceeding 2000 bytes causes a buffer overrun
3982 # during glob expansion). Even if it were fixed, the result of this
3983 # check would be larger than it should be.
3984 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3985 ;;
3986
3987 gnu*)
3988 # Under GNU Hurd, this test is not required because there is
3989 # no limit to the length of command line arguments.
3990 # Libtool will interpret -1 as no limit whatsoever
3991 lt_cv_sys_max_cmd_len=-1;
3992 ;;
3993
vapier6acb2cf2009-01-28 04:46:28 +00003994 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003995 # On Win9x/ME, this test blows up -- it succeeds, but takes
3996 # about 5 minutes as the teststring grows exponentially.
3997 # Worse, since 9x/ME are not pre-emptively multitasking,
3998 # you end up with a "frozen" computer, even though with patience
3999 # the test eventually succeeds (with a max line length of 256k).
4000 # Instead, let's just punt: use the minimum linelength reported by
4001 # all of the supported platforms: 8192 (on NT/2K/XP).
4002 lt_cv_sys_max_cmd_len=8192;
4003 ;;
4004
4005 amigaos*)
4006 # On AmigaOS with pdksh, this test takes hours, literally.
4007 # So we just punt and use a minimum line length of 8192.
4008 lt_cv_sys_max_cmd_len=8192;
4009 ;;
4010
4011 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4012 # This has been around since 386BSD, at least. Likely further.
4013 if test -x /sbin/sysctl; then
4014 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4015 elif test -x /usr/sbin/sysctl; then
4016 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4017 else
4018 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4019 fi
4020 # And add a safety zone
4021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4023 ;;
4024
4025 interix*)
4026 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4027 lt_cv_sys_max_cmd_len=196608
4028 ;;
4029
4030 osf*)
4031 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4032 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4033 # nice to cause kernel panics so lets avoid the loop below.
4034 # First set a reasonable default.
4035 lt_cv_sys_max_cmd_len=16384
4036 #
4037 if test -x /sbin/sysconfig; then
4038 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4039 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4040 esac
4041 fi
4042 ;;
4043 sco3.2v5*)
4044 lt_cv_sys_max_cmd_len=102400
4045 ;;
4046 sysv5* | sco5v6* | sysv4.2uw2*)
4047 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4048 if test -n "$kargmax"; then
4049 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4050 else
4051 lt_cv_sys_max_cmd_len=32768
4052 fi
4053 ;;
4054 *)
4055 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4056 if test -n "$lt_cv_sys_max_cmd_len"; then
4057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4059 else
4060 # Make teststring a little bigger before we do anything with it.
4061 # a 1K string should be a reasonable start.
4062 for i in 1 2 3 4 5 6 7 8 ; do
4063 teststring=$teststring$teststring
4064 done
4065 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4066 # If test is not a shell built-in, we'll probably end up computing a
4067 # maximum length that is only half of the actual maximum length, but
4068 # we can't tell.
4069 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4070 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4071 test $i != 17 # 1/2 MB should be enough
4072 do
4073 i=`expr $i + 1`
4074 teststring=$teststring$teststring
4075 done
4076 # Only check the string length outside the loop.
4077 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4078 teststring=
4079 # Add a significant safety factor because C++ compilers can tack on
4080 # massive amounts of additional arguments before passing them to the
4081 # linker. It appears as though 1/2 is a usable value.
4082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4083 fi
4084 ;;
4085 esac
4086
4087fi
4088
4089if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004091$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004092else
drhf922ca42015-05-14 15:39:18 +00004093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004094$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004095fi
4096max_cmd_len=$lt_cv_sys_max_cmd_len
4097
4098
4099
4100
4101
4102
4103: ${CP="cp -f"}
4104: ${MV="mv -f"}
4105: ${RM="rm -f"}
4106
drhf922ca42015-05-14 15:39:18 +00004107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004108$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004109# Try some XSI features
4110xsi_shell=no
4111( _lt_dummy="a/b/c"
4112 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4113 = c,a/b,, \
4114 && eval 'test $(( 1 + 1 )) -eq 2 \
4115 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4116 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004118$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004119
4120
drhf922ca42015-05-14 15:39:18 +00004121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004122$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004123lt_shell_append=no
4124( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4125 >/dev/null 2>&1 \
4126 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004128$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004129
4130
4131if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4132 lt_unset=unset
4133else
4134 lt_unset=false
4135fi
4136
4137
4138
4139
4140
4141# test EBCDIC or ASCII
4142case `echo X|tr X '\101'` in
4143 A) # ASCII based system
4144 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4145 lt_SP2NL='tr \040 \012'
4146 lt_NL2SP='tr \015\012 \040\040'
4147 ;;
4148 *) # EBCDIC based system
4149 lt_SP2NL='tr \100 \n'
4150 lt_NL2SP='tr \r\n \100\100'
4151 ;;
4152esac
4153
4154
4155
4156
4157
4158
4159
4160
4161
drhf922ca42015-05-14 15:39:18 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004163$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004164if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004165 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004166else
4167 lt_cv_ld_reload_flag='-r'
4168fi
drhf922ca42015-05-14 15:39:18 +00004169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004170$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004171reload_flag=$lt_cv_ld_reload_flag
4172case $reload_flag in
4173"" | " "*) ;;
4174*) reload_flag=" $reload_flag" ;;
4175esac
4176reload_cmds='$LD$reload_flag -o $output$reload_objs'
4177case $host_os in
4178 darwin*)
4179 if test "$GCC" = yes; then
4180 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4181 else
4182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4183 fi
4184 ;;
4185esac
4186
4187
4188
4189
4190
4191
4192
4193
4194
vapier6acb2cf2009-01-28 04:46:28 +00004195if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4197set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004199$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004200if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004201 $as_echo_n "(cached) " >&6
4202else
4203 if test -n "$OBJDUMP"; then
4204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004215 break 2
4216 fi
4217done
drhf922ca42015-05-14 15:39:18 +00004218 done
vapier6acb2cf2009-01-28 04:46:28 +00004219IFS=$as_save_IFS
4220
4221fi
4222fi
4223OBJDUMP=$ac_cv_prog_OBJDUMP
4224if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004226$as_echo "$OBJDUMP" >&6; }
4227else
drhf922ca42015-05-14 15:39:18 +00004228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004229$as_echo "no" >&6; }
4230fi
4231
4232
4233fi
4234if test -z "$ac_cv_prog_OBJDUMP"; then
4235 ac_ct_OBJDUMP=$OBJDUMP
4236 # Extract the first word of "objdump", so it can be a program name with args.
4237set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004239$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004240if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004241 $as_echo_n "(cached) " >&6
4242else
4243 if test -n "$ac_ct_OBJDUMP"; then
4244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004253 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004255 break 2
4256 fi
4257done
drhf922ca42015-05-14 15:39:18 +00004258 done
vapier6acb2cf2009-01-28 04:46:28 +00004259IFS=$as_save_IFS
4260
4261fi
4262fi
4263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4264if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004266$as_echo "$ac_ct_OBJDUMP" >&6; }
4267else
drhf922ca42015-05-14 15:39:18 +00004268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004269$as_echo "no" >&6; }
4270fi
4271
4272 if test "x$ac_ct_OBJDUMP" = x; then
4273 OBJDUMP="false"
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276yes:)
drhf922ca42015-05-14 15:39:18 +00004277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004279ac_tool_warned=yes ;;
4280esac
4281 OBJDUMP=$ac_ct_OBJDUMP
4282 fi
4283else
4284 OBJDUMP="$ac_cv_prog_OBJDUMP"
4285fi
4286
4287test -z "$OBJDUMP" && OBJDUMP=objdump
4288
4289
4290
4291
4292
4293
4294
4295
mlcreech636a9952008-05-05 22:52:56 +00004296
drhf922ca42015-05-14 15:39:18 +00004297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004298$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004299if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004300 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004301else
4302 lt_cv_file_magic_cmd='$MAGIC_CMD'
4303lt_cv_file_magic_test_file=
4304lt_cv_deplibs_check_method='unknown'
4305# Need to set the preceding variable on all platforms that support
4306# interlibrary dependencies.
4307# 'none' -- dependencies not supported.
4308# `unknown' -- same as none, but documents that we really don't know.
4309# 'pass_all' -- all dependencies passed with no checks.
4310# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004311# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004312# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004313# If you have `file' or equivalent on your system and you're not sure
4314# whether `pass_all' will *always* work, you probably want this one.
4315
4316case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004317aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321beos*)
4322 lt_cv_deplibs_check_method=pass_all
4323 ;;
4324
vapier7f19c022007-02-17 14:46:31 +00004325bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4327 lt_cv_file_magic_cmd='/usr/bin/file -L'
4328 lt_cv_file_magic_test_file=/shlib/libc.so
4329 ;;
4330
a.rottmann9bc8b932004-02-29 15:18:31 +00004331cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004332 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004334 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004335 ;;
4336
4337mingw* | pw32*)
4338 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004339 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4340 # unless we find 'file', for example because we are cross-compiling.
4341 if ( file / ) >/dev/null 2>&1; then
4342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4343 lt_cv_file_magic_cmd='func_win32_libid'
4344 else
4345 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4346 lt_cv_file_magic_cmd='$OBJDUMP -f'
4347 fi
drh71eb93e2001-09-28 01:34:43 +00004348 ;;
4349
vapier6acb2cf2009-01-28 04:46:28 +00004350cegcc)
4351 # use the weaker test based on 'objdump'. See mingw*.
4352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4353 lt_cv_file_magic_cmd='$OBJDUMP -f'
4354 ;;
4355
drh71eb93e2001-09-28 01:34:43 +00004356darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004357 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004358 ;;
4359
mlcreech636a9952008-05-05 22:52:56 +00004360freebsd* | dragonfly*)
4361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004362 case $host_cpu in
4363 i*86 )
4364 # Not sure whether the presence of OpenBSD here was a mistake.
4365 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
drh71eb93e2001-09-28 01:34:43 +00004367 lt_cv_file_magic_cmd=/usr/bin/file
4368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4369 ;;
4370 esac
4371 else
4372 lt_cv_deplibs_check_method=pass_all
4373 fi
4374 ;;
4375
4376gnu*)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379
a.rottmann9bc8b932004-02-29 15:18:31 +00004380hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004381 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004382 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004383 ia64*)
4384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4386 ;;
4387 hppa*64*)
4388 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]'
4389 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4390 ;;
4391 *)
4392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4393 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4394 ;;
4395 esac
drh71eb93e2001-09-28 01:34:43 +00004396 ;;
4397
mlcreech636a9952008-05-05 22:52:56 +00004398interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004399 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4401 ;;
4402
a.rottmann84e63352003-03-24 09:42:16 +00004403irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004404 case $LD in
4405 *-32|*"-32 ") libmagic=32-bit;;
4406 *-n32|*"-n32 ") libmagic=N32;;
4407 *-64|*"-64 ") libmagic=64-bit;;
4408 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004409 esac
drh71eb93e2001-09-28 01:34:43 +00004410 lt_cv_deplibs_check_method=pass_all
4411 ;;
4412
4413# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004414linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004415 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004416 ;;
4417
vapier7f19c022007-02-17 14:46:31 +00004418netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004421 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004423 fi
4424 ;;
4425
4426newos6*)
4427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4428 lt_cv_file_magic_cmd=/usr/bin/file
4429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4430 ;;
4431
mlcreech636a9952008-05-05 22:52:56 +00004432*nto* | *qnx*)
4433 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004434 ;;
4435
a.rottmann84e63352003-03-24 09:42:16 +00004436openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004439 else
vapier7f19c022007-02-17 14:46:31 +00004440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004441 fi
drh71eb93e2001-09-28 01:34:43 +00004442 ;;
4443
4444osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004445 lt_cv_deplibs_check_method=pass_all
4446 ;;
4447
mlcreech636a9952008-05-05 22:52:56 +00004448rdos*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
drh71eb93e2001-09-28 01:34:43 +00004452solaris*)
4453 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004454 ;;
4455
mlcreech636a9952008-05-05 22:52:56 +00004456sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
4459
vapier7f19c022007-02-17 14:46:31 +00004460sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004461 case $host_vendor in
4462 motorola)
4463 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]'
4464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4465 ;;
4466 ncr)
4467 lt_cv_deplibs_check_method=pass_all
4468 ;;
4469 sequent)
4470 lt_cv_file_magic_cmd='/bin/file'
4471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4472 ;;
4473 sni)
4474 lt_cv_file_magic_cmd='/bin/file'
4475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4476 lt_cv_file_magic_test_file=/lib/libc.so
4477 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004478 siemens)
4479 lt_cv_deplibs_check_method=pass_all
4480 ;;
vapier7f19c022007-02-17 14:46:31 +00004481 pc)
4482 lt_cv_deplibs_check_method=pass_all
4483 ;;
drh71eb93e2001-09-28 01:34:43 +00004484 esac
4485 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004486
mlcreech636a9952008-05-05 22:52:56 +00004487tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004488 lt_cv_deplibs_check_method=pass_all
4489 ;;
drh71eb93e2001-09-28 01:34:43 +00004490esac
4491
4492fi
drhf922ca42015-05-14 15:39:18 +00004493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004494$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004495file_magic_cmd=$lt_cv_file_magic_cmd
4496deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004497test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004498
drh71eb93e2001-09-28 01:34:43 +00004499
drh71eb93e2001-09-28 01:34:43 +00004500
drh71eb93e2001-09-28 01:34:43 +00004501
mlcreech636a9952008-05-05 22:52:56 +00004502
4503
4504
4505
4506
4507
4508
4509
4510if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4512set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004514$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004515if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004516 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004517else
4518 if test -n "$AR"; then
4519 ac_cv_prog_AR="$AR" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004528 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004530 break 2
4531 fi
4532done
drhf922ca42015-05-14 15:39:18 +00004533 done
drh8b727472009-01-19 18:18:40 +00004534IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004535
4536fi
4537fi
4538AR=$ac_cv_prog_AR
4539if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004541$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004542else
drhf922ca42015-05-14 15:39:18 +00004543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004544$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004545fi
4546
drh8b727472009-01-19 18:18:40 +00004547
mlcreech636a9952008-05-05 22:52:56 +00004548fi
4549if test -z "$ac_cv_prog_AR"; then
4550 ac_ct_AR=$AR
4551 # Extract the first word of "ar", so it can be a program name with args.
4552set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004554$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004555if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004556 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004557else
4558 if test -n "$ac_ct_AR"; then
4559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004568 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004570 break 2
4571 fi
4572done
drhf922ca42015-05-14 15:39:18 +00004573 done
drh8b727472009-01-19 18:18:40 +00004574IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004575
4576fi
4577fi
4578ac_ct_AR=$ac_cv_prog_ac_ct_AR
4579if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004581$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004582else
drhf922ca42015-05-14 15:39:18 +00004583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004584$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004585fi
4586
drh8b727472009-01-19 18:18:40 +00004587 if test "x$ac_ct_AR" = x; then
4588 AR="false"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591yes:)
drhf922ca42015-05-14 15:39:18 +00004592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004594ac_tool_warned=yes ;;
4595esac
4596 AR=$ac_ct_AR
4597 fi
mlcreech636a9952008-05-05 22:52:56 +00004598else
4599 AR="$ac_cv_prog_AR"
4600fi
4601
4602test -z "$AR" && AR=ar
4603test -z "$AR_FLAGS" && AR_FLAGS=cru
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615if test -n "$ac_tool_prefix"; then
4616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4617set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004619$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004620if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004621 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004622else
4623 if test -n "$STRIP"; then
4624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004635 break 2
4636 fi
4637done
drhf922ca42015-05-14 15:39:18 +00004638 done
drh8b727472009-01-19 18:18:40 +00004639IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004640
4641fi
4642fi
4643STRIP=$ac_cv_prog_STRIP
4644if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004646$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004647else
drhf922ca42015-05-14 15:39:18 +00004648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004649$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004650fi
4651
drh8b727472009-01-19 18:18:40 +00004652
mlcreech636a9952008-05-05 22:52:56 +00004653fi
4654if test -z "$ac_cv_prog_STRIP"; then
4655 ac_ct_STRIP=$STRIP
4656 # Extract the first word of "strip", so it can be a program name with args.
4657set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004659$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004660if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004661 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004662else
4663 if test -n "$ac_ct_STRIP"; then
4664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004673 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004675 break 2
4676 fi
4677done
drhf922ca42015-05-14 15:39:18 +00004678 done
drh8b727472009-01-19 18:18:40 +00004679IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004680
4681fi
4682fi
4683ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4684if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004686$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004687else
drhf922ca42015-05-14 15:39:18 +00004688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004689$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004690fi
4691
drh8b727472009-01-19 18:18:40 +00004692 if test "x$ac_ct_STRIP" = x; then
4693 STRIP=":"
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696yes:)
drhf922ca42015-05-14 15:39:18 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004699ac_tool_warned=yes ;;
4700esac
4701 STRIP=$ac_ct_STRIP
4702 fi
mlcreech636a9952008-05-05 22:52:56 +00004703else
4704 STRIP="$ac_cv_prog_STRIP"
4705fi
4706
4707test -z "$STRIP" && STRIP=:
4708
4709
4710
4711
4712
4713
4714if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4716set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004718$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004719if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004720 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004721else
4722 if test -n "$RANLIB"; then
4723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004734 break 2
4735 fi
4736done
drhf922ca42015-05-14 15:39:18 +00004737 done
drh8b727472009-01-19 18:18:40 +00004738IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004739
4740fi
4741fi
4742RANLIB=$ac_cv_prog_RANLIB
4743if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004745$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004746else
drhf922ca42015-05-14 15:39:18 +00004747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004748$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004749fi
4750
drh8b727472009-01-19 18:18:40 +00004751
mlcreech636a9952008-05-05 22:52:56 +00004752fi
4753if test -z "$ac_cv_prog_RANLIB"; then
4754 ac_ct_RANLIB=$RANLIB
4755 # Extract the first word of "ranlib", so it can be a program name with args.
4756set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004758$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004759if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004760 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004761else
4762 if test -n "$ac_ct_RANLIB"; then
4763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4764else
4765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004772 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004774 break 2
4775 fi
4776done
drhf922ca42015-05-14 15:39:18 +00004777 done
drh8b727472009-01-19 18:18:40 +00004778IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004779
4780fi
4781fi
4782ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4783if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004785$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004786else
drhf922ca42015-05-14 15:39:18 +00004787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004788$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004789fi
4790
drh8b727472009-01-19 18:18:40 +00004791 if test "x$ac_ct_RANLIB" = x; then
4792 RANLIB=":"
4793 else
4794 case $cross_compiling:$ac_tool_warned in
4795yes:)
drhf922ca42015-05-14 15:39:18 +00004796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004798ac_tool_warned=yes ;;
4799esac
4800 RANLIB=$ac_ct_RANLIB
4801 fi
mlcreech636a9952008-05-05 22:52:56 +00004802else
4803 RANLIB="$ac_cv_prog_RANLIB"
4804fi
4805
4806test -z "$RANLIB" && RANLIB=:
4807
4808
4809
4810
4811
4812
4813# Determine commands to create old-style static archives.
4814old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4815old_postinstall_cmds='chmod 644 $oldlib'
4816old_postuninstall_cmds=
4817
4818if test -n "$RANLIB"; then
4819 case $host_os in
4820 openbsd*)
4821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4822 ;;
4823 *)
4824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4825 ;;
4826 esac
4827 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4828fi
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
a.rottmann9bc8b932004-02-29 15:18:31 +00004863# If no C compiler was specified, use CC.
4864LTCC=${LTCC-"$CC"}
4865
vapier7f19c022007-02-17 14:46:31 +00004866# If no C compiler flags were specified, use CFLAGS.
4867LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4868
a.rottmann9bc8b932004-02-29 15:18:31 +00004869# Allow CC to be a program name with arguments.
4870compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004871
drh71eb93e2001-09-28 01:34:43 +00004872
mlcreech636a9952008-05-05 22:52:56 +00004873# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004875$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004876if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004877 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004878else
4879
4880# These are sane defaults that work on at least a few old systems.
4881# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4882
4883# Character class describing NM global symbol codes.
4884symcode='[BCDEGRST]'
4885
4886# Regexp to match symbols that can be accessed directly from C.
4887sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4888
4889# Define system-specific variables.
4890case $host_os in
4891aix*)
4892 symcode='[BCDT]'
4893 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004894cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004895 symcode='[ABCDGISTW]'
4896 ;;
4897hpux*)
4898 if test "$host_cpu" = ia64; then
4899 symcode='[ABCDEGRST]'
4900 fi
4901 ;;
4902irix* | nonstopux*)
4903 symcode='[BCDEGRST]'
4904 ;;
4905osf*)
4906 symcode='[BCDEGQRST]'
4907 ;;
4908solaris*)
4909 symcode='[BDRT]'
4910 ;;
4911sco3.2v5*)
4912 symcode='[DT]'
4913 ;;
4914sysv4.2uw2*)
4915 symcode='[DT]'
4916 ;;
4917sysv5* | sco5v6* | unixware* | OpenUNIX*)
4918 symcode='[ABDT]'
4919 ;;
4920sysv4)
4921 symcode='[DFNSTU]'
4922 ;;
4923esac
4924
4925# If we're using GNU nm, then use its standard symbol codes.
4926case `$NM -V 2>&1` in
4927*GNU* | *'with BFD'*)
4928 symcode='[ABCDGIRSTW]' ;;
4929esac
4930
4931# Transform an extracted symbol line into a proper C declaration.
4932# Some systems (esp. on ia64) link data and code symbols differently,
4933# so use this general approach.
4934lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4935
4936# Transform an extracted symbol line into symbol name and symbol address
4937lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4938lt_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'"
4939
4940# Handle CRLF in mingw tool chain
4941opt_cr=
4942case $build_os in
4943mingw*)
4944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4945 ;;
4946esac
4947
4948# Try without a prefix underscore, then with it.
4949for ac_symprfx in "" "_"; do
4950
4951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4952 symxfrm="\\1 $ac_symprfx\\2 \\2"
4953
4954 # Write the raw and C identifiers.
4955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4956 # Fake it for dumpbin and say T for any non-static function
4957 # and D for any global variable.
4958 # Also find C++ and __fastcall symbols from MSVC++,
4959 # which start with @ or ?.
4960 lt_cv_sys_global_symbol_pipe="$AWK '"\
4961" {last_section=section; section=\$ 3};"\
4962" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4963" \$ 0!~/External *\|/{next};"\
4964" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4965" {if(hide[section]) next};"\
4966" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4967" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4968" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4969" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4970" ' prfx=^$ac_symprfx"
4971 else
4972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4973 fi
4974
4975 # Check to see that the pipe works correctly.
4976 pipe_works=no
4977
4978 rm -f conftest*
4979 cat > conftest.$ac_ext <<_LT_EOF
4980#ifdef __cplusplus
4981extern "C" {
4982#endif
4983char nm_test_var;
4984void nm_test_func(void);
4985void nm_test_func(void){}
4986#ifdef __cplusplus
4987}
4988#endif
4989int main(){nm_test_var='a';nm_test_func();return(0);}
4990_LT_EOF
4991
drhf922ca42015-05-14 15:39:18 +00004992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004993 (eval $ac_compile) 2>&5
4994 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004997 # Now try to grab the symbols.
4998 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005000 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5001 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005004 # Try sorting and uniquifying the output.
5005 if sort "$nlist" | uniq > "$nlist"T; then
5006 mv -f "$nlist"T "$nlist"
5007 else
5008 rm -f "$nlist"T
5009 fi
5010
5011 # Make sure that we snagged all the symbols we need.
5012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5014 cat <<_LT_EOF > conftest.$ac_ext
5015#ifdef __cplusplus
5016extern "C" {
5017#endif
5018
5019_LT_EOF
5020 # Now generate the symbol file.
5021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5022
5023 cat <<_LT_EOF >> conftest.$ac_ext
5024
5025/* The mapping between symbol names and symbols. */
5026const struct {
5027 const char *name;
5028 void *address;
5029}
5030lt__PROGRAM__LTX_preloaded_symbols[] =
5031{
5032 { "@PROGRAM@", (void *) 0 },
5033_LT_EOF
5034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5035 cat <<\_LT_EOF >> conftest.$ac_ext
5036 {0, (void *) 0}
5037};
5038
5039/* This works around a problem in FreeBSD linker */
5040#ifdef FREEBSD_WORKAROUND
5041static const void *lt_preloaded_setup() {
5042 return lt__PROGRAM__LTX_preloaded_symbols;
5043}
5044#endif
5045
5046#ifdef __cplusplus
5047}
5048#endif
5049_LT_EOF
5050 # Now try linking the two files.
5051 mv conftest.$ac_objext conftstm.$ac_objext
5052 lt_save_LIBS="$LIBS"
5053 lt_save_CFLAGS="$CFLAGS"
5054 LIBS="conftstm.$ac_objext"
5055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005057 (eval $ac_link) 2>&5
5058 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005061 pipe_works=yes
5062 fi
5063 LIBS="$lt_save_LIBS"
5064 CFLAGS="$lt_save_CFLAGS"
5065 else
5066 echo "cannot find nm_test_func in $nlist" >&5
5067 fi
5068 else
5069 echo "cannot find nm_test_var in $nlist" >&5
5070 fi
5071 else
5072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5073 fi
5074 else
5075 echo "$progname: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5077 fi
5078 rm -rf conftest* conftst*
5079
5080 # Do not use the global_symbol_pipe unless it works.
5081 if test "$pipe_works" = yes; then
5082 break
5083 else
5084 lt_cv_sys_global_symbol_pipe=
5085 fi
5086done
5087
5088fi
5089
5090if test -z "$lt_cv_sys_global_symbol_pipe"; then
5091 lt_cv_sys_global_symbol_to_cdecl=
5092fi
5093if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005095$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005096else
drhf922ca42015-05-14 15:39:18 +00005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005098$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005099fi
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
drh8b727472009-01-19 18:18:40 +00005123# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005124if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005125 enableval=$enable_libtool_lock;
5126fi
drh71eb93e2001-09-28 01:34:43 +00005127
a.rottmann9bc8b932004-02-29 15:18:31 +00005128test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005129
a.rottmann9bc8b932004-02-29 15:18:31 +00005130# Some flags need to be propagated to the compiler or linker for good
5131# libtool support.
5132case $host in
5133ia64-*-hpux*)
5134 # Find out which ABI we are using.
5135 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005137 (eval $ac_compile) 2>&5
5138 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005141 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005142 *ELF-32*)
5143 HPUX_IA64_MODE="32"
5144 ;;
5145 *ELF-64*)
5146 HPUX_IA64_MODE="64"
5147 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005148 esac
5149 fi
5150 rm -rf conftest*
5151 ;;
5152*-*-irix6*)
5153 # Find out which ABI we are using.
drhe2ce8c42020-12-07 21:19:17 +00005154 echo '#line 5152 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005156 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005157 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005160 if test "$lt_cv_prog_gnu_ld" = yes; then
5161 case `/usr/bin/file conftest.$ac_objext` in
5162 *32-bit*)
5163 LD="${LD-ld} -melf32bsmip"
5164 ;;
5165 *N32*)
5166 LD="${LD-ld} -melf32bmipn32"
5167 ;;
5168 *64-bit*)
5169 LD="${LD-ld} -melf64bmip"
5170 ;;
5171 esac
5172 else
5173 case `/usr/bin/file conftest.$ac_objext` in
5174 *32-bit*)
5175 LD="${LD-ld} -32"
5176 ;;
5177 *N32*)
5178 LD="${LD-ld} -n32"
5179 ;;
5180 *64-bit*)
5181 LD="${LD-ld} -64"
5182 ;;
5183 esac
5184 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005185 fi
5186 rm -rf conftest*
5187 ;;
drh71eb93e2001-09-28 01:34:43 +00005188
mlcreech636a9952008-05-05 22:52:56 +00005189x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5190s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005191 # Find out which ABI we are using.
5192 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005194 (eval $ac_compile) 2>&5
5195 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005198 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005199 *32-bit*)
5200 case $host in
5201 x86_64-*kfreebsd*-gnu)
5202 LD="${LD-ld} -m elf_i386_fbsd"
5203 ;;
5204 x86_64-*linux*)
5205 LD="${LD-ld} -m elf_i386"
5206 ;;
5207 ppc64-*linux*|powerpc64-*linux*)
5208 LD="${LD-ld} -m elf32ppclinux"
5209 ;;
5210 s390x-*linux*)
5211 LD="${LD-ld} -m elf_s390"
5212 ;;
5213 sparc64-*linux*)
5214 LD="${LD-ld} -m elf32_sparc"
5215 ;;
5216 esac
5217 ;;
5218 *64-bit*)
5219 case $host in
5220 x86_64-*kfreebsd*-gnu)
5221 LD="${LD-ld} -m elf_x86_64_fbsd"
5222 ;;
5223 x86_64-*linux*)
5224 LD="${LD-ld} -m elf_x86_64"
5225 ;;
5226 ppc*-*linux*|powerpc*-*linux*)
5227 LD="${LD-ld} -m elf64ppc"
5228 ;;
5229 s390*-*linux*|s390*-*tpf*)
5230 LD="${LD-ld} -m elf64_s390"
5231 ;;
5232 sparc*-*linux*)
5233 LD="${LD-ld} -m elf64_sparc"
5234 ;;
5235 esac
5236 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005237 esac
5238 fi
5239 rm -rf conftest*
5240 ;;
drh71eb93e2001-09-28 01:34:43 +00005241
a.rottmann9bc8b932004-02-29 15:18:31 +00005242*-*-sco3.2v5*)
5243 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5244 SAVE_CFLAGS="$CFLAGS"
5245 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005247$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005248if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005249 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005250else
5251 ac_ext=c
5252ac_cpp='$CPP $CPPFLAGS'
5253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005256
drhf922ca42015-05-14 15:39:18 +00005257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005258/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005259
a.rottmann9bc8b932004-02-29 15:18:31 +00005260int
5261main ()
drh71eb93e2001-09-28 01:34:43 +00005262{
drh71eb93e2001-09-28 01:34:43 +00005263
a.rottmann9bc8b932004-02-29 15:18:31 +00005264 ;
5265 return 0;
drh71eb93e2001-09-28 01:34:43 +00005266}
a.rottmann9bc8b932004-02-29 15:18:31 +00005267_ACEOF
drhf922ca42015-05-14 15:39:18 +00005268if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005269 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005270else
drhf922ca42015-05-14 15:39:18 +00005271 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005272fi
drhf922ca42015-05-14 15:39:18 +00005273rm -f core conftest.err conftest.$ac_objext \
5274 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005275 ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
drh71eb93e2001-09-28 01:34:43 +00005281fi
drhf922ca42015-05-14 15:39:18 +00005282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005283$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005284 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5285 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5286 CFLAGS="$SAVE_CFLAGS"
5287 fi
5288 ;;
vapier7f19c022007-02-17 14:46:31 +00005289sparc*-*solaris*)
5290 # Find out which ABI we are using.
5291 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005293 (eval $ac_compile) 2>&5
5294 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5296 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005297 case `/usr/bin/file conftest.o` in
5298 *64-bit*)
5299 case $lt_cv_prog_gnu_ld in
5300 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005301 *)
5302 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5303 LD="${LD-ld} -64"
5304 fi
5305 ;;
vapier7f19c022007-02-17 14:46:31 +00005306 esac
5307 ;;
5308 esac
5309 fi
5310 rm -rf conftest*
5311 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005312esac
5313
5314need_locks="$enable_libtool_lock"
5315
drh71eb93e2001-09-28 01:34:43 +00005316
mlcreech636a9952008-05-05 22:52:56 +00005317 case $host_os in
5318 rhapsody* | darwin*)
5319 if test -n "$ac_tool_prefix"; then
5320 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5321set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005323$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005324if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005325 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005326else
5327 if test -n "$DSYMUTIL"; then
5328 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5329else
5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005337 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005339 break 2
5340 fi
5341done
drhf922ca42015-05-14 15:39:18 +00005342 done
drh8b727472009-01-19 18:18:40 +00005343IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005344
5345fi
5346fi
5347DSYMUTIL=$ac_cv_prog_DSYMUTIL
5348if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005350$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005351else
drhf922ca42015-05-14 15:39:18 +00005352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005353$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005354fi
5355
drh8b727472009-01-19 18:18:40 +00005356
mlcreech636a9952008-05-05 22:52:56 +00005357fi
5358if test -z "$ac_cv_prog_DSYMUTIL"; then
5359 ac_ct_DSYMUTIL=$DSYMUTIL
5360 # Extract the first word of "dsymutil", so it can be a program name with args.
5361set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005363$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005364if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005365 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005366else
5367 if test -n "$ac_ct_DSYMUTIL"; then
5368 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5369else
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005377 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005379 break 2
5380 fi
5381done
drhf922ca42015-05-14 15:39:18 +00005382 done
drh8b727472009-01-19 18:18:40 +00005383IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005384
5385fi
5386fi
5387ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5388if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005390$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005391else
drhf922ca42015-05-14 15:39:18 +00005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005393$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005394fi
5395
drh8b727472009-01-19 18:18:40 +00005396 if test "x$ac_ct_DSYMUTIL" = x; then
5397 DSYMUTIL=":"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400yes:)
drhf922ca42015-05-14 15:39:18 +00005401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005403ac_tool_warned=yes ;;
5404esac
5405 DSYMUTIL=$ac_ct_DSYMUTIL
5406 fi
mlcreech636a9952008-05-05 22:52:56 +00005407else
5408 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5409fi
5410
5411 if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5413set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005415$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005416if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005417 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005418else
5419 if test -n "$NMEDIT"; then
5420 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5421else
5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005429 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005431 break 2
5432 fi
5433done
drhf922ca42015-05-14 15:39:18 +00005434 done
drh8b727472009-01-19 18:18:40 +00005435IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005436
5437fi
5438fi
5439NMEDIT=$ac_cv_prog_NMEDIT
5440if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005442$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005443else
drhf922ca42015-05-14 15:39:18 +00005444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005445$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005446fi
5447
drh8b727472009-01-19 18:18:40 +00005448
mlcreech636a9952008-05-05 22:52:56 +00005449fi
5450if test -z "$ac_cv_prog_NMEDIT"; then
5451 ac_ct_NMEDIT=$NMEDIT
5452 # Extract the first word of "nmedit", so it can be a program name with args.
5453set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005455$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005456if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005457 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005458else
5459 if test -n "$ac_ct_NMEDIT"; then
5460 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005469 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005471 break 2
5472 fi
5473done
drhf922ca42015-05-14 15:39:18 +00005474 done
drh8b727472009-01-19 18:18:40 +00005475IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005476
5477fi
5478fi
5479ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5480if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005482$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005483else
drhf922ca42015-05-14 15:39:18 +00005484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005485$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005486fi
5487
drh8b727472009-01-19 18:18:40 +00005488 if test "x$ac_ct_NMEDIT" = x; then
5489 NMEDIT=":"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492yes:)
drhf922ca42015-05-14 15:39:18 +00005493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005495ac_tool_warned=yes ;;
5496esac
5497 NMEDIT=$ac_ct_NMEDIT
5498 fi
mlcreech636a9952008-05-05 22:52:56 +00005499else
5500 NMEDIT="$ac_cv_prog_NMEDIT"
5501fi
5502
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5505set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005507$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005508if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005509 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005510else
5511 if test -n "$LIPO"; then
5512 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5513else
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005521 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005523 break 2
5524 fi
5525done
drhf922ca42015-05-14 15:39:18 +00005526 done
drh8b727472009-01-19 18:18:40 +00005527IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005528
5529fi
5530fi
5531LIPO=$ac_cv_prog_LIPO
5532if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005534$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005535else
drhf922ca42015-05-14 15:39:18 +00005536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005537$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005538fi
5539
drh8b727472009-01-19 18:18:40 +00005540
mlcreech636a9952008-05-05 22:52:56 +00005541fi
5542if test -z "$ac_cv_prog_LIPO"; then
5543 ac_ct_LIPO=$LIPO
5544 # Extract the first word of "lipo", so it can be a program name with args.
5545set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005547$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005548if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005549 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005550else
5551 if test -n "$ac_ct_LIPO"; then
5552 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005561 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005563 break 2
5564 fi
5565done
drhf922ca42015-05-14 15:39:18 +00005566 done
drh8b727472009-01-19 18:18:40 +00005567IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005568
5569fi
5570fi
5571ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5572if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005574$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005575else
drhf922ca42015-05-14 15:39:18 +00005576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005577$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005578fi
5579
drh8b727472009-01-19 18:18:40 +00005580 if test "x$ac_ct_LIPO" = x; then
5581 LIPO=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584yes:)
drhf922ca42015-05-14 15:39:18 +00005585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005587ac_tool_warned=yes ;;
5588esac
5589 LIPO=$ac_ct_LIPO
5590 fi
mlcreech636a9952008-05-05 22:52:56 +00005591else
5592 LIPO="$ac_cv_prog_LIPO"
5593fi
5594
5595 if test -n "$ac_tool_prefix"; then
5596 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5597set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005599$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005600if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005601 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005602else
5603 if test -n "$OTOOL"; then
5604 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5605else
5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005613 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005615 break 2
5616 fi
5617done
drhf922ca42015-05-14 15:39:18 +00005618 done
drh8b727472009-01-19 18:18:40 +00005619IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005620
5621fi
5622fi
5623OTOOL=$ac_cv_prog_OTOOL
5624if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005626$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005627else
drhf922ca42015-05-14 15:39:18 +00005628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005629$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005630fi
5631
drh8b727472009-01-19 18:18:40 +00005632
mlcreech636a9952008-05-05 22:52:56 +00005633fi
5634if test -z "$ac_cv_prog_OTOOL"; then
5635 ac_ct_OTOOL=$OTOOL
5636 # Extract the first word of "otool", so it can be a program name with args.
5637set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005639$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005640if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005641 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005642else
5643 if test -n "$ac_ct_OTOOL"; then
5644 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005653 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005655 break 2
5656 fi
5657done
drhf922ca42015-05-14 15:39:18 +00005658 done
drh8b727472009-01-19 18:18:40 +00005659IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005660
5661fi
5662fi
5663ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5664if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005666$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005667else
drhf922ca42015-05-14 15:39:18 +00005668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005669$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005670fi
5671
drh8b727472009-01-19 18:18:40 +00005672 if test "x$ac_ct_OTOOL" = x; then
5673 OTOOL=":"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676yes:)
drhf922ca42015-05-14 15:39:18 +00005677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005679ac_tool_warned=yes ;;
5680esac
5681 OTOOL=$ac_ct_OTOOL
5682 fi
mlcreech636a9952008-05-05 22:52:56 +00005683else
5684 OTOOL="$ac_cv_prog_OTOOL"
5685fi
5686
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5689set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005691$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005692if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005693 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005694else
5695 if test -n "$OTOOL64"; then
5696 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005705 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005707 break 2
5708 fi
5709done
drhf922ca42015-05-14 15:39:18 +00005710 done
drh8b727472009-01-19 18:18:40 +00005711IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005712
5713fi
5714fi
5715OTOOL64=$ac_cv_prog_OTOOL64
5716if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005718$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005719else
drhf922ca42015-05-14 15:39:18 +00005720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005721$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005722fi
5723
drh8b727472009-01-19 18:18:40 +00005724
mlcreech636a9952008-05-05 22:52:56 +00005725fi
5726if test -z "$ac_cv_prog_OTOOL64"; then
5727 ac_ct_OTOOL64=$OTOOL64
5728 # Extract the first word of "otool64", so it can be a program name with args.
5729set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005731$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005732if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005733 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005734else
5735 if test -n "$ac_ct_OTOOL64"; then
5736 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005745 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005747 break 2
5748 fi
5749done
drhf922ca42015-05-14 15:39:18 +00005750 done
drh8b727472009-01-19 18:18:40 +00005751IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005752
5753fi
5754fi
5755ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5756if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005758$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005759else
drhf922ca42015-05-14 15:39:18 +00005760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005761$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005762fi
5763
drh8b727472009-01-19 18:18:40 +00005764 if test "x$ac_ct_OTOOL64" = x; then
5765 OTOOL64=":"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768yes:)
drhf922ca42015-05-14 15:39:18 +00005769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005771ac_tool_warned=yes ;;
5772esac
5773 OTOOL64=$ac_ct_OTOOL64
5774 fi
mlcreech636a9952008-05-05 22:52:56 +00005775else
5776 OTOOL64="$ac_cv_prog_OTOOL64"
5777fi
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
drhf922ca42015-05-14 15:39:18 +00005805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005806$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005807if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005808 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005809else
5810 lt_cv_apple_cc_single_mod=no
5811 if test -z "${LT_MULTI_MODULE}"; then
5812 # By default we will add the -single_module flag. You can override
5813 # by either setting the environment variable LT_MULTI_MODULE
5814 # non-empty at configure time, or by adding -multi_module to the
5815 # link flags.
5816 rm -rf libconftest.dylib*
5817 echo "int foo(void){return 1;}" > conftest.c
5818 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5819-dynamiclib -Wl,-single_module conftest.c" >&5
5820 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5821 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5822 _lt_result=$?
5823 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5824 lt_cv_apple_cc_single_mod=yes
5825 else
5826 cat conftest.err >&5
5827 fi
5828 rm -rf libconftest.dylib*
5829 rm -f conftest.*
5830 fi
5831fi
drhf922ca42015-05-14 15:39:18 +00005832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005833$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005835$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005836if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005837 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005838else
5839 lt_cv_ld_exported_symbols_list=no
5840 save_LDFLAGS=$LDFLAGS
5841 echo "_main" > conftest.sym
5842 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005844/* end confdefs.h. */
5845
5846int
5847main ()
5848{
5849
5850 ;
5851 return 0;
5852}
5853_ACEOF
drhf922ca42015-05-14 15:39:18 +00005854if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005855 lt_cv_ld_exported_symbols_list=yes
5856else
drhf922ca42015-05-14 15:39:18 +00005857 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005858fi
drhf922ca42015-05-14 15:39:18 +00005859rm -f core conftest.err conftest.$ac_objext \
5860 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005861 LDFLAGS="$save_LDFLAGS"
5862
5863fi
drhf922ca42015-05-14 15:39:18 +00005864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005865$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005866 case $host_os in
5867 rhapsody* | darwin1.[012])
5868 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5869 darwin1.*)
5870 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5871 darwin*) # darwin 5.x on
5872 # if running on 10.5 or later, the deployment target defaults
5873 # to the OS version, if on x86, and 10.4, the deployment
5874 # target defaults to 10.4. Don't you love it?
5875 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5876 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5878 10.[012]*)
5879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5880 10.*)
5881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5882 esac
5883 ;;
5884 esac
5885 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5886 _lt_dar_single_mod='$single_module'
5887 fi
5888 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5889 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5890 else
5891 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5892 fi
5893 if test "$DSYMUTIL" != ":"; then
5894 _lt_dsymutil='~$DSYMUTIL $lib || :'
5895 else
5896 _lt_dsymutil=
5897 fi
5898 ;;
5899 esac
5900
a.rottmann84e63352003-03-24 09:42:16 +00005901ac_ext=c
5902ac_cpp='$CPP $CPPFLAGS'
5903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005907$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005908# On Suns, sometimes $CPP names a directory.
5909if test -n "$CPP" && test -d "$CPP"; then
5910 CPP=
5911fi
5912if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005913 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005914 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005915else
a.rottmann84e63352003-03-24 09:42:16 +00005916 # Double quotes because CPP needs to be expanded
5917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5918 do
5919 ac_preproc_ok=false
5920for ac_c_preproc_warn_flag in '' yes
5921do
5922 # Use a header file that comes with gcc, so configuring glibc
5923 # with a fresh cross-compiler works.
5924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5925 # <limits.h> exists even on freestanding compilers.
5926 # On the NeXT, cc -E runs the code through the compiler's parser,
5927 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005929/* end confdefs.h. */
5930#ifdef __STDC__
5931# include <limits.h>
5932#else
5933# include <assert.h>
5934#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005935 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005936_ACEOF
drhf922ca42015-05-14 15:39:18 +00005937if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005938
drhf922ca42015-05-14 15:39:18 +00005939else
a.rottmann84e63352003-03-24 09:42:16 +00005940 # Broken: fails on valid input.
5941continue
5942fi
drhf922ca42015-05-14 15:39:18 +00005943rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005944
drh8b727472009-01-19 18:18:40 +00005945 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005946 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005948/* end confdefs.h. */
5949#include <ac_nonexistent.h>
5950_ACEOF
drhf922ca42015-05-14 15:39:18 +00005951if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005952 # Broken: success on invalid input.
5953continue
5954else
a.rottmann84e63352003-03-24 09:42:16 +00005955 # Passes both tests.
5956ac_preproc_ok=:
5957break
5958fi
drhf922ca42015-05-14 15:39:18 +00005959rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005960
5961done
5962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005963rm -f conftest.i conftest.err conftest.$ac_ext
5964if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005965 break
5966fi
5967
5968 done
5969 ac_cv_prog_CPP=$CPP
5970
5971fi
5972 CPP=$ac_cv_prog_CPP
5973else
5974 ac_cv_prog_CPP=$CPP
5975fi
drhf922ca42015-05-14 15:39:18 +00005976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005977$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005978ac_preproc_ok=false
5979for ac_c_preproc_warn_flag in '' yes
5980do
5981 # Use a header file that comes with gcc, so configuring glibc
5982 # with a fresh cross-compiler works.
5983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984 # <limits.h> exists even on freestanding compilers.
5985 # On the NeXT, cc -E runs the code through the compiler's parser,
5986 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005988/* end confdefs.h. */
5989#ifdef __STDC__
5990# include <limits.h>
5991#else
5992# include <assert.h>
5993#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005994 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005995_ACEOF
drhf922ca42015-05-14 15:39:18 +00005996if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005997
drhf922ca42015-05-14 15:39:18 +00005998else
a.rottmann84e63352003-03-24 09:42:16 +00005999 # Broken: fails on valid input.
6000continue
6001fi
drhf922ca42015-05-14 15:39:18 +00006002rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006003
drh8b727472009-01-19 18:18:40 +00006004 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006005 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006007/* end confdefs.h. */
6008#include <ac_nonexistent.h>
6009_ACEOF
drhf922ca42015-05-14 15:39:18 +00006010if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006011 # Broken: success on invalid input.
6012continue
6013else
a.rottmann84e63352003-03-24 09:42:16 +00006014 # Passes both tests.
6015ac_preproc_ok=:
6016break
6017fi
drhf922ca42015-05-14 15:39:18 +00006018rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006019
6020done
6021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006022rm -f conftest.i conftest.err conftest.$ac_ext
6023if $ac_preproc_ok; then :
6024
a.rottmann84e63352003-03-24 09:42:16 +00006025else
drhf922ca42015-05-14 15:39:18 +00006026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6028as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6029See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006030fi
6031
6032ac_ext=c
6033ac_cpp='$CPP $CPPFLAGS'
6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
6038
drhf922ca42015-05-14 15:39:18 +00006039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006040$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006041if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006042 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006043else
drhf922ca42015-05-14 15:39:18 +00006044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006045/* end confdefs.h. */
6046#include <stdlib.h>
6047#include <stdarg.h>
6048#include <string.h>
6049#include <float.h>
6050
6051int
6052main ()
6053{
6054
6055 ;
6056 return 0;
6057}
6058_ACEOF
drhf922ca42015-05-14 15:39:18 +00006059if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006060 ac_cv_header_stdc=yes
6061else
drhf922ca42015-05-14 15:39:18 +00006062 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006063fi
drh8b727472009-01-19 18:18:40 +00006064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006065
6066if test $ac_cv_header_stdc = yes; then
6067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006069/* end confdefs.h. */
6070#include <string.h>
6071
6072_ACEOF
6073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006074 $EGREP "memchr" >/dev/null 2>&1; then :
6075
a.rottmann84e63352003-03-24 09:42:16 +00006076else
6077 ac_cv_header_stdc=no
6078fi
6079rm -f conftest*
6080
6081fi
6082
6083if test $ac_cv_header_stdc = yes; then
6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006086/* end confdefs.h. */
6087#include <stdlib.h>
6088
6089_ACEOF
6090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006091 $EGREP "free" >/dev/null 2>&1; then :
6092
a.rottmann84e63352003-03-24 09:42:16 +00006093else
6094 ac_cv_header_stdc=no
6095fi
6096rm -f conftest*
6097
6098fi
6099
6100if test $ac_cv_header_stdc = yes; then
6101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006102 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006103 :
6104else
drhf922ca42015-05-14 15:39:18 +00006105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006106/* end confdefs.h. */
6107#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006108#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006109#if ((' ' & 0x0FF) == 0x020)
6110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6112#else
6113# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006114 (('a' <= (c) && (c) <= 'i') \
6115 || ('j' <= (c) && (c) <= 'r') \
6116 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6118#endif
6119
6120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6121int
6122main ()
6123{
6124 int i;
6125 for (i = 0; i < 256; i++)
6126 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006127 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006128 return 2;
6129 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006130}
6131_ACEOF
drhf922ca42015-05-14 15:39:18 +00006132if ac_fn_c_try_run "$LINENO"; then :
6133
a.rottmann84e63352003-03-24 09:42:16 +00006134else
drhf922ca42015-05-14 15:39:18 +00006135 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006136fi
drhf922ca42015-05-14 15:39:18 +00006137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6138 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006139fi
6140
a.rottmann84e63352003-03-24 09:42:16 +00006141fi
6142fi
drhf922ca42015-05-14 15:39:18 +00006143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006144$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006145if test $ac_cv_header_stdc = yes; then
6146
drhf922ca42015-05-14 15:39:18 +00006147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006148
6149fi
6150
6151# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006152for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006153 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006154do :
6155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6157"
6158if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006159 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006160#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006161_ACEOF
6162
6163fi
6164
6165done
6166
6167
a.rottmann84e63352003-03-24 09:42:16 +00006168for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006169do :
6170 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6171"
6172if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006173 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006174#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006175_ACEOF
6176
6177fi
6178
drh71eb93e2001-09-28 01:34:43 +00006179done
6180
drh71eb93e2001-09-28 01:34:43 +00006181
drh71eb93e2001-09-28 01:34:43 +00006182
mlcreech636a9952008-05-05 22:52:56 +00006183# Set options
mlcreech94984912008-03-04 19:03:08 +00006184
drh71eb93e2001-09-28 01:34:43 +00006185
drh71eb93e2001-09-28 01:34:43 +00006186
mlcreech636a9952008-05-05 22:52:56 +00006187 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006188
a.rottmann9bc8b932004-02-29 15:18:31 +00006189
mlcreech636a9952008-05-05 22:52:56 +00006190 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006191
a.rottmann9bc8b932004-02-29 15:18:31 +00006192
drh8b727472009-01-19 18:18:40 +00006193 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006194if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006195 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006196 case $enableval in
6197 yes) enable_shared=yes ;;
6198 no) enable_shared=no ;;
6199 *)
6200 enable_shared=no
6201 # Look at the argument we got. We use all the common list separators.
6202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6203 for pkg in $enableval; do
6204 IFS="$lt_save_ifs"
6205 if test "X$pkg" = "X$p"; then
6206 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006207 fi
mlcreech636a9952008-05-05 22:52:56 +00006208 done
6209 IFS="$lt_save_ifs"
6210 ;;
6211 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006212else
mlcreech636a9952008-05-05 22:52:56 +00006213 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006214fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006215
mlcreech636a9952008-05-05 22:52:56 +00006216
6217
6218
6219
6220
6221
6222
drh8b727472009-01-19 18:18:40 +00006223
6224 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006225if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006226 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006227 case $enableval in
6228 yes) enable_static=yes ;;
6229 no) enable_static=no ;;
6230 *)
6231 enable_static=no
6232 # Look at the argument we got. We use all the common list separators.
6233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6234 for pkg in $enableval; do
6235 IFS="$lt_save_ifs"
6236 if test "X$pkg" = "X$p"; then
6237 enable_static=yes
6238 fi
6239 done
6240 IFS="$lt_save_ifs"
6241 ;;
6242 esac
6243else
6244 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006245fi
mlcreech636a9952008-05-05 22:52:56 +00006246
6247
6248
6249
6250
6251
6252
6253
6254
drh8b727472009-01-19 18:18:40 +00006255
6256# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006257if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006258 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006259else
6260 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006261fi
6262
mlcreech636a9952008-05-05 22:52:56 +00006263
6264test -z "$pic_mode" && pic_mode=default
6265
6266
6267
6268
6269
6270
6271
drh8b727472009-01-19 18:18:40 +00006272 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006273if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006274 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006275 case $enableval in
6276 yes) enable_fast_install=yes ;;
6277 no) enable_fast_install=no ;;
6278 *)
6279 enable_fast_install=no
6280 # Look at the argument we got. We use all the common list separators.
6281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6282 for pkg in $enableval; do
6283 IFS="$lt_save_ifs"
6284 if test "X$pkg" = "X$p"; then
6285 enable_fast_install=yes
6286 fi
6287 done
6288 IFS="$lt_save_ifs"
6289 ;;
6290 esac
6291else
6292 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006293fi
6294
mlcreech636a9952008-05-05 22:52:56 +00006295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305# This can be used to rebuild libtool when needed
6306LIBTOOL_DEPS="$ltmain"
6307
6308# Always use our own libtool.
6309LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335test -z "$LN_S" && LN_S="ln -s"
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350if test -n "${ZSH_VERSION+set}" ; then
6351 setopt NO_GLOB_SUBST
6352fi
6353
drhf922ca42015-05-14 15:39:18 +00006354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006355$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006356if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006357 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006358else
6359 rm -f .libs 2>/dev/null
6360mkdir .libs 2>/dev/null
6361if test -d .libs; then
6362 lt_cv_objdir=.libs
6363else
6364 # MS-DOS does not allow filenames that begin with a dot.
6365 lt_cv_objdir=_libs
6366fi
6367rmdir .libs 2>/dev/null
6368fi
drhf922ca42015-05-14 15:39:18 +00006369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006370$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006371objdir=$lt_cv_objdir
6372
6373
6374
6375
6376
mlcreech636a9952008-05-05 22:52:56 +00006377cat >>confdefs.h <<_ACEOF
6378#define LT_OBJDIR "$lt_cv_objdir/"
6379_ACEOF
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
a.rottmann9bc8b932004-02-29 15:18:31 +00006397case $host_os in
6398aix3*)
6399 # AIX sometimes has problems with the GCC collect2 program. For some
6400 # reason, if we set the COLLECT_NAMES environment variable, the problems
6401 # vanish in a puff of smoke.
6402 if test "X${COLLECT_NAMES+set}" != Xset; then
6403 COLLECT_NAMES=
6404 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006405 fi
6406 ;;
6407esac
6408
a.rottmann9bc8b932004-02-29 15:18:31 +00006409# Sed substitution that helps us do robust quoting. It backslashifies
6410# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006411sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006412
6413# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006414double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006415
6416# Sed substitution to delay expansion of an escaped shell variable in a
6417# double_quote_subst'ed string.
6418delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6419
mlcreech636a9952008-05-05 22:52:56 +00006420# Sed substitution to delay expansion of an escaped single quote.
6421delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6422
a.rottmann9bc8b932004-02-29 15:18:31 +00006423# Sed substitution to avoid accidental globbing in evaled expressions
6424no_glob_subst='s/\*/\\\*/g'
6425
a.rottmann9bc8b932004-02-29 15:18:31 +00006426# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006427ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006428can_build_shared=yes
6429
vapier7f19c022007-02-17 14:46:31 +00006430# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006431# which needs '.lib').
6432libext=a
mlcreech636a9952008-05-05 22:52:56 +00006433
a.rottmann9bc8b932004-02-29 15:18:31 +00006434with_gnu_ld="$lt_cv_prog_gnu_ld"
6435
a.rottmann84e63352003-03-24 09:42:16 +00006436old_CC="$CC"
6437old_CFLAGS="$CFLAGS"
6438
6439# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006440test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006441test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006442test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006443test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006444test -z "$ac_objext" && ac_objext=o
6445
vapier7f19c022007-02-17 14:46:31 +00006446for cc_temp in $compiler""; do
6447 case $cc_temp in
6448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6450 \-*) ;;
6451 *) break;;
6452 esac
6453done
mlcreech636a9952008-05-05 22:52:56 +00006454cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006455
6456
a.rottmann9bc8b932004-02-29 15:18:31 +00006457# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006458test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006459case $deplibs_check_method in
6460file_magic*)
6461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006463$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006464if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006465 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006466else
a.rottmann9bc8b932004-02-29 15:18:31 +00006467 case $MAGIC_CMD in
6468[\\/*] | ?:[\\/]*)
6469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6470 ;;
6471*)
6472 lt_save_MAGIC_CMD="$MAGIC_CMD"
6473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6475 for ac_dir in $ac_dummy; do
6476 IFS="$lt_save_ifs"
6477 test -z "$ac_dir" && ac_dir=.
6478 if test -f $ac_dir/${ac_tool_prefix}file; then
6479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6480 if test -n "$file_magic_test_file"; then
6481 case $deplibs_check_method in
6482 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6486 $EGREP "$file_magic_regex" > /dev/null; then
6487 :
6488 else
mlcreech636a9952008-05-05 22:52:56 +00006489 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006490
a.rottmann9bc8b932004-02-29 15:18:31 +00006491*** Warning: the command libtool uses to detect shared libraries,
6492*** $file_magic_cmd, produces output that libtool cannot recognize.
6493*** The result is that libtool may fail to recognize shared libraries
6494*** as such. This will affect the creation of libtool libraries that
6495*** depend on shared libraries, but programs linked with such libtool
6496*** libraries will work regardless of this problem. Nevertheless, you
6497*** may want to report the problem to your system manager and/or to
6498*** bug-libtool@gnu.org
6499
mlcreech636a9952008-05-05 22:52:56 +00006500_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006501 fi ;;
6502 esac
6503 fi
6504 break
6505 fi
6506 done
6507 IFS="$lt_save_ifs"
6508 MAGIC_CMD="$lt_save_MAGIC_CMD"
6509 ;;
6510esac
6511fi
6512
6513MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6514if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006516$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006517else
drhf922ca42015-05-14 15:39:18 +00006518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006519$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006520fi
6521
mlcreech636a9952008-05-05 22:52:56 +00006522
6523
6524
6525
a.rottmann9bc8b932004-02-29 15:18:31 +00006526if test -z "$lt_cv_path_MAGIC_CMD"; then
6527 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006529$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006530if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006531 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006532else
6533 case $MAGIC_CMD in
6534[\\/*] | ?:[\\/]*)
6535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6536 ;;
6537*)
6538 lt_save_MAGIC_CMD="$MAGIC_CMD"
6539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6541 for ac_dir in $ac_dummy; do
6542 IFS="$lt_save_ifs"
6543 test -z "$ac_dir" && ac_dir=.
6544 if test -f $ac_dir/file; then
6545 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6546 if test -n "$file_magic_test_file"; then
6547 case $deplibs_check_method in
6548 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6552 $EGREP "$file_magic_regex" > /dev/null; then
6553 :
6554 else
mlcreech636a9952008-05-05 22:52:56 +00006555 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006556
6557*** Warning: the command libtool uses to detect shared libraries,
6558*** $file_magic_cmd, produces output that libtool cannot recognize.
6559*** The result is that libtool may fail to recognize shared libraries
6560*** as such. This will affect the creation of libtool libraries that
6561*** depend on shared libraries, but programs linked with such libtool
6562*** libraries will work regardless of this problem. Nevertheless, you
6563*** may want to report the problem to your system manager and/or to
6564*** bug-libtool@gnu.org
6565
mlcreech636a9952008-05-05 22:52:56 +00006566_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006567 fi ;;
6568 esac
6569 fi
6570 break
6571 fi
6572 done
6573 IFS="$lt_save_ifs"
6574 MAGIC_CMD="$lt_save_MAGIC_CMD"
6575 ;;
6576esac
6577fi
6578
6579MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6580if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006582$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006583else
drhf922ca42015-05-14 15:39:18 +00006584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006585$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006586fi
6587
mlcreech636a9952008-05-05 22:52:56 +00006588
a.rottmann9bc8b932004-02-29 15:18:31 +00006589 else
6590 MAGIC_CMD=:
6591 fi
6592fi
6593
6594 fi
6595 ;;
6596esac
6597
a.rottmann9bc8b932004-02-29 15:18:31 +00006598# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006599
a.rottmann9bc8b932004-02-29 15:18:31 +00006600lt_save_CC="$CC"
6601ac_ext=c
6602ac_cpp='$CPP $CPPFLAGS'
6603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
6607
6608# Source file extension for C test sources.
6609ac_ext=c
6610
6611# Object file extension for compiled C test sources.
6612objext=o
6613objext=$objext
6614
6615# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006616lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006617
6618# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006619lt_simple_link_test_code='int main(){return(0);}'
6620
6621
6622
6623
6624
a.rottmann9bc8b932004-02-29 15:18:31 +00006625
6626
6627# If no C compiler was specified, use CC.
6628LTCC=${LTCC-"$CC"}
6629
vapier7f19c022007-02-17 14:46:31 +00006630# If no C compiler flags were specified, use CFLAGS.
6631LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
a.rottmann9bc8b932004-02-29 15:18:31 +00006633# Allow CC to be a program name with arguments.
6634compiler=$CC
6635
mlcreech636a9952008-05-05 22:52:56 +00006636# Save the default compiler, since it gets overwritten when the other
6637# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6638compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006639
vapier7f19c022007-02-17 14:46:31 +00006640# save warnings/boilerplate of simple test code
6641ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006642echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6644_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006645$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006646
vapier7f19c022007-02-17 14:46:31 +00006647ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006648echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6650_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006651$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006652
6653
mlcreech636a9952008-05-05 22:52:56 +00006654if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006655
6656lt_prog_compiler_no_builtin_flag=
6657
6658if test "$GCC" = yes; then
6659 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6660
drhf922ca42015-05-14 15:39:18 +00006661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006662$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006663if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006664 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006665else
6666 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006667 ac_outfile=conftest.$ac_objext
6668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006669 lt_compiler_flag="-fno-rtti -fno-exceptions"
6670 # Insert the option either (1) after the last *FLAGS variable, or
6671 # (2) before a word containing "conftest.", or (3) at the end.
6672 # Note that $ac_compile itself does not contain backslashes and begins
6673 # with a dollar sign (not a hyphen), so the echo should work correctly.
6674 # The option is referenced via a variable to avoid confusing sed.
6675 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6678 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00006679 (eval echo "\"\$as_me:6677: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006680 (eval "$lt_compile" 2>conftest.err)
6681 ac_status=$?
6682 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00006683 echo "$as_me:6681: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006684 if (exit $ac_status) && test -s "$ac_outfile"; then
6685 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006686 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006690 lt_cv_prog_compiler_rtti_exceptions=yes
6691 fi
6692 fi
mlcreech636a9952008-05-05 22:52:56 +00006693 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006694
6695fi
drhf922ca42015-05-14 15:39:18 +00006696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006697$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006698
6699if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6700 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6701else
6702 :
6703fi
6704
6705fi
6706
mlcreech636a9952008-05-05 22:52:56 +00006707
6708
6709
6710
6711
6712 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006713lt_prog_compiler_pic=
6714lt_prog_compiler_static=
6715
drhf922ca42015-05-14 15:39:18 +00006716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006717$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006718
drh71eb93e2001-09-28 01:34:43 +00006719 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006720 lt_prog_compiler_wl='-Wl,'
6721 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006722
6723 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006724 aix*)
6725 # All AIX code is PIC.
6726 if test "$host_cpu" = ia64; then
6727 # AIX 5 now supports IA64 processor
6728 lt_prog_compiler_static='-Bstatic'
6729 fi
drh71eb93e2001-09-28 01:34:43 +00006730 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006731
drh71eb93e2001-09-28 01:34:43 +00006732 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006733 case $host_cpu in
6734 powerpc)
6735 # see comment about AmigaOS4 .so support
6736 lt_prog_compiler_pic='-fPIC'
6737 ;;
6738 m68k)
6739 # FIXME: we need at least 68020 code to build shared libraries, but
6740 # adding the `-m68020' flag to GCC prevents building anything better,
6741 # like `-m68040'.
6742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6743 ;;
6744 esac
drh71eb93e2001-09-28 01:34:43 +00006745 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006746
mlcreech636a9952008-05-05 22:52:56 +00006747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006748 # PIC is the default for these OSes.
6749 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006750
vapier6acb2cf2009-01-28 04:46:28 +00006751 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006752 # This hack is so that the source file can tell whether it is being
6753 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6755 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006756 lt_prog_compiler_pic='-DDLL_EXPORT'
6757 ;;
6758
drh71eb93e2001-09-28 01:34:43 +00006759 darwin* | rhapsody*)
6760 # PIC is the default on this platform
6761 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006762 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006763 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006764
a.rottmann9bc8b932004-02-29 15:18:31 +00006765 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6768 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006769 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006770 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006771 # +Z the default
6772 ;;
6773 *)
6774 lt_prog_compiler_pic='-fPIC'
6775 ;;
6776 esac
6777 ;;
6778
mlcreech636a9952008-05-05 22:52:56 +00006779 interix[3-9]*)
6780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6781 # Instead, we relocate shared libraries at runtime.
6782 ;;
6783
6784 msdosdjgpp*)
6785 # Just because we use GCC doesn't mean we suddenly get shared libraries
6786 # on systems that don't support them.
6787 lt_prog_compiler_can_build_shared=no
6788 enable_shared=no
6789 ;;
6790
6791 *nto* | *qnx*)
6792 # QNX uses GNU C++, but need to define -shared option too, otherwise
6793 # it will coredump.
6794 lt_prog_compiler_pic='-fPIC -shared'
6795 ;;
6796
6797 sysv4*MP*)
6798 if test -d /usr/nec; then
6799 lt_prog_compiler_pic=-Kconform_pic
6800 fi
6801 ;;
6802
drh71eb93e2001-09-28 01:34:43 +00006803 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006804 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006805 ;;
6806 esac
6807 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006809 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006810 aix*)
6811 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006812 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006813 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006815 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006817 fi
6818 ;;
6819
vapier6acb2cf2009-01-28 04:46:28 +00006820 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006821 # This hack is so that the source file can tell whether it is being
6822 # built for inclusion in a dll (and should export symbols for example).
6823 lt_prog_compiler_pic='-DDLL_EXPORT'
6824 ;;
6825
a.rottmann84e63352003-03-24 09:42:16 +00006826 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006827 lt_prog_compiler_wl='-Wl,'
6828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6829 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006830 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006831 hppa*64*|ia64*)
6832 # +Z the default
6833 ;;
6834 *)
6835 lt_prog_compiler_pic='+Z'
6836 ;;
6837 esac
6838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6839 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006840 ;;
6841
6842 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006843 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006844 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006845 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006846 ;;
6847
mlcreech636a9952008-05-05 22:52:56 +00006848 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006849 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006850 # old Intel for x86_64 which still supported -KPIC.
6851 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-KPIC'
6854 lt_prog_compiler_static='-static'
6855 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006856 # icc used to be incompatible with GCC.
6857 # ICC 10 doesn't accept -KPIC any more.
6858 icc* | ifort*)
6859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-fPIC'
6861 lt_prog_compiler_static='-static'
6862 ;;
6863 # Lahey Fortran 8.1.
6864 lf95*)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='--shared'
6867 lt_prog_compiler_static='--static'
6868 ;;
vapier7f19c022007-02-17 14:46:31 +00006869 pgcc* | pgf77* | pgf90* | pgf95*)
6870 # Portland Group compilers (*not* the Pentium gcc compiler,
6871 # which looks to be a dead project)
6872 lt_prog_compiler_wl='-Wl,'
6873 lt_prog_compiler_pic='-fpic'
6874 lt_prog_compiler_static='-Bstatic'
6875 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006876 ccc*)
6877 lt_prog_compiler_wl='-Wl,'
6878 # All Alpha code is PIC.
6879 lt_prog_compiler_static='-non_shared'
6880 ;;
mlcreech636a9952008-05-05 22:52:56 +00006881 xl*)
6882 # IBM XL C 8.0/Fortran 10.1 on PPC
6883 lt_prog_compiler_wl='-Wl,'
6884 lt_prog_compiler_pic='-qpic'
6885 lt_prog_compiler_static='-qstaticlink'
6886 ;;
6887 *)
6888 case `$CC -V 2>&1 | sed 5q` in
6889 *Sun\ C*)
6890 # Sun C 5.9
6891 lt_prog_compiler_pic='-KPIC'
6892 lt_prog_compiler_static='-Bstatic'
6893 lt_prog_compiler_wl='-Wl,'
6894 ;;
6895 *Sun\ F*)
6896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6897 lt_prog_compiler_pic='-KPIC'
6898 lt_prog_compiler_static='-Bstatic'
6899 lt_prog_compiler_wl=''
6900 ;;
6901 esac
6902 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006903 esac
drh71eb93e2001-09-28 01:34:43 +00006904 ;;
6905
mlcreech636a9952008-05-05 22:52:56 +00006906 newsos6)
6907 lt_prog_compiler_pic='-KPIC'
6908 lt_prog_compiler_static='-Bstatic'
6909 ;;
6910
6911 *nto* | *qnx*)
6912 # QNX uses GNU C++, but need to define -shared option too, otherwise
6913 # it will coredump.
6914 lt_prog_compiler_pic='-fPIC -shared'
6915 ;;
6916
drh71eb93e2001-09-28 01:34:43 +00006917 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006919 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006921 ;;
6922
mlcreech636a9952008-05-05 22:52:56 +00006923 rdos*)
6924 lt_prog_compiler_static='-non_shared'
6925 ;;
6926
drh71eb93e2001-09-28 01:34:43 +00006927 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006928 lt_prog_compiler_pic='-KPIC'
6929 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006930 case $cc_basename in
6931 f77* | f90* | f95*)
6932 lt_prog_compiler_wl='-Qoption ld ';;
6933 *)
6934 lt_prog_compiler_wl='-Wl,';;
6935 esac
drh71eb93e2001-09-28 01:34:43 +00006936 ;;
6937
6938 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006939 lt_prog_compiler_wl='-Qoption ld '
6940 lt_prog_compiler_pic='-PIC'
6941 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006942 ;;
6943
vapier7f19c022007-02-17 14:46:31 +00006944 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006945 lt_prog_compiler_wl='-Wl,'
6946 lt_prog_compiler_pic='-KPIC'
6947 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006948 ;;
6949
6950 sysv4*MP*)
6951 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006952 lt_prog_compiler_pic='-Kconform_pic'
6953 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006954 fi
6955 ;;
6956
vapier7f19c022007-02-17 14:46:31 +00006957 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6958 lt_prog_compiler_wl='-Wl,'
6959 lt_prog_compiler_pic='-KPIC'
6960 lt_prog_compiler_static='-Bstatic'
6961 ;;
6962
6963 unicos*)
6964 lt_prog_compiler_wl='-Wl,'
6965 lt_prog_compiler_can_build_shared=no
6966 ;;
6967
a.rottmann9bc8b932004-02-29 15:18:31 +00006968 uts4*)
6969 lt_prog_compiler_pic='-pic'
6970 lt_prog_compiler_static='-Bstatic'
6971 ;;
6972
drh71eb93e2001-09-28 01:34:43 +00006973 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006974 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006975 ;;
6976 esac
6977 fi
6978
mlcreech636a9952008-05-05 22:52:56 +00006979case $host_os in
6980 # For platforms which do not support PIC, -DPIC is meaningless:
6981 *djgpp*)
6982 lt_prog_compiler_pic=
6983 ;;
6984 *)
6985 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6986 ;;
6987esac
drhf922ca42015-05-14 15:39:18 +00006988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006989$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006990
6991
6992
6993
6994
drh71eb93e2001-09-28 01:34:43 +00006995
a.rottmann9bc8b932004-02-29 15:18:31 +00006996#
6997# Check to make sure the PIC flag actually works.
6998#
6999if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00007000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007001$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007002if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007003 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007004else
mlcreech636a9952008-05-05 22:52:56 +00007005 lt_cv_prog_compiler_pic_works=no
7006 ac_outfile=conftest.$ac_objext
7007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007008 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7009 # Insert the option either (1) after the last *FLAGS variable, or
7010 # (2) before a word containing "conftest.", or (3) at the end.
7011 # Note that $ac_compile itself does not contain backslashes and begins
7012 # with a dollar sign (not a hyphen), so the echo should work correctly.
7013 # The option is referenced via a variable to avoid confusing sed.
7014 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7017 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007018 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007019 (eval "$lt_compile" 2>conftest.err)
7020 ac_status=$?
7021 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007022 echo "$as_me:7020: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007023 if (exit $ac_status) && test -s "$ac_outfile"; then
7024 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007025 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007029 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007030 fi
7031 fi
mlcreech636a9952008-05-05 22:52:56 +00007032 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007033
a.rottmann9bc8b932004-02-29 15:18:31 +00007034fi
drhf922ca42015-05-14 15:39:18 +00007035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007036$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007037
mlcreech636a9952008-05-05 22:52:56 +00007038if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007039 case $lt_prog_compiler_pic in
7040 "" | " "*) ;;
7041 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7042 esac
drh71eb93e2001-09-28 01:34:43 +00007043else
a.rottmann9bc8b932004-02-29 15:18:31 +00007044 lt_prog_compiler_pic=
7045 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007046fi
7047
a.rottmann84e63352003-03-24 09:42:16 +00007048fi
mlcreech636a9952008-05-05 22:52:56 +00007049
7050
7051
7052
7053
a.rottmann84e63352003-03-24 09:42:16 +00007054
vapier7f19c022007-02-17 14:46:31 +00007055#
7056# Check to make sure the static flag actually works.
7057#
7058wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007060$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007061if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007062 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007063else
mlcreech636a9952008-05-05 22:52:56 +00007064 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007065 save_LDFLAGS="$LDFLAGS"
7066 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007067 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007068 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7069 # The linker can only warn and ignore the option if not recognized
7070 # So say no if there are warnings
7071 if test -s conftest.err; then
7072 # Append any errors to the config.log.
7073 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007074 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7076 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007077 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007078 fi
7079 else
mlcreech636a9952008-05-05 22:52:56 +00007080 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007081 fi
7082 fi
mlcreech636a9952008-05-05 22:52:56 +00007083 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007084 LDFLAGS="$save_LDFLAGS"
7085
7086fi
drhf922ca42015-05-14 15:39:18 +00007087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007088$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007089
mlcreech636a9952008-05-05 22:52:56 +00007090if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007091 :
7092else
7093 lt_prog_compiler_static=
7094fi
7095
7096
mlcreech636a9952008-05-05 22:52:56 +00007097
7098
7099
7100
7101
drhf922ca42015-05-14 15:39:18 +00007102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007103$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007104if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007105 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007106else
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007108 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007109 mkdir conftest
7110 cd conftest
7111 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007113
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 lt_compiler_flag="-o out/conftest2.$ac_objext"
7115 # Insert the option either (1) after the last *FLAGS variable, or
7116 # (2) before a word containing "conftest.", or (3) at the end.
7117 # Note that $ac_compile itself does not contain backslashes and begins
7118 # with a dollar sign (not a hyphen), so the echo should work correctly.
7119 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007123 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007124 (eval "$lt_compile" 2>out/conftest.err)
7125 ac_status=$?
7126 cat out/conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007127 echo "$as_me:7125: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7129 then
7130 # The compiler can only warn and ignore the option if not recognized
7131 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007135 lt_cv_prog_compiler_c_o=yes
7136 fi
7137 fi
vapier7f19c022007-02-17 14:46:31 +00007138 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007139 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007140 # SGI C++ compiler will create directory out/ii_files/ for
7141 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7143 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007144 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007145 $RM -r conftest
7146 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007147
7148fi
drhf922ca42015-05-14 15:39:18 +00007149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007150$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007151
7152
7153
7154
7155
7156
drhf922ca42015-05-14 15:39:18 +00007157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007159if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007160 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007161else
7162 lt_cv_prog_compiler_c_o=no
7163 $RM -r conftest 2>/dev/null
7164 mkdir conftest
7165 cd conftest
7166 mkdir out
7167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7168
7169 lt_compiler_flag="-o out/conftest2.$ac_objext"
7170 # Insert the option either (1) after the last *FLAGS variable, or
7171 # (2) before a word containing "conftest.", or (3) at the end.
7172 # Note that $ac_compile itself does not contain backslashes and begins
7173 # with a dollar sign (not a hyphen), so the echo should work correctly.
7174 lt_compile=`echo "$ac_compile" | $SED \
7175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7177 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007178 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007179 (eval "$lt_compile" 2>out/conftest.err)
7180 ac_status=$?
7181 cat out/conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007182 echo "$as_me:7180: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7184 then
7185 # The compiler can only warn and ignore the option if not recognized
7186 # So say no if there are warnings
7187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7190 lt_cv_prog_compiler_c_o=yes
7191 fi
7192 fi
7193 chmod u+w . 2>&5
7194 $RM conftest*
7195 # SGI C++ compiler will create directory out/ii_files/ for
7196 # template instantiation
7197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7198 $RM out/* && rmdir out
7199 cd ..
7200 $RM -r conftest
7201 $RM conftest*
7202
7203fi
drhf922ca42015-05-14 15:39:18 +00007204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007205$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007206
7207
drh71eb93e2001-09-28 01:34:43 +00007208
a.rottmann84e63352003-03-24 09:42:16 +00007209
drh71eb93e2001-09-28 01:34:43 +00007210hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007211if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007212 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007214$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007215 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007216 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7218 touch conftest.a
7219 ln conftest.a conftest.b 2>&5 || hard_links=no
7220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007222$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007223 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007225$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007226 need_locks=warn
7227 fi
7228else
7229 need_locks=no
7230fi
7231
mlcreech636a9952008-05-05 22:52:56 +00007232
7233
7234
7235
7236
drhf922ca42015-05-14 15:39:18 +00007237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007238$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007239
7240 runpath_var=
7241 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007242 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007243 archive_cmds=
7244 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007245 compiler_needs_object=no
7246 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007247 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7249 hardcode_automatic=no
7250 hardcode_direct=no
7251 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007252 hardcode_libdir_flag_spec=
7253 hardcode_libdir_flag_spec_ld=
7254 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 hardcode_minus_L=no
7256 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007257 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007258 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007259 module_cmds=
7260 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007261 old_archive_from_new_cmds=
7262 old_archive_from_expsyms_cmds=
7263 thread_safe_flag_spec=
7264 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 # include_expsyms should be a list of space-separated symbols to be *always*
7266 # included in the symbol list
7267 include_expsyms=
7268 # exclude_expsyms can be an extended regexp of symbols to exclude
7269 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7270 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7271 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007272 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7274 # platforms (ab)use it in PIC code, but their linkers get confused if
7275 # the symbol is explicitly referenced. Since portable code cannot
7276 # rely on this symbol name, it's probably fine to never include it in
7277 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007278 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007279 extract_expsyms_cmds=
7280
7281 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007282 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7284 # When not using gcc, we currently assume that we are using
7285 # Microsoft Visual C++.
7286 if test "$GCC" != yes; then
7287 with_gnu_ld=no
7288 fi
7289 ;;
vapier7f19c022007-02-17 14:46:31 +00007290 interix*)
7291 # we just hope/assume this is gcc and not c89 (= MSVC++)
7292 with_gnu_ld=yes
7293 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007294 openbsd*)
7295 with_gnu_ld=no
7296 ;;
7297 esac
7298
7299 ld_shlibs=yes
7300 if test "$with_gnu_ld" = yes; then
7301 # If archive_cmds runs LD, not CC, wlarc should be empty
7302 wlarc='${wl}'
7303
vapier7f19c022007-02-17 14:46:31 +00007304 # Set some defaults for GNU ld with shared library support. These
7305 # are reset later if shared libraries are not supported. Putting them
7306 # here allows them to be overridden if necessary.
7307 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007309 export_dynamic_flag_spec='${wl}--export-dynamic'
7310 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007311 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7312 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7313 else
7314 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007315 fi
7316 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007317 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007318 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7319 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7320 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7321 *\ 2.11.*) ;; # other 2.11 versions
7322 *) supports_anon_versioning=yes ;;
7323 esac
7324
a.rottmann9bc8b932004-02-29 15:18:31 +00007325 # See if GNU ld supports shared libraries.
7326 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007327 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007328 # On AIX/PPC, the GNU linker is very broken
7329 if test "$host_cpu" != ia64; then
7330 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007331 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007332
7333*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7334*** to be unable to reliably create shared libraries on AIX.
7335*** Therefore, libtool is disabling shared libraries support. If you
7336*** really care for shared libraries, you may want to modify your PATH
7337*** so that a non-GNU linker is found, and then restart.
7338
mlcreech636a9952008-05-05 22:52:56 +00007339_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007340 fi
7341 ;;
7342
7343 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007344 case $host_cpu in
7345 powerpc)
7346 # see comment about AmigaOS4 .so support
7347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7348 archive_expsym_cmds=''
7349 ;;
7350 m68k)
7351 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)'
7352 hardcode_libdir_flag_spec='-L$libdir'
7353 hardcode_minus_L=yes
7354 ;;
7355 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007356 ;;
7357
7358 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007360 allow_undefined_flag=unsupported
7361 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7362 # support --undefined. This deserves some investigation. FIXME
7363 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364 else
7365 ld_shlibs=no
7366 fi
7367 ;;
7368
vapier6acb2cf2009-01-28 04:46:28 +00007369 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007370 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007371 # as there is no search path for DLLs.
7372 hardcode_libdir_flag_spec='-L$libdir'
7373 allow_undefined_flag=unsupported
7374 always_export_symbols=no
7375 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007377
mlcreech636a9952008-05-05 22:52:56 +00007378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007380 # If the export-symbols file already is a .def file (1st line
7381 # is EXPORTS), use it as is; otherwise, prepend...
7382 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7383 cp $export_symbols $output_objdir/$soname.def;
7384 else
7385 echo EXPORTS > $output_objdir/$soname.def;
7386 cat $export_symbols >> $output_objdir/$soname.def;
7387 fi~
vapier7f19c022007-02-17 14:46:31 +00007388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007389 else
7390 ld_shlibs=no
7391 fi
7392 ;;
7393
mlcreech636a9952008-05-05 22:52:56 +00007394 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007395 hardcode_direct=no
7396 hardcode_shlibpath_var=no
7397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7398 export_dynamic_flag_spec='${wl}-E'
7399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7400 # Instead, shared libraries are loaded at an image base (0x10000000 by
7401 # default) and relocated if they conflict, which is a slow very memory
7402 # consuming and fragmenting process. To avoid this, we pick a random,
7403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7404 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7406 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'
7407 ;;
7408
mlcreech636a9952008-05-05 22:52:56 +00007409 gnu* | linux* | tpf* | k*bsd*-gnu)
7410 tmp_diet=no
7411 if test "$host_os" = linux-dietlibc; then
7412 case $cc_basename in
7413 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7414 esac
7415 fi
7416 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7417 && test "$tmp_diet" = no
7418 then
vapier7f19c022007-02-17 14:46:31 +00007419 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007420 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007421 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007422 pgcc*) # Portland Group C compiler
7423 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
vapier7f19c022007-02-17 14:46:31 +00007424 tmp_addflag=' $pic_flag'
7425 ;;
7426 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007427 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
vapier7f19c022007-02-17 14:46:31 +00007428 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007429 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007430 tmp_addflag=' -i_dynamic' ;;
7431 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7432 tmp_addflag=' -i_dynamic -nofor_main' ;;
7433 ifc* | ifort*) # Intel Fortran compiler
7434 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007435 lf95*) # Lahey Fortran 8.1
7436 whole_archive_flag_spec=
7437 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007438 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7439 tmp_sharedflag='-qmkshrobj'
7440 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007441 esac
mlcreech636a9952008-05-05 22:52:56 +00007442 case `$CC -V 2>&1 | sed 5q` in
7443 *Sun\ C*) # Sun C 5.9
7444 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'
7445 compiler_needs_object=yes
7446 tmp_sharedflag='-G' ;;
7447 *Sun\ F*) # Sun Fortran 8.3
7448 tmp_sharedflag='-G' ;;
7449 esac
7450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007451
mlcreech636a9952008-05-05 22:52:56 +00007452 if test "x$supports_anon_versioning" = xyes; then
7453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7455 echo "local: *; };" >> $output_objdir/$libname.ver~
7456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7457 fi
7458
7459 case $cc_basename in
7460 xlf*)
7461 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7462 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7463 hardcode_libdir_flag_spec=
7464 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7465 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7466 if test "x$supports_anon_versioning" = xyes; then
7467 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7469 echo "local: *; };" >> $output_objdir/$libname.ver~
7470 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7471 fi
7472 ;;
7473 esac
vapier7f19c022007-02-17 14:46:31 +00007474 else
mlcreech636a9952008-05-05 22:52:56 +00007475 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007476 fi
7477 ;;
7478
7479 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007480 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007481 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7482 wlarc=
7483 else
7484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7486 fi
7487 ;;
7488
vapier7f19c022007-02-17 14:46:31 +00007489 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007490 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007491 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007492 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007493
7494*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7495*** create shared libraries on Solaris systems. Therefore, libtool
7496*** is disabling shared libraries support. We urge you to upgrade GNU
7497*** binutils to release 2.9.1 or newer. Another option is to modify
7498*** your PATH or compiler configuration so that the native linker is
7499*** used, and then restart.
7500
mlcreech636a9952008-05-05 22:52:56 +00007501_LT_EOF
7502 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7505 else
7506 ld_shlibs=no
7507 fi
7508 ;;
7509
vapier7f19c022007-02-17 14:46:31 +00007510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7511 case `$LD -v 2>&1` in
7512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7513 ld_shlibs=no
7514 cat <<_LT_EOF 1>&2
7515
7516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7517*** reliably create shared libraries on SCO systems. Therefore, libtool
7518*** is disabling shared libraries support. We urge you to upgrade GNU
7519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7520*** your PATH or compiler configuration so that the native linker is
7521*** used, and then restart.
7522
7523_LT_EOF
7524 ;;
7525 *)
mlcreech636a9952008-05-05 22:52:56 +00007526 # For security reasons, it is highly recommended that you always
7527 # use absolute paths for naming shared libraries, and exclude the
7528 # DT_RUNPATH tag from executables and libraries. But doing so
7529 # requires that you compile everything twice, which is a pain.
7530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007534 else
7535 ld_shlibs=no
7536 fi
7537 ;;
7538 esac
7539 ;;
7540
a.rottmann9bc8b932004-02-29 15:18:31 +00007541 sunos4*)
7542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7543 wlarc=
7544 hardcode_direct=yes
7545 hardcode_shlibpath_var=no
7546 ;;
7547
a.rottmann9bc8b932004-02-29 15:18:31 +00007548 *)
mlcreech636a9952008-05-05 22:52:56 +00007549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7552 else
7553 ld_shlibs=no
7554 fi
7555 ;;
7556 esac
7557
vapier7f19c022007-02-17 14:46:31 +00007558 if test "$ld_shlibs" = no; then
7559 runpath_var=
7560 hardcode_libdir_flag_spec=
7561 export_dynamic_flag_spec=
7562 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007563 fi
7564 else
7565 # PORTME fill in a description of your system's linker (not GNU ld)
7566 case $host_os in
7567 aix3*)
7568 allow_undefined_flag=unsupported
7569 always_export_symbols=yes
7570 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'
7571 # Note: this linker hardcodes the directories in LIBPATH if there
7572 # are no directories specified by -L.
7573 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007574 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007575 # Neither direct hardcoding nor static linking is supported with a
7576 # broken collect2.
7577 hardcode_direct=unsupported
7578 fi
7579 ;;
7580
mlcreech636a9952008-05-05 22:52:56 +00007581 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007582 if test "$host_cpu" = ia64; then
7583 # On IA64, the linker does run time linking by default, so we don't
7584 # have to do anything special.
7585 aix_use_runtimelinking=no
7586 exp_sym_flag='-Bexport'
7587 no_entry_flag=""
7588 else
7589 # If we're using GNU nm, then we don't want the "-C" option.
7590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007591 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7592 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007593 else
mlcreech636a9952008-05-05 22:52:56 +00007594 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
a.rottmann9bc8b932004-02-29 15:18:31 +00007595 fi
7596 aix_use_runtimelinking=no
7597
7598 # Test if we are trying to use run time linking or normal
7599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7600 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007602 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007603 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7604 aix_use_runtimelinking=yes
7605 break
7606 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007607 done
vapier7f19c022007-02-17 14:46:31 +00007608 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007609 esac
7610
7611 exp_sym_flag='-bexport'
7612 no_entry_flag='-bnoentry'
7613 fi
7614
7615 # When large executables or shared objects are built, AIX ld can
7616 # have problems creating the table of contents. If linking a library
7617 # or program results in "error TOC overflow" add -mminimal-toc to
7618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7620
7621 archive_cmds=''
7622 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007623 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007624 hardcode_libdir_separator=':'
7625 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007626 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007627
7628 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007629 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007630 # We only want to do this on AIX 4.2 and lower, the check
7631 # below for broken collect2 doesn't work under 4.3+
7632 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007633 if test -f "$collect2name" &&
7634 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007635 then
mlcreech636a9952008-05-05 22:52:56 +00007636 # We have reworked collect2
7637 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007638 else
mlcreech636a9952008-05-05 22:52:56 +00007639 # We have old collect2
7640 hardcode_direct=unsupported
7641 # It fails to find uninstalled libraries when the uninstalled
7642 # path is not listed in the libpath. Setting hardcode_minus_L
7643 # to unsupported forces relinking
7644 hardcode_minus_L=yes
7645 hardcode_libdir_flag_spec='-L$libdir'
7646 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 fi
vapier7f19c022007-02-17 14:46:31 +00007648 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007649 esac
7650 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007651 if test "$aix_use_runtimelinking" = yes; then
7652 shared_flag="$shared_flag "'${wl}-G'
7653 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007654 else
7655 # not using gcc
7656 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7658 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007659 shared_flag='-G'
7660 else
vapier7f19c022007-02-17 14:46:31 +00007661 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 shared_flag='${wl}-G'
7663 else
7664 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007665 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007666 fi
7667 fi
7668
vapier6acb2cf2009-01-28 04:46:28 +00007669 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007670 # It seems that -bexpall does not export symbols beginning with
7671 # underscore (_), so it is better to generate a list of symbols to export.
7672 always_export_symbols=yes
7673 if test "$aix_use_runtimelinking" = yes; then
7674 # Warning - without using the other runtime loading flags (-brtl),
7675 # -berok will link without error, but may produce a broken library.
7676 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007677 # Determine the default libpath from the value encoded in an
7678 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007680/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007681
a.rottmann84e63352003-03-24 09:42:16 +00007682int
7683main ()
7684{
a.rottmann9bc8b932004-02-29 15:18:31 +00007685
a.rottmann84e63352003-03-24 09:42:16 +00007686 ;
7687 return 0;
7688}
7689_ACEOF
drhf922ca42015-05-14 15:39:18 +00007690if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007691
mlcreech636a9952008-05-05 22:52:56 +00007692lt_aix_libpath_sed='
7693 /Import File Strings/,/^$/ {
7694 /^0/ {
7695 s/^0 *\(.*\)$/\1/
7696 p
7697 }
7698 }'
7699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007700# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007701if test -z "$aix_libpath"; then
7702 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7703fi
a.rottmann84e63352003-03-24 09:42:16 +00007704fi
drhf922ca42015-05-14 15:39:18 +00007705rm -f core conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007708
mlcreech636a9952008-05-05 22:52:56 +00007709 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7710 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"
7711 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007712 if test "$host_cpu" = ia64; then
7713 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7714 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007715 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
a.rottmann9bc8b932004-02-29 15:18:31 +00007716 else
mlcreech636a9952008-05-05 22:52:56 +00007717 # Determine the default libpath from the value encoded in an
7718 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007720/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007721
a.rottmann9bc8b932004-02-29 15:18:31 +00007722int
7723main ()
7724{
a.rottmann84e63352003-03-24 09:42:16 +00007725
a.rottmann9bc8b932004-02-29 15:18:31 +00007726 ;
7727 return 0;
7728}
7729_ACEOF
drhf922ca42015-05-14 15:39:18 +00007730if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007731
mlcreech636a9952008-05-05 22:52:56 +00007732lt_aix_libpath_sed='
7733 /Import File Strings/,/^$/ {
7734 /^0/ {
7735 s/^0 *\(.*\)$/\1/
7736 p
7737 }
7738 }'
7739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007740# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007741if test -z "$aix_libpath"; then
7742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7743fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007744fi
drhf922ca42015-05-14 15:39:18 +00007745rm -f core conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007748
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7750 # Warning - without using the other run time loading flags,
7751 # -berok will link without error, but may produce a broken library.
7752 no_undefined_flag=' ${wl}-bernotok'
7753 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007754 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007755 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007756 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007757 # This is similar to how AIX traditionally builds its shared libraries.
7758 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
a.rottmann84e63352003-03-24 09:42:16 +00007759 fi
7760 fi
a.rottmann84e63352003-03-24 09:42:16 +00007761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007762
7763 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007764 case $host_cpu in
7765 powerpc)
7766 # see comment about AmigaOS4 .so support
7767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7768 archive_expsym_cmds=''
7769 ;;
7770 m68k)
7771 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)'
7772 hardcode_libdir_flag_spec='-L$libdir'
7773 hardcode_minus_L=yes
7774 ;;
7775 esac
a.rottmann84e63352003-03-24 09:42:16 +00007776 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007777
vapier7f19c022007-02-17 14:46:31 +00007778 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 export_dynamic_flag_spec=-rdynamic
7780 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007781
vapier6acb2cf2009-01-28 04:46:28 +00007782 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 # When not using gcc, we currently assume that we are using
7784 # Microsoft Visual C++.
7785 # hardcode_libdir_flag_spec is actually meaningless, as there is
7786 # no search path for DLLs.
7787 hardcode_libdir_flag_spec=' '
7788 allow_undefined_flag=unsupported
7789 # Tell ltmain to make .lib files, not .a files.
7790 libext=lib
7791 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007792 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007794 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007796 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007797 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007798 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007799 fix_srcfile_path='`cygpath -w "$srcfile"`'
7800 enable_shared_with_static_runtimes=yes
7801 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007802
a.rottmann9bc8b932004-02-29 15:18:31 +00007803 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007804
7805
7806 archive_cmds_need_lc=no
7807 hardcode_direct=no
7808 hardcode_automatic=yes
7809 hardcode_shlibpath_var=unsupported
7810 whole_archive_flag_spec=''
7811 link_all_deplibs=yes
7812 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007813 case $cc_basename in
7814 ifort*) _lt_dar_can_shared=yes ;;
7815 *) _lt_dar_can_shared=$GCC ;;
7816 esac
7817 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007818 output_verbose_link_cmd=echo
7819 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7820 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7821 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}"
7822 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}"
7823
7824 else
7825 ld_shlibs=no
7826 fi
7827
a.rottmann9bc8b932004-02-29 15:18:31 +00007828 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007829
a.rottmann9bc8b932004-02-29 15:18:31 +00007830 dgux*)
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_libdir_flag_spec='-L$libdir'
7833 hardcode_shlibpath_var=no
7834 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007835
a.rottmann9bc8b932004-02-29 15:18:31 +00007836 freebsd1*)
7837 ld_shlibs=no
7838 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007839
a.rottmann9bc8b932004-02-29 15:18:31 +00007840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7841 # support. Future versions do this automatically, but an explicit c++rt0.o
7842 # does not break anything, and helps significantly (at the cost of a little
7843 # extra space).
7844 freebsd2.2*)
7845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7846 hardcode_libdir_flag_spec='-R$libdir'
7847 hardcode_direct=yes
7848 hardcode_shlibpath_var=no
7849 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007850
a.rottmann9bc8b932004-02-29 15:18:31 +00007851 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7852 freebsd2*)
7853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7854 hardcode_direct=yes
7855 hardcode_minus_L=yes
7856 hardcode_shlibpath_var=no
7857 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007858
a.rottmann9bc8b932004-02-29 15:18:31 +00007859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007860 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007861 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7862 hardcode_libdir_flag_spec='-R$libdir'
7863 hardcode_direct=yes
7864 hardcode_shlibpath_var=no
7865 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007866
a.rottmann9bc8b932004-02-29 15:18:31 +00007867 hpux9*)
7868 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007869 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007870 else
mlcreech636a9952008-05-05 22:52:56 +00007871 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007872 fi
7873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7874 hardcode_libdir_separator=:
7875 hardcode_direct=yes
7876
7877 # hardcode_minus_L: Not really in the search PATH,
7878 # but as the default location of the library.
7879 hardcode_minus_L=yes
7880 export_dynamic_flag_spec='${wl}-E'
7881 ;;
7882
vapier7f19c022007-02-17 14:46:31 +00007883 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007885 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7886 else
7887 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7888 fi
7889 if test "$with_gnu_ld" = no; then
7890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007891 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007892 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007893 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007894 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007895 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007896 # hardcode_minus_L: Not really in the search PATH,
7897 # but as the default location of the library.
7898 hardcode_minus_L=yes
7899 fi
7900 ;;
7901
7902 hpux11*)
7903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7904 case $host_cpu in
7905 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7907 ;;
vapier7f19c022007-02-17 14:46:31 +00007908 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007909 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007910 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007911 *)
7912 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7913 ;;
7914 esac
7915 else
vapier7f19c022007-02-17 14:46:31 +00007916 case $host_cpu in
7917 hppa*64*)
7918 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7919 ;;
7920 ia64*)
7921 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007922 ;;
7923 *)
vapier7f19c022007-02-17 14:46:31 +00007924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007925 ;;
7926 esac
7927 fi
7928 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7930 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007931
vapier7f19c022007-02-17 14:46:31 +00007932 case $host_cpu in
7933 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007934 hardcode_direct=no
7935 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007936 ;;
7937 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007939 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007940 export_dynamic_flag_spec='${wl}-E'
7941
7942 # hardcode_minus_L: Not really in the search PATH,
7943 # but as the default location of the library.
7944 hardcode_minus_L=yes
7945 ;;
7946 esac
7947 fi
7948 ;;
7949
7950 irix5* | irix6* | nonstopux*)
7951 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007952 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'
7953 # Try to use the -exported_symbol ld option, if it does not
7954 # work, assume that -exports_file does not work either and
7955 # implicitly export all symbols.
7956 save_LDFLAGS="$LDFLAGS"
7957 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007960int foo(void) {}
7961_ACEOF
drhf922ca42015-05-14 15:39:18 +00007962if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007963 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'
7964
mlcreech636a9952008-05-05 22:52:56 +00007965fi
drhf922ca42015-05-14 15:39:18 +00007966rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007968 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007969 else
mlcreech636a9952008-05-05 22:52:56 +00007970 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'
7971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 fi
mlcreech636a9952008-05-05 22:52:56 +00007973 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7975 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007976 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007977 link_all_deplibs=yes
7978 ;;
7979
vapier7f19c022007-02-17 14:46:31 +00007980 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7983 else
7984 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7985 fi
7986 hardcode_libdir_flag_spec='-R$libdir'
7987 hardcode_direct=yes
7988 hardcode_shlibpath_var=no
7989 ;;
7990
7991 newsos6)
7992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7993 hardcode_direct=yes
7994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7995 hardcode_libdir_separator=:
7996 hardcode_shlibpath_var=no
7997 ;;
7998
mlcreech636a9952008-05-05 22:52:56 +00007999 *nto* | *qnx*)
8000 ;;
8001
a.rottmann9bc8b932004-02-29 15:18:31 +00008002 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008003 if test -f /usr/libexec/ld.so; then
8004 hardcode_direct=yes
8005 hardcode_shlibpath_var=no
8006 hardcode_direct_absolute=yes
8007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8009 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8011 export_dynamic_flag_spec='${wl}-E'
8012 else
8013 case $host_os in
8014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8016 hardcode_libdir_flag_spec='-R$libdir'
8017 ;;
8018 *)
8019 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8020 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8021 ;;
8022 esac
8023 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008024 else
mlcreech636a9952008-05-05 22:52:56 +00008025 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008026 fi
8027 ;;
8028
8029 os2*)
8030 hardcode_libdir_flag_spec='-L$libdir'
8031 hardcode_minus_L=yes
8032 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008033 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'
8034 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008035 ;;
8036
8037 osf3*)
8038 if test "$GCC" = yes; then
8039 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008040 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008041 else
8042 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008043 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008044 fi
mlcreech636a9952008-05-05 22:52:56 +00008045 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8047 hardcode_libdir_separator=:
8048 ;;
8049
8050 osf4* | osf5*) # as osf3* with the addition of -msym flag
8051 if test "$GCC" = yes; then
8052 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008053 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00008054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8055 else
8056 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008057 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'
8058 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~
8059 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00008060
8061 # Both c and cxx compiler support -rpath directly
8062 hardcode_libdir_flag_spec='-rpath $libdir'
8063 fi
mlcreech636a9952008-05-05 22:52:56 +00008064 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008065 hardcode_libdir_separator=:
8066 ;;
8067
a.rottmann9bc8b932004-02-29 15:18:31 +00008068 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008069 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008070 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008071 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008072 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8074 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00008075 else
mlcreech636a9952008-05-05 22:52:56 +00008076 case `$CC -V 2>&1` in
8077 *"Compilers 5.0"*)
8078 wlarc=''
8079 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8082 ;;
8083 *)
8084 wlarc='${wl}'
8085 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8087 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8088 ;;
8089 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008090 fi
8091 hardcode_libdir_flag_spec='-R$libdir'
8092 hardcode_shlibpath_var=no
8093 case $host_os in
8094 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008095 *)
mlcreech636a9952008-05-05 22:52:56 +00008096 # The compiler driver will combine and reorder linker options,
8097 # but understands `-z linker_flag'. GCC discards it without `$wl',
8098 # but is careful enough not to reorder.
8099 # Supported since Solaris 2.6 (maybe 2.5.1?)
8100 if test "$GCC" = yes; then
8101 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8102 else
8103 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8104 fi
8105 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008106 esac
8107 link_all_deplibs=yes
8108 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008109
a.rottmann9bc8b932004-02-29 15:18:31 +00008110 sunos4*)
8111 if test "x$host_vendor" = xsequent; then
8112 # Use $CC to link under sequent, because it throws in some extra .o
8113 # files that make .init and .fini sections work.
8114 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8115 else
8116 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8117 fi
8118 hardcode_libdir_flag_spec='-L$libdir'
8119 hardcode_direct=yes
8120 hardcode_minus_L=yes
8121 hardcode_shlibpath_var=no
8122 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008123
a.rottmann9bc8b932004-02-29 15:18:31 +00008124 sysv4)
8125 case $host_vendor in
8126 sni)
8127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8128 hardcode_direct=yes # is this really true???
8129 ;;
8130 siemens)
8131 ## LD is ld it makes a PLAMLIB
8132 ## CC just makes a GrossModule.
8133 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8134 reload_cmds='$CC -r -o $output$reload_objs'
8135 hardcode_direct=no
8136 ;;
8137 motorola)
8138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8140 ;;
8141 esac
8142 runpath_var='LD_RUN_PATH'
8143 hardcode_shlibpath_var=no
8144 ;;
8145
8146 sysv4.3*)
8147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8148 hardcode_shlibpath_var=no
8149 export_dynamic_flag_spec='-Bexport'
8150 ;;
8151
8152 sysv4*MP*)
8153 if test -d /usr/nec; then
8154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8155 hardcode_shlibpath_var=no
8156 runpath_var=LD_RUN_PATH
8157 hardcode_runpath_var=yes
8158 ld_shlibs=yes
8159 fi
8160 ;;
8161
mlcreech636a9952008-05-05 22:52:56 +00008162 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008163 no_undefined_flag='${wl}-z,text'
8164 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008165 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008166 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008167
a.rottmann9bc8b932004-02-29 15:18:31 +00008168 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008169 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8170 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008171 else
vapier7f19c022007-02-17 14:46:31 +00008172 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8173 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008174 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008175 ;;
8176
vapier7f19c022007-02-17 14:46:31 +00008177 sysv5* | sco3.2v5* | sco5v6*)
8178 # Note: We can NOT use -z defs as we might desire, because we do not
8179 # link with -lc, and that would cause any symbols used from libc to
8180 # always be unresolved, which means just about no library would
8181 # ever link correctly. If we're not using GNU ld we use -z text
8182 # though, which does catch some bad symbols but isn't as heavy-handed
8183 # as -z defs.
8184 no_undefined_flag='${wl}-z,text'
8185 allow_undefined_flag='${wl}-z,nodefs'
8186 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008187 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008188 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008189 hardcode_libdir_separator=':'
8190 link_all_deplibs=yes
8191 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008192 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008193
8194 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008195 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008197 else
mlcreech636a9952008-05-05 22:52:56 +00008198 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8199 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008200 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008201 ;;
8202
8203 uts4*)
8204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8205 hardcode_libdir_flag_spec='-L$libdir'
8206 hardcode_shlibpath_var=no
8207 ;;
8208
8209 *)
8210 ld_shlibs=no
8211 ;;
8212 esac
mlcreech636a9952008-05-05 22:52:56 +00008213
8214 if test x$host_vendor = xsni; then
8215 case $host in
8216 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8217 export_dynamic_flag_spec='${wl}-Blargedynsym'
8218 ;;
8219 esac
8220 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008221 fi
8222
drhf922ca42015-05-14 15:39:18 +00008223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008224$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008225test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008226
mlcreech636a9952008-05-05 22:52:56 +00008227with_gnu_ld=$with_gnu_ld
8228
8229
danielk197733a14782008-08-04 14:50:05 +00008230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
a.rottmann9bc8b932004-02-29 15:18:31 +00008243#
8244# Do we need to explicitly link libc?
8245#
8246case "x$archive_cmds_need_lc" in
8247x|xyes)
8248 # Assume -lc should be added
8249 archive_cmds_need_lc=yes
8250
8251 if test "$enable_shared" = yes && test "$GCC" = yes; then
8252 case $archive_cmds in
8253 *'~'*)
8254 # FIXME: we may have to deal with multi-command sequences.
8255 ;;
8256 '$CC '*)
8257 # Test whether the compiler implicitly links with -lc since on some
8258 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8259 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008261$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008262 $RM conftest*
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008264
drhf922ca42015-05-14 15:39:18 +00008265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008266 (eval $ac_compile) 2>&5
8267 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8269 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008270 soname=conftest
8271 lib=conftest
8272 libobjs=conftest.$ac_objext
8273 deplibs=
8274 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008275 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008276 compiler_flags=-v
8277 linker_flags=-v
8278 verstring=
8279 output_objdir=.
8280 libname=conftest
8281 lt_save_allow_undefined_flag=$allow_undefined_flag
8282 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00008284 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008285 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008288 then
8289 archive_cmds_need_lc=no
8290 else
8291 archive_cmds_need_lc=yes
8292 fi
8293 allow_undefined_flag=$lt_save_allow_undefined_flag
8294 else
8295 cat conftest.err 1>&5
8296 fi
mlcreech636a9952008-05-05 22:52:56 +00008297 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008299$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008300 ;;
8301 esac
drh71eb93e2001-09-28 01:34:43 +00008302 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008303 ;;
8304esac
drh71eb93e2001-09-28 01:34:43 +00008305
mlcreech636a9952008-05-05 22:52:56 +00008306
danielk197733a14782008-08-04 14:50:05 +00008307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
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
drhf922ca42015-05-14 15:39:18 +00008462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008463$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008464
8465if test "$GCC" = yes; then
8466 case $host_os in
8467 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8468 *) lt_awk_arg="/^libraries:/" ;;
8469 esac
8470 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8471 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8472 # if the path contains ";" then we assume it to be the separator
8473 # otherwise default to the standard path separator (i.e. ":") - it is
8474 # assumed that no part of a normal pathname contains ";" but that should
8475 # okay in the real world where ";" in dirpaths is itself problematic.
8476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8477 else
8478 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8479 fi
8480 # Ok, now we have the path, separated by spaces, we can step through it
8481 # and add multilib dir if necessary.
8482 lt_tmp_lt_search_path_spec=
8483 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8484 for lt_sys_path in $lt_search_path_spec; do
8485 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8486 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8487 else
8488 test -d "$lt_sys_path" && \
8489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8490 fi
8491 done
8492 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8493BEGIN {RS=" "; FS="/|\n";} {
8494 lt_foo="";
8495 lt_count=0;
8496 for (lt_i = NF; lt_i > 0; lt_i--) {
8497 if ($lt_i != "" && $lt_i != ".") {
8498 if ($lt_i == "..") {
8499 lt_count++;
8500 } else {
8501 if (lt_count == 0) {
8502 lt_foo="/" $lt_i lt_foo;
8503 } else {
8504 lt_count--;
8505 }
8506 }
8507 }
8508 }
8509 if (lt_foo != "") { lt_freq[lt_foo]++; }
8510 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8511}'`
8512 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8513else
8514 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8515fi
drh71eb93e2001-09-28 01:34:43 +00008516library_names_spec=
8517libname_spec='lib$name'
8518soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008519shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008520postinstall_cmds=
8521postuninstall_cmds=
8522finish_cmds=
8523finish_eval=
8524shlibpath_var=
8525shlibpath_overrides_runpath=unknown
8526version_type=none
8527dynamic_linker="$host_os ld.so"
8528sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008529need_lib_prefix=unknown
8530hardcode_into_libs=no
8531
8532# when you set need_version to no, make sure it does not cause -set_version
8533# flags to be left without arguments
8534need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008535
8536case $host_os in
8537aix3*)
8538 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008540 shlibpath_var=LIBPATH
8541
a.rottmann9bc8b932004-02-29 15:18:31 +00008542 # AIX 3 has no versioning support, so we append a major version to the name.
8543 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008544 ;;
8545
mlcreech636a9952008-05-05 22:52:56 +00008546aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008547 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008548 need_lib_prefix=no
8549 need_version=no
8550 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008551 if test "$host_cpu" = ia64; then
8552 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008554 shlibpath_var=LD_LIBRARY_PATH
8555 else
8556 # With GCC up to 2.95.x, collect2 would create an import file
8557 # for dependence libraries. The import file would start with
8558 # the line `#! .'. This would cause the generated library to
8559 # depend on `.', always an invalid library. This was fixed in
8560 # development snapshots of GCC prior to 3.0.
8561 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008562 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8564 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008565 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008566 :
8567 else
8568 can_build_shared=no
8569 fi
8570 ;;
drh71eb93e2001-09-28 01:34:43 +00008571 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8573 # soname into executable. Probably we can add versioning support to
8574 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008575 if test "$aix_use_runtimelinking" = yes; then
8576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8577 # instead of lib<name>.a to let people know that these are not
8578 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008580 else
8581 # We preserve .a as extension for shared libraries through AIX4.2
8582 # and later when we are not doing run time linking.
8583 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008584 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008585 fi
8586 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008587 fi
8588 ;;
8589
8590amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008591 case $host_cpu in
8592 powerpc)
8593 # Since July 2007 AmigaOS4 officially supports .so libraries.
8594 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8596 ;;
8597 m68k)
8598 library_names_spec='$libname.ixlibrary $libname.a'
8599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8600 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'
8601 ;;
8602 esac
drh71eb93e2001-09-28 01:34:43 +00008603 ;;
8604
8605beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008606 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008607 dynamic_linker="$host_os ld.so"
8608 shlibpath_var=LIBRARY_PATH
8609 ;;
8610
vapier7f19c022007-02-17 14:46:31 +00008611bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008612 version_type=linux
8613 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8615 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8617 shlibpath_var=LD_LIBRARY_PATH
8618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8620 # the default ld.so.conf also contains /usr/contrib/lib and
8621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8622 # libtool to hard-code these into programs
8623 ;;
8624
vapier6acb2cf2009-01-28 04:46:28 +00008625cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008626 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008627 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008628 need_version=no
8629 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008630
drh71eb93e2001-09-28 01:34:43 +00008631 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008632 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008633 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8635 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008637 dldir=$destdir/`dirname \$dlpath`~
8638 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008639 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008640 chmod a+x \$dldir/$dlname~
8641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8643 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008645 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008646 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008647 shlibpath_overrides_runpath=yes
8648
8649 case $host_os in
8650 cygwin*)
8651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8653 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8654 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008655 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008656 # MinGW DLLs use traditional 'lib' prefix
8657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008658 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8659 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008660 # It is most probably a Windows format PATH printed by
8661 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8662 # path with ; separators, and with drive letters. We can handle the
8663 # drive letters (cygwin fileutils understands them), so leave them,
8664 # especially as we might pass files found there to a mingw objdump,
8665 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008667 else
mlcreech636a9952008-05-05 22:52:56 +00008668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008669 fi
8670 ;;
8671 pw32*)
8672 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
a.rottmann9bc8b932004-02-29 15:18:31 +00008674 ;;
8675 esac
drh71eb93e2001-09-28 01:34:43 +00008676 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008677
drh71eb93e2001-09-28 01:34:43 +00008678 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008680 ;;
8681 esac
8682 dynamic_linker='Win32 ld.exe'
8683 # FIXME: first we should search . and the directory the executable is in
8684 shlibpath_var=PATH
8685 ;;
8686
8687darwin* | rhapsody*)
8688 dynamic_linker="$host_os dyld"
8689 version_type=darwin
8690 need_lib_prefix=no
8691 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008692 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008693 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008694 shlibpath_overrides_runpath=yes
8695 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008697
8698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8700 ;;
8701
8702dgux*)
8703 version_type=linux
8704 need_lib_prefix=no
8705 need_version=no
8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8707 soname_spec='${libname}${release}${shared_ext}$major'
8708 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008709 ;;
8710
a.rottmann84e63352003-03-24 09:42:16 +00008711freebsd1*)
8712 dynamic_linker=no
8713 ;;
8714
vapier7f19c022007-02-17 14:46:31 +00008715freebsd* | dragonfly*)
8716 # DragonFly does not have aout. When/if they implement a new
8717 # versioning mechanism, adjust this.
8718 if test -x /usr/bin/objformat; then
8719 objformat=`/usr/bin/objformat`
8720 else
8721 case $host_os in
8722 freebsd[123]*) objformat=aout ;;
8723 *) objformat=elf ;;
8724 esac
8725 fi
8726 # Handle Gentoo/FreeBSD as it was Linux
8727 case $host_vendor in
8728 gentoo)
8729 version_type=linux ;;
8730 *)
8731 version_type=freebsd-$objformat ;;
8732 esac
8733
drh71eb93e2001-09-28 01:34:43 +00008734 case $version_type in
8735 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008737 need_version=no
8738 need_lib_prefix=no
8739 ;;
8740 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008742 need_version=yes
8743 ;;
vapier7f19c022007-02-17 14:46:31 +00008744 linux)
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 need_lib_prefix=no
8748 need_version=no
8749 ;;
drh71eb93e2001-09-28 01:34:43 +00008750 esac
8751 shlibpath_var=LD_LIBRARY_PATH
8752 case $host_os in
8753 freebsd2*)
8754 shlibpath_overrides_runpath=yes
8755 ;;
vapier7f19c022007-02-17 14:46:31 +00008756 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008757 shlibpath_overrides_runpath=yes
8758 hardcode_into_libs=yes
8759 ;;
vapier7f19c022007-02-17 14:46:31 +00008760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008762 shlibpath_overrides_runpath=no
8763 hardcode_into_libs=yes
8764 ;;
mlcreech636a9952008-05-05 22:52:56 +00008765 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008766 shlibpath_overrides_runpath=yes
8767 hardcode_into_libs=yes
8768 ;;
drh71eb93e2001-09-28 01:34:43 +00008769 esac
8770 ;;
8771
8772gnu*)
8773 version_type=linux
8774 need_lib_prefix=no
8775 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8777 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008778 shlibpath_var=LD_LIBRARY_PATH
8779 hardcode_into_libs=yes
8780 ;;
8781
8782hpux9* | hpux10* | hpux11*)
8783 # Give a soname corresponding to the major version so that dld.sl refuses to
8784 # link against other versions.
8785 version_type=sunos
8786 need_lib_prefix=no
8787 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008788 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008790 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008791 hardcode_into_libs=yes
8792 dynamic_linker="$host_os dld.so"
8793 shlibpath_var=LD_LIBRARY_PATH
8794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8796 soname_spec='${libname}${release}${shared_ext}$major'
8797 if test "X$HPUX_IA64_MODE" = X32; then
8798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8799 else
8800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8801 fi
8802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8803 ;;
mlcreech636a9952008-05-05 22:52:56 +00008804 hppa*64*)
8805 shrext_cmds='.sl'
8806 hardcode_into_libs=yes
8807 dynamic_linker="$host_os dld.sl"
8808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8814 ;;
8815 *)
vapier7f19c022007-02-17 14:46:31 +00008816 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008817 dynamic_linker="$host_os dld.sl"
8818 shlibpath_var=SHLIB_PATH
8819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821 soname_spec='${libname}${release}${shared_ext}$major'
8822 ;;
8823 esac
drh71eb93e2001-09-28 01:34:43 +00008824 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8825 postinstall_cmds='chmod 555 $lib'
8826 ;;
8827
mlcreech636a9952008-05-05 22:52:56 +00008828interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008829 version_type=linux
8830 need_lib_prefix=no
8831 need_version=no
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8833 soname_spec='${libname}${release}${shared_ext}$major'
8834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 shlibpath_overrides_runpath=no
8837 hardcode_into_libs=yes
8838 ;;
8839
a.rottmann84e63352003-03-24 09:42:16 +00008840irix5* | irix6* | nonstopux*)
8841 case $host_os in
8842 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008843 *)
8844 if test "$lt_cv_prog_gnu_ld" = yes; then
8845 version_type=linux
8846 else
8847 version_type=irix
8848 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008849 esac
drh71eb93e2001-09-28 01:34:43 +00008850 need_lib_prefix=no
8851 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008852 soname_spec='${libname}${release}${shared_ext}$major'
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008854 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008855 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008856 libsuff= shlibsuff=
8857 ;;
8858 *)
8859 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8861 libsuff= shlibsuff= libmagic=32-bit;;
8862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8863 libsuff=32 shlibsuff=N32 libmagic=N32;;
8864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008866 *) libsuff= shlibsuff= libmagic=never-match;;
8867 esac
8868 ;;
8869 esac
8870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8871 shlibpath_overrides_runpath=no
8872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008874 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008875 ;;
8876
8877# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008878linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008879 dynamic_linker=no
8880 ;;
8881
8882# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008883linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008884 version_type=linux
8885 need_lib_prefix=no
8886 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008892 # Some binutils ld are patched to set DT_RUNPATH
8893 save_LDFLAGS=$LDFLAGS
8894 save_libdir=$libdir
8895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008898/* end confdefs.h. */
8899
8900int
8901main ()
8902{
8903
8904 ;
8905 return 0;
8906}
8907_ACEOF
drhf922ca42015-05-14 15:39:18 +00008908if ac_fn_c_try_link "$LINENO"; then :
8909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008910 shlibpath_overrides_runpath=yes
8911fi
mlcreech636a9952008-05-05 22:52:56 +00008912fi
drhf922ca42015-05-14 15:39:18 +00008913rm -f core conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008915 LDFLAGS=$save_LDFLAGS
8916 libdir=$save_libdir
8917
drh71eb93e2001-09-28 01:34:43 +00008918 # This implies no fast_install, which is unacceptable.
8919 # Some rework will be needed to allow for fast_install
8920 # before this can be enabled.
8921 hardcode_into_libs=yes
8922
a.rottmann9bc8b932004-02-29 15:18:31 +00008923 # Append ld.so.conf contents to the search path
8924 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008925 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vapier7f19c022007-02-17 14:46:31 +00008926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008927 fi
8928
drh71eb93e2001-09-28 01:34:43 +00008929 # We used to test for /lib/ld.so.1 and disable shared libraries on
8930 # powerpc, because MkLinux only supported shared libraries with the
8931 # GNU dynamic linker. Since this was broken with cross compilers,
8932 # most powerpc-linux boxes support dynamic linking these days and
8933 # people can always --disable-shared, the test was removed, and we
8934 # assume the GNU/Linux dynamic linker is in use.
8935 dynamic_linker='GNU/Linux ld.so'
8936 ;;
8937
8938netbsd*)
8939 version_type=sunos
8940 need_lib_prefix=no
8941 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8945 dynamic_linker='NetBSD (a.out) ld.so'
8946 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008949 dynamic_linker='NetBSD ld.elf_so'
8950 fi
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes
8953 hardcode_into_libs=yes
8954 ;;
8955
8956newsos6)
8957 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=yes
8961 ;;
8962
mlcreech636a9952008-05-05 22:52:56 +00008963*nto* | *qnx*)
8964 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008965 need_lib_prefix=no
8966 need_version=no
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008969 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008970 shlibpath_overrides_runpath=no
8971 hardcode_into_libs=yes
8972 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008973 ;;
8974
drh71eb93e2001-09-28 01:34:43 +00008975openbsd*)
8976 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008977 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008978 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8980 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8982 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008983 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008988 case $host_os in
8989 openbsd2.[89] | openbsd2.[89].*)
8990 shlibpath_overrides_runpath=no
8991 ;;
8992 *)
8993 shlibpath_overrides_runpath=yes
8994 ;;
8995 esac
a.rottmann84e63352003-03-24 09:42:16 +00008996 else
8997 shlibpath_overrides_runpath=yes
8998 fi
drh71eb93e2001-09-28 01:34:43 +00008999 ;;
9000
9001os2*)
9002 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009003 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009004 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009005 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009006 dynamic_linker='OS/2 ld.exe'
9007 shlibpath_var=LIBPATH
9008 ;;
9009
9010osf3* | osf4* | osf5*)
9011 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009012 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009013 need_version=no
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009016 shlibpath_var=LD_LIBRARY_PATH
9017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9019 ;;
9020
mlcreech636a9952008-05-05 22:52:56 +00009021rdos*)
9022 dynamic_linker=no
9023 ;;
9024
drh71eb93e2001-09-28 01:34:43 +00009025solaris*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9033 hardcode_into_libs=yes
9034 # ldd complains unless libraries are executable
9035 postinstall_cmds='chmod +x $lib'
9036 ;;
9037
9038sunos4*)
9039 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=yes
9044 if test "$with_gnu_ld" = yes; then
9045 need_lib_prefix=no
9046 fi
9047 need_version=yes
9048 ;;
9049
vapier7f19c022007-02-17 14:46:31 +00009050sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009051 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009054 shlibpath_var=LD_LIBRARY_PATH
9055 case $host_vendor in
9056 sni)
9057 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009058 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009059 runpath_var=LD_RUN_PATH
9060 ;;
9061 siemens)
9062 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009063 ;;
9064 motorola)
9065 need_lib_prefix=no
9066 need_version=no
9067 shlibpath_overrides_runpath=no
9068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9069 ;;
9070 esac
9071 ;;
9072
9073sysv4*MP*)
9074 if test -d /usr/nec ;then
9075 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9077 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009078 shlibpath_var=LD_LIBRARY_PATH
9079 fi
9080 ;;
9081
vapier7f19c022007-02-17 14:46:31 +00009082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9083 version_type=freebsd-elf
9084 need_lib_prefix=no
9085 need_version=no
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009089 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009090 hardcode_into_libs=yes
9091 if test "$with_gnu_ld" = yes; then
9092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009093 else
9094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009095 case $host_os in
9096 sco3.2v5*)
9097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9098 ;;
9099 esac
9100 fi
9101 sys_lib_dlsearch_path_spec='/usr/lib'
9102 ;;
9103
mlcreech636a9952008-05-05 22:52:56 +00009104tpf*)
9105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9106 version_type=linux
9107 need_lib_prefix=no
9108 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009110 shlibpath_var=LD_LIBRARY_PATH
9111 shlibpath_overrides_runpath=no
9112 hardcode_into_libs=yes
9113 ;;
9114
a.rottmann9bc8b932004-02-29 15:18:31 +00009115uts4*)
9116 version_type=linux
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 ;;
9121
drh71eb93e2001-09-28 01:34:43 +00009122*)
9123 dynamic_linker=no
9124 ;;
9125esac
drhf922ca42015-05-14 15:39:18 +00009126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009127$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009128test "$dynamic_linker" = no && can_build_shared=no
9129
vapier7f19c022007-02-17 14:46:31 +00009130variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9131if test "$GCC" = yes; then
9132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9133fi
9134
mlcreech636a9952008-05-05 22:52:56 +00009135if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9136 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9137fi
9138if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9139 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9140fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
drhf922ca42015-05-14 15:39:18 +00009228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009229$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009230hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009231if test -n "$hardcode_libdir_flag_spec" ||
9232 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009233 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009234
mlcreech636a9952008-05-05 22:52:56 +00009235 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009236 if test "$hardcode_direct" != no &&
9237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9238 # have to relink, otherwise we might link with an installed library
9239 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009240 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009241 test "$hardcode_minus_L" != no; then
9242 # Linking always hardcodes the temporary library directory.
9243 hardcode_action=relink
9244 else
9245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9246 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009247 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009248else
9249 # We cannot hardcode anything, or else we can only hardcode existing
9250 # directories.
9251 hardcode_action=unsupported
9252fi
drhf922ca42015-05-14 15:39:18 +00009253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009254$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009255
mlcreech636a9952008-05-05 22:52:56 +00009256if test "$hardcode_action" = relink ||
9257 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009258 # Fast installation is not supported
9259 enable_fast_install=no
9260elif test "$shlibpath_overrides_runpath" = yes ||
9261 test "$enable_shared" = no; then
9262 # Fast installation is not necessary
9263 enable_fast_install=needless
9264fi
9265
a.rottmann84e63352003-03-24 09:42:16 +00009266
mlcreech636a9952008-05-05 22:52:56 +00009267
9268
9269
9270
9271 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009272 enable_dlopen=unknown
9273 enable_dlopen_self=unknown
9274 enable_dlopen_self_static=unknown
9275else
9276 lt_cv_dlopen=no
9277 lt_cv_dlopen_libs=
9278
9279 case $host_os in
9280 beos*)
9281 lt_cv_dlopen="load_add_on"
9282 lt_cv_dlopen_libs=
9283 lt_cv_dlopen_self=yes
9284 ;;
9285
vapier6acb2cf2009-01-28 04:46:28 +00009286 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009287 lt_cv_dlopen="LoadLibrary"
9288 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009289 ;;
drh71eb93e2001-09-28 01:34:43 +00009290
a.rottmann9bc8b932004-02-29 15:18:31 +00009291 cygwin*)
9292 lt_cv_dlopen="dlopen"
9293 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009294 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009295
9296 darwin*)
9297 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009299$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009300if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009301 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009302else
9303 ac_check_lib_save_LIBS=$LIBS
9304LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009306/* end confdefs.h. */
9307
drh8b727472009-01-19 18:18:40 +00009308/* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009311#ifdef __cplusplus
9312extern "C"
9313#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009314char dlopen ();
9315int
9316main ()
9317{
drh8b727472009-01-19 18:18:40 +00009318return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009319 ;
9320 return 0;
9321}
9322_ACEOF
drhf922ca42015-05-14 15:39:18 +00009323if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009324 ac_cv_lib_dl_dlopen=yes
9325else
drhf922ca42015-05-14 15:39:18 +00009326 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009327fi
drhf922ca42015-05-14 15:39:18 +00009328rm -f core conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009330LIBS=$ac_check_lib_save_LIBS
9331fi
drhf922ca42015-05-14 15:39:18 +00009332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009333$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009334if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9336else
9337
9338 lt_cv_dlopen="dyld"
9339 lt_cv_dlopen_libs=
9340 lt_cv_dlopen_self=yes
9341
9342fi
9343
mlcreech636a9952008-05-05 22:52:56 +00009344 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009345
drh71eb93e2001-09-28 01:34:43 +00009346 *)
drhf922ca42015-05-14 15:39:18 +00009347 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9348if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009349 lt_cv_dlopen="shl_load"
9350else
drhf922ca42015-05-14 15:39:18 +00009351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009352$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009353if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009354 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009355else
9356 ac_check_lib_save_LIBS=$LIBS
9357LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009359/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009360
drh8b727472009-01-19 18:18:40 +00009361/* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009364#ifdef __cplusplus
9365extern "C"
9366#endif
drh71eb93e2001-09-28 01:34:43 +00009367char shl_load ();
9368int
9369main ()
9370{
drh8b727472009-01-19 18:18:40 +00009371return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009372 ;
9373 return 0;
9374}
9375_ACEOF
drhf922ca42015-05-14 15:39:18 +00009376if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009377 ac_cv_lib_dld_shl_load=yes
9378else
drhf922ca42015-05-14 15:39:18 +00009379 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009380fi
drhf922ca42015-05-14 15:39:18 +00009381rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009383LIBS=$ac_check_lib_save_LIBS
9384fi
drhf922ca42015-05-14 15:39:18 +00009385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009386$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009387if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009388 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009389else
drhf922ca42015-05-14 15:39:18 +00009390 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9391if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009392 lt_cv_dlopen="dlopen"
9393else
drhf922ca42015-05-14 15:39:18 +00009394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009395$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009396if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009397 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009398else
9399 ac_check_lib_save_LIBS=$LIBS
9400LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009402/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009403
drh8b727472009-01-19 18:18:40 +00009404/* Override any GCC internal prototype to avoid an error.
9405 Use char because int might match the return type of a GCC
9406 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009407#ifdef __cplusplus
9408extern "C"
9409#endif
drh71eb93e2001-09-28 01:34:43 +00009410char dlopen ();
9411int
9412main ()
9413{
drh8b727472009-01-19 18:18:40 +00009414return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009415 ;
9416 return 0;
9417}
9418_ACEOF
drhf922ca42015-05-14 15:39:18 +00009419if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009420 ac_cv_lib_dl_dlopen=yes
9421else
drhf922ca42015-05-14 15:39:18 +00009422 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009423fi
drhf922ca42015-05-14 15:39:18 +00009424rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009426LIBS=$ac_check_lib_save_LIBS
9427fi
drhf922ca42015-05-14 15:39:18 +00009428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009429$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009430if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9432else
drhf922ca42015-05-14 15:39:18 +00009433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009434$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009435if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009436 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009437else
9438 ac_check_lib_save_LIBS=$LIBS
9439LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009441/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009442
drh8b727472009-01-19 18:18:40 +00009443/* Override any GCC internal prototype to avoid an error.
9444 Use char because int might match the return type of a GCC
9445 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009446#ifdef __cplusplus
9447extern "C"
9448#endif
drh71eb93e2001-09-28 01:34:43 +00009449char dlopen ();
9450int
9451main ()
9452{
drh8b727472009-01-19 18:18:40 +00009453return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009454 ;
9455 return 0;
9456}
9457_ACEOF
drhf922ca42015-05-14 15:39:18 +00009458if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009459 ac_cv_lib_svld_dlopen=yes
9460else
drhf922ca42015-05-14 15:39:18 +00009461 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009462fi
drhf922ca42015-05-14 15:39:18 +00009463rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009465LIBS=$ac_check_lib_save_LIBS
9466fi
drhf922ca42015-05-14 15:39:18 +00009467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009468$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009469if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009471else
drhf922ca42015-05-14 15:39:18 +00009472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009473$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009474if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009475 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009476else
9477 ac_check_lib_save_LIBS=$LIBS
9478LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009480/* end confdefs.h. */
9481
drh8b727472009-01-19 18:18:40 +00009482/* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009485#ifdef __cplusplus
9486extern "C"
9487#endif
a.rottmann84e63352003-03-24 09:42:16 +00009488char dld_link ();
9489int
9490main ()
9491{
drh8b727472009-01-19 18:18:40 +00009492return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009493 ;
9494 return 0;
9495}
9496_ACEOF
drhf922ca42015-05-14 15:39:18 +00009497if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009498 ac_cv_lib_dld_dld_link=yes
9499else
drhf922ca42015-05-14 15:39:18 +00009500 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009501fi
drhf922ca42015-05-14 15:39:18 +00009502rm -f core conftest.err conftest.$ac_objext \
9503 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009504LIBS=$ac_check_lib_save_LIBS
9505fi
drhf922ca42015-05-14 15:39:18 +00009506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009507$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009508if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009509 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009510fi
9511
drh71eb93e2001-09-28 01:34:43 +00009512
9513fi
9514
drh71eb93e2001-09-28 01:34:43 +00009515
9516fi
9517
a.rottmann84e63352003-03-24 09:42:16 +00009518
9519fi
9520
9521
9522fi
9523
9524
drh71eb93e2001-09-28 01:34:43 +00009525fi
9526
9527 ;;
9528 esac
9529
9530 if test "x$lt_cv_dlopen" != xno; then
9531 enable_dlopen=yes
9532 else
9533 enable_dlopen=no
9534 fi
9535
9536 case $lt_cv_dlopen in
9537 dlopen)
9538 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009539 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009540
9541 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009543
9544 save_LIBS="$LIBS"
9545 LIBS="$lt_cv_dlopen_libs $LIBS"
9546
drhf922ca42015-05-14 15:39:18 +00009547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009548$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009549if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009550 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009551else
9552 if test "$cross_compiling" = yes; then :
9553 lt_cv_dlopen_self=cross
9554else
a.rottmann9bc8b932004-02-29 15:18:31 +00009555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009556 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009557 cat > conftest.$ac_ext <<_LT_EOF
drhe2ce8c42020-12-07 21:19:17 +00009558#line 9556 "configure"
drh71eb93e2001-09-28 01:34:43 +00009559#include "confdefs.h"
9560
9561#if HAVE_DLFCN_H
9562#include <dlfcn.h>
9563#endif
9564
9565#include <stdio.h>
9566
9567#ifdef RTLD_GLOBAL
9568# define LT_DLGLOBAL RTLD_GLOBAL
9569#else
9570# ifdef DL_GLOBAL
9571# define LT_DLGLOBAL DL_GLOBAL
9572# else
9573# define LT_DLGLOBAL 0
9574# endif
9575#endif
9576
9577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9578 find out it does not work in some platform. */
9579#ifndef LT_DLLAZY_OR_NOW
9580# ifdef RTLD_LAZY
9581# define LT_DLLAZY_OR_NOW RTLD_LAZY
9582# else
9583# ifdef DL_LAZY
9584# define LT_DLLAZY_OR_NOW DL_LAZY
9585# else
9586# ifdef RTLD_NOW
9587# define LT_DLLAZY_OR_NOW RTLD_NOW
9588# else
9589# ifdef DL_NOW
9590# define LT_DLLAZY_OR_NOW DL_NOW
9591# else
9592# define LT_DLLAZY_OR_NOW 0
9593# endif
9594# endif
9595# endif
9596# endif
9597#endif
9598
drh71eb93e2001-09-28 01:34:43 +00009599void fnord() { int i=42;}
9600int main ()
9601{
9602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9603 int status = $lt_dlunknown;
9604
9605 if (self)
9606 {
9607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9609 /* dlclose (self); */
9610 }
vapier7f19c022007-02-17 14:46:31 +00009611 else
9612 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009613
vapier6acb2cf2009-01-28 04:46:28 +00009614 return status;
drh71eb93e2001-09-28 01:34:43 +00009615}
mlcreech636a9952008-05-05 22:52:56 +00009616_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009618 (eval $ac_link) 2>&5
9619 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9621 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009622 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009623 lt_status=$?
9624 case x$lt_status in
9625 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9626 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009627 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009628 esac
9629 else :
9630 # compilation failed
9631 lt_cv_dlopen_self=no
9632 fi
9633fi
9634rm -fr conftest*
9635
a.rottmann84e63352003-03-24 09:42:16 +00009636
drh71eb93e2001-09-28 01:34:43 +00009637fi
drhf922ca42015-05-14 15:39:18 +00009638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009639$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009640
9641 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009644$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009645if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009646 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009647else
9648 if test "$cross_compiling" = yes; then :
9649 lt_cv_dlopen_self_static=cross
9650else
a.rottmann9bc8b932004-02-29 15:18:31 +00009651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009652 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009653 cat > conftest.$ac_ext <<_LT_EOF
drhe2ce8c42020-12-07 21:19:17 +00009654#line 9652 "configure"
drh71eb93e2001-09-28 01:34:43 +00009655#include "confdefs.h"
9656
9657#if HAVE_DLFCN_H
9658#include <dlfcn.h>
9659#endif
9660
9661#include <stdio.h>
9662
9663#ifdef RTLD_GLOBAL
9664# define LT_DLGLOBAL RTLD_GLOBAL
9665#else
9666# ifdef DL_GLOBAL
9667# define LT_DLGLOBAL DL_GLOBAL
9668# else
9669# define LT_DLGLOBAL 0
9670# endif
9671#endif
9672
9673/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9674 find out it does not work in some platform. */
9675#ifndef LT_DLLAZY_OR_NOW
9676# ifdef RTLD_LAZY
9677# define LT_DLLAZY_OR_NOW RTLD_LAZY
9678# else
9679# ifdef DL_LAZY
9680# define LT_DLLAZY_OR_NOW DL_LAZY
9681# else
9682# ifdef RTLD_NOW
9683# define LT_DLLAZY_OR_NOW RTLD_NOW
9684# else
9685# ifdef DL_NOW
9686# define LT_DLLAZY_OR_NOW DL_NOW
9687# else
9688# define LT_DLLAZY_OR_NOW 0
9689# endif
9690# endif
9691# endif
9692# endif
9693#endif
9694
drh71eb93e2001-09-28 01:34:43 +00009695void fnord() { int i=42;}
9696int main ()
9697{
9698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9699 int status = $lt_dlunknown;
9700
9701 if (self)
9702 {
9703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9705 /* dlclose (self); */
9706 }
vapier7f19c022007-02-17 14:46:31 +00009707 else
9708 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009709
vapier6acb2cf2009-01-28 04:46:28 +00009710 return status;
drh71eb93e2001-09-28 01:34:43 +00009711}
mlcreech636a9952008-05-05 22:52:56 +00009712_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009714 (eval $ac_link) 2>&5
9715 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009718 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009719 lt_status=$?
9720 case x$lt_status in
9721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009724 esac
9725 else :
9726 # compilation failed
9727 lt_cv_dlopen_self_static=no
9728 fi
9729fi
9730rm -fr conftest*
9731
a.rottmann84e63352003-03-24 09:42:16 +00009732
drh71eb93e2001-09-28 01:34:43 +00009733fi
drhf922ca42015-05-14 15:39:18 +00009734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009735$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009736 fi
9737
9738 CPPFLAGS="$save_CPPFLAGS"
9739 LDFLAGS="$save_LDFLAGS"
9740 LIBS="$save_LIBS"
9741 ;;
9742 esac
9743
9744 case $lt_cv_dlopen_self in
9745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9746 *) enable_dlopen_self=unknown ;;
9747 esac
9748
9749 case $lt_cv_dlopen_self_static in
9750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9751 *) enable_dlopen_self_static=unknown ;;
9752 esac
9753fi
9754
drh71eb93e2001-09-28 01:34:43 +00009755
drh71eb93e2001-09-28 01:34:43 +00009756
a.rottmann9bc8b932004-02-29 15:18:31 +00009757
a.rottmann9bc8b932004-02-29 15:18:31 +00009758
mlcreech636a9952008-05-05 22:52:56 +00009759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771striplib=
9772old_striplib=
drhf922ca42015-05-14 15:39:18 +00009773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009774$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009775if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009779$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009780else
9781# FIXME - insert some real tests, host_os isn't really good enough
9782 case $host_os in
9783 darwin*)
9784 if test -n "$STRIP" ; then
9785 striplib="$STRIP -x"
9786 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009788$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009789 else
drhf922ca42015-05-14 15:39:18 +00009790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009791$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009792 fi
a.rottmann84e63352003-03-24 09:42:16 +00009793 ;;
mlcreech636a9952008-05-05 22:52:56 +00009794 *)
drhf922ca42015-05-14 15:39:18 +00009795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009796$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009797 ;;
9798 esac
mlcreech636a9952008-05-05 22:52:56 +00009799fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009800
a.rottmann9bc8b932004-02-29 15:18:31 +00009801
drh71eb93e2001-09-28 01:34:43 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
a.rottmann84e63352003-03-24 09:42:16 +00009804
drh71eb93e2001-09-28 01:34:43 +00009805
drh71eb93e2001-09-28 01:34:43 +00009806
a.rottmann9bc8b932004-02-29 15:18:31 +00009807
drh71eb93e2001-09-28 01:34:43 +00009808
drh71eb93e2001-09-28 01:34:43 +00009809
drh71eb93e2001-09-28 01:34:43 +00009810
drh71eb93e2001-09-28 01:34:43 +00009811
mlcreech636a9952008-05-05 22:52:56 +00009812 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009814$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009816$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009817
drhf922ca42015-05-14 15:39:18 +00009818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009819$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009820 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009821
mlcreech636a9952008-05-05 22:52:56 +00009822 # On AIX, shared libraries and static libraries use the same namespace, and
9823 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009824 case $host_os in
9825 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009826 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009827 if test -n "$RANLIB"; then
9828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9829 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009830 fi
9831 ;;
9832
mlcreech636a9952008-05-05 22:52:56 +00009833 aix[4-9]*)
9834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9835 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009836 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009837 ;;
9838 esac
drhf922ca42015-05-14 15:39:18 +00009839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009840$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009841
drhf922ca42015-05-14 15:39:18 +00009842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009843$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009844 # Make sure either enable_shared or enable_static is yes.
9845 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009847$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
a.rottmann9bc8b932004-02-29 15:18:31 +00009850
a.rottmann9bc8b932004-02-29 15:18:31 +00009851
vapier7f19c022007-02-17 14:46:31 +00009852fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009853ac_ext=c
9854ac_cpp='$CPP $CPPFLAGS'
9855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9857ac_compiler_gnu=$ac_cv_c_compiler_gnu
9858
9859CC="$lt_save_CC"
9860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
a.rottmann9bc8b932004-02-29 15:18:31 +00009862
9863
a.rottmann9bc8b932004-02-29 15:18:31 +00009864
a.rottmann9bc8b932004-02-29 15:18:31 +00009865
a.rottmann9bc8b932004-02-29 15:18:31 +00009866
a.rottmann9bc8b932004-02-29 15:18:31 +00009867
a.rottmann9bc8b932004-02-29 15:18:31 +00009868
a.rottmann9bc8b932004-02-29 15:18:31 +00009869
vapier7f19c022007-02-17 14:46:31 +00009870
a.rottmann9bc8b932004-02-29 15:18:31 +00009871
9872
drh8b727472009-01-19 18:18:40 +00009873 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009874
vapier7f19c022007-02-17 14:46:31 +00009875
9876
vapier7f19c022007-02-17 14:46:31 +00009877
mlcreech636a9952008-05-05 22:52:56 +00009878# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009879
9880
drh71eb93e2001-09-28 01:34:43 +00009881# Find a good install program. We prefer a C program (faster),
9882# so one script is as good as another. But avoid the broken or
9883# incompatible versions:
9884# SysV /etc/install, /usr/sbin/install
9885# SunOS /usr/etc/install
9886# IRIX /sbin/install
9887# AIX /bin/install
9888# AmigaOS /C/install, which installs bootblocks on floppy discs
9889# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9890# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9891# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009892# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009893# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009894# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009896$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009897if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009898if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009899 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009900else
a.rottmann84e63352003-03-24 09:42:16 +00009901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902for as_dir in $PATH
9903do
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009906 # Account for people who put trailing slashes in PATH elements.
9907case $as_dir/ in #((
9908 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009911 /usr/ucb/* ) ;;
9912 *)
9913 # OSF1 and SCO ODT 3.0 have their own names for install.
9914 # Don't use installbsd from OSF since it installs stuff as root
9915 # by default.
9916 for ac_prog in ginstall scoinst install; do
9917 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009919 if test $ac_prog = install &&
9920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9921 # AIX install. It has an incompatible calling convention.
9922 :
9923 elif test $ac_prog = install &&
9924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9925 # program-specific install script used by HP pwplus--don't use.
9926 :
9927 else
drh8b727472009-01-19 18:18:40 +00009928 rm -rf conftest.one conftest.two conftest.dir
9929 echo one > conftest.one
9930 echo two > conftest.two
9931 mkdir conftest.dir
9932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9933 test -s conftest.one && test -s conftest.two &&
9934 test -s conftest.dir/conftest.one &&
9935 test -s conftest.dir/conftest.two
9936 then
9937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9938 break 3
9939 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009940 fi
9941 fi
drh71eb93e2001-09-28 01:34:43 +00009942 done
a.rottmann84e63352003-03-24 09:42:16 +00009943 done
9944 ;;
9945esac
a.rottmann84e63352003-03-24 09:42:16 +00009946
drhf922ca42015-05-14 15:39:18 +00009947 done
drh8b727472009-01-19 18:18:40 +00009948IFS=$as_save_IFS
9949
9950rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009951
9952fi
9953 if test "${ac_cv_path_install+set}" = set; then
9954 INSTALL=$ac_cv_path_install
9955 else
drh8b727472009-01-19 18:18:40 +00009956 # As a last resort, use the slow shell script. Don't cache a
9957 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009958 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009959 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009960 INSTALL=$ac_install_sh
9961 fi
9962fi
drhf922ca42015-05-14 15:39:18 +00009963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009964$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009965
9966# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9967# It thinks the first close brace ends the variable substitution.
9968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9969
9970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9971
9972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9973
a.rottmann84e63352003-03-24 09:42:16 +00009974
drh75897232000-05-29 14:26:00 +00009975#########
mlcreech636a9952008-05-05 22:52:56 +00009976# Enable large file support (if special flags are necessary)
9977#
drh8b727472009-01-19 18:18:40 +00009978# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009979if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009980 enableval=$enable_largefile;
9981fi
mlcreech636a9952008-05-05 22:52:56 +00009982
9983if test "$enable_largefile" != no; then
9984
drhf922ca42015-05-14 15:39:18 +00009985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009986$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009987if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009988 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009989else
mlcreech636a9952008-05-05 22:52:56 +00009990 ac_cv_sys_largefile_CC=no
9991 if test "$GCC" != yes; then
9992 ac_save_CC=$CC
9993 while :; do
drh8b727472009-01-19 18:18:40 +00009994 # IRIX 6.2 and later do not support large files by default,
9995 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009997/* end confdefs.h. */
9998#include <sys/types.h>
9999 /* Check that off_t can represent 2**63 - 1 correctly.
10000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10001 since some C++ compilers masquerading as C compilers
10002 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010003#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10005 && LARGE_OFF_T % 2147483647 == 1)
10006 ? 1 : -1];
10007int
10008main ()
10009{
10010
10011 ;
10012 return 0;
10013}
10014_ACEOF
drhf922ca42015-05-14 15:39:18 +000010015 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010016 break
mlcreech636a9952008-05-05 22:52:56 +000010017fi
drh8b727472009-01-19 18:18:40 +000010018rm -f core conftest.err conftest.$ac_objext
10019 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010020 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010021 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010022fi
drh8b727472009-01-19 18:18:40 +000010023rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010024 break
10025 done
10026 CC=$ac_save_CC
10027 rm -f conftest.$ac_ext
10028 fi
10029fi
drhf922ca42015-05-14 15:39:18 +000010030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010031$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010032 if test "$ac_cv_sys_largefile_CC" != no; then
10033 CC=$CC$ac_cv_sys_largefile_CC
10034 fi
10035
drhf922ca42015-05-14 15:39:18 +000010036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010037$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010038if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010039 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010040else
10041 while :; do
drhf922ca42015-05-14 15:39:18 +000010042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010043/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010044#include <sys/types.h>
10045 /* Check that off_t can represent 2**63 - 1 correctly.
10046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10047 since some C++ compilers masquerading as C compilers
10048 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010049#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10051 && LARGE_OFF_T % 2147483647 == 1)
10052 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010053int
10054main ()
10055{
mlcreech636a9952008-05-05 22:52:56 +000010056
mlcreechb87057f2008-03-06 07:19:20 +000010057 ;
10058 return 0;
10059}
10060_ACEOF
drhf922ca42015-05-14 15:39:18 +000010061if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010062 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010063fi
drh8b727472009-01-19 18:18:40 +000010064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010066/* end confdefs.h. */
10067#define _FILE_OFFSET_BITS 64
10068#include <sys/types.h>
10069 /* Check that off_t can represent 2**63 - 1 correctly.
10070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10071 since some C++ compilers masquerading as C compilers
10072 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010073#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10075 && LARGE_OFF_T % 2147483647 == 1)
10076 ? 1 : -1];
10077int
10078main ()
10079{
10080
10081 ;
10082 return 0;
10083}
10084_ACEOF
drhf922ca42015-05-14 15:39:18 +000010085if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010086 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010087fi
drh8b727472009-01-19 18:18:40 +000010088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010090 break
10091done
10092fi
drhf922ca42015-05-14 15:39:18 +000010093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010094$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10095case $ac_cv_sys_file_offset_bits in #(
10096 no | unknown) ;;
10097 *)
mlcreech636a9952008-05-05 22:52:56 +000010098cat >>confdefs.h <<_ACEOF
10099#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10100_ACEOF
drh8b727472009-01-19 18:18:40 +000010101;;
10102esac
10103rm -rf conftest*
10104 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010106$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010107if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010108 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010109else
10110 while :; do
drhf922ca42015-05-14 15:39:18 +000010111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010112/* end confdefs.h. */
10113#include <sys/types.h>
10114 /* Check that off_t can represent 2**63 - 1 correctly.
10115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10116 since some C++ compilers masquerading as C compilers
10117 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010118#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10120 && LARGE_OFF_T % 2147483647 == 1)
10121 ? 1 : -1];
10122int
10123main ()
10124{
10125
10126 ;
10127 return 0;
10128}
10129_ACEOF
drhf922ca42015-05-14 15:39:18 +000010130if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010131 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010132fi
drh8b727472009-01-19 18:18:40 +000010133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010135/* end confdefs.h. */
10136#define _LARGE_FILES 1
10137#include <sys/types.h>
10138 /* Check that off_t can represent 2**63 - 1 correctly.
10139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10140 since some C++ compilers masquerading as C compilers
10141 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010142#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10144 && LARGE_OFF_T % 2147483647 == 1)
10145 ? 1 : -1];
10146int
10147main ()
10148{
10149
10150 ;
10151 return 0;
10152}
10153_ACEOF
drhf922ca42015-05-14 15:39:18 +000010154if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010155 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010156fi
drh8b727472009-01-19 18:18:40 +000010157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010159 break
10160done
10161fi
drhf922ca42015-05-14 15:39:18 +000010162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010163$as_echo "$ac_cv_sys_large_files" >&6; }
10164case $ac_cv_sys_large_files in #(
10165 no | unknown) ;;
10166 *)
mlcreech636a9952008-05-05 22:52:56 +000010167cat >>confdefs.h <<_ACEOF
10168#define _LARGE_FILES $ac_cv_sys_large_files
10169_ACEOF
drh8b727472009-01-19 18:18:40 +000010170;;
10171esac
10172rm -rf conftest*
10173 fi
drhf922ca42015-05-14 15:39:18 +000010174
10175
mlcreech636a9952008-05-05 22:52:56 +000010176fi
10177
10178
10179#########
10180# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010181ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10182if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010183
10184cat >>confdefs.h <<_ACEOF
10185#define HAVE_INT8_T 1
10186_ACEOF
10187
10188
10189fi
drhf922ca42015-05-14 15:39:18 +000010190ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10191if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010192
10193cat >>confdefs.h <<_ACEOF
10194#define HAVE_INT16_T 1
10195_ACEOF
10196
10197
10198fi
drhf922ca42015-05-14 15:39:18 +000010199ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10200if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010201
10202cat >>confdefs.h <<_ACEOF
10203#define HAVE_INT32_T 1
10204_ACEOF
10205
10206
10207fi
drhf922ca42015-05-14 15:39:18 +000010208ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10209if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010210
10211cat >>confdefs.h <<_ACEOF
10212#define HAVE_INT64_T 1
10213_ACEOF
10214
10215
10216fi
drhf922ca42015-05-14 15:39:18 +000010217ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10218if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010219
10220cat >>confdefs.h <<_ACEOF
10221#define HAVE_INTPTR_T 1
10222_ACEOF
10223
10224
10225fi
drhf922ca42015-05-14 15:39:18 +000010226ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10227if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010228
10229cat >>confdefs.h <<_ACEOF
10230#define HAVE_UINT8_T 1
10231_ACEOF
10232
10233
10234fi
drhf922ca42015-05-14 15:39:18 +000010235ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10236if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010237
10238cat >>confdefs.h <<_ACEOF
10239#define HAVE_UINT16_T 1
10240_ACEOF
10241
10242
10243fi
drhf922ca42015-05-14 15:39:18 +000010244ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10245if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010246
10247cat >>confdefs.h <<_ACEOF
10248#define HAVE_UINT32_T 1
10249_ACEOF
10250
10251
10252fi
drhf922ca42015-05-14 15:39:18 +000010253ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10254if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010255
10256cat >>confdefs.h <<_ACEOF
10257#define HAVE_UINT64_T 1
10258_ACEOF
10259
10260
10261fi
drhf922ca42015-05-14 15:39:18 +000010262ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10263if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010264
10265cat >>confdefs.h <<_ACEOF
10266#define HAVE_UINTPTR_T 1
10267_ACEOF
10268
10269
10270fi
mlcreechb87057f2008-03-06 07:19:20 +000010271
10272
10273#########
10274# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010275for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010276do :
10277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10278ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010280 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010282_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010283
mlcreechb87057f2008-03-06 07:19:20 +000010284fi
10285
10286done
10287
10288
10289#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010290# Figure out whether or not we have these functions
10291#
drhe32a2562016-03-04 02:38:00 +000010292for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
drhf922ca42015-05-14 15:39:18 +000010293do :
10294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10296if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010297 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010299_ACEOF
10300
10301fi
10302done
10303
10304
mlcreechab1c47b2008-03-09 02:51:10 +000010305#########
mlcreechf3868112008-03-11 18:03:30 +000010306# By default, we use the amalgamation (this may be changed below...)
10307#
10308USE_AMALGAMATION=1
10309
10310#########
larrybr4b1c3eb2021-07-13 01:45:04 +000010311# By default, amalgamation sqlite3.c will have #line directives.
10312# This is a build option not shown by ./configure --help
mistachkin696555d2021-07-13 21:59:22 +000010313# To control it, use configure option: amalgamation_line_macros=?
larrybr4b1c3eb2021-07-13 01:45:04 +000010314# where ? is no to suppress #line directives or yes to create them.
mistachkine13dfe42021-07-15 23:34:14 +000010315AMALGAMATION_LINE_MACROS=--linemacros=0
larrybr4b1c3eb2021-07-13 01:45:04 +000010316
10317#########
mlcreechab1c47b2008-03-09 02:51:10 +000010318# See whether we can run specific tclsh versions known to work well;
10319# if not, then we fall back to plain tclsh.
10320# TODO: try other versions before falling back?
10321#
drh0b11bcb2017-09-22 00:24:44 +000010322for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010323do
10324 # Extract the first word of "$ac_prog", so it can be a program name with args.
10325set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010327$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010328if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010329 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010330else
10331 if test -n "$TCLSH_CMD"; then
10332 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10333else
10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010341 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010343 break 2
10344 fi
10345done
drhf922ca42015-05-14 15:39:18 +000010346 done
drh8b727472009-01-19 18:18:40 +000010347IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010348
10349fi
10350fi
10351TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10352if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010354$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010355else
drhf922ca42015-05-14 15:39:18 +000010356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010357$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010358fi
10359
drh8b727472009-01-19 18:18:40 +000010360
mlcreechab1c47b2008-03-09 02:51:10 +000010361 test -n "$TCLSH_CMD" && break
10362done
mlcreechf3868112008-03-11 18:03:30 +000010363test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010364
mlcreechf3868112008-03-11 18:03:30 +000010365if test "$TCLSH_CMD" = "none"; then
10366 # If we can't find a local tclsh, then building the amalgamation will fail.
10367 # We act as though --disable-amalgamation has been used.
10368 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10369 USE_AMALGAMATION=0
10370 TCLSH_CMD="tclsh"
10371fi
mlcreechab1c47b2008-03-09 02:51:10 +000010372
10373
mlcreech5b0a9eb2008-03-09 01:38:09 +000010374
vapier6acb2cf2009-01-28 04:46:28 +000010375if test "x${TCLLIBDIR+set}" != "xset" ; then
10376 TCLLIBDIR='$(libdir)'
10377 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
drhd9cc5322021-01-12 14:23:03 +000010378 if test -d $i ; then
10379 TCLLIBDIR=$i
10380 break
10381 fi
vapier6acb2cf2009-01-28 04:46:28 +000010382 done
10383 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10384fi
10385
10386
mlcreech5b0a9eb2008-03-09 01:38:09 +000010387#########
drh75897232000-05-29 14:26:00 +000010388# Set up an appropriate program prefix
10389#
10390if test "$program_prefix" = "NONE"; then
10391 program_prefix=""
10392fi
10393
a.rottmann84e63352003-03-24 09:42:16 +000010394
drh4b2266a2004-11-27 15:52:16 +000010395VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010396{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010397$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010398
10399RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010400{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010401$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010402
drh26d0e2a2005-07-06 13:51:27 +000010403
drh75897232000-05-29 14:26:00 +000010404#########
drh75897232000-05-29 14:26:00 +000010405# Locate a compiler for the build machine. This compiler should
10406# generate command-line programs that run on the build machine.
10407#
vapier7f19c022007-02-17 14:46:31 +000010408if test x"$cross_compiling" = xno; then
10409 BUILD_CC=$CC
10410 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010411else
vapier7f19c022007-02-17 14:46:31 +000010412 if test "${BUILD_CC+set}" != set; then
10413 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010414do
10415 # Extract the first word of "$ac_prog", so it can be a program name with args.
10416set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010418$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010419if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010420 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010421else
vapier7f19c022007-02-17 14:46:31 +000010422 if test -n "$BUILD_CC"; then
10423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010424else
a.rottmann84e63352003-03-24 09:42:16 +000010425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426for as_dir in $PATH
10427do
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010432 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010434 break 2
10435 fi
10436done
drhf922ca42015-05-14 15:39:18 +000010437 done
drh8b727472009-01-19 18:18:40 +000010438IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010439
drh71eb93e2001-09-28 01:34:43 +000010440fi
10441fi
vapier7f19c022007-02-17 14:46:31 +000010442BUILD_CC=$ac_cv_prog_BUILD_CC
10443if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010445$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010446else
drhf922ca42015-05-14 15:39:18 +000010447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010448$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010449fi
drh75897232000-05-29 14:26:00 +000010450
drh8b727472009-01-19 18:18:40 +000010451
vapier7f19c022007-02-17 14:46:31 +000010452 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010453done
drh75897232000-05-29 14:26:00 +000010454
vapier7f19c022007-02-17 14:46:31 +000010455 fi
10456 if test "${BUILD_CFLAGS+set}" != set; then
10457 BUILD_CFLAGS="-g"
10458 fi
drh71eb93e2001-09-28 01:34:43 +000010459fi
10460
a.rottmann84e63352003-03-24 09:42:16 +000010461
drh297ecf12001-04-05 15:57:13 +000010462##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010463# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010464#
drh8b727472009-01-19 18:18:40 +000010465# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010466if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010467 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010468fi
10469
drhf922ca42015-05-14 15:39:18 +000010470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010471$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010472if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010473 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010475$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010476else
drh5a3032b2007-09-03 16:12:09 +000010477 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010479$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010480fi
10481
a.rottmann964dbb12004-02-26 19:47:42 +000010482
drh5a3032b2007-09-03 16:12:09 +000010483if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10485$as_echo_n "checking for library containing pthread_create... " >&6; }
10486if ${ac_cv_search_pthread_create+:} false; then :
10487 $as_echo_n "(cached) " >&6
10488else
10489 ac_func_search_save_LIBS=$LIBS
10490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491/* end confdefs.h. */
10492
10493/* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10496#ifdef __cplusplus
10497extern "C"
10498#endif
10499char pthread_create ();
10500int
10501main ()
10502{
10503return pthread_create ();
10504 ;
10505 return 0;
10506}
10507_ACEOF
10508for ac_lib in '' pthread; do
10509 if test -z "$ac_lib"; then
10510 ac_res="none required"
10511 else
10512 ac_res=-l$ac_lib
10513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10514 fi
10515 if ac_fn_c_try_link "$LINENO"; then :
10516 ac_cv_search_pthread_create=$ac_res
10517fi
10518rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext
10520 if ${ac_cv_search_pthread_create+:} false; then :
10521 break
10522fi
10523done
10524if ${ac_cv_search_pthread_create+:} false; then :
10525
10526else
10527 ac_cv_search_pthread_create=no
10528fi
10529rm conftest.$ac_ext
10530LIBS=$ac_func_search_save_LIBS
10531fi
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10533$as_echo "$ac_cv_search_pthread_create" >&6; }
10534ac_res=$ac_cv_search_pthread_create
10535if test "$ac_res" != no; then :
10536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10537
10538fi
10539
drh13c808a2016-01-13 21:23:48 +000010540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10541$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10542if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010543 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010544else
mlcreechc658b0f2008-03-09 02:20:11 +000010545 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010547/* end confdefs.h. */
10548
drh8b727472009-01-19 18:18:40 +000010549/* Override any GCC internal prototype to avoid an error.
10550 Use char because int might match the return type of a GCC
10551 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010552#ifdef __cplusplus
10553extern "C"
10554#endif
drh13c808a2016-01-13 21:23:48 +000010555char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010556int
10557main ()
10558{
drh13c808a2016-01-13 21:23:48 +000010559return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010560 ;
10561 return 0;
10562}
10563_ACEOF
drh8b727472009-01-19 18:18:40 +000010564for ac_lib in '' pthread; do
10565 if test -z "$ac_lib"; then
10566 ac_res="none required"
10567 else
10568 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010570 fi
drhf922ca42015-05-14 15:39:18 +000010571 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010572 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010573fi
drhf922ca42015-05-14 15:39:18 +000010574rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010576 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010577 break
drh866108f2008-05-13 00:57:21 +000010578fi
drh8b727472009-01-19 18:18:40 +000010579done
drh13c808a2016-01-13 21:23:48 +000010580if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010581
drh8b727472009-01-19 18:18:40 +000010582else
drh13c808a2016-01-13 21:23:48 +000010583 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010584fi
10585rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010586LIBS=$ac_func_search_save_LIBS
10587fi
drh13c808a2016-01-13 21:23:48 +000010588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10589$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10590ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010591if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010593
dougcurrie65623c72004-09-20 14:57:23 +000010594fi
10595
mlcreechc658b0f2008-03-09 02:20:11 +000010596fi
dougcurrie65623c72004-09-20 14:57:23 +000010597
xdong28f79f72003-09-23 00:35:21 +000010598##########
10599# Do we want to support release
10600#
drh8b727472009-01-19 18:18:40 +000010601# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010602if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010603 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010604else
10605 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010606fi
10607
drhf922ca42015-05-14 15:39:18 +000010608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000010609$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010610if test "$enable_releasemode" = "no"; then
10611 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010613$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010614else
drh0b47d342007-11-27 14:50:06 +000010615 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010617$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010618fi
paulb0208cc2003-04-13 18:26:49 +000010619
a.rottmann964dbb12004-02-26 19:47:42 +000010620
paulb0208cc2003-04-13 18:26:49 +000010621##########
10622# Do we want temporary databases in memory
10623#
drh8b727472009-01-19 18:18:40 +000010624# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010625if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010626 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010627else
drh54414bb2005-10-10 00:05:50 +000010628 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010629fi
10630
drhf922ca42015-05-14 15:39:18 +000010631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000010632$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010633case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010634 never )
paul2dc96f92003-04-20 11:46:34 +000010635 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010637$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010638 ;;
10639 no )
paul2dc96f92003-04-20 11:46:34 +000010640 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010642$as_echo "no" >&6; }
10643 ;;
10644 yes )
10645 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010647$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010648 ;;
10649 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010650 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010652$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010653 ;;
paulb0208cc2003-04-13 18:26:49 +000010654 * )
drh54414bb2005-10-10 00:05:50 +000010655 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010657$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010658 ;;
10659esac
10660
10661
10662
drh75897232000-05-29 14:26:00 +000010663###########
10664# Lots of things are different if we are compiling for Windows using
10665# the CYGWIN environment. So check for that special case and handle
10666# things accordingly.
10667#
drhf922ca42015-05-14 15:39:18 +000010668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010669$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010670if test "$config_BUILD_EXEEXT" = ".exe"; then
10671 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010673$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010674else
drhf922ca42015-05-14 15:39:18 +000010675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010676$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010677fi
10678if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010679
10680case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010681 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010682 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010683esac
drh75897232000-05-29 14:26:00 +000010684
drh75897232000-05-29 14:26:00 +000010685fi
10686if test "$CYGWIN" = "yes"; then
10687 BUILD_EXEEXT=.exe
10688else
dougcurrie6194a5f2003-12-19 20:09:51 +000010689 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010690fi
vapier7f19c022007-02-17 14:46:31 +000010691if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010692 TARGET_EXEEXT=$BUILD_EXEEXT
10693else
10694 TARGET_EXEEXT=$config_TARGET_EXEEXT
10695fi
10696if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010697 SQLITE_OS_UNIX=0
10698 SQLITE_OS_WIN=1
10699 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010700else
danielk197729bafea2008-06-26 10:41:19 +000010701 SQLITE_OS_UNIX=1
10702 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010703 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010704fi
drh75897232000-05-29 14:26:00 +000010705
a.rottmann84e63352003-03-24 09:42:16 +000010706
10707
10708
10709
10710
drh75897232000-05-29 14:26:00 +000010711##########
drh7b5717e2004-11-25 13:50:01 +000010712# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010713#
drh7b5717e2004-11-25 13:50:01 +000010714# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10715# macros in the in the tcl.m4 file of the standard TCL distribution.
10716# Those macros could not be used directly since we have to make some
10717# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010718#
drh8b727472009-01-19 18:18:40 +000010719# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010720if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010721 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010722else
drh7b5717e2004-11-25 13:50:01 +000010723 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010724fi
10725
drh7b5717e2004-11-25 13:50:01 +000010726if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010727
drh8b727472009-01-19 18:18:40 +000010728# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010729if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010730 withval=$with_tcl; with_tclconfig=${withval}
10731fi
10732
drhf922ca42015-05-14 15:39:18 +000010733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010734$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010735 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010736 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010737else
a.rottmann84e63352003-03-24 09:42:16 +000010738
drh7b5717e2004-11-25 13:50:01 +000010739 # First check to see if --with-tcl was specified.
10740 if test x"${with_tclconfig}" != x ; then
10741 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10742 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10743 else
drhf922ca42015-05-14 15:39:18 +000010744 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010745 fi
10746 fi
vapier6acb2cf2009-01-28 04:46:28 +000010747
10748 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010749 if test x"${ac_cv_c_tclconfig}" = x ; then
10750 if test x"$cross_compiling" = xno; then
10751 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10752 do
10753 if test -f "$i/tclConfig.sh" ; then
10754 ac_cv_c_tclconfig="$i"
10755 break
10756 fi
10757 done
10758 fi
vapier6acb2cf2009-01-28 04:46:28 +000010759 fi
10760
drhf960a642015-05-30 22:57:49 +000010761 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10762 # So try again after applying corrections.
10763 if test x"${ac_cv_c_tclconfig}" = x ; then
10764 if test x"$cross_compiling" = xno; then
10765 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10766 do
10767 if test -f "$i/tclConfig.sh" ; then
10768 ac_cv_c_tclconfig="$i"
10769 break
10770 fi
10771 done
10772 fi
10773 fi
10774
drh68314742016-05-23 00:10:58 +000010775 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10776 # in a strange place.
10777 if test x"${ac_cv_c_tclconfig}" = x ; then
10778 if test x"$cross_compiling" = xno; then
10779 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10780 do
10781 if test -f "$i/tclConfig.sh" ; then
10782 ac_cv_c_tclconfig="$i"
10783 break
10784 fi
10785 done
10786 fi
10787 fi
10788
drh7b5717e2004-11-25 13:50:01 +000010789 # then check for a private Tcl installation
10790 if test x"${ac_cv_c_tclconfig}" = x ; then
10791 for i in \
10792 ../tcl \
10793 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10794 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10795 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10796 ../../tcl \
10797 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10798 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10799 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10800 ../../../tcl \
10801 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10802 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10803 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10804 do
10805 if test -f "$i/unix/tclConfig.sh" ; then
10806 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10807 break
10808 fi
10809 done
10810 fi
10811
10812 # check in a few common install locations
10813 if test x"${ac_cv_c_tclconfig}" = x ; then
10814 for i in \
10815 `ls -d ${libdir} 2>/dev/null` \
10816 `ls -d /usr/local/lib 2>/dev/null` \
10817 `ls -d /usr/contrib/lib 2>/dev/null` \
10818 `ls -d /usr/lib 2>/dev/null`
10819 do
10820 if test -f "$i/tclConfig.sh" ; then
10821 ac_cv_c_tclconfig=`(cd $i; pwd)`
10822 break
10823 fi
10824 done
10825 fi
10826
10827 # check in a few other private locations
10828 if test x"${ac_cv_c_tclconfig}" = x ; then
10829 for i in \
10830 ${srcdir}/../tcl \
10831 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10832 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10833 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10834 do
10835 if test -f "$i/unix/tclConfig.sh" ; then
10836 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10837 break
10838 fi
10839 done
10840 fi
10841
drh75897232000-05-29 14:26:00 +000010842fi
10843
drh7b5717e2004-11-25 13:50:01 +000010844
10845 if test x"${ac_cv_c_tclconfig}" = x ; then
10846 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010848$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010850$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010852$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010853 else
10854 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010856$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010857
drhf922ca42015-05-14 15:39:18 +000010858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010859$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010860 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010862$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010863 . $TCL_BIN_DIR/tclConfig.sh
10864 else
drhf922ca42015-05-14 15:39:18 +000010865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010866$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010867 fi
drh7b5717e2004-11-25 13:50:01 +000010868
10869 #
10870 # If the TCL_BIN_DIR is the build directory (not the install directory),
10871 # then set the common variable name to the value of the build variables.
10872 # For example, the variable TCL_LIB_SPEC will be set to the value
10873 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10874 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10875 # installed and uninstalled version of Tcl.
10876 #
10877
mlcreechab1c47b2008-03-09 02:51:10 +000010878 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010879 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10880 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10881 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10882 fi
10883
10884 #
10885 # eval is required to do the TCL_DBGX substitution
10886 #
10887
10888 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10889 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10890 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10891
10892 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10893 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10894 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
drhd881ce82015-03-31 17:01:52 +000010908
drh7b5717e2004-11-25 13:50:01 +000010909 fi
drh75897232000-05-29 14:26:00 +000010910fi
drh7b5717e2004-11-25 13:50:01 +000010911if test "${use_tcl}" = "no" ; then
10912 HAVE_TCL=""
10913else
10914 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010915fi
drh75897232000-05-29 14:26:00 +000010916
a.rottmann84e63352003-03-24 09:42:16 +000010917
drh75897232000-05-29 14:26:00 +000010918##########
10919# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010920# that use "readline()" library.
10921#
vapier7f19c022007-02-17 14:46:31 +000010922TARGET_READLINE_LIBS=""
10923TARGET_READLINE_INC=""
10924TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010925TARGET_HAVE_EDITLINE=0
10926# Check whether --enable-editline was given.
10927if test "${enable_editline+set}" = set; then :
10928 enableval=$enable_editline; with_editline=$enableval
10929else
10930 with_editline=auto
10931fi
10932
drh8b727472009-01-19 18:18:40 +000010933# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010934if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010935 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010936else
vapier7f19c022007-02-17 14:46:31 +000010937 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010938fi
10939
vapier7f19c022007-02-17 14:46:31 +000010940
drhe44b8352015-10-30 14:25:57 +000010941if test x"$with_editline" != xno; then
10942 sLIBS=$LIBS
10943 LIBS=""
10944 TARGET_HAVE_EDITLINE=1
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10946$as_echo_n "checking for library containing readline... " >&6; }
10947if ${ac_cv_search_readline+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949else
10950 ac_func_search_save_LIBS=$LIBS
10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h. */
10953
10954/* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char readline ();
10961int
10962main ()
10963{
10964return readline ();
10965 ;
10966 return 0;
10967}
10968_ACEOF
10969for ac_lib in '' edit; do
10970 if test -z "$ac_lib"; then
10971 ac_res="none required"
10972 else
10973 ac_res=-l$ac_lib
10974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10975 fi
10976 if ac_fn_c_try_link "$LINENO"; then :
10977 ac_cv_search_readline=$ac_res
10978fi
10979rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext
10981 if ${ac_cv_search_readline+:} false; then :
10982 break
10983fi
10984done
10985if ${ac_cv_search_readline+:} false; then :
10986
10987else
10988 ac_cv_search_readline=no
10989fi
10990rm conftest.$ac_ext
10991LIBS=$ac_func_search_save_LIBS
10992fi
10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10994$as_echo "$ac_cv_search_readline" >&6; }
10995ac_res=$ac_cv_search_readline
10996if test "$ac_res" != no; then :
10997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10998 with_readline=no
10999else
11000 TARGET_HAVE_EDITLINE=0
11001fi
11002
11003 TARGET_READLINE_LIBS=$LIBS
11004 LIBS=$sLIBS
11005fi
vapier7f19c022007-02-17 14:46:31 +000011006if test x"$with_readline" != xno; then
11007 found="yes"
11008
11009
drh8b727472009-01-19 18:18:40 +000011010# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011011if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011012 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011013else
11014 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011015fi
11016
vapier7f19c022007-02-17 14:46:31 +000011017 if test "x$with_readline_lib" = xauto; then
11018 save_LIBS="$LIBS"
11019 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011021$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011022if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011023 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011024else
drh71eb93e2001-09-28 01:34:43 +000011025 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011027/* end confdefs.h. */
11028
drh8b727472009-01-19 18:18:40 +000011029/* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011032#ifdef __cplusplus
11033extern "C"
11034#endif
paul38372372003-04-22 08:04:49 +000011035char tgetent ();
11036int
11037main ()
11038{
drh8b727472009-01-19 18:18:40 +000011039return tgetent ();
paul38372372003-04-22 08:04:49 +000011040 ;
11041 return 0;
11042}
11043_ACEOF
drh8b727472009-01-19 18:18:40 +000011044for ac_lib in '' readline ncurses curses termcap; do
11045 if test -z "$ac_lib"; then
11046 ac_res="none required"
11047 else
11048 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011050 fi
drhf922ca42015-05-14 15:39:18 +000011051 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011052 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011053fi
drhf922ca42015-05-14 15:39:18 +000011054rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext
11056 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011057 break
drh866108f2008-05-13 00:57:21 +000011058fi
drh8b727472009-01-19 18:18:40 +000011059done
drhf922ca42015-05-14 15:39:18 +000011060if ${ac_cv_search_tgetent+:} false; then :
11061
drh8b727472009-01-19 18:18:40 +000011062else
11063 ac_cv_search_tgetent=no
11064fi
11065rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011066LIBS=$ac_func_search_save_LIBS
11067fi
drhf922ca42015-05-14 15:39:18 +000011068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011069$as_echo "$ac_cv_search_tgetent" >&6; }
11070ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011071if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011073 term_LIBS="$LIBS"
11074else
11075 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011076fi
11077
drhf922ca42015-05-14 15:39:18 +000011078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011079$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011080if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011081 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011082else
11083 ac_check_lib_save_LIBS=$LIBS
11084LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011086/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011087
drh8b727472009-01-19 18:18:40 +000011088/* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011091#ifdef __cplusplus
11092extern "C"
11093#endif
drh71eb93e2001-09-28 01:34:43 +000011094char readline ();
11095int
11096main ()
11097{
drh8b727472009-01-19 18:18:40 +000011098return readline ();
drh71eb93e2001-09-28 01:34:43 +000011099 ;
11100 return 0;
11101}
11102_ACEOF
drhf922ca42015-05-14 15:39:18 +000011103if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011104 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011105else
drhf922ca42015-05-14 15:39:18 +000011106 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011107fi
drhf922ca42015-05-14 15:39:18 +000011108rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011110LIBS=$ac_check_lib_save_LIBS
11111fi
drhf922ca42015-05-14 15:39:18 +000011112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011113$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011114if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011115 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011116else
vapier7f19c022007-02-17 14:46:31 +000011117 found="no"
11118fi
drhf1878b42006-01-23 18:06:52 +000011119
vapier7f19c022007-02-17 14:46:31 +000011120 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11121 LIBS="$save_LIBS"
11122 else
11123 TARGET_READLINE_LIBS="$with_readline_lib"
11124 fi
11125
11126
drh8b727472009-01-19 18:18:40 +000011127# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011128if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011129 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011130else
vapier7f19c022007-02-17 14:46:31 +000011131 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011132fi
11133
vapier7f19c022007-02-17 14:46:31 +000011134 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011135 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11136if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011137 found="yes"
11138else
drh75897232000-05-29 14:26:00 +000011139
vapier7f19c022007-02-17 14:46:31 +000011140 found="no"
11141 if test "$cross_compiling" != yes; then
11142 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11143 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011144 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011146$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011147if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011148 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011149else
11150 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011151 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011152if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011153 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011154else
drh71eb93e2001-09-28 01:34:43 +000011155 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011156fi
11157fi
drhf922ca42015-05-14 15:39:18 +000011158eval ac_res=\$$as_ac_File
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011160$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011161if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011162 found=yes
drh75897232000-05-29 14:26:00 +000011163fi
11164
vapier7f19c022007-02-17 14:46:31 +000011165 if test "$found" = "yes"; then
11166 TARGET_READLINE_INC="-I$dir/$subdir"
11167 break
11168 fi
11169 done
11170 test "$found" = "yes" && break
11171 done
11172 fi
11173
11174fi
11175
11176
11177 else
11178 TARGET_READLINE_INC="$with_readline_inc"
11179 fi
11180
11181 if test x"$found" = xno; then
11182 TARGET_READLINE_LIBS=""
11183 TARGET_READLINE_INC=""
11184 TARGET_HAVE_READLINE=0
11185 else
11186 TARGET_HAVE_READLINE=1
11187 fi
11188fi
11189
11190
11191
11192
11193
drhe44b8352015-10-30 14:25:57 +000011194
vapier7f19c022007-02-17 14:46:31 +000011195##########
11196# Figure out what C libraries are required to compile programs
11197# that use "fdatasync()" function.
11198#
drhf922ca42015-05-14 15:39:18 +000011199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011200$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011201if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011202 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011203else
vapier7f19c022007-02-17 14:46:31 +000011204 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011206/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011207
drh8b727472009-01-19 18:18:40 +000011208/* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011211#ifdef __cplusplus
11212extern "C"
11213#endif
11214char fdatasync ();
11215int
11216main ()
11217{
drh8b727472009-01-19 18:18:40 +000011218return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011219 ;
11220 return 0;
11221}
11222_ACEOF
drh8b727472009-01-19 18:18:40 +000011223for ac_lib in '' rt; do
11224 if test -z "$ac_lib"; then
11225 ac_res="none required"
11226 else
11227 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011229 fi
drhf922ca42015-05-14 15:39:18 +000011230 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011231 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011232fi
drhf922ca42015-05-14 15:39:18 +000011233rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext
11235 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011236 break
drh866108f2008-05-13 00:57:21 +000011237fi
drh8b727472009-01-19 18:18:40 +000011238done
drhf922ca42015-05-14 15:39:18 +000011239if ${ac_cv_search_fdatasync+:} false; then :
11240
drh8b727472009-01-19 18:18:40 +000011241else
11242 ac_cv_search_fdatasync=no
11243fi
11244rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011245LIBS=$ac_func_search_save_LIBS
11246fi
drhf922ca42015-05-14 15:39:18 +000011247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011248$as_echo "$ac_cv_search_fdatasync" >&6; }
11249ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011250if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011252
vapier7f19c022007-02-17 14:46:31 +000011253fi
11254
a.rottmann84e63352003-03-24 09:42:16 +000011255
drh75897232000-05-29 14:26:00 +000011256#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011257# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011258# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011259if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011260 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011261fi
11262
drh24ec37c2021-03-09 13:53:39 +000011263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11264$as_echo_n "checking build type... " >&6; }
drh8fa622d2018-06-11 19:47:14 +000011265if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011266 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
drh24ec37c2021-03-09 13:53:39 +000011267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11268$as_echo "debug" >&6; }
tpoindex9d9f76c2005-01-03 21:28:56 +000011269else
11270 TARGET_DEBUG="-DNDEBUG"
drh24ec37c2021-03-09 13:53:39 +000011271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11272$as_echo "release" >&6; }
tpoindex9d9f76c2005-01-03 21:28:56 +000011273fi
11274
11275
11276#########
mlcreech94984912008-03-04 19:03:08 +000011277# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011278# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011279if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011280 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011281fi
11282
danb13d5c22020-07-07 19:24:34 +000011283if test "${enable_amalgamation}" = "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011284 USE_AMALGAMATION=0
11285fi
11286
larrybr4b1c3eb2021-07-13 01:45:04 +000011287########
11288# See whether --disable
mistachkin696555d2021-07-13 21:59:22 +000011289if test "${amalgamation_line_macros+set}" = set; then :
11290 enableval=$amalgamation_line_macros;
larrybr4b1c3eb2021-07-13 01:45:04 +000011291fi
11292
mistachkin696555d2021-07-13 21:59:22 +000011293if test "${amalgamation_line_macros}" = "yes" ; then
11294 AMALGAMATION_LINE_MACROS=--linemacros=1
larrybr4b1c3eb2021-07-13 01:45:04 +000011295fi
mistachkin696555d2021-07-13 21:59:22 +000011296if test "${amalgamation_line_macros}" = "no" ; then
11297 AMALGAMATION_LINE_MACROS=--linemacros=0
larrybr4b1c3eb2021-07-13 01:45:04 +000011298fi
11299
mlcreech94984912008-03-04 19:03:08 +000011300
11301#########
drh56c93112017-11-24 16:55:48 +000011302# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11303for ac_header in zlib.h
11304do :
11305 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11306if test "x$ac_cv_header_zlib_h" = xyes; then :
11307 cat >>confdefs.h <<_ACEOF
11308#define HAVE_ZLIB_H 1
11309_ACEOF
11310
11311fi
11312
11313done
11314
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11316$as_echo_n "checking for library containing deflate... " >&6; }
11317if ${ac_cv_search_deflate+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319else
11320 ac_func_search_save_LIBS=$LIBS
11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h. */
11323
11324/* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327#ifdef __cplusplus
11328extern "C"
11329#endif
11330char deflate ();
11331int
11332main ()
11333{
11334return deflate ();
11335 ;
11336 return 0;
11337}
11338_ACEOF
11339for ac_lib in '' z; do
11340 if test -z "$ac_lib"; then
11341 ac_res="none required"
11342 else
11343 ac_res=-l$ac_lib
11344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11345 fi
11346 if ac_fn_c_try_link "$LINENO"; then :
11347 ac_cv_search_deflate=$ac_res
11348fi
11349rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext
11351 if ${ac_cv_search_deflate+:} false; then :
11352 break
11353fi
11354done
11355if ${ac_cv_search_deflate+:} false; then :
11356
11357else
11358 ac_cv_search_deflate=no
11359fi
11360rm conftest.$ac_ext
11361LIBS=$ac_func_search_save_LIBS
11362fi
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11364$as_echo "$ac_cv_search_deflate" >&6; }
11365ac_res=$ac_cv_search_deflate
11366if test "$ac_res" != no; then :
11367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11368 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11369else
11370 HAVE_ZLIB=""
11371fi
11372
11373
11374
11375#########
mlcreecha4edab02008-03-06 04:14:17 +000011376# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011377# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011378if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011379 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011380else
drh8fa622d2018-06-11 19:47:14 +000011381 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011382fi
11383
drh8fa622d2018-06-11 19:47:14 +000011384if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011385 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011387$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011388if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011389 $as_echo_n "(cached) " >&6
11390else
11391 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011393/* end confdefs.h. */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char dlopen ();
11402int
11403main ()
11404{
11405return dlopen ();
11406 ;
11407 return 0;
11408}
11409_ACEOF
11410for ac_lib in '' dl; do
11411 if test -z "$ac_lib"; then
11412 ac_res="none required"
11413 else
11414 ac_res=-l$ac_lib
11415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11416 fi
drhf922ca42015-05-14 15:39:18 +000011417 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011418 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011419fi
drhf922ca42015-05-14 15:39:18 +000011420rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext
11422 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011423 break
11424fi
11425done
drhf922ca42015-05-14 15:39:18 +000011426if ${ac_cv_search_dlopen+:} false; then :
11427
drhdbe4b882011-06-20 18:00:17 +000011428else
11429 ac_cv_search_dlopen=no
11430fi
11431rm conftest.$ac_ext
11432LIBS=$ac_func_search_save_LIBS
11433fi
drhf922ca42015-05-14 15:39:18 +000011434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011435$as_echo "$ac_cv_search_dlopen" >&6; }
11436ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011437if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11439
11440fi
11441
mlcreecha4edab02008-03-06 04:14:17 +000011442else
shanefbedede2008-07-22 05:05:01 +000011443 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011444fi
11445
drhc530b9c2016-07-25 11:27:22 +000011446##########
drhf6e904b2020-12-07 17:15:32 +000011447# Do we want to support math functions
11448#
drhe2ce8c42020-12-07 21:19:17 +000011449# Check whether --enable-math was given.
11450if test "${enable_math+set}" = set; then :
11451 enableval=$enable_math;
drhf6e904b2020-12-07 17:15:32 +000011452fi
11453
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11455$as_echo_n "checking whether to support math functions... " >&6; }
drh42c93b52021-03-09 16:35:14 +000011456if test "$enable_math" = "no"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
11459else
drhf6e904b2020-12-07 17:15:32 +000011460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461$as_echo "yes" >&6; }
11462 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11464$as_echo_n "checking for library containing ceil... " >&6; }
11465if ${ac_cv_search_ceil+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467else
11468 ac_func_search_save_LIBS=$LIBS
11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470/* end confdefs.h. */
11471
11472/* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475#ifdef __cplusplus
11476extern "C"
11477#endif
11478char ceil ();
11479int
11480main ()
11481{
11482return ceil ();
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487for ac_lib in '' m; do
11488 if test -z "$ac_lib"; then
11489 ac_res="none required"
11490 else
11491 ac_res=-l$ac_lib
11492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11493 fi
11494 if ac_fn_c_try_link "$LINENO"; then :
11495 ac_cv_search_ceil=$ac_res
11496fi
11497rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext
11499 if ${ac_cv_search_ceil+:} false; then :
11500 break
11501fi
11502done
11503if ${ac_cv_search_ceil+:} false; then :
11504
11505else
11506 ac_cv_search_ceil=no
11507fi
11508rm conftest.$ac_ext
11509LIBS=$ac_func_search_save_LIBS
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11512$as_echo "$ac_cv_search_ceil" >&6; }
11513ac_res=$ac_cv_search_ceil
11514if test "$ac_res" != no; then :
11515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11516
11517fi
11518
11519fi
11520
drh42c93b52021-03-09 16:35:14 +000011521
11522########
11523# The --enable-all argument is short-hand to enable
11524# multiple extensions.
11525# Check whether --enable-all was given.
11526if test "${enable_all+set}" = set; then :
11527 enableval=$enable_all;
11528fi
11529
11530
drhf6e904b2020-12-07 17:15:32 +000011531##########
drhc530b9c2016-07-25 11:27:22 +000011532# Do we want to support memsys3 and/or memsys5
11533#
drhc530b9c2016-07-25 11:27:22 +000011534# Check whether --enable-memsys5 was given.
11535if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011536 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011537fi
11538
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11540$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011541if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011542 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11544$as_echo "yes" >&6; }
11545else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547$as_echo "no" >&6; }
11548fi
drh5d513ba2016-07-25 11:57:21 +000011549# Check whether --enable-memsys3 was given.
11550if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011551 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011552fi
11553
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11555$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11556if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011557 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559$as_echo "yes" >&6; }
11560else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
11563fi
drhc530b9c2016-07-25 11:27:22 +000011564
mlcreechaac7b932008-04-01 02:45:22 +000011565#########
drhce1d9f52015-10-09 12:48:33 +000011566# See whether we should enable Full Text Search extensions
11567# Check whether --enable-fts3 was given.
11568if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011569 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011570fi
11571
drh24ec37c2021-03-09 13:53:39 +000011572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11573$as_echo_n "checking whether to support FTS3... " >&6; }
drhce1d9f52015-10-09 12:48:33 +000011574if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011575 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drh24ec37c2021-03-09 13:53:39 +000011576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11577$as_echo "yes" >&6; }
11578else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011581fi
11582# Check whether --enable-fts4 was given.
11583if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011584 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011585fi
11586
drh24ec37c2021-03-09 13:53:39 +000011587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11588$as_echo_n "checking whether to support FTS4... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011589if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
drh24ec37c2021-03-09 13:53:39 +000011590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591$as_echo "yes" >&6; }
drh8c9ed052017-05-29 17:43:06 +000011592 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11594$as_echo_n "checking for library containing log... " >&6; }
11595if ${ac_cv_search_log+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 ac_func_search_save_LIBS=$LIBS
11599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h. */
11601
11602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char log ();
11609int
11610main ()
11611{
11612return log ();
11613 ;
11614 return 0;
11615}
11616_ACEOF
11617for ac_lib in '' m; do
11618 if test -z "$ac_lib"; then
11619 ac_res="none required"
11620 else
11621 ac_res=-l$ac_lib
11622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11623 fi
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_search_log=$ac_res
11626fi
11627rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext
11629 if ${ac_cv_search_log+:} false; then :
11630 break
11631fi
11632done
11633if ${ac_cv_search_log+:} false; then :
11634
11635else
11636 ac_cv_search_log=no
11637fi
11638rm conftest.$ac_ext
11639LIBS=$ac_func_search_save_LIBS
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11642$as_echo "$ac_cv_search_log" >&6; }
11643ac_res=$ac_cv_search_log
11644if test "$ac_res" != no; then :
11645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11646
11647fi
11648
drh24ec37c2021-03-09 13:53:39 +000011649else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011652fi
11653# Check whether --enable-fts5 was given.
11654if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011655 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011656fi
11657
drh24ec37c2021-03-09 13:53:39 +000011658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11659$as_echo_n "checking whether to support FTS5... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011660if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
drh24ec37c2021-03-09 13:53:39 +000011661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11662$as_echo "yes" >&6; }
drh8c9ed052017-05-29 17:43:06 +000011663 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11665$as_echo_n "checking for library containing log... " >&6; }
11666if ${ac_cv_search_log+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668else
11669 ac_func_search_save_LIBS=$LIBS
11670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h. */
11672
11673/* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676#ifdef __cplusplus
11677extern "C"
11678#endif
11679char log ();
11680int
11681main ()
11682{
11683return log ();
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688for ac_lib in '' m; do
11689 if test -z "$ac_lib"; then
11690 ac_res="none required"
11691 else
11692 ac_res=-l$ac_lib
11693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11694 fi
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 ac_cv_search_log=$ac_res
11697fi
11698rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext
11700 if ${ac_cv_search_log+:} false; then :
11701 break
11702fi
11703done
11704if ${ac_cv_search_log+:} false; then :
11705
11706else
11707 ac_cv_search_log=no
11708fi
11709rm conftest.$ac_ext
11710LIBS=$ac_func_search_save_LIBS
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11713$as_echo "$ac_cv_search_log" >&6; }
11714ac_res=$ac_cv_search_log
11715if test "$ac_res" != no; then :
11716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11717
11718fi
11719
drh24ec37c2021-03-09 13:53:39 +000011720else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011723fi
11724
11725#########
11726# See whether we should enable JSON1
11727# Check whether --enable-json1 was given.
11728if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011729 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011730fi
11731
drh24ec37c2021-03-09 13:53:39 +000011732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON" >&5
11733$as_echo_n "checking whether to support JSON... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011734if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011735 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drh24ec37c2021-03-09 13:53:39 +000011736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737$as_echo "yes" >&6; }
11738else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011741fi
11742
11743#########
drh83bebdd2017-08-28 17:00:12 +000011744# See whether we should enable the LIMIT clause on UPDATE and DELETE
11745# statements.
11746# Check whether --enable-update-limit was given.
11747if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011748 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011749fi
11750
drh24ec37c2021-03-09 13:53:39 +000011751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11752$as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
drhb13c3a32020-06-15 14:38:57 +000011753if test "${enable_update_limit}" = "yes" ; then
drh83bebdd2017-08-28 17:00:12 +000011754 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
drh24ec37c2021-03-09 13:53:39 +000011755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756$as_echo "yes" >&6; }
11757else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
drh83bebdd2017-08-28 17:00:12 +000011760fi
11761
11762#########
drh748b8fd2018-05-25 19:22:47 +000011763# See whether we should enable GEOPOLY
11764# Check whether --enable-geopoly was given.
11765if test "${enable_geopoly+set}" = set; then :
11766 enableval=$enable_geopoly; enable_geopoly=yes
11767else
11768 enable_geopoly=no
11769fi
11770
drh24ec37c2021-03-09 13:53:39 +000011771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11772$as_echo_n "checking whether to support GEOPOLY... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011773if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
drh748b8fd2018-05-25 19:22:47 +000011774 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11775 enable_rtree=yes
drh24ec37c2021-03-09 13:53:39 +000011776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777$as_echo "yes" >&6; }
11778else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
drh748b8fd2018-05-25 19:22:47 +000011781fi
11782
11783#########
drhce1d9f52015-10-09 12:48:33 +000011784# See whether we should enable RTREE
11785# Check whether --enable-rtree was given.
11786if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011787 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011788fi
11789
drh24ec37c2021-03-09 13:53:39 +000011790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11791$as_echo_n "checking whether to support RTREE... " >&6; }
drhce1d9f52015-10-09 12:48:33 +000011792if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011793 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drh24ec37c2021-03-09 13:53:39 +000011794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11795$as_echo "yes" >&6; }
11796else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011799fi
11800
11801#########
drh5e18d402016-05-03 13:14:18 +000011802# See whether we should enable the SESSION extension
11803# Check whether --enable-session was given.
11804if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011805 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011806fi
11807
drh24ec37c2021-03-09 13:53:39 +000011808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11809$as_echo_n "checking whether to support SESSION... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011810if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011811 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11812 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh24ec37c2021-03-09 13:53:39 +000011813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814$as_echo "yes" >&6; }
11815else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
drh5e18d402016-05-03 13:14:18 +000011818fi
11819
11820#########
drh8c9ed052017-05-29 17:43:06 +000011821# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011822for option in $CFLAGS $CPPFLAGS
11823do
11824 case $option in
danielk197733a14782008-08-04 14:50:05 +000011825 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011826 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011827 esac
11828done
11829
11830
danielk197733a14782008-08-04 14:50:05 +000011831
shaneb1cd7302008-10-22 18:27:31 +000011832# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011833ac_temp_CFLAGS=""
11834for option in $CFLAGS
11835do
11836 case $option in
11837 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011838 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011839 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011840 esac
11841done
11842CFLAGS=$ac_temp_CFLAGS
11843
11844
shaneb1cd7302008-10-22 18:27:31 +000011845# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011846ac_temp_CPPFLAGS=""
11847for option in $CPPFLAGS
11848do
11849 case $option in
11850 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011851 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011852 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011853 esac
11854done
11855CPPFLAGS=$ac_temp_CPPFLAGS
11856
danielk197733a14782008-08-04 14:50:05 +000011857
drh8b727472009-01-19 18:18:40 +000011858# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011859ac_temp_BUILD_CFLAGS=""
11860for option in $BUILD_CFLAGS
11861do
11862 case $option in
11863 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011864 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011865 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011866 esac
11867done
11868BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11869
11870
11871#########
11872# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011873# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011874if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011875 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011876fi
11877
mlcreechaac7b932008-04-01 02:45:22 +000011878if test "${use_gcov}" = "yes" ; then
11879 USE_GCOV=1
11880else
11881 USE_GCOV=0
11882fi
11883
11884
danielk197733a14782008-08-04 14:50:05 +000011885
drh2dfbbca2000-07-28 14:32:48 +000011886#########
mlcreechb87057f2008-03-06 07:19:20 +000011887# Output the config header
drh8b727472009-01-19 18:18:40 +000011888ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011889
11890
11891#########
drh75897232000-05-29 14:26:00 +000011892# Generate the output files.
11893#
mlcreechdf59c7c2008-03-06 07:51:15 +000011894
drh8b727472009-01-19 18:18:40 +000011895ac_config_files="$ac_config_files Makefile sqlite3.pc"
11896
drh71eb93e2001-09-28 01:34:43 +000011897cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011898# This file is a shell script that caches the results of configure
11899# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011900# scripts and configure runs, see configure's option --config-cache.
11901# It is not useful on other systems. If it contains results you don't
11902# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011903#
drh71eb93e2001-09-28 01:34:43 +000011904# config.status only pays attention to the cache file if you give it
11905# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011906#
a.rottmann84e63352003-03-24 09:42:16 +000011907# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011908# loading this file, other *unset* `ac_cv_foo' will be assigned the
11909# following values.
11910
11911_ACEOF
11912
drh75897232000-05-29 14:26:00 +000011913# The following way of writing the cache mishandles newlines in values,
11914# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011915# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011916# Ultrix sh set writes to stderr and can't be redirected directly,
11917# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011918(
11919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11920 eval ac_val=\$$ac_var
11921 case $ac_val in #(
11922 *${as_nl}*)
11923 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011926 esac
11927 case $ac_var in #(
11928 _ | IFS | as_nl) ;; #(
11929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011930 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011931 esac ;;
11932 esac
11933 done
11934
drh71eb93e2001-09-28 01:34:43 +000011935 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11937 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011938 # `set' does not quote correctly, so add quotes: double-quote
11939 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011940 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011941 "s/'/'\\\\''/g;
11942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011943 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011944 *)
11945 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011947 ;;
drh8b727472009-01-19 18:18:40 +000011948 esac |
11949 sort
11950) |
drh71eb93e2001-09-28 01:34:43 +000011951 sed '
drh8b727472009-01-19 18:18:40 +000011952 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011953 t clear
drh8b727472009-01-19 18:18:40 +000011954 :clear
drh71eb93e2001-09-28 01:34:43 +000011955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11956 t end
drh8b727472009-01-19 18:18:40 +000011957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11958 :end' >>confcache
11959if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11960 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011961 if test "x$cache_file" != "x/dev/null"; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011963$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011964 if test ! -f "$cache_file" || test -h "$cache_file"; then
11965 cat confcache >"$cache_file"
11966 else
11967 case $cache_file in #(
11968 */* | ?:*)
11969 mv -f confcache "$cache_file"$$ &&
11970 mv -f "$cache_file"$$ "$cache_file" ;; #(
11971 *)
11972 mv -f confcache "$cache_file" ;;
11973 esac
11974 fi
11975 fi
drh75897232000-05-29 14:26:00 +000011976 else
drhf922ca42015-05-14 15:39:18 +000011977 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011978$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011979 fi
11980fi
11981rm -f confcache
11982
drh75897232000-05-29 14:26:00 +000011983test "x$prefix" = xNONE && prefix=$ac_default_prefix
11984# Let make expand exec_prefix.
11985test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11986
mlcreechb87057f2008-03-06 07:19:20 +000011987DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011988
11989ac_libobjs=
11990ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011991U=
a.rottmann84e63352003-03-24 09:42:16 +000011992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11993 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11997 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011998 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11999 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000012000done
12001LIBOBJS=$ac_libobjs
12002
12003LTLIBOBJS=$ac_ltlibobjs
12004
12005
12006
drhf922ca42015-05-14 15:39:18 +000012007: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000012008ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000012009ac_clean_files_save=$ac_clean_files
12010ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000012011{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000012012$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000012013as_write_fail=0
12014cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012015#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000012016# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000012017# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000012018# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000012019# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000012020
drh71eb93e2001-09-28 01:34:43 +000012021debug=false
a.rottmann84e63352003-03-24 09:42:16 +000012022ac_cs_recheck=false
12023ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000012024
drhf922ca42015-05-14 15:39:18 +000012025SHELL=\${CONFIG_SHELL-$SHELL}
12026export SHELL
12027_ASEOF
12028cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12029## -------------------- ##
12030## M4sh Initialization. ##
12031## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000012032
drh8b727472009-01-19 18:18:40 +000012033# Be more Bourne compatible
12034DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000012035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000012036 emulate sh
12037 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000012038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000012039 # is contrary to our usage. Disable this feature.
12040 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000012041 setopt NO_GLOB_SUBST
12042else
drhf922ca42015-05-14 15:39:18 +000012043 case `(set -o) 2>/dev/null` in #(
12044 *posix*) :
12045 set -o posix ;; #(
12046 *) :
12047 ;;
drh8b727472009-01-19 18:18:40 +000012048esac
a.rottmann84e63352003-03-24 09:42:16 +000012049fi
drh8b727472009-01-19 18:18:40 +000012050
12051
drh8b727472009-01-19 18:18:40 +000012052as_nl='
12053'
12054export as_nl
12055# Printing a long string crashes Solaris 7 /usr/bin/printf.
12056as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12057as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000012059# Prefer a ksh shell builtin over an external printf program on Solaris,
12060# but without wasting forks for bash or zsh.
12061if test -z "$BASH_VERSION$ZSH_VERSION" \
12062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12063 as_echo='print -r --'
12064 as_echo_n='print -rn --'
12065elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000012066 as_echo='printf %s\n'
12067 as_echo_n='printf %s'
12068else
12069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12071 as_echo_n='/usr/ucb/echo -n'
12072 else
12073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12074 as_echo_n_body='eval
12075 arg=$1;
drhf922ca42015-05-14 15:39:18 +000012076 case $arg in #(
drh8b727472009-01-19 18:18:40 +000012077 *"$as_nl"*)
12078 expr "X$arg" : "X\\(.*\\)$as_nl";
12079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12080 esac;
12081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12082 '
12083 export as_echo_n_body
12084 as_echo_n='sh -c $as_echo_n_body as_echo'
12085 fi
12086 export as_echo_body
12087 as_echo='sh -c $as_echo_body as_echo'
12088fi
12089
12090# The user is always right.
12091if test "${PATH_SEPARATOR+set}" != set; then
12092 PATH_SEPARATOR=:
12093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12095 PATH_SEPARATOR=';'
12096 }
12097fi
a.rottmann84e63352003-03-24 09:42:16 +000012098
mlcreech94984912008-03-04 19:03:08 +000012099
drh8b727472009-01-19 18:18:40 +000012100# IFS
12101# We need space, tab and new line, in precisely that order. Quoting is
12102# there to prevent editors from complaining about space-tab.
12103# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12104# splitting by setting IFS to empty value.)
12105IFS=" "" $as_nl"
12106
12107# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000012108as_myself=
12109case $0 in #((
drh8b727472009-01-19 18:18:40 +000012110 *[\\/]* ) as_myself=$0 ;;
12111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112for as_dir in $PATH
12113do
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000012116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12117 done
drh8b727472009-01-19 18:18:40 +000012118IFS=$as_save_IFS
12119
12120 ;;
12121esac
12122# We did not find ourselves, most probably we were run as `sh COMMAND'
12123# in which case we are not to be found in the path.
12124if test "x$as_myself" = x; then
12125 as_myself=$0
12126fi
12127if test ! -f "$as_myself"; then
12128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000012129 exit 1
drh8b727472009-01-19 18:18:40 +000012130fi
12131
drhf922ca42015-05-14 15:39:18 +000012132# Unset variables that we do not need and which cause bugs (e.g. in
12133# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12134# suppresses any "Segmentation fault" message there. '((' could
12135# trigger a bug in pdksh 5.2.14.
12136for as_var in BASH_ENV ENV MAIL MAILPATH
12137do eval test x\${$as_var+set} = xset \
12138 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000012139done
mlcreech94984912008-03-04 19:03:08 +000012140PS1='$ '
12141PS2='> '
12142PS4='+ '
12143
12144# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000012145LC_ALL=C
12146export LC_ALL
12147LANGUAGE=C
12148export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000012149
drhf922ca42015-05-14 15:39:18 +000012150# CDPATH.
12151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12152
12153
12154# as_fn_error STATUS ERROR [LINENO LOG_FD]
12155# ----------------------------------------
12156# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12157# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12158# script with STATUS, using 1 if that was 0.
12159as_fn_error ()
12160{
12161 as_status=$1; test $as_status -eq 0 && as_status=1
12162 if test "$4"; then
12163 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12164 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12165 fi
12166 $as_echo "$as_me: error: $2" >&2
12167 as_fn_exit $as_status
12168} # as_fn_error
12169
12170
12171# as_fn_set_status STATUS
12172# -----------------------
12173# Set $? to STATUS, without forking.
12174as_fn_set_status ()
12175{
12176 return $1
12177} # as_fn_set_status
12178
12179# as_fn_exit STATUS
12180# -----------------
12181# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12182as_fn_exit ()
12183{
12184 set +e
12185 as_fn_set_status $1
12186 exit $1
12187} # as_fn_exit
12188
12189# as_fn_unset VAR
12190# ---------------
12191# Portably unset VAR.
12192as_fn_unset ()
12193{
12194 { eval $1=; unset $1;}
12195}
12196as_unset=as_fn_unset
12197# as_fn_append VAR VALUE
12198# ----------------------
12199# Append the text in VALUE to the end of the definition contained in VAR. Take
12200# advantage of any shell optimizations that allow amortized linear growth over
12201# repeated appends, instead of the typical quadratic growth present in naive
12202# implementations.
12203if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12204 eval 'as_fn_append ()
12205 {
12206 eval $1+=\$2
12207 }'
12208else
12209 as_fn_append ()
12210 {
12211 eval $1=\$$1\$2
12212 }
12213fi # as_fn_append
12214
12215# as_fn_arith ARG...
12216# ------------------
12217# Perform arithmetic evaluation on the ARGs, and store the result in the
12218# global $as_val. Take advantage of shells that can avoid forks. The arguments
12219# must be portable across $(()) and expr.
12220if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12221 eval 'as_fn_arith ()
12222 {
12223 as_val=$(( $* ))
12224 }'
12225else
12226 as_fn_arith ()
12227 {
12228 as_val=`expr "$@" || test $? -eq 1`
12229 }
12230fi # as_fn_arith
12231
12232
drh8b727472009-01-19 18:18:40 +000012233if expr a : '\(a\)' >/dev/null 2>&1 &&
12234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012235 as_expr=expr
12236else
12237 as_expr=false
12238fi
12239
drh8b727472009-01-19 18:18:40 +000012240if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012241 as_basename=basename
12242else
12243 as_basename=false
12244fi
12245
drhf922ca42015-05-14 15:39:18 +000012246if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12247 as_dirname=dirname
12248else
12249 as_dirname=false
12250fi
mlcreech94984912008-03-04 19:03:08 +000012251
drh8b727472009-01-19 18:18:40 +000012252as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12254 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12256$as_echo X/"$0" |
12257 sed '/^.*\/\([^/][^/]*\)\/*$/{
12258 s//\1/
12259 q
12260 }
12261 /^X\/\(\/\/\)$/{
12262 s//\1/
12263 q
12264 }
12265 /^X\/\(\/\).*/{
12266 s//\1/
12267 q
12268 }
12269 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012270
drhf922ca42015-05-14 15:39:18 +000012271# Avoid depending upon Character Ranges.
12272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12275as_cr_digits='0123456789'
12276as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012277
drh8b727472009-01-19 18:18:40 +000012278ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012279case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012280-n*)
drhf922ca42015-05-14 15:39:18 +000012281 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012283 xy) ECHO_C='\c';;
12284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12285 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012286 esac;;
12287*)
12288 ECHO_N='-n';;
12289esac
drh71eb93e2001-09-28 01:34:43 +000012290
12291rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012292if test -d conf$$.dir; then
12293 rm -f conf$$.dir/conf$$.file
12294else
12295 rm -f conf$$.dir
12296 mkdir conf$$.dir 2>/dev/null
12297fi
12298if (echo >conf$$.file) 2>/dev/null; then
12299 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012300 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012301 # ... but there are two gotchas:
12302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012304 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012306 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012307 elif ln conf$$.file conf$$ 2>/dev/null; then
12308 as_ln_s=ln
12309 else
drhf922ca42015-05-14 15:39:18 +000012310 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012311 fi
drh71eb93e2001-09-28 01:34:43 +000012312else
drhf922ca42015-05-14 15:39:18 +000012313 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012314fi
drh8b727472009-01-19 18:18:40 +000012315rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12316rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012317
drhf922ca42015-05-14 15:39:18 +000012318
12319# as_fn_mkdir_p
12320# -------------
12321# Create "$as_dir" as a directory, including parents if necessary.
12322as_fn_mkdir_p ()
12323{
12324
12325 case $as_dir in #(
12326 -*) as_dir=./$as_dir;;
12327 esac
12328 test -d "$as_dir" || eval $as_mkdir_p || {
12329 as_dirs=
12330 while :; do
12331 case $as_dir in #(
12332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12333 *) as_qdir=$as_dir;;
12334 esac
12335 as_dirs="'$as_qdir' $as_dirs"
12336 as_dir=`$as_dirname -- "$as_dir" ||
12337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12338 X"$as_dir" : 'X\(//\)[^/]' \| \
12339 X"$as_dir" : 'X\(//\)$' \| \
12340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12341$as_echo X"$as_dir" |
12342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12343 s//\1/
12344 q
12345 }
12346 /^X\(\/\/\)[^/].*/{
12347 s//\1/
12348 q
12349 }
12350 /^X\(\/\/\)$/{
12351 s//\1/
12352 q
12353 }
12354 /^X\(\/\).*/{
12355 s//\1/
12356 q
12357 }
12358 s/.*/./; q'`
12359 test -d "$as_dir" && break
12360 done
12361 test -z "$as_dirs" || eval "mkdir $as_dirs"
12362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12363
12364
12365} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012366if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012367 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012368else
a.rottmann964dbb12004-02-26 19:47:42 +000012369 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012370 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012371fi
12372
drhf922ca42015-05-14 15:39:18 +000012373
12374# as_fn_executable_p FILE
12375# -----------------------
12376# Test if FILE is an executable regular file.
12377as_fn_executable_p ()
12378{
12379 test -f "$1" && test -x "$1"
12380} # as_fn_executable_p
12381as_test_x='test -x'
12382as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012383
12384# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012386
12387# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012389
drh71eb93e2001-09-28 01:34:43 +000012390
drh71eb93e2001-09-28 01:34:43 +000012391exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012392## ----------------------------------- ##
12393## Main body of $CONFIG_STATUS script. ##
12394## ----------------------------------- ##
12395_ASEOF
12396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012397
drhf922ca42015-05-14 15:39:18 +000012398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12399# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012400# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012401# values after options handling.
12402ac_log="
drhf51bad42021-06-19 18:35:20 +000012403This file was extended by sqlite $as_me 3.37.0, which was
drhf922ca42015-05-14 15:39:18 +000012404generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012405
12406 CONFIG_FILES = $CONFIG_FILES
12407 CONFIG_HEADERS = $CONFIG_HEADERS
12408 CONFIG_LINKS = $CONFIG_LINKS
12409 CONFIG_COMMANDS = $CONFIG_COMMANDS
12410 $ $0 $@
12411
drh8b727472009-01-19 18:18:40 +000012412on `(hostname || uname -n) 2>/dev/null | sed 1q`
12413"
12414
drh71eb93e2001-09-28 01:34:43 +000012415_ACEOF
12416
drhf922ca42015-05-14 15:39:18 +000012417case $ac_config_files in *"
12418"*) set x $ac_config_files; shift; ac_config_files=$*;;
12419esac
12420
12421case $ac_config_headers in *"
12422"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12423esac
12424
12425
drh8b727472009-01-19 18:18:40 +000012426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012427# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012428config_files="$ac_config_files"
12429config_headers="$ac_config_headers"
12430config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012431
drh8b727472009-01-19 18:18:40 +000012432_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012433
drh8b727472009-01-19 18:18:40 +000012434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012435ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012436\`$as_me' instantiates files and other configuration actions
12437from templates according to the current configuration. Unless the files
12438and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012439
drhf922ca42015-05-14 15:39:18 +000012440Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012441
12442 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012443 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012444 --config print configuration, then exit
12445 -q, --quiet, --silent
12446 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012447 -d, --debug don't remove temporary files
12448 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012449 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012450 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012451 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012452 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012453
12454Configuration files:
12455$config_files
12456
mlcreechb87057f2008-03-06 07:19:20 +000012457Configuration headers:
12458$config_headers
12459
mlcreech636a9952008-05-05 22:52:56 +000012460Configuration commands:
12461$config_commands
12462
drhf922ca42015-05-14 15:39:18 +000012463Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012464
mlcreech94984912008-03-04 19:03:08 +000012465_ACEOF
drh8b727472009-01-19 18:18:40 +000012466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012468ac_cs_version="\\
drhf51bad42021-06-19 18:35:20 +000012469sqlite config.status 3.37.0
drhf922ca42015-05-14 15:39:18 +000012470configured by $0, generated by GNU Autoconf 2.69,
12471 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012472
drhf922ca42015-05-14 15:39:18 +000012473Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012474This config.status script is free software; the Free Software Foundation
12475gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012476
12477ac_pwd='$ac_pwd'
12478srcdir='$srcdir'
12479INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012480test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012481_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012482
drh8b727472009-01-19 18:18:40 +000012483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012485ac_need_defaults=:
12486while test $# != 0
12487do
12488 case $1 in
drhf922ca42015-05-14 15:39:18 +000012489 --*=?*)
drh8b727472009-01-19 18:18:40 +000012490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012492 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012493 ;;
drhf922ca42015-05-14 15:39:18 +000012494 --*=)
12495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12496 ac_optarg=
12497 ac_shift=:
12498 ;;
drh8b727472009-01-19 18:18:40 +000012499 *)
a.rottmann84e63352003-03-24 09:42:16 +000012500 ac_option=$1
12501 ac_optarg=$2
12502 ac_shift=shift
12503 ;;
drh75897232000-05-29 14:26:00 +000012504 esac
12505
a.rottmann84e63352003-03-24 09:42:16 +000012506 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012507 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012509 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12511 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012512 --config | --confi | --conf | --con | --co | --c )
12513 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012514 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012515 debug=: ;;
12516 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012517 $ac_shift
drh8b727472009-01-19 18:18:40 +000012518 case $ac_optarg in
12519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012520 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012521 esac
drhf922ca42015-05-14 15:39:18 +000012522 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012523 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012524 --header | --heade | --head | --hea )
12525 $ac_shift
drh8b727472009-01-19 18:18:40 +000012526 case $ac_optarg in
12527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12528 esac
drhf922ca42015-05-14 15:39:18 +000012529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012530 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012531 --he | --h)
12532 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012533 as_fn_error $? "ambiguous option: \`$1'
12534Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012535 --help | --hel | -h )
12536 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12539 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012540
drh71eb93e2001-09-28 01:34:43 +000012541 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012542 -*) as_fn_error $? "unrecognized option: \`$1'
12543Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012544
drhf922ca42015-05-14 15:39:18 +000012545 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012546 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012547
12548 esac
12549 shift
12550done
12551
a.rottmann84e63352003-03-24 09:42:16 +000012552ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012553
a.rottmann84e63352003-03-24 09:42:16 +000012554if $ac_cs_silent; then
12555 exec 6>/dev/null
12556 ac_configure_extra_args="$ac_configure_extra_args --silent"
12557fi
drh71eb93e2001-09-28 01:34:43 +000012558
12559_ACEOF
drh8b727472009-01-19 18:18:40 +000012560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012561if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012563 shift
12564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12565 CONFIG_SHELL='$SHELL'
12566 export CONFIG_SHELL
12567 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012568fi
drh71eb93e2001-09-28 01:34:43 +000012569
a.rottmann84e63352003-03-24 09:42:16 +000012570_ACEOF
drh8b727472009-01-19 18:18:40 +000012571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12572exec 5>>config.log
12573{
12574 echo
12575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12576## Running $as_me. ##
12577_ASBOX
12578 $as_echo "$ac_log"
12579} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012580
drh8b727472009-01-19 18:18:40 +000012581_ACEOF
12582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012583#
drh8b727472009-01-19 18:18:40 +000012584# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012585#
12586
12587
12588# The HP-UX ksh and POSIX shell print the target directory to stdout
12589# if CDPATH is set.
12590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12591
12592sed_quote_subst='$sed_quote_subst'
12593double_quote_subst='$double_quote_subst'
12594delay_variable_subst='$delay_variable_subst'
12595macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12596macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12597enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12598enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12599pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12600enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12601host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12602host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12603host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12604build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12605build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12606build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12607SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12608Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12609GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12610EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12611FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12612LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12613NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12614LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12615max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12616ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12617exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12618lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12619lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12620lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12621reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12622reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012623OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012624deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12625file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12626AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12627AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12628STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12629RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12630old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12631old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12632old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12633CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12634CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12635compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12636GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12637lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12638lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12639lt_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"`'
12640lt_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"`'
12641objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12642SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12643ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12644MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12645lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12646lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12647lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12648lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12649lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12650need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12651DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12652NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12653LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12654OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12655OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12656libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12657shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12658extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12659archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12660enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12661export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12662whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12663compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12664old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12665old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12666archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12667archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12668module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12669module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12670with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12671allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12672no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12673hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12674hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12675hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12676hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12677hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12678hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12679hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12680hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12681inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12682link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12683fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12684always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12685export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12686exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12687include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12688prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12689file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12690variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12691need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12692need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12693version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12694runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12695shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12696shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12697libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12698library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12699soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12700postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12701postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12702finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12703finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12704hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12705sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12706sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12707hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12708enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12709enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12710enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12711old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12712striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12713
12714LTCC='$LTCC'
12715LTCFLAGS='$LTCFLAGS'
12716compiler='$compiler_DEFAULT'
12717
12718# Quote evaled strings.
12719for var in SED \
12720GREP \
12721EGREP \
12722FGREP \
12723LD \
12724NM \
12725LN_S \
12726lt_SP2NL \
12727lt_NL2SP \
12728reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012729OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012730deplibs_check_method \
12731file_magic_cmd \
12732AR \
12733AR_FLAGS \
12734STRIP \
12735RANLIB \
12736CC \
12737CFLAGS \
12738compiler \
12739lt_cv_sys_global_symbol_pipe \
12740lt_cv_sys_global_symbol_to_cdecl \
12741lt_cv_sys_global_symbol_to_c_name_address \
12742lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12743SHELL \
12744ECHO \
12745lt_prog_compiler_no_builtin_flag \
12746lt_prog_compiler_wl \
12747lt_prog_compiler_pic \
12748lt_prog_compiler_static \
12749lt_cv_prog_compiler_c_o \
12750need_locks \
12751DSYMUTIL \
12752NMEDIT \
12753LIPO \
12754OTOOL \
12755OTOOL64 \
12756shrext_cmds \
12757export_dynamic_flag_spec \
12758whole_archive_flag_spec \
12759compiler_needs_object \
12760with_gnu_ld \
12761allow_undefined_flag \
12762no_undefined_flag \
12763hardcode_libdir_flag_spec \
12764hardcode_libdir_flag_spec_ld \
12765hardcode_libdir_separator \
12766fix_srcfile_path \
12767exclude_expsyms \
12768include_expsyms \
12769file_list_spec \
12770variables_saved_for_relink \
12771libname_spec \
12772library_names_spec \
12773soname_spec \
12774finish_eval \
12775old_striplib \
12776striplib; do
12777 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12778 *[\\\\\\\`\\"\\\$]*)
12779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12780 ;;
12781 *)
12782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12783 ;;
12784 esac
12785done
12786
12787# Double-quote double-evaled strings.
12788for var in reload_cmds \
12789old_postinstall_cmds \
12790old_postuninstall_cmds \
12791old_archive_cmds \
12792extract_expsyms_cmds \
12793old_archive_from_new_cmds \
12794old_archive_from_expsyms_cmds \
12795archive_cmds \
12796archive_expsym_cmds \
12797module_cmds \
12798module_expsym_cmds \
12799export_symbols_cmds \
12800prelink_cmds \
12801postinstall_cmds \
12802postuninstall_cmds \
12803finish_cmds \
12804sys_lib_search_path_spec \
12805sys_lib_dlsearch_path_spec; do
12806 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12807 *[\\\\\\\`\\"\\\$]*)
12808 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12809 ;;
12810 *)
12811 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12812 ;;
12813 esac
12814done
12815
12816# Fix-up fallback echo if it was mangled by the above quoting rules.
12817case \$lt_ECHO in
12818*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12819 ;;
12820esac
12821
12822ac_aux_dir='$ac_aux_dir'
12823xsi_shell='$xsi_shell'
12824lt_shell_append='$lt_shell_append'
12825
12826# See if we are running on zsh, and set the options which allow our
12827# commands through without removal of \ escapes INIT.
12828if test -n "\${ZSH_VERSION+set}" ; then
12829 setopt NO_GLOB_SUBST
12830fi
12831
12832
12833 PACKAGE='$PACKAGE'
12834 VERSION='$VERSION'
12835 TIMESTAMP='$TIMESTAMP'
12836 RM='$RM'
12837 ofile='$ofile'
12838
12839
12840
12841
mlcreech94984912008-03-04 19:03:08 +000012842_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012843
drh8b727472009-01-19 18:18:40 +000012844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012845
drh8b727472009-01-19 18:18:40 +000012846# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012847for ac_config_target in $ac_config_targets
12848do
drh8b727472009-01-19 18:18:40 +000012849 case $ac_config_target in
12850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12852 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12853 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12854
drhf922ca42015-05-14 15:39:18 +000012855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012856 esac
12857done
12858
drh8b727472009-01-19 18:18:40 +000012859
drh71eb93e2001-09-28 01:34:43 +000012860# If the user did not use the arguments to specify the items to instantiate,
12861# then the envvar interface is used. Set only those that are not.
12862# We use the long form for the default assignment because of an extremely
12863# bizarre bug on SunOS 4.1.3.
12864if $ac_need_defaults; then
12865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012868fi
12869
a.rottmann84e63352003-03-24 09:42:16 +000012870# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012871# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012872# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012873# Hook for its removal unless debugging.
12874# Note that there is a small window in which the directory will not be cleaned:
12875# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012876$debug ||
12877{
drhf922ca42015-05-14 15:39:18 +000012878 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012879 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012880 : "${ac_tmp:=$tmp}"
12881 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012882' 0
drhf922ca42015-05-14 15:39:18 +000012883 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012884}
drh71eb93e2001-09-28 01:34:43 +000012885# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012886
drh71eb93e2001-09-28 01:34:43 +000012887{
drh8b727472009-01-19 18:18:40 +000012888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012889 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012890} ||
12891{
drh8b727472009-01-19 18:18:40 +000012892 tmp=./conf$$-$RANDOM
12893 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012894} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12895ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012896
drh8b727472009-01-19 18:18:40 +000012897# Set up the scripts for CONFIG_FILES section.
12898# No need to generate them if there are no CONFIG_FILES.
12899# This happens for instance with `./config.status config.h'.
12900if test -n "$CONFIG_FILES"; then
12901
12902
drhf922ca42015-05-14 15:39:18 +000012903ac_cr=`echo X | tr X '\015'`
12904# On cygwin, bash can eat \r inside `` if the user requested igncr.
12905# But we know of no other shell where ac_cr would be empty at this
12906# point, so we can use a bashism as a fallback.
12907if test "x$ac_cr" = x; then
12908 eval ac_cr=\$\'\\r\'
12909fi
drh8b727472009-01-19 18:18:40 +000012910ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12911if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012912 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012913else
12914 ac_cs_awk_cr=$ac_cr
12915fi
12916
drhf922ca42015-05-14 15:39:18 +000012917echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012918_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012919
mlcreech94984912008-03-04 19:03:08 +000012920
drh8b727472009-01-19 18:18:40 +000012921{
12922 echo "cat >conf$$subs.awk <<_ACEOF" &&
12923 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12924 echo "_ACEOF"
12925} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12927ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012928ac_delim='%!_!# '
12929for ac_last_try in false false false false false :; do
12930 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012932
drhf922ca42015-05-14 15:39:18 +000012933 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12934 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012935 break
12936 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012938 else
12939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012940 fi
drh8b727472009-01-19 18:18:40 +000012941done
12942rm -f conf$$subs.sh
12943
12944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012945cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012946_ACEOF
12947sed -n '
12948h
12949s/^/S["/; s/!.*/"]=/
12950p
12951g
12952s/^[^!]*!//
12953:repl
12954t repl
12955s/'"$ac_delim"'$//
12956t delim
12957:nl
12958h
drhf922ca42015-05-14 15:39:18 +000012959s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012960t more1
12961s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12962p
12963n
12964b repl
12965:more1
12966s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12967p
12968g
12969s/.\{148\}//
12970t nl
12971:delim
12972h
drhf922ca42015-05-14 15:39:18 +000012973s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012974t more2
12975s/["\\]/\\&/g; s/^/"/; s/$/"/
12976p
12977b
12978:more2
12979s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12980p
12981g
12982s/.\{148\}//
12983t delim
12984' <conf$$subs.awk | sed '
12985/^[^""]/{
12986 N
12987 s/\n//
12988}
12989' >>$CONFIG_STATUS || ac_write_fail=1
12990rm -f conf$$subs.awk
12991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12992_ACAWK
drhf922ca42015-05-14 15:39:18 +000012993cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012994 for (key in S) S_is_set[key] = 1
12995 FS = ""
12996
12997}
12998{
12999 line = $ 0
13000 nfields = split(line, field, "@")
13001 substed = 0
13002 len = length(field[1])
13003 for (i = 2; i < nfields; i++) {
13004 key = field[i]
13005 keylen = length(key)
13006 if (S_is_set[key]) {
13007 value = S[key]
13008 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13009 len += length(value) + length(field[++i])
13010 substed = 1
13011 } else
13012 len += 1 + keylen
13013 }
13014
13015 print line
13016}
13017
13018_ACAWK
13019_ACEOF
13020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13023else
13024 cat
drhf922ca42015-05-14 15:39:18 +000013025fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13026 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013027_ACEOF
13028
drhf922ca42015-05-14 15:39:18 +000013029# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13030# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000013031# trailing colons and then remove the whole line if VPATH becomes empty
13032# (actually we leave an empty line to preserve line numbers).
13033if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000013034 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13035h
13036s///
13037s/^/:/
13038s/[ ]*$/:/
13039s/:\$(srcdir):/:/g
13040s/:\${srcdir}:/:/g
13041s/:@srcdir@:/:/g
13042s/^:*//
drh8b727472009-01-19 18:18:40 +000013043s/:*$//
drhf922ca42015-05-14 15:39:18 +000013044x
13045s/\(=[ ]*\).*/\1/
13046G
13047s/\n//
drh8b727472009-01-19 18:18:40 +000013048s/^[^=]*=[ ]*$//
13049}'
13050fi
13051
13052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013053fi # test -n "$CONFIG_FILES"
13054
drh8b727472009-01-19 18:18:40 +000013055# Set up the scripts for CONFIG_HEADERS section.
13056# No need to generate them if there are no CONFIG_HEADERS.
13057# This happens for instance with `./config.status Makefile'.
13058if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000013059cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000013060BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000013061_ACEOF
drh8b727472009-01-19 18:18:40 +000013062
13063# Transform confdefs.h into an awk script `defines.awk', embedded as
13064# here-document in config.status, that substitutes the proper values into
13065# config.h.in to produce config.h.
13066
13067# Create a delimiter string that does not exist in confdefs.h, to ease
13068# handling of long lines.
13069ac_delim='%!_!# '
13070for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000013071 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13072 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000013073 break
13074 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000013075 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013076 else
13077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13078 fi
13079done
13080
13081# For the awk script, D is an array of macro values keyed by name,
13082# likewise P contains macro parameters if any. Preserve backslash
13083# newline sequences.
13084
13085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13086sed -n '
13087s/.\{148\}/&'"$ac_delim"'/g
13088t rset
13089:rset
13090s/^[ ]*#[ ]*define[ ][ ]*/ /
13091t def
13092d
13093:def
13094s/\\$//
13095t bsnl
13096s/["\\]/\\&/g
13097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13098D["\1"]=" \3"/p
13099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13100d
13101:bsnl
13102s/["\\]/\\&/g
13103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13104D["\1"]=" \3\\\\\\n"\\/p
13105t cont
13106s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13107t cont
13108d
13109:cont
13110n
13111s/.\{148\}/&'"$ac_delim"'/g
13112t clear
13113:clear
13114s/\\$//
13115t bsnlc
13116s/["\\]/\\&/g; s/^/"/; s/$/"/p
13117d
13118:bsnlc
13119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13120b cont
13121' <confdefs.h | sed '
13122s/'"$ac_delim"'/"\\\
13123"/g' >>$CONFIG_STATUS || ac_write_fail=1
13124
13125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126 for (key in D) D_is_set[key] = 1
13127 FS = ""
13128}
13129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13130 line = \$ 0
13131 split(line, arg, " ")
13132 if (arg[1] == "#") {
13133 defundef = arg[2]
13134 mac1 = arg[3]
13135 } else {
13136 defundef = substr(arg[1], 2)
13137 mac1 = arg[2]
13138 }
13139 split(mac1, mac2, "(") #)
13140 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000013141 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000013142 if (D_is_set[macro]) {
13143 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000013144 print prefix "define", macro P[macro] D[macro]
13145 next
13146 } else {
13147 # Replace #undef with comments. This is necessary, for example,
13148 # in the case of _POSIX_SOURCE, which is predefined and required
13149 # on some systems where configure will not decide to define it.
13150 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000013151 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000013152 next
13153 }
13154 }
13155}
13156{ print }
13157_ACAWK
13158_ACEOF
13159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013160 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013161fi # test -n "$CONFIG_HEADERS"
13162
13163
13164eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13165shift
13166for ac_tag
13167do
13168 case $ac_tag in
13169 :[FHLC]) ac_mode=$ac_tag; continue;;
13170 esac
13171 case $ac_mode$ac_tag in
13172 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013173 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013174 :[FH]-) ac_tag=-:-;;
13175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13176 esac
13177 ac_save_IFS=$IFS
13178 IFS=:
13179 set x $ac_tag
13180 IFS=$ac_save_IFS
13181 shift
13182 ac_file=$1
13183 shift
13184
13185 case $ac_mode in
13186 :L) ac_source=$1;;
13187 :[FH])
13188 ac_file_inputs=
13189 for ac_f
13190 do
13191 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013192 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013193 *) # Look for the file first in the build tree, then in the source tree
13194 # (if the path is not absolute). The absolute path cannot be DOS-style,
13195 # because $ac_f cannot contain `:'.
13196 test -f "$ac_f" ||
13197 case $ac_f in
13198 [\\/$]*) false;;
13199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13200 esac ||
drhf922ca42015-05-14 15:39:18 +000013201 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013202 esac
13203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013204 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013205 done
13206
13207 # Let's still pretend it is `configure' which instantiates (i.e., don't
13208 # use $as_me), people would be surprised to read:
13209 # /* config.h. Generated by config.status. */
13210 configure_input='Generated from '`
13211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13212 `' by configure.'
13213 if test x"$ac_file" != x-; then
13214 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013216$as_echo "$as_me: creating $ac_file" >&6;}
13217 fi
13218 # Neutralize special characters interpreted by sed in replacement strings.
13219 case $configure_input in #(
13220 *\&* | *\|* | *\\* )
13221 ac_sed_conf_input=`$as_echo "$configure_input" |
13222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13223 *) ac_sed_conf_input=$configure_input;;
13224 esac
13225
13226 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013227 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013229 esac
13230 ;;
drh71eb93e2001-09-28 01:34:43 +000013231 esac
13232
drh8b727472009-01-19 18:18:40 +000013233 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013235 X"$ac_file" : 'X\(//\)[^/]' \| \
13236 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13238$as_echo X"$ac_file" |
13239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13240 s//\1/
13241 q
13242 }
13243 /^X\(\/\/\)[^/].*/{
13244 s//\1/
13245 q
13246 }
13247 /^X\(\/\/\)$/{
13248 s//\1/
13249 q
13250 }
13251 /^X\(\/\).*/{
13252 s//\1/
13253 q
13254 }
13255 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013256 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013257 ac_builddir=.
13258
drh8b727472009-01-19 18:18:40 +000013259case "$ac_dir" in
13260.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13261*)
13262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13263 # A ".." for each directory in $ac_dir_suffix.
13264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13265 case $ac_top_builddir_sub in
13266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13268 esac ;;
13269esac
13270ac_abs_top_builddir=$ac_pwd
13271ac_abs_builddir=$ac_pwd$ac_dir_suffix
13272# for backward compatibility:
13273ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013274
13275case $srcdir in
drh8b727472009-01-19 18:18:40 +000013276 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013277 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013278 ac_top_srcdir=$ac_top_builddir_sub
13279 ac_abs_top_srcdir=$ac_pwd ;;
13280 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013281 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013282 ac_top_srcdir=$srcdir
13283 ac_abs_top_srcdir=$srcdir ;;
13284 *) # Relative name.
13285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13286 ac_top_srcdir=$ac_top_build_prefix$srcdir
13287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013288esac
drh8b727472009-01-19 18:18:40 +000013289ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013290
a.rottmann84e63352003-03-24 09:42:16 +000013291
drh8b727472009-01-19 18:18:40 +000013292 case $ac_mode in
13293 :F)
13294 #
13295 # CONFIG_FILE
13296 #
drh75897232000-05-29 14:26:00 +000013297
drh71eb93e2001-09-28 01:34:43 +000013298 case $INSTALL in
13299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013301 esac
mlcreech94984912008-03-04 19:03:08 +000013302_ACEOF
drh8b727472009-01-19 18:18:40 +000013303
13304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305# If the template does not know about datarootdir, expand it.
13306# FIXME: This hack should be removed a few years after 2.60.
13307ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013308ac_sed_dataroot='
13309/datarootdir/ {
13310 p
13311 q
13312}
13313/@datadir@/p
13314/@docdir@/p
13315/@infodir@/p
13316/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013317/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13319*datarootdir*) ac_datarootdir_seen=yes;;
13320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013322$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13323_ACEOF
13324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13325 ac_datarootdir_hack='
13326 s&@datadir@&$datadir&g
13327 s&@docdir@&$docdir&g
13328 s&@infodir@&$infodir&g
13329 s&@localedir@&$localedir&g
13330 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013331 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013332esac
13333_ACEOF
13334
13335# Neutralize VPATH when `$srcdir' = `.'.
13336# Shell code in configure.ac might set extrasub.
13337# FIXME: do we really want to maintain this feature?
13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013340$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013341_ACEOF
drh8b727472009-01-19 18:18:40 +000013342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013343:t
13344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013345s|@configure_input@|$ac_sed_conf_input|;t t
13346s&@top_builddir@&$ac_top_builddir_sub&;t t
13347s&@top_build_prefix@&$ac_top_build_prefix&;t t
13348s&@srcdir@&$ac_srcdir&;t t
13349s&@abs_srcdir@&$ac_abs_srcdir&;t t
13350s&@top_srcdir@&$ac_top_srcdir&;t t
13351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13352s&@builddir@&$ac_builddir&;t t
13353s&@abs_builddir@&$ac_abs_builddir&;t t
13354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13355s&@INSTALL@&$ac_INSTALL&;t t
13356$ac_datarootdir_hack
13357"
drhf922ca42015-05-14 15:39:18 +000013358eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13359 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013360
drh8b727472009-01-19 18:18:40 +000013361test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013362 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13364 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13366which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013367$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013368which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013369
drhf922ca42015-05-14 15:39:18 +000013370 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013371 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013372 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13373 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013374 esac \
drhf922ca42015-05-14 15:39:18 +000013375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013376 ;;
13377 :H)
13378 #
13379 # CONFIG_HEADER
13380 #
drh866108f2008-05-13 00:57:21 +000013381 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013382 {
13383 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13385 } >"$ac_tmp/config.h" \
13386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13387 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013389$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013390 else
drh8b727472009-01-19 18:18:40 +000013391 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013392 mv "$ac_tmp/config.h" "$ac_file" \
13393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013394 fi
13395 else
drh8b727472009-01-19 18:18:40 +000013396 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013397 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13398 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013399 fi
drh8b727472009-01-19 18:18:40 +000013400 ;;
drh866108f2008-05-13 00:57:21 +000013401
drhf922ca42015-05-14 15:39:18 +000013402 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013403$as_echo "$as_me: executing $ac_file commands" >&6;}
13404 ;;
13405 esac
drh866108f2008-05-13 00:57:21 +000013406
13407
drh8b727472009-01-19 18:18:40 +000013408 case $ac_file$ac_mode in
13409 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013410
13411 # See if we are running on zsh, and set the options which allow our
13412 # commands through without removal of \ escapes.
13413 if test -n "${ZSH_VERSION+set}" ; then
13414 setopt NO_GLOB_SUBST
13415 fi
13416
13417 cfgfile="${ofile}T"
13418 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13419 $RM "$cfgfile"
13420
13421 cat <<_LT_EOF >> "$cfgfile"
13422#! $SHELL
13423
13424# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13425# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13427# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13428#
13429# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13430# 2006, 2007, 2008 Free Software Foundation, Inc.
13431# Written by Gordon Matzigkeit, 1996
13432#
13433# This file is part of GNU Libtool.
13434#
13435# GNU Libtool is free software; you can redistribute it and/or
13436# modify it under the terms of the GNU General Public License as
13437# published by the Free Software Foundation; either version 2 of
13438# the License, or (at your option) any later version.
13439#
13440# As a special exception to the GNU General Public License,
13441# if you distribute this file as part of a program or library that
13442# is built using GNU Libtool, you may include this file under the
13443# same distribution terms that you use for the rest of that program.
13444#
13445# GNU Libtool is distributed in the hope that it will be useful,
13446# but WITHOUT ANY WARRANTY; without even the implied warranty of
13447# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13448# GNU General Public License for more details.
13449#
13450# You should have received a copy of the GNU General Public License
13451# along with GNU Libtool; see the file COPYING. If not, a copy
13452# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13453# obtained by writing to the Free Software Foundation, Inc.,
13454# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13455
13456
13457# The names of the tagged configurations supported by this script.
13458available_tags=""
13459
13460# ### BEGIN LIBTOOL CONFIG
13461
13462# Which release of libtool.m4 was used?
13463macro_version=$macro_version
13464macro_revision=$macro_revision
13465
13466# Whether or not to build shared libraries.
13467build_libtool_libs=$enable_shared
13468
13469# Whether or not to build static libraries.
13470build_old_libs=$enable_static
13471
13472# What type of objects to build.
13473pic_mode=$pic_mode
13474
13475# Whether or not to optimize for fast installation.
13476fast_install=$enable_fast_install
13477
13478# The host system.
13479host_alias=$host_alias
13480host=$host
13481host_os=$host_os
13482
13483# The build system.
13484build_alias=$build_alias
13485build=$build
13486build_os=$build_os
13487
13488# A sed program that does not truncate output.
13489SED=$lt_SED
13490
13491# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13492Xsed="\$SED -e 1s/^X//"
13493
13494# A grep program that handles long lines.
13495GREP=$lt_GREP
13496
13497# An ERE matcher.
13498EGREP=$lt_EGREP
13499
13500# A literal string matcher.
13501FGREP=$lt_FGREP
13502
13503# A BSD- or MS-compatible name lister.
13504NM=$lt_NM
13505
13506# Whether we need soft or hard links.
13507LN_S=$lt_LN_S
13508
13509# What is the maximum length of a command?
13510max_cmd_len=$max_cmd_len
13511
13512# Object file suffix (normally "o").
13513objext=$ac_objext
13514
13515# Executable file suffix (normally "").
13516exeext=$exeext
13517
13518# whether the shell understands "unset".
13519lt_unset=$lt_unset
13520
13521# turn spaces into newlines.
13522SP2NL=$lt_lt_SP2NL
13523
13524# turn newlines into spaces.
13525NL2SP=$lt_lt_NL2SP
13526
13527# How to create reloadable object files.
13528reload_flag=$lt_reload_flag
13529reload_cmds=$lt_reload_cmds
13530
vapier6acb2cf2009-01-28 04:46:28 +000013531# An object symbol dumper.
13532OBJDUMP=$lt_OBJDUMP
13533
mlcreech636a9952008-05-05 22:52:56 +000013534# Method to check whether dependent libraries are shared objects.
13535deplibs_check_method=$lt_deplibs_check_method
13536
13537# Command to use when deplibs_check_method == "file_magic".
13538file_magic_cmd=$lt_file_magic_cmd
13539
13540# The archiver.
13541AR=$lt_AR
13542AR_FLAGS=$lt_AR_FLAGS
13543
13544# A symbol stripping program.
13545STRIP=$lt_STRIP
13546
13547# Commands used to install an old-style archive.
13548RANLIB=$lt_RANLIB
13549old_postinstall_cmds=$lt_old_postinstall_cmds
13550old_postuninstall_cmds=$lt_old_postuninstall_cmds
13551
13552# A C compiler.
13553LTCC=$lt_CC
13554
13555# LTCC compiler flags.
13556LTCFLAGS=$lt_CFLAGS
13557
13558# Take the output of nm and produce a listing of raw symbols and C names.
13559global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13560
13561# Transform the output of nm in a proper C declaration.
13562global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13563
13564# Transform the output of nm in a C name address pair.
13565global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13566
13567# Transform the output of nm in a C name address pair when lib prefix is needed.
13568global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13569
13570# The name of the directory that contains temporary libtool files.
13571objdir=$objdir
13572
13573# Shell to use when invoking shell scripts.
13574SHELL=$lt_SHELL
13575
13576# An echo program that does not interpret backslashes.
13577ECHO=$lt_ECHO
13578
13579# Used to examine libraries when file_magic_cmd begins with "file".
13580MAGIC_CMD=$MAGIC_CMD
13581
13582# Must we lock files when doing compilation?
13583need_locks=$lt_need_locks
13584
13585# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13586DSYMUTIL=$lt_DSYMUTIL
13587
13588# Tool to change global to local symbols on Mac OS X.
13589NMEDIT=$lt_NMEDIT
13590
13591# Tool to manipulate fat objects and archives on Mac OS X.
13592LIPO=$lt_LIPO
13593
13594# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13595OTOOL=$lt_OTOOL
13596
13597# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13598OTOOL64=$lt_OTOOL64
13599
13600# Old archive suffix (normally "a").
13601libext=$libext
13602
13603# Shared library suffix (normally ".so").
13604shrext_cmds=$lt_shrext_cmds
13605
13606# The commands to extract the exported symbol list from a shared archive.
13607extract_expsyms_cmds=$lt_extract_expsyms_cmds
13608
13609# Variables whose values should be saved in libtool wrapper scripts and
13610# restored at link time.
13611variables_saved_for_relink=$lt_variables_saved_for_relink
13612
13613# Do we need the "lib" prefix for modules?
13614need_lib_prefix=$need_lib_prefix
13615
13616# Do we need a version for libraries?
13617need_version=$need_version
13618
13619# Library versioning type.
13620version_type=$version_type
13621
13622# Shared library runtime path variable.
13623runpath_var=$runpath_var
13624
13625# Shared library path variable.
13626shlibpath_var=$shlibpath_var
13627
13628# Is shlibpath searched before the hard-coded library search path?
13629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13630
13631# Format of library name prefix.
13632libname_spec=$lt_libname_spec
13633
13634# List of archive names. First name is the real one, the rest are links.
13635# The last name is the one that the linker finds with -lNAME
13636library_names_spec=$lt_library_names_spec
13637
13638# The coded name of the library, if different from the real name.
13639soname_spec=$lt_soname_spec
13640
13641# Command to use after installation of a shared archive.
13642postinstall_cmds=$lt_postinstall_cmds
13643
13644# Command to use after uninstallation of a shared archive.
13645postuninstall_cmds=$lt_postuninstall_cmds
13646
13647# Commands used to finish a libtool library installation in a directory.
13648finish_cmds=$lt_finish_cmds
13649
13650# As "finish_cmds", except a single script fragment to be evaled but
13651# not shown.
13652finish_eval=$lt_finish_eval
13653
13654# Whether we should hardcode library paths into libraries.
13655hardcode_into_libs=$hardcode_into_libs
13656
13657# Compile-time system search path for libraries.
13658sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13659
13660# Run-time system search path for libraries.
13661sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13662
13663# Whether dlopen is supported.
13664dlopen_support=$enable_dlopen
13665
13666# Whether dlopen of programs is supported.
13667dlopen_self=$enable_dlopen_self
13668
13669# Whether dlopen of statically linked programs is supported.
13670dlopen_self_static=$enable_dlopen_self_static
13671
13672# Commands to strip libraries.
13673old_striplib=$lt_old_striplib
13674striplib=$lt_striplib
13675
13676
13677# The linker used to build libraries.
13678LD=$lt_LD
13679
13680# Commands used to build an old-style archive.
13681old_archive_cmds=$lt_old_archive_cmds
13682
13683# A language specific compiler.
13684CC=$lt_compiler
13685
13686# Is the compiler the GNU compiler?
13687with_gcc=$GCC
13688
13689# Compiler flag to turn off builtin functions.
13690no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13691
13692# How to pass a linker flag through the compiler.
13693wl=$lt_lt_prog_compiler_wl
13694
13695# Additional compiler flags for building library objects.
13696pic_flag=$lt_lt_prog_compiler_pic
13697
13698# Compiler flag to prevent dynamic linking.
13699link_static_flag=$lt_lt_prog_compiler_static
13700
13701# Does compiler simultaneously support -c and -o options?
13702compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13703
13704# Whether or not to add -lc for building shared libraries.
13705build_libtool_need_lc=$archive_cmds_need_lc
13706
13707# Whether or not to disallow shared libs when runtime libs are static.
13708allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13709
13710# Compiler flag to allow reflexive dlopens.
13711export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13712
13713# Compiler flag to generate shared objects directly from archives.
13714whole_archive_flag_spec=$lt_whole_archive_flag_spec
13715
13716# Whether the compiler copes with passing no objects directly.
13717compiler_needs_object=$lt_compiler_needs_object
13718
13719# Create an old-style archive from a shared archive.
13720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13721
13722# Create a temporary old-style archive to link instead of a shared archive.
13723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13724
13725# Commands used to build a shared archive.
13726archive_cmds=$lt_archive_cmds
13727archive_expsym_cmds=$lt_archive_expsym_cmds
13728
13729# Commands used to build a loadable module if different from building
13730# a shared archive.
13731module_cmds=$lt_module_cmds
13732module_expsym_cmds=$lt_module_expsym_cmds
13733
13734# Whether we are building with GNU ld or not.
13735with_gnu_ld=$lt_with_gnu_ld
13736
13737# Flag that allows shared libraries with undefined symbols to be built.
13738allow_undefined_flag=$lt_allow_undefined_flag
13739
13740# Flag that enforces no undefined symbols.
13741no_undefined_flag=$lt_no_undefined_flag
13742
13743# Flag to hardcode \$libdir into a binary during linking.
13744# This must work even if \$libdir does not exist
13745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13746
13747# If ld is used when linking, flag to hardcode \$libdir into a binary
13748# during linking. This must work even if \$libdir does not exist.
13749hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13750
13751# Whether we need a single "-rpath" flag with a separated argument.
13752hardcode_libdir_separator=$lt_hardcode_libdir_separator
13753
13754# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13755# DIR into the resulting binary.
13756hardcode_direct=$hardcode_direct
13757
13758# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13759# DIR into the resulting binary and the resulting library dependency is
13760# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13761# library is relocated.
13762hardcode_direct_absolute=$hardcode_direct_absolute
13763
13764# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13765# into the resulting binary.
13766hardcode_minus_L=$hardcode_minus_L
13767
13768# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13769# into the resulting binary.
13770hardcode_shlibpath_var=$hardcode_shlibpath_var
13771
13772# Set to "yes" if building a shared library automatically hardcodes DIR
13773# into the library and all subsequent libraries and executables linked
13774# against it.
13775hardcode_automatic=$hardcode_automatic
13776
13777# Set to yes if linker adds runtime paths of dependent libraries
13778# to runtime path list.
13779inherit_rpath=$inherit_rpath
13780
13781# Whether libtool must link a program against all its dependency libraries.
13782link_all_deplibs=$link_all_deplibs
13783
13784# Fix the shell variable \$srcfile for the compiler.
13785fix_srcfile_path=$lt_fix_srcfile_path
13786
13787# Set to "yes" if exported symbols are required.
13788always_export_symbols=$always_export_symbols
13789
13790# The commands to list exported symbols.
13791export_symbols_cmds=$lt_export_symbols_cmds
13792
13793# Symbols that should not be listed in the preloaded symbols.
13794exclude_expsyms=$lt_exclude_expsyms
13795
13796# Symbols that must always be exported.
13797include_expsyms=$lt_include_expsyms
13798
13799# Commands necessary for linking programs (against libraries) with templates.
13800prelink_cmds=$lt_prelink_cmds
13801
13802# Specify filename containing input files.
13803file_list_spec=$lt_file_list_spec
13804
13805# How to hardcode a shared library path into an executable.
13806hardcode_action=$hardcode_action
13807
13808# ### END LIBTOOL CONFIG
13809
13810_LT_EOF
13811
13812 case $host_os in
13813 aix3*)
13814 cat <<\_LT_EOF >> "$cfgfile"
13815# AIX sometimes has problems with the GCC collect2 program. For some
13816# reason, if we set the COLLECT_NAMES environment variable, the problems
13817# vanish in a puff of smoke.
13818if test "X${COLLECT_NAMES+set}" != Xset; then
13819 COLLECT_NAMES=
13820 export COLLECT_NAMES
13821fi
13822_LT_EOF
13823 ;;
13824 esac
13825
13826
13827ltmain="$ac_aux_dir/ltmain.sh"
13828
13829
13830 # We use sed instead of cat because bash on DJGPP gets confused if
13831 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13832 # text mode, it properly converts lines to CR/LF. This bash problem
13833 # is reportedly fixed, but why not run on old versions too?
13834 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13835 || (rm -f "$cfgfile"; exit 1)
13836
13837 case $xsi_shell in
13838 yes)
13839 cat << \_LT_EOF >> "$cfgfile"
13840
13841# func_dirname file append nondir_replacement
13842# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13843# otherwise set result to NONDIR_REPLACEMENT.
13844func_dirname ()
13845{
13846 case ${1} in
13847 */*) func_dirname_result="${1%/*}${2}" ;;
13848 * ) func_dirname_result="${3}" ;;
13849 esac
13850}
13851
13852# func_basename file
13853func_basename ()
13854{
13855 func_basename_result="${1##*/}"
13856}
13857
13858# func_dirname_and_basename file append nondir_replacement
13859# perform func_basename and func_dirname in a single function
13860# call:
13861# dirname: Compute the dirname of FILE. If nonempty,
13862# add APPEND to the result, otherwise set result
13863# to NONDIR_REPLACEMENT.
13864# value returned in "$func_dirname_result"
13865# basename: Compute filename of FILE.
13866# value retuned in "$func_basename_result"
13867# Implementation must be kept synchronized with func_dirname
13868# and func_basename. For efficiency, we do not delegate to
13869# those functions but instead duplicate the functionality here.
13870func_dirname_and_basename ()
13871{
13872 case ${1} in
13873 */*) func_dirname_result="${1%/*}${2}" ;;
13874 * ) func_dirname_result="${3}" ;;
13875 esac
13876 func_basename_result="${1##*/}"
13877}
13878
13879# func_stripname prefix suffix name
13880# strip PREFIX and SUFFIX off of NAME.
13881# PREFIX and SUFFIX must not contain globbing or regex special
13882# characters, hashes, percent signs, but SUFFIX may contain a leading
13883# dot (in which case that matches only a dot).
13884func_stripname ()
13885{
13886 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13887 # positional parameters, so assign one to ordinary parameter first.
13888 func_stripname_result=${3}
13889 func_stripname_result=${func_stripname_result#"${1}"}
13890 func_stripname_result=${func_stripname_result%"${2}"}
13891}
13892
13893# func_opt_split
13894func_opt_split ()
13895{
13896 func_opt_split_opt=${1%%=*}
13897 func_opt_split_arg=${1#*=}
13898}
13899
13900# func_lo2o object
13901func_lo2o ()
13902{
13903 case ${1} in
13904 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13905 *) func_lo2o_result=${1} ;;
13906 esac
13907}
13908
13909# func_xform libobj-or-source
13910func_xform ()
13911{
13912 func_xform_result=${1%.*}.lo
13913}
13914
13915# func_arith arithmetic-term...
13916func_arith ()
13917{
13918 func_arith_result=$(( $* ))
13919}
13920
13921# func_len string
13922# STRING may not start with a hyphen.
13923func_len ()
13924{
13925 func_len_result=${#1}
13926}
13927
13928_LT_EOF
13929 ;;
13930 *) # Bourne compatible functions.
13931 cat << \_LT_EOF >> "$cfgfile"
13932
13933# func_dirname file append nondir_replacement
13934# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13935# otherwise set result to NONDIR_REPLACEMENT.
13936func_dirname ()
13937{
13938 # Extract subdirectory from the argument.
13939 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13940 if test "X$func_dirname_result" = "X${1}"; then
13941 func_dirname_result="${3}"
13942 else
13943 func_dirname_result="$func_dirname_result${2}"
13944 fi
13945}
13946
13947# func_basename file
13948func_basename ()
13949{
13950 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13951}
13952
13953
13954# func_stripname prefix suffix name
13955# strip PREFIX and SUFFIX off of NAME.
13956# PREFIX and SUFFIX must not contain globbing or regex special
13957# characters, hashes, percent signs, but SUFFIX may contain a leading
13958# dot (in which case that matches only a dot).
13959# func_strip_suffix prefix name
13960func_stripname ()
13961{
13962 case ${2} in
13963 .*) func_stripname_result=`$ECHO "X${3}" \
13964 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13965 *) func_stripname_result=`$ECHO "X${3}" \
13966 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13967 esac
13968}
13969
13970# sed scripts:
13971my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13972my_sed_long_arg='1s/^-[^=]*=//'
13973
13974# func_opt_split
13975func_opt_split ()
13976{
13977 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13978 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13979}
13980
13981# func_lo2o object
13982func_lo2o ()
13983{
13984 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13985}
13986
13987# func_xform libobj-or-source
13988func_xform ()
13989{
13990 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13991}
13992
13993# func_arith arithmetic-term...
13994func_arith ()
13995{
13996 func_arith_result=`expr "$@"`
13997}
13998
13999# func_len string
14000# STRING may not start with a hyphen.
14001func_len ()
14002{
14003 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14004}
14005
14006_LT_EOF
14007esac
14008
14009case $lt_shell_append in
14010 yes)
14011 cat << \_LT_EOF >> "$cfgfile"
14012
14013# func_append var value
14014# Append VALUE to the end of shell variable VAR.
14015func_append ()
14016{
14017 eval "$1+=\$2"
14018}
14019_LT_EOF
14020 ;;
14021 *)
14022 cat << \_LT_EOF >> "$cfgfile"
14023
14024# func_append var value
14025# Append VALUE to the end of shell variable VAR.
14026func_append ()
14027{
14028 eval "$1=\$$1\$2"
14029}
14030
14031_LT_EOF
14032 ;;
14033 esac
14034
14035
14036 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14037 || (rm -f "$cfgfile"; exit 1)
14038
14039 mv -f "$cfgfile" "$ofile" ||
14040 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14041 chmod +x "$ofile"
14042
14043 ;;
mlcreech94984912008-03-04 19:03:08 +000014044
drh8b727472009-01-19 18:18:40 +000014045 esac
14046done # for ac_tag
14047
drh71eb93e2001-09-28 01:34:43 +000014048
drhf922ca42015-05-14 15:39:18 +000014049as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000014050_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014051ac_clean_files=$ac_clean_files_save
14052
drh8b727472009-01-19 18:18:40 +000014053test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000014054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000014055
a.rottmann84e63352003-03-24 09:42:16 +000014056
drh71eb93e2001-09-28 01:34:43 +000014057# configure is writing to config.log, and then calls config.status.
14058# config.status does its own redirection, appending to config.log.
14059# Unfortunately, on DOS this fails, as config.log is still kept open
14060# by configure, so config.status won't be able to write to it; its
14061# output is simply discarded. So we exec the FD to /dev/null,
14062# effectively closing config.log, so it can be properly (re)opened and
14063# appended to by config.status. When coming back to configure, we
14064# need to make the FD available again.
14065if test "$no_create" != yes; then
14066 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000014067 ac_config_status_args=
14068 test "$silent" = yes &&
14069 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000014070 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000014071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000014072 exec 5>>config.log
14073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14074 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000014075 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000014076fi
drh8b727472009-01-19 18:18:40 +000014077if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000014078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14079$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000014080fi
drh63a49ce2017-01-02 19:10:14 +000014081