blob: b094ef71ad6e3c63365bce10164fb29117159fcf [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.
drh636f5052020-12-02 00:22:09 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.35.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'
drh636f5052020-12-02 00:22:09 +0000729PACKAGE_VERSION='3.35.0'
730PACKAGE_STRING='sqlite 3.35.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
777TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000778TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000779TARGET_HAVE_READLINE
780TARGET_READLINE_INC
781TARGET_READLINE_LIBS
782HAVE_TCL
783TCL_SHLIB_SUFFIX
784TCL_STUB_LIB_SPEC
785TCL_STUB_LIB_FLAG
786TCL_STUB_LIB_FILE
787TCL_LIB_SPEC
788TCL_LIB_FLAG
789TCL_LIB_FILE
790TCL_INCLUDE_SPEC
791TCL_SRC_DIR
792TCL_BIN_DIR
793TCL_VERSION
794TARGET_EXEEXT
795SQLITE_OS_WIN
796SQLITE_OS_UNIX
797BUILD_EXEEXT
798TEMP_STORE
799ALLOWRELEASE
800SQLITE_THREADSAFE
801BUILD_CC
drhf922ca42015-05-14 15:39:18 +0000802RELEASE
803VERSION
804program_prefix
805TCLLIBDIR
806TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000884ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
drh8b727472009-01-19 18:18:40 +0000894enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
drhe44b8352015-10-30 14:25:57 +0000899enable_editline
drh8b727472009-01-19 18:18:40 +0000900enable_readline
901with_readline_lib
902with_readline_inc
903enable_debug
904enable_amalgamation
905enable_load_extension
drhe2ce8c42020-12-07 21:19:17 +0000906enable_math
drhc530b9c2016-07-25 11:27:22 +0000907enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000908enable_memsys3
drh29368ea2019-12-28 13:17:11 +0000909enable_all
drhce1d9f52015-10-09 12:48:33 +0000910enable_fts3
911enable_fts4
912enable_fts5
913enable_json1
drh83bebdd2017-08-28 17:00:12 +0000914enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000915enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000916enable_rtree
drh5e18d402016-05-03 13:14:18 +0000917enable_session
drh8b727472009-01-19 18:18:40 +0000918enable_gcov
919'
920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000928CPP
929TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000930
drh75897232000-05-29 14:26:00 +0000931
932# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000933ac_init_help=
934ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000935ac_unrecognized_opts=
936ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000937# The variables have the same names as the options, with
938# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000939cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000940exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000941no_create=
drh75897232000-05-29 14:26:00 +0000942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
drh75897232000-05-29 14:26:00 +0000950verbose=
951x_includes=NONE
952x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000959# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000968includedir='${prefix}/include'
969oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971infodir='${datarootdir}/info'
972htmldir='${docdir}'
973dvidir='${docdir}'
974pdfdir='${docdir}'
975psdir='${docdir}'
976libdir='${exec_prefix}/lib'
977localedir='${datarootdir}/locale'
978mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000979
drh75897232000-05-29 14:26:00 +0000980ac_prev=
drh8b727472009-01-19 18:18:40 +0000981ac_dashdash=
drh75897232000-05-29 14:26:00 +0000982for ac_option
983do
drh75897232000-05-29 14:26:00 +0000984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000986 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000987 ac_prev=
988 continue
989 fi
990
drh8b727472009-01-19 18:18:40 +0000991 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *=) ac_optarg= ;;
994 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000995 esac
drh75897232000-05-29 14:26:00 +0000996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
drh8b727472009-01-19 18:18:40 +0000999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001006 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001007
1008 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001009 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001011 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001022
drh8b727472009-01-19 18:18:40 +00001023 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001024 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001026 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001027
drh8b727472009-01-19 18:18:40 +00001028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
drh75897232000-05-29 14:26:00 +00001035 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001037 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001039 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1050
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1055
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001060
1061 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001063 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001065 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"enable_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001074 esac
drh8b727472009-01-19 18:18:40 +00001075 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001084 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
drh71eb93e2001-09-28 01:34:43 +00001090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001096
1097 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001098 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001099 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001100 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001101
drh8b727472009-01-19 18:18:40 +00001102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
drh75897232000-05-29 14:26:00 +00001108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001113 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001118 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001123 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001130 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001131
drh8b727472009-01-19 18:18:40 +00001132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
drh75897232000-05-29 14:26:00 +00001137 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001138 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001142 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001147 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001154 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001168 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001173 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001180 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001187 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001204 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001205
drh8b727472009-01-19 18:18:40 +00001206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
drh75897232000-05-29 14:26:00 +00001216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001224 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001235 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001240 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001245 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001252 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001255 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001257 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
drh71eb93e2001-09-28 01:34:43 +00001262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001264
1265 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001267 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001269 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001278 esac
drh8b727472009-01-19 18:18:40 +00001279 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001280
1281 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001283 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001285 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001306 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001313 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001314
drhf922ca42015-05-14 15:39:18 +00001315 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1316Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001317 ;;
1318
drh71eb93e2001-09-28 01:34:43 +00001319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1325 esac
drh8b727472009-01-19 18:18:40 +00001326 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001327 export $ac_envvar ;;
1328
drh75897232000-05-29 14:26:00 +00001329 *)
drh71eb93e2001-09-28 01:34:43 +00001330 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001342 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001343fi
1344
drh8b727472009-01-19 18:18:40 +00001345if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
drhf922ca42015-05-14 15:39:18 +00001348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001350 esac
drh8b727472009-01-19 18:18:40 +00001351fi
drh866108f2008-05-13 00:57:21 +00001352
drh8b727472009-01-19 18:18:40 +00001353# Check all directory arguments for consistency.
1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drh6b236032019-04-19 22:01:10 +00001357 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001358do
drh8b727472009-01-19 18:18:40 +00001359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001361 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001365 esac
drh8b727472009-01-19 18:18:40 +00001366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
drhf922ca42015-05-14 15:39:18 +00001371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001372done
drh75897232000-05-29 14:26:00 +00001373
drh71eb93e2001-09-28 01:34:43 +00001374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001376# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001377build=$build_alias
1378host=$host_alias
1379target=$target_alias
drh75897232000-05-29 14:26:00 +00001380
a.rottmann84e63352003-03-24 09:42:16 +00001381# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388fi
1389
1390ac_tool_prefix=
1391test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001394
a.rottmann84e63352003-03-24 09:42:16 +00001395
drh8b727472009-01-19 18:18:40 +00001396ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397ac_ls_di=`ls -di .` &&
1398ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001399 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001400test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001401 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001402
1403
drh75897232000-05-29 14:26:00 +00001404# Find the source files, if location was not specified.
1405if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413$as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001431 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001432 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001433 srcdir=..
1434 fi
1435else
1436 ac_srcdir_defaulted=no
1437fi
drh8b727472009-01-19 18:18:40 +00001438if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001441fi
drh8b727472009-01-19 18:18:40 +00001442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001445 pwd)`
1446# When building in place, set srcdir=.
1447if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449fi
1450# Remove unnecessary trailing slashes from srcdir.
1451# Double slashes in file names in object file debugging info
1452# mess up M-x gdb in Emacs.
1453case $srcdir in
1454*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455esac
1456for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461done
drh75897232000-05-29 14:26:00 +00001462
drh71eb93e2001-09-28 01:34:43 +00001463#
1464# Report the --help message.
1465#
1466if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001469 cat <<_ACEOF
drh636f5052020-12-02 00:22:09 +00001470\`configure' configures sqlite 3.35.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001471
1472Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477Defaults for the options are specified in brackets.
1478
1479Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001484 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
drh71eb93e2001-09-28 01:34:43 +00001490Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001492 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001494 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001495
1496By default, \`make install' will install all the files in
1497\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499for instance \`--prefix=\$HOME'.
1500
1501For better control, use the options below.
1502
1503Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001523_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001524
a.rottmann84e63352003-03-24 09:42:16 +00001525 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001526
1527System types:
1528 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001531fi
1532
1533if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001534 case $ac_init_help in
drh636f5052020-12-02 00:22:09 +00001535 short | recursive ) echo "Configuration of sqlite 3.35.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001536 esac
a.rottmann84e63352003-03-24 09:42:16 +00001537 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001538
1539Optional Features:
drh8b727472009-01-19 18:18:40 +00001540 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001547 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001548 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001549 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001550 --enable-releasemode Support libtool link to release mode
1551 --enable-tempstore Use an in-ram database for temporary tables
1552 (never,no,yes,always)
1553 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001554 --enable-editline enable BSD editline support
1555 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001556 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001557 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001558 separately
drh05c7e0b2015-01-10 14:27:17 +00001559 --disable-load-extension
1560 Disable loading of external extensions
drhf6e904b2020-12-07 17:15:32 +00001561 --disable-math Disable math functions
drhc530b9c2016-07-25 11:27:22 +00001562 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001563 --enable-memsys3 Enable MEMSYS3
drh29368ea2019-12-28 13:17:11 +00001564 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
drhce1d9f52015-10-09 12:48:33 +00001565 --enable-fts3 Enable the FTS3 extension
1566 --enable-fts4 Enable the FTS4 extension
1567 --enable-fts5 Enable the FTS5 extension
1568 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001569 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001570 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001571 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001572 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001573 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
mlcreech636a9952008-05-05 22:52:56 +00001580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001581 --with-tcl=DIR directory containing tcl configuration
1582 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001583 --with-readline-lib specify readline library
1584 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001585
1586Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001591 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001593 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001594 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001595 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001596
1597Use these variables to override the choices made by `configure' or to help
1598it to find libraries and programs with nonstandard names/locations.
1599
drhf922ca42015-05-14 15:39:18 +00001600Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001601_ACEOF
drh8b727472009-01-19 18:18:40 +00001602ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001603fi
1604
1605if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
a.rottmann84e63352003-03-24 09:42:16 +00001611 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001612
drh8b727472009-01-19 18:18:40 +00001613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001628
a.rottmann84e63352003-03-24 09:42:16 +00001629case $srcdir in
drh8b727472009-01-19 18:18:40 +00001630 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001631 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001635 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001642esac
drh8b727472009-01-19 18:18:40 +00001643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001644
drh8b727472009-01-19 18:18:40 +00001645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001653 else
drh8b727472009-01-19 18:18:40 +00001654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001657 done
1658fi
1659
drh8b727472009-01-19 18:18:40 +00001660test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001661if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001662 cat <<\_ACEOF
drh636f5052020-12-02 00:22:09 +00001663sqlite configure 3.35.0
drhf922ca42015-05-14 15:39:18 +00001664generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001665
drhf922ca42015-05-14 15:39:18 +00001666Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001669_ACEOF
drh8b727472009-01-19 18:18:40 +00001670 exit
drh71eb93e2001-09-28 01:34:43 +00001671fi
drhf922ca42015-05-14 15:39:18 +00001672
1673## ------------------------ ##
1674## Autoconf initialization. ##
1675## ------------------------ ##
1676
1677# ac_fn_c_try_compile LINENO
1678# --------------------------
1679# Try to compile conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_compile
1714
1715# ac_fn_c_try_link LINENO
1716# -----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_link ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 test -x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750fi
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_link
1760
1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists and can be compiled using the include files in
1764# INCLUDES, setting the cache variable VAR accordingly.
1765ac_fn_c_check_header_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780else
1781 eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_try_cpp LINENO
1793# ----------------------
1794# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_cpp ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_cpp
1828
1829# ac_fn_c_try_run LINENO
1830# ----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832# that executables *can* be run.
1833ac_fn_c_try_run ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847 { { case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_try") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; }; }; then :
1857 ac_retval=0
1858else
1859 $as_echo "$as_me: program exited with status $ac_status" >&5
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=$ac_status
1864fi
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869} # ac_fn_c_try_run
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_func
1937
1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939# -------------------------------------------
1940# Tests whether TYPE exists after having included INCLUDES, setting cache
1941# variable VAR accordingly.
1942ac_fn_c_check_type ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977
1978else
1979 eval "$3=yes"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_type
1991
1992# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1993# -------------------------------------------------------
1994# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1995# the include files in INCLUDES and setting the cache variable VAR
1996# accordingly.
1997ac_fn_c_check_header_mongrel ()
1998{
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if eval \${$3+:} false; then :
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005fi
2006eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009else
2010 # Is the header compilable?
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2012$as_echo_n "checking $2 usability... " >&6; }
2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$4
2016#include <$2>
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_header_compiler=yes
2020else
2021 ac_header_compiler=no
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2025$as_echo "$ac_header_compiler" >&6; }
2026
2027# Is the header present?
2028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2029$as_echo_n "checking $2 presence... " >&6; }
2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032#include <$2>
2033_ACEOF
2034if ac_fn_c_try_cpp "$LINENO"; then :
2035 ac_header_preproc=yes
2036else
2037 ac_header_preproc=no
2038fi
2039rm -f conftest.err conftest.i conftest.$ac_ext
2040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2041$as_echo "$ac_header_preproc" >&6; }
2042
2043# So? What about this header?
2044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2045 yes:no: )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2047$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ;;
2051 no:yes:* )
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2053$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2055$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2057$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2059$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 ;;
2063esac
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
2066if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068else
2069 eval "$3=\$ac_header_compiler"
2070fi
2071eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074fi
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002078cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002079This file contains any messages produced by compilers while
2080running configure, to aid debugging if configure makes a mistake.
2081
drh636f5052020-12-02 00:22:09 +00002082It was created by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +00002083generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002084
2085 $ $0 $@
2086
a.rottmann84e63352003-03-24 09:42:16 +00002087_ACEOF
drh8b727472009-01-19 18:18:40 +00002088exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002089{
2090cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002091## --------- ##
2092## Platform. ##
2093## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002094
2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103
2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111
drh71eb93e2001-09-28 01:34:43 +00002112_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002113
2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH
2116do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002119 $as_echo "PATH: $as_dir"
2120 done
drh8b727472009-01-19 18:18:40 +00002121IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002122
drh71eb93e2001-09-28 01:34:43 +00002123} >&5
2124
a.rottmann84e63352003-03-24 09:42:16 +00002125cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002126
a.rottmann84e63352003-03-24 09:42:16 +00002127
2128## ----------- ##
2129## Core tests. ##
2130## ----------- ##
2131
2132_ACEOF
2133
drh71eb93e2001-09-28 01:34:43 +00002134
2135# Keep a trace of the command line.
2136# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002137# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002138# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002139# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002140ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002141ac_configure_args0=
2142ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002143ac_must_keep_next=false
2144for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002145do
a.rottmann84e63352003-03-24 09:42:16 +00002146 for ac_arg
2147 do
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
drh8b727472009-01-19 18:18:40 +00002153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002155 esac
2156 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002158 2)
drhf922ca42015-05-14 15:39:18 +00002159 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002160 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002161 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002162 else
a.rottmann964dbb12004-02-26 19:47:42 +00002163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2171 ;;
2172 -* ) ac_must_keep_next=true ;;
2173 esac
a.rottmann84e63352003-03-24 09:42:16 +00002174 fi
drhf922ca42015-05-14 15:39:18 +00002175 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002176 ;;
2177 esac
2178 done
drh71eb93e2001-09-28 01:34:43 +00002179done
drhf922ca42015-05-14 15:39:18 +00002180{ ac_configure_args0=; unset ac_configure_args0;}
2181{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002182
2183# When interrupted or exit'd, cleanup temporary files, and complete
2184# config.log. We remove comments because anyway the quotes in there
2185# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002186# WARNING: Use '\'' to represent an apostrophe within the trap.
2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002188trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002190 {
2191 echo
2192
drhf922ca42015-05-14 15:39:18 +00002193 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002194## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002195## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002196 echo
2197 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002198(
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in #(
2202 *${as_nl}*)
2203 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002206 esac
2207 case $ac_var in #(
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002210 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002211 esac ;;
2212 esac
2213 done
drh71eb93e2001-09-28 01:34:43 +00002214 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002217 sed -n \
drh8b727472009-01-19 18:18:40 +00002218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 ;; #(
drh866108f2008-05-13 00:57:21 +00002221 *)
drh8b727472009-01-19 18:18:40 +00002222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002223 ;;
drh8b727472009-01-19 18:18:40 +00002224 esac |
2225 sort
2226)
a.rottmann84e63352003-03-24 09:42:16 +00002227 echo
2228
drhf922ca42015-05-14 15:39:18 +00002229 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002230## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002231## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002232 echo
2233 for ac_var in $ac_subst_vars
2234 do
drh8b727472009-01-19 18:18:40 +00002235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002240 done | sort
2241 echo
2242
2243 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002244 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002245## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002246## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002247 echo
2248 for ac_var in $ac_subst_files
2249 do
drh8b727472009-01-19 18:18:40 +00002250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002255 done | sort
2256 echo
2257 fi
2258
2259 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002260 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002261## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002262## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002263 echo
drh8b727472009-01-19 18:18:40 +00002264 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002265 echo
2266 fi
2267 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002270 } >&5
drh8b727472009-01-19 18:18:40 +00002271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002273 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002274' 0
drh71eb93e2001-09-28 01:34:43 +00002275for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002277done
2278ac_signal=0
2279
2280# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002281rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002282
drhf922ca42015-05-14 15:39:18 +00002283$as_echo "/* confdefs.h */" > confdefs.h
2284
a.rottmann84e63352003-03-24 09:42:16 +00002285# Predefined preprocessor variables.
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_NAME "$PACKAGE_NAME"
2289_ACEOF
2290
a.rottmann84e63352003-03-24 09:42:16 +00002291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293_ACEOF
2294
a.rottmann84e63352003-03-24 09:42:16 +00002295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_VERSION "$PACKAGE_VERSION"
2297_ACEOF
2298
a.rottmann84e63352003-03-24 09:42:16 +00002299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_STRING "$PACKAGE_STRING"
2301_ACEOF
2302
dana9f39fd2011-08-12 16:34:42 +00002303cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002305_ACEOF
2306
drhf922ca42015-05-14 15:39:18 +00002307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_URL "$PACKAGE_URL"
2309_ACEOF
2310
a.rottmann84e63352003-03-24 09:42:16 +00002311
drh71eb93e2001-09-28 01:34:43 +00002312# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002313# Prefer an explicitly selected file to automatically selected ones.
2314ac_site_file1=NONE
2315ac_site_file2=NONE
2316if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2322 esac
drh8b727472009-01-19 18:18:40 +00002323elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002329fi
drh8b727472009-01-19 18:18:40 +00002330for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331do
2332 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002335$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002336 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002337 . "$ac_site_file" \
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340as_fn_error $? "failed to load site script $ac_site_file
2341See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002342 fi
2343done
2344
2345if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002350$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002351 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002354 esac
2355 fi
drh75897232000-05-29 14:26:00 +00002356else
drhf922ca42015-05-14 15:39:18 +00002357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002358$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002359 >$cache_file
2360fi
2361
2362# Check that the precious variables saved in the cache have kept the same
2363# value.
2364ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002365for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002370 case $ac_old_set,$ac_new_set in
2371 set,)
drhf922ca42015-05-14 15:39:18 +00002372 { $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 +00002373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002374 ac_cache_corrupted=: ;;
2375 ,set)
drhf922ca42015-05-14 15:39:18 +00002376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002378 ac_cache_corrupted=: ;;
2379 ,);;
2380 *)
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2389 else
drhf922ca42015-05-14 15:39:18 +00002390 { $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 +00002391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2393 fi
drhf922ca42015-05-14 15:39:18 +00002394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002398 fi;;
2399 esac
a.rottmann84e63352003-03-24 09:42:16 +00002400 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002401 if test "$ac_new_set" = set; then
2402 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002404 *) ac_arg=$ac_var=$ac_new_val ;;
2405 esac
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002409 esac
2410 fi
2411done
2412if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002418fi
drhf922ca42015-05-14 15:39:18 +00002419## -------------------- ##
2420## Main body of script. ##
2421## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002422
drh75897232000-05-29 14:26:00 +00002423ac_ext=c
drh75897232000-05-29 14:26:00 +00002424ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002428
a.rottmann84e63352003-03-24 09:42:16 +00002429
2430
drh04446102009-06-15 00:04:06 +00002431sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002432if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002433as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002434 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2435 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002436please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002437fi
2438
drh75897232000-05-29 14:26:00 +00002439#########
drh71eb93e2001-09-28 01:34:43 +00002440# Programs needed
drh75897232000-05-29 14:26:00 +00002441#
mlcreech636a9952008-05-05 22:52:56 +00002442case `pwd` in
2443 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002445$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002446esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002447
mlcreech94984912008-03-04 19:03:08 +00002448
mlcreech636a9952008-05-05 22:52:56 +00002449
vapier6acb2cf2009-01-28 04:46:28 +00002450macro_version='2.2.6'
2451macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002452
mlcreech94984912008-03-04 19:03:08 +00002453
mlcreech94984912008-03-04 19:03:08 +00002454
a.rottmann9bc8b932004-02-29 15:18:31 +00002455
mlcreech636a9952008-05-05 22:52:56 +00002456
2457
2458
2459
2460
2461
2462
2463
2464
2465ltmain="$ac_aux_dir/ltmain.sh"
2466
drh71eb93e2001-09-28 01:34:43 +00002467ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002468for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002469 if test -f "$ac_dir/install-sh"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/install-sh -c"
2472 break
2473 elif test -f "$ac_dir/install.sh"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/install.sh -c"
2476 break
2477 elif test -f "$ac_dir/shtool"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/shtool install -c"
2480 break
2481 fi
drh71eb93e2001-09-28 01:34:43 +00002482done
2483if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002485fi
drh8b727472009-01-19 18:18:40 +00002486
2487# These three variables are undocumented and unsupported,
2488# and are intended to be withdrawn in a future Autoconf release.
2489# They can cause serious problems if a builder's source tree is in a directory
2490# whose full name contains unusual characters.
2491ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2492ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2493ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2494
drh71eb93e2001-09-28 01:34:43 +00002495
2496# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002497$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002498 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002499
drhf922ca42015-05-14 15:39:18 +00002500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002501$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002502if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002503 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002504else
drh8b727472009-01-19 18:18:40 +00002505 ac_build_alias=$build_alias
2506test "x$ac_build_alias" = x &&
2507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002509 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002510ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002512
2513fi
drhf922ca42015-05-14 15:39:18 +00002514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002515$as_echo "$ac_cv_build" >&6; }
2516case $ac_cv_build in
2517*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002518*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002519esac
drh71eb93e2001-09-28 01:34:43 +00002520build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002521ac_save_IFS=$IFS; IFS='-'
2522set x $ac_cv_build
2523shift
2524build_cpu=$1
2525build_vendor=$2
2526shift; shift
2527# Remember, the first character of IFS is used to create $*,
2528# except with old shells:
2529build_os=$*
2530IFS=$ac_save_IFS
2531case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002532
a.rottmann84e63352003-03-24 09:42:16 +00002533
drhf922ca42015-05-14 15:39:18 +00002534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002535$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002536if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002537 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002538else
drh8b727472009-01-19 18:18:40 +00002539 if test "x$host_alias" = x; then
2540 ac_cv_host=$ac_cv_build
2541else
2542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002544fi
drh71eb93e2001-09-28 01:34:43 +00002545
2546fi
drhf922ca42015-05-14 15:39:18 +00002547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002548$as_echo "$ac_cv_host" >&6; }
2549case $ac_cv_host in
2550*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002551*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002552esac
drh71eb93e2001-09-28 01:34:43 +00002553host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002554ac_save_IFS=$IFS; IFS='-'
2555set x $ac_cv_host
2556shift
2557host_cpu=$1
2558host_vendor=$2
2559shift; shift
2560# Remember, the first character of IFS is used to create $*,
2561# except with old shells:
2562host_os=$*
2563IFS=$ac_save_IFS
2564case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002565
a.rottmann84e63352003-03-24 09:42:16 +00002566
drh71eb93e2001-09-28 01:34:43 +00002567ac_ext=c
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2574set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002576$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002577if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002578 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
a.rottmann84e63352003-03-24 09:42:16 +00002583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002592 break 2
2593 fi
2594done
drhf922ca42015-05-14 15:39:18 +00002595 done
drh8b727472009-01-19 18:18:40 +00002596IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002603$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002604else
drhf922ca42015-05-14 15:39:18 +00002605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002606$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002607fi
2608
drh8b727472009-01-19 18:18:40 +00002609
drh71eb93e2001-09-28 01:34:43 +00002610fi
2611if test -z "$ac_cv_prog_CC"; then
2612 ac_ct_CC=$CC
2613 # Extract the first word of "gcc", so it can be a program name with args.
2614set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002616$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002617if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002618 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002619else
2620 if test -n "$ac_ct_CC"; then
2621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2622else
a.rottmann84e63352003-03-24 09:42:16 +00002623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002630 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002632 break 2
2633 fi
2634done
drhf922ca42015-05-14 15:39:18 +00002635 done
drh8b727472009-01-19 18:18:40 +00002636IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002637
2638fi
2639fi
2640ac_ct_CC=$ac_cv_prog_ac_ct_CC
2641if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002643$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002644else
drhf922ca42015-05-14 15:39:18 +00002645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002646$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002647fi
2648
drh8b727472009-01-19 18:18:40 +00002649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653yes:)
drhf922ca42015-05-14 15:39:18 +00002654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002656ac_tool_warned=yes ;;
2657esac
2658 CC=$ac_ct_CC
2659 fi
drh71eb93e2001-09-28 01:34:43 +00002660else
2661 CC="$ac_cv_prog_CC"
2662fi
2663
2664if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002667set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002669$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002670if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002671 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
a.rottmann84e63352003-03-24 09:42:16 +00002676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002683 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002685 break 2
2686 fi
2687done
drhf922ca42015-05-14 15:39:18 +00002688 done
drh8b727472009-01-19 18:18:40 +00002689IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002690
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002696$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002697else
drhf922ca42015-05-14 15:39:18 +00002698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002699$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002700fi
2701
drh8b727472009-01-19 18:18:40 +00002702
a.rottmann84e63352003-03-24 09:42:16 +00002703 fi
drh71eb93e2001-09-28 01:34:43 +00002704fi
2705if test -z "$CC"; then
2706 # Extract the first word of "cc", so it can be a program name with args.
2707set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002709$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002710if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002711 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002712else
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2715else
2716 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2725 ac_prog_rejected=yes
2726 continue
2727 fi
2728 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002730 break 2
2731 fi
2732done
drhf922ca42015-05-14 15:39:18 +00002733 done
drh8b727472009-01-19 18:18:40 +00002734IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002735
2736if test $ac_prog_rejected = yes; then
2737 # We found a bogon in the path, so make sure we never use it.
2738 set dummy $ac_cv_prog_CC
2739 shift
2740 if test $# != 0; then
2741 # We chose a different compiler from the bogus one.
2742 # However, it has the same basename, so the bogon will be chosen
2743 # first if we set CC to just the basename; use the full file name.
2744 shift
a.rottmann84e63352003-03-24 09:42:16 +00002745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002746 fi
2747fi
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002753$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002754else
drhf922ca42015-05-14 15:39:18 +00002755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002756$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002757fi
2758
drh8b727472009-01-19 18:18:40 +00002759
drh71eb93e2001-09-28 01:34:43 +00002760fi
2761if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002763 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002764 do
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002768$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002769if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002770 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002771else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
a.rottmann84e63352003-03-24 09:42:16 +00002775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002784 break 2
2785 fi
2786done
drhf922ca42015-05-14 15:39:18 +00002787 done
drh8b727472009-01-19 18:18:40 +00002788IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002789
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002795$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002796else
drhf922ca42015-05-14 15:39:18 +00002797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002798$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002799fi
2800
drh8b727472009-01-19 18:18:40 +00002801
drh71eb93e2001-09-28 01:34:43 +00002802 test -n "$CC" && break
2803 done
2804fi
2805if test -z "$CC"; then
2806 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002807 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002808do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002812$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002813if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002814 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002815else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818else
a.rottmann84e63352003-03-24 09:42:16 +00002819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002826 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002828 break 2
2829 fi
2830done
drhf922ca42015-05-14 15:39:18 +00002831 done
drh8b727472009-01-19 18:18:40 +00002832IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002833
2834fi
2835fi
2836ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002839$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002840else
drhf922ca42015-05-14 15:39:18 +00002841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002842$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002843fi
2844
drh8b727472009-01-19 18:18:40 +00002845
drh71eb93e2001-09-28 01:34:43 +00002846 test -n "$ac_ct_CC" && break
2847done
2848
drh8b727472009-01-19 18:18:40 +00002849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853yes:)
drhf922ca42015-05-14 15:39:18 +00002854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002856ac_tool_warned=yes ;;
2857esac
2858 CC=$ac_ct_CC
2859 fi
drh71eb93e2001-09-28 01:34:43 +00002860fi
2861
2862fi
2863
a.rottmann84e63352003-03-24 09:42:16 +00002864
drhf922ca42015-05-14 15:39:18 +00002865test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867as_fn_error $? "no acceptable C compiler found in \$PATH
2868See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002869
2870# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002871$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002872set X $ac_compile
2873ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002874for ac_option in --version -v -V -qversion; do
2875 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
drhf922ca42015-05-14 15:39:18 +00002880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881$as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002883 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002884 if test -s conftest.err; then
2885 sed '10a\
2886... rest of stderr output deleted ...
2887 10q' conftest.err >conftest.er1
2888 cat conftest.er1 >&5
2889 fi
2890 rm -f conftest.er1 conftest.err
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; }
2893done
drh71eb93e2001-09-28 01:34:43 +00002894
drhf922ca42015-05-14 15:39:18 +00002895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002896/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002907ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002908# Try to create an executable without -o first, disregard a.out.
2909# It will help us diagnose broken compilers, and finding out an intuition
2910# of exeext.
drhf922ca42015-05-14 15:39:18 +00002911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2912$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002913ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002914
drh8b727472009-01-19 18:18:40 +00002915# The possible output files:
2916ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2917
2918ac_rmfiles=
2919for ac_file in $ac_files
2920do
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2924 esac
2925done
2926rm -f $ac_rmfiles
2927
drhf922ca42015-05-14 15:39:18 +00002928if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
drhf922ca42015-05-14 15:39:18 +00002933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002935 (eval "$ac_link_default") 2>&5
2936 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2940# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2941# in a Makefile. We should not override ac_cv_exeext if it was cached,
2942# so that the user can short-circuit this test for compilers unknown to
2943# Autoconf.
2944for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002945do
2946 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002947 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002949 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002950 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002951 # We found the default executable, but exeext='' is most
2952 # certainly right.
2953 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002954 *.* )
drhf922ca42015-05-14 15:39:18 +00002955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002956 then :; else
2957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2958 fi
2959 # We set ac_cv_exeext here because the later test for it is not
2960 # safe: cross compilers may not add the suffix if given an `-o'
2961 # argument, so we may need to know it at that point already.
2962 # Even if this section looks crufty: it has the advantage of
2963 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002964 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002965 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002966 break;;
drh71eb93e2001-09-28 01:34:43 +00002967 esac
2968done
drh8b727472009-01-19 18:18:40 +00002969test "$ac_cv_exeext" = no && ac_cv_exeext=
2970
drh71eb93e2001-09-28 01:34:43 +00002971else
drh8b727472009-01-19 18:18:40 +00002972 ac_file=''
2973fi
drhf922ca42015-05-14 15:39:18 +00002974if test -z "$ac_file"; then :
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002978sed 's/^/| /' conftest.$ac_ext >&5
2979
drhf922ca42015-05-14 15:39:18 +00002980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error 77 "C compiler cannot create executables
2983See \`config.log' for more details" "$LINENO" 5; }
2984else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002986$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2989$as_echo_n "checking for C compiler default output file name... " >&6; }
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2991$as_echo "$ac_file" >&6; }
2992ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002993
drh8b727472009-01-19 18:18:40 +00002994rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002995ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002997$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002998if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
drhf922ca42015-05-14 15:39:18 +00003003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003005 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003006 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011# work properly (i.e., refer to `conftest.exe'), while it won't with
3012# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003013for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003015 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003018 break;;
drh71eb93e2001-09-28 01:34:43 +00003019 * ) break;;
3020 esac
3021done
3022else
drhf922ca42015-05-14 15:39:18 +00003023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3026See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003027fi
drhf922ca42015-05-14 15:39:18 +00003028rm -f conftest conftest$ac_cv_exeext
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003030$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003031
3032rm -f conftest.$ac_ext
3033EXEEXT=$ac_cv_exeext
3034ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h. */
3037#include <stdio.h>
3038int
3039main ()
3040{
3041FILE *f = fopen ("conftest.out", "w");
3042 return ferror (f) || fclose (f) != 0;
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048ac_clean_files="$ac_clean_files conftest.out"
3049# Check that the compiler produces executables we can run. If not, either
3050# the compiler is broken, or we cross compile.
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3052$as_echo_n "checking whether we are cross compiling... " >&6; }
3053if test "$cross_compiling" != yes; then
3054 { { ac_try="$ac_link"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }
3065 if { ac_try='./conftest$ac_cv_exeext'
3066 { { case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071$as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; }; then
3076 cross_compiling=no
3077 else
3078 if test "$cross_compiling" = maybe; then
3079 cross_compiling=yes
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083as_fn_error $? "cannot run C compiled programs.
3084If you meant to cross compile, use \`--host'.
3085See \`config.log' for more details" "$LINENO" 5; }
3086 fi
3087 fi
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3090$as_echo "$cross_compiling" >&6; }
3091
3092rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003095$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003096if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003097 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003098else
drhf922ca42015-05-14 15:39:18 +00003099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003100/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003101
3102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003111if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
drhf922ca42015-05-14 15:39:18 +00003116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003118 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003119 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003124 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127 break;;
3128 esac
3129done
3130else
drh8b727472009-01-19 18:18:40 +00003131 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003132sed 's/^/| /' conftest.$ac_ext >&5
3133
drhf922ca42015-05-14 15:39:18 +00003134{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136as_fn_error $? "cannot compute suffix of object files: cannot compile
3137See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003138fi
drh71eb93e2001-09-28 01:34:43 +00003139rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140fi
drhf922ca42015-05-14 15:39:18 +00003141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003142$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003143OBJEXT=$ac_cv_objext
3144ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003146$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003147if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003148 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003149else
drhf922ca42015-05-14 15:39:18 +00003150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003151/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003152
3153int
3154main ()
3155{
3156#ifndef __GNUC__
3157 choke me
3158#endif
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
drhf922ca42015-05-14 15:39:18 +00003164if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003165 ac_compiler_gnu=yes
3166else
drhf922ca42015-05-14 15:39:18 +00003167 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003168fi
drh8b727472009-01-19 18:18:40 +00003169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003170ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171
3172fi
drhf922ca42015-05-14 15:39:18 +00003173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003174$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3175if test $ac_compiler_gnu = yes; then
3176 GCC=yes
3177else
3178 GCC=
3179fi
drh71eb93e2001-09-28 01:34:43 +00003180ac_test_CFLAGS=${CFLAGS+set}
3181ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003183$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003184if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003185 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003186else
drh8b727472009-01-19 18:18:40 +00003187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003192/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003193
3194int
3195main ()
3196{
3197
3198 ;
3199 return 0;
3200}
3201_ACEOF
drhf922ca42015-05-14 15:39:18 +00003202if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003203 ac_cv_prog_cc_g=yes
3204else
drhf922ca42015-05-14 15:39:18 +00003205 CFLAGS=""
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
drhf922ca42015-05-14 15:39:18 +00003217if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003218
drhf922ca42015-05-14 15:39:18 +00003219else
3220 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003221 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003223/* end confdefs.h. */
3224
3225int
3226main ()
3227{
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
drhf922ca42015-05-14 15:39:18 +00003233if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003234 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003235fi
drh8b727472009-01-19 18:18:40 +00003236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003237fi
drh8b727472009-01-19 18:18:40 +00003238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
drh8b727472009-01-19 18:18:40 +00003240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
drhf922ca42015-05-14 15:39:18 +00003243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003244$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
3250 else
3251 CFLAGS="-g"
3252 fi
3253else
3254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
3256 else
3257 CFLAGS=
3258 fi
3259fi
drhf922ca42015-05-14 15:39:18 +00003260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003261$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003262if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003263 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003264else
drh8b727472009-01-19 18:18:40 +00003265 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003266ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003268/* end confdefs.h. */
3269#include <stdarg.h>
3270#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003271struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276 char **p;
3277 int i;
3278{
3279 return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283 char *s;
3284 va_list v;
3285 va_start (v,p);
3286 s = g (p, va_arg (v,int));
3287 va_end (v);
3288 return s;
3289}
a.rottmann964dbb12004-02-26 19:47:42 +00003290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003294 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003297 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
drh8b727472009-01-19 18:18:40 +00003300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
a.rottmann84e63352003-03-24 09:42:16 +00003305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 ;
3316 return 0;
3317}
3318_ACEOF
drh8b727472009-01-19 18:18:40 +00003319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003321do
3322 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003323 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003324 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003325fi
drh8b727472009-01-19 18:18:40 +00003326rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003328done
drh8b727472009-01-19 18:18:40 +00003329rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003330CC=$ac_save_CC
3331
3332fi
drh8b727472009-01-19 18:18:40 +00003333# AC_CACHE_VAL
3334case "x$ac_cv_prog_cc_c89" in
3335 x)
drhf922ca42015-05-14 15:39:18 +00003336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003337$as_echo "none needed" >&6; } ;;
3338 xno)
drhf922ca42015-05-14 15:39:18 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003340$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003341 *)
drh8b727472009-01-19 18:18:40 +00003342 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003344$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003345esac
drhf922ca42015-05-14 15:39:18 +00003346if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003347
drhf922ca42015-05-14 15:39:18 +00003348fi
a.rottmann84e63352003-03-24 09:42:16 +00003349
drh71eb93e2001-09-28 01:34:43 +00003350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
drhf922ca42015-05-14 15:39:18 +00003356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003357$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003358if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003359 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003360else
drh8b727472009-01-19 18:18:40 +00003361 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3362 for ac_i in 1 2 3 4 5 6 7; do
3363 ac_script="$ac_script$as_nl$ac_script"
3364 done
3365 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003366 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003367 if test -z "$SED"; then
3368 ac_path_SED_found=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003375 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003376 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003377 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003378 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003379# Check for GNU ac_path_SED and select it if it is found.
3380 # Check for GNU $ac_path_SED
3381case `"$ac_path_SED" --version 2>&1` in
3382*GNU*)
3383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3384*)
3385 ac_count=0
3386 $as_echo_n 0123456789 >"conftest.in"
3387 while :
3388 do
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 $as_echo '' >> "conftest.nl"
3393 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003395 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003396 if test $ac_count -gt ${ac_path_SED_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_SED="$ac_path_SED"
3399 ac_path_SED_max=$ac_count
3400 fi
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3403 done
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405esac
3406
3407 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003408 done
3409 done
drhf922ca42015-05-14 15:39:18 +00003410 done
mlcreech636a9952008-05-05 22:52:56 +00003411IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003412 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003413 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003414 fi
drh8b727472009-01-19 18:18:40 +00003415else
3416 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003417fi
drh866108f2008-05-13 00:57:21 +00003418
drh8b727472009-01-19 18:18:40 +00003419fi
drhf922ca42015-05-14 15:39:18 +00003420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003421$as_echo "$ac_cv_path_SED" >&6; }
3422 SED="$ac_cv_path_SED"
3423 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003424
mlcreech636a9952008-05-05 22:52:56 +00003425test -z "$SED" && SED=sed
3426Xsed="$SED -e 1s/^X//"
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
drhf922ca42015-05-14 15:39:18 +00003438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003440if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003441 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003442else
drh8b727472009-01-19 18:18:40 +00003443 if test -z "$GREP"; then
3444 ac_path_GREP_found=false
3445 # Loop through the user's path and test for each of PROGNAME-LIST
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003451 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003454 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003455# Check for GNU ac_path_GREP and select it if it is found.
3456 # Check for GNU $ac_path_GREP
3457case `"$ac_path_GREP" --version 2>&1` in
3458*GNU*)
3459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460*)
3461 ac_count=0
3462 $as_echo_n 0123456789 >"conftest.in"
3463 while :
3464 do
3465 cat "conftest.in" "conftest.in" >"conftest.tmp"
3466 mv "conftest.tmp" "conftest.in"
3467 cp "conftest.in" "conftest.nl"
3468 $as_echo 'GREP' >> "conftest.nl"
3469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003471 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3473 # Best one so far, save it but keep looking for a better one
3474 ac_cv_path_GREP="$ac_path_GREP"
3475 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003476 fi
drh8b727472009-01-19 18:18:40 +00003477 # 10*(2^10) chars as input seems more than enough
3478 test $ac_count -gt 10 && break
3479 done
3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481esac
3482
3483 $ac_path_GREP_found && break 3
3484 done
3485 done
drhf922ca42015-05-14 15:39:18 +00003486 done
drh8b727472009-01-19 18:18:40 +00003487IFS=$as_save_IFS
3488 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003490 fi
3491else
3492 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003493fi
drh8b727472009-01-19 18:18:40 +00003494
3495fi
drhf922ca42015-05-14 15:39:18 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003497$as_echo "$ac_cv_path_GREP" >&6; }
3498 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003499
3500
drhf922ca42015-05-14 15:39:18 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003502$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003503if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003504 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003505else
drh8b727472009-01-19 18:18:40 +00003506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3507 then ac_cv_path_EGREP="$GREP -E"
3508 else
3509 if test -z "$EGREP"; then
3510 ac_path_EGREP_found=false
3511 # Loop through the user's path and test for each of PROGNAME-LIST
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003517 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003520 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003521# Check for GNU ac_path_EGREP and select it if it is found.
3522 # Check for GNU $ac_path_EGREP
3523case `"$ac_path_EGREP" --version 2>&1` in
3524*GNU*)
3525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3526*)
3527 ac_count=0
3528 $as_echo_n 0123456789 >"conftest.in"
3529 while :
3530 do
3531 cat "conftest.in" "conftest.in" >"conftest.tmp"
3532 mv "conftest.tmp" "conftest.in"
3533 cp "conftest.in" "conftest.nl"
3534 $as_echo 'EGREP' >> "conftest.nl"
3535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003537 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3539 # Best one so far, save it but keep looking for a better one
3540 ac_cv_path_EGREP="$ac_path_EGREP"
3541 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003542 fi
drh8b727472009-01-19 18:18:40 +00003543 # 10*(2^10) chars as input seems more than enough
3544 test $ac_count -gt 10 && break
3545 done
3546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3547esac
3548
3549 $ac_path_EGREP_found && break 3
3550 done
3551 done
drhf922ca42015-05-14 15:39:18 +00003552 done
drh8b727472009-01-19 18:18:40 +00003553IFS=$as_save_IFS
3554 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003556 fi
3557else
3558 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003559fi
drh8b727472009-01-19 18:18:40 +00003560
3561 fi
3562fi
drhf922ca42015-05-14 15:39:18 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003564$as_echo "$ac_cv_path_EGREP" >&6; }
3565 EGREP="$ac_cv_path_EGREP"
3566
3567
drhf922ca42015-05-14 15:39:18 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003569$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003570if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003571 $as_echo_n "(cached) " >&6
3572else
3573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3574 then ac_cv_path_FGREP="$GREP -F"
3575 else
3576 if test -z "$FGREP"; then
3577 ac_path_FGREP_found=false
3578 # Loop through the user's path and test for each of PROGNAME-LIST
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003584 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003587 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003588# Check for GNU ac_path_FGREP and select it if it is found.
3589 # Check for GNU $ac_path_FGREP
3590case `"$ac_path_FGREP" --version 2>&1` in
3591*GNU*)
3592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3593*)
3594 ac_count=0
3595 $as_echo_n 0123456789 >"conftest.in"
3596 while :
3597 do
3598 cat "conftest.in" "conftest.in" >"conftest.tmp"
3599 mv "conftest.tmp" "conftest.in"
3600 cp "conftest.in" "conftest.nl"
3601 $as_echo 'FGREP' >> "conftest.nl"
3602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003604 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3606 # Best one so far, save it but keep looking for a better one
3607 ac_cv_path_FGREP="$ac_path_FGREP"
3608 ac_path_FGREP_max=$ac_count
3609 fi
3610 # 10*(2^10) chars as input seems more than enough
3611 test $ac_count -gt 10 && break
3612 done
3613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3614esac
3615
3616 $ac_path_FGREP_found && break 3
3617 done
3618 done
drhf922ca42015-05-14 15:39:18 +00003619 done
drh8b727472009-01-19 18:18:40 +00003620IFS=$as_save_IFS
3621 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003622 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003623 fi
3624else
3625 ac_cv_path_FGREP=$FGREP
3626fi
3627
3628 fi
3629fi
drhf922ca42015-05-14 15:39:18 +00003630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003631$as_echo "$ac_cv_path_FGREP" >&6; }
3632 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003633
3634
3635test -z "$GREP" && GREP=grep
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
a.rottmann9bc8b932004-02-29 15:18:31 +00003652
3653
a.rottmann84e63352003-03-24 09:42:16 +00003654
drh8b727472009-01-19 18:18:40 +00003655# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003656if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003658else
3659 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003660fi
3661
drh71eb93e2001-09-28 01:34:43 +00003662ac_prog=ld
3663if test "$GCC" = yes; then
3664 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003666$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003667 case $host in
3668 *-*-mingw*)
3669 # gcc leaves a trailing carriage return which upsets mingw
3670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3671 *)
3672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3673 esac
3674 case $ac_prog in
3675 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003676 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003677 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003678 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003682 done
3683 test -z "$LD" && LD="$ac_prog"
3684 ;;
3685 "")
3686 # If it fails, then pretend we aren't using GCC.
3687 ac_prog=ld
3688 ;;
3689 *)
3690 # If it is relative, then search for the first ld in PATH.
3691 with_gnu_ld=unknown
3692 ;;
3693 esac
3694elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003696$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003697else
drhf922ca42015-05-14 15:39:18 +00003698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003699$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003700fi
drhf922ca42015-05-14 15:39:18 +00003701if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003702 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003703else
3704 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003706 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003707 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003708 test -z "$ac_dir" && ac_dir=.
3709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3710 lt_cv_path_LD="$ac_dir/$ac_prog"
3711 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003712 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003713 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3715 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003716 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003717 ;;
3718 *)
drh71eb93e2001-09-28 01:34:43 +00003719 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003720 ;;
3721 esac
drh71eb93e2001-09-28 01:34:43 +00003722 fi
3723 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003724 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003725else
3726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3727fi
3728fi
3729
3730LD="$lt_cv_path_LD"
3731if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003733$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003734else
drhf922ca42015-05-14 15:39:18 +00003735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003736$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003737fi
drhf922ca42015-05-14 15:39:18 +00003738test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003740$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003741if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003742 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003743else
vapier7f19c022007-02-17 14:46:31 +00003744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003745case `$LD -v 2>&1 </dev/null` in
3746*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003747 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003748 ;;
3749*)
drh71eb93e2001-09-28 01:34:43 +00003750 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003751 ;;
3752esac
drh71eb93e2001-09-28 01:34:43 +00003753fi
drhf922ca42015-05-14 15:39:18 +00003754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003755$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003756with_gnu_ld=$lt_cv_prog_gnu_ld
3757
a.rottmann84e63352003-03-24 09:42:16 +00003758
drh71eb93e2001-09-28 01:34:43 +00003759
mlcreech636a9952008-05-05 22:52:56 +00003760
3761
3762
3763
3764
3765
drhf922ca42015-05-14 15:39:18 +00003766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003767$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003768if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003769 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003770else
3771 if test -n "$NM"; then
3772 # Let the user override the test.
3773 lt_cv_path_NM="$NM"
3774else
vapier7f19c022007-02-17 14:46:31 +00003775 lt_nm_to_check="${ac_tool_prefix}nm"
3776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3777 lt_nm_to_check="$lt_nm_to_check nm"
3778 fi
3779 for lt_tmp_nm in $lt_nm_to_check; do
3780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3782 IFS="$lt_save_ifs"
3783 test -z "$ac_dir" && ac_dir=.
3784 tmp_nm="$ac_dir/$lt_tmp_nm"
3785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3786 # Check to see if the nm accepts a BSD-compat flag.
3787 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3788 # nm: unknown option "B" ignored
3789 # Tru64's nm complains that /dev/null is an invalid object file
3790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3791 */dev/null* | *'Invalid file or object type'*)
3792 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003793 break
3794 ;;
3795 *)
vapier7f19c022007-02-17 14:46:31 +00003796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3797 */dev/null*)
3798 lt_cv_path_NM="$tmp_nm -p"
3799 break
3800 ;;
3801 *)
3802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3803 continue # so that we can try to find one that supports BSD flags
3804 ;;
3805 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003806 ;;
3807 esac
vapier7f19c022007-02-17 14:46:31 +00003808 fi
3809 done
3810 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003811 done
mlcreech636a9952008-05-05 22:52:56 +00003812 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003813fi
3814fi
drhf922ca42015-05-14 15:39:18 +00003815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003816$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003817if test "$lt_cv_path_NM" != "no"; then
3818 NM="$lt_cv_path_NM"
3819else
3820 # Didn't find any BSD compatible name lister, look for dumpbin.
3821 if test -n "$ac_tool_prefix"; then
3822 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3823 do
3824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003827$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003828if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003829 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003830else
3831 if test -n "$DUMPBIN"; then
3832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003843 break 2
3844 fi
3845done
drhf922ca42015-05-14 15:39:18 +00003846 done
drh8b727472009-01-19 18:18:40 +00003847IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003848
mlcreech636a9952008-05-05 22:52:56 +00003849fi
3850fi
3851DUMPBIN=$ac_cv_prog_DUMPBIN
3852if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003854$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003855else
drhf922ca42015-05-14 15:39:18 +00003856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003857$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003858fi
3859
drh8b727472009-01-19 18:18:40 +00003860
mlcreech636a9952008-05-05 22:52:56 +00003861 test -n "$DUMPBIN" && break
3862 done
3863fi
3864if test -z "$DUMPBIN"; then
3865 ac_ct_DUMPBIN=$DUMPBIN
3866 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3867do
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003871$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003872if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003873 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003874else
3875 if test -n "$ac_ct_DUMPBIN"; then
3876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003887 break 2
3888 fi
3889done
drhf922ca42015-05-14 15:39:18 +00003890 done
drh8b727472009-01-19 18:18:40 +00003891IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003892
3893fi
3894fi
3895ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3896if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003898$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003899else
drhf922ca42015-05-14 15:39:18 +00003900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003901$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003902fi
3903
drh8b727472009-01-19 18:18:40 +00003904
mlcreech636a9952008-05-05 22:52:56 +00003905 test -n "$ac_ct_DUMPBIN" && break
3906done
3907
drh8b727472009-01-19 18:18:40 +00003908 if test "x$ac_ct_DUMPBIN" = x; then
3909 DUMPBIN=":"
3910 else
3911 case $cross_compiling:$ac_tool_warned in
3912yes:)
drhf922ca42015-05-14 15:39:18 +00003913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003915ac_tool_warned=yes ;;
3916esac
3917 DUMPBIN=$ac_ct_DUMPBIN
3918 fi
mlcreech636a9952008-05-05 22:52:56 +00003919fi
3920
3921
3922 if test "$DUMPBIN" != ":"; then
3923 NM="$DUMPBIN"
3924 fi
3925fi
3926test -z "$NM" && NM=nm
3927
3928
3929
3930
3931
3932
drhf922ca42015-05-14 15:39:18 +00003933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003934$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003935if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003936 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003937else
3938 lt_cv_nm_interface="BSD nm"
3939 echo "int some_variable = 0;" > conftest.$ac_ext
drhe2ce8c42020-12-07 21:19:17 +00003940 (eval echo "\"\$as_me:3940: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003941 (eval "$ac_compile" 2>conftest.err)
3942 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00003943 (eval echo "\"\$as_me:3943: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3945 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00003946 (eval echo "\"\$as_me:3946: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003947 cat conftest.out >&5
3948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3949 lt_cv_nm_interface="MS dumpbin"
3950 fi
3951 rm -f conftest*
3952fi
drhf922ca42015-05-14 15:39:18 +00003953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003954$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003955
drhf922ca42015-05-14 15:39:18 +00003956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003957$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003958LN_S=$as_ln_s
3959if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003961$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003962else
drhf922ca42015-05-14 15:39:18 +00003963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003964$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003965fi
3966
mlcreech636a9952008-05-05 22:52:56 +00003967# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003969$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003970if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003971 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003972else
3973 i=0
3974 teststring="ABCD"
3975
3976 case $build_os in
3977 msdosdjgpp*)
3978 # On DJGPP, this test can blow up pretty badly due to problems in libc
3979 # (any single argument exceeding 2000 bytes causes a buffer overrun
3980 # during glob expansion). Even if it were fixed, the result of this
3981 # check would be larger than it should be.
3982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3983 ;;
3984
3985 gnu*)
3986 # Under GNU Hurd, this test is not required because there is
3987 # no limit to the length of command line arguments.
3988 # Libtool will interpret -1 as no limit whatsoever
3989 lt_cv_sys_max_cmd_len=-1;
3990 ;;
3991
vapier6acb2cf2009-01-28 04:46:28 +00003992 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003993 # On Win9x/ME, this test blows up -- it succeeds, but takes
3994 # about 5 minutes as the teststring grows exponentially.
3995 # Worse, since 9x/ME are not pre-emptively multitasking,
3996 # you end up with a "frozen" computer, even though with patience
3997 # the test eventually succeeds (with a max line length of 256k).
3998 # Instead, let's just punt: use the minimum linelength reported by
3999 # all of the supported platforms: 8192 (on NT/2K/XP).
4000 lt_cv_sys_max_cmd_len=8192;
4001 ;;
4002
4003 amigaos*)
4004 # On AmigaOS with pdksh, this test takes hours, literally.
4005 # So we just punt and use a minimum line length of 8192.
4006 lt_cv_sys_max_cmd_len=8192;
4007 ;;
4008
4009 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4010 # This has been around since 386BSD, at least. Likely further.
4011 if test -x /sbin/sysctl; then
4012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4013 elif test -x /usr/sbin/sysctl; then
4014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4015 else
4016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4017 fi
4018 # And add a safety zone
4019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4021 ;;
4022
4023 interix*)
4024 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4025 lt_cv_sys_max_cmd_len=196608
4026 ;;
4027
4028 osf*)
4029 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4030 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4031 # nice to cause kernel panics so lets avoid the loop below.
4032 # First set a reasonable default.
4033 lt_cv_sys_max_cmd_len=16384
4034 #
4035 if test -x /sbin/sysconfig; then
4036 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4037 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4038 esac
4039 fi
4040 ;;
4041 sco3.2v5*)
4042 lt_cv_sys_max_cmd_len=102400
4043 ;;
4044 sysv5* | sco5v6* | sysv4.2uw2*)
4045 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4046 if test -n "$kargmax"; then
4047 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4048 else
4049 lt_cv_sys_max_cmd_len=32768
4050 fi
4051 ;;
4052 *)
4053 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4054 if test -n "$lt_cv_sys_max_cmd_len"; then
4055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4057 else
4058 # Make teststring a little bigger before we do anything with it.
4059 # a 1K string should be a reasonable start.
4060 for i in 1 2 3 4 5 6 7 8 ; do
4061 teststring=$teststring$teststring
4062 done
4063 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4064 # If test is not a shell built-in, we'll probably end up computing a
4065 # maximum length that is only half of the actual maximum length, but
4066 # we can't tell.
4067 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4068 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4069 test $i != 17 # 1/2 MB should be enough
4070 do
4071 i=`expr $i + 1`
4072 teststring=$teststring$teststring
4073 done
4074 # Only check the string length outside the loop.
4075 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4076 teststring=
4077 # Add a significant safety factor because C++ compilers can tack on
4078 # massive amounts of additional arguments before passing them to the
4079 # linker. It appears as though 1/2 is a usable value.
4080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4081 fi
4082 ;;
4083 esac
4084
4085fi
4086
4087if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004089$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004090else
drhf922ca42015-05-14 15:39:18 +00004091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004092$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004093fi
4094max_cmd_len=$lt_cv_sys_max_cmd_len
4095
4096
4097
4098
4099
4100
4101: ${CP="cp -f"}
4102: ${MV="mv -f"}
4103: ${RM="rm -f"}
4104
drhf922ca42015-05-14 15:39:18 +00004105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004106$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004107# Try some XSI features
4108xsi_shell=no
4109( _lt_dummy="a/b/c"
4110 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4111 = c,a/b,, \
4112 && eval 'test $(( 1 + 1 )) -eq 2 \
4113 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4114 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004116$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004117
4118
drhf922ca42015-05-14 15:39:18 +00004119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004120$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004121lt_shell_append=no
4122( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4123 >/dev/null 2>&1 \
4124 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004126$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004127
4128
4129if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4130 lt_unset=unset
4131else
4132 lt_unset=false
4133fi
4134
4135
4136
4137
4138
4139# test EBCDIC or ASCII
4140case `echo X|tr X '\101'` in
4141 A) # ASCII based system
4142 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4143 lt_SP2NL='tr \040 \012'
4144 lt_NL2SP='tr \015\012 \040\040'
4145 ;;
4146 *) # EBCDIC based system
4147 lt_SP2NL='tr \100 \n'
4148 lt_NL2SP='tr \r\n \100\100'
4149 ;;
4150esac
4151
4152
4153
4154
4155
4156
4157
4158
4159
drhf922ca42015-05-14 15:39:18 +00004160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004161$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004162if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004163 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004164else
4165 lt_cv_ld_reload_flag='-r'
4166fi
drhf922ca42015-05-14 15:39:18 +00004167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004168$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004169reload_flag=$lt_cv_ld_reload_flag
4170case $reload_flag in
4171"" | " "*) ;;
4172*) reload_flag=" $reload_flag" ;;
4173esac
4174reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175case $host_os in
4176 darwin*)
4177 if test "$GCC" = yes; then
4178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4179 else
4180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4181 fi
4182 ;;
4183esac
4184
4185
4186
4187
4188
4189
4190
4191
4192
vapier6acb2cf2009-01-28 04:46:28 +00004193if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4195set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004197$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004198if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$OBJDUMP"; then
4202 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004213 break 2
4214 fi
4215done
drhf922ca42015-05-14 15:39:18 +00004216 done
vapier6acb2cf2009-01-28 04:46:28 +00004217IFS=$as_save_IFS
4218
4219fi
4220fi
4221OBJDUMP=$ac_cv_prog_OBJDUMP
4222if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004224$as_echo "$OBJDUMP" >&6; }
4225else
drhf922ca42015-05-14 15:39:18 +00004226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004227$as_echo "no" >&6; }
4228fi
4229
4230
4231fi
4232if test -z "$ac_cv_prog_OBJDUMP"; then
4233 ac_ct_OBJDUMP=$OBJDUMP
4234 # Extract the first word of "objdump", so it can be a program name with args.
4235set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004237$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004238if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$ac_ct_OBJDUMP"; then
4242 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004251 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004253 break 2
4254 fi
4255done
drhf922ca42015-05-14 15:39:18 +00004256 done
vapier6acb2cf2009-01-28 04:46:28 +00004257IFS=$as_save_IFS
4258
4259fi
4260fi
4261ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4262if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004264$as_echo "$ac_ct_OBJDUMP" >&6; }
4265else
drhf922ca42015-05-14 15:39:18 +00004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004267$as_echo "no" >&6; }
4268fi
4269
4270 if test "x$ac_ct_OBJDUMP" = x; then
4271 OBJDUMP="false"
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274yes:)
drhf922ca42015-05-14 15:39:18 +00004275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004277ac_tool_warned=yes ;;
4278esac
4279 OBJDUMP=$ac_ct_OBJDUMP
4280 fi
4281else
4282 OBJDUMP="$ac_cv_prog_OBJDUMP"
4283fi
4284
4285test -z "$OBJDUMP" && OBJDUMP=objdump
4286
4287
4288
4289
4290
4291
4292
4293
mlcreech636a9952008-05-05 22:52:56 +00004294
drhf922ca42015-05-14 15:39:18 +00004295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004296$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004297if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004298 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004299else
4300 lt_cv_file_magic_cmd='$MAGIC_CMD'
4301lt_cv_file_magic_test_file=
4302lt_cv_deplibs_check_method='unknown'
4303# Need to set the preceding variable on all platforms that support
4304# interlibrary dependencies.
4305# 'none' -- dependencies not supported.
4306# `unknown' -- same as none, but documents that we really don't know.
4307# 'pass_all' -- all dependencies passed with no checks.
4308# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004309# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004310# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004311# If you have `file' or equivalent on your system and you're not sure
4312# whether `pass_all' will *always* work, you probably want this one.
4313
4314case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004315aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319beos*)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322
vapier7f19c022007-02-17 14:46:31 +00004323bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4325 lt_cv_file_magic_cmd='/usr/bin/file -L'
4326 lt_cv_file_magic_test_file=/shlib/libc.so
4327 ;;
4328
a.rottmann9bc8b932004-02-29 15:18:31 +00004329cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004330 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004332 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004333 ;;
4334
4335mingw* | pw32*)
4336 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4338 # unless we find 'file', for example because we are cross-compiling.
4339 if ( file / ) >/dev/null 2>&1; then
4340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4341 lt_cv_file_magic_cmd='func_win32_libid'
4342 else
4343 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4344 lt_cv_file_magic_cmd='$OBJDUMP -f'
4345 fi
drh71eb93e2001-09-28 01:34:43 +00004346 ;;
4347
vapier6acb2cf2009-01-28 04:46:28 +00004348cegcc)
4349 # use the weaker test based on 'objdump'. See mingw*.
4350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4351 lt_cv_file_magic_cmd='$OBJDUMP -f'
4352 ;;
4353
drh71eb93e2001-09-28 01:34:43 +00004354darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004355 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004356 ;;
4357
mlcreech636a9952008-05-05 22:52:56 +00004358freebsd* | dragonfly*)
4359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004360 case $host_cpu in
4361 i*86 )
4362 # Not sure whether the presence of OpenBSD here was a mistake.
4363 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004364 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 +00004365 lt_cv_file_magic_cmd=/usr/bin/file
4366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4367 ;;
4368 esac
4369 else
4370 lt_cv_deplibs_check_method=pass_all
4371 fi
4372 ;;
4373
4374gnu*)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
4377
a.rottmann9bc8b932004-02-29 15:18:31 +00004378hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004379 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004380 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004381 ia64*)
4382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4384 ;;
4385 hppa*64*)
4386 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]'
4387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4388 ;;
4389 *)
4390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4392 ;;
4393 esac
drh71eb93e2001-09-28 01:34:43 +00004394 ;;
4395
mlcreech636a9952008-05-05 22:52:56 +00004396interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4399 ;;
4400
a.rottmann84e63352003-03-24 09:42:16 +00004401irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004402 case $LD in
4403 *-32|*"-32 ") libmagic=32-bit;;
4404 *-n32|*"-n32 ") libmagic=N32;;
4405 *-64|*"-64 ") libmagic=64-bit;;
4406 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004407 esac
drh71eb93e2001-09-28 01:34:43 +00004408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004412linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004413 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004414 ;;
4415
vapier7f19c022007-02-17 14:46:31 +00004416netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004419 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004421 fi
4422 ;;
4423
4424newos6*)
4425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4426 lt_cv_file_magic_cmd=/usr/bin/file
4427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4428 ;;
4429
mlcreech636a9952008-05-05 22:52:56 +00004430*nto* | *qnx*)
4431 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004432 ;;
4433
a.rottmann84e63352003-03-24 09:42:16 +00004434openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004437 else
vapier7f19c022007-02-17 14:46:31 +00004438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004439 fi
drh71eb93e2001-09-28 01:34:43 +00004440 ;;
4441
4442osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004443 lt_cv_deplibs_check_method=pass_all
4444 ;;
4445
mlcreech636a9952008-05-05 22:52:56 +00004446rdos*)
4447 lt_cv_deplibs_check_method=pass_all
4448 ;;
4449
drh71eb93e2001-09-28 01:34:43 +00004450solaris*)
4451 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004452 ;;
4453
mlcreech636a9952008-05-05 22:52:56 +00004454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4455 lt_cv_deplibs_check_method=pass_all
4456 ;;
4457
vapier7f19c022007-02-17 14:46:31 +00004458sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004459 case $host_vendor in
4460 motorola)
4461 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]'
4462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4463 ;;
4464 ncr)
4465 lt_cv_deplibs_check_method=pass_all
4466 ;;
4467 sequent)
4468 lt_cv_file_magic_cmd='/bin/file'
4469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4470 ;;
4471 sni)
4472 lt_cv_file_magic_cmd='/bin/file'
4473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4474 lt_cv_file_magic_test_file=/lib/libc.so
4475 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004476 siemens)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
vapier7f19c022007-02-17 14:46:31 +00004479 pc)
4480 lt_cv_deplibs_check_method=pass_all
4481 ;;
drh71eb93e2001-09-28 01:34:43 +00004482 esac
4483 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004484
mlcreech636a9952008-05-05 22:52:56 +00004485tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004486 lt_cv_deplibs_check_method=pass_all
4487 ;;
drh71eb93e2001-09-28 01:34:43 +00004488esac
4489
4490fi
drhf922ca42015-05-14 15:39:18 +00004491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004492$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004493file_magic_cmd=$lt_cv_file_magic_cmd
4494deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004495test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004496
drh71eb93e2001-09-28 01:34:43 +00004497
drh71eb93e2001-09-28 01:34:43 +00004498
drh71eb93e2001-09-28 01:34:43 +00004499
mlcreech636a9952008-05-05 22:52:56 +00004500
4501
4502
4503
4504
4505
4506
4507
4508if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4510set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004512$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004513if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004514 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004515else
4516 if test -n "$AR"; then
4517 ac_cv_prog_AR="$AR" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004526 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004528 break 2
4529 fi
4530done
drhf922ca42015-05-14 15:39:18 +00004531 done
drh8b727472009-01-19 18:18:40 +00004532IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004533
4534fi
4535fi
4536AR=$ac_cv_prog_AR
4537if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004539$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004540else
drhf922ca42015-05-14 15:39:18 +00004541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004542$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004543fi
4544
drh8b727472009-01-19 18:18:40 +00004545
mlcreech636a9952008-05-05 22:52:56 +00004546fi
4547if test -z "$ac_cv_prog_AR"; then
4548 ac_ct_AR=$AR
4549 # Extract the first word of "ar", so it can be a program name with args.
4550set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004552$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004553if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004554 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004555else
4556 if test -n "$ac_ct_AR"; then
4557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004566 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004568 break 2
4569 fi
4570done
drhf922ca42015-05-14 15:39:18 +00004571 done
drh8b727472009-01-19 18:18:40 +00004572IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004573
4574fi
4575fi
4576ac_ct_AR=$ac_cv_prog_ac_ct_AR
4577if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004579$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004580else
drhf922ca42015-05-14 15:39:18 +00004581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004582$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004583fi
4584
drh8b727472009-01-19 18:18:40 +00004585 if test "x$ac_ct_AR" = x; then
4586 AR="false"
4587 else
4588 case $cross_compiling:$ac_tool_warned in
4589yes:)
drhf922ca42015-05-14 15:39:18 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004592ac_tool_warned=yes ;;
4593esac
4594 AR=$ac_ct_AR
4595 fi
mlcreech636a9952008-05-05 22:52:56 +00004596else
4597 AR="$ac_cv_prog_AR"
4598fi
4599
4600test -z "$AR" && AR=ar
4601test -z "$AR_FLAGS" && AR_FLAGS=cru
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613if test -n "$ac_tool_prefix"; then
4614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4615set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004617$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004618if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004619 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004620else
4621 if test -n "$STRIP"; then
4622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004633 break 2
4634 fi
4635done
drhf922ca42015-05-14 15:39:18 +00004636 done
drh8b727472009-01-19 18:18:40 +00004637IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004638
4639fi
4640fi
4641STRIP=$ac_cv_prog_STRIP
4642if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004644$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004645else
drhf922ca42015-05-14 15:39:18 +00004646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004647$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004648fi
4649
drh8b727472009-01-19 18:18:40 +00004650
mlcreech636a9952008-05-05 22:52:56 +00004651fi
4652if test -z "$ac_cv_prog_STRIP"; then
4653 ac_ct_STRIP=$STRIP
4654 # Extract the first word of "strip", so it can be a program name with args.
4655set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004657$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004658if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004659 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004660else
4661 if test -n "$ac_ct_STRIP"; then
4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004671 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004673 break 2
4674 fi
4675done
drhf922ca42015-05-14 15:39:18 +00004676 done
drh8b727472009-01-19 18:18:40 +00004677IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004678
4679fi
4680fi
4681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004684$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004685else
drhf922ca42015-05-14 15:39:18 +00004686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004687$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004688fi
4689
drh8b727472009-01-19 18:18:40 +00004690 if test "x$ac_ct_STRIP" = x; then
4691 STRIP=":"
4692 else
4693 case $cross_compiling:$ac_tool_warned in
4694yes:)
drhf922ca42015-05-14 15:39:18 +00004695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004697ac_tool_warned=yes ;;
4698esac
4699 STRIP=$ac_ct_STRIP
4700 fi
mlcreech636a9952008-05-05 22:52:56 +00004701else
4702 STRIP="$ac_cv_prog_STRIP"
4703fi
4704
4705test -z "$STRIP" && STRIP=:
4706
4707
4708
4709
4710
4711
4712if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004716$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004717if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004718 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004719else
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004732 break 2
4733 fi
4734done
drhf922ca42015-05-14 15:39:18 +00004735 done
drh8b727472009-01-19 18:18:40 +00004736IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004737
4738fi
4739fi
4740RANLIB=$ac_cv_prog_RANLIB
4741if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004743$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004744else
drhf922ca42015-05-14 15:39:18 +00004745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004746$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004747fi
4748
drh8b727472009-01-19 18:18:40 +00004749
mlcreech636a9952008-05-05 22:52:56 +00004750fi
4751if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004756$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004757if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004758 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004759else
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004770 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004772 break 2
4773 fi
4774done
drhf922ca42015-05-14 15:39:18 +00004775 done
drh8b727472009-01-19 18:18:40 +00004776IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004777
4778fi
4779fi
4780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004783$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004784else
drhf922ca42015-05-14 15:39:18 +00004785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004786$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004787fi
4788
drh8b727472009-01-19 18:18:40 +00004789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB=":"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793yes:)
drhf922ca42015-05-14 15:39:18 +00004794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004796ac_tool_warned=yes ;;
4797esac
4798 RANLIB=$ac_ct_RANLIB
4799 fi
mlcreech636a9952008-05-05 22:52:56 +00004800else
4801 RANLIB="$ac_cv_prog_RANLIB"
4802fi
4803
4804test -z "$RANLIB" && RANLIB=:
4805
4806
4807
4808
4809
4810
4811# Determine commands to create old-style static archives.
4812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4813old_postinstall_cmds='chmod 644 $oldlib'
4814old_postuninstall_cmds=
4815
4816if test -n "$RANLIB"; then
4817 case $host_os in
4818 openbsd*)
4819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4820 ;;
4821 *)
4822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4823 ;;
4824 esac
4825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4826fi
4827
4828
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
a.rottmann9bc8b932004-02-29 15:18:31 +00004861# If no C compiler was specified, use CC.
4862LTCC=${LTCC-"$CC"}
4863
vapier7f19c022007-02-17 14:46:31 +00004864# If no C compiler flags were specified, use CFLAGS.
4865LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4866
a.rottmann9bc8b932004-02-29 15:18:31 +00004867# Allow CC to be a program name with arguments.
4868compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004869
drh71eb93e2001-09-28 01:34:43 +00004870
mlcreech636a9952008-05-05 22:52:56 +00004871# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004873$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004874if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004875 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004876else
4877
4878# These are sane defaults that work on at least a few old systems.
4879# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4880
4881# Character class describing NM global symbol codes.
4882symcode='[BCDEGRST]'
4883
4884# Regexp to match symbols that can be accessed directly from C.
4885sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4886
4887# Define system-specific variables.
4888case $host_os in
4889aix*)
4890 symcode='[BCDT]'
4891 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004892cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004893 symcode='[ABCDGISTW]'
4894 ;;
4895hpux*)
4896 if test "$host_cpu" = ia64; then
4897 symcode='[ABCDEGRST]'
4898 fi
4899 ;;
4900irix* | nonstopux*)
4901 symcode='[BCDEGRST]'
4902 ;;
4903osf*)
4904 symcode='[BCDEGQRST]'
4905 ;;
4906solaris*)
4907 symcode='[BDRT]'
4908 ;;
4909sco3.2v5*)
4910 symcode='[DT]'
4911 ;;
4912sysv4.2uw2*)
4913 symcode='[DT]'
4914 ;;
4915sysv5* | sco5v6* | unixware* | OpenUNIX*)
4916 symcode='[ABDT]'
4917 ;;
4918sysv4)
4919 symcode='[DFNSTU]'
4920 ;;
4921esac
4922
4923# If we're using GNU nm, then use its standard symbol codes.
4924case `$NM -V 2>&1` in
4925*GNU* | *'with BFD'*)
4926 symcode='[ABCDGIRSTW]' ;;
4927esac
4928
4929# Transform an extracted symbol line into a proper C declaration.
4930# Some systems (esp. on ia64) link data and code symbols differently,
4931# so use this general approach.
4932lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4933
4934# Transform an extracted symbol line into symbol name and symbol address
4935lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4936lt_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'"
4937
4938# Handle CRLF in mingw tool chain
4939opt_cr=
4940case $build_os in
4941mingw*)
4942 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4943 ;;
4944esac
4945
4946# Try without a prefix underscore, then with it.
4947for ac_symprfx in "" "_"; do
4948
4949 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4950 symxfrm="\\1 $ac_symprfx\\2 \\2"
4951
4952 # Write the raw and C identifiers.
4953 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4954 # Fake it for dumpbin and say T for any non-static function
4955 # and D for any global variable.
4956 # Also find C++ and __fastcall symbols from MSVC++,
4957 # which start with @ or ?.
4958 lt_cv_sys_global_symbol_pipe="$AWK '"\
4959" {last_section=section; section=\$ 3};"\
4960" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4961" \$ 0!~/External *\|/{next};"\
4962" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4963" {if(hide[section]) next};"\
4964" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4965" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4966" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4967" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4968" ' prfx=^$ac_symprfx"
4969 else
4970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4971 fi
4972
4973 # Check to see that the pipe works correctly.
4974 pipe_works=no
4975
4976 rm -f conftest*
4977 cat > conftest.$ac_ext <<_LT_EOF
4978#ifdef __cplusplus
4979extern "C" {
4980#endif
4981char nm_test_var;
4982void nm_test_func(void);
4983void nm_test_func(void){}
4984#ifdef __cplusplus
4985}
4986#endif
4987int main(){nm_test_var='a';nm_test_func();return(0);}
4988_LT_EOF
4989
drhf922ca42015-05-14 15:39:18 +00004990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004991 (eval $ac_compile) 2>&5
4992 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004995 # Now try to grab the symbols.
4996 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004997 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 +00004998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4999 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005002 # Try sorting and uniquifying the output.
5003 if sort "$nlist" | uniq > "$nlist"T; then
5004 mv -f "$nlist"T "$nlist"
5005 else
5006 rm -f "$nlist"T
5007 fi
5008
5009 # Make sure that we snagged all the symbols we need.
5010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5012 cat <<_LT_EOF > conftest.$ac_ext
5013#ifdef __cplusplus
5014extern "C" {
5015#endif
5016
5017_LT_EOF
5018 # Now generate the symbol file.
5019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5020
5021 cat <<_LT_EOF >> conftest.$ac_ext
5022
5023/* The mapping between symbol names and symbols. */
5024const struct {
5025 const char *name;
5026 void *address;
5027}
5028lt__PROGRAM__LTX_preloaded_symbols[] =
5029{
5030 { "@PROGRAM@", (void *) 0 },
5031_LT_EOF
5032 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5033 cat <<\_LT_EOF >> conftest.$ac_ext
5034 {0, (void *) 0}
5035};
5036
5037/* This works around a problem in FreeBSD linker */
5038#ifdef FREEBSD_WORKAROUND
5039static const void *lt_preloaded_setup() {
5040 return lt__PROGRAM__LTX_preloaded_symbols;
5041}
5042#endif
5043
5044#ifdef __cplusplus
5045}
5046#endif
5047_LT_EOF
5048 # Now try linking the two files.
5049 mv conftest.$ac_objext conftstm.$ac_objext
5050 lt_save_LIBS="$LIBS"
5051 lt_save_CFLAGS="$CFLAGS"
5052 LIBS="conftstm.$ac_objext"
5053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005055 (eval $ac_link) 2>&5
5056 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005059 pipe_works=yes
5060 fi
5061 LIBS="$lt_save_LIBS"
5062 CFLAGS="$lt_save_CFLAGS"
5063 else
5064 echo "cannot find nm_test_func in $nlist" >&5
5065 fi
5066 else
5067 echo "cannot find nm_test_var in $nlist" >&5
5068 fi
5069 else
5070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5071 fi
5072 else
5073 echo "$progname: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5075 fi
5076 rm -rf conftest* conftst*
5077
5078 # Do not use the global_symbol_pipe unless it works.
5079 if test "$pipe_works" = yes; then
5080 break
5081 else
5082 lt_cv_sys_global_symbol_pipe=
5083 fi
5084done
5085
5086fi
5087
5088if test -z "$lt_cv_sys_global_symbol_pipe"; then
5089 lt_cv_sys_global_symbol_to_cdecl=
5090fi
5091if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005093$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005094else
drhf922ca42015-05-14 15:39:18 +00005095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005096$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005097fi
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
drh8b727472009-01-19 18:18:40 +00005121# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005122if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005123 enableval=$enable_libtool_lock;
5124fi
drh71eb93e2001-09-28 01:34:43 +00005125
a.rottmann9bc8b932004-02-29 15:18:31 +00005126test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005127
a.rottmann9bc8b932004-02-29 15:18:31 +00005128# Some flags need to be propagated to the compiler or linker for good
5129# libtool support.
5130case $host in
5131ia64-*-hpux*)
5132 # Find out which ABI we are using.
5133 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005135 (eval $ac_compile) 2>&5
5136 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005139 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005140 *ELF-32*)
5141 HPUX_IA64_MODE="32"
5142 ;;
5143 *ELF-64*)
5144 HPUX_IA64_MODE="64"
5145 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005146 esac
5147 fi
5148 rm -rf conftest*
5149 ;;
5150*-*-irix6*)
5151 # Find out which ABI we are using.
drhe2ce8c42020-12-07 21:19:17 +00005152 echo '#line 5152 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005154 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005155 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005158 if test "$lt_cv_prog_gnu_ld" = yes; then
5159 case `/usr/bin/file conftest.$ac_objext` in
5160 *32-bit*)
5161 LD="${LD-ld} -melf32bsmip"
5162 ;;
5163 *N32*)
5164 LD="${LD-ld} -melf32bmipn32"
5165 ;;
5166 *64-bit*)
5167 LD="${LD-ld} -melf64bmip"
5168 ;;
5169 esac
5170 else
5171 case `/usr/bin/file conftest.$ac_objext` in
5172 *32-bit*)
5173 LD="${LD-ld} -32"
5174 ;;
5175 *N32*)
5176 LD="${LD-ld} -n32"
5177 ;;
5178 *64-bit*)
5179 LD="${LD-ld} -64"
5180 ;;
5181 esac
5182 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005183 fi
5184 rm -rf conftest*
5185 ;;
drh71eb93e2001-09-28 01:34:43 +00005186
mlcreech636a9952008-05-05 22:52:56 +00005187x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5188s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005189 # Find out which ABI we are using.
5190 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005192 (eval $ac_compile) 2>&5
5193 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5195 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005196 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005197 *32-bit*)
5198 case $host in
5199 x86_64-*kfreebsd*-gnu)
5200 LD="${LD-ld} -m elf_i386_fbsd"
5201 ;;
5202 x86_64-*linux*)
5203 LD="${LD-ld} -m elf_i386"
5204 ;;
5205 ppc64-*linux*|powerpc64-*linux*)
5206 LD="${LD-ld} -m elf32ppclinux"
5207 ;;
5208 s390x-*linux*)
5209 LD="${LD-ld} -m elf_s390"
5210 ;;
5211 sparc64-*linux*)
5212 LD="${LD-ld} -m elf32_sparc"
5213 ;;
5214 esac
5215 ;;
5216 *64-bit*)
5217 case $host in
5218 x86_64-*kfreebsd*-gnu)
5219 LD="${LD-ld} -m elf_x86_64_fbsd"
5220 ;;
5221 x86_64-*linux*)
5222 LD="${LD-ld} -m elf_x86_64"
5223 ;;
5224 ppc*-*linux*|powerpc*-*linux*)
5225 LD="${LD-ld} -m elf64ppc"
5226 ;;
5227 s390*-*linux*|s390*-*tpf*)
5228 LD="${LD-ld} -m elf64_s390"
5229 ;;
5230 sparc*-*linux*)
5231 LD="${LD-ld} -m elf64_sparc"
5232 ;;
5233 esac
5234 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005235 esac
5236 fi
5237 rm -rf conftest*
5238 ;;
drh71eb93e2001-09-28 01:34:43 +00005239
a.rottmann9bc8b932004-02-29 15:18:31 +00005240*-*-sco3.2v5*)
5241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5242 SAVE_CFLAGS="$CFLAGS"
5243 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005245$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005246if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005247 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005248else
5249 ac_ext=c
5250ac_cpp='$CPP $CPPFLAGS'
5251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005254
drhf922ca42015-05-14 15:39:18 +00005255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005256/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005257
a.rottmann9bc8b932004-02-29 15:18:31 +00005258int
5259main ()
drh71eb93e2001-09-28 01:34:43 +00005260{
drh71eb93e2001-09-28 01:34:43 +00005261
a.rottmann9bc8b932004-02-29 15:18:31 +00005262 ;
5263 return 0;
drh71eb93e2001-09-28 01:34:43 +00005264}
a.rottmann9bc8b932004-02-29 15:18:31 +00005265_ACEOF
drhf922ca42015-05-14 15:39:18 +00005266if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005267 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005268else
drhf922ca42015-05-14 15:39:18 +00005269 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005270fi
drhf922ca42015-05-14 15:39:18 +00005271rm -f core conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005273 ac_ext=c
5274ac_cpp='$CPP $CPPFLAGS'
5275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
drh71eb93e2001-09-28 01:34:43 +00005279fi
drhf922ca42015-05-14 15:39:18 +00005280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005281$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005282 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5283 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5284 CFLAGS="$SAVE_CFLAGS"
5285 fi
5286 ;;
vapier7f19c022007-02-17 14:46:31 +00005287sparc*-*solaris*)
5288 # Find out which ABI we are using.
5289 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005291 (eval $ac_compile) 2>&5
5292 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005295 case `/usr/bin/file conftest.o` in
5296 *64-bit*)
5297 case $lt_cv_prog_gnu_ld in
5298 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005299 *)
5300 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5301 LD="${LD-ld} -64"
5302 fi
5303 ;;
vapier7f19c022007-02-17 14:46:31 +00005304 esac
5305 ;;
5306 esac
5307 fi
5308 rm -rf conftest*
5309 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005310esac
5311
5312need_locks="$enable_libtool_lock"
5313
drh71eb93e2001-09-28 01:34:43 +00005314
mlcreech636a9952008-05-05 22:52:56 +00005315 case $host_os in
5316 rhapsody* | darwin*)
5317 if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5319set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005321$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005322if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005323 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005324else
5325 if test -n "$DSYMUTIL"; then
5326 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005335 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005337 break 2
5338 fi
5339done
drhf922ca42015-05-14 15:39:18 +00005340 done
drh8b727472009-01-19 18:18:40 +00005341IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005342
5343fi
5344fi
5345DSYMUTIL=$ac_cv_prog_DSYMUTIL
5346if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005348$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005349else
drhf922ca42015-05-14 15:39:18 +00005350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005351$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005352fi
5353
drh8b727472009-01-19 18:18:40 +00005354
mlcreech636a9952008-05-05 22:52:56 +00005355fi
5356if test -z "$ac_cv_prog_DSYMUTIL"; then
5357 ac_ct_DSYMUTIL=$DSYMUTIL
5358 # Extract the first word of "dsymutil", so it can be a program name with args.
5359set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005361$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005362if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005363 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005364else
5365 if test -n "$ac_ct_DSYMUTIL"; then
5366 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5367else
5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005375 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005377 break 2
5378 fi
5379done
drhf922ca42015-05-14 15:39:18 +00005380 done
drh8b727472009-01-19 18:18:40 +00005381IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005382
5383fi
5384fi
5385ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5386if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005388$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005389else
drhf922ca42015-05-14 15:39:18 +00005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005391$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005392fi
5393
drh8b727472009-01-19 18:18:40 +00005394 if test "x$ac_ct_DSYMUTIL" = x; then
5395 DSYMUTIL=":"
5396 else
5397 case $cross_compiling:$ac_tool_warned in
5398yes:)
drhf922ca42015-05-14 15:39:18 +00005399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005401ac_tool_warned=yes ;;
5402esac
5403 DSYMUTIL=$ac_ct_DSYMUTIL
5404 fi
mlcreech636a9952008-05-05 22:52:56 +00005405else
5406 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5407fi
5408
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5411set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005413$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005414if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005415 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005416else
5417 if test -n "$NMEDIT"; then
5418 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005427 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005429 break 2
5430 fi
5431done
drhf922ca42015-05-14 15:39:18 +00005432 done
drh8b727472009-01-19 18:18:40 +00005433IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005434
5435fi
5436fi
5437NMEDIT=$ac_cv_prog_NMEDIT
5438if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005440$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005441else
drhf922ca42015-05-14 15:39:18 +00005442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005443$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005444fi
5445
drh8b727472009-01-19 18:18:40 +00005446
mlcreech636a9952008-05-05 22:52:56 +00005447fi
5448if test -z "$ac_cv_prog_NMEDIT"; then
5449 ac_ct_NMEDIT=$NMEDIT
5450 # Extract the first word of "nmedit", so it can be a program name with args.
5451set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005453$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005454if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005455 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005456else
5457 if test -n "$ac_ct_NMEDIT"; then
5458 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005467 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005469 break 2
5470 fi
5471done
drhf922ca42015-05-14 15:39:18 +00005472 done
drh8b727472009-01-19 18:18:40 +00005473IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005474
5475fi
5476fi
5477ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5478if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005480$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005481else
drhf922ca42015-05-14 15:39:18 +00005482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005483$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005484fi
5485
drh8b727472009-01-19 18:18:40 +00005486 if test "x$ac_ct_NMEDIT" = x; then
5487 NMEDIT=":"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490yes:)
drhf922ca42015-05-14 15:39:18 +00005491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005493ac_tool_warned=yes ;;
5494esac
5495 NMEDIT=$ac_ct_NMEDIT
5496 fi
mlcreech636a9952008-05-05 22:52:56 +00005497else
5498 NMEDIT="$ac_cv_prog_NMEDIT"
5499fi
5500
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005505$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005506if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005507 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005508else
5509 if test -n "$LIPO"; then
5510 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005519 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005521 break 2
5522 fi
5523done
drhf922ca42015-05-14 15:39:18 +00005524 done
drh8b727472009-01-19 18:18:40 +00005525IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005526
5527fi
5528fi
5529LIPO=$ac_cv_prog_LIPO
5530if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005532$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005533else
drhf922ca42015-05-14 15:39:18 +00005534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005535$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005536fi
5537
drh8b727472009-01-19 18:18:40 +00005538
mlcreech636a9952008-05-05 22:52:56 +00005539fi
5540if test -z "$ac_cv_prog_LIPO"; then
5541 ac_ct_LIPO=$LIPO
5542 # Extract the first word of "lipo", so it can be a program name with args.
5543set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005545$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005546if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005547 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005548else
5549 if test -n "$ac_ct_LIPO"; then
5550 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005559 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005561 break 2
5562 fi
5563done
drhf922ca42015-05-14 15:39:18 +00005564 done
drh8b727472009-01-19 18:18:40 +00005565IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005566
5567fi
5568fi
5569ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5570if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005572$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005573else
drhf922ca42015-05-14 15:39:18 +00005574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005575$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005576fi
5577
drh8b727472009-01-19 18:18:40 +00005578 if test "x$ac_ct_LIPO" = x; then
5579 LIPO=":"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
drhf922ca42015-05-14 15:39:18 +00005583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005585ac_tool_warned=yes ;;
5586esac
5587 LIPO=$ac_ct_LIPO
5588 fi
mlcreech636a9952008-05-05 22:52:56 +00005589else
5590 LIPO="$ac_cv_prog_LIPO"
5591fi
5592
5593 if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5595set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005597$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005598if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005599 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005600else
5601 if test -n "$OTOOL"; then
5602 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005611 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005613 break 2
5614 fi
5615done
drhf922ca42015-05-14 15:39:18 +00005616 done
drh8b727472009-01-19 18:18:40 +00005617IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005618
5619fi
5620fi
5621OTOOL=$ac_cv_prog_OTOOL
5622if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005624$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005625else
drhf922ca42015-05-14 15:39:18 +00005626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005627$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005628fi
5629
drh8b727472009-01-19 18:18:40 +00005630
mlcreech636a9952008-05-05 22:52:56 +00005631fi
5632if test -z "$ac_cv_prog_OTOOL"; then
5633 ac_ct_OTOOL=$OTOOL
5634 # Extract the first word of "otool", so it can be a program name with args.
5635set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005637$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005638if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005639 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005640else
5641 if test -n "$ac_ct_OTOOL"; then
5642 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005651 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005653 break 2
5654 fi
5655done
drhf922ca42015-05-14 15:39:18 +00005656 done
drh8b727472009-01-19 18:18:40 +00005657IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005658
5659fi
5660fi
5661ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5662if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005664$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005665else
drhf922ca42015-05-14 15:39:18 +00005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005667$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005668fi
5669
drh8b727472009-01-19 18:18:40 +00005670 if test "x$ac_ct_OTOOL" = x; then
5671 OTOOL=":"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674yes:)
drhf922ca42015-05-14 15:39:18 +00005675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005677ac_tool_warned=yes ;;
5678esac
5679 OTOOL=$ac_ct_OTOOL
5680 fi
mlcreech636a9952008-05-05 22:52:56 +00005681else
5682 OTOOL="$ac_cv_prog_OTOOL"
5683fi
5684
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5687set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005689$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005690if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005691 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005692else
5693 if test -n "$OTOOL64"; then
5694 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005703 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005705 break 2
5706 fi
5707done
drhf922ca42015-05-14 15:39:18 +00005708 done
drh8b727472009-01-19 18:18:40 +00005709IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005710
5711fi
5712fi
5713OTOOL64=$ac_cv_prog_OTOOL64
5714if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005716$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005717else
drhf922ca42015-05-14 15:39:18 +00005718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005719$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005720fi
5721
drh8b727472009-01-19 18:18:40 +00005722
mlcreech636a9952008-05-05 22:52:56 +00005723fi
5724if test -z "$ac_cv_prog_OTOOL64"; then
5725 ac_ct_OTOOL64=$OTOOL64
5726 # Extract the first word of "otool64", so it can be a program name with args.
5727set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005729$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005730if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005731 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005732else
5733 if test -n "$ac_ct_OTOOL64"; then
5734 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005743 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005745 break 2
5746 fi
5747done
drhf922ca42015-05-14 15:39:18 +00005748 done
drh8b727472009-01-19 18:18:40 +00005749IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005750
5751fi
5752fi
5753ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5754if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005756$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005757else
drhf922ca42015-05-14 15:39:18 +00005758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005759$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005760fi
5761
drh8b727472009-01-19 18:18:40 +00005762 if test "x$ac_ct_OTOOL64" = x; then
5763 OTOOL64=":"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766yes:)
drhf922ca42015-05-14 15:39:18 +00005767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005769ac_tool_warned=yes ;;
5770esac
5771 OTOOL64=$ac_ct_OTOOL64
5772 fi
mlcreech636a9952008-05-05 22:52:56 +00005773else
5774 OTOOL64="$ac_cv_prog_OTOOL64"
5775fi
5776
5777
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
drhf922ca42015-05-14 15:39:18 +00005803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005804$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005805if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005806 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005807else
5808 lt_cv_apple_cc_single_mod=no
5809 if test -z "${LT_MULTI_MODULE}"; then
5810 # By default we will add the -single_module flag. You can override
5811 # by either setting the environment variable LT_MULTI_MODULE
5812 # non-empty at configure time, or by adding -multi_module to the
5813 # link flags.
5814 rm -rf libconftest.dylib*
5815 echo "int foo(void){return 1;}" > conftest.c
5816 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5817-dynamiclib -Wl,-single_module conftest.c" >&5
5818 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5819 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5820 _lt_result=$?
5821 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5822 lt_cv_apple_cc_single_mod=yes
5823 else
5824 cat conftest.err >&5
5825 fi
5826 rm -rf libconftest.dylib*
5827 rm -f conftest.*
5828 fi
5829fi
drhf922ca42015-05-14 15:39:18 +00005830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005831$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005833$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005834if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005835 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005836else
5837 lt_cv_ld_exported_symbols_list=no
5838 save_LDFLAGS=$LDFLAGS
5839 echo "_main" > conftest.sym
5840 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005842/* end confdefs.h. */
5843
5844int
5845main ()
5846{
5847
5848 ;
5849 return 0;
5850}
5851_ACEOF
drhf922ca42015-05-14 15:39:18 +00005852if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005853 lt_cv_ld_exported_symbols_list=yes
5854else
drhf922ca42015-05-14 15:39:18 +00005855 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005856fi
drhf922ca42015-05-14 15:39:18 +00005857rm -f core conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005859 LDFLAGS="$save_LDFLAGS"
5860
5861fi
drhf922ca42015-05-14 15:39:18 +00005862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005863$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005864 case $host_os in
5865 rhapsody* | darwin1.[012])
5866 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5867 darwin1.*)
5868 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5869 darwin*) # darwin 5.x on
5870 # if running on 10.5 or later, the deployment target defaults
5871 # to the OS version, if on x86, and 10.4, the deployment
5872 # target defaults to 10.4. Don't you love it?
5873 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5874 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5876 10.[012]*)
5877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5878 10.*)
5879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5880 esac
5881 ;;
5882 esac
5883 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5884 _lt_dar_single_mod='$single_module'
5885 fi
5886 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5887 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5888 else
5889 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5890 fi
5891 if test "$DSYMUTIL" != ":"; then
5892 _lt_dsymutil='~$DSYMUTIL $lib || :'
5893 else
5894 _lt_dsymutil=
5895 fi
5896 ;;
5897 esac
5898
a.rottmann84e63352003-03-24 09:42:16 +00005899ac_ext=c
5900ac_cpp='$CPP $CPPFLAGS'
5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005905$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005906# On Suns, sometimes $CPP names a directory.
5907if test -n "$CPP" && test -d "$CPP"; then
5908 CPP=
5909fi
5910if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005911 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005912 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005913else
a.rottmann84e63352003-03-24 09:42:16 +00005914 # Double quotes because CPP needs to be expanded
5915 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5916 do
5917 ac_preproc_ok=false
5918for ac_c_preproc_warn_flag in '' yes
5919do
5920 # Use a header file that comes with gcc, so configuring glibc
5921 # with a fresh cross-compiler works.
5922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5923 # <limits.h> exists even on freestanding compilers.
5924 # On the NeXT, cc -E runs the code through the compiler's parser,
5925 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005927/* end confdefs.h. */
5928#ifdef __STDC__
5929# include <limits.h>
5930#else
5931# include <assert.h>
5932#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005933 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005934_ACEOF
drhf922ca42015-05-14 15:39:18 +00005935if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005936
drhf922ca42015-05-14 15:39:18 +00005937else
a.rottmann84e63352003-03-24 09:42:16 +00005938 # Broken: fails on valid input.
5939continue
5940fi
drhf922ca42015-05-14 15:39:18 +00005941rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005942
drh8b727472009-01-19 18:18:40 +00005943 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005944 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005946/* end confdefs.h. */
5947#include <ac_nonexistent.h>
5948_ACEOF
drhf922ca42015-05-14 15:39:18 +00005949if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005950 # Broken: success on invalid input.
5951continue
5952else
a.rottmann84e63352003-03-24 09:42:16 +00005953 # Passes both tests.
5954ac_preproc_ok=:
5955break
5956fi
drhf922ca42015-05-14 15:39:18 +00005957rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005958
5959done
5960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005961rm -f conftest.i conftest.err conftest.$ac_ext
5962if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005963 break
5964fi
5965
5966 done
5967 ac_cv_prog_CPP=$CPP
5968
5969fi
5970 CPP=$ac_cv_prog_CPP
5971else
5972 ac_cv_prog_CPP=$CPP
5973fi
drhf922ca42015-05-14 15:39:18 +00005974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005975$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005976ac_preproc_ok=false
5977for ac_c_preproc_warn_flag in '' yes
5978do
5979 # Use a header file that comes with gcc, so configuring glibc
5980 # with a fresh cross-compiler works.
5981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 # <limits.h> exists even on freestanding compilers.
5983 # On the NeXT, cc -E runs the code through the compiler's parser,
5984 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005986/* end confdefs.h. */
5987#ifdef __STDC__
5988# include <limits.h>
5989#else
5990# include <assert.h>
5991#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005992 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005993_ACEOF
drhf922ca42015-05-14 15:39:18 +00005994if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005995
drhf922ca42015-05-14 15:39:18 +00005996else
a.rottmann84e63352003-03-24 09:42:16 +00005997 # Broken: fails on valid input.
5998continue
5999fi
drhf922ca42015-05-14 15:39:18 +00006000rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006001
drh8b727472009-01-19 18:18:40 +00006002 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006003 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006005/* end confdefs.h. */
6006#include <ac_nonexistent.h>
6007_ACEOF
drhf922ca42015-05-14 15:39:18 +00006008if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006009 # Broken: success on invalid input.
6010continue
6011else
a.rottmann84e63352003-03-24 09:42:16 +00006012 # Passes both tests.
6013ac_preproc_ok=:
6014break
6015fi
drhf922ca42015-05-14 15:39:18 +00006016rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006017
6018done
6019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006020rm -f conftest.i conftest.err conftest.$ac_ext
6021if $ac_preproc_ok; then :
6022
a.rottmann84e63352003-03-24 09:42:16 +00006023else
drhf922ca42015-05-14 15:39:18 +00006024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6026as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6027See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006028fi
6029
6030ac_ext=c
6031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036
drhf922ca42015-05-14 15:39:18 +00006037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006038$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006039if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006040 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006041else
drhf922ca42015-05-14 15:39:18 +00006042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006043/* end confdefs.h. */
6044#include <stdlib.h>
6045#include <stdarg.h>
6046#include <string.h>
6047#include <float.h>
6048
6049int
6050main ()
6051{
6052
6053 ;
6054 return 0;
6055}
6056_ACEOF
drhf922ca42015-05-14 15:39:18 +00006057if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006058 ac_cv_header_stdc=yes
6059else
drhf922ca42015-05-14 15:39:18 +00006060 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006061fi
drh8b727472009-01-19 18:18:40 +00006062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006063
6064if test $ac_cv_header_stdc = yes; then
6065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006067/* end confdefs.h. */
6068#include <string.h>
6069
6070_ACEOF
6071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006072 $EGREP "memchr" >/dev/null 2>&1; then :
6073
a.rottmann84e63352003-03-24 09:42:16 +00006074else
6075 ac_cv_header_stdc=no
6076fi
6077rm -f conftest*
6078
6079fi
6080
6081if test $ac_cv_header_stdc = yes; then
6082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006084/* end confdefs.h. */
6085#include <stdlib.h>
6086
6087_ACEOF
6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006089 $EGREP "free" >/dev/null 2>&1; then :
6090
a.rottmann84e63352003-03-24 09:42:16 +00006091else
6092 ac_cv_header_stdc=no
6093fi
6094rm -f conftest*
6095
6096fi
6097
6098if test $ac_cv_header_stdc = yes; then
6099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006100 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006101 :
6102else
drhf922ca42015-05-14 15:39:18 +00006103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006104/* end confdefs.h. */
6105#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006106#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006107#if ((' ' & 0x0FF) == 0x020)
6108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6110#else
6111# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006112 (('a' <= (c) && (c) <= 'i') \
6113 || ('j' <= (c) && (c) <= 'r') \
6114 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6116#endif
6117
6118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6119int
6120main ()
6121{
6122 int i;
6123 for (i = 0; i < 256; i++)
6124 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006125 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006126 return 2;
6127 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006128}
6129_ACEOF
drhf922ca42015-05-14 15:39:18 +00006130if ac_fn_c_try_run "$LINENO"; then :
6131
a.rottmann84e63352003-03-24 09:42:16 +00006132else
drhf922ca42015-05-14 15:39:18 +00006133 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006134fi
drhf922ca42015-05-14 15:39:18 +00006135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006137fi
6138
a.rottmann84e63352003-03-24 09:42:16 +00006139fi
6140fi
drhf922ca42015-05-14 15:39:18 +00006141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006142$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006143if test $ac_cv_header_stdc = yes; then
6144
drhf922ca42015-05-14 15:39:18 +00006145$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006146
6147fi
6148
6149# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006150for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006151 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006152do :
6153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6154ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6155"
6156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006157 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006159_ACEOF
6160
6161fi
6162
6163done
6164
6165
a.rottmann84e63352003-03-24 09:42:16 +00006166for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006167do :
6168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6169"
6170if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006171 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006172#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006173_ACEOF
6174
6175fi
6176
drh71eb93e2001-09-28 01:34:43 +00006177done
6178
drh71eb93e2001-09-28 01:34:43 +00006179
drh71eb93e2001-09-28 01:34:43 +00006180
mlcreech636a9952008-05-05 22:52:56 +00006181# Set options
mlcreech94984912008-03-04 19:03:08 +00006182
drh71eb93e2001-09-28 01:34:43 +00006183
drh71eb93e2001-09-28 01:34:43 +00006184
mlcreech636a9952008-05-05 22:52:56 +00006185 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006186
a.rottmann9bc8b932004-02-29 15:18:31 +00006187
mlcreech636a9952008-05-05 22:52:56 +00006188 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006189
a.rottmann9bc8b932004-02-29 15:18:31 +00006190
drh8b727472009-01-19 18:18:40 +00006191 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006192if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006193 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006194 case $enableval in
6195 yes) enable_shared=yes ;;
6196 no) enable_shared=no ;;
6197 *)
6198 enable_shared=no
6199 # Look at the argument we got. We use all the common list separators.
6200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6201 for pkg in $enableval; do
6202 IFS="$lt_save_ifs"
6203 if test "X$pkg" = "X$p"; then
6204 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006205 fi
mlcreech636a9952008-05-05 22:52:56 +00006206 done
6207 IFS="$lt_save_ifs"
6208 ;;
6209 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006210else
mlcreech636a9952008-05-05 22:52:56 +00006211 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006212fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006213
mlcreech636a9952008-05-05 22:52:56 +00006214
6215
6216
6217
6218
6219
6220
drh8b727472009-01-19 18:18:40 +00006221
6222 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006223if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006224 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006225 case $enableval in
6226 yes) enable_static=yes ;;
6227 no) enable_static=no ;;
6228 *)
6229 enable_static=no
6230 # Look at the argument we got. We use all the common list separators.
6231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6232 for pkg in $enableval; do
6233 IFS="$lt_save_ifs"
6234 if test "X$pkg" = "X$p"; then
6235 enable_static=yes
6236 fi
6237 done
6238 IFS="$lt_save_ifs"
6239 ;;
6240 esac
6241else
6242 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006243fi
mlcreech636a9952008-05-05 22:52:56 +00006244
6245
6246
6247
6248
6249
6250
6251
6252
drh8b727472009-01-19 18:18:40 +00006253
6254# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006255if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006256 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006257else
6258 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006259fi
6260
mlcreech636a9952008-05-05 22:52:56 +00006261
6262test -z "$pic_mode" && pic_mode=default
6263
6264
6265
6266
6267
6268
6269
drh8b727472009-01-19 18:18:40 +00006270 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006271if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006272 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006273 case $enableval in
6274 yes) enable_fast_install=yes ;;
6275 no) enable_fast_install=no ;;
6276 *)
6277 enable_fast_install=no
6278 # Look at the argument we got. We use all the common list separators.
6279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6280 for pkg in $enableval; do
6281 IFS="$lt_save_ifs"
6282 if test "X$pkg" = "X$p"; then
6283 enable_fast_install=yes
6284 fi
6285 done
6286 IFS="$lt_save_ifs"
6287 ;;
6288 esac
6289else
6290 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006291fi
6292
mlcreech636a9952008-05-05 22:52:56 +00006293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303# This can be used to rebuild libtool when needed
6304LIBTOOL_DEPS="$ltmain"
6305
6306# Always use our own libtool.
6307LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333test -z "$LN_S" && LN_S="ln -s"
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348if test -n "${ZSH_VERSION+set}" ; then
6349 setopt NO_GLOB_SUBST
6350fi
6351
drhf922ca42015-05-14 15:39:18 +00006352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006353$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006354if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006355 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006356else
6357 rm -f .libs 2>/dev/null
6358mkdir .libs 2>/dev/null
6359if test -d .libs; then
6360 lt_cv_objdir=.libs
6361else
6362 # MS-DOS does not allow filenames that begin with a dot.
6363 lt_cv_objdir=_libs
6364fi
6365rmdir .libs 2>/dev/null
6366fi
drhf922ca42015-05-14 15:39:18 +00006367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006368$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006369objdir=$lt_cv_objdir
6370
6371
6372
6373
6374
mlcreech636a9952008-05-05 22:52:56 +00006375cat >>confdefs.h <<_ACEOF
6376#define LT_OBJDIR "$lt_cv_objdir/"
6377_ACEOF
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
a.rottmann9bc8b932004-02-29 15:18:31 +00006395case $host_os in
6396aix3*)
6397 # AIX sometimes has problems with the GCC collect2 program. For some
6398 # reason, if we set the COLLECT_NAMES environment variable, the problems
6399 # vanish in a puff of smoke.
6400 if test "X${COLLECT_NAMES+set}" != Xset; then
6401 COLLECT_NAMES=
6402 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006403 fi
6404 ;;
6405esac
6406
a.rottmann9bc8b932004-02-29 15:18:31 +00006407# Sed substitution that helps us do robust quoting. It backslashifies
6408# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006409sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006410
6411# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006412double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006413
6414# Sed substitution to delay expansion of an escaped shell variable in a
6415# double_quote_subst'ed string.
6416delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6417
mlcreech636a9952008-05-05 22:52:56 +00006418# Sed substitution to delay expansion of an escaped single quote.
6419delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6420
a.rottmann9bc8b932004-02-29 15:18:31 +00006421# Sed substitution to avoid accidental globbing in evaled expressions
6422no_glob_subst='s/\*/\\\*/g'
6423
a.rottmann9bc8b932004-02-29 15:18:31 +00006424# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006425ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006426can_build_shared=yes
6427
vapier7f19c022007-02-17 14:46:31 +00006428# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006429# which needs '.lib').
6430libext=a
mlcreech636a9952008-05-05 22:52:56 +00006431
a.rottmann9bc8b932004-02-29 15:18:31 +00006432with_gnu_ld="$lt_cv_prog_gnu_ld"
6433
a.rottmann84e63352003-03-24 09:42:16 +00006434old_CC="$CC"
6435old_CFLAGS="$CFLAGS"
6436
6437# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006438test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006439test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006440test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006441test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006442test -z "$ac_objext" && ac_objext=o
6443
vapier7f19c022007-02-17 14:46:31 +00006444for cc_temp in $compiler""; do
6445 case $cc_temp in
6446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6448 \-*) ;;
6449 *) break;;
6450 esac
6451done
mlcreech636a9952008-05-05 22:52:56 +00006452cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006453
6454
a.rottmann9bc8b932004-02-29 15:18:31 +00006455# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006456test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006457case $deplibs_check_method in
6458file_magic*)
6459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006461$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006462if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006463 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006464else
a.rottmann9bc8b932004-02-29 15:18:31 +00006465 case $MAGIC_CMD in
6466[\\/*] | ?:[\\/]*)
6467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6468 ;;
6469*)
6470 lt_save_MAGIC_CMD="$MAGIC_CMD"
6471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6473 for ac_dir in $ac_dummy; do
6474 IFS="$lt_save_ifs"
6475 test -z "$ac_dir" && ac_dir=.
6476 if test -f $ac_dir/${ac_tool_prefix}file; then
6477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6478 if test -n "$file_magic_test_file"; then
6479 case $deplibs_check_method in
6480 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6484 $EGREP "$file_magic_regex" > /dev/null; then
6485 :
6486 else
mlcreech636a9952008-05-05 22:52:56 +00006487 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006488
a.rottmann9bc8b932004-02-29 15:18:31 +00006489*** Warning: the command libtool uses to detect shared libraries,
6490*** $file_magic_cmd, produces output that libtool cannot recognize.
6491*** The result is that libtool may fail to recognize shared libraries
6492*** as such. This will affect the creation of libtool libraries that
6493*** depend on shared libraries, but programs linked with such libtool
6494*** libraries will work regardless of this problem. Nevertheless, you
6495*** may want to report the problem to your system manager and/or to
6496*** bug-libtool@gnu.org
6497
mlcreech636a9952008-05-05 22:52:56 +00006498_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006499 fi ;;
6500 esac
6501 fi
6502 break
6503 fi
6504 done
6505 IFS="$lt_save_ifs"
6506 MAGIC_CMD="$lt_save_MAGIC_CMD"
6507 ;;
6508esac
6509fi
6510
6511MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006514$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006515else
drhf922ca42015-05-14 15:39:18 +00006516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006517$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006518fi
6519
mlcreech636a9952008-05-05 22:52:56 +00006520
6521
6522
6523
a.rottmann9bc8b932004-02-29 15:18:31 +00006524if test -z "$lt_cv_path_MAGIC_CMD"; then
6525 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006527$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006528if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006529 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006530else
6531 case $MAGIC_CMD in
6532[\\/*] | ?:[\\/]*)
6533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6534 ;;
6535*)
6536 lt_save_MAGIC_CMD="$MAGIC_CMD"
6537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6539 for ac_dir in $ac_dummy; do
6540 IFS="$lt_save_ifs"
6541 test -z "$ac_dir" && ac_dir=.
6542 if test -f $ac_dir/file; then
6543 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6544 if test -n "$file_magic_test_file"; then
6545 case $deplibs_check_method in
6546 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6550 $EGREP "$file_magic_regex" > /dev/null; then
6551 :
6552 else
mlcreech636a9952008-05-05 22:52:56 +00006553 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006554
6555*** Warning: the command libtool uses to detect shared libraries,
6556*** $file_magic_cmd, produces output that libtool cannot recognize.
6557*** The result is that libtool may fail to recognize shared libraries
6558*** as such. This will affect the creation of libtool libraries that
6559*** depend on shared libraries, but programs linked with such libtool
6560*** libraries will work regardless of this problem. Nevertheless, you
6561*** may want to report the problem to your system manager and/or to
6562*** bug-libtool@gnu.org
6563
mlcreech636a9952008-05-05 22:52:56 +00006564_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006565 fi ;;
6566 esac
6567 fi
6568 break
6569 fi
6570 done
6571 IFS="$lt_save_ifs"
6572 MAGIC_CMD="$lt_save_MAGIC_CMD"
6573 ;;
6574esac
6575fi
6576
6577MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6578if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006580$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006581else
drhf922ca42015-05-14 15:39:18 +00006582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006583$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006584fi
6585
mlcreech636a9952008-05-05 22:52:56 +00006586
a.rottmann9bc8b932004-02-29 15:18:31 +00006587 else
6588 MAGIC_CMD=:
6589 fi
6590fi
6591
6592 fi
6593 ;;
6594esac
6595
a.rottmann9bc8b932004-02-29 15:18:31 +00006596# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006597
a.rottmann9bc8b932004-02-29 15:18:31 +00006598lt_save_CC="$CC"
6599ac_ext=c
6600ac_cpp='$CPP $CPPFLAGS'
6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604
6605
6606# Source file extension for C test sources.
6607ac_ext=c
6608
6609# Object file extension for compiled C test sources.
6610objext=o
6611objext=$objext
6612
6613# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006614lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006615
6616# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006617lt_simple_link_test_code='int main(){return(0);}'
6618
6619
6620
6621
6622
a.rottmann9bc8b932004-02-29 15:18:31 +00006623
6624
6625# If no C compiler was specified, use CC.
6626LTCC=${LTCC-"$CC"}
6627
vapier7f19c022007-02-17 14:46:31 +00006628# If no C compiler flags were specified, use CFLAGS.
6629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6630
a.rottmann9bc8b932004-02-29 15:18:31 +00006631# Allow CC to be a program name with arguments.
6632compiler=$CC
6633
mlcreech636a9952008-05-05 22:52:56 +00006634# Save the default compiler, since it gets overwritten when the other
6635# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6636compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006637
vapier7f19c022007-02-17 14:46:31 +00006638# save warnings/boilerplate of simple test code
6639ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006640echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6642_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006643$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006644
vapier7f19c022007-02-17 14:46:31 +00006645ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006646echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6648_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006649$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006650
6651
mlcreech636a9952008-05-05 22:52:56 +00006652if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006653
6654lt_prog_compiler_no_builtin_flag=
6655
6656if test "$GCC" = yes; then
6657 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6658
drhf922ca42015-05-14 15:39:18 +00006659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006660$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006661if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006662 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006663else
6664 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006665 ac_outfile=conftest.$ac_objext
6666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006667 lt_compiler_flag="-fno-rtti -fno-exceptions"
6668 # Insert the option either (1) after the last *FLAGS variable, or
6669 # (2) before a word containing "conftest.", or (3) at the end.
6670 # Note that $ac_compile itself does not contain backslashes and begins
6671 # with a dollar sign (not a hyphen), so the echo should work correctly.
6672 # The option is referenced via a variable to avoid confusing sed.
6673 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6676 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00006677 (eval echo "\"\$as_me:6677: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006678 (eval "$lt_compile" 2>conftest.err)
6679 ac_status=$?
6680 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00006681 echo "$as_me:6681: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006682 if (exit $ac_status) && test -s "$ac_outfile"; then
6683 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006684 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006685 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006688 lt_cv_prog_compiler_rtti_exceptions=yes
6689 fi
6690 fi
mlcreech636a9952008-05-05 22:52:56 +00006691 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006692
6693fi
drhf922ca42015-05-14 15:39:18 +00006694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006695$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006696
6697if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6699else
6700 :
6701fi
6702
6703fi
6704
mlcreech636a9952008-05-05 22:52:56 +00006705
6706
6707
6708
6709
6710 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006711lt_prog_compiler_pic=
6712lt_prog_compiler_static=
6713
drhf922ca42015-05-14 15:39:18 +00006714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006715$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006716
drh71eb93e2001-09-28 01:34:43 +00006717 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006718 lt_prog_compiler_wl='-Wl,'
6719 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006720
6721 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006722 aix*)
6723 # All AIX code is PIC.
6724 if test "$host_cpu" = ia64; then
6725 # AIX 5 now supports IA64 processor
6726 lt_prog_compiler_static='-Bstatic'
6727 fi
drh71eb93e2001-09-28 01:34:43 +00006728 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006729
drh71eb93e2001-09-28 01:34:43 +00006730 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006731 case $host_cpu in
6732 powerpc)
6733 # see comment about AmigaOS4 .so support
6734 lt_prog_compiler_pic='-fPIC'
6735 ;;
6736 m68k)
6737 # FIXME: we need at least 68020 code to build shared libraries, but
6738 # adding the `-m68020' flag to GCC prevents building anything better,
6739 # like `-m68040'.
6740 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6741 ;;
6742 esac
drh71eb93e2001-09-28 01:34:43 +00006743 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006744
mlcreech636a9952008-05-05 22:52:56 +00006745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006746 # PIC is the default for these OSes.
6747 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006748
vapier6acb2cf2009-01-28 04:46:28 +00006749 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006750 # This hack is so that the source file can tell whether it is being
6751 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6753 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006754 lt_prog_compiler_pic='-DDLL_EXPORT'
6755 ;;
6756
drh71eb93e2001-09-28 01:34:43 +00006757 darwin* | rhapsody*)
6758 # PIC is the default on this platform
6759 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006760 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006762
a.rottmann9bc8b932004-02-29 15:18:31 +00006763 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006764 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6765 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6766 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006767 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006768 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006769 # +Z the default
6770 ;;
6771 *)
6772 lt_prog_compiler_pic='-fPIC'
6773 ;;
6774 esac
6775 ;;
6776
mlcreech636a9952008-05-05 22:52:56 +00006777 interix[3-9]*)
6778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6779 # Instead, we relocate shared libraries at runtime.
6780 ;;
6781
6782 msdosdjgpp*)
6783 # Just because we use GCC doesn't mean we suddenly get shared libraries
6784 # on systems that don't support them.
6785 lt_prog_compiler_can_build_shared=no
6786 enable_shared=no
6787 ;;
6788
6789 *nto* | *qnx*)
6790 # QNX uses GNU C++, but need to define -shared option too, otherwise
6791 # it will coredump.
6792 lt_prog_compiler_pic='-fPIC -shared'
6793 ;;
6794
6795 sysv4*MP*)
6796 if test -d /usr/nec; then
6797 lt_prog_compiler_pic=-Kconform_pic
6798 fi
6799 ;;
6800
drh71eb93e2001-09-28 01:34:43 +00006801 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006803 ;;
6804 esac
6805 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006806 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006807 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 aix*)
6809 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006810 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006811 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006812 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006813 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006815 fi
6816 ;;
6817
vapier6acb2cf2009-01-28 04:46:28 +00006818 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006819 # This hack is so that the source file can tell whether it is being
6820 # built for inclusion in a dll (and should export symbols for example).
6821 lt_prog_compiler_pic='-DDLL_EXPORT'
6822 ;;
6823
a.rottmann84e63352003-03-24 09:42:16 +00006824 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006825 lt_prog_compiler_wl='-Wl,'
6826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6827 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006828 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006829 hppa*64*|ia64*)
6830 # +Z the default
6831 ;;
6832 *)
6833 lt_prog_compiler_pic='+Z'
6834 ;;
6835 esac
6836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6837 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006838 ;;
6839
6840 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006841 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006842 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006843 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006844 ;;
6845
mlcreech636a9952008-05-05 22:52:56 +00006846 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006847 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006848 # old Intel for x86_64 which still supported -KPIC.
6849 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006850 lt_prog_compiler_wl='-Wl,'
6851 lt_prog_compiler_pic='-KPIC'
6852 lt_prog_compiler_static='-static'
6853 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006854 # icc used to be incompatible with GCC.
6855 # ICC 10 doesn't accept -KPIC any more.
6856 icc* | ifort*)
6857 lt_prog_compiler_wl='-Wl,'
6858 lt_prog_compiler_pic='-fPIC'
6859 lt_prog_compiler_static='-static'
6860 ;;
6861 # Lahey Fortran 8.1.
6862 lf95*)
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='--shared'
6865 lt_prog_compiler_static='--static'
6866 ;;
vapier7f19c022007-02-17 14:46:31 +00006867 pgcc* | pgf77* | pgf90* | pgf95*)
6868 # Portland Group compilers (*not* the Pentium gcc compiler,
6869 # which looks to be a dead project)
6870 lt_prog_compiler_wl='-Wl,'
6871 lt_prog_compiler_pic='-fpic'
6872 lt_prog_compiler_static='-Bstatic'
6873 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006874 ccc*)
6875 lt_prog_compiler_wl='-Wl,'
6876 # All Alpha code is PIC.
6877 lt_prog_compiler_static='-non_shared'
6878 ;;
mlcreech636a9952008-05-05 22:52:56 +00006879 xl*)
6880 # IBM XL C 8.0/Fortran 10.1 on PPC
6881 lt_prog_compiler_wl='-Wl,'
6882 lt_prog_compiler_pic='-qpic'
6883 lt_prog_compiler_static='-qstaticlink'
6884 ;;
6885 *)
6886 case `$CC -V 2>&1 | sed 5q` in
6887 *Sun\ C*)
6888 # Sun C 5.9
6889 lt_prog_compiler_pic='-KPIC'
6890 lt_prog_compiler_static='-Bstatic'
6891 lt_prog_compiler_wl='-Wl,'
6892 ;;
6893 *Sun\ F*)
6894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6895 lt_prog_compiler_pic='-KPIC'
6896 lt_prog_compiler_static='-Bstatic'
6897 lt_prog_compiler_wl=''
6898 ;;
6899 esac
6900 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006901 esac
drh71eb93e2001-09-28 01:34:43 +00006902 ;;
6903
mlcreech636a9952008-05-05 22:52:56 +00006904 newsos6)
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6907 ;;
6908
6909 *nto* | *qnx*)
6910 # QNX uses GNU C++, but need to define -shared option too, otherwise
6911 # it will coredump.
6912 lt_prog_compiler_pic='-fPIC -shared'
6913 ;;
6914
drh71eb93e2001-09-28 01:34:43 +00006915 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006917 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006919 ;;
6920
mlcreech636a9952008-05-05 22:52:56 +00006921 rdos*)
6922 lt_prog_compiler_static='-non_shared'
6923 ;;
6924
drh71eb93e2001-09-28 01:34:43 +00006925 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006928 case $cc_basename in
6929 f77* | f90* | f95*)
6930 lt_prog_compiler_wl='-Qoption ld ';;
6931 *)
6932 lt_prog_compiler_wl='-Wl,';;
6933 esac
drh71eb93e2001-09-28 01:34:43 +00006934 ;;
6935
6936 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006937 lt_prog_compiler_wl='-Qoption ld '
6938 lt_prog_compiler_pic='-PIC'
6939 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006940 ;;
6941
vapier7f19c022007-02-17 14:46:31 +00006942 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006943 lt_prog_compiler_wl='-Wl,'
6944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006946 ;;
6947
6948 sysv4*MP*)
6949 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006950 lt_prog_compiler_pic='-Kconform_pic'
6951 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006952 fi
6953 ;;
6954
vapier7f19c022007-02-17 14:46:31 +00006955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-Bstatic'
6959 ;;
6960
6961 unicos*)
6962 lt_prog_compiler_wl='-Wl,'
6963 lt_prog_compiler_can_build_shared=no
6964 ;;
6965
a.rottmann9bc8b932004-02-29 15:18:31 +00006966 uts4*)
6967 lt_prog_compiler_pic='-pic'
6968 lt_prog_compiler_static='-Bstatic'
6969 ;;
6970
drh71eb93e2001-09-28 01:34:43 +00006971 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006972 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006973 ;;
6974 esac
6975 fi
6976
mlcreech636a9952008-05-05 22:52:56 +00006977case $host_os in
6978 # For platforms which do not support PIC, -DPIC is meaningless:
6979 *djgpp*)
6980 lt_prog_compiler_pic=
6981 ;;
6982 *)
6983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6984 ;;
6985esac
drhf922ca42015-05-14 15:39:18 +00006986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006987$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006988
6989
6990
6991
6992
drh71eb93e2001-09-28 01:34:43 +00006993
a.rottmann9bc8b932004-02-29 15:18:31 +00006994#
6995# Check to make sure the PIC flag actually works.
6996#
6997if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006999$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007000if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007001 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007002else
mlcreech636a9952008-05-05 22:52:56 +00007003 lt_cv_prog_compiler_pic_works=no
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7007 # Insert the option either (1) after the last *FLAGS variable, or
7008 # (2) before a word containing "conftest.", or (3) at the end.
7009 # Note that $ac_compile itself does not contain backslashes and begins
7010 # with a dollar sign (not a hyphen), so the echo should work correctly.
7011 # The option is referenced via a variable to avoid confusing sed.
7012 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7015 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007016 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007017 (eval "$lt_compile" 2>conftest.err)
7018 ac_status=$?
7019 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007020 echo "$as_me:7020: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007021 if (exit $ac_status) && test -s "$ac_outfile"; then
7022 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007023 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007027 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007028 fi
7029 fi
mlcreech636a9952008-05-05 22:52:56 +00007030 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007031
a.rottmann9bc8b932004-02-29 15:18:31 +00007032fi
drhf922ca42015-05-14 15:39:18 +00007033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007034$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007035
mlcreech636a9952008-05-05 22:52:56 +00007036if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007037 case $lt_prog_compiler_pic in
7038 "" | " "*) ;;
7039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7040 esac
drh71eb93e2001-09-28 01:34:43 +00007041else
a.rottmann9bc8b932004-02-29 15:18:31 +00007042 lt_prog_compiler_pic=
7043 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007044fi
7045
a.rottmann84e63352003-03-24 09:42:16 +00007046fi
mlcreech636a9952008-05-05 22:52:56 +00007047
7048
7049
7050
7051
a.rottmann84e63352003-03-24 09:42:16 +00007052
vapier7f19c022007-02-17 14:46:31 +00007053#
7054# Check to make sure the static flag actually works.
7055#
7056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007059if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007060 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007061else
mlcreech636a9952008-05-05 22:52:56 +00007062 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007063 save_LDFLAGS="$LDFLAGS"
7064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7067 # The linker can only warn and ignore the option if not recognized
7068 # So say no if there are warnings
7069 if test -s conftest.err; then
7070 # Append any errors to the config.log.
7071 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7074 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007075 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007076 fi
7077 else
mlcreech636a9952008-05-05 22:52:56 +00007078 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007079 fi
7080 fi
mlcreech636a9952008-05-05 22:52:56 +00007081 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007082 LDFLAGS="$save_LDFLAGS"
7083
7084fi
drhf922ca42015-05-14 15:39:18 +00007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007086$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007087
mlcreech636a9952008-05-05 22:52:56 +00007088if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007089 :
7090else
7091 lt_prog_compiler_static=
7092fi
7093
7094
mlcreech636a9952008-05-05 22:52:56 +00007095
7096
7097
7098
7099
drhf922ca42015-05-14 15:39:18 +00007100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007101$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007102if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007103 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007104else
a.rottmann9bc8b932004-02-29 15:18:31 +00007105 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007106 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 mkdir conftest
7108 cd conftest
7109 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007111
a.rottmann9bc8b932004-02-29 15:18:31 +00007112 lt_compiler_flag="-o out/conftest2.$ac_objext"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7120 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007121 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007122 (eval "$lt_compile" 2>out/conftest.err)
7123 ac_status=$?
7124 cat out/conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007125 echo "$as_me:7125: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7127 then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 lt_cv_prog_compiler_c_o=yes
7134 fi
7135 fi
vapier7f19c022007-02-17 14:46:31 +00007136 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007137 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007138 # SGI C++ compiler will create directory out/ii_files/ for
7139 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7141 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007142 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007143 $RM -r conftest
7144 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007145
7146fi
drhf922ca42015-05-14 15:39:18 +00007147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007148$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007149
7150
7151
7152
7153
7154
drhf922ca42015-05-14 15:39:18 +00007155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007156$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007157if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007158 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007159else
7160 lt_cv_prog_compiler_c_o=no
7161 $RM -r conftest 2>/dev/null
7162 mkdir conftest
7163 cd conftest
7164 mkdir out
7165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7166
7167 lt_compiler_flag="-o out/conftest2.$ac_objext"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 lt_compile=`echo "$ac_compile" | $SED \
7173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7175 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007176 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007177 (eval "$lt_compile" 2>out/conftest.err)
7178 ac_status=$?
7179 cat out/conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007180 echo "$as_me:7180: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7182 then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings
7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7188 lt_cv_prog_compiler_c_o=yes
7189 fi
7190 fi
7191 chmod u+w . 2>&5
7192 $RM conftest*
7193 # SGI C++ compiler will create directory out/ii_files/ for
7194 # template instantiation
7195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7196 $RM out/* && rmdir out
7197 cd ..
7198 $RM -r conftest
7199 $RM conftest*
7200
7201fi
drhf922ca42015-05-14 15:39:18 +00007202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007203$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007204
7205
drh71eb93e2001-09-28 01:34:43 +00007206
a.rottmann84e63352003-03-24 09:42:16 +00007207
drh71eb93e2001-09-28 01:34:43 +00007208hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007209if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007210 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007212$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007213 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007214 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7216 touch conftest.a
7217 ln conftest.a conftest.b 2>&5 || hard_links=no
7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007220$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007221 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007222 { $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 +00007223$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007224 need_locks=warn
7225 fi
7226else
7227 need_locks=no
7228fi
7229
mlcreech636a9952008-05-05 22:52:56 +00007230
7231
7232
7233
7234
drhf922ca42015-05-14 15:39:18 +00007235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007237
7238 runpath_var=
7239 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007240 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 archive_cmds=
7242 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007243 compiler_needs_object=no
7244 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7247 hardcode_automatic=no
7248 hardcode_direct=no
7249 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007250 hardcode_libdir_flag_spec=
7251 hardcode_libdir_flag_spec_ld=
7252 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007253 hardcode_minus_L=no
7254 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007255 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007256 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007257 module_cmds=
7258 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007259 old_archive_from_new_cmds=
7260 old_archive_from_expsyms_cmds=
7261 thread_safe_flag_spec=
7262 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 # include_expsyms should be a list of space-separated symbols to be *always*
7264 # included in the symbol list
7265 include_expsyms=
7266 # exclude_expsyms can be an extended regexp of symbols to exclude
7267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007270 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272 # platforms (ab)use it in PIC code, but their linkers get confused if
7273 # the symbol is explicitly referenced. Since portable code cannot
7274 # rely on this symbol name, it's probably fine to never include it in
7275 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007276 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007277 extract_expsyms_cmds=
7278
7279 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007280 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7282 # When not using gcc, we currently assume that we are using
7283 # Microsoft Visual C++.
7284 if test "$GCC" != yes; then
7285 with_gnu_ld=no
7286 fi
7287 ;;
vapier7f19c022007-02-17 14:46:31 +00007288 interix*)
7289 # we just hope/assume this is gcc and not c89 (= MSVC++)
7290 with_gnu_ld=yes
7291 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007292 openbsd*)
7293 with_gnu_ld=no
7294 ;;
7295 esac
7296
7297 ld_shlibs=yes
7298 if test "$with_gnu_ld" = yes; then
7299 # If archive_cmds runs LD, not CC, wlarc should be empty
7300 wlarc='${wl}'
7301
vapier7f19c022007-02-17 14:46:31 +00007302 # Set some defaults for GNU ld with shared library support. These
7303 # are reset later if shared libraries are not supported. Putting them
7304 # here allows them to be overridden if necessary.
7305 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007307 export_dynamic_flag_spec='${wl}--export-dynamic'
7308 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007309 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7310 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7311 else
7312 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007313 fi
7314 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007315 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007316 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7317 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7318 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7319 *\ 2.11.*) ;; # other 2.11 versions
7320 *) supports_anon_versioning=yes ;;
7321 esac
7322
a.rottmann9bc8b932004-02-29 15:18:31 +00007323 # See if GNU ld supports shared libraries.
7324 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007325 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007326 # On AIX/PPC, the GNU linker is very broken
7327 if test "$host_cpu" != ia64; then
7328 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007329 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007330
7331*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7332*** to be unable to reliably create shared libraries on AIX.
7333*** Therefore, libtool is disabling shared libraries support. If you
7334*** really care for shared libraries, you may want to modify your PATH
7335*** so that a non-GNU linker is found, and then restart.
7336
mlcreech636a9952008-05-05 22:52:56 +00007337_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007338 fi
7339 ;;
7340
7341 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007342 case $host_cpu in
7343 powerpc)
7344 # see comment about AmigaOS4 .so support
7345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7346 archive_expsym_cmds=''
7347 ;;
7348 m68k)
7349 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)'
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_minus_L=yes
7352 ;;
7353 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007354 ;;
7355
7356 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007358 allow_undefined_flag=unsupported
7359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7360 # support --undefined. This deserves some investigation. FIXME
7361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7362 else
7363 ld_shlibs=no
7364 fi
7365 ;;
7366
vapier6acb2cf2009-01-28 04:46:28 +00007367 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007369 # as there is no search path for DLLs.
7370 hardcode_libdir_flag_spec='-L$libdir'
7371 allow_undefined_flag=unsupported
7372 always_export_symbols=no
7373 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007374 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 +00007375
mlcreech636a9952008-05-05 22:52:56 +00007376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007377 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 +00007378 # If the export-symbols file already is a .def file (1st line
7379 # is EXPORTS), use it as is; otherwise, prepend...
7380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7381 cp $export_symbols $output_objdir/$soname.def;
7382 else
7383 echo EXPORTS > $output_objdir/$soname.def;
7384 cat $export_symbols >> $output_objdir/$soname.def;
7385 fi~
vapier7f19c022007-02-17 14:46:31 +00007386 $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 +00007387 else
7388 ld_shlibs=no
7389 fi
7390 ;;
7391
mlcreech636a9952008-05-05 22:52:56 +00007392 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007393 hardcode_direct=no
7394 hardcode_shlibpath_var=no
7395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7396 export_dynamic_flag_spec='${wl}-E'
7397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7398 # Instead, shared libraries are loaded at an image base (0x10000000 by
7399 # default) and relocated if they conflict, which is a slow very memory
7400 # consuming and fragmenting process. To avoid this, we pick a random,
7401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7404 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'
7405 ;;
7406
mlcreech636a9952008-05-05 22:52:56 +00007407 gnu* | linux* | tpf* | k*bsd*-gnu)
7408 tmp_diet=no
7409 if test "$host_os" = linux-dietlibc; then
7410 case $cc_basename in
7411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7412 esac
7413 fi
7414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7415 && test "$tmp_diet" = no
7416 then
vapier7f19c022007-02-17 14:46:31 +00007417 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007418 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007419 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007420 pgcc*) # Portland Group C compiler
7421 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 +00007422 tmp_addflag=' $pic_flag'
7423 ;;
7424 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007425 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 +00007426 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007428 tmp_addflag=' -i_dynamic' ;;
7429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7430 tmp_addflag=' -i_dynamic -nofor_main' ;;
7431 ifc* | ifort*) # Intel Fortran compiler
7432 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007433 lf95*) # Lahey Fortran 8.1
7434 whole_archive_flag_spec=
7435 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007436 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7437 tmp_sharedflag='-qmkshrobj'
7438 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007439 esac
mlcreech636a9952008-05-05 22:52:56 +00007440 case `$CC -V 2>&1 | sed 5q` in
7441 *Sun\ C*) # Sun C 5.9
7442 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'
7443 compiler_needs_object=yes
7444 tmp_sharedflag='-G' ;;
7445 *Sun\ F*) # Sun Fortran 8.3
7446 tmp_sharedflag='-G' ;;
7447 esac
7448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007449
mlcreech636a9952008-05-05 22:52:56 +00007450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7455 fi
7456
7457 case $cc_basename in
7458 xlf*)
7459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7461 hardcode_libdir_flag_spec=
7462 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7463 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7464 if test "x$supports_anon_versioning" = xyes; then
7465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7467 echo "local: *; };" >> $output_objdir/$libname.ver~
7468 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7469 fi
7470 ;;
7471 esac
vapier7f19c022007-02-17 14:46:31 +00007472 else
mlcreech636a9952008-05-05 22:52:56 +00007473 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007474 fi
7475 ;;
7476
7477 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7480 wlarc=
7481 else
7482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7484 fi
7485 ;;
7486
vapier7f19c022007-02-17 14:46:31 +00007487 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007489 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007490 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007491
7492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7493*** create shared libraries on Solaris systems. Therefore, libtool
7494*** is disabling shared libraries support. We urge you to upgrade GNU
7495*** binutils to release 2.9.1 or newer. Another option is to modify
7496*** your PATH or compiler configuration so that the native linker is
7497*** used, and then restart.
7498
mlcreech636a9952008-05-05 22:52:56 +00007499_LT_EOF
7500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7503 else
7504 ld_shlibs=no
7505 fi
7506 ;;
7507
vapier7f19c022007-02-17 14:46:31 +00007508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7509 case `$LD -v 2>&1` in
7510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7511 ld_shlibs=no
7512 cat <<_LT_EOF 1>&2
7513
7514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7515*** reliably create shared libraries on SCO systems. Therefore, libtool
7516*** is disabling shared libraries support. We urge you to upgrade GNU
7517*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7518*** your PATH or compiler configuration so that the native linker is
7519*** used, and then restart.
7520
7521_LT_EOF
7522 ;;
7523 *)
mlcreech636a9952008-05-05 22:52:56 +00007524 # For security reasons, it is highly recommended that you always
7525 # use absolute paths for naming shared libraries, and exclude the
7526 # DT_RUNPATH tag from executables and libraries. But doing so
7527 # requires that you compile everything twice, which is a pain.
7528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7531 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 +00007532 else
7533 ld_shlibs=no
7534 fi
7535 ;;
7536 esac
7537 ;;
7538
a.rottmann9bc8b932004-02-29 15:18:31 +00007539 sunos4*)
7540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7541 wlarc=
7542 hardcode_direct=yes
7543 hardcode_shlibpath_var=no
7544 ;;
7545
a.rottmann9bc8b932004-02-29 15:18:31 +00007546 *)
mlcreech636a9952008-05-05 22:52:56 +00007547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7550 else
7551 ld_shlibs=no
7552 fi
7553 ;;
7554 esac
7555
vapier7f19c022007-02-17 14:46:31 +00007556 if test "$ld_shlibs" = no; then
7557 runpath_var=
7558 hardcode_libdir_flag_spec=
7559 export_dynamic_flag_spec=
7560 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007561 fi
7562 else
7563 # PORTME fill in a description of your system's linker (not GNU ld)
7564 case $host_os in
7565 aix3*)
7566 allow_undefined_flag=unsupported
7567 always_export_symbols=yes
7568 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'
7569 # Note: this linker hardcodes the directories in LIBPATH if there
7570 # are no directories specified by -L.
7571 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007573 # Neither direct hardcoding nor static linking is supported with a
7574 # broken collect2.
7575 hardcode_direct=unsupported
7576 fi
7577 ;;
7578
mlcreech636a9952008-05-05 22:52:56 +00007579 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007580 if test "$host_cpu" = ia64; then
7581 # On IA64, the linker does run time linking by default, so we don't
7582 # have to do anything special.
7583 aix_use_runtimelinking=no
7584 exp_sym_flag='-Bexport'
7585 no_entry_flag=""
7586 else
7587 # If we're using GNU nm, then we don't want the "-C" option.
7588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007589 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7590 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 +00007591 else
mlcreech636a9952008-05-05 22:52:56 +00007592 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 +00007593 fi
7594 aix_use_runtimelinking=no
7595
7596 # Test if we are trying to use run time linking or normal
7597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7598 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007599 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007600 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7602 aix_use_runtimelinking=yes
7603 break
7604 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007605 done
vapier7f19c022007-02-17 14:46:31 +00007606 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007607 esac
7608
7609 exp_sym_flag='-bexport'
7610 no_entry_flag='-bnoentry'
7611 fi
7612
7613 # When large executables or shared objects are built, AIX ld can
7614 # have problems creating the table of contents. If linking a library
7615 # or program results in "error TOC overflow" add -mminimal-toc to
7616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7618
7619 archive_cmds=''
7620 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007621 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 hardcode_libdir_separator=':'
7623 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007624 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007625
7626 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007627 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007628 # We only want to do this on AIX 4.2 and lower, the check
7629 # below for broken collect2 doesn't work under 4.3+
7630 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007631 if test -f "$collect2name" &&
7632 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007633 then
mlcreech636a9952008-05-05 22:52:56 +00007634 # We have reworked collect2
7635 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007636 else
mlcreech636a9952008-05-05 22:52:56 +00007637 # We have old collect2
7638 hardcode_direct=unsupported
7639 # It fails to find uninstalled libraries when the uninstalled
7640 # path is not listed in the libpath. Setting hardcode_minus_L
7641 # to unsupported forces relinking
7642 hardcode_minus_L=yes
7643 hardcode_libdir_flag_spec='-L$libdir'
7644 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007645 fi
vapier7f19c022007-02-17 14:46:31 +00007646 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 esac
7648 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007649 if test "$aix_use_runtimelinking" = yes; then
7650 shared_flag="$shared_flag "'${wl}-G'
7651 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 else
7653 # not using gcc
7654 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7656 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007657 shared_flag='-G'
7658 else
vapier7f19c022007-02-17 14:46:31 +00007659 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007660 shared_flag='${wl}-G'
7661 else
7662 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007663 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007664 fi
7665 fi
7666
vapier6acb2cf2009-01-28 04:46:28 +00007667 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007668 # It seems that -bexpall does not export symbols beginning with
7669 # underscore (_), so it is better to generate a list of symbols to export.
7670 always_export_symbols=yes
7671 if test "$aix_use_runtimelinking" = yes; then
7672 # Warning - without using the other runtime loading flags (-brtl),
7673 # -berok will link without error, but may produce a broken library.
7674 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007675 # Determine the default libpath from the value encoded in an
7676 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007678/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007679
a.rottmann84e63352003-03-24 09:42:16 +00007680int
7681main ()
7682{
a.rottmann9bc8b932004-02-29 15:18:31 +00007683
a.rottmann84e63352003-03-24 09:42:16 +00007684 ;
7685 return 0;
7686}
7687_ACEOF
drhf922ca42015-05-14 15:39:18 +00007688if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007689
mlcreech636a9952008-05-05 22:52:56 +00007690lt_aix_libpath_sed='
7691 /Import File Strings/,/^$/ {
7692 /^0/ {
7693 s/^0 *\(.*\)$/\1/
7694 p
7695 }
7696 }'
7697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007698# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007699if test -z "$aix_libpath"; then
7700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7701fi
a.rottmann84e63352003-03-24 09:42:16 +00007702fi
drhf922ca42015-05-14 15:39:18 +00007703rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007706
mlcreech636a9952008-05-05 22:52:56 +00007707 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7708 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"
7709 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007710 if test "$host_cpu" = ia64; then
7711 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7712 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007713 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 +00007714 else
mlcreech636a9952008-05-05 22:52:56 +00007715 # Determine the default libpath from the value encoded in an
7716 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007718/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007719
a.rottmann9bc8b932004-02-29 15:18:31 +00007720int
7721main ()
7722{
a.rottmann84e63352003-03-24 09:42:16 +00007723
a.rottmann9bc8b932004-02-29 15:18:31 +00007724 ;
7725 return 0;
7726}
7727_ACEOF
drhf922ca42015-05-14 15:39:18 +00007728if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007729
mlcreech636a9952008-05-05 22:52:56 +00007730lt_aix_libpath_sed='
7731 /Import File Strings/,/^$/ {
7732 /^0/ {
7733 s/^0 *\(.*\)$/\1/
7734 p
7735 }
7736 }'
7737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007738# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007739if test -z "$aix_libpath"; then
7740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7741fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007742fi
drhf922ca42015-05-14 15:39:18 +00007743rm -f core conftest.err conftest.$ac_objext \
7744 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007746
a.rottmann9bc8b932004-02-29 15:18:31 +00007747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7748 # Warning - without using the other run time loading flags,
7749 # -berok will link without error, but may produce a broken library.
7750 no_undefined_flag=' ${wl}-bernotok'
7751 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007752 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007753 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007754 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007755 # This is similar to how AIX traditionally builds its shared libraries.
7756 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 +00007757 fi
7758 fi
a.rottmann84e63352003-03-24 09:42:16 +00007759 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007760
7761 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007762 case $host_cpu in
7763 powerpc)
7764 # see comment about AmigaOS4 .so support
7765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7766 archive_expsym_cmds=''
7767 ;;
7768 m68k)
7769 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)'
7770 hardcode_libdir_flag_spec='-L$libdir'
7771 hardcode_minus_L=yes
7772 ;;
7773 esac
a.rottmann84e63352003-03-24 09:42:16 +00007774 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007775
vapier7f19c022007-02-17 14:46:31 +00007776 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007777 export_dynamic_flag_spec=-rdynamic
7778 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007779
vapier6acb2cf2009-01-28 04:46:28 +00007780 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007781 # When not using gcc, we currently assume that we are using
7782 # Microsoft Visual C++.
7783 # hardcode_libdir_flag_spec is actually meaningless, as there is
7784 # no search path for DLLs.
7785 hardcode_libdir_flag_spec=' '
7786 allow_undefined_flag=unsupported
7787 # Tell ltmain to make .lib files, not .a files.
7788 libext=lib
7789 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007790 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007791 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007792 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 +00007793 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007794 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007796 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007797 fix_srcfile_path='`cygpath -w "$srcfile"`'
7798 enable_shared_with_static_runtimes=yes
7799 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007800
a.rottmann9bc8b932004-02-29 15:18:31 +00007801 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007802
7803
7804 archive_cmds_need_lc=no
7805 hardcode_direct=no
7806 hardcode_automatic=yes
7807 hardcode_shlibpath_var=unsupported
7808 whole_archive_flag_spec=''
7809 link_all_deplibs=yes
7810 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007811 case $cc_basename in
7812 ifort*) _lt_dar_can_shared=yes ;;
7813 *) _lt_dar_can_shared=$GCC ;;
7814 esac
7815 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007816 output_verbose_link_cmd=echo
7817 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7818 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7819 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}"
7820 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}"
7821
7822 else
7823 ld_shlibs=no
7824 fi
7825
a.rottmann9bc8b932004-02-29 15:18:31 +00007826 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007827
a.rottmann9bc8b932004-02-29 15:18:31 +00007828 dgux*)
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_libdir_flag_spec='-L$libdir'
7831 hardcode_shlibpath_var=no
7832 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007833
a.rottmann9bc8b932004-02-29 15:18:31 +00007834 freebsd1*)
7835 ld_shlibs=no
7836 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007837
a.rottmann9bc8b932004-02-29 15:18:31 +00007838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7839 # support. Future versions do this automatically, but an explicit c++rt0.o
7840 # does not break anything, and helps significantly (at the cost of a little
7841 # extra space).
7842 freebsd2.2*)
7843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7844 hardcode_libdir_flag_spec='-R$libdir'
7845 hardcode_direct=yes
7846 hardcode_shlibpath_var=no
7847 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007848
a.rottmann9bc8b932004-02-29 15:18:31 +00007849 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7850 freebsd2*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_direct=yes
7853 hardcode_minus_L=yes
7854 hardcode_shlibpath_var=no
7855 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007856
a.rottmann9bc8b932004-02-29 15:18:31 +00007857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007858 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007859 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7860 hardcode_libdir_flag_spec='-R$libdir'
7861 hardcode_direct=yes
7862 hardcode_shlibpath_var=no
7863 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007864
a.rottmann9bc8b932004-02-29 15:18:31 +00007865 hpux9*)
7866 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007867 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 +00007868 else
mlcreech636a9952008-05-05 22:52:56 +00007869 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 +00007870 fi
7871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7872 hardcode_libdir_separator=:
7873 hardcode_direct=yes
7874
7875 # hardcode_minus_L: Not really in the search PATH,
7876 # but as the default location of the library.
7877 hardcode_minus_L=yes
7878 export_dynamic_flag_spec='${wl}-E'
7879 ;;
7880
vapier7f19c022007-02-17 14:46:31 +00007881 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7884 else
7885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7886 fi
7887 if test "$with_gnu_ld" = no; then
7888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007889 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007890 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007891 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007892 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007893 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007894 # hardcode_minus_L: Not really in the search PATH,
7895 # but as the default location of the library.
7896 hardcode_minus_L=yes
7897 fi
7898 ;;
7899
7900 hpux11*)
7901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7902 case $host_cpu in
7903 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007904 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7905 ;;
vapier7f19c022007-02-17 14:46:31 +00007906 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007907 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007908 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007909 *)
7910 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7911 ;;
7912 esac
7913 else
vapier7f19c022007-02-17 14:46:31 +00007914 case $host_cpu in
7915 hppa*64*)
7916 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7917 ;;
7918 ia64*)
7919 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 ;;
7921 *)
vapier7f19c022007-02-17 14:46:31 +00007922 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 +00007923 ;;
7924 esac
7925 fi
7926 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7928 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007929
vapier7f19c022007-02-17 14:46:31 +00007930 case $host_cpu in
7931 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007932 hardcode_direct=no
7933 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007934 ;;
7935 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007936 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007937 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 export_dynamic_flag_spec='${wl}-E'
7939
7940 # hardcode_minus_L: Not really in the search PATH,
7941 # but as the default location of the library.
7942 hardcode_minus_L=yes
7943 ;;
7944 esac
7945 fi
7946 ;;
7947
7948 irix5* | irix6* | nonstopux*)
7949 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007950 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'
7951 # Try to use the -exported_symbol ld option, if it does not
7952 # work, assume that -exports_file does not work either and
7953 # implicitly export all symbols.
7954 save_LDFLAGS="$LDFLAGS"
7955 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007958int foo(void) {}
7959_ACEOF
drhf922ca42015-05-14 15:39:18 +00007960if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007961 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'
7962
mlcreech636a9952008-05-05 22:52:56 +00007963fi
drhf922ca42015-05-14 15:39:18 +00007964rm -f core conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007966 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007967 else
mlcreech636a9952008-05-05 22:52:56 +00007968 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'
7969 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 +00007970 fi
mlcreech636a9952008-05-05 22:52:56 +00007971 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7973 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007974 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007975 link_all_deplibs=yes
7976 ;;
7977
vapier7f19c022007-02-17 14:46:31 +00007978 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7981 else
7982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7983 fi
7984 hardcode_libdir_flag_spec='-R$libdir'
7985 hardcode_direct=yes
7986 hardcode_shlibpath_var=no
7987 ;;
7988
7989 newsos6)
7990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7991 hardcode_direct=yes
7992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993 hardcode_libdir_separator=:
7994 hardcode_shlibpath_var=no
7995 ;;
7996
mlcreech636a9952008-05-05 22:52:56 +00007997 *nto* | *qnx*)
7998 ;;
7999
a.rottmann9bc8b932004-02-29 15:18:31 +00008000 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008001 if test -f /usr/libexec/ld.so; then
8002 hardcode_direct=yes
8003 hardcode_shlibpath_var=no
8004 hardcode_direct_absolute=yes
8005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8009 export_dynamic_flag_spec='${wl}-E'
8010 else
8011 case $host_os in
8012 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_libdir_flag_spec='-R$libdir'
8015 ;;
8016 *)
8017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8019 ;;
8020 esac
8021 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008022 else
mlcreech636a9952008-05-05 22:52:56 +00008023 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008024 fi
8025 ;;
8026
8027 os2*)
8028 hardcode_libdir_flag_spec='-L$libdir'
8029 hardcode_minus_L=yes
8030 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008031 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'
8032 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008033 ;;
8034
8035 osf3*)
8036 if test "$GCC" = yes; then
8037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008038 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 +00008039 else
8040 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008041 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 +00008042 fi
mlcreech636a9952008-05-05 22:52:56 +00008043 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8045 hardcode_libdir_separator=:
8046 ;;
8047
8048 osf4* | osf5*) # as osf3* with the addition of -msym flag
8049 if test "$GCC" = yes; then
8050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008051 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 +00008052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8053 else
8054 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008055 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'
8056 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~
8057 $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 +00008058
8059 # Both c and cxx compiler support -rpath directly
8060 hardcode_libdir_flag_spec='-rpath $libdir'
8061 fi
mlcreech636a9952008-05-05 22:52:56 +00008062 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008063 hardcode_libdir_separator=:
8064 ;;
8065
a.rottmann9bc8b932004-02-29 15:18:31 +00008066 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008067 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008068 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008069 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008070 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8072 $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 +00008073 else
mlcreech636a9952008-05-05 22:52:56 +00008074 case `$CC -V 2>&1` in
8075 *"Compilers 5.0"*)
8076 wlarc=''
8077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8080 ;;
8081 *)
8082 wlarc='${wl}'
8083 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8085 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8086 ;;
8087 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008088 fi
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 hardcode_shlibpath_var=no
8091 case $host_os in
8092 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008093 *)
mlcreech636a9952008-05-05 22:52:56 +00008094 # The compiler driver will combine and reorder linker options,
8095 # but understands `-z linker_flag'. GCC discards it without `$wl',
8096 # but is careful enough not to reorder.
8097 # Supported since Solaris 2.6 (maybe 2.5.1?)
8098 if test "$GCC" = yes; then
8099 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8100 else
8101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8102 fi
8103 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008104 esac
8105 link_all_deplibs=yes
8106 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008107
a.rottmann9bc8b932004-02-29 15:18:31 +00008108 sunos4*)
8109 if test "x$host_vendor" = xsequent; then
8110 # Use $CC to link under sequent, because it throws in some extra .o
8111 # files that make .init and .fini sections work.
8112 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8113 else
8114 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8115 fi
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_direct=yes
8118 hardcode_minus_L=yes
8119 hardcode_shlibpath_var=no
8120 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008121
a.rottmann9bc8b932004-02-29 15:18:31 +00008122 sysv4)
8123 case $host_vendor in
8124 sni)
8125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_direct=yes # is this really true???
8127 ;;
8128 siemens)
8129 ## LD is ld it makes a PLAMLIB
8130 ## CC just makes a GrossModule.
8131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8132 reload_cmds='$CC -r -o $output$reload_objs'
8133 hardcode_direct=no
8134 ;;
8135 motorola)
8136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8137 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8138 ;;
8139 esac
8140 runpath_var='LD_RUN_PATH'
8141 hardcode_shlibpath_var=no
8142 ;;
8143
8144 sysv4.3*)
8145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8146 hardcode_shlibpath_var=no
8147 export_dynamic_flag_spec='-Bexport'
8148 ;;
8149
8150 sysv4*MP*)
8151 if test -d /usr/nec; then
8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_shlibpath_var=no
8154 runpath_var=LD_RUN_PATH
8155 hardcode_runpath_var=yes
8156 ld_shlibs=yes
8157 fi
8158 ;;
8159
mlcreech636a9952008-05-05 22:52:56 +00008160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008161 no_undefined_flag='${wl}-z,text'
8162 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008163 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008164 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008165
a.rottmann9bc8b932004-02-29 15:18:31 +00008166 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168 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 +00008169 else
vapier7f19c022007-02-17 14:46:31 +00008170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8171 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 +00008172 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008173 ;;
8174
vapier7f19c022007-02-17 14:46:31 +00008175 sysv5* | sco3.2v5* | sco5v6*)
8176 # Note: We can NOT use -z defs as we might desire, because we do not
8177 # link with -lc, and that would cause any symbols used from libc to
8178 # always be unresolved, which means just about no library would
8179 # ever link correctly. If we're not using GNU ld we use -z text
8180 # though, which does catch some bad symbols but isn't as heavy-handed
8181 # as -z defs.
8182 no_undefined_flag='${wl}-z,text'
8183 allow_undefined_flag='${wl}-z,nodefs'
8184 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008185 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008186 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008187 hardcode_libdir_separator=':'
8188 link_all_deplibs=yes
8189 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008190 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008191
8192 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008195 else
mlcreech636a9952008-05-05 22:52:56 +00008196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008198 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008199 ;;
8200
8201 uts4*)
8202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8203 hardcode_libdir_flag_spec='-L$libdir'
8204 hardcode_shlibpath_var=no
8205 ;;
8206
8207 *)
8208 ld_shlibs=no
8209 ;;
8210 esac
mlcreech636a9952008-05-05 22:52:56 +00008211
8212 if test x$host_vendor = xsni; then
8213 case $host in
8214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8215 export_dynamic_flag_spec='${wl}-Blargedynsym'
8216 ;;
8217 esac
8218 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008219 fi
8220
drhf922ca42015-05-14 15:39:18 +00008221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008222$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008223test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008224
mlcreech636a9952008-05-05 22:52:56 +00008225with_gnu_ld=$with_gnu_ld
8226
8227
danielk197733a14782008-08-04 14:50:05 +00008228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
a.rottmann9bc8b932004-02-29 15:18:31 +00008241#
8242# Do we need to explicitly link libc?
8243#
8244case "x$archive_cmds_need_lc" in
8245x|xyes)
8246 # Assume -lc should be added
8247 archive_cmds_need_lc=yes
8248
8249 if test "$enable_shared" = yes && test "$GCC" = yes; then
8250 case $archive_cmds in
8251 *'~'*)
8252 # FIXME: we may have to deal with multi-command sequences.
8253 ;;
8254 '$CC '*)
8255 # Test whether the compiler implicitly links with -lc since on some
8256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8257 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008259$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008260 $RM conftest*
8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008262
drhf922ca42015-05-14 15:39:18 +00008263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008264 (eval $ac_compile) 2>&5
8265 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008268 soname=conftest
8269 lib=conftest
8270 libobjs=conftest.$ac_objext
8271 deplibs=
8272 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008273 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008274 compiler_flags=-v
8275 linker_flags=-v
8276 verstring=
8277 output_objdir=.
8278 libname=conftest
8279 lt_save_allow_undefined_flag=$allow_undefined_flag
8280 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008281 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 +00008282 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8285 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008286 then
8287 archive_cmds_need_lc=no
8288 else
8289 archive_cmds_need_lc=yes
8290 fi
8291 allow_undefined_flag=$lt_save_allow_undefined_flag
8292 else
8293 cat conftest.err 1>&5
8294 fi
mlcreech636a9952008-05-05 22:52:56 +00008295 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008297$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008298 ;;
8299 esac
drh71eb93e2001-09-28 01:34:43 +00008300 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008301 ;;
8302esac
drh71eb93e2001-09-28 01:34:43 +00008303
mlcreech636a9952008-05-05 22:52:56 +00008304
danielk197733a14782008-08-04 14:50:05 +00008305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
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
drhf922ca42015-05-14 15:39:18 +00008460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008461$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008462
8463if test "$GCC" = yes; then
8464 case $host_os in
8465 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8466 *) lt_awk_arg="/^libraries:/" ;;
8467 esac
8468 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8470 # if the path contains ";" then we assume it to be the separator
8471 # otherwise default to the standard path separator (i.e. ":") - it is
8472 # assumed that no part of a normal pathname contains ";" but that should
8473 # okay in the real world where ";" in dirpaths is itself problematic.
8474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8475 else
8476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8477 fi
8478 # Ok, now we have the path, separated by spaces, we can step through it
8479 # and add multilib dir if necessary.
8480 lt_tmp_lt_search_path_spec=
8481 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8482 for lt_sys_path in $lt_search_path_spec; do
8483 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8485 else
8486 test -d "$lt_sys_path" && \
8487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8488 fi
8489 done
8490 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8491BEGIN {RS=" "; FS="/|\n";} {
8492 lt_foo="";
8493 lt_count=0;
8494 for (lt_i = NF; lt_i > 0; lt_i--) {
8495 if ($lt_i != "" && $lt_i != ".") {
8496 if ($lt_i == "..") {
8497 lt_count++;
8498 } else {
8499 if (lt_count == 0) {
8500 lt_foo="/" $lt_i lt_foo;
8501 } else {
8502 lt_count--;
8503 }
8504 }
8505 }
8506 }
8507 if (lt_foo != "") { lt_freq[lt_foo]++; }
8508 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8509}'`
8510 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8511else
8512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8513fi
drh71eb93e2001-09-28 01:34:43 +00008514library_names_spec=
8515libname_spec='lib$name'
8516soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008517shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008518postinstall_cmds=
8519postuninstall_cmds=
8520finish_cmds=
8521finish_eval=
8522shlibpath_var=
8523shlibpath_overrides_runpath=unknown
8524version_type=none
8525dynamic_linker="$host_os ld.so"
8526sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008527need_lib_prefix=unknown
8528hardcode_into_libs=no
8529
8530# when you set need_version to no, make sure it does not cause -set_version
8531# flags to be left without arguments
8532need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008533
8534case $host_os in
8535aix3*)
8536 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008538 shlibpath_var=LIBPATH
8539
a.rottmann9bc8b932004-02-29 15:18:31 +00008540 # AIX 3 has no versioning support, so we append a major version to the name.
8541 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008542 ;;
8543
mlcreech636a9952008-05-05 22:52:56 +00008544aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008545 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008546 need_lib_prefix=no
8547 need_version=no
8548 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008549 if test "$host_cpu" = ia64; then
8550 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008552 shlibpath_var=LD_LIBRARY_PATH
8553 else
8554 # With GCC up to 2.95.x, collect2 would create an import file
8555 # for dependence libraries. The import file would start with
8556 # the line `#! .'. This would cause the generated library to
8557 # depend on `.', always an invalid library. This was fixed in
8558 # development snapshots of GCC prior to 3.0.
8559 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008560 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8562 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008564 :
8565 else
8566 can_build_shared=no
8567 fi
8568 ;;
drh71eb93e2001-09-28 01:34:43 +00008569 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8571 # soname into executable. Probably we can add versioning support to
8572 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008573 if test "$aix_use_runtimelinking" = yes; then
8574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8575 # instead of lib<name>.a to let people know that these are not
8576 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008578 else
8579 # We preserve .a as extension for shared libraries through AIX4.2
8580 # and later when we are not doing run time linking.
8581 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008582 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008583 fi
8584 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008585 fi
8586 ;;
8587
8588amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008589 case $host_cpu in
8590 powerpc)
8591 # Since July 2007 AmigaOS4 officially supports .so libraries.
8592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 ;;
8595 m68k)
8596 library_names_spec='$libname.ixlibrary $libname.a'
8597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8598 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'
8599 ;;
8600 esac
drh71eb93e2001-09-28 01:34:43 +00008601 ;;
8602
8603beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008604 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008605 dynamic_linker="$host_os ld.so"
8606 shlibpath_var=LIBRARY_PATH
8607 ;;
8608
vapier7f19c022007-02-17 14:46:31 +00008609bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008610 version_type=linux
8611 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8613 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8618 # the default ld.so.conf also contains /usr/contrib/lib and
8619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8620 # libtool to hard-code these into programs
8621 ;;
8622
vapier6acb2cf2009-01-28 04:46:28 +00008623cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008624 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008625 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008626 need_version=no
8627 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008628
drh71eb93e2001-09-28 01:34:43 +00008629 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008631 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8633 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008635 dldir=$destdir/`dirname \$dlpath`~
8636 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008637 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008638 chmod a+x \$dldir/$dlname~
8639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8641 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008643 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008644 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008645 shlibpath_overrides_runpath=yes
8646
8647 case $host_os in
8648 cygwin*)
8649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8652 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008653 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008654 # MinGW DLLs use traditional 'lib' prefix
8655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008656 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8657 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008658 # It is most probably a Windows format PATH printed by
8659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8660 # path with ; separators, and with drive letters. We can handle the
8661 # drive letters (cygwin fileutils understands them), so leave them,
8662 # especially as we might pass files found there to a mingw objdump,
8663 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008665 else
mlcreech636a9952008-05-05 22:52:56 +00008666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008667 fi
8668 ;;
8669 pw32*)
8670 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008671 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 +00008672 ;;
8673 esac
drh71eb93e2001-09-28 01:34:43 +00008674 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008675
drh71eb93e2001-09-28 01:34:43 +00008676 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008678 ;;
8679 esac
8680 dynamic_linker='Win32 ld.exe'
8681 # FIXME: first we should search . and the directory the executable is in
8682 shlibpath_var=PATH
8683 ;;
8684
8685darwin* | rhapsody*)
8686 dynamic_linker="$host_os dyld"
8687 version_type=darwin
8688 need_lib_prefix=no
8689 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008690 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008691 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008692 shlibpath_overrides_runpath=yes
8693 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008695
8696 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8698 ;;
8699
8700dgux*)
8701 version_type=linux
8702 need_lib_prefix=no
8703 need_version=no
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8705 soname_spec='${libname}${release}${shared_ext}$major'
8706 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008707 ;;
8708
a.rottmann84e63352003-03-24 09:42:16 +00008709freebsd1*)
8710 dynamic_linker=no
8711 ;;
8712
vapier7f19c022007-02-17 14:46:31 +00008713freebsd* | dragonfly*)
8714 # DragonFly does not have aout. When/if they implement a new
8715 # versioning mechanism, adjust this.
8716 if test -x /usr/bin/objformat; then
8717 objformat=`/usr/bin/objformat`
8718 else
8719 case $host_os in
8720 freebsd[123]*) objformat=aout ;;
8721 *) objformat=elf ;;
8722 esac
8723 fi
8724 # Handle Gentoo/FreeBSD as it was Linux
8725 case $host_vendor in
8726 gentoo)
8727 version_type=linux ;;
8728 *)
8729 version_type=freebsd-$objformat ;;
8730 esac
8731
drh71eb93e2001-09-28 01:34:43 +00008732 case $version_type in
8733 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008735 need_version=no
8736 need_lib_prefix=no
8737 ;;
8738 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008740 need_version=yes
8741 ;;
vapier7f19c022007-02-17 14:46:31 +00008742 linux)
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 need_lib_prefix=no
8746 need_version=no
8747 ;;
drh71eb93e2001-09-28 01:34:43 +00008748 esac
8749 shlibpath_var=LD_LIBRARY_PATH
8750 case $host_os in
8751 freebsd2*)
8752 shlibpath_overrides_runpath=yes
8753 ;;
vapier7f19c022007-02-17 14:46:31 +00008754 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008755 shlibpath_overrides_runpath=yes
8756 hardcode_into_libs=yes
8757 ;;
vapier7f19c022007-02-17 14:46:31 +00008758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008760 shlibpath_overrides_runpath=no
8761 hardcode_into_libs=yes
8762 ;;
mlcreech636a9952008-05-05 22:52:56 +00008763 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008764 shlibpath_overrides_runpath=yes
8765 hardcode_into_libs=yes
8766 ;;
drh71eb93e2001-09-28 01:34:43 +00008767 esac
8768 ;;
8769
8770gnu*)
8771 version_type=linux
8772 need_lib_prefix=no
8773 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008776 shlibpath_var=LD_LIBRARY_PATH
8777 hardcode_into_libs=yes
8778 ;;
8779
8780hpux9* | hpux10* | hpux11*)
8781 # Give a soname corresponding to the major version so that dld.sl refuses to
8782 # link against other versions.
8783 version_type=sunos
8784 need_lib_prefix=no
8785 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008786 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008787 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008788 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 hardcode_into_libs=yes
8790 dynamic_linker="$host_os dld.so"
8791 shlibpath_var=LD_LIBRARY_PATH
8792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8794 soname_spec='${libname}${release}${shared_ext}$major'
8795 if test "X$HPUX_IA64_MODE" = X32; then
8796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8797 else
8798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8799 fi
8800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8801 ;;
mlcreech636a9952008-05-05 22:52:56 +00008802 hppa*64*)
8803 shrext_cmds='.sl'
8804 hardcode_into_libs=yes
8805 dynamic_linker="$host_os dld.sl"
8806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8812 ;;
8813 *)
vapier7f19c022007-02-17 14:46:31 +00008814 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008815 dynamic_linker="$host_os dld.sl"
8816 shlibpath_var=SHLIB_PATH
8817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 ;;
8821 esac
drh71eb93e2001-09-28 01:34:43 +00008822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8823 postinstall_cmds='chmod 555 $lib'
8824 ;;
8825
mlcreech636a9952008-05-05 22:52:56 +00008826interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008827 version_type=linux
8828 need_lib_prefix=no
8829 need_version=no
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8833 shlibpath_var=LD_LIBRARY_PATH
8834 shlibpath_overrides_runpath=no
8835 hardcode_into_libs=yes
8836 ;;
8837
a.rottmann84e63352003-03-24 09:42:16 +00008838irix5* | irix6* | nonstopux*)
8839 case $host_os in
8840 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008841 *)
8842 if test "$lt_cv_prog_gnu_ld" = yes; then
8843 version_type=linux
8844 else
8845 version_type=irix
8846 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008847 esac
drh71eb93e2001-09-28 01:34:43 +00008848 need_lib_prefix=no
8849 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008850 soname_spec='${libname}${release}${shared_ext}$major'
8851 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 +00008852 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008853 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008854 libsuff= shlibsuff=
8855 ;;
8856 *)
8857 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8859 libsuff= shlibsuff= libmagic=32-bit;;
8860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8861 libsuff=32 shlibsuff=N32 libmagic=N32;;
8862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008864 *) libsuff= shlibsuff= libmagic=never-match;;
8865 esac
8866 ;;
8867 esac
8868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8869 shlibpath_overrides_runpath=no
8870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008872 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008873 ;;
8874
8875# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008876linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008877 dynamic_linker=no
8878 ;;
8879
8880# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008881linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008882 version_type=linux
8883 need_lib_prefix=no
8884 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008890 # Some binutils ld are patched to set DT_RUNPATH
8891 save_LDFLAGS=$LDFLAGS
8892 save_libdir=$libdir
8893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008896/* end confdefs.h. */
8897
8898int
8899main ()
8900{
8901
8902 ;
8903 return 0;
8904}
8905_ACEOF
drhf922ca42015-05-14 15:39:18 +00008906if ac_fn_c_try_link "$LINENO"; then :
8907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008908 shlibpath_overrides_runpath=yes
8909fi
mlcreech636a9952008-05-05 22:52:56 +00008910fi
drhf922ca42015-05-14 15:39:18 +00008911rm -f core conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008913 LDFLAGS=$save_LDFLAGS
8914 libdir=$save_libdir
8915
drh71eb93e2001-09-28 01:34:43 +00008916 # This implies no fast_install, which is unacceptable.
8917 # Some rework will be needed to allow for fast_install
8918 # before this can be enabled.
8919 hardcode_into_libs=yes
8920
a.rottmann9bc8b932004-02-29 15:18:31 +00008921 # Append ld.so.conf contents to the search path
8922 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008923 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 +00008924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008925 fi
8926
drh71eb93e2001-09-28 01:34:43 +00008927 # We used to test for /lib/ld.so.1 and disable shared libraries on
8928 # powerpc, because MkLinux only supported shared libraries with the
8929 # GNU dynamic linker. Since this was broken with cross compilers,
8930 # most powerpc-linux boxes support dynamic linking these days and
8931 # people can always --disable-shared, the test was removed, and we
8932 # assume the GNU/Linux dynamic linker is in use.
8933 dynamic_linker='GNU/Linux ld.so'
8934 ;;
8935
8936netbsd*)
8937 version_type=sunos
8938 need_lib_prefix=no
8939 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8943 dynamic_linker='NetBSD (a.out) ld.so'
8944 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008947 dynamic_linker='NetBSD ld.elf_so'
8948 fi
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8951 hardcode_into_libs=yes
8952 ;;
8953
8954newsos6)
8955 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 ;;
8960
mlcreech636a9952008-05-05 22:52:56 +00008961*nto* | *qnx*)
8962 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008963 need_lib_prefix=no
8964 need_version=no
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008967 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008968 shlibpath_overrides_runpath=no
8969 hardcode_into_libs=yes
8970 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008971 ;;
8972
drh71eb93e2001-09-28 01:34:43 +00008973openbsd*)
8974 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008975 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008976 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8978 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008979 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8980 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008981 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008985 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 +00008986 case $host_os in
8987 openbsd2.[89] | openbsd2.[89].*)
8988 shlibpath_overrides_runpath=no
8989 ;;
8990 *)
8991 shlibpath_overrides_runpath=yes
8992 ;;
8993 esac
a.rottmann84e63352003-03-24 09:42:16 +00008994 else
8995 shlibpath_overrides_runpath=yes
8996 fi
drh71eb93e2001-09-28 01:34:43 +00008997 ;;
8998
8999os2*)
9000 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009001 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009002 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009003 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009004 dynamic_linker='OS/2 ld.exe'
9005 shlibpath_var=LIBPATH
9006 ;;
9007
9008osf3* | osf4* | osf5*)
9009 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009010 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009011 need_version=no
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009014 shlibpath_var=LD_LIBRARY_PATH
9015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9017 ;;
9018
mlcreech636a9952008-05-05 22:52:56 +00009019rdos*)
9020 dynamic_linker=no
9021 ;;
9022
drh71eb93e2001-09-28 01:34:43 +00009023solaris*)
9024 version_type=linux
9025 need_lib_prefix=no
9026 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9032 # ldd complains unless libraries are executable
9033 postinstall_cmds='chmod +x $lib'
9034 ;;
9035
9036sunos4*)
9037 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 if test "$with_gnu_ld" = yes; then
9043 need_lib_prefix=no
9044 fi
9045 need_version=yes
9046 ;;
9047
vapier7f19c022007-02-17 14:46:31 +00009048sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009049 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009052 shlibpath_var=LD_LIBRARY_PATH
9053 case $host_vendor in
9054 sni)
9055 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009056 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009057 runpath_var=LD_RUN_PATH
9058 ;;
9059 siemens)
9060 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009061 ;;
9062 motorola)
9063 need_lib_prefix=no
9064 need_version=no
9065 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9067 ;;
9068 esac
9069 ;;
9070
9071sysv4*MP*)
9072 if test -d /usr/nec ;then
9073 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9075 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009076 shlibpath_var=LD_LIBRARY_PATH
9077 fi
9078 ;;
9079
vapier7f19c022007-02-17 14:46:31 +00009080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9081 version_type=freebsd-elf
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009087 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009088 hardcode_into_libs=yes
9089 if test "$with_gnu_ld" = yes; then
9090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009091 else
9092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009093 case $host_os in
9094 sco3.2v5*)
9095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9096 ;;
9097 esac
9098 fi
9099 sys_lib_dlsearch_path_spec='/usr/lib'
9100 ;;
9101
mlcreech636a9952008-05-05 22:52:56 +00009102tpf*)
9103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9104 version_type=linux
9105 need_lib_prefix=no
9106 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=no
9110 hardcode_into_libs=yes
9111 ;;
9112
a.rottmann9bc8b932004-02-29 15:18:31 +00009113uts4*)
9114 version_type=linux
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 ;;
9119
drh71eb93e2001-09-28 01:34:43 +00009120*)
9121 dynamic_linker=no
9122 ;;
9123esac
drhf922ca42015-05-14 15:39:18 +00009124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009125$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009126test "$dynamic_linker" = no && can_build_shared=no
9127
vapier7f19c022007-02-17 14:46:31 +00009128variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9129if test "$GCC" = yes; then
9130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9131fi
9132
mlcreech636a9952008-05-05 22:52:56 +00009133if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9134 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9135fi
9136if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9137 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9138fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
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
drhf922ca42015-05-14 15:39:18 +00009226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009228hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009229if test -n "$hardcode_libdir_flag_spec" ||
9230 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009231 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009232
mlcreech636a9952008-05-05 22:52:56 +00009233 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009234 if test "$hardcode_direct" != no &&
9235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9236 # have to relink, otherwise we might link with an installed library
9237 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009239 test "$hardcode_minus_L" != no; then
9240 # Linking always hardcodes the temporary library directory.
9241 hardcode_action=relink
9242 else
9243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9244 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009245 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009246else
9247 # We cannot hardcode anything, or else we can only hardcode existing
9248 # directories.
9249 hardcode_action=unsupported
9250fi
drhf922ca42015-05-14 15:39:18 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009252$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009253
mlcreech636a9952008-05-05 22:52:56 +00009254if test "$hardcode_action" = relink ||
9255 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009256 # Fast installation is not supported
9257 enable_fast_install=no
9258elif test "$shlibpath_overrides_runpath" = yes ||
9259 test "$enable_shared" = no; then
9260 # Fast installation is not necessary
9261 enable_fast_install=needless
9262fi
9263
a.rottmann84e63352003-03-24 09:42:16 +00009264
mlcreech636a9952008-05-05 22:52:56 +00009265
9266
9267
9268
9269 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009270 enable_dlopen=unknown
9271 enable_dlopen_self=unknown
9272 enable_dlopen_self_static=unknown
9273else
9274 lt_cv_dlopen=no
9275 lt_cv_dlopen_libs=
9276
9277 case $host_os in
9278 beos*)
9279 lt_cv_dlopen="load_add_on"
9280 lt_cv_dlopen_libs=
9281 lt_cv_dlopen_self=yes
9282 ;;
9283
vapier6acb2cf2009-01-28 04:46:28 +00009284 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009285 lt_cv_dlopen="LoadLibrary"
9286 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009287 ;;
drh71eb93e2001-09-28 01:34:43 +00009288
a.rottmann9bc8b932004-02-29 15:18:31 +00009289 cygwin*)
9290 lt_cv_dlopen="dlopen"
9291 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009292 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009293
9294 darwin*)
9295 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009297$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009298if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009299 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009300else
9301 ac_check_lib_save_LIBS=$LIBS
9302LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009304/* end confdefs.h. */
9305
drh8b727472009-01-19 18:18:40 +00009306/* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009309#ifdef __cplusplus
9310extern "C"
9311#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009312char dlopen ();
9313int
9314main ()
9315{
drh8b727472009-01-19 18:18:40 +00009316return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009317 ;
9318 return 0;
9319}
9320_ACEOF
drhf922ca42015-05-14 15:39:18 +00009321if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009322 ac_cv_lib_dl_dlopen=yes
9323else
drhf922ca42015-05-14 15:39:18 +00009324 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009325fi
drhf922ca42015-05-14 15:39:18 +00009326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009328LIBS=$ac_check_lib_save_LIBS
9329fi
drhf922ca42015-05-14 15:39:18 +00009330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009331$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009332if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9334else
9335
9336 lt_cv_dlopen="dyld"
9337 lt_cv_dlopen_libs=
9338 lt_cv_dlopen_self=yes
9339
9340fi
9341
mlcreech636a9952008-05-05 22:52:56 +00009342 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009343
drh71eb93e2001-09-28 01:34:43 +00009344 *)
drhf922ca42015-05-14 15:39:18 +00009345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9346if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009347 lt_cv_dlopen="shl_load"
9348else
drhf922ca42015-05-14 15:39:18 +00009349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009350$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009351if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009352 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009353else
9354 ac_check_lib_save_LIBS=$LIBS
9355LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009357/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009358
drh8b727472009-01-19 18:18:40 +00009359/* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009362#ifdef __cplusplus
9363extern "C"
9364#endif
drh71eb93e2001-09-28 01:34:43 +00009365char shl_load ();
9366int
9367main ()
9368{
drh8b727472009-01-19 18:18:40 +00009369return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009370 ;
9371 return 0;
9372}
9373_ACEOF
drhf922ca42015-05-14 15:39:18 +00009374if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009375 ac_cv_lib_dld_shl_load=yes
9376else
drhf922ca42015-05-14 15:39:18 +00009377 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009378fi
drhf922ca42015-05-14 15:39:18 +00009379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009381LIBS=$ac_check_lib_save_LIBS
9382fi
drhf922ca42015-05-14 15:39:18 +00009383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009384$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009385if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009387else
drhf922ca42015-05-14 15:39:18 +00009388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9389if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009390 lt_cv_dlopen="dlopen"
9391else
drhf922ca42015-05-14 15:39:18 +00009392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009393$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009394if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009395 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009396else
9397 ac_check_lib_save_LIBS=$LIBS
9398LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009400/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009401
drh8b727472009-01-19 18:18:40 +00009402/* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009405#ifdef __cplusplus
9406extern "C"
9407#endif
drh71eb93e2001-09-28 01:34:43 +00009408char dlopen ();
9409int
9410main ()
9411{
drh8b727472009-01-19 18:18:40 +00009412return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009413 ;
9414 return 0;
9415}
9416_ACEOF
drhf922ca42015-05-14 15:39:18 +00009417if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009418 ac_cv_lib_dl_dlopen=yes
9419else
drhf922ca42015-05-14 15:39:18 +00009420 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009421fi
drhf922ca42015-05-14 15:39:18 +00009422rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009424LIBS=$ac_check_lib_save_LIBS
9425fi
drhf922ca42015-05-14 15:39:18 +00009426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9430else
drhf922ca42015-05-14 15:39:18 +00009431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009432$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009433if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009434 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009435else
9436 ac_check_lib_save_LIBS=$LIBS
9437LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009439/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009440
drh8b727472009-01-19 18:18:40 +00009441/* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009444#ifdef __cplusplus
9445extern "C"
9446#endif
drh71eb93e2001-09-28 01:34:43 +00009447char dlopen ();
9448int
9449main ()
9450{
drh8b727472009-01-19 18:18:40 +00009451return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009452 ;
9453 return 0;
9454}
9455_ACEOF
drhf922ca42015-05-14 15:39:18 +00009456if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009457 ac_cv_lib_svld_dlopen=yes
9458else
drhf922ca42015-05-14 15:39:18 +00009459 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009460fi
drhf922ca42015-05-14 15:39:18 +00009461rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009463LIBS=$ac_check_lib_save_LIBS
9464fi
drhf922ca42015-05-14 15:39:18 +00009465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009466$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009467if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009469else
drhf922ca42015-05-14 15:39:18 +00009470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009471$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009472if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009473 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009474else
9475 ac_check_lib_save_LIBS=$LIBS
9476LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009478/* end confdefs.h. */
9479
drh8b727472009-01-19 18:18:40 +00009480/* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009483#ifdef __cplusplus
9484extern "C"
9485#endif
a.rottmann84e63352003-03-24 09:42:16 +00009486char dld_link ();
9487int
9488main ()
9489{
drh8b727472009-01-19 18:18:40 +00009490return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009491 ;
9492 return 0;
9493}
9494_ACEOF
drhf922ca42015-05-14 15:39:18 +00009495if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009496 ac_cv_lib_dld_dld_link=yes
9497else
drhf922ca42015-05-14 15:39:18 +00009498 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009499fi
drhf922ca42015-05-14 15:39:18 +00009500rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009502LIBS=$ac_check_lib_save_LIBS
9503fi
drhf922ca42015-05-14 15:39:18 +00009504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009505$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009506if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009508fi
9509
drh71eb93e2001-09-28 01:34:43 +00009510
9511fi
9512
drh71eb93e2001-09-28 01:34:43 +00009513
9514fi
9515
a.rottmann84e63352003-03-24 09:42:16 +00009516
9517fi
9518
9519
9520fi
9521
9522
drh71eb93e2001-09-28 01:34:43 +00009523fi
9524
9525 ;;
9526 esac
9527
9528 if test "x$lt_cv_dlopen" != xno; then
9529 enable_dlopen=yes
9530 else
9531 enable_dlopen=no
9532 fi
9533
9534 case $lt_cv_dlopen in
9535 dlopen)
9536 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009538
9539 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009541
9542 save_LIBS="$LIBS"
9543 LIBS="$lt_cv_dlopen_libs $LIBS"
9544
drhf922ca42015-05-14 15:39:18 +00009545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009546$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009547if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009548 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009549else
9550 if test "$cross_compiling" = yes; then :
9551 lt_cv_dlopen_self=cross
9552else
a.rottmann9bc8b932004-02-29 15:18:31 +00009553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009554 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009555 cat > conftest.$ac_ext <<_LT_EOF
drhe2ce8c42020-12-07 21:19:17 +00009556#line 9556 "configure"
drh71eb93e2001-09-28 01:34:43 +00009557#include "confdefs.h"
9558
9559#if HAVE_DLFCN_H
9560#include <dlfcn.h>
9561#endif
9562
9563#include <stdio.h>
9564
9565#ifdef RTLD_GLOBAL
9566# define LT_DLGLOBAL RTLD_GLOBAL
9567#else
9568# ifdef DL_GLOBAL
9569# define LT_DLGLOBAL DL_GLOBAL
9570# else
9571# define LT_DLGLOBAL 0
9572# endif
9573#endif
9574
9575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9576 find out it does not work in some platform. */
9577#ifndef LT_DLLAZY_OR_NOW
9578# ifdef RTLD_LAZY
9579# define LT_DLLAZY_OR_NOW RTLD_LAZY
9580# else
9581# ifdef DL_LAZY
9582# define LT_DLLAZY_OR_NOW DL_LAZY
9583# else
9584# ifdef RTLD_NOW
9585# define LT_DLLAZY_OR_NOW RTLD_NOW
9586# else
9587# ifdef DL_NOW
9588# define LT_DLLAZY_OR_NOW DL_NOW
9589# else
9590# define LT_DLLAZY_OR_NOW 0
9591# endif
9592# endif
9593# endif
9594# endif
9595#endif
9596
drh71eb93e2001-09-28 01:34:43 +00009597void fnord() { int i=42;}
9598int main ()
9599{
9600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9601 int status = $lt_dlunknown;
9602
9603 if (self)
9604 {
9605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9607 /* dlclose (self); */
9608 }
vapier7f19c022007-02-17 14:46:31 +00009609 else
9610 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009611
vapier6acb2cf2009-01-28 04:46:28 +00009612 return status;
drh71eb93e2001-09-28 01:34:43 +00009613}
mlcreech636a9952008-05-05 22:52:56 +00009614_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009616 (eval $ac_link) 2>&5
9617 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009620 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009621 lt_status=$?
9622 case x$lt_status in
9623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009625 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009626 esac
9627 else :
9628 # compilation failed
9629 lt_cv_dlopen_self=no
9630 fi
9631fi
9632rm -fr conftest*
9633
a.rottmann84e63352003-03-24 09:42:16 +00009634
drh71eb93e2001-09-28 01:34:43 +00009635fi
drhf922ca42015-05-14 15:39:18 +00009636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009637$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009638
9639 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009642$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009643if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009644 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009645else
9646 if test "$cross_compiling" = yes; then :
9647 lt_cv_dlopen_self_static=cross
9648else
a.rottmann9bc8b932004-02-29 15:18:31 +00009649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009650 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009651 cat > conftest.$ac_ext <<_LT_EOF
drhe2ce8c42020-12-07 21:19:17 +00009652#line 9652 "configure"
drh71eb93e2001-09-28 01:34:43 +00009653#include "confdefs.h"
9654
9655#if HAVE_DLFCN_H
9656#include <dlfcn.h>
9657#endif
9658
9659#include <stdio.h>
9660
9661#ifdef RTLD_GLOBAL
9662# define LT_DLGLOBAL RTLD_GLOBAL
9663#else
9664# ifdef DL_GLOBAL
9665# define LT_DLGLOBAL DL_GLOBAL
9666# else
9667# define LT_DLGLOBAL 0
9668# endif
9669#endif
9670
9671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9672 find out it does not work in some platform. */
9673#ifndef LT_DLLAZY_OR_NOW
9674# ifdef RTLD_LAZY
9675# define LT_DLLAZY_OR_NOW RTLD_LAZY
9676# else
9677# ifdef DL_LAZY
9678# define LT_DLLAZY_OR_NOW DL_LAZY
9679# else
9680# ifdef RTLD_NOW
9681# define LT_DLLAZY_OR_NOW RTLD_NOW
9682# else
9683# ifdef DL_NOW
9684# define LT_DLLAZY_OR_NOW DL_NOW
9685# else
9686# define LT_DLLAZY_OR_NOW 0
9687# endif
9688# endif
9689# endif
9690# endif
9691#endif
9692
drh71eb93e2001-09-28 01:34:43 +00009693void fnord() { int i=42;}
9694int main ()
9695{
9696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9697 int status = $lt_dlunknown;
9698
9699 if (self)
9700 {
9701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9703 /* dlclose (self); */
9704 }
vapier7f19c022007-02-17 14:46:31 +00009705 else
9706 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009707
vapier6acb2cf2009-01-28 04:46:28 +00009708 return status;
drh71eb93e2001-09-28 01:34:43 +00009709}
mlcreech636a9952008-05-05 22:52:56 +00009710_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009712 (eval $ac_link) 2>&5
9713 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009716 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009717 lt_status=$?
9718 case x$lt_status in
9719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009721 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009722 esac
9723 else :
9724 # compilation failed
9725 lt_cv_dlopen_self_static=no
9726 fi
9727fi
9728rm -fr conftest*
9729
a.rottmann84e63352003-03-24 09:42:16 +00009730
drh71eb93e2001-09-28 01:34:43 +00009731fi
drhf922ca42015-05-14 15:39:18 +00009732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009733$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009734 fi
9735
9736 CPPFLAGS="$save_CPPFLAGS"
9737 LDFLAGS="$save_LDFLAGS"
9738 LIBS="$save_LIBS"
9739 ;;
9740 esac
9741
9742 case $lt_cv_dlopen_self in
9743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9744 *) enable_dlopen_self=unknown ;;
9745 esac
9746
9747 case $lt_cv_dlopen_self_static in
9748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9749 *) enable_dlopen_self_static=unknown ;;
9750 esac
9751fi
9752
drh71eb93e2001-09-28 01:34:43 +00009753
drh71eb93e2001-09-28 01:34:43 +00009754
a.rottmann9bc8b932004-02-29 15:18:31 +00009755
a.rottmann9bc8b932004-02-29 15:18:31 +00009756
mlcreech636a9952008-05-05 22:52:56 +00009757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769striplib=
9770old_striplib=
drhf922ca42015-05-14 15:39:18 +00009771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009772$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009773if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9774 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9775 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009777$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009778else
9779# FIXME - insert some real tests, host_os isn't really good enough
9780 case $host_os in
9781 darwin*)
9782 if test -n "$STRIP" ; then
9783 striplib="$STRIP -x"
9784 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009786$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009787 else
drhf922ca42015-05-14 15:39:18 +00009788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009789$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009790 fi
a.rottmann84e63352003-03-24 09:42:16 +00009791 ;;
mlcreech636a9952008-05-05 22:52:56 +00009792 *)
drhf922ca42015-05-14 15:39:18 +00009793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009794$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009795 ;;
9796 esac
mlcreech636a9952008-05-05 22:52:56 +00009797fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009798
a.rottmann9bc8b932004-02-29 15:18:31 +00009799
drh71eb93e2001-09-28 01:34:43 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
a.rottmann84e63352003-03-24 09:42:16 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
drh71eb93e2001-09-28 01:34:43 +00009804
a.rottmann9bc8b932004-02-29 15:18:31 +00009805
drh71eb93e2001-09-28 01:34:43 +00009806
drh71eb93e2001-09-28 01:34:43 +00009807
drh71eb93e2001-09-28 01:34:43 +00009808
drh71eb93e2001-09-28 01:34:43 +00009809
mlcreech636a9952008-05-05 22:52:56 +00009810 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009812$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009814$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009815
drhf922ca42015-05-14 15:39:18 +00009816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009817$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009818 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009819
mlcreech636a9952008-05-05 22:52:56 +00009820 # On AIX, shared libraries and static libraries use the same namespace, and
9821 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009822 case $host_os in
9823 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009824 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009825 if test -n "$RANLIB"; then
9826 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9827 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009828 fi
9829 ;;
9830
mlcreech636a9952008-05-05 22:52:56 +00009831 aix[4-9]*)
9832 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9833 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009834 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009835 ;;
9836 esac
drhf922ca42015-05-14 15:39:18 +00009837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009838$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009839
drhf922ca42015-05-14 15:39:18 +00009840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009841$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009842 # Make sure either enable_shared or enable_static is yes.
9843 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009845$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
vapier7f19c022007-02-17 14:46:31 +00009850fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009851ac_ext=c
9852ac_cpp='$CPP $CPPFLAGS'
9853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9855ac_compiler_gnu=$ac_cv_c_compiler_gnu
9856
9857CC="$lt_save_CC"
9858
a.rottmann9bc8b932004-02-29 15:18:31 +00009859
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
9861
a.rottmann9bc8b932004-02-29 15:18:31 +00009862
a.rottmann9bc8b932004-02-29 15:18:31 +00009863
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
vapier7f19c022007-02-17 14:46:31 +00009868
a.rottmann9bc8b932004-02-29 15:18:31 +00009869
9870
drh8b727472009-01-19 18:18:40 +00009871 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009872
vapier7f19c022007-02-17 14:46:31 +00009873
9874
vapier7f19c022007-02-17 14:46:31 +00009875
mlcreech636a9952008-05-05 22:52:56 +00009876# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009877
9878
drh71eb93e2001-09-28 01:34:43 +00009879# Find a good install program. We prefer a C program (faster),
9880# so one script is as good as another. But avoid the broken or
9881# incompatible versions:
9882# SysV /etc/install, /usr/sbin/install
9883# SunOS /usr/etc/install
9884# IRIX /sbin/install
9885# AIX /bin/install
9886# AmigaOS /C/install, which installs bootblocks on floppy discs
9887# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9888# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9889# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009890# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009891# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009892# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009894$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009895if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009896if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009897 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009898else
a.rottmann84e63352003-03-24 09:42:16 +00009899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009904 # Account for people who put trailing slashes in PATH elements.
9905case $as_dir/ in #((
9906 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009909 /usr/ucb/* ) ;;
9910 *)
9911 # OSF1 and SCO ODT 3.0 have their own names for install.
9912 # Don't use installbsd from OSF since it installs stuff as root
9913 # by default.
9914 for ac_prog in ginstall scoinst install; do
9915 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009916 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009917 if test $ac_prog = install &&
9918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9919 # AIX install. It has an incompatible calling convention.
9920 :
9921 elif test $ac_prog = install &&
9922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9923 # program-specific install script used by HP pwplus--don't use.
9924 :
9925 else
drh8b727472009-01-19 18:18:40 +00009926 rm -rf conftest.one conftest.two conftest.dir
9927 echo one > conftest.one
9928 echo two > conftest.two
9929 mkdir conftest.dir
9930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9931 test -s conftest.one && test -s conftest.two &&
9932 test -s conftest.dir/conftest.one &&
9933 test -s conftest.dir/conftest.two
9934 then
9935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9936 break 3
9937 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009938 fi
9939 fi
drh71eb93e2001-09-28 01:34:43 +00009940 done
a.rottmann84e63352003-03-24 09:42:16 +00009941 done
9942 ;;
9943esac
a.rottmann84e63352003-03-24 09:42:16 +00009944
drhf922ca42015-05-14 15:39:18 +00009945 done
drh8b727472009-01-19 18:18:40 +00009946IFS=$as_save_IFS
9947
9948rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009949
9950fi
9951 if test "${ac_cv_path_install+set}" = set; then
9952 INSTALL=$ac_cv_path_install
9953 else
drh8b727472009-01-19 18:18:40 +00009954 # As a last resort, use the slow shell script. Don't cache a
9955 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009956 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009957 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009958 INSTALL=$ac_install_sh
9959 fi
9960fi
drhf922ca42015-05-14 15:39:18 +00009961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009962$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009963
9964# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9965# It thinks the first close brace ends the variable substitution.
9966test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9967
9968test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9969
9970test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9971
a.rottmann84e63352003-03-24 09:42:16 +00009972
drh75897232000-05-29 14:26:00 +00009973#########
mlcreech636a9952008-05-05 22:52:56 +00009974# Enable large file support (if special flags are necessary)
9975#
drh8b727472009-01-19 18:18:40 +00009976# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009977if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009978 enableval=$enable_largefile;
9979fi
mlcreech636a9952008-05-05 22:52:56 +00009980
9981if test "$enable_largefile" != no; then
9982
drhf922ca42015-05-14 15:39:18 +00009983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009984$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009985if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009986 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009987else
mlcreech636a9952008-05-05 22:52:56 +00009988 ac_cv_sys_largefile_CC=no
9989 if test "$GCC" != yes; then
9990 ac_save_CC=$CC
9991 while :; do
drh8b727472009-01-19 18:18:40 +00009992 # IRIX 6.2 and later do not support large files by default,
9993 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009995/* end confdefs.h. */
9996#include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010001#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10004 ? 1 : -1];
10005int
10006main ()
10007{
10008
10009 ;
10010 return 0;
10011}
10012_ACEOF
drhf922ca42015-05-14 15:39:18 +000010013 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010014 break
mlcreech636a9952008-05-05 22:52:56 +000010015fi
drh8b727472009-01-19 18:18:40 +000010016rm -f core conftest.err conftest.$ac_objext
10017 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010018 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010019 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010020fi
drh8b727472009-01-19 18:18:40 +000010021rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010022 break
10023 done
10024 CC=$ac_save_CC
10025 rm -f conftest.$ac_ext
10026 fi
10027fi
drhf922ca42015-05-14 15:39:18 +000010028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010029$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010030 if test "$ac_cv_sys_largefile_CC" != no; then
10031 CC=$CC$ac_cv_sys_largefile_CC
10032 fi
10033
drhf922ca42015-05-14 15:39:18 +000010034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010035$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010036if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010037 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010038else
10039 while :; do
drhf922ca42015-05-14 15:39:18 +000010040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010041/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010042#include <sys/types.h>
10043 /* Check that off_t can represent 2**63 - 1 correctly.
10044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10045 since some C++ compilers masquerading as C compilers
10046 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010047#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10049 && LARGE_OFF_T % 2147483647 == 1)
10050 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010051int
10052main ()
10053{
mlcreech636a9952008-05-05 22:52:56 +000010054
mlcreechb87057f2008-03-06 07:19:20 +000010055 ;
10056 return 0;
10057}
10058_ACEOF
drhf922ca42015-05-14 15:39:18 +000010059if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010060 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010061fi
drh8b727472009-01-19 18:18:40 +000010062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010064/* end confdefs.h. */
10065#define _FILE_OFFSET_BITS 64
10066#include <sys/types.h>
10067 /* Check that off_t can represent 2**63 - 1 correctly.
10068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069 since some C++ compilers masquerading as C compilers
10070 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073 && LARGE_OFF_T % 2147483647 == 1)
10074 ? 1 : -1];
10075int
10076main ()
10077{
10078
10079 ;
10080 return 0;
10081}
10082_ACEOF
drhf922ca42015-05-14 15:39:18 +000010083if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010084 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010085fi
drh8b727472009-01-19 18:18:40 +000010086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010088 break
10089done
10090fi
drhf922ca42015-05-14 15:39:18 +000010091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010092$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10093case $ac_cv_sys_file_offset_bits in #(
10094 no | unknown) ;;
10095 *)
mlcreech636a9952008-05-05 22:52:56 +000010096cat >>confdefs.h <<_ACEOF
10097#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10098_ACEOF
drh8b727472009-01-19 18:18:40 +000010099;;
10100esac
10101rm -rf conftest*
10102 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010104$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010105if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010106 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010107else
10108 while :; do
drhf922ca42015-05-14 15:39:18 +000010109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010110/* end confdefs.h. */
10111#include <sys/types.h>
10112 /* Check that off_t can represent 2**63 - 1 correctly.
10113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10114 since some C++ compilers masquerading as C compilers
10115 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10118 && LARGE_OFF_T % 2147483647 == 1)
10119 ? 1 : -1];
10120int
10121main ()
10122{
10123
10124 ;
10125 return 0;
10126}
10127_ACEOF
drhf922ca42015-05-14 15:39:18 +000010128if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010129 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010130fi
drh8b727472009-01-19 18:18:40 +000010131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010133/* end confdefs.h. */
10134#define _LARGE_FILES 1
10135#include <sys/types.h>
10136 /* Check that off_t can represent 2**63 - 1 correctly.
10137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10138 since some C++ compilers masquerading as C compilers
10139 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10142 && LARGE_OFF_T % 2147483647 == 1)
10143 ? 1 : -1];
10144int
10145main ()
10146{
10147
10148 ;
10149 return 0;
10150}
10151_ACEOF
drhf922ca42015-05-14 15:39:18 +000010152if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010153 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010154fi
drh8b727472009-01-19 18:18:40 +000010155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010157 break
10158done
10159fi
drhf922ca42015-05-14 15:39:18 +000010160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010161$as_echo "$ac_cv_sys_large_files" >&6; }
10162case $ac_cv_sys_large_files in #(
10163 no | unknown) ;;
10164 *)
mlcreech636a9952008-05-05 22:52:56 +000010165cat >>confdefs.h <<_ACEOF
10166#define _LARGE_FILES $ac_cv_sys_large_files
10167_ACEOF
drh8b727472009-01-19 18:18:40 +000010168;;
10169esac
10170rm -rf conftest*
10171 fi
drhf922ca42015-05-14 15:39:18 +000010172
10173
mlcreech636a9952008-05-05 22:52:56 +000010174fi
10175
10176
10177#########
10178# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010179ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10180if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010181
10182cat >>confdefs.h <<_ACEOF
10183#define HAVE_INT8_T 1
10184_ACEOF
10185
10186
10187fi
drhf922ca42015-05-14 15:39:18 +000010188ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10189if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010190
10191cat >>confdefs.h <<_ACEOF
10192#define HAVE_INT16_T 1
10193_ACEOF
10194
10195
10196fi
drhf922ca42015-05-14 15:39:18 +000010197ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10198if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010199
10200cat >>confdefs.h <<_ACEOF
10201#define HAVE_INT32_T 1
10202_ACEOF
10203
10204
10205fi
drhf922ca42015-05-14 15:39:18 +000010206ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10207if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010208
10209cat >>confdefs.h <<_ACEOF
10210#define HAVE_INT64_T 1
10211_ACEOF
10212
10213
10214fi
drhf922ca42015-05-14 15:39:18 +000010215ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10216if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010217
10218cat >>confdefs.h <<_ACEOF
10219#define HAVE_INTPTR_T 1
10220_ACEOF
10221
10222
10223fi
drhf922ca42015-05-14 15:39:18 +000010224ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10225if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010226
10227cat >>confdefs.h <<_ACEOF
10228#define HAVE_UINT8_T 1
10229_ACEOF
10230
10231
10232fi
drhf922ca42015-05-14 15:39:18 +000010233ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10234if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010235
10236cat >>confdefs.h <<_ACEOF
10237#define HAVE_UINT16_T 1
10238_ACEOF
10239
10240
10241fi
drhf922ca42015-05-14 15:39:18 +000010242ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10243if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010244
10245cat >>confdefs.h <<_ACEOF
10246#define HAVE_UINT32_T 1
10247_ACEOF
10248
10249
10250fi
drhf922ca42015-05-14 15:39:18 +000010251ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10252if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010253
10254cat >>confdefs.h <<_ACEOF
10255#define HAVE_UINT64_T 1
10256_ACEOF
10257
10258
10259fi
drhf922ca42015-05-14 15:39:18 +000010260ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10261if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010262
10263cat >>confdefs.h <<_ACEOF
10264#define HAVE_UINTPTR_T 1
10265_ACEOF
10266
10267
10268fi
mlcreechb87057f2008-03-06 07:19:20 +000010269
10270
10271#########
10272# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010273for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010274do :
10275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10276ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010278 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010280_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010281
mlcreechb87057f2008-03-06 07:19:20 +000010282fi
10283
10284done
10285
10286
10287#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010288# Figure out whether or not we have these functions
10289#
drhe32a2562016-03-04 02:38:00 +000010290for 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 +000010291do :
10292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10294if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010295 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010297_ACEOF
10298
10299fi
10300done
10301
10302
mlcreechab1c47b2008-03-09 02:51:10 +000010303#########
mlcreechf3868112008-03-11 18:03:30 +000010304# By default, we use the amalgamation (this may be changed below...)
10305#
10306USE_AMALGAMATION=1
10307
10308#########
mlcreechab1c47b2008-03-09 02:51:10 +000010309# See whether we can run specific tclsh versions known to work well;
10310# if not, then we fall back to plain tclsh.
10311# TODO: try other versions before falling back?
10312#
drh0b11bcb2017-09-22 00:24:44 +000010313for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010314do
10315 # Extract the first word of "$ac_prog", so it can be a program name with args.
10316set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010318$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010319if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010320 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010321else
10322 if test -n "$TCLSH_CMD"; then
10323 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10324else
10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010332 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010334 break 2
10335 fi
10336done
drhf922ca42015-05-14 15:39:18 +000010337 done
drh8b727472009-01-19 18:18:40 +000010338IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010339
10340fi
10341fi
10342TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10343if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010345$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010346else
drhf922ca42015-05-14 15:39:18 +000010347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010348$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010349fi
10350
drh8b727472009-01-19 18:18:40 +000010351
mlcreechab1c47b2008-03-09 02:51:10 +000010352 test -n "$TCLSH_CMD" && break
10353done
mlcreechf3868112008-03-11 18:03:30 +000010354test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010355
mlcreechf3868112008-03-11 18:03:30 +000010356if test "$TCLSH_CMD" = "none"; then
10357 # If we can't find a local tclsh, then building the amalgamation will fail.
10358 # We act as though --disable-amalgamation has been used.
10359 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10360 USE_AMALGAMATION=0
10361 TCLSH_CMD="tclsh"
10362fi
mlcreechab1c47b2008-03-09 02:51:10 +000010363
10364
mlcreech5b0a9eb2008-03-09 01:38:09 +000010365
vapier6acb2cf2009-01-28 04:46:28 +000010366if test "x${TCLLIBDIR+set}" != "xset" ; then
10367 TCLLIBDIR='$(libdir)'
10368 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10369 TCLLIBDIR=$i
10370 break
10371 done
10372 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10373fi
10374
10375
mlcreech5b0a9eb2008-03-09 01:38:09 +000010376#########
drh75897232000-05-29 14:26:00 +000010377# Set up an appropriate program prefix
10378#
10379if test "$program_prefix" = "NONE"; then
10380 program_prefix=""
10381fi
10382
a.rottmann84e63352003-03-24 09:42:16 +000010383
drh4b2266a2004-11-27 15:52:16 +000010384VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010385{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010386$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010387
10388RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010389{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010390$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010391
drh26d0e2a2005-07-06 13:51:27 +000010392
drh75897232000-05-29 14:26:00 +000010393#########
drh75897232000-05-29 14:26:00 +000010394# Locate a compiler for the build machine. This compiler should
10395# generate command-line programs that run on the build machine.
10396#
vapier7f19c022007-02-17 14:46:31 +000010397if test x"$cross_compiling" = xno; then
10398 BUILD_CC=$CC
10399 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010400else
vapier7f19c022007-02-17 14:46:31 +000010401 if test "${BUILD_CC+set}" != set; then
10402 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010403do
10404 # Extract the first word of "$ac_prog", so it can be a program name with args.
10405set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010407$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010408if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010409 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010410else
vapier7f19c022007-02-17 14:46:31 +000010411 if test -n "$BUILD_CC"; then
10412 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010413else
a.rottmann84e63352003-03-24 09:42:16 +000010414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010421 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010423 break 2
10424 fi
10425done
drhf922ca42015-05-14 15:39:18 +000010426 done
drh8b727472009-01-19 18:18:40 +000010427IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010428
drh71eb93e2001-09-28 01:34:43 +000010429fi
10430fi
vapier7f19c022007-02-17 14:46:31 +000010431BUILD_CC=$ac_cv_prog_BUILD_CC
10432if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010434$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010435else
drhf922ca42015-05-14 15:39:18 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010437$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010438fi
drh75897232000-05-29 14:26:00 +000010439
drh8b727472009-01-19 18:18:40 +000010440
vapier7f19c022007-02-17 14:46:31 +000010441 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010442done
drh75897232000-05-29 14:26:00 +000010443
vapier7f19c022007-02-17 14:46:31 +000010444 fi
10445 if test "${BUILD_CFLAGS+set}" != set; then
10446 BUILD_CFLAGS="-g"
10447 fi
drh71eb93e2001-09-28 01:34:43 +000010448fi
10449
a.rottmann84e63352003-03-24 09:42:16 +000010450
drh297ecf12001-04-05 15:57:13 +000010451##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010452# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010453#
drh8b727472009-01-19 18:18:40 +000010454# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010455if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010456 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010457fi
10458
drhf922ca42015-05-14 15:39:18 +000010459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010460$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010461if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010462 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010464$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010465else
drh5a3032b2007-09-03 16:12:09 +000010466 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010468$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010469fi
10470
a.rottmann964dbb12004-02-26 19:47:42 +000010471
drh5a3032b2007-09-03 16:12:09 +000010472if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10474$as_echo_n "checking for library containing pthread_create... " >&6; }
10475if ${ac_cv_search_pthread_create+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477else
10478 ac_func_search_save_LIBS=$LIBS
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h. */
10481
10482/* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char pthread_create ();
10489int
10490main ()
10491{
10492return pthread_create ();
10493 ;
10494 return 0;
10495}
10496_ACEOF
10497for ac_lib in '' pthread; do
10498 if test -z "$ac_lib"; then
10499 ac_res="none required"
10500 else
10501 ac_res=-l$ac_lib
10502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10503 fi
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 ac_cv_search_pthread_create=$ac_res
10506fi
10507rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext
10509 if ${ac_cv_search_pthread_create+:} false; then :
10510 break
10511fi
10512done
10513if ${ac_cv_search_pthread_create+:} false; then :
10514
10515else
10516 ac_cv_search_pthread_create=no
10517fi
10518rm conftest.$ac_ext
10519LIBS=$ac_func_search_save_LIBS
10520fi
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10522$as_echo "$ac_cv_search_pthread_create" >&6; }
10523ac_res=$ac_cv_search_pthread_create
10524if test "$ac_res" != no; then :
10525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10526
10527fi
10528
drh13c808a2016-01-13 21:23:48 +000010529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10530$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10531if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010532 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010533else
mlcreechc658b0f2008-03-09 02:20:11 +000010534 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010536/* end confdefs.h. */
10537
drh8b727472009-01-19 18:18:40 +000010538/* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010541#ifdef __cplusplus
10542extern "C"
10543#endif
drh13c808a2016-01-13 21:23:48 +000010544char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010545int
10546main ()
10547{
drh13c808a2016-01-13 21:23:48 +000010548return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010549 ;
10550 return 0;
10551}
10552_ACEOF
drh8b727472009-01-19 18:18:40 +000010553for ac_lib in '' pthread; do
10554 if test -z "$ac_lib"; then
10555 ac_res="none required"
10556 else
10557 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010559 fi
drhf922ca42015-05-14 15:39:18 +000010560 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010561 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010562fi
drhf922ca42015-05-14 15:39:18 +000010563rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010565 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010566 break
drh866108f2008-05-13 00:57:21 +000010567fi
drh8b727472009-01-19 18:18:40 +000010568done
drh13c808a2016-01-13 21:23:48 +000010569if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010570
drh8b727472009-01-19 18:18:40 +000010571else
drh13c808a2016-01-13 21:23:48 +000010572 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010573fi
10574rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010575LIBS=$ac_func_search_save_LIBS
10576fi
drh13c808a2016-01-13 21:23:48 +000010577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10578$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10579ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010580if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010582
dougcurrie65623c72004-09-20 14:57:23 +000010583fi
10584
mlcreechc658b0f2008-03-09 02:20:11 +000010585fi
dougcurrie65623c72004-09-20 14:57:23 +000010586
xdong28f79f72003-09-23 00:35:21 +000010587##########
10588# Do we want to support release
10589#
drh8b727472009-01-19 18:18:40 +000010590# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010591if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010592 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010593else
10594 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010595fi
10596
drhf922ca42015-05-14 15:39:18 +000010597{ $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 +000010598$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010599if test "$enable_releasemode" = "no"; then
10600 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010602$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010603else
drh0b47d342007-11-27 14:50:06 +000010604 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010606$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010607fi
paulb0208cc2003-04-13 18:26:49 +000010608
a.rottmann964dbb12004-02-26 19:47:42 +000010609
paulb0208cc2003-04-13 18:26:49 +000010610##########
10611# Do we want temporary databases in memory
10612#
drh8b727472009-01-19 18:18:40 +000010613# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010614if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010615 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010616else
drh54414bb2005-10-10 00:05:50 +000010617 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010618fi
10619
drhf922ca42015-05-14 15:39:18 +000010620{ $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 +000010621$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010622case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010623 never )
paul2dc96f92003-04-20 11:46:34 +000010624 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010626$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010627 ;;
10628 no )
paul2dc96f92003-04-20 11:46:34 +000010629 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010631$as_echo "no" >&6; }
10632 ;;
10633 yes )
10634 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010636$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010637 ;;
10638 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010639 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010641$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010642 ;;
paulb0208cc2003-04-13 18:26:49 +000010643 * )
drh54414bb2005-10-10 00:05:50 +000010644 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010646$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010647 ;;
10648esac
10649
10650
10651
drh75897232000-05-29 14:26:00 +000010652###########
10653# Lots of things are different if we are compiling for Windows using
10654# the CYGWIN environment. So check for that special case and handle
10655# things accordingly.
10656#
drhf922ca42015-05-14 15:39:18 +000010657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010658$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010659if test "$config_BUILD_EXEEXT" = ".exe"; then
10660 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010662$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010663else
drhf922ca42015-05-14 15:39:18 +000010664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010665$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010666fi
10667if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010668
10669case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010670 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010671 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010672esac
drh75897232000-05-29 14:26:00 +000010673
drh75897232000-05-29 14:26:00 +000010674fi
10675if test "$CYGWIN" = "yes"; then
10676 BUILD_EXEEXT=.exe
10677else
dougcurrie6194a5f2003-12-19 20:09:51 +000010678 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010679fi
vapier7f19c022007-02-17 14:46:31 +000010680if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010681 TARGET_EXEEXT=$BUILD_EXEEXT
10682else
10683 TARGET_EXEEXT=$config_TARGET_EXEEXT
10684fi
10685if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010686 SQLITE_OS_UNIX=0
10687 SQLITE_OS_WIN=1
10688 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010689else
danielk197729bafea2008-06-26 10:41:19 +000010690 SQLITE_OS_UNIX=1
10691 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010692 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010693fi
drh75897232000-05-29 14:26:00 +000010694
a.rottmann84e63352003-03-24 09:42:16 +000010695
10696
10697
10698
10699
drh75897232000-05-29 14:26:00 +000010700##########
drh7b5717e2004-11-25 13:50:01 +000010701# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010702#
drh7b5717e2004-11-25 13:50:01 +000010703# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10704# macros in the in the tcl.m4 file of the standard TCL distribution.
10705# Those macros could not be used directly since we have to make some
10706# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010707#
drh8b727472009-01-19 18:18:40 +000010708# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010709if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010710 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010711else
drh7b5717e2004-11-25 13:50:01 +000010712 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010713fi
10714
drh7b5717e2004-11-25 13:50:01 +000010715if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010716
drh8b727472009-01-19 18:18:40 +000010717# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010718if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010719 withval=$with_tcl; with_tclconfig=${withval}
10720fi
10721
drhf922ca42015-05-14 15:39:18 +000010722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010723$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010724 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010725 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010726else
a.rottmann84e63352003-03-24 09:42:16 +000010727
drh7b5717e2004-11-25 13:50:01 +000010728 # First check to see if --with-tcl was specified.
10729 if test x"${with_tclconfig}" != x ; then
10730 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10731 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10732 else
drhf922ca42015-05-14 15:39:18 +000010733 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010734 fi
10735 fi
vapier6acb2cf2009-01-28 04:46:28 +000010736
10737 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010738 if test x"${ac_cv_c_tclconfig}" = x ; then
10739 if test x"$cross_compiling" = xno; then
10740 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10741 do
10742 if test -f "$i/tclConfig.sh" ; then
10743 ac_cv_c_tclconfig="$i"
10744 break
10745 fi
10746 done
10747 fi
vapier6acb2cf2009-01-28 04:46:28 +000010748 fi
10749
drhf960a642015-05-30 22:57:49 +000010750 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10751 # So try again after applying corrections.
10752 if test x"${ac_cv_c_tclconfig}" = x ; then
10753 if test x"$cross_compiling" = xno; then
10754 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10755 do
10756 if test -f "$i/tclConfig.sh" ; then
10757 ac_cv_c_tclconfig="$i"
10758 break
10759 fi
10760 done
10761 fi
10762 fi
10763
drh68314742016-05-23 00:10:58 +000010764 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10765 # in a strange place.
10766 if test x"${ac_cv_c_tclconfig}" = x ; then
10767 if test x"$cross_compiling" = xno; then
10768 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10769 do
10770 if test -f "$i/tclConfig.sh" ; then
10771 ac_cv_c_tclconfig="$i"
10772 break
10773 fi
10774 done
10775 fi
10776 fi
10777
drh7b5717e2004-11-25 13:50:01 +000010778 # then check for a private Tcl installation
10779 if test x"${ac_cv_c_tclconfig}" = x ; then
10780 for i in \
10781 ../tcl \
10782 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10783 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10784 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10785 ../../tcl \
10786 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10787 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10788 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10789 ../../../tcl \
10790 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10791 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10792 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10793 do
10794 if test -f "$i/unix/tclConfig.sh" ; then
10795 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10796 break
10797 fi
10798 done
10799 fi
10800
10801 # check in a few common install locations
10802 if test x"${ac_cv_c_tclconfig}" = x ; then
10803 for i in \
10804 `ls -d ${libdir} 2>/dev/null` \
10805 `ls -d /usr/local/lib 2>/dev/null` \
10806 `ls -d /usr/contrib/lib 2>/dev/null` \
10807 `ls -d /usr/lib 2>/dev/null`
10808 do
10809 if test -f "$i/tclConfig.sh" ; then
10810 ac_cv_c_tclconfig=`(cd $i; pwd)`
10811 break
10812 fi
10813 done
10814 fi
10815
10816 # check in a few other private locations
10817 if test x"${ac_cv_c_tclconfig}" = x ; then
10818 for i in \
10819 ${srcdir}/../tcl \
10820 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10821 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10823 do
10824 if test -f "$i/unix/tclConfig.sh" ; then
10825 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10826 break
10827 fi
10828 done
10829 fi
10830
drh75897232000-05-29 14:26:00 +000010831fi
10832
drh7b5717e2004-11-25 13:50:01 +000010833
10834 if test x"${ac_cv_c_tclconfig}" = x ; then
10835 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010837$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010842 else
10843 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010845$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010846
drhf922ca42015-05-14 15:39:18 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010848$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010849 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010851$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010852 . $TCL_BIN_DIR/tclConfig.sh
10853 else
drhf922ca42015-05-14 15:39:18 +000010854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010855$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010856 fi
drh7b5717e2004-11-25 13:50:01 +000010857
10858 #
10859 # If the TCL_BIN_DIR is the build directory (not the install directory),
10860 # then set the common variable name to the value of the build variables.
10861 # For example, the variable TCL_LIB_SPEC will be set to the value
10862 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10863 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10864 # installed and uninstalled version of Tcl.
10865 #
10866
mlcreechab1c47b2008-03-09 02:51:10 +000010867 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010868 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10869 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10870 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10871 fi
10872
10873 #
10874 # eval is required to do the TCL_DBGX substitution
10875 #
10876
10877 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10878 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10879 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10880
10881 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10882 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10883 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
drhd881ce82015-03-31 17:01:52 +000010897
drh7b5717e2004-11-25 13:50:01 +000010898 fi
drh75897232000-05-29 14:26:00 +000010899fi
drh7b5717e2004-11-25 13:50:01 +000010900if test "${use_tcl}" = "no" ; then
10901 HAVE_TCL=""
10902else
10903 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010904fi
drh75897232000-05-29 14:26:00 +000010905
a.rottmann84e63352003-03-24 09:42:16 +000010906
drh75897232000-05-29 14:26:00 +000010907##########
10908# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010909# that use "readline()" library.
10910#
vapier7f19c022007-02-17 14:46:31 +000010911TARGET_READLINE_LIBS=""
10912TARGET_READLINE_INC=""
10913TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010914TARGET_HAVE_EDITLINE=0
10915# Check whether --enable-editline was given.
10916if test "${enable_editline+set}" = set; then :
10917 enableval=$enable_editline; with_editline=$enableval
10918else
10919 with_editline=auto
10920fi
10921
drh8b727472009-01-19 18:18:40 +000010922# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010923if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010924 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010925else
vapier7f19c022007-02-17 14:46:31 +000010926 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010927fi
10928
vapier7f19c022007-02-17 14:46:31 +000010929
drhe44b8352015-10-30 14:25:57 +000010930if test x"$with_editline" != xno; then
10931 sLIBS=$LIBS
10932 LIBS=""
10933 TARGET_HAVE_EDITLINE=1
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10935$as_echo_n "checking for library containing readline... " >&6; }
10936if ${ac_cv_search_readline+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938else
10939 ac_func_search_save_LIBS=$LIBS
10940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h. */
10942
10943/* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char readline ();
10950int
10951main ()
10952{
10953return readline ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958for ac_lib in '' edit; do
10959 if test -z "$ac_lib"; then
10960 ac_res="none required"
10961 else
10962 ac_res=-l$ac_lib
10963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10964 fi
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_search_readline=$ac_res
10967fi
10968rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext
10970 if ${ac_cv_search_readline+:} false; then :
10971 break
10972fi
10973done
10974if ${ac_cv_search_readline+:} false; then :
10975
10976else
10977 ac_cv_search_readline=no
10978fi
10979rm conftest.$ac_ext
10980LIBS=$ac_func_search_save_LIBS
10981fi
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10983$as_echo "$ac_cv_search_readline" >&6; }
10984ac_res=$ac_cv_search_readline
10985if test "$ac_res" != no; then :
10986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10987 with_readline=no
10988else
10989 TARGET_HAVE_EDITLINE=0
10990fi
10991
10992 TARGET_READLINE_LIBS=$LIBS
10993 LIBS=$sLIBS
10994fi
vapier7f19c022007-02-17 14:46:31 +000010995if test x"$with_readline" != xno; then
10996 found="yes"
10997
10998
drh8b727472009-01-19 18:18:40 +000010999# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011000if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011001 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011002else
11003 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011004fi
11005
vapier7f19c022007-02-17 14:46:31 +000011006 if test "x$with_readline_lib" = xauto; then
11007 save_LIBS="$LIBS"
11008 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011010$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011011if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011012 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011013else
drh71eb93e2001-09-28 01:34:43 +000011014 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011016/* end confdefs.h. */
11017
drh8b727472009-01-19 18:18:40 +000011018/* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011021#ifdef __cplusplus
11022extern "C"
11023#endif
paul38372372003-04-22 08:04:49 +000011024char tgetent ();
11025int
11026main ()
11027{
drh8b727472009-01-19 18:18:40 +000011028return tgetent ();
paul38372372003-04-22 08:04:49 +000011029 ;
11030 return 0;
11031}
11032_ACEOF
drh8b727472009-01-19 18:18:40 +000011033for ac_lib in '' readline ncurses curses termcap; do
11034 if test -z "$ac_lib"; then
11035 ac_res="none required"
11036 else
11037 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011039 fi
drhf922ca42015-05-14 15:39:18 +000011040 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011041 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011042fi
drhf922ca42015-05-14 15:39:18 +000011043rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext
11045 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011046 break
drh866108f2008-05-13 00:57:21 +000011047fi
drh8b727472009-01-19 18:18:40 +000011048done
drhf922ca42015-05-14 15:39:18 +000011049if ${ac_cv_search_tgetent+:} false; then :
11050
drh8b727472009-01-19 18:18:40 +000011051else
11052 ac_cv_search_tgetent=no
11053fi
11054rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011055LIBS=$ac_func_search_save_LIBS
11056fi
drhf922ca42015-05-14 15:39:18 +000011057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011058$as_echo "$ac_cv_search_tgetent" >&6; }
11059ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011060if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011062 term_LIBS="$LIBS"
11063else
11064 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011065fi
11066
drhf922ca42015-05-14 15:39:18 +000011067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011068$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011069if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011070 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011071else
11072 ac_check_lib_save_LIBS=$LIBS
11073LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011075/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011076
drh8b727472009-01-19 18:18:40 +000011077/* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011080#ifdef __cplusplus
11081extern "C"
11082#endif
drh71eb93e2001-09-28 01:34:43 +000011083char readline ();
11084int
11085main ()
11086{
drh8b727472009-01-19 18:18:40 +000011087return readline ();
drh71eb93e2001-09-28 01:34:43 +000011088 ;
11089 return 0;
11090}
11091_ACEOF
drhf922ca42015-05-14 15:39:18 +000011092if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011093 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011094else
drhf922ca42015-05-14 15:39:18 +000011095 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011096fi
drhf922ca42015-05-14 15:39:18 +000011097rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011099LIBS=$ac_check_lib_save_LIBS
11100fi
drhf922ca42015-05-14 15:39:18 +000011101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011102$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011103if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011104 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011105else
vapier7f19c022007-02-17 14:46:31 +000011106 found="no"
11107fi
drhf1878b42006-01-23 18:06:52 +000011108
vapier7f19c022007-02-17 14:46:31 +000011109 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11110 LIBS="$save_LIBS"
11111 else
11112 TARGET_READLINE_LIBS="$with_readline_lib"
11113 fi
11114
11115
drh8b727472009-01-19 18:18:40 +000011116# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011117if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011118 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011119else
vapier7f19c022007-02-17 14:46:31 +000011120 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011121fi
11122
vapier7f19c022007-02-17 14:46:31 +000011123 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011124 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11125if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011126 found="yes"
11127else
drh75897232000-05-29 14:26:00 +000011128
vapier7f19c022007-02-17 14:46:31 +000011129 found="no"
11130 if test "$cross_compiling" != yes; then
11131 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11132 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011133 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011135$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011136if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011137 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011138else
11139 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011140 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011141if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011142 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011143else
drh71eb93e2001-09-28 01:34:43 +000011144 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011145fi
11146fi
drhf922ca42015-05-14 15:39:18 +000011147eval ac_res=\$$as_ac_File
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011149$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011150if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011151 found=yes
drh75897232000-05-29 14:26:00 +000011152fi
11153
vapier7f19c022007-02-17 14:46:31 +000011154 if test "$found" = "yes"; then
11155 TARGET_READLINE_INC="-I$dir/$subdir"
11156 break
11157 fi
11158 done
11159 test "$found" = "yes" && break
11160 done
11161 fi
11162
11163fi
11164
11165
11166 else
11167 TARGET_READLINE_INC="$with_readline_inc"
11168 fi
11169
11170 if test x"$found" = xno; then
11171 TARGET_READLINE_LIBS=""
11172 TARGET_READLINE_INC=""
11173 TARGET_HAVE_READLINE=0
11174 else
11175 TARGET_HAVE_READLINE=1
11176 fi
11177fi
11178
11179
11180
11181
11182
drhe44b8352015-10-30 14:25:57 +000011183
vapier7f19c022007-02-17 14:46:31 +000011184##########
11185# Figure out what C libraries are required to compile programs
11186# that use "fdatasync()" function.
11187#
drhf922ca42015-05-14 15:39:18 +000011188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011189$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011190if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011191 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011192else
vapier7f19c022007-02-17 14:46:31 +000011193 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011195/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011196
drh8b727472009-01-19 18:18:40 +000011197/* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011200#ifdef __cplusplus
11201extern "C"
11202#endif
11203char fdatasync ();
11204int
11205main ()
11206{
drh8b727472009-01-19 18:18:40 +000011207return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011208 ;
11209 return 0;
11210}
11211_ACEOF
drh8b727472009-01-19 18:18:40 +000011212for ac_lib in '' rt; do
11213 if test -z "$ac_lib"; then
11214 ac_res="none required"
11215 else
11216 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011218 fi
drhf922ca42015-05-14 15:39:18 +000011219 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011220 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011221fi
drhf922ca42015-05-14 15:39:18 +000011222rm -f core conftest.err conftest.$ac_objext \
11223 conftest$ac_exeext
11224 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011225 break
drh866108f2008-05-13 00:57:21 +000011226fi
drh8b727472009-01-19 18:18:40 +000011227done
drhf922ca42015-05-14 15:39:18 +000011228if ${ac_cv_search_fdatasync+:} false; then :
11229
drh8b727472009-01-19 18:18:40 +000011230else
11231 ac_cv_search_fdatasync=no
11232fi
11233rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011234LIBS=$ac_func_search_save_LIBS
11235fi
drhf922ca42015-05-14 15:39:18 +000011236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011237$as_echo "$ac_cv_search_fdatasync" >&6; }
11238ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011239if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011241
vapier7f19c022007-02-17 14:46:31 +000011242fi
11243
a.rottmann84e63352003-03-24 09:42:16 +000011244
drh75897232000-05-29 14:26:00 +000011245#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011246# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011247# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011248if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011249 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011250fi
11251
drh8fa622d2018-06-11 19:47:14 +000011252if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011253 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011254else
11255 TARGET_DEBUG="-DNDEBUG"
11256fi
11257
11258
11259#########
mlcreech94984912008-03-04 19:03:08 +000011260# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011261# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011262if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011263 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011264fi
11265
danb13d5c22020-07-07 19:24:34 +000011266if test "${enable_amalgamation}" = "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011267 USE_AMALGAMATION=0
11268fi
11269
11270
11271#########
drh56c93112017-11-24 16:55:48 +000011272# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11273for ac_header in zlib.h
11274do :
11275 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11276if test "x$ac_cv_header_zlib_h" = xyes; then :
11277 cat >>confdefs.h <<_ACEOF
11278#define HAVE_ZLIB_H 1
11279_ACEOF
11280
11281fi
11282
11283done
11284
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11286$as_echo_n "checking for library containing deflate... " >&6; }
11287if ${ac_cv_search_deflate+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289else
11290 ac_func_search_save_LIBS=$LIBS
11291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292/* end confdefs.h. */
11293
11294/* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297#ifdef __cplusplus
11298extern "C"
11299#endif
11300char deflate ();
11301int
11302main ()
11303{
11304return deflate ();
11305 ;
11306 return 0;
11307}
11308_ACEOF
11309for ac_lib in '' z; do
11310 if test -z "$ac_lib"; then
11311 ac_res="none required"
11312 else
11313 ac_res=-l$ac_lib
11314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11315 fi
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_search_deflate=$ac_res
11318fi
11319rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext
11321 if ${ac_cv_search_deflate+:} false; then :
11322 break
11323fi
11324done
11325if ${ac_cv_search_deflate+:} false; then :
11326
11327else
11328 ac_cv_search_deflate=no
11329fi
11330rm conftest.$ac_ext
11331LIBS=$ac_func_search_save_LIBS
11332fi
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11334$as_echo "$ac_cv_search_deflate" >&6; }
11335ac_res=$ac_cv_search_deflate
11336if test "$ac_res" != no; then :
11337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11338 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11339else
11340 HAVE_ZLIB=""
11341fi
11342
11343
11344
11345#########
mlcreecha4edab02008-03-06 04:14:17 +000011346# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011347# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011348if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011349 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011350else
drh8fa622d2018-06-11 19:47:14 +000011351 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011352fi
11353
drh8fa622d2018-06-11 19:47:14 +000011354if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011355 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011357$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011358if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011359 $as_echo_n "(cached) " >&6
11360else
11361 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011363/* end confdefs.h. */
11364
11365/* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
11368#ifdef __cplusplus
11369extern "C"
11370#endif
11371char dlopen ();
11372int
11373main ()
11374{
11375return dlopen ();
11376 ;
11377 return 0;
11378}
11379_ACEOF
11380for ac_lib in '' dl; do
11381 if test -z "$ac_lib"; then
11382 ac_res="none required"
11383 else
11384 ac_res=-l$ac_lib
11385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11386 fi
drhf922ca42015-05-14 15:39:18 +000011387 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011388 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011389fi
drhf922ca42015-05-14 15:39:18 +000011390rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext
11392 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011393 break
11394fi
11395done
drhf922ca42015-05-14 15:39:18 +000011396if ${ac_cv_search_dlopen+:} false; then :
11397
drhdbe4b882011-06-20 18:00:17 +000011398else
11399 ac_cv_search_dlopen=no
11400fi
11401rm conftest.$ac_ext
11402LIBS=$ac_func_search_save_LIBS
11403fi
drhf922ca42015-05-14 15:39:18 +000011404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011405$as_echo "$ac_cv_search_dlopen" >&6; }
11406ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011407if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11409
11410fi
11411
mlcreecha4edab02008-03-06 04:14:17 +000011412else
shanefbedede2008-07-22 05:05:01 +000011413 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011414fi
11415
drhc530b9c2016-07-25 11:27:22 +000011416##########
drhf6e904b2020-12-07 17:15:32 +000011417# Do we want to support math functions
11418#
drhe2ce8c42020-12-07 21:19:17 +000011419# Check whether --enable-math was given.
11420if test "${enable_math+set}" = set; then :
11421 enableval=$enable_math;
drhf6e904b2020-12-07 17:15:32 +000011422fi
11423
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11425$as_echo_n "checking whether to support math functions... " >&6; }
11426if test "$enable_math" = "no"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
11429else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11431$as_echo "yes" >&6; }
11432 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11434$as_echo_n "checking for library containing ceil... " >&6; }
11435if ${ac_cv_search_ceil+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437else
11438 ac_func_search_save_LIBS=$LIBS
11439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h. */
11441
11442/* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445#ifdef __cplusplus
11446extern "C"
11447#endif
11448char ceil ();
11449int
11450main ()
11451{
11452return ceil ();
11453 ;
11454 return 0;
11455}
11456_ACEOF
11457for ac_lib in '' m; do
11458 if test -z "$ac_lib"; then
11459 ac_res="none required"
11460 else
11461 ac_res=-l$ac_lib
11462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11463 fi
11464 if ac_fn_c_try_link "$LINENO"; then :
11465 ac_cv_search_ceil=$ac_res
11466fi
11467rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext
11469 if ${ac_cv_search_ceil+:} false; then :
11470 break
11471fi
11472done
11473if ${ac_cv_search_ceil+:} false; then :
11474
11475else
11476 ac_cv_search_ceil=no
11477fi
11478rm conftest.$ac_ext
11479LIBS=$ac_func_search_save_LIBS
11480fi
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11482$as_echo "$ac_cv_search_ceil" >&6; }
11483ac_res=$ac_cv_search_ceil
11484if test "$ac_res" != no; then :
11485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11486
11487fi
11488
11489fi
11490
11491##########
drhc530b9c2016-07-25 11:27:22 +000011492# Do we want to support memsys3 and/or memsys5
11493#
drhc530b9c2016-07-25 11:27:22 +000011494# Check whether --enable-memsys5 was given.
11495if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011496 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011497fi
11498
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11500$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011501if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011502 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504$as_echo "yes" >&6; }
11505else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507$as_echo "no" >&6; }
11508fi
drh5d513ba2016-07-25 11:57:21 +000011509# Check whether --enable-memsys3 was given.
11510if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011511 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011512fi
11513
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11515$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11516if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011517 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519$as_echo "yes" >&6; }
11520else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522$as_echo "no" >&6; }
11523fi
drhc530b9c2016-07-25 11:27:22 +000011524
drh29368ea2019-12-28 13:17:11 +000011525########
11526# The --enable-extensions argument is short-hand to enable
11527# multiple extensions.
11528# Check whether --enable-all was given.
11529if test "${enable_all+set}" = set; then :
11530 enableval=$enable_all;
11531fi
11532
11533
mlcreechaac7b932008-04-01 02:45:22 +000011534#########
drhce1d9f52015-10-09 12:48:33 +000011535# See whether we should enable Full Text Search extensions
11536# Check whether --enable-fts3 was given.
11537if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011538 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011539fi
11540
11541if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011542 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011543fi
11544# Check whether --enable-fts4 was given.
11545if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011546 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011547fi
11548
drh29368ea2019-12-28 13:17:11 +000011549if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011550 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11552$as_echo_n "checking for library containing log... " >&6; }
11553if ${ac_cv_search_log+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555else
11556 ac_func_search_save_LIBS=$LIBS
11557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558/* end confdefs.h. */
11559
11560/* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563#ifdef __cplusplus
11564extern "C"
11565#endif
11566char log ();
11567int
11568main ()
11569{
11570return log ();
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575for ac_lib in '' m; do
11576 if test -z "$ac_lib"; then
11577 ac_res="none required"
11578 else
11579 ac_res=-l$ac_lib
11580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11581 fi
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 ac_cv_search_log=$ac_res
11584fi
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext
11587 if ${ac_cv_search_log+:} false; then :
11588 break
11589fi
11590done
11591if ${ac_cv_search_log+:} false; then :
11592
11593else
11594 ac_cv_search_log=no
11595fi
11596rm conftest.$ac_ext
11597LIBS=$ac_func_search_save_LIBS
11598fi
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11600$as_echo "$ac_cv_search_log" >&6; }
11601ac_res=$ac_cv_search_log
11602if test "$ac_res" != no; then :
11603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11604
11605fi
11606
11607fi
11608# Check whether --enable-fts5 was given.
11609if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011610 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011611fi
11612
drh29368ea2019-12-28 13:17:11 +000011613if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011614 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11616$as_echo_n "checking for library containing log... " >&6; }
11617if ${ac_cv_search_log+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619else
11620 ac_func_search_save_LIBS=$LIBS
11621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h. */
11623
11624/* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627#ifdef __cplusplus
11628extern "C"
11629#endif
11630char log ();
11631int
11632main ()
11633{
11634return log ();
11635 ;
11636 return 0;
11637}
11638_ACEOF
11639for ac_lib in '' m; do
11640 if test -z "$ac_lib"; then
11641 ac_res="none required"
11642 else
11643 ac_res=-l$ac_lib
11644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11645 fi
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_search_log=$ac_res
11648fi
11649rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext
11651 if ${ac_cv_search_log+:} false; then :
11652 break
11653fi
11654done
11655if ${ac_cv_search_log+:} false; then :
11656
11657else
11658 ac_cv_search_log=no
11659fi
11660rm conftest.$ac_ext
11661LIBS=$ac_func_search_save_LIBS
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11664$as_echo "$ac_cv_search_log" >&6; }
11665ac_res=$ac_cv_search_log
11666if test "$ac_res" != no; then :
11667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11668
11669fi
11670
11671fi
11672
11673#########
11674# See whether we should enable JSON1
11675# Check whether --enable-json1 was given.
11676if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011677 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011678fi
11679
drh29368ea2019-12-28 13:17:11 +000011680if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011681 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011682fi
11683
11684#########
drh83bebdd2017-08-28 17:00:12 +000011685# See whether we should enable the LIMIT clause on UPDATE and DELETE
11686# statements.
11687# Check whether --enable-update-limit was given.
11688if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011689 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011690fi
11691
drhb13c3a32020-06-15 14:38:57 +000011692if test "${enable_update_limit}" = "yes" ; then
drh83bebdd2017-08-28 17:00:12 +000011693 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11694fi
11695
11696#########
drh748b8fd2018-05-25 19:22:47 +000011697# See whether we should enable GEOPOLY
11698# Check whether --enable-geopoly was given.
11699if test "${enable_geopoly+set}" = set; then :
11700 enableval=$enable_geopoly; enable_geopoly=yes
11701else
11702 enable_geopoly=no
11703fi
11704
drh29368ea2019-12-28 13:17:11 +000011705if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
drh748b8fd2018-05-25 19:22:47 +000011706 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11707 enable_rtree=yes
11708fi
11709
11710#########
drhce1d9f52015-10-09 12:48:33 +000011711# See whether we should enable RTREE
11712# Check whether --enable-rtree was given.
11713if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011714 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011715fi
11716
11717if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011718 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011719fi
11720
11721#########
drh5e18d402016-05-03 13:14:18 +000011722# See whether we should enable the SESSION extension
11723# Check whether --enable-session was given.
11724if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011725 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011726fi
11727
drh29368ea2019-12-28 13:17:11 +000011728if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011729 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11730 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011731fi
11732
11733#########
drh8c9ed052017-05-29 17:43:06 +000011734# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011735for option in $CFLAGS $CPPFLAGS
11736do
11737 case $option in
danielk197733a14782008-08-04 14:50:05 +000011738 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011739 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011740 esac
11741done
11742
11743
danielk197733a14782008-08-04 14:50:05 +000011744
shaneb1cd7302008-10-22 18:27:31 +000011745# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011746ac_temp_CFLAGS=""
11747for option in $CFLAGS
11748do
11749 case $option in
11750 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011751 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011752 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011753 esac
11754done
11755CFLAGS=$ac_temp_CFLAGS
11756
11757
shaneb1cd7302008-10-22 18:27:31 +000011758# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011759ac_temp_CPPFLAGS=""
11760for option in $CPPFLAGS
11761do
11762 case $option in
11763 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011764 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011765 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011766 esac
11767done
11768CPPFLAGS=$ac_temp_CPPFLAGS
11769
danielk197733a14782008-08-04 14:50:05 +000011770
drh8b727472009-01-19 18:18:40 +000011771# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011772ac_temp_BUILD_CFLAGS=""
11773for option in $BUILD_CFLAGS
11774do
11775 case $option in
11776 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011777 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011778 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011779 esac
11780done
11781BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11782
11783
11784#########
11785# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011786# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011787if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011788 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011789fi
11790
mlcreechaac7b932008-04-01 02:45:22 +000011791if test "${use_gcov}" = "yes" ; then
11792 USE_GCOV=1
11793else
11794 USE_GCOV=0
11795fi
11796
11797
danielk197733a14782008-08-04 14:50:05 +000011798
drh2dfbbca2000-07-28 14:32:48 +000011799#########
mlcreechb87057f2008-03-06 07:19:20 +000011800# Output the config header
drh8b727472009-01-19 18:18:40 +000011801ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011802
11803
11804#########
drh75897232000-05-29 14:26:00 +000011805# Generate the output files.
11806#
mlcreechdf59c7c2008-03-06 07:51:15 +000011807
drh8b727472009-01-19 18:18:40 +000011808ac_config_files="$ac_config_files Makefile sqlite3.pc"
11809
drh71eb93e2001-09-28 01:34:43 +000011810cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011811# This file is a shell script that caches the results of configure
11812# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011813# scripts and configure runs, see configure's option --config-cache.
11814# It is not useful on other systems. If it contains results you don't
11815# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011816#
drh71eb93e2001-09-28 01:34:43 +000011817# config.status only pays attention to the cache file if you give it
11818# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011819#
a.rottmann84e63352003-03-24 09:42:16 +000011820# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011821# loading this file, other *unset* `ac_cv_foo' will be assigned the
11822# following values.
11823
11824_ACEOF
11825
drh75897232000-05-29 14:26:00 +000011826# The following way of writing the cache mishandles newlines in values,
11827# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011828# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011829# Ultrix sh set writes to stderr and can't be redirected directly,
11830# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011831(
11832 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11833 eval ac_val=\$$ac_var
11834 case $ac_val in #(
11835 *${as_nl}*)
11836 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011837 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11838$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011839 esac
11840 case $ac_var in #(
11841 _ | IFS | as_nl) ;; #(
11842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011843 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011844 esac ;;
11845 esac
11846 done
11847
drh71eb93e2001-09-28 01:34:43 +000011848 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011849 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11850 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011851 # `set' does not quote correctly, so add quotes: double-quote
11852 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011853 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011854 "s/'/'\\\\''/g;
11855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011856 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011857 *)
11858 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011860 ;;
drh8b727472009-01-19 18:18:40 +000011861 esac |
11862 sort
11863) |
drh71eb93e2001-09-28 01:34:43 +000011864 sed '
drh8b727472009-01-19 18:18:40 +000011865 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011866 t clear
drh8b727472009-01-19 18:18:40 +000011867 :clear
drh71eb93e2001-09-28 01:34:43 +000011868 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11869 t end
drh8b727472009-01-19 18:18:40 +000011870 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11871 :end' >>confcache
11872if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11873 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011874 if test "x$cache_file" != "x/dev/null"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011876$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011877 if test ! -f "$cache_file" || test -h "$cache_file"; then
11878 cat confcache >"$cache_file"
11879 else
11880 case $cache_file in #(
11881 */* | ?:*)
11882 mv -f confcache "$cache_file"$$ &&
11883 mv -f "$cache_file"$$ "$cache_file" ;; #(
11884 *)
11885 mv -f confcache "$cache_file" ;;
11886 esac
11887 fi
11888 fi
drh75897232000-05-29 14:26:00 +000011889 else
drhf922ca42015-05-14 15:39:18 +000011890 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011891$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011892 fi
11893fi
11894rm -f confcache
11895
drh75897232000-05-29 14:26:00 +000011896test "x$prefix" = xNONE && prefix=$ac_default_prefix
11897# Let make expand exec_prefix.
11898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11899
mlcreechb87057f2008-03-06 07:19:20 +000011900DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011901
11902ac_libobjs=
11903ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011904U=
a.rottmann84e63352003-03-24 09:42:16 +000011905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11906 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11910 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011913done
11914LIBOBJS=$ac_libobjs
11915
11916LTLIBOBJS=$ac_ltlibobjs
11917
11918
11919
drhf922ca42015-05-14 15:39:18 +000011920: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011921ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011922ac_clean_files_save=$ac_clean_files
11923ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011924{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011925$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011926as_write_fail=0
11927cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011928#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011929# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011930# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011931# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011932# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011933
drh71eb93e2001-09-28 01:34:43 +000011934debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011935ac_cs_recheck=false
11936ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011937
drhf922ca42015-05-14 15:39:18 +000011938SHELL=\${CONFIG_SHELL-$SHELL}
11939export SHELL
11940_ASEOF
11941cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11942## -------------------- ##
11943## M4sh Initialization. ##
11944## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011945
drh8b727472009-01-19 18:18:40 +000011946# Be more Bourne compatible
11947DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011948if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011949 emulate sh
11950 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011951 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011952 # is contrary to our usage. Disable this feature.
11953 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011954 setopt NO_GLOB_SUBST
11955else
drhf922ca42015-05-14 15:39:18 +000011956 case `(set -o) 2>/dev/null` in #(
11957 *posix*) :
11958 set -o posix ;; #(
11959 *) :
11960 ;;
drh8b727472009-01-19 18:18:40 +000011961esac
a.rottmann84e63352003-03-24 09:42:16 +000011962fi
drh8b727472009-01-19 18:18:40 +000011963
11964
drh8b727472009-01-19 18:18:40 +000011965as_nl='
11966'
11967export as_nl
11968# Printing a long string crashes Solaris 7 /usr/bin/printf.
11969as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11970as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011972# Prefer a ksh shell builtin over an external printf program on Solaris,
11973# but without wasting forks for bash or zsh.
11974if test -z "$BASH_VERSION$ZSH_VERSION" \
11975 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11976 as_echo='print -r --'
11977 as_echo_n='print -rn --'
11978elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011979 as_echo='printf %s\n'
11980 as_echo_n='printf %s'
11981else
11982 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11983 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11984 as_echo_n='/usr/ucb/echo -n'
11985 else
11986 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11987 as_echo_n_body='eval
11988 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011989 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011990 *"$as_nl"*)
11991 expr "X$arg" : "X\\(.*\\)$as_nl";
11992 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11993 esac;
11994 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11995 '
11996 export as_echo_n_body
11997 as_echo_n='sh -c $as_echo_n_body as_echo'
11998 fi
11999 export as_echo_body
12000 as_echo='sh -c $as_echo_body as_echo'
12001fi
12002
12003# The user is always right.
12004if test "${PATH_SEPARATOR+set}" != set; then
12005 PATH_SEPARATOR=:
12006 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12007 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12008 PATH_SEPARATOR=';'
12009 }
12010fi
a.rottmann84e63352003-03-24 09:42:16 +000012011
mlcreech94984912008-03-04 19:03:08 +000012012
drh8b727472009-01-19 18:18:40 +000012013# IFS
12014# We need space, tab and new line, in precisely that order. Quoting is
12015# there to prevent editors from complaining about space-tab.
12016# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12017# splitting by setting IFS to empty value.)
12018IFS=" "" $as_nl"
12019
12020# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000012021as_myself=
12022case $0 in #((
drh8b727472009-01-19 18:18:40 +000012023 *[\\/]* ) as_myself=$0 ;;
12024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000012029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12030 done
drh8b727472009-01-19 18:18:40 +000012031IFS=$as_save_IFS
12032
12033 ;;
12034esac
12035# We did not find ourselves, most probably we were run as `sh COMMAND'
12036# in which case we are not to be found in the path.
12037if test "x$as_myself" = x; then
12038 as_myself=$0
12039fi
12040if test ! -f "$as_myself"; then
12041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000012042 exit 1
drh8b727472009-01-19 18:18:40 +000012043fi
12044
drhf922ca42015-05-14 15:39:18 +000012045# Unset variables that we do not need and which cause bugs (e.g. in
12046# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12047# suppresses any "Segmentation fault" message there. '((' could
12048# trigger a bug in pdksh 5.2.14.
12049for as_var in BASH_ENV ENV MAIL MAILPATH
12050do eval test x\${$as_var+set} = xset \
12051 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000012052done
mlcreech94984912008-03-04 19:03:08 +000012053PS1='$ '
12054PS2='> '
12055PS4='+ '
12056
12057# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000012058LC_ALL=C
12059export LC_ALL
12060LANGUAGE=C
12061export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000012062
drhf922ca42015-05-14 15:39:18 +000012063# CDPATH.
12064(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12065
12066
12067# as_fn_error STATUS ERROR [LINENO LOG_FD]
12068# ----------------------------------------
12069# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12070# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12071# script with STATUS, using 1 if that was 0.
12072as_fn_error ()
12073{
12074 as_status=$1; test $as_status -eq 0 && as_status=1
12075 if test "$4"; then
12076 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12078 fi
12079 $as_echo "$as_me: error: $2" >&2
12080 as_fn_exit $as_status
12081} # as_fn_error
12082
12083
12084# as_fn_set_status STATUS
12085# -----------------------
12086# Set $? to STATUS, without forking.
12087as_fn_set_status ()
12088{
12089 return $1
12090} # as_fn_set_status
12091
12092# as_fn_exit STATUS
12093# -----------------
12094# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12095as_fn_exit ()
12096{
12097 set +e
12098 as_fn_set_status $1
12099 exit $1
12100} # as_fn_exit
12101
12102# as_fn_unset VAR
12103# ---------------
12104# Portably unset VAR.
12105as_fn_unset ()
12106{
12107 { eval $1=; unset $1;}
12108}
12109as_unset=as_fn_unset
12110# as_fn_append VAR VALUE
12111# ----------------------
12112# Append the text in VALUE to the end of the definition contained in VAR. Take
12113# advantage of any shell optimizations that allow amortized linear growth over
12114# repeated appends, instead of the typical quadratic growth present in naive
12115# implementations.
12116if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12117 eval 'as_fn_append ()
12118 {
12119 eval $1+=\$2
12120 }'
12121else
12122 as_fn_append ()
12123 {
12124 eval $1=\$$1\$2
12125 }
12126fi # as_fn_append
12127
12128# as_fn_arith ARG...
12129# ------------------
12130# Perform arithmetic evaluation on the ARGs, and store the result in the
12131# global $as_val. Take advantage of shells that can avoid forks. The arguments
12132# must be portable across $(()) and expr.
12133if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12134 eval 'as_fn_arith ()
12135 {
12136 as_val=$(( $* ))
12137 }'
12138else
12139 as_fn_arith ()
12140 {
12141 as_val=`expr "$@" || test $? -eq 1`
12142 }
12143fi # as_fn_arith
12144
12145
drh8b727472009-01-19 18:18:40 +000012146if expr a : '\(a\)' >/dev/null 2>&1 &&
12147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012148 as_expr=expr
12149else
12150 as_expr=false
12151fi
12152
drh8b727472009-01-19 18:18:40 +000012153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012154 as_basename=basename
12155else
12156 as_basename=false
12157fi
12158
drhf922ca42015-05-14 15:39:18 +000012159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12160 as_dirname=dirname
12161else
12162 as_dirname=false
12163fi
mlcreech94984912008-03-04 19:03:08 +000012164
drh8b727472009-01-19 18:18:40 +000012165as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012166$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12167 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12169$as_echo X/"$0" |
12170 sed '/^.*\/\([^/][^/]*\)\/*$/{
12171 s//\1/
12172 q
12173 }
12174 /^X\/\(\/\/\)$/{
12175 s//\1/
12176 q
12177 }
12178 /^X\/\(\/\).*/{
12179 s//\1/
12180 q
12181 }
12182 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012183
drhf922ca42015-05-14 15:39:18 +000012184# Avoid depending upon Character Ranges.
12185as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12187as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12188as_cr_digits='0123456789'
12189as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012190
drh8b727472009-01-19 18:18:40 +000012191ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012192case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012193-n*)
drhf922ca42015-05-14 15:39:18 +000012194 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012196 xy) ECHO_C='\c';;
12197 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12198 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012199 esac;;
12200*)
12201 ECHO_N='-n';;
12202esac
drh71eb93e2001-09-28 01:34:43 +000012203
12204rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012205if test -d conf$$.dir; then
12206 rm -f conf$$.dir/conf$$.file
12207else
12208 rm -f conf$$.dir
12209 mkdir conf$$.dir 2>/dev/null
12210fi
12211if (echo >conf$$.file) 2>/dev/null; then
12212 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012213 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012214 # ... but there are two gotchas:
12215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012217 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012219 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012220 elif ln conf$$.file conf$$ 2>/dev/null; then
12221 as_ln_s=ln
12222 else
drhf922ca42015-05-14 15:39:18 +000012223 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012224 fi
drh71eb93e2001-09-28 01:34:43 +000012225else
drhf922ca42015-05-14 15:39:18 +000012226 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012227fi
drh8b727472009-01-19 18:18:40 +000012228rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12229rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012230
drhf922ca42015-05-14 15:39:18 +000012231
12232# as_fn_mkdir_p
12233# -------------
12234# Create "$as_dir" as a directory, including parents if necessary.
12235as_fn_mkdir_p ()
12236{
12237
12238 case $as_dir in #(
12239 -*) as_dir=./$as_dir;;
12240 esac
12241 test -d "$as_dir" || eval $as_mkdir_p || {
12242 as_dirs=
12243 while :; do
12244 case $as_dir in #(
12245 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12246 *) as_qdir=$as_dir;;
12247 esac
12248 as_dirs="'$as_qdir' $as_dirs"
12249 as_dir=`$as_dirname -- "$as_dir" ||
12250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251 X"$as_dir" : 'X\(//\)[^/]' \| \
12252 X"$as_dir" : 'X\(//\)$' \| \
12253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12254$as_echo X"$as_dir" |
12255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12256 s//\1/
12257 q
12258 }
12259 /^X\(\/\/\)[^/].*/{
12260 s//\1/
12261 q
12262 }
12263 /^X\(\/\/\)$/{
12264 s//\1/
12265 q
12266 }
12267 /^X\(\/\).*/{
12268 s//\1/
12269 q
12270 }
12271 s/.*/./; q'`
12272 test -d "$as_dir" && break
12273 done
12274 test -z "$as_dirs" || eval "mkdir $as_dirs"
12275 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12276
12277
12278} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012279if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012280 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012281else
a.rottmann964dbb12004-02-26 19:47:42 +000012282 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012283 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012284fi
12285
drhf922ca42015-05-14 15:39:18 +000012286
12287# as_fn_executable_p FILE
12288# -----------------------
12289# Test if FILE is an executable regular file.
12290as_fn_executable_p ()
12291{
12292 test -f "$1" && test -x "$1"
12293} # as_fn_executable_p
12294as_test_x='test -x'
12295as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012296
12297# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012298as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012299
12300# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012301as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012302
drh71eb93e2001-09-28 01:34:43 +000012303
drh71eb93e2001-09-28 01:34:43 +000012304exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012305## ----------------------------------- ##
12306## Main body of $CONFIG_STATUS script. ##
12307## ----------------------------------- ##
12308_ASEOF
12309test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012310
drhf922ca42015-05-14 15:39:18 +000012311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12312# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012313# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012314# values after options handling.
12315ac_log="
drh636f5052020-12-02 00:22:09 +000012316This file was extended by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +000012317generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012318
12319 CONFIG_FILES = $CONFIG_FILES
12320 CONFIG_HEADERS = $CONFIG_HEADERS
12321 CONFIG_LINKS = $CONFIG_LINKS
12322 CONFIG_COMMANDS = $CONFIG_COMMANDS
12323 $ $0 $@
12324
drh8b727472009-01-19 18:18:40 +000012325on `(hostname || uname -n) 2>/dev/null | sed 1q`
12326"
12327
drh71eb93e2001-09-28 01:34:43 +000012328_ACEOF
12329
drhf922ca42015-05-14 15:39:18 +000012330case $ac_config_files in *"
12331"*) set x $ac_config_files; shift; ac_config_files=$*;;
12332esac
12333
12334case $ac_config_headers in *"
12335"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12336esac
12337
12338
drh8b727472009-01-19 18:18:40 +000012339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012340# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012341config_files="$ac_config_files"
12342config_headers="$ac_config_headers"
12343config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012344
drh8b727472009-01-19 18:18:40 +000012345_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012346
drh8b727472009-01-19 18:18:40 +000012347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012348ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012349\`$as_me' instantiates files and other configuration actions
12350from templates according to the current configuration. Unless the files
12351and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012352
drhf922ca42015-05-14 15:39:18 +000012353Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012354
12355 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012356 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012357 --config print configuration, then exit
12358 -q, --quiet, --silent
12359 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012360 -d, --debug don't remove temporary files
12361 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012362 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012363 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012364 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012365 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012366
12367Configuration files:
12368$config_files
12369
mlcreechb87057f2008-03-06 07:19:20 +000012370Configuration headers:
12371$config_headers
12372
mlcreech636a9952008-05-05 22:52:56 +000012373Configuration commands:
12374$config_commands
12375
drhf922ca42015-05-14 15:39:18 +000012376Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012377
mlcreech94984912008-03-04 19:03:08 +000012378_ACEOF
drh8b727472009-01-19 18:18:40 +000012379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012380ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012381ac_cs_version="\\
drh636f5052020-12-02 00:22:09 +000012382sqlite config.status 3.35.0
drhf922ca42015-05-14 15:39:18 +000012383configured by $0, generated by GNU Autoconf 2.69,
12384 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012385
drhf922ca42015-05-14 15:39:18 +000012386Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012387This config.status script is free software; the Free Software Foundation
12388gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012389
12390ac_pwd='$ac_pwd'
12391srcdir='$srcdir'
12392INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012393test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012394_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012395
drh8b727472009-01-19 18:18:40 +000012396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12397# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012398ac_need_defaults=:
12399while test $# != 0
12400do
12401 case $1 in
drhf922ca42015-05-14 15:39:18 +000012402 --*=?*)
drh8b727472009-01-19 18:18:40 +000012403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012405 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012406 ;;
drhf922ca42015-05-14 15:39:18 +000012407 --*=)
12408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12409 ac_optarg=
12410 ac_shift=:
12411 ;;
drh8b727472009-01-19 18:18:40 +000012412 *)
a.rottmann84e63352003-03-24 09:42:16 +000012413 ac_option=$1
12414 ac_optarg=$2
12415 ac_shift=shift
12416 ;;
drh75897232000-05-29 14:26:00 +000012417 esac
12418
a.rottmann84e63352003-03-24 09:42:16 +000012419 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012420 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012422 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12424 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012425 --config | --confi | --conf | --con | --co | --c )
12426 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012427 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012428 debug=: ;;
12429 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012430 $ac_shift
drh8b727472009-01-19 18:18:40 +000012431 case $ac_optarg in
12432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012433 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012434 esac
drhf922ca42015-05-14 15:39:18 +000012435 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012436 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012437 --header | --heade | --head | --hea )
12438 $ac_shift
drh8b727472009-01-19 18:18:40 +000012439 case $ac_optarg in
12440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12441 esac
drhf922ca42015-05-14 15:39:18 +000012442 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012443 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012444 --he | --h)
12445 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012446 as_fn_error $? "ambiguous option: \`$1'
12447Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012448 --help | --hel | -h )
12449 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12452 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012453
drh71eb93e2001-09-28 01:34:43 +000012454 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012455 -*) as_fn_error $? "unrecognized option: \`$1'
12456Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012457
drhf922ca42015-05-14 15:39:18 +000012458 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012459 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012460
12461 esac
12462 shift
12463done
12464
a.rottmann84e63352003-03-24 09:42:16 +000012465ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012466
a.rottmann84e63352003-03-24 09:42:16 +000012467if $ac_cs_silent; then
12468 exec 6>/dev/null
12469 ac_configure_extra_args="$ac_configure_extra_args --silent"
12470fi
drh71eb93e2001-09-28 01:34:43 +000012471
12472_ACEOF
drh8b727472009-01-19 18:18:40 +000012473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012474if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012476 shift
12477 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12478 CONFIG_SHELL='$SHELL'
12479 export CONFIG_SHELL
12480 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012481fi
drh71eb93e2001-09-28 01:34:43 +000012482
a.rottmann84e63352003-03-24 09:42:16 +000012483_ACEOF
drh8b727472009-01-19 18:18:40 +000012484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12485exec 5>>config.log
12486{
12487 echo
12488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12489## Running $as_me. ##
12490_ASBOX
12491 $as_echo "$ac_log"
12492} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012493
drh8b727472009-01-19 18:18:40 +000012494_ACEOF
12495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012496#
drh8b727472009-01-19 18:18:40 +000012497# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012498#
12499
12500
12501# The HP-UX ksh and POSIX shell print the target directory to stdout
12502# if CDPATH is set.
12503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12504
12505sed_quote_subst='$sed_quote_subst'
12506double_quote_subst='$double_quote_subst'
12507delay_variable_subst='$delay_variable_subst'
12508macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12509macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12510enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12511enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12512pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12513enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12514host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12515host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12516host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12517build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12518build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12519build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12520SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12521Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12522GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12523EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12524FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12525LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12526NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12527LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12528max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12529ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12530exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12531lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12532lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12533lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12534reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12535reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012536OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012537deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12538file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12539AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12540AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12541STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12542RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12543old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12544old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12545old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12546CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12547CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12548compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12549GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12550lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12551lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12552lt_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"`'
12553lt_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"`'
12554objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12555SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12556ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12557MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12558lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12559lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12560lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12561lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12562lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12563need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12564DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12565NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12566LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12567OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12568OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12569libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12570shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12571extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12572archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12573enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12574export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12575whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12576compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12577old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12578old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12579archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12580archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12581module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12582module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12583with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12584allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12585no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12586hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12587hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12588hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12589hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12590hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12591hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12592hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12593hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12594inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12595link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12596fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12597always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12598export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12599exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12600include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12601prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12602file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12603variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12604need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12605need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12606version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12607runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12608shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12609shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12610libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12611library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12612soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12613postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12614postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12615finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12616finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12617hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12618sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12619sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12620hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12621enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12622enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12623enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12624old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12625striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12626
12627LTCC='$LTCC'
12628LTCFLAGS='$LTCFLAGS'
12629compiler='$compiler_DEFAULT'
12630
12631# Quote evaled strings.
12632for var in SED \
12633GREP \
12634EGREP \
12635FGREP \
12636LD \
12637NM \
12638LN_S \
12639lt_SP2NL \
12640lt_NL2SP \
12641reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012642OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012643deplibs_check_method \
12644file_magic_cmd \
12645AR \
12646AR_FLAGS \
12647STRIP \
12648RANLIB \
12649CC \
12650CFLAGS \
12651compiler \
12652lt_cv_sys_global_symbol_pipe \
12653lt_cv_sys_global_symbol_to_cdecl \
12654lt_cv_sys_global_symbol_to_c_name_address \
12655lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12656SHELL \
12657ECHO \
12658lt_prog_compiler_no_builtin_flag \
12659lt_prog_compiler_wl \
12660lt_prog_compiler_pic \
12661lt_prog_compiler_static \
12662lt_cv_prog_compiler_c_o \
12663need_locks \
12664DSYMUTIL \
12665NMEDIT \
12666LIPO \
12667OTOOL \
12668OTOOL64 \
12669shrext_cmds \
12670export_dynamic_flag_spec \
12671whole_archive_flag_spec \
12672compiler_needs_object \
12673with_gnu_ld \
12674allow_undefined_flag \
12675no_undefined_flag \
12676hardcode_libdir_flag_spec \
12677hardcode_libdir_flag_spec_ld \
12678hardcode_libdir_separator \
12679fix_srcfile_path \
12680exclude_expsyms \
12681include_expsyms \
12682file_list_spec \
12683variables_saved_for_relink \
12684libname_spec \
12685library_names_spec \
12686soname_spec \
12687finish_eval \
12688old_striplib \
12689striplib; do
12690 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12691 *[\\\\\\\`\\"\\\$]*)
12692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12693 ;;
12694 *)
12695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12696 ;;
12697 esac
12698done
12699
12700# Double-quote double-evaled strings.
12701for var in reload_cmds \
12702old_postinstall_cmds \
12703old_postuninstall_cmds \
12704old_archive_cmds \
12705extract_expsyms_cmds \
12706old_archive_from_new_cmds \
12707old_archive_from_expsyms_cmds \
12708archive_cmds \
12709archive_expsym_cmds \
12710module_cmds \
12711module_expsym_cmds \
12712export_symbols_cmds \
12713prelink_cmds \
12714postinstall_cmds \
12715postuninstall_cmds \
12716finish_cmds \
12717sys_lib_search_path_spec \
12718sys_lib_dlsearch_path_spec; do
12719 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12720 *[\\\\\\\`\\"\\\$]*)
12721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12722 ;;
12723 *)
12724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12725 ;;
12726 esac
12727done
12728
12729# Fix-up fallback echo if it was mangled by the above quoting rules.
12730case \$lt_ECHO in
12731*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12732 ;;
12733esac
12734
12735ac_aux_dir='$ac_aux_dir'
12736xsi_shell='$xsi_shell'
12737lt_shell_append='$lt_shell_append'
12738
12739# See if we are running on zsh, and set the options which allow our
12740# commands through without removal of \ escapes INIT.
12741if test -n "\${ZSH_VERSION+set}" ; then
12742 setopt NO_GLOB_SUBST
12743fi
12744
12745
12746 PACKAGE='$PACKAGE'
12747 VERSION='$VERSION'
12748 TIMESTAMP='$TIMESTAMP'
12749 RM='$RM'
12750 ofile='$ofile'
12751
12752
12753
12754
mlcreech94984912008-03-04 19:03:08 +000012755_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012756
drh8b727472009-01-19 18:18:40 +000012757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012758
drh8b727472009-01-19 18:18:40 +000012759# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012760for ac_config_target in $ac_config_targets
12761do
drh8b727472009-01-19 18:18:40 +000012762 case $ac_config_target in
12763 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12764 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12765 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12766 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12767
drhf922ca42015-05-14 15:39:18 +000012768 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012769 esac
12770done
12771
drh8b727472009-01-19 18:18:40 +000012772
drh71eb93e2001-09-28 01:34:43 +000012773# If the user did not use the arguments to specify the items to instantiate,
12774# then the envvar interface is used. Set only those that are not.
12775# We use the long form for the default assignment because of an extremely
12776# bizarre bug on SunOS 4.1.3.
12777if $ac_need_defaults; then
12778 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012779 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012780 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012781fi
12782
a.rottmann84e63352003-03-24 09:42:16 +000012783# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012784# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012785# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012786# Hook for its removal unless debugging.
12787# Note that there is a small window in which the directory will not be cleaned:
12788# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012789$debug ||
12790{
drhf922ca42015-05-14 15:39:18 +000012791 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012792 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012793 : "${ac_tmp:=$tmp}"
12794 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012795' 0
drhf922ca42015-05-14 15:39:18 +000012796 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012797}
drh71eb93e2001-09-28 01:34:43 +000012798# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012799
drh71eb93e2001-09-28 01:34:43 +000012800{
drh8b727472009-01-19 18:18:40 +000012801 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012802 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012803} ||
12804{
drh8b727472009-01-19 18:18:40 +000012805 tmp=./conf$$-$RANDOM
12806 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012807} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12808ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012809
drh8b727472009-01-19 18:18:40 +000012810# Set up the scripts for CONFIG_FILES section.
12811# No need to generate them if there are no CONFIG_FILES.
12812# This happens for instance with `./config.status config.h'.
12813if test -n "$CONFIG_FILES"; then
12814
12815
drhf922ca42015-05-14 15:39:18 +000012816ac_cr=`echo X | tr X '\015'`
12817# On cygwin, bash can eat \r inside `` if the user requested igncr.
12818# But we know of no other shell where ac_cr would be empty at this
12819# point, so we can use a bashism as a fallback.
12820if test "x$ac_cr" = x; then
12821 eval ac_cr=\$\'\\r\'
12822fi
drh8b727472009-01-19 18:18:40 +000012823ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12824if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012825 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012826else
12827 ac_cs_awk_cr=$ac_cr
12828fi
12829
drhf922ca42015-05-14 15:39:18 +000012830echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012831_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012832
mlcreech94984912008-03-04 19:03:08 +000012833
drh8b727472009-01-19 18:18:40 +000012834{
12835 echo "cat >conf$$subs.awk <<_ACEOF" &&
12836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12837 echo "_ACEOF"
12838} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012839 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12840ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012841ac_delim='%!_!# '
12842for ac_last_try in false false false false false :; do
12843 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012845
drhf922ca42015-05-14 15:39:18 +000012846 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12847 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012848 break
12849 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012851 else
12852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012853 fi
drh8b727472009-01-19 18:18:40 +000012854done
12855rm -f conf$$subs.sh
12856
12857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012858cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012859_ACEOF
12860sed -n '
12861h
12862s/^/S["/; s/!.*/"]=/
12863p
12864g
12865s/^[^!]*!//
12866:repl
12867t repl
12868s/'"$ac_delim"'$//
12869t delim
12870:nl
12871h
drhf922ca42015-05-14 15:39:18 +000012872s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012873t more1
12874s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12875p
12876n
12877b repl
12878:more1
12879s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12880p
12881g
12882s/.\{148\}//
12883t nl
12884:delim
12885h
drhf922ca42015-05-14 15:39:18 +000012886s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012887t more2
12888s/["\\]/\\&/g; s/^/"/; s/$/"/
12889p
12890b
12891:more2
12892s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12893p
12894g
12895s/.\{148\}//
12896t delim
12897' <conf$$subs.awk | sed '
12898/^[^""]/{
12899 N
12900 s/\n//
12901}
12902' >>$CONFIG_STATUS || ac_write_fail=1
12903rm -f conf$$subs.awk
12904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12905_ACAWK
drhf922ca42015-05-14 15:39:18 +000012906cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012907 for (key in S) S_is_set[key] = 1
12908 FS = ""
12909
12910}
12911{
12912 line = $ 0
12913 nfields = split(line, field, "@")
12914 substed = 0
12915 len = length(field[1])
12916 for (i = 2; i < nfields; i++) {
12917 key = field[i]
12918 keylen = length(key)
12919 if (S_is_set[key]) {
12920 value = S[key]
12921 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12922 len += length(value) + length(field[++i])
12923 substed = 1
12924 } else
12925 len += 1 + keylen
12926 }
12927
12928 print line
12929}
12930
12931_ACAWK
12932_ACEOF
12933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12934if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12935 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12936else
12937 cat
drhf922ca42015-05-14 15:39:18 +000012938fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12939 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012940_ACEOF
12941
drhf922ca42015-05-14 15:39:18 +000012942# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12943# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012944# trailing colons and then remove the whole line if VPATH becomes empty
12945# (actually we leave an empty line to preserve line numbers).
12946if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012947 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12948h
12949s///
12950s/^/:/
12951s/[ ]*$/:/
12952s/:\$(srcdir):/:/g
12953s/:\${srcdir}:/:/g
12954s/:@srcdir@:/:/g
12955s/^:*//
drh8b727472009-01-19 18:18:40 +000012956s/:*$//
drhf922ca42015-05-14 15:39:18 +000012957x
12958s/\(=[ ]*\).*/\1/
12959G
12960s/\n//
drh8b727472009-01-19 18:18:40 +000012961s/^[^=]*=[ ]*$//
12962}'
12963fi
12964
12965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012966fi # test -n "$CONFIG_FILES"
12967
drh8b727472009-01-19 18:18:40 +000012968# Set up the scripts for CONFIG_HEADERS section.
12969# No need to generate them if there are no CONFIG_HEADERS.
12970# This happens for instance with `./config.status Makefile'.
12971if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012972cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012973BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012974_ACEOF
drh8b727472009-01-19 18:18:40 +000012975
12976# Transform confdefs.h into an awk script `defines.awk', embedded as
12977# here-document in config.status, that substitutes the proper values into
12978# config.h.in to produce config.h.
12979
12980# Create a delimiter string that does not exist in confdefs.h, to ease
12981# handling of long lines.
12982ac_delim='%!_!# '
12983for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012984 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12985 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012986 break
12987 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012988 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012989 else
12990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12991 fi
12992done
12993
12994# For the awk script, D is an array of macro values keyed by name,
12995# likewise P contains macro parameters if any. Preserve backslash
12996# newline sequences.
12997
12998ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12999sed -n '
13000s/.\{148\}/&'"$ac_delim"'/g
13001t rset
13002:rset
13003s/^[ ]*#[ ]*define[ ][ ]*/ /
13004t def
13005d
13006:def
13007s/\\$//
13008t bsnl
13009s/["\\]/\\&/g
13010s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13011D["\1"]=" \3"/p
13012s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13013d
13014:bsnl
13015s/["\\]/\\&/g
13016s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13017D["\1"]=" \3\\\\\\n"\\/p
13018t cont
13019s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13020t cont
13021d
13022:cont
13023n
13024s/.\{148\}/&'"$ac_delim"'/g
13025t clear
13026:clear
13027s/\\$//
13028t bsnlc
13029s/["\\]/\\&/g; s/^/"/; s/$/"/p
13030d
13031:bsnlc
13032s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13033b cont
13034' <confdefs.h | sed '
13035s/'"$ac_delim"'/"\\\
13036"/g' >>$CONFIG_STATUS || ac_write_fail=1
13037
13038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13039 for (key in D) D_is_set[key] = 1
13040 FS = ""
13041}
13042/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13043 line = \$ 0
13044 split(line, arg, " ")
13045 if (arg[1] == "#") {
13046 defundef = arg[2]
13047 mac1 = arg[3]
13048 } else {
13049 defundef = substr(arg[1], 2)
13050 mac1 = arg[2]
13051 }
13052 split(mac1, mac2, "(") #)
13053 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000013054 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000013055 if (D_is_set[macro]) {
13056 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000013057 print prefix "define", macro P[macro] D[macro]
13058 next
13059 } else {
13060 # Replace #undef with comments. This is necessary, for example,
13061 # in the case of _POSIX_SOURCE, which is predefined and required
13062 # on some systems where configure will not decide to define it.
13063 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000013064 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000013065 next
13066 }
13067 }
13068}
13069{ print }
13070_ACAWK
13071_ACEOF
13072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013073 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013074fi # test -n "$CONFIG_HEADERS"
13075
13076
13077eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13078shift
13079for ac_tag
13080do
13081 case $ac_tag in
13082 :[FHLC]) ac_mode=$ac_tag; continue;;
13083 esac
13084 case $ac_mode$ac_tag in
13085 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013086 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013087 :[FH]-) ac_tag=-:-;;
13088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13089 esac
13090 ac_save_IFS=$IFS
13091 IFS=:
13092 set x $ac_tag
13093 IFS=$ac_save_IFS
13094 shift
13095 ac_file=$1
13096 shift
13097
13098 case $ac_mode in
13099 :L) ac_source=$1;;
13100 :[FH])
13101 ac_file_inputs=
13102 for ac_f
13103 do
13104 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013105 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013106 *) # Look for the file first in the build tree, then in the source tree
13107 # (if the path is not absolute). The absolute path cannot be DOS-style,
13108 # because $ac_f cannot contain `:'.
13109 test -f "$ac_f" ||
13110 case $ac_f in
13111 [\\/$]*) false;;
13112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13113 esac ||
drhf922ca42015-05-14 15:39:18 +000013114 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013115 esac
13116 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013117 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013118 done
13119
13120 # Let's still pretend it is `configure' which instantiates (i.e., don't
13121 # use $as_me), people would be surprised to read:
13122 # /* config.h. Generated by config.status. */
13123 configure_input='Generated from '`
13124 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13125 `' by configure.'
13126 if test x"$ac_file" != x-; then
13127 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013129$as_echo "$as_me: creating $ac_file" >&6;}
13130 fi
13131 # Neutralize special characters interpreted by sed in replacement strings.
13132 case $configure_input in #(
13133 *\&* | *\|* | *\\* )
13134 ac_sed_conf_input=`$as_echo "$configure_input" |
13135 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13136 *) ac_sed_conf_input=$configure_input;;
13137 esac
13138
13139 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013140 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013142 esac
13143 ;;
drh71eb93e2001-09-28 01:34:43 +000013144 esac
13145
drh8b727472009-01-19 18:18:40 +000013146 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013148 X"$ac_file" : 'X\(//\)[^/]' \| \
13149 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13151$as_echo X"$ac_file" |
13152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13153 s//\1/
13154 q
13155 }
13156 /^X\(\/\/\)[^/].*/{
13157 s//\1/
13158 q
13159 }
13160 /^X\(\/\/\)$/{
13161 s//\1/
13162 q
13163 }
13164 /^X\(\/\).*/{
13165 s//\1/
13166 q
13167 }
13168 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013169 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013170 ac_builddir=.
13171
drh8b727472009-01-19 18:18:40 +000013172case "$ac_dir" in
13173.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13174*)
13175 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13176 # A ".." for each directory in $ac_dir_suffix.
13177 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13178 case $ac_top_builddir_sub in
13179 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13180 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13181 esac ;;
13182esac
13183ac_abs_top_builddir=$ac_pwd
13184ac_abs_builddir=$ac_pwd$ac_dir_suffix
13185# for backward compatibility:
13186ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013187
13188case $srcdir in
drh8b727472009-01-19 18:18:40 +000013189 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013190 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013191 ac_top_srcdir=$ac_top_builddir_sub
13192 ac_abs_top_srcdir=$ac_pwd ;;
13193 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013194 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013195 ac_top_srcdir=$srcdir
13196 ac_abs_top_srcdir=$srcdir ;;
13197 *) # Relative name.
13198 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13199 ac_top_srcdir=$ac_top_build_prefix$srcdir
13200 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013201esac
drh8b727472009-01-19 18:18:40 +000013202ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013203
a.rottmann84e63352003-03-24 09:42:16 +000013204
drh8b727472009-01-19 18:18:40 +000013205 case $ac_mode in
13206 :F)
13207 #
13208 # CONFIG_FILE
13209 #
drh75897232000-05-29 14:26:00 +000013210
drh71eb93e2001-09-28 01:34:43 +000013211 case $INSTALL in
13212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013213 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013214 esac
mlcreech94984912008-03-04 19:03:08 +000013215_ACEOF
drh8b727472009-01-19 18:18:40 +000013216
13217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13218# If the template does not know about datarootdir, expand it.
13219# FIXME: This hack should be removed a few years after 2.60.
13220ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013221ac_sed_dataroot='
13222/datarootdir/ {
13223 p
13224 q
13225}
13226/@datadir@/p
13227/@docdir@/p
13228/@infodir@/p
13229/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013230/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013231case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13232*datarootdir*) ac_datarootdir_seen=yes;;
13233*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013235$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13236_ACEOF
13237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13238 ac_datarootdir_hack='
13239 s&@datadir@&$datadir&g
13240 s&@docdir@&$docdir&g
13241 s&@infodir@&$infodir&g
13242 s&@localedir@&$localedir&g
13243 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013244 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013245esac
13246_ACEOF
13247
13248# Neutralize VPATH when `$srcdir' = `.'.
13249# Shell code in configure.ac might set extrasub.
13250# FIXME: do we really want to maintain this feature?
13251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013253$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013254_ACEOF
drh8b727472009-01-19 18:18:40 +000013255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013256:t
13257/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013258s|@configure_input@|$ac_sed_conf_input|;t t
13259s&@top_builddir@&$ac_top_builddir_sub&;t t
13260s&@top_build_prefix@&$ac_top_build_prefix&;t t
13261s&@srcdir@&$ac_srcdir&;t t
13262s&@abs_srcdir@&$ac_abs_srcdir&;t t
13263s&@top_srcdir@&$ac_top_srcdir&;t t
13264s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13265s&@builddir@&$ac_builddir&;t t
13266s&@abs_builddir@&$ac_abs_builddir&;t t
13267s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13268s&@INSTALL@&$ac_INSTALL&;t t
13269$ac_datarootdir_hack
13270"
drhf922ca42015-05-14 15:39:18 +000013271eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13272 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013273
drh8b727472009-01-19 18:18:40 +000013274test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013275 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13277 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13279which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013280$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013281which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013282
drhf922ca42015-05-14 15:39:18 +000013283 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013284 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013285 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13286 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013287 esac \
drhf922ca42015-05-14 15:39:18 +000013288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013289 ;;
13290 :H)
13291 #
13292 # CONFIG_HEADER
13293 #
drh866108f2008-05-13 00:57:21 +000013294 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013295 {
13296 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13298 } >"$ac_tmp/config.h" \
13299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13300 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013302$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013303 else
drh8b727472009-01-19 18:18:40 +000013304 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013305 mv "$ac_tmp/config.h" "$ac_file" \
13306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013307 fi
13308 else
drh8b727472009-01-19 18:18:40 +000013309 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13311 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013312 fi
drh8b727472009-01-19 18:18:40 +000013313 ;;
drh866108f2008-05-13 00:57:21 +000013314
drhf922ca42015-05-14 15:39:18 +000013315 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013316$as_echo "$as_me: executing $ac_file commands" >&6;}
13317 ;;
13318 esac
drh866108f2008-05-13 00:57:21 +000013319
13320
drh8b727472009-01-19 18:18:40 +000013321 case $ac_file$ac_mode in
13322 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013323
13324 # See if we are running on zsh, and set the options which allow our
13325 # commands through without removal of \ escapes.
13326 if test -n "${ZSH_VERSION+set}" ; then
13327 setopt NO_GLOB_SUBST
13328 fi
13329
13330 cfgfile="${ofile}T"
13331 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13332 $RM "$cfgfile"
13333
13334 cat <<_LT_EOF >> "$cfgfile"
13335#! $SHELL
13336
13337# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13338# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13340# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13341#
13342# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13343# 2006, 2007, 2008 Free Software Foundation, Inc.
13344# Written by Gordon Matzigkeit, 1996
13345#
13346# This file is part of GNU Libtool.
13347#
13348# GNU Libtool is free software; you can redistribute it and/or
13349# modify it under the terms of the GNU General Public License as
13350# published by the Free Software Foundation; either version 2 of
13351# the License, or (at your option) any later version.
13352#
13353# As a special exception to the GNU General Public License,
13354# if you distribute this file as part of a program or library that
13355# is built using GNU Libtool, you may include this file under the
13356# same distribution terms that you use for the rest of that program.
13357#
13358# GNU Libtool is distributed in the hope that it will be useful,
13359# but WITHOUT ANY WARRANTY; without even the implied warranty of
13360# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13361# GNU General Public License for more details.
13362#
13363# You should have received a copy of the GNU General Public License
13364# along with GNU Libtool; see the file COPYING. If not, a copy
13365# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13366# obtained by writing to the Free Software Foundation, Inc.,
13367# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13368
13369
13370# The names of the tagged configurations supported by this script.
13371available_tags=""
13372
13373# ### BEGIN LIBTOOL CONFIG
13374
13375# Which release of libtool.m4 was used?
13376macro_version=$macro_version
13377macro_revision=$macro_revision
13378
13379# Whether or not to build shared libraries.
13380build_libtool_libs=$enable_shared
13381
13382# Whether or not to build static libraries.
13383build_old_libs=$enable_static
13384
13385# What type of objects to build.
13386pic_mode=$pic_mode
13387
13388# Whether or not to optimize for fast installation.
13389fast_install=$enable_fast_install
13390
13391# The host system.
13392host_alias=$host_alias
13393host=$host
13394host_os=$host_os
13395
13396# The build system.
13397build_alias=$build_alias
13398build=$build
13399build_os=$build_os
13400
13401# A sed program that does not truncate output.
13402SED=$lt_SED
13403
13404# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13405Xsed="\$SED -e 1s/^X//"
13406
13407# A grep program that handles long lines.
13408GREP=$lt_GREP
13409
13410# An ERE matcher.
13411EGREP=$lt_EGREP
13412
13413# A literal string matcher.
13414FGREP=$lt_FGREP
13415
13416# A BSD- or MS-compatible name lister.
13417NM=$lt_NM
13418
13419# Whether we need soft or hard links.
13420LN_S=$lt_LN_S
13421
13422# What is the maximum length of a command?
13423max_cmd_len=$max_cmd_len
13424
13425# Object file suffix (normally "o").
13426objext=$ac_objext
13427
13428# Executable file suffix (normally "").
13429exeext=$exeext
13430
13431# whether the shell understands "unset".
13432lt_unset=$lt_unset
13433
13434# turn spaces into newlines.
13435SP2NL=$lt_lt_SP2NL
13436
13437# turn newlines into spaces.
13438NL2SP=$lt_lt_NL2SP
13439
13440# How to create reloadable object files.
13441reload_flag=$lt_reload_flag
13442reload_cmds=$lt_reload_cmds
13443
vapier6acb2cf2009-01-28 04:46:28 +000013444# An object symbol dumper.
13445OBJDUMP=$lt_OBJDUMP
13446
mlcreech636a9952008-05-05 22:52:56 +000013447# Method to check whether dependent libraries are shared objects.
13448deplibs_check_method=$lt_deplibs_check_method
13449
13450# Command to use when deplibs_check_method == "file_magic".
13451file_magic_cmd=$lt_file_magic_cmd
13452
13453# The archiver.
13454AR=$lt_AR
13455AR_FLAGS=$lt_AR_FLAGS
13456
13457# A symbol stripping program.
13458STRIP=$lt_STRIP
13459
13460# Commands used to install an old-style archive.
13461RANLIB=$lt_RANLIB
13462old_postinstall_cmds=$lt_old_postinstall_cmds
13463old_postuninstall_cmds=$lt_old_postuninstall_cmds
13464
13465# A C compiler.
13466LTCC=$lt_CC
13467
13468# LTCC compiler flags.
13469LTCFLAGS=$lt_CFLAGS
13470
13471# Take the output of nm and produce a listing of raw symbols and C names.
13472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13473
13474# Transform the output of nm in a proper C declaration.
13475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13476
13477# Transform the output of nm in a C name address pair.
13478global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13479
13480# Transform the output of nm in a C name address pair when lib prefix is needed.
13481global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13482
13483# The name of the directory that contains temporary libtool files.
13484objdir=$objdir
13485
13486# Shell to use when invoking shell scripts.
13487SHELL=$lt_SHELL
13488
13489# An echo program that does not interpret backslashes.
13490ECHO=$lt_ECHO
13491
13492# Used to examine libraries when file_magic_cmd begins with "file".
13493MAGIC_CMD=$MAGIC_CMD
13494
13495# Must we lock files when doing compilation?
13496need_locks=$lt_need_locks
13497
13498# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13499DSYMUTIL=$lt_DSYMUTIL
13500
13501# Tool to change global to local symbols on Mac OS X.
13502NMEDIT=$lt_NMEDIT
13503
13504# Tool to manipulate fat objects and archives on Mac OS X.
13505LIPO=$lt_LIPO
13506
13507# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13508OTOOL=$lt_OTOOL
13509
13510# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13511OTOOL64=$lt_OTOOL64
13512
13513# Old archive suffix (normally "a").
13514libext=$libext
13515
13516# Shared library suffix (normally ".so").
13517shrext_cmds=$lt_shrext_cmds
13518
13519# The commands to extract the exported symbol list from a shared archive.
13520extract_expsyms_cmds=$lt_extract_expsyms_cmds
13521
13522# Variables whose values should be saved in libtool wrapper scripts and
13523# restored at link time.
13524variables_saved_for_relink=$lt_variables_saved_for_relink
13525
13526# Do we need the "lib" prefix for modules?
13527need_lib_prefix=$need_lib_prefix
13528
13529# Do we need a version for libraries?
13530need_version=$need_version
13531
13532# Library versioning type.
13533version_type=$version_type
13534
13535# Shared library runtime path variable.
13536runpath_var=$runpath_var
13537
13538# Shared library path variable.
13539shlibpath_var=$shlibpath_var
13540
13541# Is shlibpath searched before the hard-coded library search path?
13542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13543
13544# Format of library name prefix.
13545libname_spec=$lt_libname_spec
13546
13547# List of archive names. First name is the real one, the rest are links.
13548# The last name is the one that the linker finds with -lNAME
13549library_names_spec=$lt_library_names_spec
13550
13551# The coded name of the library, if different from the real name.
13552soname_spec=$lt_soname_spec
13553
13554# Command to use after installation of a shared archive.
13555postinstall_cmds=$lt_postinstall_cmds
13556
13557# Command to use after uninstallation of a shared archive.
13558postuninstall_cmds=$lt_postuninstall_cmds
13559
13560# Commands used to finish a libtool library installation in a directory.
13561finish_cmds=$lt_finish_cmds
13562
13563# As "finish_cmds", except a single script fragment to be evaled but
13564# not shown.
13565finish_eval=$lt_finish_eval
13566
13567# Whether we should hardcode library paths into libraries.
13568hardcode_into_libs=$hardcode_into_libs
13569
13570# Compile-time system search path for libraries.
13571sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13572
13573# Run-time system search path for libraries.
13574sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13575
13576# Whether dlopen is supported.
13577dlopen_support=$enable_dlopen
13578
13579# Whether dlopen of programs is supported.
13580dlopen_self=$enable_dlopen_self
13581
13582# Whether dlopen of statically linked programs is supported.
13583dlopen_self_static=$enable_dlopen_self_static
13584
13585# Commands to strip libraries.
13586old_striplib=$lt_old_striplib
13587striplib=$lt_striplib
13588
13589
13590# The linker used to build libraries.
13591LD=$lt_LD
13592
13593# Commands used to build an old-style archive.
13594old_archive_cmds=$lt_old_archive_cmds
13595
13596# A language specific compiler.
13597CC=$lt_compiler
13598
13599# Is the compiler the GNU compiler?
13600with_gcc=$GCC
13601
13602# Compiler flag to turn off builtin functions.
13603no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13604
13605# How to pass a linker flag through the compiler.
13606wl=$lt_lt_prog_compiler_wl
13607
13608# Additional compiler flags for building library objects.
13609pic_flag=$lt_lt_prog_compiler_pic
13610
13611# Compiler flag to prevent dynamic linking.
13612link_static_flag=$lt_lt_prog_compiler_static
13613
13614# Does compiler simultaneously support -c and -o options?
13615compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13616
13617# Whether or not to add -lc for building shared libraries.
13618build_libtool_need_lc=$archive_cmds_need_lc
13619
13620# Whether or not to disallow shared libs when runtime libs are static.
13621allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13622
13623# Compiler flag to allow reflexive dlopens.
13624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13625
13626# Compiler flag to generate shared objects directly from archives.
13627whole_archive_flag_spec=$lt_whole_archive_flag_spec
13628
13629# Whether the compiler copes with passing no objects directly.
13630compiler_needs_object=$lt_compiler_needs_object
13631
13632# Create an old-style archive from a shared archive.
13633old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13634
13635# Create a temporary old-style archive to link instead of a shared archive.
13636old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13637
13638# Commands used to build a shared archive.
13639archive_cmds=$lt_archive_cmds
13640archive_expsym_cmds=$lt_archive_expsym_cmds
13641
13642# Commands used to build a loadable module if different from building
13643# a shared archive.
13644module_cmds=$lt_module_cmds
13645module_expsym_cmds=$lt_module_expsym_cmds
13646
13647# Whether we are building with GNU ld or not.
13648with_gnu_ld=$lt_with_gnu_ld
13649
13650# Flag that allows shared libraries with undefined symbols to be built.
13651allow_undefined_flag=$lt_allow_undefined_flag
13652
13653# Flag that enforces no undefined symbols.
13654no_undefined_flag=$lt_no_undefined_flag
13655
13656# Flag to hardcode \$libdir into a binary during linking.
13657# This must work even if \$libdir does not exist
13658hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13659
13660# If ld is used when linking, flag to hardcode \$libdir into a binary
13661# during linking. This must work even if \$libdir does not exist.
13662hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13663
13664# Whether we need a single "-rpath" flag with a separated argument.
13665hardcode_libdir_separator=$lt_hardcode_libdir_separator
13666
13667# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13668# DIR into the resulting binary.
13669hardcode_direct=$hardcode_direct
13670
13671# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13672# DIR into the resulting binary and the resulting library dependency is
13673# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13674# library is relocated.
13675hardcode_direct_absolute=$hardcode_direct_absolute
13676
13677# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13678# into the resulting binary.
13679hardcode_minus_L=$hardcode_minus_L
13680
13681# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13682# into the resulting binary.
13683hardcode_shlibpath_var=$hardcode_shlibpath_var
13684
13685# Set to "yes" if building a shared library automatically hardcodes DIR
13686# into the library and all subsequent libraries and executables linked
13687# against it.
13688hardcode_automatic=$hardcode_automatic
13689
13690# Set to yes if linker adds runtime paths of dependent libraries
13691# to runtime path list.
13692inherit_rpath=$inherit_rpath
13693
13694# Whether libtool must link a program against all its dependency libraries.
13695link_all_deplibs=$link_all_deplibs
13696
13697# Fix the shell variable \$srcfile for the compiler.
13698fix_srcfile_path=$lt_fix_srcfile_path
13699
13700# Set to "yes" if exported symbols are required.
13701always_export_symbols=$always_export_symbols
13702
13703# The commands to list exported symbols.
13704export_symbols_cmds=$lt_export_symbols_cmds
13705
13706# Symbols that should not be listed in the preloaded symbols.
13707exclude_expsyms=$lt_exclude_expsyms
13708
13709# Symbols that must always be exported.
13710include_expsyms=$lt_include_expsyms
13711
13712# Commands necessary for linking programs (against libraries) with templates.
13713prelink_cmds=$lt_prelink_cmds
13714
13715# Specify filename containing input files.
13716file_list_spec=$lt_file_list_spec
13717
13718# How to hardcode a shared library path into an executable.
13719hardcode_action=$hardcode_action
13720
13721# ### END LIBTOOL CONFIG
13722
13723_LT_EOF
13724
13725 case $host_os in
13726 aix3*)
13727 cat <<\_LT_EOF >> "$cfgfile"
13728# AIX sometimes has problems with the GCC collect2 program. For some
13729# reason, if we set the COLLECT_NAMES environment variable, the problems
13730# vanish in a puff of smoke.
13731if test "X${COLLECT_NAMES+set}" != Xset; then
13732 COLLECT_NAMES=
13733 export COLLECT_NAMES
13734fi
13735_LT_EOF
13736 ;;
13737 esac
13738
13739
13740ltmain="$ac_aux_dir/ltmain.sh"
13741
13742
13743 # We use sed instead of cat because bash on DJGPP gets confused if
13744 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13745 # text mode, it properly converts lines to CR/LF. This bash problem
13746 # is reportedly fixed, but why not run on old versions too?
13747 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13748 || (rm -f "$cfgfile"; exit 1)
13749
13750 case $xsi_shell in
13751 yes)
13752 cat << \_LT_EOF >> "$cfgfile"
13753
13754# func_dirname file append nondir_replacement
13755# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13756# otherwise set result to NONDIR_REPLACEMENT.
13757func_dirname ()
13758{
13759 case ${1} in
13760 */*) func_dirname_result="${1%/*}${2}" ;;
13761 * ) func_dirname_result="${3}" ;;
13762 esac
13763}
13764
13765# func_basename file
13766func_basename ()
13767{
13768 func_basename_result="${1##*/}"
13769}
13770
13771# func_dirname_and_basename file append nondir_replacement
13772# perform func_basename and func_dirname in a single function
13773# call:
13774# dirname: Compute the dirname of FILE. If nonempty,
13775# add APPEND to the result, otherwise set result
13776# to NONDIR_REPLACEMENT.
13777# value returned in "$func_dirname_result"
13778# basename: Compute filename of FILE.
13779# value retuned in "$func_basename_result"
13780# Implementation must be kept synchronized with func_dirname
13781# and func_basename. For efficiency, we do not delegate to
13782# those functions but instead duplicate the functionality here.
13783func_dirname_and_basename ()
13784{
13785 case ${1} in
13786 */*) func_dirname_result="${1%/*}${2}" ;;
13787 * ) func_dirname_result="${3}" ;;
13788 esac
13789 func_basename_result="${1##*/}"
13790}
13791
13792# func_stripname prefix suffix name
13793# strip PREFIX and SUFFIX off of NAME.
13794# PREFIX and SUFFIX must not contain globbing or regex special
13795# characters, hashes, percent signs, but SUFFIX may contain a leading
13796# dot (in which case that matches only a dot).
13797func_stripname ()
13798{
13799 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13800 # positional parameters, so assign one to ordinary parameter first.
13801 func_stripname_result=${3}
13802 func_stripname_result=${func_stripname_result#"${1}"}
13803 func_stripname_result=${func_stripname_result%"${2}"}
13804}
13805
13806# func_opt_split
13807func_opt_split ()
13808{
13809 func_opt_split_opt=${1%%=*}
13810 func_opt_split_arg=${1#*=}
13811}
13812
13813# func_lo2o object
13814func_lo2o ()
13815{
13816 case ${1} in
13817 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13818 *) func_lo2o_result=${1} ;;
13819 esac
13820}
13821
13822# func_xform libobj-or-source
13823func_xform ()
13824{
13825 func_xform_result=${1%.*}.lo
13826}
13827
13828# func_arith arithmetic-term...
13829func_arith ()
13830{
13831 func_arith_result=$(( $* ))
13832}
13833
13834# func_len string
13835# STRING may not start with a hyphen.
13836func_len ()
13837{
13838 func_len_result=${#1}
13839}
13840
13841_LT_EOF
13842 ;;
13843 *) # Bourne compatible functions.
13844 cat << \_LT_EOF >> "$cfgfile"
13845
13846# func_dirname file append nondir_replacement
13847# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13848# otherwise set result to NONDIR_REPLACEMENT.
13849func_dirname ()
13850{
13851 # Extract subdirectory from the argument.
13852 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13853 if test "X$func_dirname_result" = "X${1}"; then
13854 func_dirname_result="${3}"
13855 else
13856 func_dirname_result="$func_dirname_result${2}"
13857 fi
13858}
13859
13860# func_basename file
13861func_basename ()
13862{
13863 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13864}
13865
13866
13867# func_stripname prefix suffix name
13868# strip PREFIX and SUFFIX off of NAME.
13869# PREFIX and SUFFIX must not contain globbing or regex special
13870# characters, hashes, percent signs, but SUFFIX may contain a leading
13871# dot (in which case that matches only a dot).
13872# func_strip_suffix prefix name
13873func_stripname ()
13874{
13875 case ${2} in
13876 .*) func_stripname_result=`$ECHO "X${3}" \
13877 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13878 *) func_stripname_result=`$ECHO "X${3}" \
13879 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13880 esac
13881}
13882
13883# sed scripts:
13884my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13885my_sed_long_arg='1s/^-[^=]*=//'
13886
13887# func_opt_split
13888func_opt_split ()
13889{
13890 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13891 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13892}
13893
13894# func_lo2o object
13895func_lo2o ()
13896{
13897 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13898}
13899
13900# func_xform libobj-or-source
13901func_xform ()
13902{
13903 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13904}
13905
13906# func_arith arithmetic-term...
13907func_arith ()
13908{
13909 func_arith_result=`expr "$@"`
13910}
13911
13912# func_len string
13913# STRING may not start with a hyphen.
13914func_len ()
13915{
13916 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13917}
13918
13919_LT_EOF
13920esac
13921
13922case $lt_shell_append in
13923 yes)
13924 cat << \_LT_EOF >> "$cfgfile"
13925
13926# func_append var value
13927# Append VALUE to the end of shell variable VAR.
13928func_append ()
13929{
13930 eval "$1+=\$2"
13931}
13932_LT_EOF
13933 ;;
13934 *)
13935 cat << \_LT_EOF >> "$cfgfile"
13936
13937# func_append var value
13938# Append VALUE to the end of shell variable VAR.
13939func_append ()
13940{
13941 eval "$1=\$$1\$2"
13942}
13943
13944_LT_EOF
13945 ;;
13946 esac
13947
13948
13949 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13950 || (rm -f "$cfgfile"; exit 1)
13951
13952 mv -f "$cfgfile" "$ofile" ||
13953 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13954 chmod +x "$ofile"
13955
13956 ;;
mlcreech94984912008-03-04 19:03:08 +000013957
drh8b727472009-01-19 18:18:40 +000013958 esac
13959done # for ac_tag
13960
drh71eb93e2001-09-28 01:34:43 +000013961
drhf922ca42015-05-14 15:39:18 +000013962as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013963_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013964ac_clean_files=$ac_clean_files_save
13965
drh8b727472009-01-19 18:18:40 +000013966test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013967 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013968
a.rottmann84e63352003-03-24 09:42:16 +000013969
drh71eb93e2001-09-28 01:34:43 +000013970# configure is writing to config.log, and then calls config.status.
13971# config.status does its own redirection, appending to config.log.
13972# Unfortunately, on DOS this fails, as config.log is still kept open
13973# by configure, so config.status won't be able to write to it; its
13974# output is simply discarded. So we exec the FD to /dev/null,
13975# effectively closing config.log, so it can be properly (re)opened and
13976# appended to by config.status. When coming back to configure, we
13977# need to make the FD available again.
13978if test "$no_create" != yes; then
13979 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013980 ac_config_status_args=
13981 test "$silent" = yes &&
13982 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013983 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013985 exec 5>>config.log
13986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13987 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013988 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013989fi
drh8b727472009-01-19 18:18:40 +000013990if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13992$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013993fi
drh63a49ce2017-01-02 19:10:14 +000013994