blob: c5d122423d1fac08b0ac219f6d272add580a8e06 [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.
drhfc4fe5a2022-02-24 01:08:53 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.39.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'
drhfc4fe5a2022-02-24 01:08:53 +0000729PACKAGE_VERSION='3.39.0'
730PACKAGE_STRING='sqlite 3.39.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
drh4a0a98d2021-11-29 17:55:12 +0000773AMALGAMATION_LINE_MACROS
drhf922ca42015-05-14 15:39:18 +0000774USE_GCOV
775OPT_FEATURE_FLAGS
drh56c93112017-11-24 16:55:48 +0000776HAVE_ZLIB
drhf922ca42015-05-14 15:39:18 +0000777USE_AMALGAMATION
778TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000779TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000780TARGET_HAVE_READLINE
781TARGET_READLINE_INC
782TARGET_READLINE_LIBS
783HAVE_TCL
784TCL_SHLIB_SUFFIX
785TCL_STUB_LIB_SPEC
786TCL_STUB_LIB_FLAG
787TCL_STUB_LIB_FILE
788TCL_LIB_SPEC
789TCL_LIB_FLAG
790TCL_LIB_FILE
791TCL_INCLUDE_SPEC
792TCL_SRC_DIR
793TCL_BIN_DIR
794TCL_VERSION
795TARGET_EXEEXT
796SQLITE_OS_WIN
797SQLITE_OS_UNIX
798BUILD_EXEEXT
799TEMP_STORE
800ALLOWRELEASE
801SQLITE_THREADSAFE
802BUILD_CC
drhf922ca42015-05-14 15:39:18 +0000803RELEASE
804VERSION
805program_prefix
806TCLLIBDIR
807TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811CPP
812OTOOL64
813OTOOL
814LIPO
815NMEDIT
816DSYMUTIL
817lt_ECHO
818RANLIB
819STRIP
820AR
821OBJDUMP
822LN_S
823NM
824ac_ct_DUMPBIN
825DUMPBIN
826LD
827FGREP
828EGREP
829GREP
830SED
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846LIBTOOL
847target_alias
848host_alias
849build_alias
850LIBS
851ECHO_T
852ECHO_N
853ECHO_C
854DEFS
855mandir
856localedir
857libdir
858psdir
859pdfdir
860dvidir
861htmldir
862infodir
863docdir
864oldincludedir
865includedir
866localstatedir
867sharedstatedir
868sysconfdir
869datadir
870datarootdir
871libexecdir
872sbindir
873bindir
874program_transform_name
875prefix
876exec_prefix
877PACKAGE_URL
878PACKAGE_BUGREPORT
879PACKAGE_STRING
880PACKAGE_VERSION
881PACKAGE_TARNAME
882PACKAGE_NAME
883PATH_SEPARATOR
884SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000885ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000886ac_user_opts='
887enable_option_checking
888enable_shared
889enable_static
890with_pic
891enable_fast_install
892with_gnu_ld
893enable_libtool_lock
894enable_largefile
drh8b727472009-01-19 18:18:40 +0000895enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000896enable_releasemode
897enable_tempstore
898enable_tcl
899with_tcl
drhe44b8352015-10-30 14:25:57 +0000900enable_editline
drh8b727472009-01-19 18:18:40 +0000901enable_readline
902with_readline_lib
903with_readline_inc
904enable_debug
905enable_amalgamation
906enable_load_extension
drhe2ce8c42020-12-07 21:19:17 +0000907enable_math
drh9dbf96b2022-01-06 01:40:09 +0000908enable_json
drh42c93b52021-03-09 16:35:14 +0000909enable_all
drhc530b9c2016-07-25 11:27:22 +0000910enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000911enable_memsys3
drhce1d9f52015-10-09 12:48:33 +0000912enable_fts3
913enable_fts4
914enable_fts5
drh83bebdd2017-08-28 17:00:12 +0000915enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000916enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000917enable_rtree
drh5e18d402016-05-03 13:14:18 +0000918enable_session
drh8b727472009-01-19 18:18:40 +0000919enable_gcov
920'
921 ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
927LIBS
928CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000929CPP
930TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000931
drh75897232000-05-29 14:26:00 +0000932
933# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000934ac_init_help=
935ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000936ac_unrecognized_opts=
937ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000938# The variables have the same names as the options, with
939# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000940cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000941exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000942no_create=
drh75897232000-05-29 14:26:00 +0000943no_recursion=
944prefix=NONE
945program_prefix=NONE
946program_suffix=NONE
947program_transform_name=s,x,x,
948silent=
949site=
950srcdir=
drh75897232000-05-29 14:26:00 +0000951verbose=
952x_includes=NONE
953x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000954
955# Installation directory options.
956# These are left unexpanded so users can "make install exec_prefix=/foo"
957# and all the variables that are supposed to be based on exec_prefix
958# by default will actually change.
959# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000960# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000961bindir='${exec_prefix}/bin'
962sbindir='${exec_prefix}/sbin'
963libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000964datarootdir='${prefix}/share'
965datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000966sysconfdir='${prefix}/etc'
967sharedstatedir='${prefix}/com'
968localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000969includedir='${prefix}/include'
970oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000980
drh75897232000-05-29 14:26:00 +0000981ac_prev=
drh8b727472009-01-19 18:18:40 +0000982ac_dashdash=
drh75897232000-05-29 14:26:00 +0000983for ac_option
984do
drh75897232000-05-29 14:26:00 +0000985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000987 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000988 ac_prev=
989 continue
990 fi
991
drh8b727472009-01-19 18:18:40 +0000992 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *=) ac_optarg= ;;
995 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000996 esac
drh75897232000-05-29 14:26:00 +0000997
998 # Accept the important Cygnus configure options, so we can diagnose typos.
999
drh8b727472009-01-19 18:18:40 +00001000 case $ac_dashdash$ac_option in
1001 --)
1002 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001003
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005 ac_prev=bindir ;;
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001007 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001008
1009 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001010 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001012 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001013
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001019 cache_file=$ac_optarg ;;
1020
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001023
drh8b727472009-01-19 18:18:40 +00001024 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001025 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001027 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001028
drh8b727472009-01-19 18:18:40 +00001029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1035
drh75897232000-05-29 14:26:00 +00001036 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001038 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001040 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1051
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1056
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001061
1062 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001064 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001066 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071"enable_$ac_useropt"
1072"*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001075 esac
drh8b727472009-01-19 18:18:40 +00001076 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001077
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001085 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001086
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1089 with_gas=yes ;;
1090
drh71eb93e2001-09-28 01:34:43 +00001091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001097
1098 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001099 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001100 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001101 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001102
drh8b727472009-01-19 18:18:40 +00001103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 ac_prev=htmldir ;;
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 | --ht=*)
1107 htmldir=$ac_optarg ;;
1108
drh75897232000-05-29 14:26:00 +00001109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001114 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001115
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 ac_prev=infodir ;;
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001119 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001120
1121 -libdir | --libdir | --libdi | --libd)
1122 ac_prev=libdir ;;
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001124 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001125
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001131 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001132
drh8b727472009-01-19 18:18:40 +00001133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1137
drh75897232000-05-29 14:26:00 +00001138 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001139 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001143 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001144
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 ac_prev=mandir ;;
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001148 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001149
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1152 with_fp=no ;;
1153
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001155 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001156 no_create=yes ;;
1157
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 no_recursion=yes ;;
1161
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001169 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001170
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 ac_prev=prefix ;;
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001174 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001175
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001181 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001182
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001188 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001189
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001205 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001206
drh8b727472009-01-19 18:18:40 +00001207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 ac_prev=pdfdir ;;
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1211
1212 -psdir | --psdir | --psdi | --psd | --ps)
1213 ac_prev=psdir ;;
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 psdir=$ac_optarg ;;
1216
drh75897232000-05-29 14:26:00 +00001217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 silent=yes ;;
1220
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001225 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001226
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001236 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001237
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001241 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001242
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001246 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001253 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001254
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001256 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001258 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001259
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1262
drh71eb93e2001-09-28 01:34:43 +00001263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001265
1266 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001268 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001270 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001279 esac
drh8b727472009-01-19 18:18:40 +00001280 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001281
1282 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001284 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001286 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"with_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001297
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1301
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001307 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001308
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001314 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001315
drhf922ca42015-05-14 15:39:18 +00001316 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1317Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001318 ;;
1319
drh71eb93e2001-09-28 01:34:43 +00001320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1326 esac
drh8b727472009-01-19 18:18:40 +00001327 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001328 export $ac_envvar ;;
1329
drh75897232000-05-29 14:26:00 +00001330 *)
drh71eb93e2001-09-28 01:34:43 +00001331 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001332 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001334 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001335 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001336 ;;
1337
1338 esac
1339done
1340
1341if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001343 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001344fi
1345
drh8b727472009-01-19 18:18:40 +00001346if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1348 no) ;;
drhf922ca42015-05-14 15:39:18 +00001349 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001351 esac
drh8b727472009-01-19 18:18:40 +00001352fi
drh866108f2008-05-13 00:57:21 +00001353
drh8b727472009-01-19 18:18:40 +00001354# Check all directory arguments for consistency.
1355for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drh6b236032019-04-19 22:01:10 +00001358 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001359do
drh8b727472009-01-19 18:18:40 +00001360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001362 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001363 */ )
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001366 esac
drh8b727472009-01-19 18:18:40 +00001367 # Be sure to have absolute directory names.
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
drhf922ca42015-05-14 15:39:18 +00001372 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001373done
drh75897232000-05-29 14:26:00 +00001374
drh71eb93e2001-09-28 01:34:43 +00001375# There might be people who depend on the old broken behavior: `$host'
1376# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001377# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001378build=$build_alias
1379host=$host_alias
1380target=$target_alias
drh75897232000-05-29 14:26:00 +00001381
a.rottmann84e63352003-03-24 09:42:16 +00001382# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001383if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1388 fi
1389fi
1390
1391ac_tool_prefix=
1392test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001395
a.rottmann84e63352003-03-24 09:42:16 +00001396
drh8b727472009-01-19 18:18:40 +00001397ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398ac_ls_di=`ls -di .` &&
1399ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001400 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001401test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001402 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001403
1404
drh75897232000-05-29 14:26:00 +00001405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414$as_echo X"$as_myself" |
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001432 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001433 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001434 srcdir=..
1435 fi
1436else
1437 ac_srcdir_defaulted=no
1438fi
drh8b727472009-01-19 18:18:40 +00001439if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001441 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001442fi
drh8b727472009-01-19 18:18:40 +00001443ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001445 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001446 pwd)`
1447# When building in place, set srcdir=.
1448if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 srcdir=.
1450fi
1451# Remove unnecessary trailing slashes from srcdir.
1452# Double slashes in file names in object file debugging info
1453# mess up M-x gdb in Emacs.
1454case $srcdir in
1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456esac
1457for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462done
drh75897232000-05-29 14:26:00 +00001463
drh71eb93e2001-09-28 01:34:43 +00001464#
1465# Report the --help message.
1466#
1467if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001470 cat <<_ACEOF
drhfc4fe5a2022-02-24 01:08:53 +00001471\`configure' configures sqlite 3.39.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001472
1473Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476VAR=VALUE. See below for descriptions of some of the useful variables.
1477
1478Defaults for the options are specified in brackets.
1479
1480Configuration:
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001485 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490
drh71eb93e2001-09-28 01:34:43 +00001491Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001493 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001495 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001496
1497By default, \`make install' will install all the files in
1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500for instance \`--prefix=\$HOME'.
1501
1502For better control, use the options below.
1503
1504Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001524_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001525
a.rottmann84e63352003-03-24 09:42:16 +00001526 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001527
1528System types:
1529 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001530 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001532fi
1533
1534if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001535 case $ac_init_help in
drhfc4fe5a2022-02-24 01:08:53 +00001536 short | recursive ) echo "Configuration of sqlite 3.39.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001537 esac
a.rottmann84e63352003-03-24 09:42:16 +00001538 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001539
1540Optional Features:
drh8b727472009-01-19 18:18:40 +00001541 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001542 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1543 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001548 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001549 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001550 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001551 --enable-releasemode Support libtool link to release mode
1552 --enable-tempstore Use an in-ram database for temporary tables
1553 (never,no,yes,always)
1554 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001555 --enable-editline enable BSD editline support
1556 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001557 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001558 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001559 separately
drh05c7e0b2015-01-10 14:27:17 +00001560 --disable-load-extension
1561 Disable loading of external extensions
drhf6e904b2020-12-07 17:15:32 +00001562 --disable-math Disable math functions
drh9dbf96b2022-01-06 01:40:09 +00001563 --disable-json Disable JSON functions
1564 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
drhc530b9c2016-07-25 11:27:22 +00001565 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001566 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001567 --enable-fts3 Enable the FTS3 extension
1568 --enable-fts4 Enable the FTS4 extension
1569 --enable-fts5 Enable the FTS5 extension
drh83bebdd2017-08-28 17:00:12 +00001570 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001571 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001572 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001573 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001574 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001575
1576Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
mlcreech636a9952008-05-05 22:52:56 +00001581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001582 --with-tcl=DIR directory containing tcl configuration
1583 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001584 --with-readline-lib specify readline library
1585 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001586
1587Some influential environment variables:
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001592 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001593 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001594 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001595 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001596 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
drhf922ca42015-05-14 15:39:18 +00001601Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001602_ACEOF
drh8b727472009-01-19 18:18:40 +00001603ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
a.rottmann84e63352003-03-24 09:42:16 +00001612 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001613
drh8b727472009-01-19 18:18:40 +00001614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001629
a.rottmann84e63352003-03-24 09:42:16 +00001630case $srcdir in
drh8b727472009-01-19 18:18:40 +00001631 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001632 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001636 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001643esac
drh8b727472009-01-19 18:18:40 +00001644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001645
drh8b727472009-01-19 18:18:40 +00001646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001654 else
drh8b727472009-01-19 18:18:40 +00001655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001658 done
1659fi
1660
drh8b727472009-01-19 18:18:40 +00001661test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001662if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001663 cat <<\_ACEOF
drhfc4fe5a2022-02-24 01:08:53 +00001664sqlite configure 3.39.0
drhf922ca42015-05-14 15:39:18 +00001665generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001666
drhf922ca42015-05-14 15:39:18 +00001667Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001670_ACEOF
drh8b727472009-01-19 18:18:40 +00001671 exit
drh71eb93e2001-09-28 01:34:43 +00001672fi
drhf922ca42015-05-14 15:39:18 +00001673
1674## ------------------------ ##
1675## Autoconf initialization. ##
1676## ------------------------ ##
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
1743 test -x conftest$ac_exeext
1744 }; then :
1745 ac_retval=0
1746else
1747 $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=1
1751fi
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763# -------------------------------------------------------
1764# Tests whether HEADER exists and can be compiled using the include files in
1765# INCLUDES, setting the cache variable VAR accordingly.
1766ac_fn_c_check_header_compile ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781else
1782 eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_header_compile
1792
1793# ac_fn_c_try_cpp LINENO
1794# ----------------------
1795# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_cpp ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 }; then :
1818 ac_retval=0
1819else
1820 $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1
1824fi
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_cpp
1829
1830# ac_fn_c_try_run LINENO
1831# ----------------------
1832# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833# that executables *can* be run.
1834ac_fn_c_try_run ()
1835{
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_link"
1838case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848 { { case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_try") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; }; }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: program exited with status $ac_status" >&5
1861 $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=$ac_status
1865fi
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1869
1870} # ac_fn_c_try_run
1871
1872# ac_fn_c_check_func LINENO FUNC VAR
1873# ----------------------------------
1874# Tests whether FUNC exists, setting the cache variable VAR accordingly
1875ac_fn_c_check_func ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
1880if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882else
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887#define $2 innocuous_$2
1888
1889/* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1893
1894#ifdef __STDC__
1895# include <limits.h>
1896#else
1897# include <assert.h>
1898#endif
1899
1900#undef $2
1901
1902/* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1905#ifdef __cplusplus
1906extern "C"
1907#endif
1908char $2 ();
1909/* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912#if defined __stub_$2 || defined __stub___$2
1913choke me
1914#endif
1915
1916int
1917main ()
1918{
1919return $2 ();
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_link "$LINENO"; then :
1925 eval "$3=yes"
1926else
1927 eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937} # ac_fn_c_check_func
1938
1939# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1940# -------------------------------------------
1941# Tests whether TYPE exists after having included INCLUDES, setting cache
1942# variable VAR accordingly.
1943ac_fn_c_check_type ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947$as_echo_n "checking for $2... " >&6; }
1948if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950else
1951 eval "$3=no"
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h. */
1954$4
1955int
1956main ()
1957{
1958if (sizeof ($2))
1959 return 0;
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967$4
1968int
1969main ()
1970{
1971if (sizeof (($2)))
1972 return 0;
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978
1979else
1980 eval "$3=yes"
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985fi
1986eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988$as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991} # ac_fn_c_check_type
1992
1993# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1994# -------------------------------------------------------
1995# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996# the include files in INCLUDES and setting the cache variable VAR
1997# accordingly.
1998ac_fn_c_check_header_mongrel ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if eval \${$3+:} false; then :
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006fi
2007eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010else
2011 # Is the header compilable?
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013$as_echo_n "checking $2 usability... " >&6; }
2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017#include <$2>
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_header_compiler=yes
2021else
2022 ac_header_compiler=no
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026$as_echo "$ac_header_compiler" >&6; }
2027
2028# Is the header present?
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030$as_echo_n "checking $2 presence... " >&6; }
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033#include <$2>
2034_ACEOF
2035if ac_fn_c_try_cpp "$LINENO"; then :
2036 ac_header_preproc=yes
2037else
2038 ac_header_preproc=no
2039fi
2040rm -f conftest.err conftest.i conftest.$ac_ext
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042$as_echo "$ac_header_preproc" >&6; }
2043
2044# So? What about this header?
2045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2046 yes:no: )
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 ;;
2052 no:yes:* )
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2056$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2060$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ;;
2064esac
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069else
2070 eval "$3=\$ac_header_compiler"
2071fi
2072eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075fi
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002079cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002080This file contains any messages produced by compilers while
2081running configure, to aid debugging if configure makes a mistake.
2082
drhfc4fe5a2022-02-24 01:08:53 +00002083It was created by sqlite $as_me 3.39.0, which was
drhf922ca42015-05-14 15:39:18 +00002084generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002085
2086 $ $0 $@
2087
a.rottmann84e63352003-03-24 09:42:16 +00002088_ACEOF
drh8b727472009-01-19 18:18:40 +00002089exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002090{
2091cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002092## --------- ##
2093## Platform. ##
2094## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002095
2096hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100uname -v = `(uname -v) 2>/dev/null || echo unknown`
2101
2102/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2104
2105/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2106/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2107/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002108/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002109/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2110/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2111/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2112
drh71eb93e2001-09-28 01:34:43 +00002113_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002114
2115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116for as_dir in $PATH
2117do
2118 IFS=$as_save_IFS
2119 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002120 $as_echo "PATH: $as_dir"
2121 done
drh8b727472009-01-19 18:18:40 +00002122IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002123
drh71eb93e2001-09-28 01:34:43 +00002124} >&5
2125
a.rottmann84e63352003-03-24 09:42:16 +00002126cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002127
a.rottmann84e63352003-03-24 09:42:16 +00002128
2129## ----------- ##
2130## Core tests. ##
2131## ----------- ##
2132
2133_ACEOF
2134
drh71eb93e2001-09-28 01:34:43 +00002135
2136# Keep a trace of the command line.
2137# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002138# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002139# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002140# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002141ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002142ac_configure_args0=
2143ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002144ac_must_keep_next=false
2145for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002146do
a.rottmann84e63352003-03-24 09:42:16 +00002147 for ac_arg
2148 do
2149 case $ac_arg in
2150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152 | -silent | --silent | --silen | --sile | --sil)
2153 continue ;;
drh8b727472009-01-19 18:18:40 +00002154 *\'*)
2155 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002156 esac
2157 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002158 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002159 2)
drhf922ca42015-05-14 15:39:18 +00002160 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002161 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002162 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002163 else
a.rottmann964dbb12004-02-26 19:47:42 +00002164 case $ac_arg in
2165 *=* | --config-cache | -C | -disable-* | --disable-* \
2166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168 | -with-* | --with-* | -without-* | --without-* | --x)
2169 case "$ac_configure_args0 " in
2170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2171 esac
2172 ;;
2173 -* ) ac_must_keep_next=true ;;
2174 esac
a.rottmann84e63352003-03-24 09:42:16 +00002175 fi
drhf922ca42015-05-14 15:39:18 +00002176 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002177 ;;
2178 esac
2179 done
drh71eb93e2001-09-28 01:34:43 +00002180done
drhf922ca42015-05-14 15:39:18 +00002181{ ac_configure_args0=; unset ac_configure_args0;}
2182{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002183
2184# When interrupted or exit'd, cleanup temporary files, and complete
2185# config.log. We remove comments because anyway the quotes in there
2186# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002187# WARNING: Use '\'' to represent an apostrophe within the trap.
2188# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002189trap 'exit_status=$?
2190 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002191 {
2192 echo
2193
drhf922ca42015-05-14 15:39:18 +00002194 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002195## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002196## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002197 echo
2198 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002199(
2200 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201 eval ac_val=\$$ac_var
2202 case $ac_val in #(
2203 *${as_nl}*)
2204 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002207 esac
2208 case $ac_var in #(
2209 _ | IFS | as_nl) ;; #(
2210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002211 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002212 esac ;;
2213 esac
2214 done
drh71eb93e2001-09-28 01:34:43 +00002215 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002216 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002218 sed -n \
drh8b727472009-01-19 18:18:40 +00002219 "s/'\''/'\''\\\\'\'''\''/g;
2220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221 ;; #(
drh866108f2008-05-13 00:57:21 +00002222 *)
drh8b727472009-01-19 18:18:40 +00002223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002224 ;;
drh8b727472009-01-19 18:18:40 +00002225 esac |
2226 sort
2227)
a.rottmann84e63352003-03-24 09:42:16 +00002228 echo
2229
drhf922ca42015-05-14 15:39:18 +00002230 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002231## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002232## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002233 echo
2234 for ac_var in $ac_subst_vars
2235 do
drh8b727472009-01-19 18:18:40 +00002236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002241 done | sort
2242 echo
2243
2244 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002245 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002246## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002247## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002248 echo
2249 for ac_var in $ac_subst_files
2250 do
drh8b727472009-01-19 18:18:40 +00002251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002256 done | sort
2257 echo
2258 fi
2259
2260 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002261 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002262## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002263## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002264 echo
drh8b727472009-01-19 18:18:40 +00002265 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002266 echo
2267 fi
2268 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002269 $as_echo "$as_me: caught signal $ac_signal"
2270 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002271 } >&5
drh8b727472009-01-19 18:18:40 +00002272 rm -f core *.core core.conftest.* &&
2273 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002274 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002275' 0
drh71eb93e2001-09-28 01:34:43 +00002276for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002277 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002278done
2279ac_signal=0
2280
2281# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002282rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002283
drhf922ca42015-05-14 15:39:18 +00002284$as_echo "/* confdefs.h */" > confdefs.h
2285
a.rottmann84e63352003-03-24 09:42:16 +00002286# Predefined preprocessor variables.
2287
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_NAME "$PACKAGE_NAME"
2290_ACEOF
2291
a.rottmann84e63352003-03-24 09:42:16 +00002292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294_ACEOF
2295
a.rottmann84e63352003-03-24 09:42:16 +00002296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_VERSION "$PACKAGE_VERSION"
2298_ACEOF
2299
a.rottmann84e63352003-03-24 09:42:16 +00002300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_STRING "$PACKAGE_STRING"
2302_ACEOF
2303
dana9f39fd2011-08-12 16:34:42 +00002304cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002305#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002306_ACEOF
2307
drhf922ca42015-05-14 15:39:18 +00002308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_URL "$PACKAGE_URL"
2310_ACEOF
2311
a.rottmann84e63352003-03-24 09:42:16 +00002312
drh71eb93e2001-09-28 01:34:43 +00002313# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002314# Prefer an explicitly selected file to automatically selected ones.
2315ac_site_file1=NONE
2316ac_site_file2=NONE
2317if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002318 # We do not want a PATH search for config.site.
2319 case $CONFIG_SITE in #((
2320 -*) ac_site_file1=./$CONFIG_SITE;;
2321 */*) ac_site_file1=$CONFIG_SITE;;
2322 *) ac_site_file1=./$CONFIG_SITE;;
2323 esac
drh8b727472009-01-19 18:18:40 +00002324elif test "x$prefix" != xNONE; then
2325 ac_site_file1=$prefix/share/config.site
2326 ac_site_file2=$prefix/etc/config.site
2327else
2328 ac_site_file1=$ac_default_prefix/share/config.site
2329 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002330fi
drh8b727472009-01-19 18:18:40 +00002331for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332do
2333 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002334 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002336$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002337 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002338 . "$ac_site_file" \
2339 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341as_fn_error $? "failed to load site script $ac_site_file
2342See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002343 fi
2344done
2345
2346if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002347 # Some versions of bash will fail to source /dev/null (special files
2348 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2349 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002351$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002352 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002353 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002355 esac
2356 fi
drh75897232000-05-29 14:26:00 +00002357else
drhf922ca42015-05-14 15:39:18 +00002358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002359$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002360 >$cache_file
2361fi
2362
2363# Check that the precious variables saved in the cache have kept the same
2364# value.
2365ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002366for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002367 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2368 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002369 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2370 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002371 case $ac_old_set,$ac_new_set in
2372 set,)
drhf922ca42015-05-14 15:39:18 +00002373 { $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 +00002374$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002375 ac_cache_corrupted=: ;;
2376 ,set)
drhf922ca42015-05-14 15:39:18 +00002377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002378$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002379 ac_cache_corrupted=: ;;
2380 ,);;
2381 *)
2382 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002383 # differences in whitespace do not lead to failure.
2384 ac_old_val_w=`echo x $ac_old_val`
2385 ac_new_val_w=`echo x $ac_new_val`
2386 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002388$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389 ac_cache_corrupted=:
2390 else
drhf922ca42015-05-14 15:39:18 +00002391 { $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 +00002392$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2393 eval $ac_var=\$ac_old_val
2394 fi
drhf922ca42015-05-14 15:39:18 +00002395 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002396$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002397 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002398$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002399 fi;;
2400 esac
a.rottmann84e63352003-03-24 09:42:16 +00002401 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002402 if test "$ac_new_set" = set; then
2403 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002404 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002405 *) ac_arg=$ac_var=$ac_new_val ;;
2406 esac
2407 case " $ac_configure_args " in
2408 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002409 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002410 esac
2411 fi
2412done
2413if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002417$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002418 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002419fi
drhf922ca42015-05-14 15:39:18 +00002420## -------------------- ##
2421## Main body of script. ##
2422## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002423
drh75897232000-05-29 14:26:00 +00002424ac_ext=c
drh75897232000-05-29 14:26:00 +00002425ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002429
a.rottmann84e63352003-03-24 09:42:16 +00002430
2431
drh04446102009-06-15 00:04:06 +00002432sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002433if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002434as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002435 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2436 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002437please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002438fi
2439
drh75897232000-05-29 14:26:00 +00002440#########
drh71eb93e2001-09-28 01:34:43 +00002441# Programs needed
drh75897232000-05-29 14:26:00 +00002442#
mlcreech636a9952008-05-05 22:52:56 +00002443case `pwd` in
2444 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002446$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002447esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002448
mlcreech94984912008-03-04 19:03:08 +00002449
mlcreech636a9952008-05-05 22:52:56 +00002450
vapier6acb2cf2009-01-28 04:46:28 +00002451macro_version='2.2.6'
2452macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002453
mlcreech94984912008-03-04 19:03:08 +00002454
mlcreech94984912008-03-04 19:03:08 +00002455
a.rottmann9bc8b932004-02-29 15:18:31 +00002456
mlcreech636a9952008-05-05 22:52:56 +00002457
2458
2459
2460
2461
2462
2463
2464
2465
2466ltmain="$ac_aux_dir/ltmain.sh"
2467
drh71eb93e2001-09-28 01:34:43 +00002468ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002469for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002470 if test -f "$ac_dir/install-sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install-sh -c"
2473 break
2474 elif test -f "$ac_dir/install.sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install.sh -c"
2477 break
2478 elif test -f "$ac_dir/shtool"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/shtool install -c"
2481 break
2482 fi
drh71eb93e2001-09-28 01:34:43 +00002483done
2484if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002486fi
drh8b727472009-01-19 18:18:40 +00002487
2488# These three variables are undocumented and unsupported,
2489# and are intended to be withdrawn in a future Autoconf release.
2490# They can cause serious problems if a builder's source tree is in a directory
2491# whose full name contains unusual characters.
2492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2495
drh71eb93e2001-09-28 01:34:43 +00002496
2497# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002500
drhf922ca42015-05-14 15:39:18 +00002501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002502$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002503if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002504 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002505else
drh8b727472009-01-19 18:18:40 +00002506 ac_build_alias=$build_alias
2507test "x$ac_build_alias" = x &&
2508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2509test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002513
2514fi
drhf922ca42015-05-14 15:39:18 +00002515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002516$as_echo "$ac_cv_build" >&6; }
2517case $ac_cv_build in
2518*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002520esac
drh71eb93e2001-09-28 01:34:43 +00002521build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002522ac_save_IFS=$IFS; IFS='-'
2523set x $ac_cv_build
2524shift
2525build_cpu=$1
2526build_vendor=$2
2527shift; shift
2528# Remember, the first character of IFS is used to create $*,
2529# except with old shells:
2530build_os=$*
2531IFS=$ac_save_IFS
2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002533
a.rottmann84e63352003-03-24 09:42:16 +00002534
drhf922ca42015-05-14 15:39:18 +00002535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002536$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002537if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002538 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002539else
drh8b727472009-01-19 18:18:40 +00002540 if test "x$host_alias" = x; then
2541 ac_cv_host=$ac_cv_build
2542else
2543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002545fi
drh71eb93e2001-09-28 01:34:43 +00002546
2547fi
drhf922ca42015-05-14 15:39:18 +00002548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002549$as_echo "$ac_cv_host" >&6; }
2550case $ac_cv_host in
2551*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002553esac
drh71eb93e2001-09-28 01:34:43 +00002554host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002555ac_save_IFS=$IFS; IFS='-'
2556set x $ac_cv_host
2557shift
2558host_cpu=$1
2559host_vendor=$2
2560shift; shift
2561# Remember, the first character of IFS is used to create $*,
2562# except with old shells:
2563host_os=$*
2564IFS=$ac_save_IFS
2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002566
a.rottmann84e63352003-03-24 09:42:16 +00002567
drh71eb93e2001-09-28 01:34:43 +00002568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002577$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002578if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002579 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002580else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
a.rottmann84e63352003-03-24 09:42:16 +00002584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002593 break 2
2594 fi
2595done
drhf922ca42015-05-14 15:39:18 +00002596 done
drh8b727472009-01-19 18:18:40 +00002597IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002598
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002604$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002605else
drhf922ca42015-05-14 15:39:18 +00002606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002607$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002608fi
2609
drh8b727472009-01-19 18:18:40 +00002610
drh71eb93e2001-09-28 01:34:43 +00002611fi
2612if test -z "$ac_cv_prog_CC"; then
2613 ac_ct_CC=$CC
2614 # Extract the first word of "gcc", so it can be a program name with args.
2615set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002617$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002618if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002619 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002620else
2621 if test -n "$ac_ct_CC"; then
2622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623else
a.rottmann84e63352003-03-24 09:42:16 +00002624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002631 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002633 break 2
2634 fi
2635done
drhf922ca42015-05-14 15:39:18 +00002636 done
drh8b727472009-01-19 18:18:40 +00002637IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002638
2639fi
2640fi
2641ac_ct_CC=$ac_cv_prog_ac_ct_CC
2642if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002644$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002645else
drhf922ca42015-05-14 15:39:18 +00002646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002647$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002648fi
2649
drh8b727472009-01-19 18:18:40 +00002650 if test "x$ac_ct_CC" = x; then
2651 CC=""
2652 else
2653 case $cross_compiling:$ac_tool_warned in
2654yes:)
drhf922ca42015-05-14 15:39:18 +00002655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002657ac_tool_warned=yes ;;
2658esac
2659 CC=$ac_ct_CC
2660 fi
drh71eb93e2001-09-28 01:34:43 +00002661else
2662 CC="$ac_cv_prog_CC"
2663fi
2664
2665if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002668set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002670$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002671if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002672 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
a.rottmann84e63352003-03-24 09:42:16 +00002677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002684 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002686 break 2
2687 fi
2688done
drhf922ca42015-05-14 15:39:18 +00002689 done
drh8b727472009-01-19 18:18:40 +00002690IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002697$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002698else
drhf922ca42015-05-14 15:39:18 +00002699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002700$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002701fi
2702
drh8b727472009-01-19 18:18:40 +00002703
a.rottmann84e63352003-03-24 09:42:16 +00002704 fi
drh71eb93e2001-09-28 01:34:43 +00002705fi
2706if test -z "$CC"; then
2707 # Extract the first word of "cc", so it can be a program name with args.
2708set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002710$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002711if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002712 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002713else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726 ac_prog_rejected=yes
2727 continue
2728 fi
2729 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002731 break 2
2732 fi
2733done
drhf922ca42015-05-14 15:39:18 +00002734 done
drh8b727472009-01-19 18:18:40 +00002735IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002736
2737if test $ac_prog_rejected = yes; then
2738 # We found a bogon in the path, so make sure we never use it.
2739 set dummy $ac_cv_prog_CC
2740 shift
2741 if test $# != 0; then
2742 # We chose a different compiler from the bogus one.
2743 # However, it has the same basename, so the bogon will be chosen
2744 # first if we set CC to just the basename; use the full file name.
2745 shift
a.rottmann84e63352003-03-24 09:42:16 +00002746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002747 fi
2748fi
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002754$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002755else
drhf922ca42015-05-14 15:39:18 +00002756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002757$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002758fi
2759
drh8b727472009-01-19 18:18:40 +00002760
drh71eb93e2001-09-28 01:34:43 +00002761fi
2762if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002764 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002765 do
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002769$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002770if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002771 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002772else
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
a.rottmann84e63352003-03-24 09:42:16 +00002776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002785 break 2
2786 fi
2787done
drhf922ca42015-05-14 15:39:18 +00002788 done
drh8b727472009-01-19 18:18:40 +00002789IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002790
2791fi
2792fi
2793CC=$ac_cv_prog_CC
2794if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002796$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002797else
drhf922ca42015-05-14 15:39:18 +00002798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002799$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002800fi
2801
drh8b727472009-01-19 18:18:40 +00002802
drh71eb93e2001-09-28 01:34:43 +00002803 test -n "$CC" && break
2804 done
2805fi
2806if test -z "$CC"; then
2807 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002808 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002809do
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002813$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002814if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002815 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002816else
2817 if test -n "$ac_ct_CC"; then
2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819else
a.rottmann84e63352003-03-24 09:42:16 +00002820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002827 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002829 break 2
2830 fi
2831done
drhf922ca42015-05-14 15:39:18 +00002832 done
drh8b727472009-01-19 18:18:40 +00002833IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002834
2835fi
2836fi
2837ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002840$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002841else
drhf922ca42015-05-14 15:39:18 +00002842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002843$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002844fi
2845
drh8b727472009-01-19 18:18:40 +00002846
drh71eb93e2001-09-28 01:34:43 +00002847 test -n "$ac_ct_CC" && break
2848done
2849
drh8b727472009-01-19 18:18:40 +00002850 if test "x$ac_ct_CC" = x; then
2851 CC=""
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854yes:)
drhf922ca42015-05-14 15:39:18 +00002855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002857ac_tool_warned=yes ;;
2858esac
2859 CC=$ac_ct_CC
2860 fi
drh71eb93e2001-09-28 01:34:43 +00002861fi
2862
2863fi
2864
a.rottmann84e63352003-03-24 09:42:16 +00002865
drhf922ca42015-05-14 15:39:18 +00002866test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error $? "no acceptable C compiler found in \$PATH
2869See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002870
2871# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002872$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002873set X $ac_compile
2874ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002875for ac_option in --version -v -V -qversion; do
2876 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
drhf922ca42015-05-14 15:39:18 +00002881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882$as_echo "$ac_try_echo"; } >&5
2883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002884 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002885 if test -s conftest.err; then
2886 sed '10a\
2887... rest of stderr output deleted ...
2888 10q' conftest.err >conftest.er1
2889 cat conftest.er1 >&5
2890 fi
2891 rm -f conftest.er1 conftest.err
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; }
2894done
drh71eb93e2001-09-28 01:34:43 +00002895
drhf922ca42015-05-14 15:39:18 +00002896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002897/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002898
2899int
2900main ()
2901{
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002909# Try to create an executable without -o first, disregard a.out.
2910# It will help us diagnose broken compilers, and finding out an intuition
2911# of exeext.
drhf922ca42015-05-14 15:39:18 +00002912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2913$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002914ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002915
drh8b727472009-01-19 18:18:40 +00002916# The possible output files:
2917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2918
2919ac_rmfiles=
2920for ac_file in $ac_files
2921do
2922 case $ac_file in
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2925 esac
2926done
2927rm -f $ac_rmfiles
2928
drhf922ca42015-05-14 15:39:18 +00002929if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
drhf922ca42015-05-14 15:39:18 +00002934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002936 (eval "$ac_link_default") 2>&5
2937 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2942# in a Makefile. We should not override ac_cv_exeext if it was cached,
2943# so that the user can short-circuit this test for compilers unknown to
2944# Autoconf.
2945for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002946do
2947 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002948 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002950 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002951 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002952 # We found the default executable, but exeext='' is most
2953 # certainly right.
2954 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002955 *.* )
drhf922ca42015-05-14 15:39:18 +00002956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002957 then :; else
2958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2959 fi
2960 # We set ac_cv_exeext here because the later test for it is not
2961 # safe: cross compilers may not add the suffix if given an `-o'
2962 # argument, so we may need to know it at that point already.
2963 # Even if this section looks crufty: it has the advantage of
2964 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002965 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002966 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002967 break;;
drh71eb93e2001-09-28 01:34:43 +00002968 esac
2969done
drh8b727472009-01-19 18:18:40 +00002970test "$ac_cv_exeext" = no && ac_cv_exeext=
2971
drh71eb93e2001-09-28 01:34:43 +00002972else
drh8b727472009-01-19 18:18:40 +00002973 ac_file=''
2974fi
drhf922ca42015-05-14 15:39:18 +00002975if test -z "$ac_file"; then :
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002979sed 's/^/| /' conftest.$ac_ext >&5
2980
drhf922ca42015-05-14 15:39:18 +00002981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983as_fn_error 77 "C compiler cannot create executables
2984See \`config.log' for more details" "$LINENO" 5; }
2985else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002987$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2990$as_echo_n "checking for C compiler default output file name... " >&6; }
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2992$as_echo "$ac_file" >&6; }
2993ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002994
drh8b727472009-01-19 18:18:40 +00002995rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002996ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002998$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002999if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00003000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
drhf922ca42015-05-14 15:39:18 +00003004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003006 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003007 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3011# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3012# work properly (i.e., refer to `conftest.exe'), while it won't with
3013# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003014for ac_file in conftest.exe conftest conftest.*; do
3015 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003016 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003019 break;;
drh71eb93e2001-09-28 01:34:43 +00003020 * ) break;;
3021 esac
3022done
3023else
drhf922ca42015-05-14 15:39:18 +00003024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3027See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003028fi
drhf922ca42015-05-14 15:39:18 +00003029rm -f conftest conftest$ac_cv_exeext
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003031$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003032
3033rm -f conftest.$ac_ext
3034EXEEXT=$ac_cv_exeext
3035ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h. */
3038#include <stdio.h>
3039int
3040main ()
3041{
3042FILE *f = fopen ("conftest.out", "w");
3043 return ferror (f) || fclose (f) != 0;
3044
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049ac_clean_files="$ac_clean_files conftest.out"
3050# Check that the compiler produces executables we can run. If not, either
3051# the compiler is broken, or we cross compile.
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3053$as_echo_n "checking whether we are cross compiling... " >&6; }
3054if test "$cross_compiling" != yes; then
3055 { { ac_try="$ac_link"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_link") 2>&5
3063 ac_status=$?
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }
3066 if { ac_try='./conftest$ac_cv_exeext'
3067 { { case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_try") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }; }; then
3077 cross_compiling=no
3078 else
3079 if test "$cross_compiling" = maybe; then
3080 cross_compiling=yes
3081 else
3082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084as_fn_error $? "cannot run C compiled programs.
3085If you meant to cross compile, use \`--host'.
3086See \`config.log' for more details" "$LINENO" 5; }
3087 fi
3088 fi
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3091$as_echo "$cross_compiling" >&6; }
3092
3093rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3094ac_clean_files=$ac_clean_files_save
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003096$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003097if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003098 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003099else
drhf922ca42015-05-14 15:39:18 +00003100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003101/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003102
3103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003112if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
drhf922ca42015-05-14 15:39:18 +00003117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003119 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003120 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003123 for ac_file in conftest.o conftest.obj conftest.*; do
3124 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003125 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128 break;;
3129 esac
3130done
3131else
drh8b727472009-01-19 18:18:40 +00003132 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003133sed 's/^/| /' conftest.$ac_ext >&5
3134
drhf922ca42015-05-14 15:39:18 +00003135{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137as_fn_error $? "cannot compute suffix of object files: cannot compile
3138See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003139fi
drh71eb93e2001-09-28 01:34:43 +00003140rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141fi
drhf922ca42015-05-14 15:39:18 +00003142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003143$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003144OBJEXT=$ac_cv_objext
3145ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003148if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003149 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003150else
drhf922ca42015-05-14 15:39:18 +00003151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003152/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003153
3154int
3155main ()
3156{
3157#ifndef __GNUC__
3158 choke me
3159#endif
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
drhf922ca42015-05-14 15:39:18 +00003165if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003166 ac_compiler_gnu=yes
3167else
drhf922ca42015-05-14 15:39:18 +00003168 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003169fi
drh8b727472009-01-19 18:18:40 +00003170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003171ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172
3173fi
drhf922ca42015-05-14 15:39:18 +00003174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003175$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3176if test $ac_compiler_gnu = yes; then
3177 GCC=yes
3178else
3179 GCC=
3180fi
drh71eb93e2001-09-28 01:34:43 +00003181ac_test_CFLAGS=${CFLAGS+set}
3182ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003184$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003185if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003186 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003187else
drh8b727472009-01-19 18:18:40 +00003188 ac_save_c_werror_flag=$ac_c_werror_flag
3189 ac_c_werror_flag=yes
3190 ac_cv_prog_cc_g=no
3191 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003193/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003194
3195int
3196main ()
3197{
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
drhf922ca42015-05-14 15:39:18 +00003203if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003204 ac_cv_prog_cc_g=yes
3205else
drhf922ca42015-05-14 15:39:18 +00003206 CFLAGS=""
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003208/* end confdefs.h. */
3209
3210int
3211main ()
3212{
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
drhf922ca42015-05-14 15:39:18 +00003218if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003219
drhf922ca42015-05-14 15:39:18 +00003220else
3221 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003222 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
drhf922ca42015-05-14 15:39:18 +00003234if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003235 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003236fi
drh8b727472009-01-19 18:18:40 +00003237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003238fi
drh8b727472009-01-19 18:18:40 +00003239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
drh8b727472009-01-19 18:18:40 +00003241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_c_werror_flag=$ac_save_c_werror_flag
3243fi
drhf922ca42015-05-14 15:39:18 +00003244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003245$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003246if test "$ac_test_CFLAGS" = set; then
3247 CFLAGS=$ac_save_CFLAGS
3248elif test $ac_cv_prog_cc_g = yes; then
3249 if test "$GCC" = yes; then
3250 CFLAGS="-g -O2"
3251 else
3252 CFLAGS="-g"
3253 fi
3254else
3255 if test "$GCC" = yes; then
3256 CFLAGS="-O2"
3257 else
3258 CFLAGS=
3259 fi
3260fi
drhf922ca42015-05-14 15:39:18 +00003261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003263if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003264 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003265else
drh8b727472009-01-19 18:18:40 +00003266 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003267ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003269/* end confdefs.h. */
3270#include <stdarg.h>
3271#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003272struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274struct buf { int x; };
3275FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276static char *e (p, i)
3277 char **p;
3278 int i;
3279{
3280 return p[i];
3281}
3282static char *f (char * (*g) (char **, int), char **p, ...)
3283{
3284 char *s;
3285 va_list v;
3286 va_start (v,p);
3287 s = g (p, va_arg (v,int));
3288 va_end (v);
3289 return s;
3290}
a.rottmann964dbb12004-02-26 19:47:42 +00003291
3292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3293 function prototypes and stuff, but not '\xHH' hex character constants.
3294 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003295 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3297 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003298 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003299int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300
drh8b727472009-01-19 18:18:40 +00003301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302 inside strings and character constants. */
3303#define FOO(x) 'x'
3304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305
a.rottmann84e63352003-03-24 09:42:16 +00003306int test (int i, double x);
3307struct s1 {int (*f) (int a);};
3308struct s2 {int (*f) (double a);};
3309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310int argc;
3311char **argv;
3312int
3313main ()
3314{
3315return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3316 ;
3317 return 0;
3318}
3319_ACEOF
drh8b727472009-01-19 18:18:40 +00003320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003322do
3323 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003324 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003325 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003326fi
drh8b727472009-01-19 18:18:40 +00003327rm -f core conftest.err conftest.$ac_objext
3328 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003329done
drh8b727472009-01-19 18:18:40 +00003330rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003331CC=$ac_save_CC
3332
3333fi
drh8b727472009-01-19 18:18:40 +00003334# AC_CACHE_VAL
3335case "x$ac_cv_prog_cc_c89" in
3336 x)
drhf922ca42015-05-14 15:39:18 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003338$as_echo "none needed" >&6; } ;;
3339 xno)
drhf922ca42015-05-14 15:39:18 +00003340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003341$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003342 *)
drh8b727472009-01-19 18:18:40 +00003343 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003346esac
drhf922ca42015-05-14 15:39:18 +00003347if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003348
drhf922ca42015-05-14 15:39:18 +00003349fi
a.rottmann84e63352003-03-24 09:42:16 +00003350
drh71eb93e2001-09-28 01:34:43 +00003351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
drhf922ca42015-05-14 15:39:18 +00003357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003358$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003359if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003360 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003361else
drh8b727472009-01-19 18:18:40 +00003362 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3363 for ac_i in 1 2 3 4 5 6 7; do
3364 ac_script="$ac_script$as_nl$ac_script"
3365 done
3366 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003367 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003368 if test -z "$SED"; then
3369 ac_path_SED_found=false
3370 # Loop through the user's path and test for each of PROGNAME-LIST
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003376 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003377 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003378 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003379 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003380# Check for GNU ac_path_SED and select it if it is found.
3381 # Check for GNU $ac_path_SED
3382case `"$ac_path_SED" --version 2>&1` in
3383*GNU*)
3384 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3385*)
3386 ac_count=0
3387 $as_echo_n 0123456789 >"conftest.in"
3388 while :
3389 do
3390 cat "conftest.in" "conftest.in" >"conftest.tmp"
3391 mv "conftest.tmp" "conftest.in"
3392 cp "conftest.in" "conftest.nl"
3393 $as_echo '' >> "conftest.nl"
3394 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003396 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003397 if test $ac_count -gt ${ac_path_SED_max-0}; then
3398 # Best one so far, save it but keep looking for a better one
3399 ac_cv_path_SED="$ac_path_SED"
3400 ac_path_SED_max=$ac_count
3401 fi
3402 # 10*(2^10) chars as input seems more than enough
3403 test $ac_count -gt 10 && break
3404 done
3405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406esac
3407
3408 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003409 done
3410 done
drhf922ca42015-05-14 15:39:18 +00003411 done
mlcreech636a9952008-05-05 22:52:56 +00003412IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003413 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003414 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003415 fi
drh8b727472009-01-19 18:18:40 +00003416else
3417 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003418fi
drh866108f2008-05-13 00:57:21 +00003419
drh8b727472009-01-19 18:18:40 +00003420fi
drhf922ca42015-05-14 15:39:18 +00003421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003422$as_echo "$ac_cv_path_SED" >&6; }
3423 SED="$ac_cv_path_SED"
3424 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003425
mlcreech636a9952008-05-05 22:52:56 +00003426test -z "$SED" && SED=sed
3427Xsed="$SED -e 1s/^X//"
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
drhf922ca42015-05-14 15:39:18 +00003439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003440$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003441if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003442 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003443else
drh8b727472009-01-19 18:18:40 +00003444 if test -z "$GREP"; then
3445 ac_path_GREP_found=false
3446 # Loop through the user's path and test for each of PROGNAME-LIST
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003452 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003455 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003456# Check for GNU ac_path_GREP and select it if it is found.
3457 # Check for GNU $ac_path_GREP
3458case `"$ac_path_GREP" --version 2>&1` in
3459*GNU*)
3460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3461*)
3462 ac_count=0
3463 $as_echo_n 0123456789 >"conftest.in"
3464 while :
3465 do
3466 cat "conftest.in" "conftest.in" >"conftest.tmp"
3467 mv "conftest.tmp" "conftest.in"
3468 cp "conftest.in" "conftest.nl"
3469 $as_echo 'GREP' >> "conftest.nl"
3470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003472 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3474 # Best one so far, save it but keep looking for a better one
3475 ac_cv_path_GREP="$ac_path_GREP"
3476 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003477 fi
drh8b727472009-01-19 18:18:40 +00003478 # 10*(2^10) chars as input seems more than enough
3479 test $ac_count -gt 10 && break
3480 done
3481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3482esac
3483
3484 $ac_path_GREP_found && break 3
3485 done
3486 done
drhf922ca42015-05-14 15:39:18 +00003487 done
drh8b727472009-01-19 18:18:40 +00003488IFS=$as_save_IFS
3489 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003490 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003491 fi
3492else
3493 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003494fi
drh8b727472009-01-19 18:18:40 +00003495
3496fi
drhf922ca42015-05-14 15:39:18 +00003497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003498$as_echo "$ac_cv_path_GREP" >&6; }
3499 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003500
3501
drhf922ca42015-05-14 15:39:18 +00003502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003503$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003504if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003505 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003506else
drh8b727472009-01-19 18:18:40 +00003507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3508 then ac_cv_path_EGREP="$GREP -E"
3509 else
3510 if test -z "$EGREP"; then
3511 ac_path_EGREP_found=false
3512 # Loop through the user's path and test for each of PROGNAME-LIST
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3515do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003518 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003521 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003522# Check for GNU ac_path_EGREP and select it if it is found.
3523 # Check for GNU $ac_path_EGREP
3524case `"$ac_path_EGREP" --version 2>&1` in
3525*GNU*)
3526 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3527*)
3528 ac_count=0
3529 $as_echo_n 0123456789 >"conftest.in"
3530 while :
3531 do
3532 cat "conftest.in" "conftest.in" >"conftest.tmp"
3533 mv "conftest.tmp" "conftest.in"
3534 cp "conftest.in" "conftest.nl"
3535 $as_echo 'EGREP' >> "conftest.nl"
3536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003538 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3540 # Best one so far, save it but keep looking for a better one
3541 ac_cv_path_EGREP="$ac_path_EGREP"
3542 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003543 fi
drh8b727472009-01-19 18:18:40 +00003544 # 10*(2^10) chars as input seems more than enough
3545 test $ac_count -gt 10 && break
3546 done
3547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3548esac
3549
3550 $ac_path_EGREP_found && break 3
3551 done
3552 done
drhf922ca42015-05-14 15:39:18 +00003553 done
drh8b727472009-01-19 18:18:40 +00003554IFS=$as_save_IFS
3555 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003557 fi
3558else
3559 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003560fi
drh8b727472009-01-19 18:18:40 +00003561
3562 fi
3563fi
drhf922ca42015-05-14 15:39:18 +00003564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003565$as_echo "$ac_cv_path_EGREP" >&6; }
3566 EGREP="$ac_cv_path_EGREP"
3567
3568
drhf922ca42015-05-14 15:39:18 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003570$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003571if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003572 $as_echo_n "(cached) " >&6
3573else
3574 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3575 then ac_cv_path_FGREP="$GREP -F"
3576 else
3577 if test -z "$FGREP"; then
3578 ac_path_FGREP_found=false
3579 # Loop through the user's path and test for each of PROGNAME-LIST
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003585 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003588 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003589# Check for GNU ac_path_FGREP and select it if it is found.
3590 # Check for GNU $ac_path_FGREP
3591case `"$ac_path_FGREP" --version 2>&1` in
3592*GNU*)
3593 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3594*)
3595 ac_count=0
3596 $as_echo_n 0123456789 >"conftest.in"
3597 while :
3598 do
3599 cat "conftest.in" "conftest.in" >"conftest.tmp"
3600 mv "conftest.tmp" "conftest.in"
3601 cp "conftest.in" "conftest.nl"
3602 $as_echo 'FGREP' >> "conftest.nl"
3603 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003605 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003606 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3607 # Best one so far, save it but keep looking for a better one
3608 ac_cv_path_FGREP="$ac_path_FGREP"
3609 ac_path_FGREP_max=$ac_count
3610 fi
3611 # 10*(2^10) chars as input seems more than enough
3612 test $ac_count -gt 10 && break
3613 done
3614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615esac
3616
3617 $ac_path_FGREP_found && break 3
3618 done
3619 done
drhf922ca42015-05-14 15:39:18 +00003620 done
drh8b727472009-01-19 18:18:40 +00003621IFS=$as_save_IFS
3622 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003623 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003624 fi
3625else
3626 ac_cv_path_FGREP=$FGREP
3627fi
3628
3629 fi
3630fi
drhf922ca42015-05-14 15:39:18 +00003631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003632$as_echo "$ac_cv_path_FGREP" >&6; }
3633 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003634
3635
3636test -z "$GREP" && GREP=grep
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
a.rottmann9bc8b932004-02-29 15:18:31 +00003653
3654
a.rottmann84e63352003-03-24 09:42:16 +00003655
drh8b727472009-01-19 18:18:40 +00003656# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003657if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003659else
3660 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003661fi
3662
drh71eb93e2001-09-28 01:34:43 +00003663ac_prog=ld
3664if test "$GCC" = yes; then
3665 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003667$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003668 case $host in
3669 *-*-mingw*)
3670 # gcc leaves a trailing carriage return which upsets mingw
3671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3672 *)
3673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3674 esac
3675 case $ac_prog in
3676 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003677 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003678 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003679 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003680 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3681 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3682 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003683 done
3684 test -z "$LD" && LD="$ac_prog"
3685 ;;
3686 "")
3687 # If it fails, then pretend we aren't using GCC.
3688 ac_prog=ld
3689 ;;
3690 *)
3691 # If it is relative, then search for the first ld in PATH.
3692 with_gnu_ld=unknown
3693 ;;
3694 esac
3695elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003697$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003698else
drhf922ca42015-05-14 15:39:18 +00003699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003700$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003701fi
drhf922ca42015-05-14 15:39:18 +00003702if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003703 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003704else
3705 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003707 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003708 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003709 test -z "$ac_dir" && ac_dir=.
3710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3711 lt_cv_path_LD="$ac_dir/$ac_prog"
3712 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003713 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003714 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3716 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003717 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003718 ;;
3719 *)
drh71eb93e2001-09-28 01:34:43 +00003720 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003721 ;;
3722 esac
drh71eb93e2001-09-28 01:34:43 +00003723 fi
3724 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003725 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003726else
3727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3728fi
3729fi
3730
3731LD="$lt_cv_path_LD"
3732if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003734$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003735else
drhf922ca42015-05-14 15:39:18 +00003736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003737$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003738fi
drhf922ca42015-05-14 15:39:18 +00003739test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003741$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003742if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003743 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003744else
vapier7f19c022007-02-17 14:46:31 +00003745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003746case `$LD -v 2>&1 </dev/null` in
3747*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003748 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003749 ;;
3750*)
drh71eb93e2001-09-28 01:34:43 +00003751 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003752 ;;
3753esac
drh71eb93e2001-09-28 01:34:43 +00003754fi
drhf922ca42015-05-14 15:39:18 +00003755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003756$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003757with_gnu_ld=$lt_cv_prog_gnu_ld
3758
a.rottmann84e63352003-03-24 09:42:16 +00003759
drh71eb93e2001-09-28 01:34:43 +00003760
mlcreech636a9952008-05-05 22:52:56 +00003761
3762
3763
3764
3765
3766
drhf922ca42015-05-14 15:39:18 +00003767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003768$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003769if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003770 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003771else
3772 if test -n "$NM"; then
3773 # Let the user override the test.
3774 lt_cv_path_NM="$NM"
3775else
vapier7f19c022007-02-17 14:46:31 +00003776 lt_nm_to_check="${ac_tool_prefix}nm"
3777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3778 lt_nm_to_check="$lt_nm_to_check nm"
3779 fi
3780 for lt_tmp_nm in $lt_nm_to_check; do
3781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3782 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3783 IFS="$lt_save_ifs"
3784 test -z "$ac_dir" && ac_dir=.
3785 tmp_nm="$ac_dir/$lt_tmp_nm"
3786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3787 # Check to see if the nm accepts a BSD-compat flag.
3788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3789 # nm: unknown option "B" ignored
3790 # Tru64's nm complains that /dev/null is an invalid object file
3791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3792 */dev/null* | *'Invalid file or object type'*)
3793 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003794 break
3795 ;;
3796 *)
vapier7f19c022007-02-17 14:46:31 +00003797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3798 */dev/null*)
3799 lt_cv_path_NM="$tmp_nm -p"
3800 break
3801 ;;
3802 *)
3803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3804 continue # so that we can try to find one that supports BSD flags
3805 ;;
3806 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003807 ;;
3808 esac
vapier7f19c022007-02-17 14:46:31 +00003809 fi
3810 done
3811 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003812 done
mlcreech636a9952008-05-05 22:52:56 +00003813 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003814fi
3815fi
drhf922ca42015-05-14 15:39:18 +00003816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003817$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003818if test "$lt_cv_path_NM" != "no"; then
3819 NM="$lt_cv_path_NM"
3820else
3821 # Didn't find any BSD compatible name lister, look for dumpbin.
3822 if test -n "$ac_tool_prefix"; then
3823 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3824 do
3825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003828$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003829if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003830 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003831else
3832 if test -n "$DUMPBIN"; then
3833 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003844 break 2
3845 fi
3846done
drhf922ca42015-05-14 15:39:18 +00003847 done
drh8b727472009-01-19 18:18:40 +00003848IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003849
mlcreech636a9952008-05-05 22:52:56 +00003850fi
3851fi
3852DUMPBIN=$ac_cv_prog_DUMPBIN
3853if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003855$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003856else
drhf922ca42015-05-14 15:39:18 +00003857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003858$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003859fi
3860
drh8b727472009-01-19 18:18:40 +00003861
mlcreech636a9952008-05-05 22:52:56 +00003862 test -n "$DUMPBIN" && break
3863 done
3864fi
3865if test -z "$DUMPBIN"; then
3866 ac_ct_DUMPBIN=$DUMPBIN
3867 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3868do
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003872$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003873if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003874 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003875else
3876 if test -n "$ac_ct_DUMPBIN"; then
3877 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003886 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003888 break 2
3889 fi
3890done
drhf922ca42015-05-14 15:39:18 +00003891 done
drh8b727472009-01-19 18:18:40 +00003892IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003893
3894fi
3895fi
3896ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3897if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003899$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003900else
drhf922ca42015-05-14 15:39:18 +00003901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003902$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003903fi
3904
drh8b727472009-01-19 18:18:40 +00003905
mlcreech636a9952008-05-05 22:52:56 +00003906 test -n "$ac_ct_DUMPBIN" && break
3907done
3908
drh8b727472009-01-19 18:18:40 +00003909 if test "x$ac_ct_DUMPBIN" = x; then
3910 DUMPBIN=":"
3911 else
3912 case $cross_compiling:$ac_tool_warned in
3913yes:)
drhf922ca42015-05-14 15:39:18 +00003914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003916ac_tool_warned=yes ;;
3917esac
3918 DUMPBIN=$ac_ct_DUMPBIN
3919 fi
mlcreech636a9952008-05-05 22:52:56 +00003920fi
3921
3922
3923 if test "$DUMPBIN" != ":"; then
3924 NM="$DUMPBIN"
3925 fi
3926fi
3927test -z "$NM" && NM=nm
3928
3929
3930
3931
3932
3933
drhf922ca42015-05-14 15:39:18 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003935$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003936if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003937 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003938else
3939 lt_cv_nm_interface="BSD nm"
3940 echo "int some_variable = 0;" > conftest.$ac_ext
drh4a0a98d2021-11-29 17:55:12 +00003941 (eval echo "\"\$as_me:3941: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003942 (eval "$ac_compile" 2>conftest.err)
3943 cat conftest.err >&5
drh4a0a98d2021-11-29 17:55:12 +00003944 (eval echo "\"\$as_me:3944: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3946 cat conftest.err >&5
drh4a0a98d2021-11-29 17:55:12 +00003947 (eval echo "\"\$as_me:3947: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003948 cat conftest.out >&5
3949 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3950 lt_cv_nm_interface="MS dumpbin"
3951 fi
3952 rm -f conftest*
3953fi
drhf922ca42015-05-14 15:39:18 +00003954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003955$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003956
drhf922ca42015-05-14 15:39:18 +00003957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003958$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003959LN_S=$as_ln_s
3960if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003962$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003963else
drhf922ca42015-05-14 15:39:18 +00003964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003965$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003966fi
3967
mlcreech636a9952008-05-05 22:52:56 +00003968# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003970$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003971if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003972 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003973else
3974 i=0
3975 teststring="ABCD"
3976
3977 case $build_os in
3978 msdosdjgpp*)
3979 # On DJGPP, this test can blow up pretty badly due to problems in libc
3980 # (any single argument exceeding 2000 bytes causes a buffer overrun
3981 # during glob expansion). Even if it were fixed, the result of this
3982 # check would be larger than it should be.
3983 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3984 ;;
3985
3986 gnu*)
3987 # Under GNU Hurd, this test is not required because there is
3988 # no limit to the length of command line arguments.
3989 # Libtool will interpret -1 as no limit whatsoever
3990 lt_cv_sys_max_cmd_len=-1;
3991 ;;
3992
vapier6acb2cf2009-01-28 04:46:28 +00003993 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003994 # On Win9x/ME, this test blows up -- it succeeds, but takes
3995 # about 5 minutes as the teststring grows exponentially.
3996 # Worse, since 9x/ME are not pre-emptively multitasking,
3997 # you end up with a "frozen" computer, even though with patience
3998 # the test eventually succeeds (with a max line length of 256k).
3999 # Instead, let's just punt: use the minimum linelength reported by
4000 # all of the supported platforms: 8192 (on NT/2K/XP).
4001 lt_cv_sys_max_cmd_len=8192;
4002 ;;
4003
4004 amigaos*)
4005 # On AmigaOS with pdksh, this test takes hours, literally.
4006 # So we just punt and use a minimum line length of 8192.
4007 lt_cv_sys_max_cmd_len=8192;
4008 ;;
4009
4010 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4011 # This has been around since 386BSD, at least. Likely further.
4012 if test -x /sbin/sysctl; then
4013 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4014 elif test -x /usr/sbin/sysctl; then
4015 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4016 else
4017 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4018 fi
4019 # And add a safety zone
4020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4022 ;;
4023
4024 interix*)
4025 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4026 lt_cv_sys_max_cmd_len=196608
4027 ;;
4028
4029 osf*)
4030 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4031 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4032 # nice to cause kernel panics so lets avoid the loop below.
4033 # First set a reasonable default.
4034 lt_cv_sys_max_cmd_len=16384
4035 #
4036 if test -x /sbin/sysconfig; then
4037 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4038 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4039 esac
4040 fi
4041 ;;
4042 sco3.2v5*)
4043 lt_cv_sys_max_cmd_len=102400
4044 ;;
4045 sysv5* | sco5v6* | sysv4.2uw2*)
4046 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4047 if test -n "$kargmax"; then
4048 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4049 else
4050 lt_cv_sys_max_cmd_len=32768
4051 fi
4052 ;;
4053 *)
4054 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4055 if test -n "$lt_cv_sys_max_cmd_len"; then
4056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4058 else
4059 # Make teststring a little bigger before we do anything with it.
4060 # a 1K string should be a reasonable start.
4061 for i in 1 2 3 4 5 6 7 8 ; do
4062 teststring=$teststring$teststring
4063 done
4064 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4065 # If test is not a shell built-in, we'll probably end up computing a
4066 # maximum length that is only half of the actual maximum length, but
4067 # we can't tell.
4068 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4069 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4070 test $i != 17 # 1/2 MB should be enough
4071 do
4072 i=`expr $i + 1`
4073 teststring=$teststring$teststring
4074 done
4075 # Only check the string length outside the loop.
4076 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4077 teststring=
4078 # Add a significant safety factor because C++ compilers can tack on
4079 # massive amounts of additional arguments before passing them to the
4080 # linker. It appears as though 1/2 is a usable value.
4081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4082 fi
4083 ;;
4084 esac
4085
4086fi
4087
4088if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004090$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004091else
drhf922ca42015-05-14 15:39:18 +00004092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004093$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004094fi
4095max_cmd_len=$lt_cv_sys_max_cmd_len
4096
4097
4098
4099
4100
4101
4102: ${CP="cp -f"}
4103: ${MV="mv -f"}
4104: ${RM="rm -f"}
4105
drhf922ca42015-05-14 15:39:18 +00004106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004107$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004108# Try some XSI features
4109xsi_shell=no
4110( _lt_dummy="a/b/c"
4111 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4112 = c,a/b,, \
4113 && eval 'test $(( 1 + 1 )) -eq 2 \
4114 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4115 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004117$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004118
4119
drhf922ca42015-05-14 15:39:18 +00004120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004121$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004122lt_shell_append=no
4123( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4124 >/dev/null 2>&1 \
4125 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004127$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004128
4129
4130if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4131 lt_unset=unset
4132else
4133 lt_unset=false
4134fi
4135
4136
4137
4138
4139
4140# test EBCDIC or ASCII
4141case `echo X|tr X '\101'` in
4142 A) # ASCII based system
4143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4144 lt_SP2NL='tr \040 \012'
4145 lt_NL2SP='tr \015\012 \040\040'
4146 ;;
4147 *) # EBCDIC based system
4148 lt_SP2NL='tr \100 \n'
4149 lt_NL2SP='tr \r\n \100\100'
4150 ;;
4151esac
4152
4153
4154
4155
4156
4157
4158
4159
4160
drhf922ca42015-05-14 15:39:18 +00004161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004162$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004163if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004164 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004165else
4166 lt_cv_ld_reload_flag='-r'
4167fi
drhf922ca42015-05-14 15:39:18 +00004168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004169$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004170reload_flag=$lt_cv_ld_reload_flag
4171case $reload_flag in
4172"" | " "*) ;;
4173*) reload_flag=" $reload_flag" ;;
4174esac
4175reload_cmds='$LD$reload_flag -o $output$reload_objs'
4176case $host_os in
4177 darwin*)
4178 if test "$GCC" = yes; then
4179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4180 else
4181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4182 fi
4183 ;;
4184esac
4185
4186
4187
4188
4189
4190
4191
4192
4193
vapier6acb2cf2009-01-28 04:46:28 +00004194if test -n "$ac_tool_prefix"; then
4195 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4196set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004198$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004199if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004200 $as_echo_n "(cached) " >&6
4201else
4202 if test -n "$OBJDUMP"; then
4203 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004212 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004214 break 2
4215 fi
4216done
drhf922ca42015-05-14 15:39:18 +00004217 done
vapier6acb2cf2009-01-28 04:46:28 +00004218IFS=$as_save_IFS
4219
4220fi
4221fi
4222OBJDUMP=$ac_cv_prog_OBJDUMP
4223if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004225$as_echo "$OBJDUMP" >&6; }
4226else
drhf922ca42015-05-14 15:39:18 +00004227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004228$as_echo "no" >&6; }
4229fi
4230
4231
4232fi
4233if test -z "$ac_cv_prog_OBJDUMP"; then
4234 ac_ct_OBJDUMP=$OBJDUMP
4235 # Extract the first word of "objdump", so it can be a program name with args.
4236set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004238$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004239if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004240 $as_echo_n "(cached) " >&6
4241else
4242 if test -n "$ac_ct_OBJDUMP"; then
4243 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4244else
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004252 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004254 break 2
4255 fi
4256done
drhf922ca42015-05-14 15:39:18 +00004257 done
vapier6acb2cf2009-01-28 04:46:28 +00004258IFS=$as_save_IFS
4259
4260fi
4261fi
4262ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4263if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004265$as_echo "$ac_ct_OBJDUMP" >&6; }
4266else
drhf922ca42015-05-14 15:39:18 +00004267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004268$as_echo "no" >&6; }
4269fi
4270
4271 if test "x$ac_ct_OBJDUMP" = x; then
4272 OBJDUMP="false"
4273 else
4274 case $cross_compiling:$ac_tool_warned in
4275yes:)
drhf922ca42015-05-14 15:39:18 +00004276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004278ac_tool_warned=yes ;;
4279esac
4280 OBJDUMP=$ac_ct_OBJDUMP
4281 fi
4282else
4283 OBJDUMP="$ac_cv_prog_OBJDUMP"
4284fi
4285
4286test -z "$OBJDUMP" && OBJDUMP=objdump
4287
4288
4289
4290
4291
4292
4293
4294
mlcreech636a9952008-05-05 22:52:56 +00004295
drhf922ca42015-05-14 15:39:18 +00004296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004297$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004298if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004299 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004300else
4301 lt_cv_file_magic_cmd='$MAGIC_CMD'
4302lt_cv_file_magic_test_file=
4303lt_cv_deplibs_check_method='unknown'
4304# Need to set the preceding variable on all platforms that support
4305# interlibrary dependencies.
4306# 'none' -- dependencies not supported.
4307# `unknown' -- same as none, but documents that we really don't know.
4308# 'pass_all' -- all dependencies passed with no checks.
4309# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004310# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004311# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004312# If you have `file' or equivalent on your system and you're not sure
4313# whether `pass_all' will *always* work, you probably want this one.
4314
4315case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004316aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320beos*)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
vapier7f19c022007-02-17 14:46:31 +00004324bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326 lt_cv_file_magic_cmd='/usr/bin/file -L'
4327 lt_cv_file_magic_test_file=/shlib/libc.so
4328 ;;
4329
a.rottmann9bc8b932004-02-29 15:18:31 +00004330cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004331 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004333 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004334 ;;
4335
4336mingw* | pw32*)
4337 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4339 # unless we find 'file', for example because we are cross-compiling.
4340 if ( file / ) >/dev/null 2>&1; then
4341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4342 lt_cv_file_magic_cmd='func_win32_libid'
4343 else
4344 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4345 lt_cv_file_magic_cmd='$OBJDUMP -f'
4346 fi
drh71eb93e2001-09-28 01:34:43 +00004347 ;;
4348
vapier6acb2cf2009-01-28 04:46:28 +00004349cegcc)
4350 # use the weaker test based on 'objdump'. See mingw*.
4351 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4352 lt_cv_file_magic_cmd='$OBJDUMP -f'
4353 ;;
4354
drh71eb93e2001-09-28 01:34:43 +00004355darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004356 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004357 ;;
4358
mlcreech636a9952008-05-05 22:52:56 +00004359freebsd* | dragonfly*)
4360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004361 case $host_cpu in
4362 i*86 )
4363 # Not sure whether the presence of OpenBSD here was a mistake.
4364 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004365 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 +00004366 lt_cv_file_magic_cmd=/usr/bin/file
4367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4368 ;;
4369 esac
4370 else
4371 lt_cv_deplibs_check_method=pass_all
4372 fi
4373 ;;
4374
4375gnu*)
4376 lt_cv_deplibs_check_method=pass_all
4377 ;;
4378
a.rottmann9bc8b932004-02-29 15:18:31 +00004379hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004380 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004381 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004382 ia64*)
4383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4385 ;;
4386 hppa*64*)
4387 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]'
4388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4389 ;;
4390 *)
4391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4393 ;;
4394 esac
drh71eb93e2001-09-28 01:34:43 +00004395 ;;
4396
mlcreech636a9952008-05-05 22:52:56 +00004397interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4400 ;;
4401
a.rottmann84e63352003-03-24 09:42:16 +00004402irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004403 case $LD in
4404 *-32|*"-32 ") libmagic=32-bit;;
4405 *-n32|*"-n32 ") libmagic=N32;;
4406 *-64|*"-64 ") libmagic=64-bit;;
4407 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004408 esac
drh71eb93e2001-09-28 01:34:43 +00004409 lt_cv_deplibs_check_method=pass_all
4410 ;;
4411
4412# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004413linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004414 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004415 ;;
4416
vapier7f19c022007-02-17 14:46:31 +00004417netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004420 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004422 fi
4423 ;;
4424
4425newos6*)
4426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4427 lt_cv_file_magic_cmd=/usr/bin/file
4428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4429 ;;
4430
mlcreech636a9952008-05-05 22:52:56 +00004431*nto* | *qnx*)
4432 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004433 ;;
4434
a.rottmann84e63352003-03-24 09:42:16 +00004435openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004438 else
vapier7f19c022007-02-17 14:46:31 +00004439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004440 fi
drh71eb93e2001-09-28 01:34:43 +00004441 ;;
4442
4443osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004444 lt_cv_deplibs_check_method=pass_all
4445 ;;
4446
mlcreech636a9952008-05-05 22:52:56 +00004447rdos*)
4448 lt_cv_deplibs_check_method=pass_all
4449 ;;
4450
drh71eb93e2001-09-28 01:34:43 +00004451solaris*)
4452 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004453 ;;
4454
mlcreech636a9952008-05-05 22:52:56 +00004455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458
vapier7f19c022007-02-17 14:46:31 +00004459sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004460 case $host_vendor in
4461 motorola)
4462 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]'
4463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4464 ;;
4465 ncr)
4466 lt_cv_deplibs_check_method=pass_all
4467 ;;
4468 sequent)
4469 lt_cv_file_magic_cmd='/bin/file'
4470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4471 ;;
4472 sni)
4473 lt_cv_file_magic_cmd='/bin/file'
4474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4475 lt_cv_file_magic_test_file=/lib/libc.so
4476 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004477 siemens)
4478 lt_cv_deplibs_check_method=pass_all
4479 ;;
vapier7f19c022007-02-17 14:46:31 +00004480 pc)
4481 lt_cv_deplibs_check_method=pass_all
4482 ;;
drh71eb93e2001-09-28 01:34:43 +00004483 esac
4484 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004485
mlcreech636a9952008-05-05 22:52:56 +00004486tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004487 lt_cv_deplibs_check_method=pass_all
4488 ;;
drh71eb93e2001-09-28 01:34:43 +00004489esac
4490
4491fi
drhf922ca42015-05-14 15:39:18 +00004492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004493$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004494file_magic_cmd=$lt_cv_file_magic_cmd
4495deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004496test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004497
drh71eb93e2001-09-28 01:34:43 +00004498
drh71eb93e2001-09-28 01:34:43 +00004499
drh71eb93e2001-09-28 01:34:43 +00004500
mlcreech636a9952008-05-05 22:52:56 +00004501
4502
4503
4504
4505
4506
4507
4508
4509if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004513$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004514if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004515 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004516else
4517 if test -n "$AR"; then
4518 ac_cv_prog_AR="$AR" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004527 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004529 break 2
4530 fi
4531done
drhf922ca42015-05-14 15:39:18 +00004532 done
drh8b727472009-01-19 18:18:40 +00004533IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004534
4535fi
4536fi
4537AR=$ac_cv_prog_AR
4538if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004540$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004541else
drhf922ca42015-05-14 15:39:18 +00004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004543$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004544fi
4545
drh8b727472009-01-19 18:18:40 +00004546
mlcreech636a9952008-05-05 22:52:56 +00004547fi
4548if test -z "$ac_cv_prog_AR"; then
4549 ac_ct_AR=$AR
4550 # Extract the first word of "ar", so it can be a program name with args.
4551set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004553$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004554if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004555 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004556else
4557 if test -n "$ac_ct_AR"; then
4558 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004567 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004569 break 2
4570 fi
4571done
drhf922ca42015-05-14 15:39:18 +00004572 done
drh8b727472009-01-19 18:18:40 +00004573IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004574
4575fi
4576fi
4577ac_ct_AR=$ac_cv_prog_ac_ct_AR
4578if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004580$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004581else
drhf922ca42015-05-14 15:39:18 +00004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004583$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004584fi
4585
drh8b727472009-01-19 18:18:40 +00004586 if test "x$ac_ct_AR" = x; then
4587 AR="false"
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590yes:)
drhf922ca42015-05-14 15:39:18 +00004591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004593ac_tool_warned=yes ;;
4594esac
4595 AR=$ac_ct_AR
4596 fi
mlcreech636a9952008-05-05 22:52:56 +00004597else
4598 AR="$ac_cv_prog_AR"
4599fi
4600
4601test -z "$AR" && AR=ar
4602test -z "$AR_FLAGS" && AR_FLAGS=cru
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4616set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004618$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004619if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004620 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004621else
4622 if test -n "$STRIP"; then
4623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004634 break 2
4635 fi
4636done
drhf922ca42015-05-14 15:39:18 +00004637 done
drh8b727472009-01-19 18:18:40 +00004638IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004639
4640fi
4641fi
4642STRIP=$ac_cv_prog_STRIP
4643if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004645$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004646else
drhf922ca42015-05-14 15:39:18 +00004647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004648$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004649fi
4650
drh8b727472009-01-19 18:18:40 +00004651
mlcreech636a9952008-05-05 22:52:56 +00004652fi
4653if test -z "$ac_cv_prog_STRIP"; then
4654 ac_ct_STRIP=$STRIP
4655 # Extract the first word of "strip", so it can be a program name with args.
4656set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004658$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004659if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004660 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004661else
4662 if test -n "$ac_ct_STRIP"; then
4663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004672 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004674 break 2
4675 fi
4676done
drhf922ca42015-05-14 15:39:18 +00004677 done
drh8b727472009-01-19 18:18:40 +00004678IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004679
4680fi
4681fi
4682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4683if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004685$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004686else
drhf922ca42015-05-14 15:39:18 +00004687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004688$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004689fi
4690
drh8b727472009-01-19 18:18:40 +00004691 if test "x$ac_ct_STRIP" = x; then
4692 STRIP=":"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695yes:)
drhf922ca42015-05-14 15:39:18 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004698ac_tool_warned=yes ;;
4699esac
4700 STRIP=$ac_ct_STRIP
4701 fi
mlcreech636a9952008-05-05 22:52:56 +00004702else
4703 STRIP="$ac_cv_prog_STRIP"
4704fi
4705
4706test -z "$STRIP" && STRIP=:
4707
4708
4709
4710
4711
4712
4713if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4715set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004717$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004718if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004719 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004720else
4721 if test -n "$RANLIB"; then
4722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004733 break 2
4734 fi
4735done
drhf922ca42015-05-14 15:39:18 +00004736 done
drh8b727472009-01-19 18:18:40 +00004737IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004738
4739fi
4740fi
4741RANLIB=$ac_cv_prog_RANLIB
4742if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004744$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004745else
drhf922ca42015-05-14 15:39:18 +00004746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004747$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004748fi
4749
drh8b727472009-01-19 18:18:40 +00004750
mlcreech636a9952008-05-05 22:52:56 +00004751fi
4752if test -z "$ac_cv_prog_RANLIB"; then
4753 ac_ct_RANLIB=$RANLIB
4754 # Extract the first word of "ranlib", so it can be a program name with args.
4755set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004757$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004758if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004759 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004760else
4761 if test -n "$ac_ct_RANLIB"; then
4762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763else
4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH
4766do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004771 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004773 break 2
4774 fi
4775done
drhf922ca42015-05-14 15:39:18 +00004776 done
drh8b727472009-01-19 18:18:40 +00004777IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004778
4779fi
4780fi
4781ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004784$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004785else
drhf922ca42015-05-14 15:39:18 +00004786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004787$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004788fi
4789
drh8b727472009-01-19 18:18:40 +00004790 if test "x$ac_ct_RANLIB" = x; then
4791 RANLIB=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794yes:)
drhf922ca42015-05-14 15:39:18 +00004795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004797ac_tool_warned=yes ;;
4798esac
4799 RANLIB=$ac_ct_RANLIB
4800 fi
mlcreech636a9952008-05-05 22:52:56 +00004801else
4802 RANLIB="$ac_cv_prog_RANLIB"
4803fi
4804
4805test -z "$RANLIB" && RANLIB=:
4806
4807
4808
4809
4810
4811
4812# Determine commands to create old-style static archives.
4813old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4814old_postinstall_cmds='chmod 644 $oldlib'
4815old_postuninstall_cmds=
4816
4817if test -n "$RANLIB"; then
4818 case $host_os in
4819 openbsd*)
4820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4821 ;;
4822 *)
4823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4824 ;;
4825 esac
4826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4827fi
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
4861
a.rottmann9bc8b932004-02-29 15:18:31 +00004862# If no C compiler was specified, use CC.
4863LTCC=${LTCC-"$CC"}
4864
vapier7f19c022007-02-17 14:46:31 +00004865# If no C compiler flags were specified, use CFLAGS.
4866LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4867
a.rottmann9bc8b932004-02-29 15:18:31 +00004868# Allow CC to be a program name with arguments.
4869compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004870
drh71eb93e2001-09-28 01:34:43 +00004871
mlcreech636a9952008-05-05 22:52:56 +00004872# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004874$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004875if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004876 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004877else
4878
4879# These are sane defaults that work on at least a few old systems.
4880# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4881
4882# Character class describing NM global symbol codes.
4883symcode='[BCDEGRST]'
4884
4885# Regexp to match symbols that can be accessed directly from C.
4886sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4887
4888# Define system-specific variables.
4889case $host_os in
4890aix*)
4891 symcode='[BCDT]'
4892 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004893cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004894 symcode='[ABCDGISTW]'
4895 ;;
4896hpux*)
4897 if test "$host_cpu" = ia64; then
4898 symcode='[ABCDEGRST]'
4899 fi
4900 ;;
4901irix* | nonstopux*)
4902 symcode='[BCDEGRST]'
4903 ;;
4904osf*)
4905 symcode='[BCDEGQRST]'
4906 ;;
4907solaris*)
4908 symcode='[BDRT]'
4909 ;;
4910sco3.2v5*)
4911 symcode='[DT]'
4912 ;;
4913sysv4.2uw2*)
4914 symcode='[DT]'
4915 ;;
4916sysv5* | sco5v6* | unixware* | OpenUNIX*)
4917 symcode='[ABDT]'
4918 ;;
4919sysv4)
4920 symcode='[DFNSTU]'
4921 ;;
4922esac
4923
4924# If we're using GNU nm, then use its standard symbol codes.
4925case `$NM -V 2>&1` in
4926*GNU* | *'with BFD'*)
4927 symcode='[ABCDGIRSTW]' ;;
4928esac
4929
4930# Transform an extracted symbol line into a proper C declaration.
4931# Some systems (esp. on ia64) link data and code symbols differently,
4932# so use this general approach.
4933lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4934
4935# Transform an extracted symbol line into symbol name and symbol address
4936lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4937lt_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'"
4938
4939# Handle CRLF in mingw tool chain
4940opt_cr=
4941case $build_os in
4942mingw*)
4943 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4944 ;;
4945esac
4946
4947# Try without a prefix underscore, then with it.
4948for ac_symprfx in "" "_"; do
4949
4950 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4951 symxfrm="\\1 $ac_symprfx\\2 \\2"
4952
4953 # Write the raw and C identifiers.
4954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4955 # Fake it for dumpbin and say T for any non-static function
4956 # and D for any global variable.
4957 # Also find C++ and __fastcall symbols from MSVC++,
4958 # which start with @ or ?.
4959 lt_cv_sys_global_symbol_pipe="$AWK '"\
4960" {last_section=section; section=\$ 3};"\
4961" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4962" \$ 0!~/External *\|/{next};"\
4963" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4964" {if(hide[section]) next};"\
4965" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4966" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4967" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4968" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4969" ' prfx=^$ac_symprfx"
4970 else
4971 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4972 fi
4973
4974 # Check to see that the pipe works correctly.
4975 pipe_works=no
4976
4977 rm -f conftest*
4978 cat > conftest.$ac_ext <<_LT_EOF
4979#ifdef __cplusplus
4980extern "C" {
4981#endif
4982char nm_test_var;
4983void nm_test_func(void);
4984void nm_test_func(void){}
4985#ifdef __cplusplus
4986}
4987#endif
4988int main(){nm_test_var='a';nm_test_func();return(0);}
4989_LT_EOF
4990
drhf922ca42015-05-14 15:39:18 +00004991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004992 (eval $ac_compile) 2>&5
4993 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004996 # Now try to grab the symbols.
4997 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004998 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 +00004999 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5000 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005003 # Try sorting and uniquifying the output.
5004 if sort "$nlist" | uniq > "$nlist"T; then
5005 mv -f "$nlist"T "$nlist"
5006 else
5007 rm -f "$nlist"T
5008 fi
5009
5010 # Make sure that we snagged all the symbols we need.
5011 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5012 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5013 cat <<_LT_EOF > conftest.$ac_ext
5014#ifdef __cplusplus
5015extern "C" {
5016#endif
5017
5018_LT_EOF
5019 # Now generate the symbol file.
5020 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5021
5022 cat <<_LT_EOF >> conftest.$ac_ext
5023
5024/* The mapping between symbol names and symbols. */
5025const struct {
5026 const char *name;
5027 void *address;
5028}
5029lt__PROGRAM__LTX_preloaded_symbols[] =
5030{
5031 { "@PROGRAM@", (void *) 0 },
5032_LT_EOF
5033 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5034 cat <<\_LT_EOF >> conftest.$ac_ext
5035 {0, (void *) 0}
5036};
5037
5038/* This works around a problem in FreeBSD linker */
5039#ifdef FREEBSD_WORKAROUND
5040static const void *lt_preloaded_setup() {
5041 return lt__PROGRAM__LTX_preloaded_symbols;
5042}
5043#endif
5044
5045#ifdef __cplusplus
5046}
5047#endif
5048_LT_EOF
5049 # Now try linking the two files.
5050 mv conftest.$ac_objext conftstm.$ac_objext
5051 lt_save_LIBS="$LIBS"
5052 lt_save_CFLAGS="$CFLAGS"
5053 LIBS="conftstm.$ac_objext"
5054 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005056 (eval $ac_link) 2>&5
5057 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005060 pipe_works=yes
5061 fi
5062 LIBS="$lt_save_LIBS"
5063 CFLAGS="$lt_save_CFLAGS"
5064 else
5065 echo "cannot find nm_test_func in $nlist" >&5
5066 fi
5067 else
5068 echo "cannot find nm_test_var in $nlist" >&5
5069 fi
5070 else
5071 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5072 fi
5073 else
5074 echo "$progname: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5076 fi
5077 rm -rf conftest* conftst*
5078
5079 # Do not use the global_symbol_pipe unless it works.
5080 if test "$pipe_works" = yes; then
5081 break
5082 else
5083 lt_cv_sys_global_symbol_pipe=
5084 fi
5085done
5086
5087fi
5088
5089if test -z "$lt_cv_sys_global_symbol_pipe"; then
5090 lt_cv_sys_global_symbol_to_cdecl=
5091fi
5092if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005094$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005095else
drhf922ca42015-05-14 15:39:18 +00005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005097$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005098fi
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
drh8b727472009-01-19 18:18:40 +00005122# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005123if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005124 enableval=$enable_libtool_lock;
5125fi
drh71eb93e2001-09-28 01:34:43 +00005126
a.rottmann9bc8b932004-02-29 15:18:31 +00005127test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005128
a.rottmann9bc8b932004-02-29 15:18:31 +00005129# Some flags need to be propagated to the compiler or linker for good
5130# libtool support.
5131case $host in
5132ia64-*-hpux*)
5133 # Find out which ABI we are using.
5134 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005136 (eval $ac_compile) 2>&5
5137 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005140 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005141 *ELF-32*)
5142 HPUX_IA64_MODE="32"
5143 ;;
5144 *ELF-64*)
5145 HPUX_IA64_MODE="64"
5146 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005147 esac
5148 fi
5149 rm -rf conftest*
5150 ;;
5151*-*-irix6*)
5152 # Find out which ABI we are using.
drh4a0a98d2021-11-29 17:55:12 +00005153 echo '#line 5153 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005155 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005156 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005159 if test "$lt_cv_prog_gnu_ld" = yes; then
5160 case `/usr/bin/file conftest.$ac_objext` in
5161 *32-bit*)
5162 LD="${LD-ld} -melf32bsmip"
5163 ;;
5164 *N32*)
5165 LD="${LD-ld} -melf32bmipn32"
5166 ;;
5167 *64-bit*)
5168 LD="${LD-ld} -melf64bmip"
5169 ;;
5170 esac
5171 else
5172 case `/usr/bin/file conftest.$ac_objext` in
5173 *32-bit*)
5174 LD="${LD-ld} -32"
5175 ;;
5176 *N32*)
5177 LD="${LD-ld} -n32"
5178 ;;
5179 *64-bit*)
5180 LD="${LD-ld} -64"
5181 ;;
5182 esac
5183 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005184 fi
5185 rm -rf conftest*
5186 ;;
drh71eb93e2001-09-28 01:34:43 +00005187
mlcreech636a9952008-05-05 22:52:56 +00005188x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5189s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005190 # Find out which ABI we are using.
5191 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005193 (eval $ac_compile) 2>&5
5194 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005197 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005198 *32-bit*)
5199 case $host in
5200 x86_64-*kfreebsd*-gnu)
5201 LD="${LD-ld} -m elf_i386_fbsd"
5202 ;;
5203 x86_64-*linux*)
5204 LD="${LD-ld} -m elf_i386"
5205 ;;
5206 ppc64-*linux*|powerpc64-*linux*)
5207 LD="${LD-ld} -m elf32ppclinux"
5208 ;;
5209 s390x-*linux*)
5210 LD="${LD-ld} -m elf_s390"
5211 ;;
5212 sparc64-*linux*)
5213 LD="${LD-ld} -m elf32_sparc"
5214 ;;
5215 esac
5216 ;;
5217 *64-bit*)
5218 case $host in
5219 x86_64-*kfreebsd*-gnu)
5220 LD="${LD-ld} -m elf_x86_64_fbsd"
5221 ;;
5222 x86_64-*linux*)
5223 LD="${LD-ld} -m elf_x86_64"
5224 ;;
5225 ppc*-*linux*|powerpc*-*linux*)
5226 LD="${LD-ld} -m elf64ppc"
5227 ;;
5228 s390*-*linux*|s390*-*tpf*)
5229 LD="${LD-ld} -m elf64_s390"
5230 ;;
5231 sparc*-*linux*)
5232 LD="${LD-ld} -m elf64_sparc"
5233 ;;
5234 esac
5235 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005236 esac
5237 fi
5238 rm -rf conftest*
5239 ;;
drh71eb93e2001-09-28 01:34:43 +00005240
a.rottmann9bc8b932004-02-29 15:18:31 +00005241*-*-sco3.2v5*)
5242 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5243 SAVE_CFLAGS="$CFLAGS"
5244 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005246$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005247if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005248 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005249else
5250 ac_ext=c
5251ac_cpp='$CPP $CPPFLAGS'
5252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005255
drhf922ca42015-05-14 15:39:18 +00005256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005257/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005258
a.rottmann9bc8b932004-02-29 15:18:31 +00005259int
5260main ()
drh71eb93e2001-09-28 01:34:43 +00005261{
drh71eb93e2001-09-28 01:34:43 +00005262
a.rottmann9bc8b932004-02-29 15:18:31 +00005263 ;
5264 return 0;
drh71eb93e2001-09-28 01:34:43 +00005265}
a.rottmann9bc8b932004-02-29 15:18:31 +00005266_ACEOF
drhf922ca42015-05-14 15:39:18 +00005267if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005268 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005269else
drhf922ca42015-05-14 15:39:18 +00005270 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005271fi
drhf922ca42015-05-14 15:39:18 +00005272rm -f core conftest.err conftest.$ac_objext \
5273 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005274 ac_ext=c
5275ac_cpp='$CPP $CPPFLAGS'
5276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279
drh71eb93e2001-09-28 01:34:43 +00005280fi
drhf922ca42015-05-14 15:39:18 +00005281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005282$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005283 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5284 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5285 CFLAGS="$SAVE_CFLAGS"
5286 fi
5287 ;;
vapier7f19c022007-02-17 14:46:31 +00005288sparc*-*solaris*)
5289 # Find out which ABI we are using.
5290 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005292 (eval $ac_compile) 2>&5
5293 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005296 case `/usr/bin/file conftest.o` in
5297 *64-bit*)
5298 case $lt_cv_prog_gnu_ld in
5299 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005300 *)
5301 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5302 LD="${LD-ld} -64"
5303 fi
5304 ;;
vapier7f19c022007-02-17 14:46:31 +00005305 esac
5306 ;;
5307 esac
5308 fi
5309 rm -rf conftest*
5310 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005311esac
5312
5313need_locks="$enable_libtool_lock"
5314
drh71eb93e2001-09-28 01:34:43 +00005315
mlcreech636a9952008-05-05 22:52:56 +00005316 case $host_os in
5317 rhapsody* | darwin*)
5318 if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5320set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005322$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005323if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005324 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005325else
5326 if test -n "$DSYMUTIL"; then
5327 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005336 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005338 break 2
5339 fi
5340done
drhf922ca42015-05-14 15:39:18 +00005341 done
drh8b727472009-01-19 18:18:40 +00005342IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005343
5344fi
5345fi
5346DSYMUTIL=$ac_cv_prog_DSYMUTIL
5347if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005349$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005350else
drhf922ca42015-05-14 15:39:18 +00005351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005352$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005353fi
5354
drh8b727472009-01-19 18:18:40 +00005355
mlcreech636a9952008-05-05 22:52:56 +00005356fi
5357if test -z "$ac_cv_prog_DSYMUTIL"; then
5358 ac_ct_DSYMUTIL=$DSYMUTIL
5359 # Extract the first word of "dsymutil", so it can be a program name with args.
5360set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005362$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005363if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005364 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005365else
5366 if test -n "$ac_ct_DSYMUTIL"; then
5367 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005376 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005378 break 2
5379 fi
5380done
drhf922ca42015-05-14 15:39:18 +00005381 done
drh8b727472009-01-19 18:18:40 +00005382IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005383
5384fi
5385fi
5386ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5387if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005389$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005390else
drhf922ca42015-05-14 15:39:18 +00005391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005392$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005393fi
5394
drh8b727472009-01-19 18:18:40 +00005395 if test "x$ac_ct_DSYMUTIL" = x; then
5396 DSYMUTIL=":"
5397 else
5398 case $cross_compiling:$ac_tool_warned in
5399yes:)
drhf922ca42015-05-14 15:39:18 +00005400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005402ac_tool_warned=yes ;;
5403esac
5404 DSYMUTIL=$ac_ct_DSYMUTIL
5405 fi
mlcreech636a9952008-05-05 22:52:56 +00005406else
5407 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5408fi
5409
5410 if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005414$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005415if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005416 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005417else
5418 if test -n "$NMEDIT"; then
5419 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005428 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005430 break 2
5431 fi
5432done
drhf922ca42015-05-14 15:39:18 +00005433 done
drh8b727472009-01-19 18:18:40 +00005434IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005435
5436fi
5437fi
5438NMEDIT=$ac_cv_prog_NMEDIT
5439if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005441$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005442else
drhf922ca42015-05-14 15:39:18 +00005443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005444$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005445fi
5446
drh8b727472009-01-19 18:18:40 +00005447
mlcreech636a9952008-05-05 22:52:56 +00005448fi
5449if test -z "$ac_cv_prog_NMEDIT"; then
5450 ac_ct_NMEDIT=$NMEDIT
5451 # Extract the first word of "nmedit", so it can be a program name with args.
5452set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005454$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005455if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005456 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005457else
5458 if test -n "$ac_ct_NMEDIT"; then
5459 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005468 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005470 break 2
5471 fi
5472done
drhf922ca42015-05-14 15:39:18 +00005473 done
drh8b727472009-01-19 18:18:40 +00005474IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005475
5476fi
5477fi
5478ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5479if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005481$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005482else
drhf922ca42015-05-14 15:39:18 +00005483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005484$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005485fi
5486
drh8b727472009-01-19 18:18:40 +00005487 if test "x$ac_ct_NMEDIT" = x; then
5488 NMEDIT=":"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491yes:)
drhf922ca42015-05-14 15:39:18 +00005492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005494ac_tool_warned=yes ;;
5495esac
5496 NMEDIT=$ac_ct_NMEDIT
5497 fi
mlcreech636a9952008-05-05 22:52:56 +00005498else
5499 NMEDIT="$ac_cv_prog_NMEDIT"
5500fi
5501
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5504set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005506$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005507if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005508 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005509else
5510 if test -n "$LIPO"; then
5511 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005520 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005522 break 2
5523 fi
5524done
drhf922ca42015-05-14 15:39:18 +00005525 done
drh8b727472009-01-19 18:18:40 +00005526IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005527
5528fi
5529fi
5530LIPO=$ac_cv_prog_LIPO
5531if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005533$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005534else
drhf922ca42015-05-14 15:39:18 +00005535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005536$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005537fi
5538
drh8b727472009-01-19 18:18:40 +00005539
mlcreech636a9952008-05-05 22:52:56 +00005540fi
5541if test -z "$ac_cv_prog_LIPO"; then
5542 ac_ct_LIPO=$LIPO
5543 # Extract the first word of "lipo", so it can be a program name with args.
5544set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005546$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005547if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005548 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005549else
5550 if test -n "$ac_ct_LIPO"; then
5551 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5552else
5553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005560 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005562 break 2
5563 fi
5564done
drhf922ca42015-05-14 15:39:18 +00005565 done
drh8b727472009-01-19 18:18:40 +00005566IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005567
5568fi
5569fi
5570ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5571if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005573$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005574else
drhf922ca42015-05-14 15:39:18 +00005575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005576$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005577fi
5578
drh8b727472009-01-19 18:18:40 +00005579 if test "x$ac_ct_LIPO" = x; then
5580 LIPO=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583yes:)
drhf922ca42015-05-14 15:39:18 +00005584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005586ac_tool_warned=yes ;;
5587esac
5588 LIPO=$ac_ct_LIPO
5589 fi
mlcreech636a9952008-05-05 22:52:56 +00005590else
5591 LIPO="$ac_cv_prog_LIPO"
5592fi
5593
5594 if test -n "$ac_tool_prefix"; then
5595 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5596set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005598$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005599if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005600 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005601else
5602 if test -n "$OTOOL"; then
5603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005612 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005614 break 2
5615 fi
5616done
drhf922ca42015-05-14 15:39:18 +00005617 done
drh8b727472009-01-19 18:18:40 +00005618IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005619
5620fi
5621fi
5622OTOOL=$ac_cv_prog_OTOOL
5623if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005625$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005626else
drhf922ca42015-05-14 15:39:18 +00005627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005628$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005629fi
5630
drh8b727472009-01-19 18:18:40 +00005631
mlcreech636a9952008-05-05 22:52:56 +00005632fi
5633if test -z "$ac_cv_prog_OTOOL"; then
5634 ac_ct_OTOOL=$OTOOL
5635 # Extract the first word of "otool", so it can be a program name with args.
5636set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005638$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005639if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005640 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005641else
5642 if test -n "$ac_ct_OTOOL"; then
5643 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005652 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005654 break 2
5655 fi
5656done
drhf922ca42015-05-14 15:39:18 +00005657 done
drh8b727472009-01-19 18:18:40 +00005658IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005659
5660fi
5661fi
5662ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5663if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005665$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005666else
drhf922ca42015-05-14 15:39:18 +00005667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005668$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005669fi
5670
drh8b727472009-01-19 18:18:40 +00005671 if test "x$ac_ct_OTOOL" = x; then
5672 OTOOL=":"
5673 else
5674 case $cross_compiling:$ac_tool_warned in
5675yes:)
drhf922ca42015-05-14 15:39:18 +00005676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005678ac_tool_warned=yes ;;
5679esac
5680 OTOOL=$ac_ct_OTOOL
5681 fi
mlcreech636a9952008-05-05 22:52:56 +00005682else
5683 OTOOL="$ac_cv_prog_OTOOL"
5684fi
5685
5686 if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5688set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005690$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005691if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005692 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005693else
5694 if test -n "$OTOOL64"; then
5695 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005704 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005706 break 2
5707 fi
5708done
drhf922ca42015-05-14 15:39:18 +00005709 done
drh8b727472009-01-19 18:18:40 +00005710IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005711
5712fi
5713fi
5714OTOOL64=$ac_cv_prog_OTOOL64
5715if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005717$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005718else
drhf922ca42015-05-14 15:39:18 +00005719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005720$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005721fi
5722
drh8b727472009-01-19 18:18:40 +00005723
mlcreech636a9952008-05-05 22:52:56 +00005724fi
5725if test -z "$ac_cv_prog_OTOOL64"; then
5726 ac_ct_OTOOL64=$OTOOL64
5727 # Extract the first word of "otool64", so it can be a program name with args.
5728set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005730$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005731if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005732 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005733else
5734 if test -n "$ac_ct_OTOOL64"; then
5735 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005744 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005746 break 2
5747 fi
5748done
drhf922ca42015-05-14 15:39:18 +00005749 done
drh8b727472009-01-19 18:18:40 +00005750IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005751
5752fi
5753fi
5754ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5755if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005757$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005758else
drhf922ca42015-05-14 15:39:18 +00005759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005760$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005761fi
5762
drh8b727472009-01-19 18:18:40 +00005763 if test "x$ac_ct_OTOOL64" = x; then
5764 OTOOL64=":"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767yes:)
drhf922ca42015-05-14 15:39:18 +00005768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005770ac_tool_warned=yes ;;
5771esac
5772 OTOOL64=$ac_ct_OTOOL64
5773 fi
mlcreech636a9952008-05-05 22:52:56 +00005774else
5775 OTOOL64="$ac_cv_prog_OTOOL64"
5776fi
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
5803
drhf922ca42015-05-14 15:39:18 +00005804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005805$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005806if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005807 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005808else
5809 lt_cv_apple_cc_single_mod=no
5810 if test -z "${LT_MULTI_MODULE}"; then
5811 # By default we will add the -single_module flag. You can override
5812 # by either setting the environment variable LT_MULTI_MODULE
5813 # non-empty at configure time, or by adding -multi_module to the
5814 # link flags.
5815 rm -rf libconftest.dylib*
5816 echo "int foo(void){return 1;}" > conftest.c
5817 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5818-dynamiclib -Wl,-single_module conftest.c" >&5
5819 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5820 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5821 _lt_result=$?
5822 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5823 lt_cv_apple_cc_single_mod=yes
5824 else
5825 cat conftest.err >&5
5826 fi
5827 rm -rf libconftest.dylib*
5828 rm -f conftest.*
5829 fi
5830fi
drhf922ca42015-05-14 15:39:18 +00005831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005832$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005834$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005835if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005836 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005837else
5838 lt_cv_ld_exported_symbols_list=no
5839 save_LDFLAGS=$LDFLAGS
5840 echo "_main" > conftest.sym
5841 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005843/* end confdefs.h. */
5844
5845int
5846main ()
5847{
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
drhf922ca42015-05-14 15:39:18 +00005853if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005854 lt_cv_ld_exported_symbols_list=yes
5855else
drhf922ca42015-05-14 15:39:18 +00005856 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005857fi
drhf922ca42015-05-14 15:39:18 +00005858rm -f core conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005860 LDFLAGS="$save_LDFLAGS"
5861
5862fi
drhf922ca42015-05-14 15:39:18 +00005863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005864$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005865 case $host_os in
5866 rhapsody* | darwin1.[012])
5867 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5868 darwin1.*)
5869 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5870 darwin*) # darwin 5.x on
5871 # if running on 10.5 or later, the deployment target defaults
5872 # to the OS version, if on x86, and 10.4, the deployment
5873 # target defaults to 10.4. Don't you love it?
5874 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5875 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5877 10.[012]*)
5878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5879 10.*)
5880 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5881 esac
5882 ;;
5883 esac
5884 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5885 _lt_dar_single_mod='$single_module'
5886 fi
5887 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5888 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5889 else
5890 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5891 fi
5892 if test "$DSYMUTIL" != ":"; then
5893 _lt_dsymutil='~$DSYMUTIL $lib || :'
5894 else
5895 _lt_dsymutil=
5896 fi
5897 ;;
5898 esac
5899
a.rottmann84e63352003-03-24 09:42:16 +00005900ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005906$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005907# On Suns, sometimes $CPP names a directory.
5908if test -n "$CPP" && test -d "$CPP"; then
5909 CPP=
5910fi
5911if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005912 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005913 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005914else
a.rottmann84e63352003-03-24 09:42:16 +00005915 # Double quotes because CPP needs to be expanded
5916 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5917 do
5918 ac_preproc_ok=false
5919for ac_c_preproc_warn_flag in '' yes
5920do
5921 # Use a header file that comes with gcc, so configuring glibc
5922 # with a fresh cross-compiler works.
5923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5924 # <limits.h> exists even on freestanding compilers.
5925 # On the NeXT, cc -E runs the code through the compiler's parser,
5926 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005928/* end confdefs.h. */
5929#ifdef __STDC__
5930# include <limits.h>
5931#else
5932# include <assert.h>
5933#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005934 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005935_ACEOF
drhf922ca42015-05-14 15:39:18 +00005936if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005937
drhf922ca42015-05-14 15:39:18 +00005938else
a.rottmann84e63352003-03-24 09:42:16 +00005939 # Broken: fails on valid input.
5940continue
5941fi
drhf922ca42015-05-14 15:39:18 +00005942rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005943
drh8b727472009-01-19 18:18:40 +00005944 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005945 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005947/* end confdefs.h. */
5948#include <ac_nonexistent.h>
5949_ACEOF
drhf922ca42015-05-14 15:39:18 +00005950if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005951 # Broken: success on invalid input.
5952continue
5953else
a.rottmann84e63352003-03-24 09:42:16 +00005954 # Passes both tests.
5955ac_preproc_ok=:
5956break
5957fi
drhf922ca42015-05-14 15:39:18 +00005958rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005959
5960done
5961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005962rm -f conftest.i conftest.err conftest.$ac_ext
5963if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005964 break
5965fi
5966
5967 done
5968 ac_cv_prog_CPP=$CPP
5969
5970fi
5971 CPP=$ac_cv_prog_CPP
5972else
5973 ac_cv_prog_CPP=$CPP
5974fi
drhf922ca42015-05-14 15:39:18 +00005975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005976$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005977ac_preproc_ok=false
5978for ac_c_preproc_warn_flag in '' yes
5979do
5980 # Use a header file that comes with gcc, so configuring glibc
5981 # with a fresh cross-compiler works.
5982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 # <limits.h> exists even on freestanding compilers.
5984 # On the NeXT, cc -E runs the code through the compiler's parser,
5985 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005987/* end confdefs.h. */
5988#ifdef __STDC__
5989# include <limits.h>
5990#else
5991# include <assert.h>
5992#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005993 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005994_ACEOF
drhf922ca42015-05-14 15:39:18 +00005995if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005996
drhf922ca42015-05-14 15:39:18 +00005997else
a.rottmann84e63352003-03-24 09:42:16 +00005998 # Broken: fails on valid input.
5999continue
6000fi
drhf922ca42015-05-14 15:39:18 +00006001rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006002
drh8b727472009-01-19 18:18:40 +00006003 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006004 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006006/* end confdefs.h. */
6007#include <ac_nonexistent.h>
6008_ACEOF
drhf922ca42015-05-14 15:39:18 +00006009if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006010 # Broken: success on invalid input.
6011continue
6012else
a.rottmann84e63352003-03-24 09:42:16 +00006013 # Passes both tests.
6014ac_preproc_ok=:
6015break
6016fi
drhf922ca42015-05-14 15:39:18 +00006017rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006018
6019done
6020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006021rm -f conftest.i conftest.err conftest.$ac_ext
6022if $ac_preproc_ok; then :
6023
a.rottmann84e63352003-03-24 09:42:16 +00006024else
drhf922ca42015-05-14 15:39:18 +00006025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6027as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6028See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006029fi
6030
6031ac_ext=c
6032ac_cpp='$CPP $CPPFLAGS'
6033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036
6037
drhf922ca42015-05-14 15:39:18 +00006038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006039$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006040if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006041 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006042else
drhf922ca42015-05-14 15:39:18 +00006043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006044/* end confdefs.h. */
6045#include <stdlib.h>
6046#include <stdarg.h>
6047#include <string.h>
6048#include <float.h>
6049
6050int
6051main ()
6052{
6053
6054 ;
6055 return 0;
6056}
6057_ACEOF
drhf922ca42015-05-14 15:39:18 +00006058if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006059 ac_cv_header_stdc=yes
6060else
drhf922ca42015-05-14 15:39:18 +00006061 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006062fi
drh8b727472009-01-19 18:18:40 +00006063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006064
6065if test $ac_cv_header_stdc = yes; then
6066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006068/* end confdefs.h. */
6069#include <string.h>
6070
6071_ACEOF
6072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006073 $EGREP "memchr" >/dev/null 2>&1; then :
6074
a.rottmann84e63352003-03-24 09:42:16 +00006075else
6076 ac_cv_header_stdc=no
6077fi
6078rm -f conftest*
6079
6080fi
6081
6082if test $ac_cv_header_stdc = yes; then
6083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006085/* end confdefs.h. */
6086#include <stdlib.h>
6087
6088_ACEOF
6089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006090 $EGREP "free" >/dev/null 2>&1; then :
6091
a.rottmann84e63352003-03-24 09:42:16 +00006092else
6093 ac_cv_header_stdc=no
6094fi
6095rm -f conftest*
6096
6097fi
6098
6099if test $ac_cv_header_stdc = yes; then
6100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006101 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006102 :
6103else
drhf922ca42015-05-14 15:39:18 +00006104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006105/* end confdefs.h. */
6106#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006107#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006108#if ((' ' & 0x0FF) == 0x020)
6109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6111#else
6112# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006113 (('a' <= (c) && (c) <= 'i') \
6114 || ('j' <= (c) && (c) <= 'r') \
6115 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6117#endif
6118
6119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6120int
6121main ()
6122{
6123 int i;
6124 for (i = 0; i < 256; i++)
6125 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006126 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006127 return 2;
6128 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006129}
6130_ACEOF
drhf922ca42015-05-14 15:39:18 +00006131if ac_fn_c_try_run "$LINENO"; then :
6132
a.rottmann84e63352003-03-24 09:42:16 +00006133else
drhf922ca42015-05-14 15:39:18 +00006134 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006135fi
drhf922ca42015-05-14 15:39:18 +00006136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6137 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006138fi
6139
a.rottmann84e63352003-03-24 09:42:16 +00006140fi
6141fi
drhf922ca42015-05-14 15:39:18 +00006142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006143$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006144if test $ac_cv_header_stdc = yes; then
6145
drhf922ca42015-05-14 15:39:18 +00006146$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006147
6148fi
6149
6150# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006151for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006152 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006153do :
6154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6156"
6157if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006158 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006160_ACEOF
6161
6162fi
6163
6164done
6165
6166
a.rottmann84e63352003-03-24 09:42:16 +00006167for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006168do :
6169 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6170"
6171if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006172 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006173#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006174_ACEOF
6175
6176fi
6177
drh71eb93e2001-09-28 01:34:43 +00006178done
6179
drh71eb93e2001-09-28 01:34:43 +00006180
drh71eb93e2001-09-28 01:34:43 +00006181
mlcreech636a9952008-05-05 22:52:56 +00006182# Set options
mlcreech94984912008-03-04 19:03:08 +00006183
drh71eb93e2001-09-28 01:34:43 +00006184
drh71eb93e2001-09-28 01:34:43 +00006185
mlcreech636a9952008-05-05 22:52:56 +00006186 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006187
a.rottmann9bc8b932004-02-29 15:18:31 +00006188
mlcreech636a9952008-05-05 22:52:56 +00006189 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006190
a.rottmann9bc8b932004-02-29 15:18:31 +00006191
drh8b727472009-01-19 18:18:40 +00006192 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006193if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006194 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006195 case $enableval in
6196 yes) enable_shared=yes ;;
6197 no) enable_shared=no ;;
6198 *)
6199 enable_shared=no
6200 # Look at the argument we got. We use all the common list separators.
6201 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6202 for pkg in $enableval; do
6203 IFS="$lt_save_ifs"
6204 if test "X$pkg" = "X$p"; then
6205 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006206 fi
mlcreech636a9952008-05-05 22:52:56 +00006207 done
6208 IFS="$lt_save_ifs"
6209 ;;
6210 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006211else
mlcreech636a9952008-05-05 22:52:56 +00006212 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006213fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006214
mlcreech636a9952008-05-05 22:52:56 +00006215
6216
6217
6218
6219
6220
6221
drh8b727472009-01-19 18:18:40 +00006222
6223 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006224if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006225 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006226 case $enableval in
6227 yes) enable_static=yes ;;
6228 no) enable_static=no ;;
6229 *)
6230 enable_static=no
6231 # Look at the argument we got. We use all the common list separators.
6232 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6233 for pkg in $enableval; do
6234 IFS="$lt_save_ifs"
6235 if test "X$pkg" = "X$p"; then
6236 enable_static=yes
6237 fi
6238 done
6239 IFS="$lt_save_ifs"
6240 ;;
6241 esac
6242else
6243 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006244fi
mlcreech636a9952008-05-05 22:52:56 +00006245
6246
6247
6248
6249
6250
6251
6252
6253
drh8b727472009-01-19 18:18:40 +00006254
6255# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006256if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006257 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006258else
6259 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006260fi
6261
mlcreech636a9952008-05-05 22:52:56 +00006262
6263test -z "$pic_mode" && pic_mode=default
6264
6265
6266
6267
6268
6269
6270
drh8b727472009-01-19 18:18:40 +00006271 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006272if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006273 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006274 case $enableval in
6275 yes) enable_fast_install=yes ;;
6276 no) enable_fast_install=no ;;
6277 *)
6278 enable_fast_install=no
6279 # Look at the argument we got. We use all the common list separators.
6280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6281 for pkg in $enableval; do
6282 IFS="$lt_save_ifs"
6283 if test "X$pkg" = "X$p"; then
6284 enable_fast_install=yes
6285 fi
6286 done
6287 IFS="$lt_save_ifs"
6288 ;;
6289 esac
6290else
6291 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006292fi
6293
mlcreech636a9952008-05-05 22:52:56 +00006294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304# This can be used to rebuild libtool when needed
6305LIBTOOL_DEPS="$ltmain"
6306
6307# Always use our own libtool.
6308LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334test -z "$LN_S" && LN_S="ln -s"
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349if test -n "${ZSH_VERSION+set}" ; then
6350 setopt NO_GLOB_SUBST
6351fi
6352
drhf922ca42015-05-14 15:39:18 +00006353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006354$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006355if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006356 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006357else
6358 rm -f .libs 2>/dev/null
6359mkdir .libs 2>/dev/null
6360if test -d .libs; then
6361 lt_cv_objdir=.libs
6362else
6363 # MS-DOS does not allow filenames that begin with a dot.
6364 lt_cv_objdir=_libs
6365fi
6366rmdir .libs 2>/dev/null
6367fi
drhf922ca42015-05-14 15:39:18 +00006368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006369$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006370objdir=$lt_cv_objdir
6371
6372
6373
6374
6375
mlcreech636a9952008-05-05 22:52:56 +00006376cat >>confdefs.h <<_ACEOF
6377#define LT_OBJDIR "$lt_cv_objdir/"
6378_ACEOF
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
a.rottmann9bc8b932004-02-29 15:18:31 +00006396case $host_os in
6397aix3*)
6398 # AIX sometimes has problems with the GCC collect2 program. For some
6399 # reason, if we set the COLLECT_NAMES environment variable, the problems
6400 # vanish in a puff of smoke.
6401 if test "X${COLLECT_NAMES+set}" != Xset; then
6402 COLLECT_NAMES=
6403 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006404 fi
6405 ;;
6406esac
6407
a.rottmann9bc8b932004-02-29 15:18:31 +00006408# Sed substitution that helps us do robust quoting. It backslashifies
6409# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006410sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006411
6412# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006413double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006414
6415# Sed substitution to delay expansion of an escaped shell variable in a
6416# double_quote_subst'ed string.
6417delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6418
mlcreech636a9952008-05-05 22:52:56 +00006419# Sed substitution to delay expansion of an escaped single quote.
6420delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6421
a.rottmann9bc8b932004-02-29 15:18:31 +00006422# Sed substitution to avoid accidental globbing in evaled expressions
6423no_glob_subst='s/\*/\\\*/g'
6424
a.rottmann9bc8b932004-02-29 15:18:31 +00006425# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006426ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006427can_build_shared=yes
6428
vapier7f19c022007-02-17 14:46:31 +00006429# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006430# which needs '.lib').
6431libext=a
mlcreech636a9952008-05-05 22:52:56 +00006432
a.rottmann9bc8b932004-02-29 15:18:31 +00006433with_gnu_ld="$lt_cv_prog_gnu_ld"
6434
a.rottmann84e63352003-03-24 09:42:16 +00006435old_CC="$CC"
6436old_CFLAGS="$CFLAGS"
6437
6438# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006439test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006440test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006441test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006442test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006443test -z "$ac_objext" && ac_objext=o
6444
vapier7f19c022007-02-17 14:46:31 +00006445for cc_temp in $compiler""; do
6446 case $cc_temp in
6447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6449 \-*) ;;
6450 *) break;;
6451 esac
6452done
mlcreech636a9952008-05-05 22:52:56 +00006453cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006454
6455
a.rottmann9bc8b932004-02-29 15:18:31 +00006456# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006457test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006458case $deplibs_check_method in
6459file_magic*)
6460 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006462$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006463if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006464 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006465else
a.rottmann9bc8b932004-02-29 15:18:31 +00006466 case $MAGIC_CMD in
6467[\\/*] | ?:[\\/]*)
6468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6469 ;;
6470*)
6471 lt_save_MAGIC_CMD="$MAGIC_CMD"
6472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6474 for ac_dir in $ac_dummy; do
6475 IFS="$lt_save_ifs"
6476 test -z "$ac_dir" && ac_dir=.
6477 if test -f $ac_dir/${ac_tool_prefix}file; then
6478 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6479 if test -n "$file_magic_test_file"; then
6480 case $deplibs_check_method in
6481 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006482 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6485 $EGREP "$file_magic_regex" > /dev/null; then
6486 :
6487 else
mlcreech636a9952008-05-05 22:52:56 +00006488 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006489
a.rottmann9bc8b932004-02-29 15:18:31 +00006490*** Warning: the command libtool uses to detect shared libraries,
6491*** $file_magic_cmd, produces output that libtool cannot recognize.
6492*** The result is that libtool may fail to recognize shared libraries
6493*** as such. This will affect the creation of libtool libraries that
6494*** depend on shared libraries, but programs linked with such libtool
6495*** libraries will work regardless of this problem. Nevertheless, you
6496*** may want to report the problem to your system manager and/or to
6497*** bug-libtool@gnu.org
6498
mlcreech636a9952008-05-05 22:52:56 +00006499_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006500 fi ;;
6501 esac
6502 fi
6503 break
6504 fi
6505 done
6506 IFS="$lt_save_ifs"
6507 MAGIC_CMD="$lt_save_MAGIC_CMD"
6508 ;;
6509esac
6510fi
6511
6512MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6513if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006515$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006516else
drhf922ca42015-05-14 15:39:18 +00006517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006518$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006519fi
6520
mlcreech636a9952008-05-05 22:52:56 +00006521
6522
6523
6524
a.rottmann9bc8b932004-02-29 15:18:31 +00006525if test -z "$lt_cv_path_MAGIC_CMD"; then
6526 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006528$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006529if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006530 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006531else
6532 case $MAGIC_CMD in
6533[\\/*] | ?:[\\/]*)
6534 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6535 ;;
6536*)
6537 lt_save_MAGIC_CMD="$MAGIC_CMD"
6538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6539 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6540 for ac_dir in $ac_dummy; do
6541 IFS="$lt_save_ifs"
6542 test -z "$ac_dir" && ac_dir=.
6543 if test -f $ac_dir/file; then
6544 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6545 if test -n "$file_magic_test_file"; then
6546 case $deplibs_check_method in
6547 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006548 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6550 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6551 $EGREP "$file_magic_regex" > /dev/null; then
6552 :
6553 else
mlcreech636a9952008-05-05 22:52:56 +00006554 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006555
6556*** Warning: the command libtool uses to detect shared libraries,
6557*** $file_magic_cmd, produces output that libtool cannot recognize.
6558*** The result is that libtool may fail to recognize shared libraries
6559*** as such. This will affect the creation of libtool libraries that
6560*** depend on shared libraries, but programs linked with such libtool
6561*** libraries will work regardless of this problem. Nevertheless, you
6562*** may want to report the problem to your system manager and/or to
6563*** bug-libtool@gnu.org
6564
mlcreech636a9952008-05-05 22:52:56 +00006565_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006566 fi ;;
6567 esac
6568 fi
6569 break
6570 fi
6571 done
6572 IFS="$lt_save_ifs"
6573 MAGIC_CMD="$lt_save_MAGIC_CMD"
6574 ;;
6575esac
6576fi
6577
6578MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6579if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006581$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006582else
drhf922ca42015-05-14 15:39:18 +00006583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006584$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006585fi
6586
mlcreech636a9952008-05-05 22:52:56 +00006587
a.rottmann9bc8b932004-02-29 15:18:31 +00006588 else
6589 MAGIC_CMD=:
6590 fi
6591fi
6592
6593 fi
6594 ;;
6595esac
6596
a.rottmann9bc8b932004-02-29 15:18:31 +00006597# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006598
a.rottmann9bc8b932004-02-29 15:18:31 +00006599lt_save_CC="$CC"
6600ac_ext=c
6601ac_cpp='$CPP $CPPFLAGS'
6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606
6607# Source file extension for C test sources.
6608ac_ext=c
6609
6610# Object file extension for compiled C test sources.
6611objext=o
6612objext=$objext
6613
6614# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006615lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006616
6617# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006618lt_simple_link_test_code='int main(){return(0);}'
6619
6620
6621
6622
6623
a.rottmann9bc8b932004-02-29 15:18:31 +00006624
6625
6626# If no C compiler was specified, use CC.
6627LTCC=${LTCC-"$CC"}
6628
vapier7f19c022007-02-17 14:46:31 +00006629# If no C compiler flags were specified, use CFLAGS.
6630LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6631
a.rottmann9bc8b932004-02-29 15:18:31 +00006632# Allow CC to be a program name with arguments.
6633compiler=$CC
6634
mlcreech636a9952008-05-05 22:52:56 +00006635# Save the default compiler, since it gets overwritten when the other
6636# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6637compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006638
vapier7f19c022007-02-17 14:46:31 +00006639# save warnings/boilerplate of simple test code
6640ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006641echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6643_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006644$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006645
vapier7f19c022007-02-17 14:46:31 +00006646ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006647echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6649_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006650$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006651
6652
mlcreech636a9952008-05-05 22:52:56 +00006653if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006654
6655lt_prog_compiler_no_builtin_flag=
6656
6657if test "$GCC" = yes; then
6658 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6659
drhf922ca42015-05-14 15:39:18 +00006660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006661$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006662if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006663 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006664else
6665 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006666 ac_outfile=conftest.$ac_objext
6667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006668 lt_compiler_flag="-fno-rtti -fno-exceptions"
6669 # Insert the option either (1) after the last *FLAGS variable, or
6670 # (2) before a word containing "conftest.", or (3) at the end.
6671 # Note that $ac_compile itself does not contain backslashes and begins
6672 # with a dollar sign (not a hyphen), so the echo should work correctly.
6673 # The option is referenced via a variable to avoid confusing sed.
6674 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6677 -e 's:$: $lt_compiler_flag:'`
drh4a0a98d2021-11-29 17:55:12 +00006678 (eval echo "\"\$as_me:6678: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006679 (eval "$lt_compile" 2>conftest.err)
6680 ac_status=$?
6681 cat conftest.err >&5
drh4a0a98d2021-11-29 17:55:12 +00006682 echo "$as_me:6682: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006683 if (exit $ac_status) && test -s "$ac_outfile"; then
6684 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006685 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006686 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006689 lt_cv_prog_compiler_rtti_exceptions=yes
6690 fi
6691 fi
mlcreech636a9952008-05-05 22:52:56 +00006692 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006693
6694fi
drhf922ca42015-05-14 15:39:18 +00006695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006696$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006697
6698if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6699 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6700else
6701 :
6702fi
6703
6704fi
6705
mlcreech636a9952008-05-05 22:52:56 +00006706
6707
6708
6709
6710
6711 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006712lt_prog_compiler_pic=
6713lt_prog_compiler_static=
6714
drhf922ca42015-05-14 15:39:18 +00006715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006716$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006717
drh71eb93e2001-09-28 01:34:43 +00006718 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006719 lt_prog_compiler_wl='-Wl,'
6720 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006721
6722 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006723 aix*)
6724 # All AIX code is PIC.
6725 if test "$host_cpu" = ia64; then
6726 # AIX 5 now supports IA64 processor
6727 lt_prog_compiler_static='-Bstatic'
6728 fi
drh71eb93e2001-09-28 01:34:43 +00006729 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006730
drh71eb93e2001-09-28 01:34:43 +00006731 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006732 case $host_cpu in
6733 powerpc)
6734 # see comment about AmigaOS4 .so support
6735 lt_prog_compiler_pic='-fPIC'
6736 ;;
6737 m68k)
6738 # FIXME: we need at least 68020 code to build shared libraries, but
6739 # adding the `-m68020' flag to GCC prevents building anything better,
6740 # like `-m68040'.
6741 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6742 ;;
6743 esac
drh71eb93e2001-09-28 01:34:43 +00006744 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006745
mlcreech636a9952008-05-05 22:52:56 +00006746 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006747 # PIC is the default for these OSes.
6748 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006749
vapier6acb2cf2009-01-28 04:46:28 +00006750 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006751 # This hack is so that the source file can tell whether it is being
6752 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006753 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6754 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 lt_prog_compiler_pic='-DDLL_EXPORT'
6756 ;;
6757
drh71eb93e2001-09-28 01:34:43 +00006758 darwin* | rhapsody*)
6759 # PIC is the default on this platform
6760 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006761 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006762 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006763
a.rottmann9bc8b932004-02-29 15:18:31 +00006764 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006765 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6766 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6767 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006768 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006769 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006770 # +Z the default
6771 ;;
6772 *)
6773 lt_prog_compiler_pic='-fPIC'
6774 ;;
6775 esac
6776 ;;
6777
mlcreech636a9952008-05-05 22:52:56 +00006778 interix[3-9]*)
6779 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6780 # Instead, we relocate shared libraries at runtime.
6781 ;;
6782
6783 msdosdjgpp*)
6784 # Just because we use GCC doesn't mean we suddenly get shared libraries
6785 # on systems that don't support them.
6786 lt_prog_compiler_can_build_shared=no
6787 enable_shared=no
6788 ;;
6789
6790 *nto* | *qnx*)
6791 # QNX uses GNU C++, but need to define -shared option too, otherwise
6792 # it will coredump.
6793 lt_prog_compiler_pic='-fPIC -shared'
6794 ;;
6795
6796 sysv4*MP*)
6797 if test -d /usr/nec; then
6798 lt_prog_compiler_pic=-Kconform_pic
6799 fi
6800 ;;
6801
drh71eb93e2001-09-28 01:34:43 +00006802 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006803 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006804 ;;
6805 esac
6806 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006807 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006808 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006809 aix*)
6810 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006811 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006812 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006813 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006814 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006816 fi
6817 ;;
6818
vapier6acb2cf2009-01-28 04:46:28 +00006819 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006820 # This hack is so that the source file can tell whether it is being
6821 # built for inclusion in a dll (and should export symbols for example).
6822 lt_prog_compiler_pic='-DDLL_EXPORT'
6823 ;;
6824
a.rottmann84e63352003-03-24 09:42:16 +00006825 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006826 lt_prog_compiler_wl='-Wl,'
6827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6828 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006829 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006830 hppa*64*|ia64*)
6831 # +Z the default
6832 ;;
6833 *)
6834 lt_prog_compiler_pic='+Z'
6835 ;;
6836 esac
6837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6838 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006839 ;;
6840
6841 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006842 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006843 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006844 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006845 ;;
6846
mlcreech636a9952008-05-05 22:52:56 +00006847 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006848 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006849 # old Intel for x86_64 which still supported -KPIC.
6850 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006851 lt_prog_compiler_wl='-Wl,'
6852 lt_prog_compiler_pic='-KPIC'
6853 lt_prog_compiler_static='-static'
6854 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006855 # icc used to be incompatible with GCC.
6856 # ICC 10 doesn't accept -KPIC any more.
6857 icc* | ifort*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-fPIC'
6860 lt_prog_compiler_static='-static'
6861 ;;
6862 # Lahey Fortran 8.1.
6863 lf95*)
6864 lt_prog_compiler_wl='-Wl,'
6865 lt_prog_compiler_pic='--shared'
6866 lt_prog_compiler_static='--static'
6867 ;;
vapier7f19c022007-02-17 14:46:31 +00006868 pgcc* | pgf77* | pgf90* | pgf95*)
6869 # Portland Group compilers (*not* the Pentium gcc compiler,
6870 # which looks to be a dead project)
6871 lt_prog_compiler_wl='-Wl,'
6872 lt_prog_compiler_pic='-fpic'
6873 lt_prog_compiler_static='-Bstatic'
6874 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006875 ccc*)
6876 lt_prog_compiler_wl='-Wl,'
6877 # All Alpha code is PIC.
6878 lt_prog_compiler_static='-non_shared'
6879 ;;
mlcreech636a9952008-05-05 22:52:56 +00006880 xl*)
6881 # IBM XL C 8.0/Fortran 10.1 on PPC
6882 lt_prog_compiler_wl='-Wl,'
6883 lt_prog_compiler_pic='-qpic'
6884 lt_prog_compiler_static='-qstaticlink'
6885 ;;
6886 *)
6887 case `$CC -V 2>&1 | sed 5q` in
6888 *Sun\ C*)
6889 # Sun C 5.9
6890 lt_prog_compiler_pic='-KPIC'
6891 lt_prog_compiler_static='-Bstatic'
6892 lt_prog_compiler_wl='-Wl,'
6893 ;;
6894 *Sun\ F*)
6895 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6896 lt_prog_compiler_pic='-KPIC'
6897 lt_prog_compiler_static='-Bstatic'
6898 lt_prog_compiler_wl=''
6899 ;;
6900 esac
6901 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 esac
drh71eb93e2001-09-28 01:34:43 +00006903 ;;
6904
mlcreech636a9952008-05-05 22:52:56 +00006905 newsos6)
6906 lt_prog_compiler_pic='-KPIC'
6907 lt_prog_compiler_static='-Bstatic'
6908 ;;
6909
6910 *nto* | *qnx*)
6911 # QNX uses GNU C++, but need to define -shared option too, otherwise
6912 # it will coredump.
6913 lt_prog_compiler_pic='-fPIC -shared'
6914 ;;
6915
drh71eb93e2001-09-28 01:34:43 +00006916 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006917 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006918 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006919 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006920 ;;
6921
mlcreech636a9952008-05-05 22:52:56 +00006922 rdos*)
6923 lt_prog_compiler_static='-non_shared'
6924 ;;
6925
drh71eb93e2001-09-28 01:34:43 +00006926 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006927 lt_prog_compiler_pic='-KPIC'
6928 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006929 case $cc_basename in
6930 f77* | f90* | f95*)
6931 lt_prog_compiler_wl='-Qoption ld ';;
6932 *)
6933 lt_prog_compiler_wl='-Wl,';;
6934 esac
drh71eb93e2001-09-28 01:34:43 +00006935 ;;
6936
6937 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006938 lt_prog_compiler_wl='-Qoption ld '
6939 lt_prog_compiler_pic='-PIC'
6940 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006941 ;;
6942
vapier7f19c022007-02-17 14:46:31 +00006943 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_pic='-KPIC'
6946 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006947 ;;
6948
6949 sysv4*MP*)
6950 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006951 lt_prog_compiler_pic='-Kconform_pic'
6952 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006953 fi
6954 ;;
6955
vapier7f19c022007-02-17 14:46:31 +00006956 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_pic='-KPIC'
6959 lt_prog_compiler_static='-Bstatic'
6960 ;;
6961
6962 unicos*)
6963 lt_prog_compiler_wl='-Wl,'
6964 lt_prog_compiler_can_build_shared=no
6965 ;;
6966
a.rottmann9bc8b932004-02-29 15:18:31 +00006967 uts4*)
6968 lt_prog_compiler_pic='-pic'
6969 lt_prog_compiler_static='-Bstatic'
6970 ;;
6971
drh71eb93e2001-09-28 01:34:43 +00006972 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006973 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006974 ;;
6975 esac
6976 fi
6977
mlcreech636a9952008-05-05 22:52:56 +00006978case $host_os in
6979 # For platforms which do not support PIC, -DPIC is meaningless:
6980 *djgpp*)
6981 lt_prog_compiler_pic=
6982 ;;
6983 *)
6984 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6985 ;;
6986esac
drhf922ca42015-05-14 15:39:18 +00006987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006988$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006989
6990
6991
6992
6993
drh71eb93e2001-09-28 01:34:43 +00006994
a.rottmann9bc8b932004-02-29 15:18:31 +00006995#
6996# Check to make sure the PIC flag actually works.
6997#
6998if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007000$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007001if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007002 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007003else
mlcreech636a9952008-05-05 22:52:56 +00007004 lt_cv_prog_compiler_pic_works=no
7005 ac_outfile=conftest.$ac_objext
7006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007007 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7008 # Insert the option either (1) after the last *FLAGS variable, or
7009 # (2) before a word containing "conftest.", or (3) at the end.
7010 # Note that $ac_compile itself does not contain backslashes and begins
7011 # with a dollar sign (not a hyphen), so the echo should work correctly.
7012 # The option is referenced via a variable to avoid confusing sed.
7013 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7016 -e 's:$: $lt_compiler_flag:'`
drh4a0a98d2021-11-29 17:55:12 +00007017 (eval echo "\"\$as_me:7017: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007018 (eval "$lt_compile" 2>conftest.err)
7019 ac_status=$?
7020 cat conftest.err >&5
drh4a0a98d2021-11-29 17:55:12 +00007021 echo "$as_me:7021: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007022 if (exit $ac_status) && test -s "$ac_outfile"; then
7023 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007024 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007025 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007028 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007029 fi
7030 fi
mlcreech636a9952008-05-05 22:52:56 +00007031 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007032
a.rottmann9bc8b932004-02-29 15:18:31 +00007033fi
drhf922ca42015-05-14 15:39:18 +00007034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007035$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007036
mlcreech636a9952008-05-05 22:52:56 +00007037if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007038 case $lt_prog_compiler_pic in
7039 "" | " "*) ;;
7040 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7041 esac
drh71eb93e2001-09-28 01:34:43 +00007042else
a.rottmann9bc8b932004-02-29 15:18:31 +00007043 lt_prog_compiler_pic=
7044 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007045fi
7046
a.rottmann84e63352003-03-24 09:42:16 +00007047fi
mlcreech636a9952008-05-05 22:52:56 +00007048
7049
7050
7051
7052
a.rottmann84e63352003-03-24 09:42:16 +00007053
vapier7f19c022007-02-17 14:46:31 +00007054#
7055# Check to make sure the static flag actually works.
7056#
7057wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007059$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007060if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007061 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007062else
mlcreech636a9952008-05-05 22:52:56 +00007063 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007064 save_LDFLAGS="$LDFLAGS"
7065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7068 # The linker can only warn and ignore the option if not recognized
7069 # So say no if there are warnings
7070 if test -s conftest.err; then
7071 # Append any errors to the config.log.
7072 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007073 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7075 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007076 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007077 fi
7078 else
mlcreech636a9952008-05-05 22:52:56 +00007079 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007080 fi
7081 fi
mlcreech636a9952008-05-05 22:52:56 +00007082 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007083 LDFLAGS="$save_LDFLAGS"
7084
7085fi
drhf922ca42015-05-14 15:39:18 +00007086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007087$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007088
mlcreech636a9952008-05-05 22:52:56 +00007089if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007090 :
7091else
7092 lt_prog_compiler_static=
7093fi
7094
7095
mlcreech636a9952008-05-05 22:52:56 +00007096
7097
7098
7099
7100
drhf922ca42015-05-14 15:39:18 +00007101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007102$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007103if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007104 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007105else
a.rottmann9bc8b932004-02-29 15:18:31 +00007106 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007107 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007108 mkdir conftest
7109 cd conftest
7110 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007112
a.rottmann9bc8b932004-02-29 15:18:31 +00007113 lt_compiler_flag="-o out/conftest2.$ac_objext"
7114 # Insert the option either (1) after the last *FLAGS variable, or
7115 # (2) before a word containing "conftest.", or (3) at the end.
7116 # Note that $ac_compile itself does not contain backslashes and begins
7117 # with a dollar sign (not a hyphen), so the echo should work correctly.
7118 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7121 -e 's:$: $lt_compiler_flag:'`
drh4a0a98d2021-11-29 17:55:12 +00007122 (eval echo "\"\$as_me:7122: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 (eval "$lt_compile" 2>out/conftest.err)
7124 ac_status=$?
7125 cat out/conftest.err >&5
drh4a0a98d2021-11-29 17:55:12 +00007126 echo "$as_me:7126: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7128 then
7129 # The compiler can only warn and ignore the option if not recognized
7130 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007131 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007132 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7133 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007134 lt_cv_prog_compiler_c_o=yes
7135 fi
7136 fi
vapier7f19c022007-02-17 14:46:31 +00007137 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007138 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007139 # SGI C++ compiler will create directory out/ii_files/ for
7140 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007141 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7142 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007143 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007144 $RM -r conftest
7145 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007146
7147fi
drhf922ca42015-05-14 15:39:18 +00007148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007149$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007150
7151
7152
7153
7154
7155
drhf922ca42015-05-14 15:39:18 +00007156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007157$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007158if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007159 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007160else
7161 lt_cv_prog_compiler_c_o=no
7162 $RM -r conftest 2>/dev/null
7163 mkdir conftest
7164 cd conftest
7165 mkdir out
7166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7167
7168 lt_compiler_flag="-o out/conftest2.$ac_objext"
7169 # Insert the option either (1) after the last *FLAGS variable, or
7170 # (2) before a word containing "conftest.", or (3) at the end.
7171 # Note that $ac_compile itself does not contain backslashes and begins
7172 # with a dollar sign (not a hyphen), so the echo should work correctly.
7173 lt_compile=`echo "$ac_compile" | $SED \
7174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7176 -e 's:$: $lt_compiler_flag:'`
drh4a0a98d2021-11-29 17:55:12 +00007177 (eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007178 (eval "$lt_compile" 2>out/conftest.err)
7179 ac_status=$?
7180 cat out/conftest.err >&5
drh4a0a98d2021-11-29 17:55:12 +00007181 echo "$as_me:7181: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007182 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7183 then
7184 # The compiler can only warn and ignore the option if not recognized
7185 # So say no if there are warnings
7186 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7189 lt_cv_prog_compiler_c_o=yes
7190 fi
7191 fi
7192 chmod u+w . 2>&5
7193 $RM conftest*
7194 # SGI C++ compiler will create directory out/ii_files/ for
7195 # template instantiation
7196 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7197 $RM out/* && rmdir out
7198 cd ..
7199 $RM -r conftest
7200 $RM conftest*
7201
7202fi
drhf922ca42015-05-14 15:39:18 +00007203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007204$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007205
7206
drh71eb93e2001-09-28 01:34:43 +00007207
a.rottmann84e63352003-03-24 09:42:16 +00007208
drh71eb93e2001-09-28 01:34:43 +00007209hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007210if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007211 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007213$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007214 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007215 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7217 touch conftest.a
7218 ln conftest.a conftest.b 2>&5 || hard_links=no
7219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007221$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007222 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007223 { $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 +00007224$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007225 need_locks=warn
7226 fi
7227else
7228 need_locks=no
7229fi
7230
mlcreech636a9952008-05-05 22:52:56 +00007231
7232
7233
7234
7235
drhf922ca42015-05-14 15:39:18 +00007236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007237$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007238
7239 runpath_var=
7240 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007241 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 archive_cmds=
7243 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007244 compiler_needs_object=no
7245 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007246 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7248 hardcode_automatic=no
7249 hardcode_direct=no
7250 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 hardcode_libdir_flag_spec=
7252 hardcode_libdir_flag_spec_ld=
7253 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 hardcode_minus_L=no
7255 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007256 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007257 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007258 module_cmds=
7259 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007260 old_archive_from_new_cmds=
7261 old_archive_from_expsyms_cmds=
7262 thread_safe_flag_spec=
7263 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007264 # include_expsyms should be a list of space-separated symbols to be *always*
7265 # included in the symbol list
7266 include_expsyms=
7267 # exclude_expsyms can be an extended regexp of symbols to exclude
7268 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7269 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7270 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007271 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7273 # platforms (ab)use it in PIC code, but their linkers get confused if
7274 # the symbol is explicitly referenced. Since portable code cannot
7275 # rely on this symbol name, it's probably fine to never include it in
7276 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007277 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007278 extract_expsyms_cmds=
7279
7280 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007281 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007282 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7283 # When not using gcc, we currently assume that we are using
7284 # Microsoft Visual C++.
7285 if test "$GCC" != yes; then
7286 with_gnu_ld=no
7287 fi
7288 ;;
vapier7f19c022007-02-17 14:46:31 +00007289 interix*)
7290 # we just hope/assume this is gcc and not c89 (= MSVC++)
7291 with_gnu_ld=yes
7292 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007293 openbsd*)
7294 with_gnu_ld=no
7295 ;;
7296 esac
7297
7298 ld_shlibs=yes
7299 if test "$with_gnu_ld" = yes; then
7300 # If archive_cmds runs LD, not CC, wlarc should be empty
7301 wlarc='${wl}'
7302
vapier7f19c022007-02-17 14:46:31 +00007303 # Set some defaults for GNU ld with shared library support. These
7304 # are reset later if shared libraries are not supported. Putting them
7305 # here allows them to be overridden if necessary.
7306 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007308 export_dynamic_flag_spec='${wl}--export-dynamic'
7309 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007310 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7311 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7312 else
7313 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007314 fi
7315 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007316 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007317 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7318 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7319 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7320 *\ 2.11.*) ;; # other 2.11 versions
7321 *) supports_anon_versioning=yes ;;
7322 esac
7323
a.rottmann9bc8b932004-02-29 15:18:31 +00007324 # See if GNU ld supports shared libraries.
7325 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007326 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007327 # On AIX/PPC, the GNU linker is very broken
7328 if test "$host_cpu" != ia64; then
7329 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007330 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007331
7332*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7333*** to be unable to reliably create shared libraries on AIX.
7334*** Therefore, libtool is disabling shared libraries support. If you
7335*** really care for shared libraries, you may want to modify your PATH
7336*** so that a non-GNU linker is found, and then restart.
7337
mlcreech636a9952008-05-05 22:52:56 +00007338_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007339 fi
7340 ;;
7341
7342 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007343 case $host_cpu in
7344 powerpc)
7345 # see comment about AmigaOS4 .so support
7346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7347 archive_expsym_cmds=''
7348 ;;
7349 m68k)
7350 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)'
7351 hardcode_libdir_flag_spec='-L$libdir'
7352 hardcode_minus_L=yes
7353 ;;
7354 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007355 ;;
7356
7357 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007359 allow_undefined_flag=unsupported
7360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7361 # support --undefined. This deserves some investigation. FIXME
7362 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7363 else
7364 ld_shlibs=no
7365 fi
7366 ;;
7367
vapier6acb2cf2009-01-28 04:46:28 +00007368 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007369 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007370 # as there is no search path for DLLs.
7371 hardcode_libdir_flag_spec='-L$libdir'
7372 allow_undefined_flag=unsupported
7373 always_export_symbols=no
7374 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007375 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 +00007376
mlcreech636a9952008-05-05 22:52:56 +00007377 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007378 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 +00007379 # If the export-symbols file already is a .def file (1st line
7380 # is EXPORTS), use it as is; otherwise, prepend...
7381 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7382 cp $export_symbols $output_objdir/$soname.def;
7383 else
7384 echo EXPORTS > $output_objdir/$soname.def;
7385 cat $export_symbols >> $output_objdir/$soname.def;
7386 fi~
vapier7f19c022007-02-17 14:46:31 +00007387 $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 +00007388 else
7389 ld_shlibs=no
7390 fi
7391 ;;
7392
mlcreech636a9952008-05-05 22:52:56 +00007393 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007394 hardcode_direct=no
7395 hardcode_shlibpath_var=no
7396 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7397 export_dynamic_flag_spec='${wl}-E'
7398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7399 # Instead, shared libraries are loaded at an image base (0x10000000 by
7400 # default) and relocated if they conflict, which is a slow very memory
7401 # consuming and fragmenting process. To avoid this, we pick a random,
7402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7403 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7404 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7405 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'
7406 ;;
7407
mlcreech636a9952008-05-05 22:52:56 +00007408 gnu* | linux* | tpf* | k*bsd*-gnu)
7409 tmp_diet=no
7410 if test "$host_os" = linux-dietlibc; then
7411 case $cc_basename in
7412 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7413 esac
7414 fi
7415 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7416 && test "$tmp_diet" = no
7417 then
vapier7f19c022007-02-17 14:46:31 +00007418 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007419 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007420 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007421 pgcc*) # Portland Group C compiler
7422 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 +00007423 tmp_addflag=' $pic_flag'
7424 ;;
7425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007426 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 +00007427 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007429 tmp_addflag=' -i_dynamic' ;;
7430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7431 tmp_addflag=' -i_dynamic -nofor_main' ;;
7432 ifc* | ifort*) # Intel Fortran compiler
7433 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007434 lf95*) # Lahey Fortran 8.1
7435 whole_archive_flag_spec=
7436 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007437 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7438 tmp_sharedflag='-qmkshrobj'
7439 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007440 esac
mlcreech636a9952008-05-05 22:52:56 +00007441 case `$CC -V 2>&1 | sed 5q` in
7442 *Sun\ C*) # Sun C 5.9
7443 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'
7444 compiler_needs_object=yes
7445 tmp_sharedflag='-G' ;;
7446 *Sun\ F*) # Sun Fortran 8.3
7447 tmp_sharedflag='-G' ;;
7448 esac
7449 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007450
mlcreech636a9952008-05-05 22:52:56 +00007451 if test "x$supports_anon_versioning" = xyes; then
7452 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7454 echo "local: *; };" >> $output_objdir/$libname.ver~
7455 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7456 fi
7457
7458 case $cc_basename in
7459 xlf*)
7460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7461 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7462 hardcode_libdir_flag_spec=
7463 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7464 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7465 if test "x$supports_anon_versioning" = xyes; then
7466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7468 echo "local: *; };" >> $output_objdir/$libname.ver~
7469 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7470 fi
7471 ;;
7472 esac
vapier7f19c022007-02-17 14:46:31 +00007473 else
mlcreech636a9952008-05-05 22:52:56 +00007474 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007475 fi
7476 ;;
7477
7478 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7481 wlarc=
7482 else
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7485 fi
7486 ;;
7487
vapier7f19c022007-02-17 14:46:31 +00007488 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007490 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007491 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007492
7493*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7494*** create shared libraries on Solaris systems. Therefore, libtool
7495*** is disabling shared libraries support. We urge you to upgrade GNU
7496*** binutils to release 2.9.1 or newer. Another option is to modify
7497*** your PATH or compiler configuration so that the native linker is
7498*** used, and then restart.
7499
mlcreech636a9952008-05-05 22:52:56 +00007500_LT_EOF
7501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7504 else
7505 ld_shlibs=no
7506 fi
7507 ;;
7508
vapier7f19c022007-02-17 14:46:31 +00007509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7510 case `$LD -v 2>&1` in
7511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7512 ld_shlibs=no
7513 cat <<_LT_EOF 1>&2
7514
7515*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7516*** reliably create shared libraries on SCO systems. Therefore, libtool
7517*** is disabling shared libraries support. We urge you to upgrade GNU
7518*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7519*** your PATH or compiler configuration so that the native linker is
7520*** used, and then restart.
7521
7522_LT_EOF
7523 ;;
7524 *)
mlcreech636a9952008-05-05 22:52:56 +00007525 # For security reasons, it is highly recommended that you always
7526 # use absolute paths for naming shared libraries, and exclude the
7527 # DT_RUNPATH tag from executables and libraries. But doing so
7528 # requires that you compile everything twice, which is a pain.
7529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7532 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 +00007533 else
7534 ld_shlibs=no
7535 fi
7536 ;;
7537 esac
7538 ;;
7539
a.rottmann9bc8b932004-02-29 15:18:31 +00007540 sunos4*)
7541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7542 wlarc=
7543 hardcode_direct=yes
7544 hardcode_shlibpath_var=no
7545 ;;
7546
a.rottmann9bc8b932004-02-29 15:18:31 +00007547 *)
mlcreech636a9952008-05-05 22:52:56 +00007548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7551 else
7552 ld_shlibs=no
7553 fi
7554 ;;
7555 esac
7556
vapier7f19c022007-02-17 14:46:31 +00007557 if test "$ld_shlibs" = no; then
7558 runpath_var=
7559 hardcode_libdir_flag_spec=
7560 export_dynamic_flag_spec=
7561 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007562 fi
7563 else
7564 # PORTME fill in a description of your system's linker (not GNU ld)
7565 case $host_os in
7566 aix3*)
7567 allow_undefined_flag=unsupported
7568 always_export_symbols=yes
7569 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'
7570 # Note: this linker hardcodes the directories in LIBPATH if there
7571 # are no directories specified by -L.
7572 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007574 # Neither direct hardcoding nor static linking is supported with a
7575 # broken collect2.
7576 hardcode_direct=unsupported
7577 fi
7578 ;;
7579
mlcreech636a9952008-05-05 22:52:56 +00007580 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007581 if test "$host_cpu" = ia64; then
7582 # On IA64, the linker does run time linking by default, so we don't
7583 # have to do anything special.
7584 aix_use_runtimelinking=no
7585 exp_sym_flag='-Bexport'
7586 no_entry_flag=""
7587 else
7588 # If we're using GNU nm, then we don't want the "-C" option.
7589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7591 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 +00007592 else
mlcreech636a9952008-05-05 22:52:56 +00007593 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 +00007594 fi
7595 aix_use_runtimelinking=no
7596
7597 # Test if we are trying to use run time linking or normal
7598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7599 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007601 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7603 aix_use_runtimelinking=yes
7604 break
7605 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007606 done
vapier7f19c022007-02-17 14:46:31 +00007607 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007608 esac
7609
7610 exp_sym_flag='-bexport'
7611 no_entry_flag='-bnoentry'
7612 fi
7613
7614 # When large executables or shared objects are built, AIX ld can
7615 # have problems creating the table of contents. If linking a library
7616 # or program results in "error TOC overflow" add -mminimal-toc to
7617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7619
7620 archive_cmds=''
7621 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007622 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007623 hardcode_libdir_separator=':'
7624 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007625 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007626
7627 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007628 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007629 # We only want to do this on AIX 4.2 and lower, the check
7630 # below for broken collect2 doesn't work under 4.3+
7631 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007632 if test -f "$collect2name" &&
7633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007634 then
mlcreech636a9952008-05-05 22:52:56 +00007635 # We have reworked collect2
7636 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 else
mlcreech636a9952008-05-05 22:52:56 +00007638 # We have old collect2
7639 hardcode_direct=unsupported
7640 # It fails to find uninstalled libraries when the uninstalled
7641 # path is not listed in the libpath. Setting hardcode_minus_L
7642 # to unsupported forces relinking
7643 hardcode_minus_L=yes
7644 hardcode_libdir_flag_spec='-L$libdir'
7645 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007646 fi
vapier7f19c022007-02-17 14:46:31 +00007647 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 esac
7649 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007650 if test "$aix_use_runtimelinking" = yes; then
7651 shared_flag="$shared_flag "'${wl}-G'
7652 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007653 else
7654 # not using gcc
7655 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7657 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007658 shared_flag='-G'
7659 else
vapier7f19c022007-02-17 14:46:31 +00007660 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007661 shared_flag='${wl}-G'
7662 else
7663 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007664 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007665 fi
7666 fi
7667
vapier6acb2cf2009-01-28 04:46:28 +00007668 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007669 # It seems that -bexpall does not export symbols beginning with
7670 # underscore (_), so it is better to generate a list of symbols to export.
7671 always_export_symbols=yes
7672 if test "$aix_use_runtimelinking" = yes; then
7673 # Warning - without using the other runtime loading flags (-brtl),
7674 # -berok will link without error, but may produce a broken library.
7675 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007676 # Determine the default libpath from the value encoded in an
7677 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007679/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007680
a.rottmann84e63352003-03-24 09:42:16 +00007681int
7682main ()
7683{
a.rottmann9bc8b932004-02-29 15:18:31 +00007684
a.rottmann84e63352003-03-24 09:42:16 +00007685 ;
7686 return 0;
7687}
7688_ACEOF
drhf922ca42015-05-14 15:39:18 +00007689if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007690
mlcreech636a9952008-05-05 22:52:56 +00007691lt_aix_libpath_sed='
7692 /Import File Strings/,/^$/ {
7693 /^0/ {
7694 s/^0 *\(.*\)$/\1/
7695 p
7696 }
7697 }'
7698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007699# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007700if test -z "$aix_libpath"; then
7701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7702fi
a.rottmann84e63352003-03-24 09:42:16 +00007703fi
drhf922ca42015-05-14 15:39:18 +00007704rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007706if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007707
mlcreech636a9952008-05-05 22:52:56 +00007708 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7709 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"
7710 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007711 if test "$host_cpu" = ia64; then
7712 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7713 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007714 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 +00007715 else
mlcreech636a9952008-05-05 22:52:56 +00007716 # Determine the default libpath from the value encoded in an
7717 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007719/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007720
a.rottmann9bc8b932004-02-29 15:18:31 +00007721int
7722main ()
7723{
a.rottmann84e63352003-03-24 09:42:16 +00007724
a.rottmann9bc8b932004-02-29 15:18:31 +00007725 ;
7726 return 0;
7727}
7728_ACEOF
drhf922ca42015-05-14 15:39:18 +00007729if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007730
mlcreech636a9952008-05-05 22:52:56 +00007731lt_aix_libpath_sed='
7732 /Import File Strings/,/^$/ {
7733 /^0/ {
7734 s/^0 *\(.*\)$/\1/
7735 p
7736 }
7737 }'
7738aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007739# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007740if test -z "$aix_libpath"; then
7741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7742fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007743fi
drhf922ca42015-05-14 15:39:18 +00007744rm -f core conftest.err conftest.$ac_objext \
7745 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007747
a.rottmann9bc8b932004-02-29 15:18:31 +00007748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7749 # Warning - without using the other run time loading flags,
7750 # -berok will link without error, but may produce a broken library.
7751 no_undefined_flag=' ${wl}-bernotok'
7752 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007753 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007754 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007755 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007756 # This is similar to how AIX traditionally builds its shared libraries.
7757 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 +00007758 fi
7759 fi
a.rottmann84e63352003-03-24 09:42:16 +00007760 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007761
7762 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007763 case $host_cpu in
7764 powerpc)
7765 # see comment about AmigaOS4 .so support
7766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7767 archive_expsym_cmds=''
7768 ;;
7769 m68k)
7770 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)'
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 hardcode_minus_L=yes
7773 ;;
7774 esac
a.rottmann84e63352003-03-24 09:42:16 +00007775 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007776
vapier7f19c022007-02-17 14:46:31 +00007777 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007778 export_dynamic_flag_spec=-rdynamic
7779 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007780
vapier6acb2cf2009-01-28 04:46:28 +00007781 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007782 # When not using gcc, we currently assume that we are using
7783 # Microsoft Visual C++.
7784 # hardcode_libdir_flag_spec is actually meaningless, as there is
7785 # no search path for DLLs.
7786 hardcode_libdir_flag_spec=' '
7787 allow_undefined_flag=unsupported
7788 # Tell ltmain to make .lib files, not .a files.
7789 libext=lib
7790 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007791 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007793 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 +00007794 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007795 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007796 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007797 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007798 fix_srcfile_path='`cygpath -w "$srcfile"`'
7799 enable_shared_with_static_runtimes=yes
7800 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007801
a.rottmann9bc8b932004-02-29 15:18:31 +00007802 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007803
7804
7805 archive_cmds_need_lc=no
7806 hardcode_direct=no
7807 hardcode_automatic=yes
7808 hardcode_shlibpath_var=unsupported
7809 whole_archive_flag_spec=''
7810 link_all_deplibs=yes
7811 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007812 case $cc_basename in
7813 ifort*) _lt_dar_can_shared=yes ;;
7814 *) _lt_dar_can_shared=$GCC ;;
7815 esac
7816 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007817 output_verbose_link_cmd=echo
7818 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7819 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7820 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}"
7821 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}"
7822
7823 else
7824 ld_shlibs=no
7825 fi
7826
a.rottmann9bc8b932004-02-29 15:18:31 +00007827 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007828
a.rottmann9bc8b932004-02-29 15:18:31 +00007829 dgux*)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_libdir_flag_spec='-L$libdir'
7832 hardcode_shlibpath_var=no
7833 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007834
a.rottmann9bc8b932004-02-29 15:18:31 +00007835 freebsd1*)
7836 ld_shlibs=no
7837 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007838
a.rottmann9bc8b932004-02-29 15:18:31 +00007839 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7840 # support. Future versions do this automatically, but an explicit c++rt0.o
7841 # does not break anything, and helps significantly (at the cost of a little
7842 # extra space).
7843 freebsd2.2*)
7844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7845 hardcode_libdir_flag_spec='-R$libdir'
7846 hardcode_direct=yes
7847 hardcode_shlibpath_var=no
7848 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007849
a.rottmann9bc8b932004-02-29 15:18:31 +00007850 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7851 freebsd2*)
7852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7853 hardcode_direct=yes
7854 hardcode_minus_L=yes
7855 hardcode_shlibpath_var=no
7856 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007857
a.rottmann9bc8b932004-02-29 15:18:31 +00007858 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007859 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007860 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7861 hardcode_libdir_flag_spec='-R$libdir'
7862 hardcode_direct=yes
7863 hardcode_shlibpath_var=no
7864 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007865
a.rottmann9bc8b932004-02-29 15:18:31 +00007866 hpux9*)
7867 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007868 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 +00007869 else
mlcreech636a9952008-05-05 22:52:56 +00007870 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 +00007871 fi
7872 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7873 hardcode_libdir_separator=:
7874 hardcode_direct=yes
7875
7876 # hardcode_minus_L: Not really in the search PATH,
7877 # but as the default location of the library.
7878 hardcode_minus_L=yes
7879 export_dynamic_flag_spec='${wl}-E'
7880 ;;
7881
vapier7f19c022007-02-17 14:46:31 +00007882 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007884 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7885 else
7886 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7887 fi
7888 if test "$with_gnu_ld" = no; then
7889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007890 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007891 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007892 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007893 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007894 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007895 # hardcode_minus_L: Not really in the search PATH,
7896 # but as the default location of the library.
7897 hardcode_minus_L=yes
7898 fi
7899 ;;
7900
7901 hpux11*)
7902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7903 case $host_cpu in
7904 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007905 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7906 ;;
vapier7f19c022007-02-17 14:46:31 +00007907 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007908 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007909 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007910 *)
7911 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7912 ;;
7913 esac
7914 else
vapier7f19c022007-02-17 14:46:31 +00007915 case $host_cpu in
7916 hppa*64*)
7917 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7918 ;;
7919 ia64*)
7920 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007921 ;;
7922 *)
vapier7f19c022007-02-17 14:46:31 +00007923 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 +00007924 ;;
7925 esac
7926 fi
7927 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007928 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7929 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007930
vapier7f19c022007-02-17 14:46:31 +00007931 case $host_cpu in
7932 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007933 hardcode_direct=no
7934 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007935 ;;
7936 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007937 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007938 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007939 export_dynamic_flag_spec='${wl}-E'
7940
7941 # hardcode_minus_L: Not really in the search PATH,
7942 # but as the default location of the library.
7943 hardcode_minus_L=yes
7944 ;;
7945 esac
7946 fi
7947 ;;
7948
7949 irix5* | irix6* | nonstopux*)
7950 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007951 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'
7952 # Try to use the -exported_symbol ld option, if it does not
7953 # work, assume that -exports_file does not work either and
7954 # implicitly export all symbols.
7955 save_LDFLAGS="$LDFLAGS"
7956 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007959int foo(void) {}
7960_ACEOF
drhf922ca42015-05-14 15:39:18 +00007961if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007962 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'
7963
mlcreech636a9952008-05-05 22:52:56 +00007964fi
drhf922ca42015-05-14 15:39:18 +00007965rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007967 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007968 else
mlcreech636a9952008-05-05 22:52:56 +00007969 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'
7970 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 +00007971 fi
mlcreech636a9952008-05-05 22:52:56 +00007972 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7974 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007975 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007976 link_all_deplibs=yes
7977 ;;
7978
vapier7f19c022007-02-17 14:46:31 +00007979 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7982 else
7983 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7984 fi
7985 hardcode_libdir_flag_spec='-R$libdir'
7986 hardcode_direct=yes
7987 hardcode_shlibpath_var=no
7988 ;;
7989
7990 newsos6)
7991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7992 hardcode_direct=yes
7993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7994 hardcode_libdir_separator=:
7995 hardcode_shlibpath_var=no
7996 ;;
7997
mlcreech636a9952008-05-05 22:52:56 +00007998 *nto* | *qnx*)
7999 ;;
8000
a.rottmann9bc8b932004-02-29 15:18:31 +00008001 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008002 if test -f /usr/libexec/ld.so; then
8003 hardcode_direct=yes
8004 hardcode_shlibpath_var=no
8005 hardcode_direct_absolute=yes
8006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8007 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8008 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8010 export_dynamic_flag_spec='${wl}-E'
8011 else
8012 case $host_os in
8013 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8015 hardcode_libdir_flag_spec='-R$libdir'
8016 ;;
8017 *)
8018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8019 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8020 ;;
8021 esac
8022 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008023 else
mlcreech636a9952008-05-05 22:52:56 +00008024 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008025 fi
8026 ;;
8027
8028 os2*)
8029 hardcode_libdir_flag_spec='-L$libdir'
8030 hardcode_minus_L=yes
8031 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008032 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'
8033 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008034 ;;
8035
8036 osf3*)
8037 if test "$GCC" = yes; then
8038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008039 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 +00008040 else
8041 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008042 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 +00008043 fi
mlcreech636a9952008-05-05 22:52:56 +00008044 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8046 hardcode_libdir_separator=:
8047 ;;
8048
8049 osf4* | osf5*) # as osf3* with the addition of -msym flag
8050 if test "$GCC" = yes; then
8051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008052 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 +00008053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054 else
8055 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008056 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'
8057 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~
8058 $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 +00008059
8060 # Both c and cxx compiler support -rpath directly
8061 hardcode_libdir_flag_spec='-rpath $libdir'
8062 fi
mlcreech636a9952008-05-05 22:52:56 +00008063 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008064 hardcode_libdir_separator=:
8065 ;;
8066
a.rottmann9bc8b932004-02-29 15:18:31 +00008067 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008068 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008069 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008070 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008071 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8073 $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 +00008074 else
mlcreech636a9952008-05-05 22:52:56 +00008075 case `$CC -V 2>&1` in
8076 *"Compilers 5.0"*)
8077 wlarc=''
8078 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8081 ;;
8082 *)
8083 wlarc='${wl}'
8084 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8086 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8087 ;;
8088 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008089 fi
8090 hardcode_libdir_flag_spec='-R$libdir'
8091 hardcode_shlibpath_var=no
8092 case $host_os in
8093 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008094 *)
mlcreech636a9952008-05-05 22:52:56 +00008095 # The compiler driver will combine and reorder linker options,
8096 # but understands `-z linker_flag'. GCC discards it without `$wl',
8097 # but is careful enough not to reorder.
8098 # Supported since Solaris 2.6 (maybe 2.5.1?)
8099 if test "$GCC" = yes; then
8100 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8101 else
8102 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8103 fi
8104 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008105 esac
8106 link_all_deplibs=yes
8107 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008108
a.rottmann9bc8b932004-02-29 15:18:31 +00008109 sunos4*)
8110 if test "x$host_vendor" = xsequent; then
8111 # Use $CC to link under sequent, because it throws in some extra .o
8112 # files that make .init and .fini sections work.
8113 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8114 else
8115 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8116 fi
8117 hardcode_libdir_flag_spec='-L$libdir'
8118 hardcode_direct=yes
8119 hardcode_minus_L=yes
8120 hardcode_shlibpath_var=no
8121 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008122
a.rottmann9bc8b932004-02-29 15:18:31 +00008123 sysv4)
8124 case $host_vendor in
8125 sni)
8126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8127 hardcode_direct=yes # is this really true???
8128 ;;
8129 siemens)
8130 ## LD is ld it makes a PLAMLIB
8131 ## CC just makes a GrossModule.
8132 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8133 reload_cmds='$CC -r -o $output$reload_objs'
8134 hardcode_direct=no
8135 ;;
8136 motorola)
8137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8139 ;;
8140 esac
8141 runpath_var='LD_RUN_PATH'
8142 hardcode_shlibpath_var=no
8143 ;;
8144
8145 sysv4.3*)
8146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_shlibpath_var=no
8148 export_dynamic_flag_spec='-Bexport'
8149 ;;
8150
8151 sysv4*MP*)
8152 if test -d /usr/nec; then
8153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154 hardcode_shlibpath_var=no
8155 runpath_var=LD_RUN_PATH
8156 hardcode_runpath_var=yes
8157 ld_shlibs=yes
8158 fi
8159 ;;
8160
mlcreech636a9952008-05-05 22:52:56 +00008161 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008162 no_undefined_flag='${wl}-z,text'
8163 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008164 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008165 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008166
a.rottmann9bc8b932004-02-29 15:18:31 +00008167 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008168 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8169 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 +00008170 else
vapier7f19c022007-02-17 14:46:31 +00008171 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8172 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 +00008173 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008174 ;;
8175
vapier7f19c022007-02-17 14:46:31 +00008176 sysv5* | sco3.2v5* | sco5v6*)
8177 # Note: We can NOT use -z defs as we might desire, because we do not
8178 # link with -lc, and that would cause any symbols used from libc to
8179 # always be unresolved, which means just about no library would
8180 # ever link correctly. If we're not using GNU ld we use -z text
8181 # though, which does catch some bad symbols but isn't as heavy-handed
8182 # as -z defs.
8183 no_undefined_flag='${wl}-z,text'
8184 allow_undefined_flag='${wl}-z,nodefs'
8185 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008186 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008187 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008188 hardcode_libdir_separator=':'
8189 link_all_deplibs=yes
8190 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008191 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008192
8193 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008194 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8195 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008196 else
mlcreech636a9952008-05-05 22:52:56 +00008197 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8198 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008199 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008200 ;;
8201
8202 uts4*)
8203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8204 hardcode_libdir_flag_spec='-L$libdir'
8205 hardcode_shlibpath_var=no
8206 ;;
8207
8208 *)
8209 ld_shlibs=no
8210 ;;
8211 esac
mlcreech636a9952008-05-05 22:52:56 +00008212
8213 if test x$host_vendor = xsni; then
8214 case $host in
8215 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8216 export_dynamic_flag_spec='${wl}-Blargedynsym'
8217 ;;
8218 esac
8219 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008220 fi
8221
drhf922ca42015-05-14 15:39:18 +00008222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008223$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008224test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008225
mlcreech636a9952008-05-05 22:52:56 +00008226with_gnu_ld=$with_gnu_ld
8227
8228
danielk197733a14782008-08-04 14:50:05 +00008229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
a.rottmann9bc8b932004-02-29 15:18:31 +00008242#
8243# Do we need to explicitly link libc?
8244#
8245case "x$archive_cmds_need_lc" in
8246x|xyes)
8247 # Assume -lc should be added
8248 archive_cmds_need_lc=yes
8249
8250 if test "$enable_shared" = yes && test "$GCC" = yes; then
8251 case $archive_cmds in
8252 *'~'*)
8253 # FIXME: we may have to deal with multi-command sequences.
8254 ;;
8255 '$CC '*)
8256 # Test whether the compiler implicitly links with -lc since on some
8257 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8258 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008260$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008261 $RM conftest*
8262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008263
drhf922ca42015-05-14 15:39:18 +00008264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008265 (eval $ac_compile) 2>&5
8266 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008269 soname=conftest
8270 lib=conftest
8271 libobjs=conftest.$ac_objext
8272 deplibs=
8273 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008274 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008275 compiler_flags=-v
8276 linker_flags=-v
8277 verstring=
8278 output_objdir=.
8279 libname=conftest
8280 lt_save_allow_undefined_flag=$allow_undefined_flag
8281 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008282 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 +00008283 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008284 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8286 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008287 then
8288 archive_cmds_need_lc=no
8289 else
8290 archive_cmds_need_lc=yes
8291 fi
8292 allow_undefined_flag=$lt_save_allow_undefined_flag
8293 else
8294 cat conftest.err 1>&5
8295 fi
mlcreech636a9952008-05-05 22:52:56 +00008296 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008298$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008299 ;;
8300 esac
drh71eb93e2001-09-28 01:34:43 +00008301 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008302 ;;
8303esac
drh71eb93e2001-09-28 01:34:43 +00008304
mlcreech636a9952008-05-05 22:52:56 +00008305
danielk197733a14782008-08-04 14:50:05 +00008306
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
8460
drhf922ca42015-05-14 15:39:18 +00008461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008462$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008463
8464if test "$GCC" = yes; then
8465 case $host_os in
8466 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8467 *) lt_awk_arg="/^libraries:/" ;;
8468 esac
8469 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8470 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8471 # if the path contains ";" then we assume it to be the separator
8472 # otherwise default to the standard path separator (i.e. ":") - it is
8473 # assumed that no part of a normal pathname contains ";" but that should
8474 # okay in the real world where ";" in dirpaths is itself problematic.
8475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8476 else
8477 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8478 fi
8479 # Ok, now we have the path, separated by spaces, we can step through it
8480 # and add multilib dir if necessary.
8481 lt_tmp_lt_search_path_spec=
8482 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8483 for lt_sys_path in $lt_search_path_spec; do
8484 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8486 else
8487 test -d "$lt_sys_path" && \
8488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8489 fi
8490 done
8491 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8492BEGIN {RS=" "; FS="/|\n";} {
8493 lt_foo="";
8494 lt_count=0;
8495 for (lt_i = NF; lt_i > 0; lt_i--) {
8496 if ($lt_i != "" && $lt_i != ".") {
8497 if ($lt_i == "..") {
8498 lt_count++;
8499 } else {
8500 if (lt_count == 0) {
8501 lt_foo="/" $lt_i lt_foo;
8502 } else {
8503 lt_count--;
8504 }
8505 }
8506 }
8507 }
8508 if (lt_foo != "") { lt_freq[lt_foo]++; }
8509 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8510}'`
8511 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8512else
8513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8514fi
drh71eb93e2001-09-28 01:34:43 +00008515library_names_spec=
8516libname_spec='lib$name'
8517soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008518shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008519postinstall_cmds=
8520postuninstall_cmds=
8521finish_cmds=
8522finish_eval=
8523shlibpath_var=
8524shlibpath_overrides_runpath=unknown
8525version_type=none
8526dynamic_linker="$host_os ld.so"
8527sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008528need_lib_prefix=unknown
8529hardcode_into_libs=no
8530
8531# when you set need_version to no, make sure it does not cause -set_version
8532# flags to be left without arguments
8533need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008534
8535case $host_os in
8536aix3*)
8537 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008539 shlibpath_var=LIBPATH
8540
a.rottmann9bc8b932004-02-29 15:18:31 +00008541 # AIX 3 has no versioning support, so we append a major version to the name.
8542 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008543 ;;
8544
mlcreech636a9952008-05-05 22:52:56 +00008545aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008546 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008547 need_lib_prefix=no
8548 need_version=no
8549 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008550 if test "$host_cpu" = ia64; then
8551 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008553 shlibpath_var=LD_LIBRARY_PATH
8554 else
8555 # With GCC up to 2.95.x, collect2 would create an import file
8556 # for dependence libraries. The import file would start with
8557 # the line `#! .'. This would cause the generated library to
8558 # depend on `.', always an invalid library. This was fixed in
8559 # development snapshots of GCC prior to 3.0.
8560 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008561 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8563 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008564 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008565 :
8566 else
8567 can_build_shared=no
8568 fi
8569 ;;
drh71eb93e2001-09-28 01:34:43 +00008570 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8572 # soname into executable. Probably we can add versioning support to
8573 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008574 if test "$aix_use_runtimelinking" = yes; then
8575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8576 # instead of lib<name>.a to let people know that these are not
8577 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008579 else
8580 # We preserve .a as extension for shared libraries through AIX4.2
8581 # and later when we are not doing run time linking.
8582 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008583 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008584 fi
8585 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008586 fi
8587 ;;
8588
8589amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008590 case $host_cpu in
8591 powerpc)
8592 # Since July 2007 AmigaOS4 officially supports .so libraries.
8593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595 ;;
8596 m68k)
8597 library_names_spec='$libname.ixlibrary $libname.a'
8598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8599 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'
8600 ;;
8601 esac
drh71eb93e2001-09-28 01:34:43 +00008602 ;;
8603
8604beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008605 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008606 dynamic_linker="$host_os ld.so"
8607 shlibpath_var=LIBRARY_PATH
8608 ;;
8609
vapier7f19c022007-02-17 14:46:31 +00008610bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008611 version_type=linux
8612 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8616 shlibpath_var=LD_LIBRARY_PATH
8617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8619 # the default ld.so.conf also contains /usr/contrib/lib and
8620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8621 # libtool to hard-code these into programs
8622 ;;
8623
vapier6acb2cf2009-01-28 04:46:28 +00008624cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008625 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008626 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008627 need_version=no
8628 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008629
drh71eb93e2001-09-28 01:34:43 +00008630 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008631 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008632 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8634 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008636 dldir=$destdir/`dirname \$dlpath`~
8637 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008638 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008639 chmod a+x \$dldir/$dlname~
8640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8642 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008644 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008645 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008646 shlibpath_overrides_runpath=yes
8647
8648 case $host_os in
8649 cygwin*)
8650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8651 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8652 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8653 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008654 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008655 # MinGW DLLs use traditional 'lib' prefix
8656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008657 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8658 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008659 # It is most probably a Windows format PATH printed by
8660 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8661 # path with ; separators, and with drive letters. We can handle the
8662 # drive letters (cygwin fileutils understands them), so leave them,
8663 # especially as we might pass files found there to a mingw objdump,
8664 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008666 else
mlcreech636a9952008-05-05 22:52:56 +00008667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008668 fi
8669 ;;
8670 pw32*)
8671 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008672 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 +00008673 ;;
8674 esac
drh71eb93e2001-09-28 01:34:43 +00008675 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008676
drh71eb93e2001-09-28 01:34:43 +00008677 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008678 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008679 ;;
8680 esac
8681 dynamic_linker='Win32 ld.exe'
8682 # FIXME: first we should search . and the directory the executable is in
8683 shlibpath_var=PATH
8684 ;;
8685
8686darwin* | rhapsody*)
8687 dynamic_linker="$host_os dyld"
8688 version_type=darwin
8689 need_lib_prefix=no
8690 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008691 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008692 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008693 shlibpath_overrides_runpath=yes
8694 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008695 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008696
8697 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8699 ;;
8700
8701dgux*)
8702 version_type=linux
8703 need_lib_prefix=no
8704 need_version=no
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8706 soname_spec='${libname}${release}${shared_ext}$major'
8707 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008708 ;;
8709
a.rottmann84e63352003-03-24 09:42:16 +00008710freebsd1*)
8711 dynamic_linker=no
8712 ;;
8713
vapier7f19c022007-02-17 14:46:31 +00008714freebsd* | dragonfly*)
8715 # DragonFly does not have aout. When/if they implement a new
8716 # versioning mechanism, adjust this.
8717 if test -x /usr/bin/objformat; then
8718 objformat=`/usr/bin/objformat`
8719 else
8720 case $host_os in
8721 freebsd[123]*) objformat=aout ;;
8722 *) objformat=elf ;;
8723 esac
8724 fi
8725 # Handle Gentoo/FreeBSD as it was Linux
8726 case $host_vendor in
8727 gentoo)
8728 version_type=linux ;;
8729 *)
8730 version_type=freebsd-$objformat ;;
8731 esac
8732
drh71eb93e2001-09-28 01:34:43 +00008733 case $version_type in
8734 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008736 need_version=no
8737 need_lib_prefix=no
8738 ;;
8739 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008741 need_version=yes
8742 ;;
vapier7f19c022007-02-17 14:46:31 +00008743 linux)
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8745 soname_spec='${libname}${release}${shared_ext}$major'
8746 need_lib_prefix=no
8747 need_version=no
8748 ;;
drh71eb93e2001-09-28 01:34:43 +00008749 esac
8750 shlibpath_var=LD_LIBRARY_PATH
8751 case $host_os in
8752 freebsd2*)
8753 shlibpath_overrides_runpath=yes
8754 ;;
vapier7f19c022007-02-17 14:46:31 +00008755 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008756 shlibpath_overrides_runpath=yes
8757 hardcode_into_libs=yes
8758 ;;
vapier7f19c022007-02-17 14:46:31 +00008759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008761 shlibpath_overrides_runpath=no
8762 hardcode_into_libs=yes
8763 ;;
mlcreech636a9952008-05-05 22:52:56 +00008764 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008765 shlibpath_overrides_runpath=yes
8766 hardcode_into_libs=yes
8767 ;;
drh71eb93e2001-09-28 01:34:43 +00008768 esac
8769 ;;
8770
8771gnu*)
8772 version_type=linux
8773 need_lib_prefix=no
8774 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8776 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008777 shlibpath_var=LD_LIBRARY_PATH
8778 hardcode_into_libs=yes
8779 ;;
8780
8781hpux9* | hpux10* | hpux11*)
8782 # Give a soname corresponding to the major version so that dld.sl refuses to
8783 # link against other versions.
8784 version_type=sunos
8785 need_lib_prefix=no
8786 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008787 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008788 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008789 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008790 hardcode_into_libs=yes
8791 dynamic_linker="$host_os dld.so"
8792 shlibpath_var=LD_LIBRARY_PATH
8793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 if test "X$HPUX_IA64_MODE" = X32; then
8797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8798 else
8799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8800 fi
8801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8802 ;;
mlcreech636a9952008-05-05 22:52:56 +00008803 hppa*64*)
8804 shrext_cmds='.sl'
8805 hardcode_into_libs=yes
8806 dynamic_linker="$host_os dld.sl"
8807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8813 ;;
8814 *)
vapier7f19c022007-02-17 14:46:31 +00008815 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008816 dynamic_linker="$host_os dld.sl"
8817 shlibpath_var=SHLIB_PATH
8818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 ;;
8822 esac
drh71eb93e2001-09-28 01:34:43 +00008823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8824 postinstall_cmds='chmod 555 $lib'
8825 ;;
8826
mlcreech636a9952008-05-05 22:52:56 +00008827interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008828 version_type=linux
8829 need_lib_prefix=no
8830 need_version=no
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8834 shlibpath_var=LD_LIBRARY_PATH
8835 shlibpath_overrides_runpath=no
8836 hardcode_into_libs=yes
8837 ;;
8838
a.rottmann84e63352003-03-24 09:42:16 +00008839irix5* | irix6* | nonstopux*)
8840 case $host_os in
8841 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008842 *)
8843 if test "$lt_cv_prog_gnu_ld" = yes; then
8844 version_type=linux
8845 else
8846 version_type=irix
8847 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008848 esac
drh71eb93e2001-09-28 01:34:43 +00008849 need_lib_prefix=no
8850 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008851 soname_spec='${libname}${release}${shared_ext}$major'
8852 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 +00008853 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008854 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008855 libsuff= shlibsuff=
8856 ;;
8857 *)
8858 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8860 libsuff= shlibsuff= libmagic=32-bit;;
8861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8862 libsuff=32 shlibsuff=N32 libmagic=N32;;
8863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8864 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008865 *) libsuff= shlibsuff= libmagic=never-match;;
8866 esac
8867 ;;
8868 esac
8869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8870 shlibpath_overrides_runpath=no
8871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008873 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008874 ;;
8875
8876# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008877linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008878 dynamic_linker=no
8879 ;;
8880
8881# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008882linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008883 version_type=linux
8884 need_lib_prefix=no
8885 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008891 # Some binutils ld are patched to set DT_RUNPATH
8892 save_LDFLAGS=$LDFLAGS
8893 save_libdir=$libdir
8894 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8895 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008897/* end confdefs.h. */
8898
8899int
8900main ()
8901{
8902
8903 ;
8904 return 0;
8905}
8906_ACEOF
drhf922ca42015-05-14 15:39:18 +00008907if ac_fn_c_try_link "$LINENO"; then :
8908 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008909 shlibpath_overrides_runpath=yes
8910fi
mlcreech636a9952008-05-05 22:52:56 +00008911fi
drhf922ca42015-05-14 15:39:18 +00008912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008914 LDFLAGS=$save_LDFLAGS
8915 libdir=$save_libdir
8916
drh71eb93e2001-09-28 01:34:43 +00008917 # This implies no fast_install, which is unacceptable.
8918 # Some rework will be needed to allow for fast_install
8919 # before this can be enabled.
8920 hardcode_into_libs=yes
8921
a.rottmann9bc8b932004-02-29 15:18:31 +00008922 # Append ld.so.conf contents to the search path
8923 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008924 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 +00008925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008926 fi
8927
drh71eb93e2001-09-28 01:34:43 +00008928 # We used to test for /lib/ld.so.1 and disable shared libraries on
8929 # powerpc, because MkLinux only supported shared libraries with the
8930 # GNU dynamic linker. Since this was broken with cross compilers,
8931 # most powerpc-linux boxes support dynamic linking these days and
8932 # people can always --disable-shared, the test was removed, and we
8933 # assume the GNU/Linux dynamic linker is in use.
8934 dynamic_linker='GNU/Linux ld.so'
8935 ;;
8936
8937netbsd*)
8938 version_type=sunos
8939 need_lib_prefix=no
8940 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8944 dynamic_linker='NetBSD (a.out) ld.so'
8945 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008948 dynamic_linker='NetBSD ld.elf_so'
8949 fi
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes
8952 hardcode_into_libs=yes
8953 ;;
8954
8955newsos6)
8956 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=yes
8960 ;;
8961
mlcreech636a9952008-05-05 22:52:56 +00008962*nto* | *qnx*)
8963 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008964 need_lib_prefix=no
8965 need_version=no
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008968 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008969 shlibpath_overrides_runpath=no
8970 hardcode_into_libs=yes
8971 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008972 ;;
8973
drh71eb93e2001-09-28 01:34:43 +00008974openbsd*)
8975 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008976 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008977 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008978 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8979 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008980 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8981 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008982 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008986 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 +00008987 case $host_os in
8988 openbsd2.[89] | openbsd2.[89].*)
8989 shlibpath_overrides_runpath=no
8990 ;;
8991 *)
8992 shlibpath_overrides_runpath=yes
8993 ;;
8994 esac
a.rottmann84e63352003-03-24 09:42:16 +00008995 else
8996 shlibpath_overrides_runpath=yes
8997 fi
drh71eb93e2001-09-28 01:34:43 +00008998 ;;
8999
9000os2*)
9001 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009002 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009003 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009004 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009005 dynamic_linker='OS/2 ld.exe'
9006 shlibpath_var=LIBPATH
9007 ;;
9008
9009osf3* | osf4* | osf5*)
9010 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009011 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009012 need_version=no
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009015 shlibpath_var=LD_LIBRARY_PATH
9016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9017 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9018 ;;
9019
mlcreech636a9952008-05-05 22:52:56 +00009020rdos*)
9021 dynamic_linker=no
9022 ;;
9023
drh71eb93e2001-09-28 01:34:43 +00009024solaris*)
9025 version_type=linux
9026 need_lib_prefix=no
9027 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 hardcode_into_libs=yes
9033 # ldd complains unless libraries are executable
9034 postinstall_cmds='chmod +x $lib'
9035 ;;
9036
9037sunos4*)
9038 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009040 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=yes
9043 if test "$with_gnu_ld" = yes; then
9044 need_lib_prefix=no
9045 fi
9046 need_version=yes
9047 ;;
9048
vapier7f19c022007-02-17 14:46:31 +00009049sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009050 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009053 shlibpath_var=LD_LIBRARY_PATH
9054 case $host_vendor in
9055 sni)
9056 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009057 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009058 runpath_var=LD_RUN_PATH
9059 ;;
9060 siemens)
9061 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009062 ;;
9063 motorola)
9064 need_lib_prefix=no
9065 need_version=no
9066 shlibpath_overrides_runpath=no
9067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9068 ;;
9069 esac
9070 ;;
9071
9072sysv4*MP*)
9073 if test -d /usr/nec ;then
9074 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9076 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009077 shlibpath_var=LD_LIBRARY_PATH
9078 fi
9079 ;;
9080
vapier7f19c022007-02-17 14:46:31 +00009081sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9082 version_type=freebsd-elf
9083 need_lib_prefix=no
9084 need_version=no
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009088 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009089 hardcode_into_libs=yes
9090 if test "$with_gnu_ld" = yes; then
9091 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009092 else
9093 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009094 case $host_os in
9095 sco3.2v5*)
9096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9097 ;;
9098 esac
9099 fi
9100 sys_lib_dlsearch_path_spec='/usr/lib'
9101 ;;
9102
mlcreech636a9952008-05-05 22:52:56 +00009103tpf*)
9104 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9105 version_type=linux
9106 need_lib_prefix=no
9107 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009109 shlibpath_var=LD_LIBRARY_PATH
9110 shlibpath_overrides_runpath=no
9111 hardcode_into_libs=yes
9112 ;;
9113
a.rottmann9bc8b932004-02-29 15:18:31 +00009114uts4*)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 ;;
9120
drh71eb93e2001-09-28 01:34:43 +00009121*)
9122 dynamic_linker=no
9123 ;;
9124esac
drhf922ca42015-05-14 15:39:18 +00009125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009126$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009127test "$dynamic_linker" = no && can_build_shared=no
9128
vapier7f19c022007-02-17 14:46:31 +00009129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9130if test "$GCC" = yes; then
9131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9132fi
9133
mlcreech636a9952008-05-05 22:52:56 +00009134if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9135 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9136fi
9137if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9138 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9139fi
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
9226
drhf922ca42015-05-14 15:39:18 +00009227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009228$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009229hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009230if test -n "$hardcode_libdir_flag_spec" ||
9231 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009232 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009233
mlcreech636a9952008-05-05 22:52:56 +00009234 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009235 if test "$hardcode_direct" != no &&
9236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9237 # have to relink, otherwise we might link with an installed library
9238 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009239 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009240 test "$hardcode_minus_L" != no; then
9241 # Linking always hardcodes the temporary library directory.
9242 hardcode_action=relink
9243 else
9244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9245 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009246 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009247else
9248 # We cannot hardcode anything, or else we can only hardcode existing
9249 # directories.
9250 hardcode_action=unsupported
9251fi
drhf922ca42015-05-14 15:39:18 +00009252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009253$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009254
mlcreech636a9952008-05-05 22:52:56 +00009255if test "$hardcode_action" = relink ||
9256 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009257 # Fast installation is not supported
9258 enable_fast_install=no
9259elif test "$shlibpath_overrides_runpath" = yes ||
9260 test "$enable_shared" = no; then
9261 # Fast installation is not necessary
9262 enable_fast_install=needless
9263fi
9264
a.rottmann84e63352003-03-24 09:42:16 +00009265
mlcreech636a9952008-05-05 22:52:56 +00009266
9267
9268
9269
9270 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009271 enable_dlopen=unknown
9272 enable_dlopen_self=unknown
9273 enable_dlopen_self_static=unknown
9274else
9275 lt_cv_dlopen=no
9276 lt_cv_dlopen_libs=
9277
9278 case $host_os in
9279 beos*)
9280 lt_cv_dlopen="load_add_on"
9281 lt_cv_dlopen_libs=
9282 lt_cv_dlopen_self=yes
9283 ;;
9284
vapier6acb2cf2009-01-28 04:46:28 +00009285 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009286 lt_cv_dlopen="LoadLibrary"
9287 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009288 ;;
drh71eb93e2001-09-28 01:34:43 +00009289
a.rottmann9bc8b932004-02-29 15:18:31 +00009290 cygwin*)
9291 lt_cv_dlopen="dlopen"
9292 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009293 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009294
9295 darwin*)
9296 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009298$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009299if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009300 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009301else
9302 ac_check_lib_save_LIBS=$LIBS
9303LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009305/* end confdefs.h. */
9306
drh8b727472009-01-19 18:18:40 +00009307/* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009310#ifdef __cplusplus
9311extern "C"
9312#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009313char dlopen ();
9314int
9315main ()
9316{
drh8b727472009-01-19 18:18:40 +00009317return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009318 ;
9319 return 0;
9320}
9321_ACEOF
drhf922ca42015-05-14 15:39:18 +00009322if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009323 ac_cv_lib_dl_dlopen=yes
9324else
drhf922ca42015-05-14 15:39:18 +00009325 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009326fi
drhf922ca42015-05-14 15:39:18 +00009327rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009329LIBS=$ac_check_lib_save_LIBS
9330fi
drhf922ca42015-05-14 15:39:18 +00009331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009332$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009333if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9335else
9336
9337 lt_cv_dlopen="dyld"
9338 lt_cv_dlopen_libs=
9339 lt_cv_dlopen_self=yes
9340
9341fi
9342
mlcreech636a9952008-05-05 22:52:56 +00009343 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009344
drh71eb93e2001-09-28 01:34:43 +00009345 *)
drhf922ca42015-05-14 15:39:18 +00009346 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9347if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009348 lt_cv_dlopen="shl_load"
9349else
drhf922ca42015-05-14 15:39:18 +00009350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009351$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009352if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009353 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009354else
9355 ac_check_lib_save_LIBS=$LIBS
9356LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009358/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009359
drh8b727472009-01-19 18:18:40 +00009360/* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009363#ifdef __cplusplus
9364extern "C"
9365#endif
drh71eb93e2001-09-28 01:34:43 +00009366char shl_load ();
9367int
9368main ()
9369{
drh8b727472009-01-19 18:18:40 +00009370return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009371 ;
9372 return 0;
9373}
9374_ACEOF
drhf922ca42015-05-14 15:39:18 +00009375if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009376 ac_cv_lib_dld_shl_load=yes
9377else
drhf922ca42015-05-14 15:39:18 +00009378 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009379fi
drhf922ca42015-05-14 15:39:18 +00009380rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009382LIBS=$ac_check_lib_save_LIBS
9383fi
drhf922ca42015-05-14 15:39:18 +00009384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009385$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009386if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009387 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009388else
drhf922ca42015-05-14 15:39:18 +00009389 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9390if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009391 lt_cv_dlopen="dlopen"
9392else
drhf922ca42015-05-14 15:39:18 +00009393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009394$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009395if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009396 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009397else
9398 ac_check_lib_save_LIBS=$LIBS
9399LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009401/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009402
drh8b727472009-01-19 18:18:40 +00009403/* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009406#ifdef __cplusplus
9407extern "C"
9408#endif
drh71eb93e2001-09-28 01:34:43 +00009409char dlopen ();
9410int
9411main ()
9412{
drh8b727472009-01-19 18:18:40 +00009413return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009414 ;
9415 return 0;
9416}
9417_ACEOF
drhf922ca42015-05-14 15:39:18 +00009418if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009419 ac_cv_lib_dl_dlopen=yes
9420else
drhf922ca42015-05-14 15:39:18 +00009421 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009422fi
drhf922ca42015-05-14 15:39:18 +00009423rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009425LIBS=$ac_check_lib_save_LIBS
9426fi
drhf922ca42015-05-14 15:39:18 +00009427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009428$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009429if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9431else
drhf922ca42015-05-14 15:39:18 +00009432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009433$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009434if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009435 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009436else
9437 ac_check_lib_save_LIBS=$LIBS
9438LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009440/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009441
drh8b727472009-01-19 18:18:40 +00009442/* Override any GCC internal prototype to avoid an error.
9443 Use char because int might match the return type of a GCC
9444 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009445#ifdef __cplusplus
9446extern "C"
9447#endif
drh71eb93e2001-09-28 01:34:43 +00009448char dlopen ();
9449int
9450main ()
9451{
drh8b727472009-01-19 18:18:40 +00009452return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009453 ;
9454 return 0;
9455}
9456_ACEOF
drhf922ca42015-05-14 15:39:18 +00009457if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009458 ac_cv_lib_svld_dlopen=yes
9459else
drhf922ca42015-05-14 15:39:18 +00009460 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009461fi
drhf922ca42015-05-14 15:39:18 +00009462rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009464LIBS=$ac_check_lib_save_LIBS
9465fi
drhf922ca42015-05-14 15:39:18 +00009466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009467$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009468if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009470else
drhf922ca42015-05-14 15:39:18 +00009471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009472$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009473if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009474 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009475else
9476 ac_check_lib_save_LIBS=$LIBS
9477LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009479/* end confdefs.h. */
9480
drh8b727472009-01-19 18:18:40 +00009481/* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009484#ifdef __cplusplus
9485extern "C"
9486#endif
a.rottmann84e63352003-03-24 09:42:16 +00009487char dld_link ();
9488int
9489main ()
9490{
drh8b727472009-01-19 18:18:40 +00009491return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009492 ;
9493 return 0;
9494}
9495_ACEOF
drhf922ca42015-05-14 15:39:18 +00009496if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009497 ac_cv_lib_dld_dld_link=yes
9498else
drhf922ca42015-05-14 15:39:18 +00009499 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009500fi
drhf922ca42015-05-14 15:39:18 +00009501rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009503LIBS=$ac_check_lib_save_LIBS
9504fi
drhf922ca42015-05-14 15:39:18 +00009505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009506$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009507if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009509fi
9510
drh71eb93e2001-09-28 01:34:43 +00009511
9512fi
9513
drh71eb93e2001-09-28 01:34:43 +00009514
9515fi
9516
a.rottmann84e63352003-03-24 09:42:16 +00009517
9518fi
9519
9520
9521fi
9522
9523
drh71eb93e2001-09-28 01:34:43 +00009524fi
9525
9526 ;;
9527 esac
9528
9529 if test "x$lt_cv_dlopen" != xno; then
9530 enable_dlopen=yes
9531 else
9532 enable_dlopen=no
9533 fi
9534
9535 case $lt_cv_dlopen in
9536 dlopen)
9537 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009539
9540 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009542
9543 save_LIBS="$LIBS"
9544 LIBS="$lt_cv_dlopen_libs $LIBS"
9545
drhf922ca42015-05-14 15:39:18 +00009546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009547$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009548if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009549 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009550else
9551 if test "$cross_compiling" = yes; then :
9552 lt_cv_dlopen_self=cross
9553else
a.rottmann9bc8b932004-02-29 15:18:31 +00009554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009555 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009556 cat > conftest.$ac_ext <<_LT_EOF
drh4a0a98d2021-11-29 17:55:12 +00009557#line 9557 "configure"
drh71eb93e2001-09-28 01:34:43 +00009558#include "confdefs.h"
9559
9560#if HAVE_DLFCN_H
9561#include <dlfcn.h>
9562#endif
9563
9564#include <stdio.h>
9565
9566#ifdef RTLD_GLOBAL
9567# define LT_DLGLOBAL RTLD_GLOBAL
9568#else
9569# ifdef DL_GLOBAL
9570# define LT_DLGLOBAL DL_GLOBAL
9571# else
9572# define LT_DLGLOBAL 0
9573# endif
9574#endif
9575
9576/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9577 find out it does not work in some platform. */
9578#ifndef LT_DLLAZY_OR_NOW
9579# ifdef RTLD_LAZY
9580# define LT_DLLAZY_OR_NOW RTLD_LAZY
9581# else
9582# ifdef DL_LAZY
9583# define LT_DLLAZY_OR_NOW DL_LAZY
9584# else
9585# ifdef RTLD_NOW
9586# define LT_DLLAZY_OR_NOW RTLD_NOW
9587# else
9588# ifdef DL_NOW
9589# define LT_DLLAZY_OR_NOW DL_NOW
9590# else
9591# define LT_DLLAZY_OR_NOW 0
9592# endif
9593# endif
9594# endif
9595# endif
9596#endif
9597
drh71eb93e2001-09-28 01:34:43 +00009598void fnord() { int i=42;}
9599int main ()
9600{
9601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9602 int status = $lt_dlunknown;
9603
9604 if (self)
9605 {
9606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9607 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9608 /* dlclose (self); */
9609 }
vapier7f19c022007-02-17 14:46:31 +00009610 else
9611 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009612
vapier6acb2cf2009-01-28 04:46:28 +00009613 return status;
drh71eb93e2001-09-28 01:34:43 +00009614}
mlcreech636a9952008-05-05 22:52:56 +00009615_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009617 (eval $ac_link) 2>&5
9618 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009621 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009622 lt_status=$?
9623 case x$lt_status in
9624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009627 esac
9628 else :
9629 # compilation failed
9630 lt_cv_dlopen_self=no
9631 fi
9632fi
9633rm -fr conftest*
9634
a.rottmann84e63352003-03-24 09:42:16 +00009635
drh71eb93e2001-09-28 01:34:43 +00009636fi
drhf922ca42015-05-14 15:39:18 +00009637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009638$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009639
9640 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009643$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009644if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009645 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009646else
9647 if test "$cross_compiling" = yes; then :
9648 lt_cv_dlopen_self_static=cross
9649else
a.rottmann9bc8b932004-02-29 15:18:31 +00009650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009651 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009652 cat > conftest.$ac_ext <<_LT_EOF
drh4a0a98d2021-11-29 17:55:12 +00009653#line 9653 "configure"
drh71eb93e2001-09-28 01:34:43 +00009654#include "confdefs.h"
9655
9656#if HAVE_DLFCN_H
9657#include <dlfcn.h>
9658#endif
9659
9660#include <stdio.h>
9661
9662#ifdef RTLD_GLOBAL
9663# define LT_DLGLOBAL RTLD_GLOBAL
9664#else
9665# ifdef DL_GLOBAL
9666# define LT_DLGLOBAL DL_GLOBAL
9667# else
9668# define LT_DLGLOBAL 0
9669# endif
9670#endif
9671
9672/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9673 find out it does not work in some platform. */
9674#ifndef LT_DLLAZY_OR_NOW
9675# ifdef RTLD_LAZY
9676# define LT_DLLAZY_OR_NOW RTLD_LAZY
9677# else
9678# ifdef DL_LAZY
9679# define LT_DLLAZY_OR_NOW DL_LAZY
9680# else
9681# ifdef RTLD_NOW
9682# define LT_DLLAZY_OR_NOW RTLD_NOW
9683# else
9684# ifdef DL_NOW
9685# define LT_DLLAZY_OR_NOW DL_NOW
9686# else
9687# define LT_DLLAZY_OR_NOW 0
9688# endif
9689# endif
9690# endif
9691# endif
9692#endif
9693
drh71eb93e2001-09-28 01:34:43 +00009694void fnord() { int i=42;}
9695int main ()
9696{
9697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9698 int status = $lt_dlunknown;
9699
9700 if (self)
9701 {
9702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9704 /* dlclose (self); */
9705 }
vapier7f19c022007-02-17 14:46:31 +00009706 else
9707 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009708
vapier6acb2cf2009-01-28 04:46:28 +00009709 return status;
drh71eb93e2001-09-28 01:34:43 +00009710}
mlcreech636a9952008-05-05 22:52:56 +00009711_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009713 (eval $ac_link) 2>&5
9714 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9716 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009717 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009718 lt_status=$?
9719 case x$lt_status in
9720 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9721 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009722 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009723 esac
9724 else :
9725 # compilation failed
9726 lt_cv_dlopen_self_static=no
9727 fi
9728fi
9729rm -fr conftest*
9730
a.rottmann84e63352003-03-24 09:42:16 +00009731
drh71eb93e2001-09-28 01:34:43 +00009732fi
drhf922ca42015-05-14 15:39:18 +00009733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009734$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009735 fi
9736
9737 CPPFLAGS="$save_CPPFLAGS"
9738 LDFLAGS="$save_LDFLAGS"
9739 LIBS="$save_LIBS"
9740 ;;
9741 esac
9742
9743 case $lt_cv_dlopen_self in
9744 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9745 *) enable_dlopen_self=unknown ;;
9746 esac
9747
9748 case $lt_cv_dlopen_self_static in
9749 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9750 *) enable_dlopen_self_static=unknown ;;
9751 esac
9752fi
9753
drh71eb93e2001-09-28 01:34:43 +00009754
drh71eb93e2001-09-28 01:34:43 +00009755
a.rottmann9bc8b932004-02-29 15:18:31 +00009756
a.rottmann9bc8b932004-02-29 15:18:31 +00009757
mlcreech636a9952008-05-05 22:52:56 +00009758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770striplib=
9771old_striplib=
drhf922ca42015-05-14 15:39:18 +00009772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009773$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009774if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9775 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9776 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009778$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009779else
9780# FIXME - insert some real tests, host_os isn't really good enough
9781 case $host_os in
9782 darwin*)
9783 if test -n "$STRIP" ; then
9784 striplib="$STRIP -x"
9785 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009787$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009788 else
drhf922ca42015-05-14 15:39:18 +00009789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009790$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009791 fi
a.rottmann84e63352003-03-24 09:42:16 +00009792 ;;
mlcreech636a9952008-05-05 22:52:56 +00009793 *)
drhf922ca42015-05-14 15:39:18 +00009794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009795$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009796 ;;
9797 esac
mlcreech636a9952008-05-05 22:52:56 +00009798fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009799
a.rottmann9bc8b932004-02-29 15:18:31 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
drh71eb93e2001-09-28 01:34:43 +00009802
a.rottmann84e63352003-03-24 09:42:16 +00009803
drh71eb93e2001-09-28 01:34:43 +00009804
drh71eb93e2001-09-28 01:34:43 +00009805
a.rottmann9bc8b932004-02-29 15:18:31 +00009806
drh71eb93e2001-09-28 01:34:43 +00009807
drh71eb93e2001-09-28 01:34:43 +00009808
drh71eb93e2001-09-28 01:34:43 +00009809
drh71eb93e2001-09-28 01:34:43 +00009810
mlcreech636a9952008-05-05 22:52:56 +00009811 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009813$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009815$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009816
drhf922ca42015-05-14 15:39:18 +00009817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009818$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009819 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009820
mlcreech636a9952008-05-05 22:52:56 +00009821 # On AIX, shared libraries and static libraries use the same namespace, and
9822 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009823 case $host_os in
9824 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009825 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009826 if test -n "$RANLIB"; then
9827 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9828 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009829 fi
9830 ;;
9831
mlcreech636a9952008-05-05 22:52:56 +00009832 aix[4-9]*)
9833 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9834 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009835 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009836 ;;
9837 esac
drhf922ca42015-05-14 15:39:18 +00009838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009839$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009840
drhf922ca42015-05-14 15:39:18 +00009841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009842$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009843 # Make sure either enable_shared or enable_static is yes.
9844 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009846$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
a.rottmann9bc8b932004-02-29 15:18:31 +00009850
vapier7f19c022007-02-17 14:46:31 +00009851fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009852ac_ext=c
9853ac_cpp='$CPP $CPPFLAGS'
9854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856ac_compiler_gnu=$ac_cv_c_compiler_gnu
9857
9858CC="$lt_save_CC"
9859
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
9862
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
a.rottmann9bc8b932004-02-29 15:18:31 +00009868
vapier7f19c022007-02-17 14:46:31 +00009869
a.rottmann9bc8b932004-02-29 15:18:31 +00009870
9871
drh8b727472009-01-19 18:18:40 +00009872 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009873
vapier7f19c022007-02-17 14:46:31 +00009874
9875
vapier7f19c022007-02-17 14:46:31 +00009876
mlcreech636a9952008-05-05 22:52:56 +00009877# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009878
9879
drh71eb93e2001-09-28 01:34:43 +00009880# Find a good install program. We prefer a C program (faster),
9881# so one script is as good as another. But avoid the broken or
9882# incompatible versions:
9883# SysV /etc/install, /usr/sbin/install
9884# SunOS /usr/etc/install
9885# IRIX /sbin/install
9886# AIX /bin/install
9887# AmigaOS /C/install, which installs bootblocks on floppy discs
9888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009891# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009892# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009893# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009895$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009896if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009897if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009898 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009899else
a.rottmann84e63352003-03-24 09:42:16 +00009900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901for as_dir in $PATH
9902do
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009905 # Account for people who put trailing slashes in PATH elements.
9906case $as_dir/ in #((
9907 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009909 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009910 /usr/ucb/* ) ;;
9911 *)
9912 # OSF1 and SCO ODT 3.0 have their own names for install.
9913 # Don't use installbsd from OSF since it installs stuff as root
9914 # by default.
9915 for ac_prog in ginstall scoinst install; do
9916 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009917 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009918 if test $ac_prog = install &&
9919 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9920 # AIX install. It has an incompatible calling convention.
9921 :
9922 elif test $ac_prog = install &&
9923 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9924 # program-specific install script used by HP pwplus--don't use.
9925 :
9926 else
drh8b727472009-01-19 18:18:40 +00009927 rm -rf conftest.one conftest.two conftest.dir
9928 echo one > conftest.one
9929 echo two > conftest.two
9930 mkdir conftest.dir
9931 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9932 test -s conftest.one && test -s conftest.two &&
9933 test -s conftest.dir/conftest.one &&
9934 test -s conftest.dir/conftest.two
9935 then
9936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9937 break 3
9938 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009939 fi
9940 fi
drh71eb93e2001-09-28 01:34:43 +00009941 done
a.rottmann84e63352003-03-24 09:42:16 +00009942 done
9943 ;;
9944esac
a.rottmann84e63352003-03-24 09:42:16 +00009945
drhf922ca42015-05-14 15:39:18 +00009946 done
drh8b727472009-01-19 18:18:40 +00009947IFS=$as_save_IFS
9948
9949rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009950
9951fi
9952 if test "${ac_cv_path_install+set}" = set; then
9953 INSTALL=$ac_cv_path_install
9954 else
drh8b727472009-01-19 18:18:40 +00009955 # As a last resort, use the slow shell script. Don't cache a
9956 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009957 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009958 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009959 INSTALL=$ac_install_sh
9960 fi
9961fi
drhf922ca42015-05-14 15:39:18 +00009962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009963$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009964
9965# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9966# It thinks the first close brace ends the variable substitution.
9967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9968
9969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9970
9971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9972
a.rottmann84e63352003-03-24 09:42:16 +00009973
drh75897232000-05-29 14:26:00 +00009974#########
mlcreech636a9952008-05-05 22:52:56 +00009975# Enable large file support (if special flags are necessary)
9976#
drh8b727472009-01-19 18:18:40 +00009977# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009978if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009979 enableval=$enable_largefile;
9980fi
mlcreech636a9952008-05-05 22:52:56 +00009981
9982if test "$enable_largefile" != no; then
9983
drhf922ca42015-05-14 15:39:18 +00009984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009985$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009986if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009987 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009988else
mlcreech636a9952008-05-05 22:52:56 +00009989 ac_cv_sys_largefile_CC=no
9990 if test "$GCC" != yes; then
9991 ac_save_CC=$CC
9992 while :; do
drh8b727472009-01-19 18:18:40 +00009993 # IRIX 6.2 and later do not support large files by default,
9994 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009996/* end confdefs.h. */
9997#include <sys/types.h>
9998 /* Check that off_t can represent 2**63 - 1 correctly.
9999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10000 since some C++ compilers masquerading as C compilers
10001 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010002#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10004 && LARGE_OFF_T % 2147483647 == 1)
10005 ? 1 : -1];
10006int
10007main ()
10008{
10009
10010 ;
10011 return 0;
10012}
10013_ACEOF
drhf922ca42015-05-14 15:39:18 +000010014 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010015 break
mlcreech636a9952008-05-05 22:52:56 +000010016fi
drh8b727472009-01-19 18:18:40 +000010017rm -f core conftest.err conftest.$ac_objext
10018 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010019 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010020 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010021fi
drh8b727472009-01-19 18:18:40 +000010022rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010023 break
10024 done
10025 CC=$ac_save_CC
10026 rm -f conftest.$ac_ext
10027 fi
10028fi
drhf922ca42015-05-14 15:39:18 +000010029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010030$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010031 if test "$ac_cv_sys_largefile_CC" != no; then
10032 CC=$CC$ac_cv_sys_largefile_CC
10033 fi
10034
drhf922ca42015-05-14 15:39:18 +000010035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010036$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010037if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010038 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010039else
10040 while :; do
drhf922ca42015-05-14 15:39:18 +000010041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010042/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010043#include <sys/types.h>
10044 /* Check that off_t can represent 2**63 - 1 correctly.
10045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10046 since some C++ compilers masquerading as C compilers
10047 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010048#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10050 && LARGE_OFF_T % 2147483647 == 1)
10051 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010052int
10053main ()
10054{
mlcreech636a9952008-05-05 22:52:56 +000010055
mlcreechb87057f2008-03-06 07:19:20 +000010056 ;
10057 return 0;
10058}
10059_ACEOF
drhf922ca42015-05-14 15:39:18 +000010060if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010061 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010062fi
drh8b727472009-01-19 18:18:40 +000010063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010065/* end confdefs.h. */
10066#define _FILE_OFFSET_BITS 64
10067#include <sys/types.h>
10068 /* Check that off_t can represent 2**63 - 1 correctly.
10069 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10070 since some C++ compilers masquerading as C compilers
10071 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010072#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010073 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10074 && LARGE_OFF_T % 2147483647 == 1)
10075 ? 1 : -1];
10076int
10077main ()
10078{
10079
10080 ;
10081 return 0;
10082}
10083_ACEOF
drhf922ca42015-05-14 15:39:18 +000010084if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010085 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010086fi
drh8b727472009-01-19 18:18:40 +000010087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010089 break
10090done
10091fi
drhf922ca42015-05-14 15:39:18 +000010092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010093$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10094case $ac_cv_sys_file_offset_bits in #(
10095 no | unknown) ;;
10096 *)
mlcreech636a9952008-05-05 22:52:56 +000010097cat >>confdefs.h <<_ACEOF
10098#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10099_ACEOF
drh8b727472009-01-19 18:18:40 +000010100;;
10101esac
10102rm -rf conftest*
10103 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010105$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010106if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010107 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010108else
10109 while :; do
drhf922ca42015-05-14 15:39:18 +000010110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010111/* end confdefs.h. */
10112#include <sys/types.h>
10113 /* Check that off_t can represent 2**63 - 1 correctly.
10114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10115 since some C++ compilers masquerading as C compilers
10116 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10119 && LARGE_OFF_T % 2147483647 == 1)
10120 ? 1 : -1];
10121int
10122main ()
10123{
10124
10125 ;
10126 return 0;
10127}
10128_ACEOF
drhf922ca42015-05-14 15:39:18 +000010129if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010130 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010131fi
drh8b727472009-01-19 18:18:40 +000010132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010134/* end confdefs.h. */
10135#define _LARGE_FILES 1
10136#include <sys/types.h>
10137 /* Check that off_t can represent 2**63 - 1 correctly.
10138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10139 since some C++ compilers masquerading as C compilers
10140 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010141#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10143 && LARGE_OFF_T % 2147483647 == 1)
10144 ? 1 : -1];
10145int
10146main ()
10147{
10148
10149 ;
10150 return 0;
10151}
10152_ACEOF
drhf922ca42015-05-14 15:39:18 +000010153if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010154 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010155fi
drh8b727472009-01-19 18:18:40 +000010156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010158 break
10159done
10160fi
drhf922ca42015-05-14 15:39:18 +000010161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010162$as_echo "$ac_cv_sys_large_files" >&6; }
10163case $ac_cv_sys_large_files in #(
10164 no | unknown) ;;
10165 *)
mlcreech636a9952008-05-05 22:52:56 +000010166cat >>confdefs.h <<_ACEOF
10167#define _LARGE_FILES $ac_cv_sys_large_files
10168_ACEOF
drh8b727472009-01-19 18:18:40 +000010169;;
10170esac
10171rm -rf conftest*
10172 fi
drhf922ca42015-05-14 15:39:18 +000010173
10174
mlcreech636a9952008-05-05 22:52:56 +000010175fi
10176
10177
10178#########
10179# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010180ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10181if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010182
10183cat >>confdefs.h <<_ACEOF
10184#define HAVE_INT8_T 1
10185_ACEOF
10186
10187
10188fi
drhf922ca42015-05-14 15:39:18 +000010189ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10190if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INT16_T 1
10194_ACEOF
10195
10196
10197fi
drhf922ca42015-05-14 15:39:18 +000010198ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10199if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_INT32_T 1
10203_ACEOF
10204
10205
10206fi
drhf922ca42015-05-14 15:39:18 +000010207ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10208if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_INT64_T 1
10212_ACEOF
10213
10214
10215fi
drhf922ca42015-05-14 15:39:18 +000010216ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10217if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_INTPTR_T 1
10221_ACEOF
10222
10223
10224fi
drhf922ca42015-05-14 15:39:18 +000010225ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10226if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_UINT8_T 1
10230_ACEOF
10231
10232
10233fi
drhf922ca42015-05-14 15:39:18 +000010234ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10235if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010236
10237cat >>confdefs.h <<_ACEOF
10238#define HAVE_UINT16_T 1
10239_ACEOF
10240
10241
10242fi
drhf922ca42015-05-14 15:39:18 +000010243ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10244if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010245
10246cat >>confdefs.h <<_ACEOF
10247#define HAVE_UINT32_T 1
10248_ACEOF
10249
10250
10251fi
drhf922ca42015-05-14 15:39:18 +000010252ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10253if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010254
10255cat >>confdefs.h <<_ACEOF
10256#define HAVE_UINT64_T 1
10257_ACEOF
10258
10259
10260fi
drhf922ca42015-05-14 15:39:18 +000010261ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10262if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010263
10264cat >>confdefs.h <<_ACEOF
10265#define HAVE_UINTPTR_T 1
10266_ACEOF
10267
10268
10269fi
mlcreechb87057f2008-03-06 07:19:20 +000010270
10271
10272#########
10273# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010274for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010275do :
10276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10278if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010279 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010281_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010282
mlcreechb87057f2008-03-06 07:19:20 +000010283fi
10284
10285done
10286
10287
10288#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010289# Figure out whether or not we have these functions
10290#
drhe32a2562016-03-04 02:38:00 +000010291for 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 +000010292do :
10293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10295if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010296 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010298_ACEOF
10299
10300fi
10301done
10302
10303
mlcreechab1c47b2008-03-09 02:51:10 +000010304#########
mlcreechf3868112008-03-11 18:03:30 +000010305# By default, we use the amalgamation (this may be changed below...)
10306#
10307USE_AMALGAMATION=1
10308
10309#########
mlcreechab1c47b2008-03-09 02:51:10 +000010310# See whether we can run specific tclsh versions known to work well;
10311# if not, then we fall back to plain tclsh.
10312# TODO: try other versions before falling back?
10313#
drh0b11bcb2017-09-22 00:24:44 +000010314for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010315do
10316 # Extract the first word of "$ac_prog", so it can be a program name with args.
10317set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010319$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010320if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010321 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010322else
10323 if test -n "$TCLSH_CMD"; then
10324 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10325else
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329 IFS=$as_save_IFS
10330 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010331 for ac_exec_ext in '' $ac_executable_extensions; do
10332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010333 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010335 break 2
10336 fi
10337done
drhf922ca42015-05-14 15:39:18 +000010338 done
drh8b727472009-01-19 18:18:40 +000010339IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010340
10341fi
10342fi
10343TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10344if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010346$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010347else
drhf922ca42015-05-14 15:39:18 +000010348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010349$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010350fi
10351
drh8b727472009-01-19 18:18:40 +000010352
mlcreechab1c47b2008-03-09 02:51:10 +000010353 test -n "$TCLSH_CMD" && break
10354done
mlcreechf3868112008-03-11 18:03:30 +000010355test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010356
mlcreechf3868112008-03-11 18:03:30 +000010357if test "$TCLSH_CMD" = "none"; then
10358 # If we can't find a local tclsh, then building the amalgamation will fail.
10359 # We act as though --disable-amalgamation has been used.
10360 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10361 USE_AMALGAMATION=0
10362 TCLSH_CMD="tclsh"
10363fi
mlcreechab1c47b2008-03-09 02:51:10 +000010364
10365
mlcreech5b0a9eb2008-03-09 01:38:09 +000010366
vapier6acb2cf2009-01-28 04:46:28 +000010367if test "x${TCLLIBDIR+set}" != "xset" ; then
10368 TCLLIBDIR='$(libdir)'
10369 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
drhd9cc5322021-01-12 14:23:03 +000010370 if test -d $i ; then
10371 TCLLIBDIR=$i
10372 break
10373 fi
vapier6acb2cf2009-01-28 04:46:28 +000010374 done
10375 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10376fi
10377
10378
mlcreech5b0a9eb2008-03-09 01:38:09 +000010379#########
drh75897232000-05-29 14:26:00 +000010380# Set up an appropriate program prefix
10381#
10382if test "$program_prefix" = "NONE"; then
10383 program_prefix=""
10384fi
10385
a.rottmann84e63352003-03-24 09:42:16 +000010386
drh4b2266a2004-11-27 15:52:16 +000010387VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010388{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010389$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010390
10391RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010392{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010393$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010394
drh26d0e2a2005-07-06 13:51:27 +000010395
drh75897232000-05-29 14:26:00 +000010396#########
drh75897232000-05-29 14:26:00 +000010397# Locate a compiler for the build machine. This compiler should
10398# generate command-line programs that run on the build machine.
10399#
vapier7f19c022007-02-17 14:46:31 +000010400if test x"$cross_compiling" = xno; then
10401 BUILD_CC=$CC
10402 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010403else
vapier7f19c022007-02-17 14:46:31 +000010404 if test "${BUILD_CC+set}" != set; then
10405 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010406do
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010410$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010411if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010412 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010413else
vapier7f19c022007-02-17 14:46:31 +000010414 if test -n "$BUILD_CC"; then
10415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010416else
a.rottmann84e63352003-03-24 09:42:16 +000010417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010424 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010426 break 2
10427 fi
10428done
drhf922ca42015-05-14 15:39:18 +000010429 done
drh8b727472009-01-19 18:18:40 +000010430IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010431
drh71eb93e2001-09-28 01:34:43 +000010432fi
10433fi
vapier7f19c022007-02-17 14:46:31 +000010434BUILD_CC=$ac_cv_prog_BUILD_CC
10435if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010437$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010438else
drhf922ca42015-05-14 15:39:18 +000010439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010440$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010441fi
drh75897232000-05-29 14:26:00 +000010442
drh8b727472009-01-19 18:18:40 +000010443
vapier7f19c022007-02-17 14:46:31 +000010444 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010445done
drh75897232000-05-29 14:26:00 +000010446
vapier7f19c022007-02-17 14:46:31 +000010447 fi
10448 if test "${BUILD_CFLAGS+set}" != set; then
10449 BUILD_CFLAGS="-g"
10450 fi
drh71eb93e2001-09-28 01:34:43 +000010451fi
10452
a.rottmann84e63352003-03-24 09:42:16 +000010453
drh297ecf12001-04-05 15:57:13 +000010454##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010455# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010456#
drh8b727472009-01-19 18:18:40 +000010457# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010458if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010459 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010460fi
10461
drhf922ca42015-05-14 15:39:18 +000010462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010463$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010464if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010465 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010467$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010468else
drh5a3032b2007-09-03 16:12:09 +000010469 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010471$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010472fi
10473
a.rottmann964dbb12004-02-26 19:47:42 +000010474
drh5a3032b2007-09-03 16:12:09 +000010475if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10477$as_echo_n "checking for library containing pthread_create... " >&6; }
10478if ${ac_cv_search_pthread_create+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480else
10481 ac_func_search_save_LIBS=$LIBS
10482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h. */
10484
10485/* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491char pthread_create ();
10492int
10493main ()
10494{
10495return pthread_create ();
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500for ac_lib in '' pthread; do
10501 if test -z "$ac_lib"; then
10502 ac_res="none required"
10503 else
10504 ac_res=-l$ac_lib
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10506 fi
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_search_pthread_create=$ac_res
10509fi
10510rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext
10512 if ${ac_cv_search_pthread_create+:} false; then :
10513 break
10514fi
10515done
10516if ${ac_cv_search_pthread_create+:} false; then :
10517
10518else
10519 ac_cv_search_pthread_create=no
10520fi
10521rm conftest.$ac_ext
10522LIBS=$ac_func_search_save_LIBS
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10525$as_echo "$ac_cv_search_pthread_create" >&6; }
10526ac_res=$ac_cv_search_pthread_create
10527if test "$ac_res" != no; then :
10528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10529
10530fi
10531
drh13c808a2016-01-13 21:23:48 +000010532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10533$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10534if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010535 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010536else
mlcreechc658b0f2008-03-09 02:20:11 +000010537 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010539/* end confdefs.h. */
10540
drh8b727472009-01-19 18:18:40 +000010541/* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010544#ifdef __cplusplus
10545extern "C"
10546#endif
drh13c808a2016-01-13 21:23:48 +000010547char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010548int
10549main ()
10550{
drh13c808a2016-01-13 21:23:48 +000010551return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010552 ;
10553 return 0;
10554}
10555_ACEOF
drh8b727472009-01-19 18:18:40 +000010556for ac_lib in '' pthread; do
10557 if test -z "$ac_lib"; then
10558 ac_res="none required"
10559 else
10560 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010562 fi
drhf922ca42015-05-14 15:39:18 +000010563 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010564 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010565fi
drhf922ca42015-05-14 15:39:18 +000010566rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010568 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010569 break
drh866108f2008-05-13 00:57:21 +000010570fi
drh8b727472009-01-19 18:18:40 +000010571done
drh13c808a2016-01-13 21:23:48 +000010572if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010573
drh8b727472009-01-19 18:18:40 +000010574else
drh13c808a2016-01-13 21:23:48 +000010575 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010576fi
10577rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010578LIBS=$ac_func_search_save_LIBS
10579fi
drh13c808a2016-01-13 21:23:48 +000010580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10581$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10582ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010583if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010585
dougcurrie65623c72004-09-20 14:57:23 +000010586fi
10587
mlcreechc658b0f2008-03-09 02:20:11 +000010588fi
dougcurrie65623c72004-09-20 14:57:23 +000010589
xdong28f79f72003-09-23 00:35:21 +000010590##########
10591# Do we want to support release
10592#
drh8b727472009-01-19 18:18:40 +000010593# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010594if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010595 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010596else
10597 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010598fi
10599
drhf922ca42015-05-14 15:39:18 +000010600{ $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 +000010601$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010602if test "$enable_releasemode" = "no"; then
10603 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010605$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010606else
drh0b47d342007-11-27 14:50:06 +000010607 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010609$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010610fi
paulb0208cc2003-04-13 18:26:49 +000010611
a.rottmann964dbb12004-02-26 19:47:42 +000010612
paulb0208cc2003-04-13 18:26:49 +000010613##########
10614# Do we want temporary databases in memory
10615#
drh8b727472009-01-19 18:18:40 +000010616# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010617if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010618 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010619else
drh54414bb2005-10-10 00:05:50 +000010620 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010621fi
10622
drhf922ca42015-05-14 15:39:18 +000010623{ $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 +000010624$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010625case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010626 never )
paul2dc96f92003-04-20 11:46:34 +000010627 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010629$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010630 ;;
10631 no )
paul2dc96f92003-04-20 11:46:34 +000010632 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010634$as_echo "no" >&6; }
10635 ;;
10636 yes )
10637 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010639$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010640 ;;
10641 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010642 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010644$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010645 ;;
paulb0208cc2003-04-13 18:26:49 +000010646 * )
drh54414bb2005-10-10 00:05:50 +000010647 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010649$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010650 ;;
10651esac
10652
10653
10654
drh75897232000-05-29 14:26:00 +000010655###########
10656# Lots of things are different if we are compiling for Windows using
10657# the CYGWIN environment. So check for that special case and handle
10658# things accordingly.
10659#
drhf922ca42015-05-14 15:39:18 +000010660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010661$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010662if test "$config_BUILD_EXEEXT" = ".exe"; then
10663 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010665$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010666else
drhf922ca42015-05-14 15:39:18 +000010667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010668$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010669fi
10670if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010671
10672case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010673 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010674 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010675esac
drh75897232000-05-29 14:26:00 +000010676
drh75897232000-05-29 14:26:00 +000010677fi
10678if test "$CYGWIN" = "yes"; then
10679 BUILD_EXEEXT=.exe
10680else
dougcurrie6194a5f2003-12-19 20:09:51 +000010681 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010682fi
vapier7f19c022007-02-17 14:46:31 +000010683if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010684 TARGET_EXEEXT=$BUILD_EXEEXT
10685else
10686 TARGET_EXEEXT=$config_TARGET_EXEEXT
10687fi
10688if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010689 SQLITE_OS_UNIX=0
10690 SQLITE_OS_WIN=1
10691 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010692else
danielk197729bafea2008-06-26 10:41:19 +000010693 SQLITE_OS_UNIX=1
10694 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010695 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010696fi
drh75897232000-05-29 14:26:00 +000010697
a.rottmann84e63352003-03-24 09:42:16 +000010698
10699
10700
10701
10702
drh75897232000-05-29 14:26:00 +000010703##########
drh7b5717e2004-11-25 13:50:01 +000010704# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010705#
drh7b5717e2004-11-25 13:50:01 +000010706# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10707# macros in the in the tcl.m4 file of the standard TCL distribution.
10708# Those macros could not be used directly since we have to make some
10709# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010710#
drh8b727472009-01-19 18:18:40 +000010711# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010712if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010713 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010714else
drh7b5717e2004-11-25 13:50:01 +000010715 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010716fi
10717
drh7b5717e2004-11-25 13:50:01 +000010718if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010719
drh8b727472009-01-19 18:18:40 +000010720# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010721if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010722 withval=$with_tcl; with_tclconfig=${withval}
10723fi
10724
drhf922ca42015-05-14 15:39:18 +000010725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010726$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010727 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010728 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010729else
a.rottmann84e63352003-03-24 09:42:16 +000010730
drh7b5717e2004-11-25 13:50:01 +000010731 # First check to see if --with-tcl was specified.
10732 if test x"${with_tclconfig}" != x ; then
10733 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10734 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10735 else
drhf922ca42015-05-14 15:39:18 +000010736 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010737 fi
10738 fi
vapier6acb2cf2009-01-28 04:46:28 +000010739
10740 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010741 if test x"${ac_cv_c_tclconfig}" = x ; then
10742 if test x"$cross_compiling" = xno; then
10743 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10744 do
10745 if test -f "$i/tclConfig.sh" ; then
10746 ac_cv_c_tclconfig="$i"
10747 break
10748 fi
10749 done
10750 fi
vapier6acb2cf2009-01-28 04:46:28 +000010751 fi
10752
drhf960a642015-05-30 22:57:49 +000010753 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10754 # So try again after applying corrections.
10755 if test x"${ac_cv_c_tclconfig}" = x ; then
10756 if test x"$cross_compiling" = xno; then
10757 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10758 do
10759 if test -f "$i/tclConfig.sh" ; then
10760 ac_cv_c_tclconfig="$i"
10761 break
10762 fi
10763 done
10764 fi
10765 fi
10766
drh68314742016-05-23 00:10:58 +000010767 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10768 # in a strange place.
10769 if test x"${ac_cv_c_tclconfig}" = x ; then
10770 if test x"$cross_compiling" = xno; then
10771 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10772 do
10773 if test -f "$i/tclConfig.sh" ; then
10774 ac_cv_c_tclconfig="$i"
10775 break
10776 fi
10777 done
10778 fi
10779 fi
10780
drh7b5717e2004-11-25 13:50:01 +000010781 # then check for a private Tcl installation
10782 if test x"${ac_cv_c_tclconfig}" = x ; then
10783 for i in \
10784 ../tcl \
10785 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10786 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10787 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10788 ../../tcl \
10789 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10790 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10791 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10792 ../../../tcl \
10793 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10794 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10795 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10796 do
10797 if test -f "$i/unix/tclConfig.sh" ; then
10798 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10799 break
10800 fi
10801 done
10802 fi
10803
10804 # check in a few common install locations
10805 if test x"${ac_cv_c_tclconfig}" = x ; then
10806 for i in \
10807 `ls -d ${libdir} 2>/dev/null` \
10808 `ls -d /usr/local/lib 2>/dev/null` \
10809 `ls -d /usr/contrib/lib 2>/dev/null` \
10810 `ls -d /usr/lib 2>/dev/null`
10811 do
10812 if test -f "$i/tclConfig.sh" ; then
10813 ac_cv_c_tclconfig=`(cd $i; pwd)`
10814 break
10815 fi
10816 done
10817 fi
10818
10819 # check in a few other private locations
10820 if test x"${ac_cv_c_tclconfig}" = x ; then
10821 for i in \
10822 ${srcdir}/../tcl \
10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10825 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10826 do
10827 if test -f "$i/unix/tclConfig.sh" ; then
10828 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10829 break
10830 fi
10831 done
10832 fi
10833
drh75897232000-05-29 14:26:00 +000010834fi
10835
drh7b5717e2004-11-25 13:50:01 +000010836
10837 if test x"${ac_cv_c_tclconfig}" = x ; then
10838 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010840$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010842$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010844$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010845 else
10846 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010848$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010849
drhf922ca42015-05-14 15:39:18 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010851$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010852 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010854$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010855 . $TCL_BIN_DIR/tclConfig.sh
10856 else
drhf922ca42015-05-14 15:39:18 +000010857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010858$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010859 fi
drh7b5717e2004-11-25 13:50:01 +000010860
10861 #
10862 # If the TCL_BIN_DIR is the build directory (not the install directory),
10863 # then set the common variable name to the value of the build variables.
10864 # For example, the variable TCL_LIB_SPEC will be set to the value
10865 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10866 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10867 # installed and uninstalled version of Tcl.
10868 #
10869
mlcreechab1c47b2008-03-09 02:51:10 +000010870 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010871 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10872 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10873 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10874 fi
10875
10876 #
10877 # eval is required to do the TCL_DBGX substitution
10878 #
10879
10880 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10881 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10882 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10883
10884 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10885 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10886 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
drhd881ce82015-03-31 17:01:52 +000010900
drh7b5717e2004-11-25 13:50:01 +000010901 fi
drh75897232000-05-29 14:26:00 +000010902fi
drh7b5717e2004-11-25 13:50:01 +000010903if test "${use_tcl}" = "no" ; then
10904 HAVE_TCL=""
10905else
10906 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010907fi
drh75897232000-05-29 14:26:00 +000010908
a.rottmann84e63352003-03-24 09:42:16 +000010909
drh75897232000-05-29 14:26:00 +000010910##########
10911# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010912# that use "readline()" library.
10913#
vapier7f19c022007-02-17 14:46:31 +000010914TARGET_READLINE_LIBS=""
10915TARGET_READLINE_INC=""
10916TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010917TARGET_HAVE_EDITLINE=0
10918# Check whether --enable-editline was given.
10919if test "${enable_editline+set}" = set; then :
10920 enableval=$enable_editline; with_editline=$enableval
10921else
10922 with_editline=auto
10923fi
10924
drh8b727472009-01-19 18:18:40 +000010925# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010926if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010927 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010928else
vapier7f19c022007-02-17 14:46:31 +000010929 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010930fi
10931
vapier7f19c022007-02-17 14:46:31 +000010932
drhe44b8352015-10-30 14:25:57 +000010933if test x"$with_editline" != xno; then
10934 sLIBS=$LIBS
10935 LIBS=""
10936 TARGET_HAVE_EDITLINE=1
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10938$as_echo_n "checking for library containing readline... " >&6; }
10939if ${ac_cv_search_readline+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941else
10942 ac_func_search_save_LIBS=$LIBS
10943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h. */
10945
10946/* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949#ifdef __cplusplus
10950extern "C"
10951#endif
10952char readline ();
10953int
10954main ()
10955{
10956return readline ();
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961for ac_lib in '' edit; do
10962 if test -z "$ac_lib"; then
10963 ac_res="none required"
10964 else
10965 ac_res=-l$ac_lib
10966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10967 fi
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_search_readline=$ac_res
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext
10973 if ${ac_cv_search_readline+:} false; then :
10974 break
10975fi
10976done
10977if ${ac_cv_search_readline+:} false; then :
10978
10979else
10980 ac_cv_search_readline=no
10981fi
10982rm conftest.$ac_ext
10983LIBS=$ac_func_search_save_LIBS
10984fi
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10986$as_echo "$ac_cv_search_readline" >&6; }
10987ac_res=$ac_cv_search_readline
10988if test "$ac_res" != no; then :
10989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990 with_readline=no
10991else
10992 TARGET_HAVE_EDITLINE=0
10993fi
10994
10995 TARGET_READLINE_LIBS=$LIBS
10996 LIBS=$sLIBS
10997fi
vapier7f19c022007-02-17 14:46:31 +000010998if test x"$with_readline" != xno; then
10999 found="yes"
11000
11001
drh8b727472009-01-19 18:18:40 +000011002# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011003if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011004 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011005else
11006 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011007fi
11008
vapier7f19c022007-02-17 14:46:31 +000011009 if test "x$with_readline_lib" = xauto; then
11010 save_LIBS="$LIBS"
11011 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011013$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011014if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011015 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011016else
drh71eb93e2001-09-28 01:34:43 +000011017 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011019/* end confdefs.h. */
11020
drh8b727472009-01-19 18:18:40 +000011021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011024#ifdef __cplusplus
11025extern "C"
11026#endif
paul38372372003-04-22 08:04:49 +000011027char tgetent ();
11028int
11029main ()
11030{
drh8b727472009-01-19 18:18:40 +000011031return tgetent ();
paul38372372003-04-22 08:04:49 +000011032 ;
11033 return 0;
11034}
11035_ACEOF
drh8b727472009-01-19 18:18:40 +000011036for ac_lib in '' readline ncurses curses termcap; do
11037 if test -z "$ac_lib"; then
11038 ac_res="none required"
11039 else
11040 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011042 fi
drhf922ca42015-05-14 15:39:18 +000011043 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011044 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011045fi
drhf922ca42015-05-14 15:39:18 +000011046rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext
11048 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011049 break
drh866108f2008-05-13 00:57:21 +000011050fi
drh8b727472009-01-19 18:18:40 +000011051done
drhf922ca42015-05-14 15:39:18 +000011052if ${ac_cv_search_tgetent+:} false; then :
11053
drh8b727472009-01-19 18:18:40 +000011054else
11055 ac_cv_search_tgetent=no
11056fi
11057rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011058LIBS=$ac_func_search_save_LIBS
11059fi
drhf922ca42015-05-14 15:39:18 +000011060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011061$as_echo "$ac_cv_search_tgetent" >&6; }
11062ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011063if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011065 term_LIBS="$LIBS"
11066else
11067 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011068fi
11069
drhf922ca42015-05-14 15:39:18 +000011070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011071$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011072if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011073 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011074else
11075 ac_check_lib_save_LIBS=$LIBS
11076LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011078/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011079
drh8b727472009-01-19 18:18:40 +000011080/* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011083#ifdef __cplusplus
11084extern "C"
11085#endif
drh71eb93e2001-09-28 01:34:43 +000011086char readline ();
11087int
11088main ()
11089{
drh8b727472009-01-19 18:18:40 +000011090return readline ();
drh71eb93e2001-09-28 01:34:43 +000011091 ;
11092 return 0;
11093}
11094_ACEOF
drhf922ca42015-05-14 15:39:18 +000011095if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011096 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011097else
drhf922ca42015-05-14 15:39:18 +000011098 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011099fi
drhf922ca42015-05-14 15:39:18 +000011100rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011102LIBS=$ac_check_lib_save_LIBS
11103fi
drhf922ca42015-05-14 15:39:18 +000011104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011105$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011106if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011107 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011108else
vapier7f19c022007-02-17 14:46:31 +000011109 found="no"
11110fi
drhf1878b42006-01-23 18:06:52 +000011111
vapier7f19c022007-02-17 14:46:31 +000011112 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11113 LIBS="$save_LIBS"
11114 else
11115 TARGET_READLINE_LIBS="$with_readline_lib"
11116 fi
11117
11118
drh8b727472009-01-19 18:18:40 +000011119# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011120if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011121 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011122else
vapier7f19c022007-02-17 14:46:31 +000011123 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011124fi
11125
vapier7f19c022007-02-17 14:46:31 +000011126 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011127 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11128if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011129 found="yes"
11130else
drh75897232000-05-29 14:26:00 +000011131
vapier7f19c022007-02-17 14:46:31 +000011132 found="no"
11133 if test "$cross_compiling" != yes; then
11134 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11135 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011136 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011138$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011139if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011140 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011141else
11142 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011143 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011144if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011145 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011146else
drh71eb93e2001-09-28 01:34:43 +000011147 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011148fi
11149fi
drhf922ca42015-05-14 15:39:18 +000011150eval ac_res=\$$as_ac_File
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011152$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011153if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011154 found=yes
drh75897232000-05-29 14:26:00 +000011155fi
11156
vapier7f19c022007-02-17 14:46:31 +000011157 if test "$found" = "yes"; then
11158 TARGET_READLINE_INC="-I$dir/$subdir"
11159 break
11160 fi
11161 done
11162 test "$found" = "yes" && break
11163 done
11164 fi
11165
11166fi
11167
11168
11169 else
11170 TARGET_READLINE_INC="$with_readline_inc"
11171 fi
11172
11173 if test x"$found" = xno; then
11174 TARGET_READLINE_LIBS=""
11175 TARGET_READLINE_INC=""
11176 TARGET_HAVE_READLINE=0
11177 else
11178 TARGET_HAVE_READLINE=1
11179 fi
11180fi
11181
11182
11183
11184
11185
drhe44b8352015-10-30 14:25:57 +000011186
vapier7f19c022007-02-17 14:46:31 +000011187##########
11188# Figure out what C libraries are required to compile programs
11189# that use "fdatasync()" function.
11190#
drhf922ca42015-05-14 15:39:18 +000011191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011192$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011193if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011194 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011195else
vapier7f19c022007-02-17 14:46:31 +000011196 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011198/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011199
drh8b727472009-01-19 18:18:40 +000011200/* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char fdatasync ();
11207int
11208main ()
11209{
drh8b727472009-01-19 18:18:40 +000011210return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011211 ;
11212 return 0;
11213}
11214_ACEOF
drh8b727472009-01-19 18:18:40 +000011215for ac_lib in '' rt; do
11216 if test -z "$ac_lib"; then
11217 ac_res="none required"
11218 else
11219 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011221 fi
drhf922ca42015-05-14 15:39:18 +000011222 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011223 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011224fi
drhf922ca42015-05-14 15:39:18 +000011225rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext
11227 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011228 break
drh866108f2008-05-13 00:57:21 +000011229fi
drh8b727472009-01-19 18:18:40 +000011230done
drhf922ca42015-05-14 15:39:18 +000011231if ${ac_cv_search_fdatasync+:} false; then :
11232
drh8b727472009-01-19 18:18:40 +000011233else
11234 ac_cv_search_fdatasync=no
11235fi
11236rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011237LIBS=$ac_func_search_save_LIBS
11238fi
drhf922ca42015-05-14 15:39:18 +000011239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011240$as_echo "$ac_cv_search_fdatasync" >&6; }
11241ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011242if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011244
vapier7f19c022007-02-17 14:46:31 +000011245fi
11246
a.rottmann84e63352003-03-24 09:42:16 +000011247
drh75897232000-05-29 14:26:00 +000011248#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011249# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011250# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011251if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011252 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011253fi
11254
drh24ec37c2021-03-09 13:53:39 +000011255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11256$as_echo_n "checking build type... " >&6; }
drh8fa622d2018-06-11 19:47:14 +000011257if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011258 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
drh24ec37c2021-03-09 13:53:39 +000011259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11260$as_echo "debug" >&6; }
tpoindex9d9f76c2005-01-03 21:28:56 +000011261else
11262 TARGET_DEBUG="-DNDEBUG"
drh24ec37c2021-03-09 13:53:39 +000011263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11264$as_echo "release" >&6; }
tpoindex9d9f76c2005-01-03 21:28:56 +000011265fi
11266
11267
11268#########
mlcreech94984912008-03-04 19:03:08 +000011269# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011270# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011271if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011272 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011273fi
11274
danb13d5c22020-07-07 19:24:34 +000011275if test "${enable_amalgamation}" = "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011276 USE_AMALGAMATION=0
11277fi
11278
11279
11280#########
drh56c93112017-11-24 16:55:48 +000011281# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11282for ac_header in zlib.h
11283do :
11284 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11285if test "x$ac_cv_header_zlib_h" = xyes; then :
11286 cat >>confdefs.h <<_ACEOF
11287#define HAVE_ZLIB_H 1
11288_ACEOF
11289
11290fi
11291
11292done
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11295$as_echo_n "checking for library containing deflate... " >&6; }
11296if ${ac_cv_search_deflate+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298else
11299 ac_func_search_save_LIBS=$LIBS
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h. */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char deflate ();
11310int
11311main ()
11312{
11313return deflate ();
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318for ac_lib in '' z; do
11319 if test -z "$ac_lib"; then
11320 ac_res="none required"
11321 else
11322 ac_res=-l$ac_lib
11323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11324 fi
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 ac_cv_search_deflate=$ac_res
11327fi
11328rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext
11330 if ${ac_cv_search_deflate+:} false; then :
11331 break
11332fi
11333done
11334if ${ac_cv_search_deflate+:} false; then :
11335
11336else
11337 ac_cv_search_deflate=no
11338fi
11339rm conftest.$ac_ext
11340LIBS=$ac_func_search_save_LIBS
11341fi
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11343$as_echo "$ac_cv_search_deflate" >&6; }
11344ac_res=$ac_cv_search_deflate
11345if test "$ac_res" != no; then :
11346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11347 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11348else
11349 HAVE_ZLIB=""
11350fi
11351
11352
11353
11354#########
mlcreecha4edab02008-03-06 04:14:17 +000011355# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011356# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011357if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011358 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011359else
drh8fa622d2018-06-11 19:47:14 +000011360 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011361fi
11362
drh8fa622d2018-06-11 19:47:14 +000011363if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011364 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011366$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011367if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011368 $as_echo_n "(cached) " >&6
11369else
11370 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011372/* end confdefs.h. */
11373
11374/* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377#ifdef __cplusplus
11378extern "C"
11379#endif
11380char dlopen ();
11381int
11382main ()
11383{
11384return dlopen ();
11385 ;
11386 return 0;
11387}
11388_ACEOF
11389for ac_lib in '' dl; do
11390 if test -z "$ac_lib"; then
11391 ac_res="none required"
11392 else
11393 ac_res=-l$ac_lib
11394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11395 fi
drhf922ca42015-05-14 15:39:18 +000011396 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011397 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011398fi
drhf922ca42015-05-14 15:39:18 +000011399rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext
11401 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011402 break
11403fi
11404done
drhf922ca42015-05-14 15:39:18 +000011405if ${ac_cv_search_dlopen+:} false; then :
11406
drhdbe4b882011-06-20 18:00:17 +000011407else
11408 ac_cv_search_dlopen=no
11409fi
11410rm conftest.$ac_ext
11411LIBS=$ac_func_search_save_LIBS
11412fi
drhf922ca42015-05-14 15:39:18 +000011413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011414$as_echo "$ac_cv_search_dlopen" >&6; }
11415ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011416if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11418
11419fi
11420
mlcreecha4edab02008-03-06 04:14:17 +000011421else
shanefbedede2008-07-22 05:05:01 +000011422 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011423fi
11424
drhc530b9c2016-07-25 11:27:22 +000011425##########
drhf6e904b2020-12-07 17:15:32 +000011426# Do we want to support math functions
11427#
drhe2ce8c42020-12-07 21:19:17 +000011428# Check whether --enable-math was given.
11429if test "${enable_math+set}" = set; then :
11430 enableval=$enable_math;
drhf6e904b2020-12-07 17:15:32 +000011431fi
11432
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11434$as_echo_n "checking whether to support math functions... " >&6; }
drh42c93b52021-03-09 16:35:14 +000011435if test "$enable_math" = "no"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
11438else
drhf6e904b2020-12-07 17:15:32 +000011439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440$as_echo "yes" >&6; }
11441 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11443$as_echo_n "checking for library containing ceil... " >&6; }
11444if ${ac_cv_search_ceil+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446else
11447 ac_func_search_save_LIBS=$LIBS
11448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449/* end confdefs.h. */
11450
11451/* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char ceil ();
11458int
11459main ()
11460{
11461return ceil ();
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466for ac_lib in '' m; do
11467 if test -z "$ac_lib"; then
11468 ac_res="none required"
11469 else
11470 ac_res=-l$ac_lib
11471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11472 fi
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 ac_cv_search_ceil=$ac_res
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext
11478 if ${ac_cv_search_ceil+:} false; then :
11479 break
11480fi
11481done
11482if ${ac_cv_search_ceil+:} false; then :
11483
11484else
11485 ac_cv_search_ceil=no
11486fi
11487rm conftest.$ac_ext
11488LIBS=$ac_func_search_save_LIBS
11489fi
11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11491$as_echo "$ac_cv_search_ceil" >&6; }
11492ac_res=$ac_cv_search_ceil
11493if test "$ac_res" != no; then :
11494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11495
11496fi
11497
11498fi
11499
drh9dbf96b2022-01-06 01:40:09 +000011500##########
11501# Do we want to support JSON functions
11502#
11503# Check whether --enable-json was given.
11504if test "${enable_json+set}" = set; then :
11505 enableval=$enable_json;
11506fi
11507
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
11509$as_echo_n "checking whether to support JSON functions... " >&6; }
11510if test "$enable_json" = "no"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
11513 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
11514else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516$as_echo "yes" >&6; }
11517fi
drh42c93b52021-03-09 16:35:14 +000011518
11519########
11520# The --enable-all argument is short-hand to enable
11521# multiple extensions.
11522# Check whether --enable-all was given.
11523if test "${enable_all+set}" = set; then :
11524 enableval=$enable_all;
11525fi
11526
11527
drhf6e904b2020-12-07 17:15:32 +000011528##########
drhc530b9c2016-07-25 11:27:22 +000011529# Do we want to support memsys3 and/or memsys5
11530#
drhc530b9c2016-07-25 11:27:22 +000011531# Check whether --enable-memsys5 was given.
11532if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011533 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011534fi
11535
11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11537$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011538if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011539 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541$as_echo "yes" >&6; }
11542else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
11545fi
drh5d513ba2016-07-25 11:57:21 +000011546# Check whether --enable-memsys3 was given.
11547if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011548 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011549fi
11550
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11552$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11553if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011554 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556$as_echo "yes" >&6; }
11557else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559$as_echo "no" >&6; }
11560fi
drhc530b9c2016-07-25 11:27:22 +000011561
mlcreechaac7b932008-04-01 02:45:22 +000011562#########
drhce1d9f52015-10-09 12:48:33 +000011563# See whether we should enable Full Text Search extensions
11564# Check whether --enable-fts3 was given.
11565if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011566 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011567fi
11568
drh24ec37c2021-03-09 13:53:39 +000011569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11570$as_echo_n "checking whether to support FTS3... " >&6; }
drhce1d9f52015-10-09 12:48:33 +000011571if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011572 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drh24ec37c2021-03-09 13:53:39 +000011573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11574$as_echo "yes" >&6; }
11575else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011578fi
11579# Check whether --enable-fts4 was given.
11580if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011581 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011582fi
11583
drh24ec37c2021-03-09 13:53:39 +000011584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11585$as_echo_n "checking whether to support FTS4... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011586if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
drh24ec37c2021-03-09 13:53:39 +000011587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11588$as_echo "yes" >&6; }
drh8c9ed052017-05-29 17:43:06 +000011589 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11591$as_echo_n "checking for library containing log... " >&6; }
11592if ${ac_cv_search_log+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594else
11595 ac_func_search_save_LIBS=$LIBS
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h. */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char log ();
11606int
11607main ()
11608{
11609return log ();
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614for ac_lib in '' m; do
11615 if test -z "$ac_lib"; then
11616 ac_res="none required"
11617 else
11618 ac_res=-l$ac_lib
11619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11620 fi
11621 if ac_fn_c_try_link "$LINENO"; then :
11622 ac_cv_search_log=$ac_res
11623fi
11624rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext
11626 if ${ac_cv_search_log+:} false; then :
11627 break
11628fi
11629done
11630if ${ac_cv_search_log+:} false; then :
11631
11632else
11633 ac_cv_search_log=no
11634fi
11635rm conftest.$ac_ext
11636LIBS=$ac_func_search_save_LIBS
11637fi
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11639$as_echo "$ac_cv_search_log" >&6; }
11640ac_res=$ac_cv_search_log
11641if test "$ac_res" != no; then :
11642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11643
11644fi
11645
drh24ec37c2021-03-09 13:53:39 +000011646else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011649fi
11650# Check whether --enable-fts5 was given.
11651if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011652 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011653fi
11654
drh24ec37c2021-03-09 13:53:39 +000011655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11656$as_echo_n "checking whether to support FTS5... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011657if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
drh24ec37c2021-03-09 13:53:39 +000011658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659$as_echo "yes" >&6; }
drh8c9ed052017-05-29 17:43:06 +000011660 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11662$as_echo_n "checking for library containing log... " >&6; }
11663if ${ac_cv_search_log+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665else
11666 ac_func_search_save_LIBS=$LIBS
11667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h. */
11669
11670/* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673#ifdef __cplusplus
11674extern "C"
11675#endif
11676char log ();
11677int
11678main ()
11679{
11680return log ();
11681 ;
11682 return 0;
11683}
11684_ACEOF
11685for ac_lib in '' m; do
11686 if test -z "$ac_lib"; then
11687 ac_res="none required"
11688 else
11689 ac_res=-l$ac_lib
11690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11691 fi
11692 if ac_fn_c_try_link "$LINENO"; then :
11693 ac_cv_search_log=$ac_res
11694fi
11695rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext
11697 if ${ac_cv_search_log+:} false; then :
11698 break
11699fi
11700done
11701if ${ac_cv_search_log+:} false; then :
11702
11703else
11704 ac_cv_search_log=no
11705fi
11706rm conftest.$ac_ext
11707LIBS=$ac_func_search_save_LIBS
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11710$as_echo "$ac_cv_search_log" >&6; }
11711ac_res=$ac_cv_search_log
11712if test "$ac_res" != no; then :
11713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11714
11715fi
11716
drh24ec37c2021-03-09 13:53:39 +000011717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011720fi
11721
11722#########
drh83bebdd2017-08-28 17:00:12 +000011723# See whether we should enable the LIMIT clause on UPDATE and DELETE
11724# statements.
11725# Check whether --enable-update-limit was given.
11726if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011727 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011728fi
11729
drh24ec37c2021-03-09 13:53:39 +000011730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11731$as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
drhb13c3a32020-06-15 14:38:57 +000011732if test "${enable_update_limit}" = "yes" ; then
drh83bebdd2017-08-28 17:00:12 +000011733 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
drh24ec37c2021-03-09 13:53:39 +000011734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735$as_echo "yes" >&6; }
11736else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
drh83bebdd2017-08-28 17:00:12 +000011739fi
11740
11741#########
drh748b8fd2018-05-25 19:22:47 +000011742# See whether we should enable GEOPOLY
11743# Check whether --enable-geopoly was given.
11744if test "${enable_geopoly+set}" = set; then :
11745 enableval=$enable_geopoly; enable_geopoly=yes
11746else
11747 enable_geopoly=no
11748fi
11749
drh24ec37c2021-03-09 13:53:39 +000011750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11751$as_echo_n "checking whether to support GEOPOLY... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011752if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
drh748b8fd2018-05-25 19:22:47 +000011753 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11754 enable_rtree=yes
drh24ec37c2021-03-09 13:53:39 +000011755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756$as_echo "yes" >&6; }
11757else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
drh748b8fd2018-05-25 19:22:47 +000011760fi
11761
11762#########
drhce1d9f52015-10-09 12:48:33 +000011763# See whether we should enable RTREE
11764# Check whether --enable-rtree was given.
11765if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011766 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011767fi
11768
drh24ec37c2021-03-09 13:53:39 +000011769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11770$as_echo_n "checking whether to support RTREE... " >&6; }
drhce1d9f52015-10-09 12:48:33 +000011771if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011772 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drh24ec37c2021-03-09 13:53:39 +000011773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11774$as_echo "yes" >&6; }
11775else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
drhce1d9f52015-10-09 12:48:33 +000011778fi
11779
11780#########
drh5e18d402016-05-03 13:14:18 +000011781# See whether we should enable the SESSION extension
11782# Check whether --enable-session was given.
11783if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011784 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011785fi
11786
drh24ec37c2021-03-09 13:53:39 +000011787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11788$as_echo_n "checking whether to support SESSION... " >&6; }
drh29368ea2019-12-28 13:17:11 +000011789if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011790 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11791 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh24ec37c2021-03-09 13:53:39 +000011792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793$as_echo "yes" >&6; }
11794else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
drh5e18d402016-05-03 13:14:18 +000011797fi
11798
11799#########
drh8c9ed052017-05-29 17:43:06 +000011800# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011801for option in $CFLAGS $CPPFLAGS
11802do
11803 case $option in
danielk197733a14782008-08-04 14:50:05 +000011804 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011805 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011806 esac
11807done
11808
11809
danielk197733a14782008-08-04 14:50:05 +000011810
shaneb1cd7302008-10-22 18:27:31 +000011811# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011812ac_temp_CFLAGS=""
11813for option in $CFLAGS
11814do
11815 case $option in
11816 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011817 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011818 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011819 esac
11820done
11821CFLAGS=$ac_temp_CFLAGS
11822
11823
shaneb1cd7302008-10-22 18:27:31 +000011824# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011825ac_temp_CPPFLAGS=""
11826for option in $CPPFLAGS
11827do
11828 case $option in
11829 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011830 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011831 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011832 esac
11833done
11834CPPFLAGS=$ac_temp_CPPFLAGS
11835
danielk197733a14782008-08-04 14:50:05 +000011836
drh8b727472009-01-19 18:18:40 +000011837# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011838ac_temp_BUILD_CFLAGS=""
11839for option in $BUILD_CFLAGS
11840do
11841 case $option in
11842 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011843 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011844 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011845 esac
11846done
11847BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11848
11849
11850#########
11851# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011852# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011853if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011854 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011855fi
11856
mlcreechaac7b932008-04-01 02:45:22 +000011857if test "${use_gcov}" = "yes" ; then
11858 USE_GCOV=1
11859else
11860 USE_GCOV=0
11861fi
11862
11863
drh4a0a98d2021-11-29 17:55:12 +000011864#########
11865# Enable/disabled amalagamation line macros
11866########
11867AMALGAMATION_LINE_MACROS=--linemacros=0
11868if test "${amalgamation_line_macros}" = "yes" ; then
11869 AMALGAMATION_LINE_MACROS=--linemacros=1
11870fi
11871if test "${amalgamation_line_macros}" = "no" ; then
11872 AMALGAMATION_LINE_MACROS=--linemacros=0
11873fi
11874
danielk197733a14782008-08-04 14:50:05 +000011875
drh2dfbbca2000-07-28 14:32:48 +000011876#########
mlcreechb87057f2008-03-06 07:19:20 +000011877# Output the config header
drh8b727472009-01-19 18:18:40 +000011878ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011879
11880
11881#########
drh75897232000-05-29 14:26:00 +000011882# Generate the output files.
11883#
mlcreechdf59c7c2008-03-06 07:51:15 +000011884
drh8b727472009-01-19 18:18:40 +000011885ac_config_files="$ac_config_files Makefile sqlite3.pc"
11886
drh71eb93e2001-09-28 01:34:43 +000011887cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011888# This file is a shell script that caches the results of configure
11889# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011890# scripts and configure runs, see configure's option --config-cache.
11891# It is not useful on other systems. If it contains results you don't
11892# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011893#
drh71eb93e2001-09-28 01:34:43 +000011894# config.status only pays attention to the cache file if you give it
11895# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011896#
a.rottmann84e63352003-03-24 09:42:16 +000011897# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011898# loading this file, other *unset* `ac_cv_foo' will be assigned the
11899# following values.
11900
11901_ACEOF
11902
drh75897232000-05-29 14:26:00 +000011903# The following way of writing the cache mishandles newlines in values,
11904# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011905# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011906# Ultrix sh set writes to stderr and can't be redirected directly,
11907# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011908(
11909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11910 eval ac_val=\$$ac_var
11911 case $ac_val in #(
11912 *${as_nl}*)
11913 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11915$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011916 esac
11917 case $ac_var in #(
11918 _ | IFS | as_nl) ;; #(
11919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011920 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011921 esac ;;
11922 esac
11923 done
11924
drh71eb93e2001-09-28 01:34:43 +000011925 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11927 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011928 # `set' does not quote correctly, so add quotes: double-quote
11929 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011930 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011931 "s/'/'\\\\''/g;
11932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011933 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011934 *)
11935 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011937 ;;
drh8b727472009-01-19 18:18:40 +000011938 esac |
11939 sort
11940) |
drh71eb93e2001-09-28 01:34:43 +000011941 sed '
drh8b727472009-01-19 18:18:40 +000011942 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011943 t clear
drh8b727472009-01-19 18:18:40 +000011944 :clear
drh71eb93e2001-09-28 01:34:43 +000011945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11946 t end
drh8b727472009-01-19 18:18:40 +000011947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11948 :end' >>confcache
11949if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11950 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011951 if test "x$cache_file" != "x/dev/null"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011953$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011954 if test ! -f "$cache_file" || test -h "$cache_file"; then
11955 cat confcache >"$cache_file"
11956 else
11957 case $cache_file in #(
11958 */* | ?:*)
11959 mv -f confcache "$cache_file"$$ &&
11960 mv -f "$cache_file"$$ "$cache_file" ;; #(
11961 *)
11962 mv -f confcache "$cache_file" ;;
11963 esac
11964 fi
11965 fi
drh75897232000-05-29 14:26:00 +000011966 else
drhf922ca42015-05-14 15:39:18 +000011967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011968$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011969 fi
11970fi
11971rm -f confcache
11972
drh75897232000-05-29 14:26:00 +000011973test "x$prefix" = xNONE && prefix=$ac_default_prefix
11974# Let make expand exec_prefix.
11975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11976
mlcreechb87057f2008-03-06 07:19:20 +000011977DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011978
11979ac_libobjs=
11980ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011981U=
a.rottmann84e63352003-03-24 09:42:16 +000011982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11983 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11987 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011990done
11991LIBOBJS=$ac_libobjs
11992
11993LTLIBOBJS=$ac_ltlibobjs
11994
11995
11996
drhf922ca42015-05-14 15:39:18 +000011997: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011998ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011999ac_clean_files_save=$ac_clean_files
12000ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000012001{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000012002$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000012003as_write_fail=0
12004cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012005#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000012006# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000012007# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000012008# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000012009# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000012010
drh71eb93e2001-09-28 01:34:43 +000012011debug=false
a.rottmann84e63352003-03-24 09:42:16 +000012012ac_cs_recheck=false
12013ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000012014
drhf922ca42015-05-14 15:39:18 +000012015SHELL=\${CONFIG_SHELL-$SHELL}
12016export SHELL
12017_ASEOF
12018cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12019## -------------------- ##
12020## M4sh Initialization. ##
12021## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000012022
drh8b727472009-01-19 18:18:40 +000012023# Be more Bourne compatible
12024DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000012025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000012026 emulate sh
12027 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000012028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000012029 # is contrary to our usage. Disable this feature.
12030 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000012031 setopt NO_GLOB_SUBST
12032else
drhf922ca42015-05-14 15:39:18 +000012033 case `(set -o) 2>/dev/null` in #(
12034 *posix*) :
12035 set -o posix ;; #(
12036 *) :
12037 ;;
drh8b727472009-01-19 18:18:40 +000012038esac
a.rottmann84e63352003-03-24 09:42:16 +000012039fi
drh8b727472009-01-19 18:18:40 +000012040
12041
drh8b727472009-01-19 18:18:40 +000012042as_nl='
12043'
12044export as_nl
12045# Printing a long string crashes Solaris 7 /usr/bin/printf.
12046as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12048as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000012049# Prefer a ksh shell builtin over an external printf program on Solaris,
12050# but without wasting forks for bash or zsh.
12051if test -z "$BASH_VERSION$ZSH_VERSION" \
12052 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12053 as_echo='print -r --'
12054 as_echo_n='print -rn --'
12055elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000012056 as_echo='printf %s\n'
12057 as_echo_n='printf %s'
12058else
12059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12061 as_echo_n='/usr/ucb/echo -n'
12062 else
12063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12064 as_echo_n_body='eval
12065 arg=$1;
drhf922ca42015-05-14 15:39:18 +000012066 case $arg in #(
drh8b727472009-01-19 18:18:40 +000012067 *"$as_nl"*)
12068 expr "X$arg" : "X\\(.*\\)$as_nl";
12069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12070 esac;
12071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12072 '
12073 export as_echo_n_body
12074 as_echo_n='sh -c $as_echo_n_body as_echo'
12075 fi
12076 export as_echo_body
12077 as_echo='sh -c $as_echo_body as_echo'
12078fi
12079
12080# The user is always right.
12081if test "${PATH_SEPARATOR+set}" != set; then
12082 PATH_SEPARATOR=:
12083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12085 PATH_SEPARATOR=';'
12086 }
12087fi
a.rottmann84e63352003-03-24 09:42:16 +000012088
mlcreech94984912008-03-04 19:03:08 +000012089
drh8b727472009-01-19 18:18:40 +000012090# IFS
12091# We need space, tab and new line, in precisely that order. Quoting is
12092# there to prevent editors from complaining about space-tab.
12093# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12094# splitting by setting IFS to empty value.)
12095IFS=" "" $as_nl"
12096
12097# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000012098as_myself=
12099case $0 in #((
drh8b727472009-01-19 18:18:40 +000012100 *[\\/]* ) as_myself=$0 ;;
12101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000012106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12107 done
drh8b727472009-01-19 18:18:40 +000012108IFS=$as_save_IFS
12109
12110 ;;
12111esac
12112# We did not find ourselves, most probably we were run as `sh COMMAND'
12113# in which case we are not to be found in the path.
12114if test "x$as_myself" = x; then
12115 as_myself=$0
12116fi
12117if test ! -f "$as_myself"; then
12118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000012119 exit 1
drh8b727472009-01-19 18:18:40 +000012120fi
12121
drhf922ca42015-05-14 15:39:18 +000012122# Unset variables that we do not need and which cause bugs (e.g. in
12123# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12124# suppresses any "Segmentation fault" message there. '((' could
12125# trigger a bug in pdksh 5.2.14.
12126for as_var in BASH_ENV ENV MAIL MAILPATH
12127do eval test x\${$as_var+set} = xset \
12128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000012129done
mlcreech94984912008-03-04 19:03:08 +000012130PS1='$ '
12131PS2='> '
12132PS4='+ '
12133
12134# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000012135LC_ALL=C
12136export LC_ALL
12137LANGUAGE=C
12138export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000012139
drhf922ca42015-05-14 15:39:18 +000012140# CDPATH.
12141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12142
12143
12144# as_fn_error STATUS ERROR [LINENO LOG_FD]
12145# ----------------------------------------
12146# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12147# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12148# script with STATUS, using 1 if that was 0.
12149as_fn_error ()
12150{
12151 as_status=$1; test $as_status -eq 0 && as_status=1
12152 if test "$4"; then
12153 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12155 fi
12156 $as_echo "$as_me: error: $2" >&2
12157 as_fn_exit $as_status
12158} # as_fn_error
12159
12160
12161# as_fn_set_status STATUS
12162# -----------------------
12163# Set $? to STATUS, without forking.
12164as_fn_set_status ()
12165{
12166 return $1
12167} # as_fn_set_status
12168
12169# as_fn_exit STATUS
12170# -----------------
12171# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12172as_fn_exit ()
12173{
12174 set +e
12175 as_fn_set_status $1
12176 exit $1
12177} # as_fn_exit
12178
12179# as_fn_unset VAR
12180# ---------------
12181# Portably unset VAR.
12182as_fn_unset ()
12183{
12184 { eval $1=; unset $1;}
12185}
12186as_unset=as_fn_unset
12187# as_fn_append VAR VALUE
12188# ----------------------
12189# Append the text in VALUE to the end of the definition contained in VAR. Take
12190# advantage of any shell optimizations that allow amortized linear growth over
12191# repeated appends, instead of the typical quadratic growth present in naive
12192# implementations.
12193if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12194 eval 'as_fn_append ()
12195 {
12196 eval $1+=\$2
12197 }'
12198else
12199 as_fn_append ()
12200 {
12201 eval $1=\$$1\$2
12202 }
12203fi # as_fn_append
12204
12205# as_fn_arith ARG...
12206# ------------------
12207# Perform arithmetic evaluation on the ARGs, and store the result in the
12208# global $as_val. Take advantage of shells that can avoid forks. The arguments
12209# must be portable across $(()) and expr.
12210if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12211 eval 'as_fn_arith ()
12212 {
12213 as_val=$(( $* ))
12214 }'
12215else
12216 as_fn_arith ()
12217 {
12218 as_val=`expr "$@" || test $? -eq 1`
12219 }
12220fi # as_fn_arith
12221
12222
drh8b727472009-01-19 18:18:40 +000012223if expr a : '\(a\)' >/dev/null 2>&1 &&
12224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012225 as_expr=expr
12226else
12227 as_expr=false
12228fi
12229
drh8b727472009-01-19 18:18:40 +000012230if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012231 as_basename=basename
12232else
12233 as_basename=false
12234fi
12235
drhf922ca42015-05-14 15:39:18 +000012236if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12237 as_dirname=dirname
12238else
12239 as_dirname=false
12240fi
mlcreech94984912008-03-04 19:03:08 +000012241
drh8b727472009-01-19 18:18:40 +000012242as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012243$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12244 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12246$as_echo X/"$0" |
12247 sed '/^.*\/\([^/][^/]*\)\/*$/{
12248 s//\1/
12249 q
12250 }
12251 /^X\/\(\/\/\)$/{
12252 s//\1/
12253 q
12254 }
12255 /^X\/\(\/\).*/{
12256 s//\1/
12257 q
12258 }
12259 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012260
drhf922ca42015-05-14 15:39:18 +000012261# Avoid depending upon Character Ranges.
12262as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12263as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12264as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12265as_cr_digits='0123456789'
12266as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012267
drh8b727472009-01-19 18:18:40 +000012268ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012269case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012270-n*)
drhf922ca42015-05-14 15:39:18 +000012271 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012272 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012273 xy) ECHO_C='\c';;
12274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12275 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012276 esac;;
12277*)
12278 ECHO_N='-n';;
12279esac
drh71eb93e2001-09-28 01:34:43 +000012280
12281rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012282if test -d conf$$.dir; then
12283 rm -f conf$$.dir/conf$$.file
12284else
12285 rm -f conf$$.dir
12286 mkdir conf$$.dir 2>/dev/null
12287fi
12288if (echo >conf$$.file) 2>/dev/null; then
12289 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012290 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012291 # ... but there are two gotchas:
12292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012294 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012296 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012297 elif ln conf$$.file conf$$ 2>/dev/null; then
12298 as_ln_s=ln
12299 else
drhf922ca42015-05-14 15:39:18 +000012300 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012301 fi
drh71eb93e2001-09-28 01:34:43 +000012302else
drhf922ca42015-05-14 15:39:18 +000012303 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012304fi
drh8b727472009-01-19 18:18:40 +000012305rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12306rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012307
drhf922ca42015-05-14 15:39:18 +000012308
12309# as_fn_mkdir_p
12310# -------------
12311# Create "$as_dir" as a directory, including parents if necessary.
12312as_fn_mkdir_p ()
12313{
12314
12315 case $as_dir in #(
12316 -*) as_dir=./$as_dir;;
12317 esac
12318 test -d "$as_dir" || eval $as_mkdir_p || {
12319 as_dirs=
12320 while :; do
12321 case $as_dir in #(
12322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12323 *) as_qdir=$as_dir;;
12324 esac
12325 as_dirs="'$as_qdir' $as_dirs"
12326 as_dir=`$as_dirname -- "$as_dir" ||
12327$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12328 X"$as_dir" : 'X\(//\)[^/]' \| \
12329 X"$as_dir" : 'X\(//\)$' \| \
12330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12331$as_echo X"$as_dir" |
12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12333 s//\1/
12334 q
12335 }
12336 /^X\(\/\/\)[^/].*/{
12337 s//\1/
12338 q
12339 }
12340 /^X\(\/\/\)$/{
12341 s//\1/
12342 q
12343 }
12344 /^X\(\/\).*/{
12345 s//\1/
12346 q
12347 }
12348 s/.*/./; q'`
12349 test -d "$as_dir" && break
12350 done
12351 test -z "$as_dirs" || eval "mkdir $as_dirs"
12352 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12353
12354
12355} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012356if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012357 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012358else
a.rottmann964dbb12004-02-26 19:47:42 +000012359 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012360 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012361fi
12362
drhf922ca42015-05-14 15:39:18 +000012363
12364# as_fn_executable_p FILE
12365# -----------------------
12366# Test if FILE is an executable regular file.
12367as_fn_executable_p ()
12368{
12369 test -f "$1" && test -x "$1"
12370} # as_fn_executable_p
12371as_test_x='test -x'
12372as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012373
12374# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012375as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012376
12377# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012378as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012379
drh71eb93e2001-09-28 01:34:43 +000012380
drh71eb93e2001-09-28 01:34:43 +000012381exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012382## ----------------------------------- ##
12383## Main body of $CONFIG_STATUS script. ##
12384## ----------------------------------- ##
12385_ASEOF
12386test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012387
drhf922ca42015-05-14 15:39:18 +000012388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12389# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012390# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012391# values after options handling.
12392ac_log="
drhfc4fe5a2022-02-24 01:08:53 +000012393This file was extended by sqlite $as_me 3.39.0, which was
drhf922ca42015-05-14 15:39:18 +000012394generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012395
12396 CONFIG_FILES = $CONFIG_FILES
12397 CONFIG_HEADERS = $CONFIG_HEADERS
12398 CONFIG_LINKS = $CONFIG_LINKS
12399 CONFIG_COMMANDS = $CONFIG_COMMANDS
12400 $ $0 $@
12401
drh8b727472009-01-19 18:18:40 +000012402on `(hostname || uname -n) 2>/dev/null | sed 1q`
12403"
12404
drh71eb93e2001-09-28 01:34:43 +000012405_ACEOF
12406
drhf922ca42015-05-14 15:39:18 +000012407case $ac_config_files in *"
12408"*) set x $ac_config_files; shift; ac_config_files=$*;;
12409esac
12410
12411case $ac_config_headers in *"
12412"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12413esac
12414
12415
drh8b727472009-01-19 18:18:40 +000012416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012417# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012418config_files="$ac_config_files"
12419config_headers="$ac_config_headers"
12420config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012421
drh8b727472009-01-19 18:18:40 +000012422_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012423
drh8b727472009-01-19 18:18:40 +000012424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012425ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012426\`$as_me' instantiates files and other configuration actions
12427from templates according to the current configuration. Unless the files
12428and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012429
drhf922ca42015-05-14 15:39:18 +000012430Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012431
12432 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012433 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012434 --config print configuration, then exit
12435 -q, --quiet, --silent
12436 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012437 -d, --debug don't remove temporary files
12438 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012439 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012440 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012441 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012442 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012443
12444Configuration files:
12445$config_files
12446
mlcreechb87057f2008-03-06 07:19:20 +000012447Configuration headers:
12448$config_headers
12449
mlcreech636a9952008-05-05 22:52:56 +000012450Configuration commands:
12451$config_commands
12452
drhf922ca42015-05-14 15:39:18 +000012453Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012454
mlcreech94984912008-03-04 19:03:08 +000012455_ACEOF
drh8b727472009-01-19 18:18:40 +000012456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012457ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012458ac_cs_version="\\
drhfc4fe5a2022-02-24 01:08:53 +000012459sqlite config.status 3.39.0
drhf922ca42015-05-14 15:39:18 +000012460configured by $0, generated by GNU Autoconf 2.69,
12461 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012462
drhf922ca42015-05-14 15:39:18 +000012463Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012464This config.status script is free software; the Free Software Foundation
12465gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012466
12467ac_pwd='$ac_pwd'
12468srcdir='$srcdir'
12469INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012470test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012471_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012472
drh8b727472009-01-19 18:18:40 +000012473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012475ac_need_defaults=:
12476while test $# != 0
12477do
12478 case $1 in
drhf922ca42015-05-14 15:39:18 +000012479 --*=?*)
drh8b727472009-01-19 18:18:40 +000012480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012482 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012483 ;;
drhf922ca42015-05-14 15:39:18 +000012484 --*=)
12485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12486 ac_optarg=
12487 ac_shift=:
12488 ;;
drh8b727472009-01-19 18:18:40 +000012489 *)
a.rottmann84e63352003-03-24 09:42:16 +000012490 ac_option=$1
12491 ac_optarg=$2
12492 ac_shift=shift
12493 ;;
drh75897232000-05-29 14:26:00 +000012494 esac
12495
a.rottmann84e63352003-03-24 09:42:16 +000012496 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012497 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012499 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12501 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012502 --config | --confi | --conf | --con | --co | --c )
12503 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012504 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012505 debug=: ;;
12506 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012507 $ac_shift
drh8b727472009-01-19 18:18:40 +000012508 case $ac_optarg in
12509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012510 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012511 esac
drhf922ca42015-05-14 15:39:18 +000012512 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012513 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012514 --header | --heade | --head | --hea )
12515 $ac_shift
drh8b727472009-01-19 18:18:40 +000012516 case $ac_optarg in
12517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12518 esac
drhf922ca42015-05-14 15:39:18 +000012519 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012520 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012521 --he | --h)
12522 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012523 as_fn_error $? "ambiguous option: \`$1'
12524Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012525 --help | --hel | -h )
12526 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12529 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012530
drh71eb93e2001-09-28 01:34:43 +000012531 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012532 -*) as_fn_error $? "unrecognized option: \`$1'
12533Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012534
drhf922ca42015-05-14 15:39:18 +000012535 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012536 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012537
12538 esac
12539 shift
12540done
12541
a.rottmann84e63352003-03-24 09:42:16 +000012542ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012543
a.rottmann84e63352003-03-24 09:42:16 +000012544if $ac_cs_silent; then
12545 exec 6>/dev/null
12546 ac_configure_extra_args="$ac_configure_extra_args --silent"
12547fi
drh71eb93e2001-09-28 01:34:43 +000012548
12549_ACEOF
drh8b727472009-01-19 18:18:40 +000012550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012551if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012553 shift
12554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12555 CONFIG_SHELL='$SHELL'
12556 export CONFIG_SHELL
12557 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012558fi
drh71eb93e2001-09-28 01:34:43 +000012559
a.rottmann84e63352003-03-24 09:42:16 +000012560_ACEOF
drh8b727472009-01-19 18:18:40 +000012561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12562exec 5>>config.log
12563{
12564 echo
12565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12566## Running $as_me. ##
12567_ASBOX
12568 $as_echo "$ac_log"
12569} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012570
drh8b727472009-01-19 18:18:40 +000012571_ACEOF
12572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012573#
drh8b727472009-01-19 18:18:40 +000012574# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012575#
12576
12577
12578# The HP-UX ksh and POSIX shell print the target directory to stdout
12579# if CDPATH is set.
12580(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12581
12582sed_quote_subst='$sed_quote_subst'
12583double_quote_subst='$double_quote_subst'
12584delay_variable_subst='$delay_variable_subst'
12585macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12586macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12587enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12588enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12589pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12590enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12591host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12592host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12593host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12594build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12595build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12596build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12597SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12598Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12599GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12600EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12601FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12602LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12603NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12604LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12605max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12606ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12607exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12608lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12609lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12610lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12611reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12612reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012613OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012614deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12615file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12616AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12617AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12618STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12619RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12620old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12621old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12622old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12623CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12624CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12625compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12626GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12627lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12628lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12629lt_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"`'
12630lt_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"`'
12631objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12632SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12633ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12634MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12635lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12636lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12637lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12638lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12639lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12640need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12641DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12642NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12643LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12644OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12645OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12646libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12647shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12648extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12649archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12650enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12651export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12652whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12653compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12654old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12655old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12656archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12657archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12658module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12659module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12660with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12661allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12662no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12663hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12664hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12665hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12666hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12667hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12668hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12669hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12670hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12671inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12672link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12673fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12674always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12675export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12676exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12677include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12678prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12679file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12680variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12681need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12682need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12683version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12684runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12685shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12686shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12687libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12688library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12689soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12690postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12691postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12692finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12693finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12694hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12695sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12696sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12697hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12698enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12699enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12700enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12701old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12702striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12703
12704LTCC='$LTCC'
12705LTCFLAGS='$LTCFLAGS'
12706compiler='$compiler_DEFAULT'
12707
12708# Quote evaled strings.
12709for var in SED \
12710GREP \
12711EGREP \
12712FGREP \
12713LD \
12714NM \
12715LN_S \
12716lt_SP2NL \
12717lt_NL2SP \
12718reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012719OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012720deplibs_check_method \
12721file_magic_cmd \
12722AR \
12723AR_FLAGS \
12724STRIP \
12725RANLIB \
12726CC \
12727CFLAGS \
12728compiler \
12729lt_cv_sys_global_symbol_pipe \
12730lt_cv_sys_global_symbol_to_cdecl \
12731lt_cv_sys_global_symbol_to_c_name_address \
12732lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12733SHELL \
12734ECHO \
12735lt_prog_compiler_no_builtin_flag \
12736lt_prog_compiler_wl \
12737lt_prog_compiler_pic \
12738lt_prog_compiler_static \
12739lt_cv_prog_compiler_c_o \
12740need_locks \
12741DSYMUTIL \
12742NMEDIT \
12743LIPO \
12744OTOOL \
12745OTOOL64 \
12746shrext_cmds \
12747export_dynamic_flag_spec \
12748whole_archive_flag_spec \
12749compiler_needs_object \
12750with_gnu_ld \
12751allow_undefined_flag \
12752no_undefined_flag \
12753hardcode_libdir_flag_spec \
12754hardcode_libdir_flag_spec_ld \
12755hardcode_libdir_separator \
12756fix_srcfile_path \
12757exclude_expsyms \
12758include_expsyms \
12759file_list_spec \
12760variables_saved_for_relink \
12761libname_spec \
12762library_names_spec \
12763soname_spec \
12764finish_eval \
12765old_striplib \
12766striplib; do
12767 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12768 *[\\\\\\\`\\"\\\$]*)
12769 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12770 ;;
12771 *)
12772 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12773 ;;
12774 esac
12775done
12776
12777# Double-quote double-evaled strings.
12778for var in reload_cmds \
12779old_postinstall_cmds \
12780old_postuninstall_cmds \
12781old_archive_cmds \
12782extract_expsyms_cmds \
12783old_archive_from_new_cmds \
12784old_archive_from_expsyms_cmds \
12785archive_cmds \
12786archive_expsym_cmds \
12787module_cmds \
12788module_expsym_cmds \
12789export_symbols_cmds \
12790prelink_cmds \
12791postinstall_cmds \
12792postuninstall_cmds \
12793finish_cmds \
12794sys_lib_search_path_spec \
12795sys_lib_dlsearch_path_spec; do
12796 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12797 *[\\\\\\\`\\"\\\$]*)
12798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12799 ;;
12800 *)
12801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12802 ;;
12803 esac
12804done
12805
12806# Fix-up fallback echo if it was mangled by the above quoting rules.
12807case \$lt_ECHO in
12808*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12809 ;;
12810esac
12811
12812ac_aux_dir='$ac_aux_dir'
12813xsi_shell='$xsi_shell'
12814lt_shell_append='$lt_shell_append'
12815
12816# See if we are running on zsh, and set the options which allow our
12817# commands through without removal of \ escapes INIT.
12818if test -n "\${ZSH_VERSION+set}" ; then
12819 setopt NO_GLOB_SUBST
12820fi
12821
12822
12823 PACKAGE='$PACKAGE'
12824 VERSION='$VERSION'
12825 TIMESTAMP='$TIMESTAMP'
12826 RM='$RM'
12827 ofile='$ofile'
12828
12829
12830
12831
mlcreech94984912008-03-04 19:03:08 +000012832_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012833
drh8b727472009-01-19 18:18:40 +000012834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012835
drh8b727472009-01-19 18:18:40 +000012836# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012837for ac_config_target in $ac_config_targets
12838do
drh8b727472009-01-19 18:18:40 +000012839 case $ac_config_target in
12840 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12841 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12842 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12843 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12844
drhf922ca42015-05-14 15:39:18 +000012845 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012846 esac
12847done
12848
drh8b727472009-01-19 18:18:40 +000012849
drh71eb93e2001-09-28 01:34:43 +000012850# If the user did not use the arguments to specify the items to instantiate,
12851# then the envvar interface is used. Set only those that are not.
12852# We use the long form for the default assignment because of an extremely
12853# bizarre bug on SunOS 4.1.3.
12854if $ac_need_defaults; then
12855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012857 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012858fi
12859
a.rottmann84e63352003-03-24 09:42:16 +000012860# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012861# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012862# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012863# Hook for its removal unless debugging.
12864# Note that there is a small window in which the directory will not be cleaned:
12865# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012866$debug ||
12867{
drhf922ca42015-05-14 15:39:18 +000012868 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012869 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012870 : "${ac_tmp:=$tmp}"
12871 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012872' 0
drhf922ca42015-05-14 15:39:18 +000012873 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012874}
drh71eb93e2001-09-28 01:34:43 +000012875# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012876
drh71eb93e2001-09-28 01:34:43 +000012877{
drh8b727472009-01-19 18:18:40 +000012878 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012879 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012880} ||
12881{
drh8b727472009-01-19 18:18:40 +000012882 tmp=./conf$$-$RANDOM
12883 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012884} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12885ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012886
drh8b727472009-01-19 18:18:40 +000012887# Set up the scripts for CONFIG_FILES section.
12888# No need to generate them if there are no CONFIG_FILES.
12889# This happens for instance with `./config.status config.h'.
12890if test -n "$CONFIG_FILES"; then
12891
12892
drhf922ca42015-05-14 15:39:18 +000012893ac_cr=`echo X | tr X '\015'`
12894# On cygwin, bash can eat \r inside `` if the user requested igncr.
12895# But we know of no other shell where ac_cr would be empty at this
12896# point, so we can use a bashism as a fallback.
12897if test "x$ac_cr" = x; then
12898 eval ac_cr=\$\'\\r\'
12899fi
drh8b727472009-01-19 18:18:40 +000012900ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12901if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012902 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012903else
12904 ac_cs_awk_cr=$ac_cr
12905fi
12906
drhf922ca42015-05-14 15:39:18 +000012907echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012908_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012909
mlcreech94984912008-03-04 19:03:08 +000012910
drh8b727472009-01-19 18:18:40 +000012911{
12912 echo "cat >conf$$subs.awk <<_ACEOF" &&
12913 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12914 echo "_ACEOF"
12915} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12917ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012918ac_delim='%!_!# '
12919for ac_last_try in false false false false false :; do
12920 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012922
drhf922ca42015-05-14 15:39:18 +000012923 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12924 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012925 break
12926 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012928 else
12929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012930 fi
drh8b727472009-01-19 18:18:40 +000012931done
12932rm -f conf$$subs.sh
12933
12934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012935cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012936_ACEOF
12937sed -n '
12938h
12939s/^/S["/; s/!.*/"]=/
12940p
12941g
12942s/^[^!]*!//
12943:repl
12944t repl
12945s/'"$ac_delim"'$//
12946t delim
12947:nl
12948h
drhf922ca42015-05-14 15:39:18 +000012949s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012950t more1
12951s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12952p
12953n
12954b repl
12955:more1
12956s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12957p
12958g
12959s/.\{148\}//
12960t nl
12961:delim
12962h
drhf922ca42015-05-14 15:39:18 +000012963s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012964t more2
12965s/["\\]/\\&/g; s/^/"/; s/$/"/
12966p
12967b
12968:more2
12969s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12970p
12971g
12972s/.\{148\}//
12973t delim
12974' <conf$$subs.awk | sed '
12975/^[^""]/{
12976 N
12977 s/\n//
12978}
12979' >>$CONFIG_STATUS || ac_write_fail=1
12980rm -f conf$$subs.awk
12981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982_ACAWK
drhf922ca42015-05-14 15:39:18 +000012983cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012984 for (key in S) S_is_set[key] = 1
12985 FS = ""
12986
12987}
12988{
12989 line = $ 0
12990 nfields = split(line, field, "@")
12991 substed = 0
12992 len = length(field[1])
12993 for (i = 2; i < nfields; i++) {
12994 key = field[i]
12995 keylen = length(key)
12996 if (S_is_set[key]) {
12997 value = S[key]
12998 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12999 len += length(value) + length(field[++i])
13000 substed = 1
13001 } else
13002 len += 1 + keylen
13003 }
13004
13005 print line
13006}
13007
13008_ACAWK
13009_ACEOF
13010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13011if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13012 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13013else
13014 cat
drhf922ca42015-05-14 15:39:18 +000013015fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13016 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013017_ACEOF
13018
drhf922ca42015-05-14 15:39:18 +000013019# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13020# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000013021# trailing colons and then remove the whole line if VPATH becomes empty
13022# (actually we leave an empty line to preserve line numbers).
13023if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000013024 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13025h
13026s///
13027s/^/:/
13028s/[ ]*$/:/
13029s/:\$(srcdir):/:/g
13030s/:\${srcdir}:/:/g
13031s/:@srcdir@:/:/g
13032s/^:*//
drh8b727472009-01-19 18:18:40 +000013033s/:*$//
drhf922ca42015-05-14 15:39:18 +000013034x
13035s/\(=[ ]*\).*/\1/
13036G
13037s/\n//
drh8b727472009-01-19 18:18:40 +000013038s/^[^=]*=[ ]*$//
13039}'
13040fi
13041
13042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013043fi # test -n "$CONFIG_FILES"
13044
drh8b727472009-01-19 18:18:40 +000013045# Set up the scripts for CONFIG_HEADERS section.
13046# No need to generate them if there are no CONFIG_HEADERS.
13047# This happens for instance with `./config.status Makefile'.
13048if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000013049cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000013050BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000013051_ACEOF
drh8b727472009-01-19 18:18:40 +000013052
13053# Transform confdefs.h into an awk script `defines.awk', embedded as
13054# here-document in config.status, that substitutes the proper values into
13055# config.h.in to produce config.h.
13056
13057# Create a delimiter string that does not exist in confdefs.h, to ease
13058# handling of long lines.
13059ac_delim='%!_!# '
13060for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000013061 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13062 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000013063 break
13064 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000013065 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013066 else
13067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13068 fi
13069done
13070
13071# For the awk script, D is an array of macro values keyed by name,
13072# likewise P contains macro parameters if any. Preserve backslash
13073# newline sequences.
13074
13075ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13076sed -n '
13077s/.\{148\}/&'"$ac_delim"'/g
13078t rset
13079:rset
13080s/^[ ]*#[ ]*define[ ][ ]*/ /
13081t def
13082d
13083:def
13084s/\\$//
13085t bsnl
13086s/["\\]/\\&/g
13087s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13088D["\1"]=" \3"/p
13089s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13090d
13091:bsnl
13092s/["\\]/\\&/g
13093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13094D["\1"]=" \3\\\\\\n"\\/p
13095t cont
13096s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13097t cont
13098d
13099:cont
13100n
13101s/.\{148\}/&'"$ac_delim"'/g
13102t clear
13103:clear
13104s/\\$//
13105t bsnlc
13106s/["\\]/\\&/g; s/^/"/; s/$/"/p
13107d
13108:bsnlc
13109s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13110b cont
13111' <confdefs.h | sed '
13112s/'"$ac_delim"'/"\\\
13113"/g' >>$CONFIG_STATUS || ac_write_fail=1
13114
13115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13116 for (key in D) D_is_set[key] = 1
13117 FS = ""
13118}
13119/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13120 line = \$ 0
13121 split(line, arg, " ")
13122 if (arg[1] == "#") {
13123 defundef = arg[2]
13124 mac1 = arg[3]
13125 } else {
13126 defundef = substr(arg[1], 2)
13127 mac1 = arg[2]
13128 }
13129 split(mac1, mac2, "(") #)
13130 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000013131 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000013132 if (D_is_set[macro]) {
13133 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000013134 print prefix "define", macro P[macro] D[macro]
13135 next
13136 } else {
13137 # Replace #undef with comments. This is necessary, for example,
13138 # in the case of _POSIX_SOURCE, which is predefined and required
13139 # on some systems where configure will not decide to define it.
13140 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000013141 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000013142 next
13143 }
13144 }
13145}
13146{ print }
13147_ACAWK
13148_ACEOF
13149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013150 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013151fi # test -n "$CONFIG_HEADERS"
13152
13153
13154eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13155shift
13156for ac_tag
13157do
13158 case $ac_tag in
13159 :[FHLC]) ac_mode=$ac_tag; continue;;
13160 esac
13161 case $ac_mode$ac_tag in
13162 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013163 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013164 :[FH]-) ac_tag=-:-;;
13165 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13166 esac
13167 ac_save_IFS=$IFS
13168 IFS=:
13169 set x $ac_tag
13170 IFS=$ac_save_IFS
13171 shift
13172 ac_file=$1
13173 shift
13174
13175 case $ac_mode in
13176 :L) ac_source=$1;;
13177 :[FH])
13178 ac_file_inputs=
13179 for ac_f
13180 do
13181 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013182 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013183 *) # Look for the file first in the build tree, then in the source tree
13184 # (if the path is not absolute). The absolute path cannot be DOS-style,
13185 # because $ac_f cannot contain `:'.
13186 test -f "$ac_f" ||
13187 case $ac_f in
13188 [\\/$]*) false;;
13189 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13190 esac ||
drhf922ca42015-05-14 15:39:18 +000013191 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013192 esac
13193 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013194 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013195 done
13196
13197 # Let's still pretend it is `configure' which instantiates (i.e., don't
13198 # use $as_me), people would be surprised to read:
13199 # /* config.h. Generated by config.status. */
13200 configure_input='Generated from '`
13201 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13202 `' by configure.'
13203 if test x"$ac_file" != x-; then
13204 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013206$as_echo "$as_me: creating $ac_file" >&6;}
13207 fi
13208 # Neutralize special characters interpreted by sed in replacement strings.
13209 case $configure_input in #(
13210 *\&* | *\|* | *\\* )
13211 ac_sed_conf_input=`$as_echo "$configure_input" |
13212 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13213 *) ac_sed_conf_input=$configure_input;;
13214 esac
13215
13216 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013217 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013219 esac
13220 ;;
drh71eb93e2001-09-28 01:34:43 +000013221 esac
13222
drh8b727472009-01-19 18:18:40 +000013223 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013225 X"$ac_file" : 'X\(//\)[^/]' \| \
13226 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13228$as_echo X"$ac_file" |
13229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13230 s//\1/
13231 q
13232 }
13233 /^X\(\/\/\)[^/].*/{
13234 s//\1/
13235 q
13236 }
13237 /^X\(\/\/\)$/{
13238 s//\1/
13239 q
13240 }
13241 /^X\(\/\).*/{
13242 s//\1/
13243 q
13244 }
13245 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013246 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013247 ac_builddir=.
13248
drh8b727472009-01-19 18:18:40 +000013249case "$ac_dir" in
13250.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13251*)
13252 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13253 # A ".." for each directory in $ac_dir_suffix.
13254 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13255 case $ac_top_builddir_sub in
13256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13258 esac ;;
13259esac
13260ac_abs_top_builddir=$ac_pwd
13261ac_abs_builddir=$ac_pwd$ac_dir_suffix
13262# for backward compatibility:
13263ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013264
13265case $srcdir in
drh8b727472009-01-19 18:18:40 +000013266 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013267 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013268 ac_top_srcdir=$ac_top_builddir_sub
13269 ac_abs_top_srcdir=$ac_pwd ;;
13270 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013271 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013272 ac_top_srcdir=$srcdir
13273 ac_abs_top_srcdir=$srcdir ;;
13274 *) # Relative name.
13275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13276 ac_top_srcdir=$ac_top_build_prefix$srcdir
13277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013278esac
drh8b727472009-01-19 18:18:40 +000013279ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013280
a.rottmann84e63352003-03-24 09:42:16 +000013281
drh8b727472009-01-19 18:18:40 +000013282 case $ac_mode in
13283 :F)
13284 #
13285 # CONFIG_FILE
13286 #
drh75897232000-05-29 14:26:00 +000013287
drh71eb93e2001-09-28 01:34:43 +000013288 case $INSTALL in
13289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013291 esac
mlcreech94984912008-03-04 19:03:08 +000013292_ACEOF
drh8b727472009-01-19 18:18:40 +000013293
13294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13295# If the template does not know about datarootdir, expand it.
13296# FIXME: This hack should be removed a few years after 2.60.
13297ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013298ac_sed_dataroot='
13299/datarootdir/ {
13300 p
13301 q
13302}
13303/@datadir@/p
13304/@docdir@/p
13305/@infodir@/p
13306/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013307/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013308case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13309*datarootdir*) ac_datarootdir_seen=yes;;
13310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013312$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13313_ACEOF
13314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13315 ac_datarootdir_hack='
13316 s&@datadir@&$datadir&g
13317 s&@docdir@&$docdir&g
13318 s&@infodir@&$infodir&g
13319 s&@localedir@&$localedir&g
13320 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013321 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013322esac
13323_ACEOF
13324
13325# Neutralize VPATH when `$srcdir' = `.'.
13326# Shell code in configure.ac might set extrasub.
13327# FIXME: do we really want to maintain this feature?
13328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13329ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013330$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013331_ACEOF
drh8b727472009-01-19 18:18:40 +000013332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013333:t
13334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013335s|@configure_input@|$ac_sed_conf_input|;t t
13336s&@top_builddir@&$ac_top_builddir_sub&;t t
13337s&@top_build_prefix@&$ac_top_build_prefix&;t t
13338s&@srcdir@&$ac_srcdir&;t t
13339s&@abs_srcdir@&$ac_abs_srcdir&;t t
13340s&@top_srcdir@&$ac_top_srcdir&;t t
13341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13342s&@builddir@&$ac_builddir&;t t
13343s&@abs_builddir@&$ac_abs_builddir&;t t
13344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13345s&@INSTALL@&$ac_INSTALL&;t t
13346$ac_datarootdir_hack
13347"
drhf922ca42015-05-14 15:39:18 +000013348eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13349 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013350
drh8b727472009-01-19 18:18:40 +000013351test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013352 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13354 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13356which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013357$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013358which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013359
drhf922ca42015-05-14 15:39:18 +000013360 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013361 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013362 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13363 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013364 esac \
drhf922ca42015-05-14 15:39:18 +000013365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013366 ;;
13367 :H)
13368 #
13369 # CONFIG_HEADER
13370 #
drh866108f2008-05-13 00:57:21 +000013371 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013372 {
13373 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13375 } >"$ac_tmp/config.h" \
13376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13377 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013379$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013380 else
drh8b727472009-01-19 18:18:40 +000013381 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013382 mv "$ac_tmp/config.h" "$ac_file" \
13383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013384 fi
13385 else
drh8b727472009-01-19 18:18:40 +000013386 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013387 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13388 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013389 fi
drh8b727472009-01-19 18:18:40 +000013390 ;;
drh866108f2008-05-13 00:57:21 +000013391
drhf922ca42015-05-14 15:39:18 +000013392 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013393$as_echo "$as_me: executing $ac_file commands" >&6;}
13394 ;;
13395 esac
drh866108f2008-05-13 00:57:21 +000013396
13397
drh8b727472009-01-19 18:18:40 +000013398 case $ac_file$ac_mode in
13399 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013400
13401 # See if we are running on zsh, and set the options which allow our
13402 # commands through without removal of \ escapes.
13403 if test -n "${ZSH_VERSION+set}" ; then
13404 setopt NO_GLOB_SUBST
13405 fi
13406
13407 cfgfile="${ofile}T"
13408 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13409 $RM "$cfgfile"
13410
13411 cat <<_LT_EOF >> "$cfgfile"
13412#! $SHELL
13413
13414# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13415# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13416# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13417# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13418#
13419# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13420# 2006, 2007, 2008 Free Software Foundation, Inc.
13421# Written by Gordon Matzigkeit, 1996
13422#
13423# This file is part of GNU Libtool.
13424#
13425# GNU Libtool is free software; you can redistribute it and/or
13426# modify it under the terms of the GNU General Public License as
13427# published by the Free Software Foundation; either version 2 of
13428# the License, or (at your option) any later version.
13429#
13430# As a special exception to the GNU General Public License,
13431# if you distribute this file as part of a program or library that
13432# is built using GNU Libtool, you may include this file under the
13433# same distribution terms that you use for the rest of that program.
13434#
13435# GNU Libtool is distributed in the hope that it will be useful,
13436# but WITHOUT ANY WARRANTY; without even the implied warranty of
13437# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13438# GNU General Public License for more details.
13439#
13440# You should have received a copy of the GNU General Public License
13441# along with GNU Libtool; see the file COPYING. If not, a copy
13442# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13443# obtained by writing to the Free Software Foundation, Inc.,
13444# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13445
13446
13447# The names of the tagged configurations supported by this script.
13448available_tags=""
13449
13450# ### BEGIN LIBTOOL CONFIG
13451
13452# Which release of libtool.m4 was used?
13453macro_version=$macro_version
13454macro_revision=$macro_revision
13455
13456# Whether or not to build shared libraries.
13457build_libtool_libs=$enable_shared
13458
13459# Whether or not to build static libraries.
13460build_old_libs=$enable_static
13461
13462# What type of objects to build.
13463pic_mode=$pic_mode
13464
13465# Whether or not to optimize for fast installation.
13466fast_install=$enable_fast_install
13467
13468# The host system.
13469host_alias=$host_alias
13470host=$host
13471host_os=$host_os
13472
13473# The build system.
13474build_alias=$build_alias
13475build=$build
13476build_os=$build_os
13477
13478# A sed program that does not truncate output.
13479SED=$lt_SED
13480
13481# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13482Xsed="\$SED -e 1s/^X//"
13483
13484# A grep program that handles long lines.
13485GREP=$lt_GREP
13486
13487# An ERE matcher.
13488EGREP=$lt_EGREP
13489
13490# A literal string matcher.
13491FGREP=$lt_FGREP
13492
13493# A BSD- or MS-compatible name lister.
13494NM=$lt_NM
13495
13496# Whether we need soft or hard links.
13497LN_S=$lt_LN_S
13498
13499# What is the maximum length of a command?
13500max_cmd_len=$max_cmd_len
13501
13502# Object file suffix (normally "o").
13503objext=$ac_objext
13504
13505# Executable file suffix (normally "").
13506exeext=$exeext
13507
13508# whether the shell understands "unset".
13509lt_unset=$lt_unset
13510
13511# turn spaces into newlines.
13512SP2NL=$lt_lt_SP2NL
13513
13514# turn newlines into spaces.
13515NL2SP=$lt_lt_NL2SP
13516
13517# How to create reloadable object files.
13518reload_flag=$lt_reload_flag
13519reload_cmds=$lt_reload_cmds
13520
vapier6acb2cf2009-01-28 04:46:28 +000013521# An object symbol dumper.
13522OBJDUMP=$lt_OBJDUMP
13523
mlcreech636a9952008-05-05 22:52:56 +000013524# Method to check whether dependent libraries are shared objects.
13525deplibs_check_method=$lt_deplibs_check_method
13526
13527# Command to use when deplibs_check_method == "file_magic".
13528file_magic_cmd=$lt_file_magic_cmd
13529
13530# The archiver.
13531AR=$lt_AR
13532AR_FLAGS=$lt_AR_FLAGS
13533
13534# A symbol stripping program.
13535STRIP=$lt_STRIP
13536
13537# Commands used to install an old-style archive.
13538RANLIB=$lt_RANLIB
13539old_postinstall_cmds=$lt_old_postinstall_cmds
13540old_postuninstall_cmds=$lt_old_postuninstall_cmds
13541
13542# A C compiler.
13543LTCC=$lt_CC
13544
13545# LTCC compiler flags.
13546LTCFLAGS=$lt_CFLAGS
13547
13548# Take the output of nm and produce a listing of raw symbols and C names.
13549global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13550
13551# Transform the output of nm in a proper C declaration.
13552global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13553
13554# Transform the output of nm in a C name address pair.
13555global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13556
13557# Transform the output of nm in a C name address pair when lib prefix is needed.
13558global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13559
13560# The name of the directory that contains temporary libtool files.
13561objdir=$objdir
13562
13563# Shell to use when invoking shell scripts.
13564SHELL=$lt_SHELL
13565
13566# An echo program that does not interpret backslashes.
13567ECHO=$lt_ECHO
13568
13569# Used to examine libraries when file_magic_cmd begins with "file".
13570MAGIC_CMD=$MAGIC_CMD
13571
13572# Must we lock files when doing compilation?
13573need_locks=$lt_need_locks
13574
13575# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13576DSYMUTIL=$lt_DSYMUTIL
13577
13578# Tool to change global to local symbols on Mac OS X.
13579NMEDIT=$lt_NMEDIT
13580
13581# Tool to manipulate fat objects and archives on Mac OS X.
13582LIPO=$lt_LIPO
13583
13584# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13585OTOOL=$lt_OTOOL
13586
13587# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13588OTOOL64=$lt_OTOOL64
13589
13590# Old archive suffix (normally "a").
13591libext=$libext
13592
13593# Shared library suffix (normally ".so").
13594shrext_cmds=$lt_shrext_cmds
13595
13596# The commands to extract the exported symbol list from a shared archive.
13597extract_expsyms_cmds=$lt_extract_expsyms_cmds
13598
13599# Variables whose values should be saved in libtool wrapper scripts and
13600# restored at link time.
13601variables_saved_for_relink=$lt_variables_saved_for_relink
13602
13603# Do we need the "lib" prefix for modules?
13604need_lib_prefix=$need_lib_prefix
13605
13606# Do we need a version for libraries?
13607need_version=$need_version
13608
13609# Library versioning type.
13610version_type=$version_type
13611
13612# Shared library runtime path variable.
13613runpath_var=$runpath_var
13614
13615# Shared library path variable.
13616shlibpath_var=$shlibpath_var
13617
13618# Is shlibpath searched before the hard-coded library search path?
13619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13620
13621# Format of library name prefix.
13622libname_spec=$lt_libname_spec
13623
13624# List of archive names. First name is the real one, the rest are links.
13625# The last name is the one that the linker finds with -lNAME
13626library_names_spec=$lt_library_names_spec
13627
13628# The coded name of the library, if different from the real name.
13629soname_spec=$lt_soname_spec
13630
13631# Command to use after installation of a shared archive.
13632postinstall_cmds=$lt_postinstall_cmds
13633
13634# Command to use after uninstallation of a shared archive.
13635postuninstall_cmds=$lt_postuninstall_cmds
13636
13637# Commands used to finish a libtool library installation in a directory.
13638finish_cmds=$lt_finish_cmds
13639
13640# As "finish_cmds", except a single script fragment to be evaled but
13641# not shown.
13642finish_eval=$lt_finish_eval
13643
13644# Whether we should hardcode library paths into libraries.
13645hardcode_into_libs=$hardcode_into_libs
13646
13647# Compile-time system search path for libraries.
13648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13649
13650# Run-time system search path for libraries.
13651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13652
13653# Whether dlopen is supported.
13654dlopen_support=$enable_dlopen
13655
13656# Whether dlopen of programs is supported.
13657dlopen_self=$enable_dlopen_self
13658
13659# Whether dlopen of statically linked programs is supported.
13660dlopen_self_static=$enable_dlopen_self_static
13661
13662# Commands to strip libraries.
13663old_striplib=$lt_old_striplib
13664striplib=$lt_striplib
13665
13666
13667# The linker used to build libraries.
13668LD=$lt_LD
13669
13670# Commands used to build an old-style archive.
13671old_archive_cmds=$lt_old_archive_cmds
13672
13673# A language specific compiler.
13674CC=$lt_compiler
13675
13676# Is the compiler the GNU compiler?
13677with_gcc=$GCC
13678
13679# Compiler flag to turn off builtin functions.
13680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13681
13682# How to pass a linker flag through the compiler.
13683wl=$lt_lt_prog_compiler_wl
13684
13685# Additional compiler flags for building library objects.
13686pic_flag=$lt_lt_prog_compiler_pic
13687
13688# Compiler flag to prevent dynamic linking.
13689link_static_flag=$lt_lt_prog_compiler_static
13690
13691# Does compiler simultaneously support -c and -o options?
13692compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13693
13694# Whether or not to add -lc for building shared libraries.
13695build_libtool_need_lc=$archive_cmds_need_lc
13696
13697# Whether or not to disallow shared libs when runtime libs are static.
13698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13699
13700# Compiler flag to allow reflexive dlopens.
13701export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13702
13703# Compiler flag to generate shared objects directly from archives.
13704whole_archive_flag_spec=$lt_whole_archive_flag_spec
13705
13706# Whether the compiler copes with passing no objects directly.
13707compiler_needs_object=$lt_compiler_needs_object
13708
13709# Create an old-style archive from a shared archive.
13710old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13711
13712# Create a temporary old-style archive to link instead of a shared archive.
13713old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13714
13715# Commands used to build a shared archive.
13716archive_cmds=$lt_archive_cmds
13717archive_expsym_cmds=$lt_archive_expsym_cmds
13718
13719# Commands used to build a loadable module if different from building
13720# a shared archive.
13721module_cmds=$lt_module_cmds
13722module_expsym_cmds=$lt_module_expsym_cmds
13723
13724# Whether we are building with GNU ld or not.
13725with_gnu_ld=$lt_with_gnu_ld
13726
13727# Flag that allows shared libraries with undefined symbols to be built.
13728allow_undefined_flag=$lt_allow_undefined_flag
13729
13730# Flag that enforces no undefined symbols.
13731no_undefined_flag=$lt_no_undefined_flag
13732
13733# Flag to hardcode \$libdir into a binary during linking.
13734# This must work even if \$libdir does not exist
13735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13736
13737# If ld is used when linking, flag to hardcode \$libdir into a binary
13738# during linking. This must work even if \$libdir does not exist.
13739hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13740
13741# Whether we need a single "-rpath" flag with a separated argument.
13742hardcode_libdir_separator=$lt_hardcode_libdir_separator
13743
13744# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13745# DIR into the resulting binary.
13746hardcode_direct=$hardcode_direct
13747
13748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13749# DIR into the resulting binary and the resulting library dependency is
13750# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13751# library is relocated.
13752hardcode_direct_absolute=$hardcode_direct_absolute
13753
13754# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13755# into the resulting binary.
13756hardcode_minus_L=$hardcode_minus_L
13757
13758# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13759# into the resulting binary.
13760hardcode_shlibpath_var=$hardcode_shlibpath_var
13761
13762# Set to "yes" if building a shared library automatically hardcodes DIR
13763# into the library and all subsequent libraries and executables linked
13764# against it.
13765hardcode_automatic=$hardcode_automatic
13766
13767# Set to yes if linker adds runtime paths of dependent libraries
13768# to runtime path list.
13769inherit_rpath=$inherit_rpath
13770
13771# Whether libtool must link a program against all its dependency libraries.
13772link_all_deplibs=$link_all_deplibs
13773
13774# Fix the shell variable \$srcfile for the compiler.
13775fix_srcfile_path=$lt_fix_srcfile_path
13776
13777# Set to "yes" if exported symbols are required.
13778always_export_symbols=$always_export_symbols
13779
13780# The commands to list exported symbols.
13781export_symbols_cmds=$lt_export_symbols_cmds
13782
13783# Symbols that should not be listed in the preloaded symbols.
13784exclude_expsyms=$lt_exclude_expsyms
13785
13786# Symbols that must always be exported.
13787include_expsyms=$lt_include_expsyms
13788
13789# Commands necessary for linking programs (against libraries) with templates.
13790prelink_cmds=$lt_prelink_cmds
13791
13792# Specify filename containing input files.
13793file_list_spec=$lt_file_list_spec
13794
13795# How to hardcode a shared library path into an executable.
13796hardcode_action=$hardcode_action
13797
13798# ### END LIBTOOL CONFIG
13799
13800_LT_EOF
13801
13802 case $host_os in
13803 aix3*)
13804 cat <<\_LT_EOF >> "$cfgfile"
13805# AIX sometimes has problems with the GCC collect2 program. For some
13806# reason, if we set the COLLECT_NAMES environment variable, the problems
13807# vanish in a puff of smoke.
13808if test "X${COLLECT_NAMES+set}" != Xset; then
13809 COLLECT_NAMES=
13810 export COLLECT_NAMES
13811fi
13812_LT_EOF
13813 ;;
13814 esac
13815
13816
13817ltmain="$ac_aux_dir/ltmain.sh"
13818
13819
13820 # We use sed instead of cat because bash on DJGPP gets confused if
13821 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13822 # text mode, it properly converts lines to CR/LF. This bash problem
13823 # is reportedly fixed, but why not run on old versions too?
13824 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13825 || (rm -f "$cfgfile"; exit 1)
13826
13827 case $xsi_shell in
13828 yes)
13829 cat << \_LT_EOF >> "$cfgfile"
13830
13831# func_dirname file append nondir_replacement
13832# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13833# otherwise set result to NONDIR_REPLACEMENT.
13834func_dirname ()
13835{
13836 case ${1} in
13837 */*) func_dirname_result="${1%/*}${2}" ;;
13838 * ) func_dirname_result="${3}" ;;
13839 esac
13840}
13841
13842# func_basename file
13843func_basename ()
13844{
13845 func_basename_result="${1##*/}"
13846}
13847
13848# func_dirname_and_basename file append nondir_replacement
13849# perform func_basename and func_dirname in a single function
13850# call:
13851# dirname: Compute the dirname of FILE. If nonempty,
13852# add APPEND to the result, otherwise set result
13853# to NONDIR_REPLACEMENT.
13854# value returned in "$func_dirname_result"
13855# basename: Compute filename of FILE.
13856# value retuned in "$func_basename_result"
13857# Implementation must be kept synchronized with func_dirname
13858# and func_basename. For efficiency, we do not delegate to
13859# those functions but instead duplicate the functionality here.
13860func_dirname_and_basename ()
13861{
13862 case ${1} in
13863 */*) func_dirname_result="${1%/*}${2}" ;;
13864 * ) func_dirname_result="${3}" ;;
13865 esac
13866 func_basename_result="${1##*/}"
13867}
13868
13869# func_stripname prefix suffix name
13870# strip PREFIX and SUFFIX off of NAME.
13871# PREFIX and SUFFIX must not contain globbing or regex special
13872# characters, hashes, percent signs, but SUFFIX may contain a leading
13873# dot (in which case that matches only a dot).
13874func_stripname ()
13875{
13876 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13877 # positional parameters, so assign one to ordinary parameter first.
13878 func_stripname_result=${3}
13879 func_stripname_result=${func_stripname_result#"${1}"}
13880 func_stripname_result=${func_stripname_result%"${2}"}
13881}
13882
13883# func_opt_split
13884func_opt_split ()
13885{
13886 func_opt_split_opt=${1%%=*}
13887 func_opt_split_arg=${1#*=}
13888}
13889
13890# func_lo2o object
13891func_lo2o ()
13892{
13893 case ${1} in
13894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13895 *) func_lo2o_result=${1} ;;
13896 esac
13897}
13898
13899# func_xform libobj-or-source
13900func_xform ()
13901{
13902 func_xform_result=${1%.*}.lo
13903}
13904
13905# func_arith arithmetic-term...
13906func_arith ()
13907{
13908 func_arith_result=$(( $* ))
13909}
13910
13911# func_len string
13912# STRING may not start with a hyphen.
13913func_len ()
13914{
13915 func_len_result=${#1}
13916}
13917
13918_LT_EOF
13919 ;;
13920 *) # Bourne compatible functions.
13921 cat << \_LT_EOF >> "$cfgfile"
13922
13923# func_dirname file append nondir_replacement
13924# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13925# otherwise set result to NONDIR_REPLACEMENT.
13926func_dirname ()
13927{
13928 # Extract subdirectory from the argument.
13929 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13930 if test "X$func_dirname_result" = "X${1}"; then
13931 func_dirname_result="${3}"
13932 else
13933 func_dirname_result="$func_dirname_result${2}"
13934 fi
13935}
13936
13937# func_basename file
13938func_basename ()
13939{
13940 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13941}
13942
13943
13944# func_stripname prefix suffix name
13945# strip PREFIX and SUFFIX off of NAME.
13946# PREFIX and SUFFIX must not contain globbing or regex special
13947# characters, hashes, percent signs, but SUFFIX may contain a leading
13948# dot (in which case that matches only a dot).
13949# func_strip_suffix prefix name
13950func_stripname ()
13951{
13952 case ${2} in
13953 .*) func_stripname_result=`$ECHO "X${3}" \
13954 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13955 *) func_stripname_result=`$ECHO "X${3}" \
13956 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13957 esac
13958}
13959
13960# sed scripts:
13961my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13962my_sed_long_arg='1s/^-[^=]*=//'
13963
13964# func_opt_split
13965func_opt_split ()
13966{
13967 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13968 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13969}
13970
13971# func_lo2o object
13972func_lo2o ()
13973{
13974 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13975}
13976
13977# func_xform libobj-or-source
13978func_xform ()
13979{
13980 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13981}
13982
13983# func_arith arithmetic-term...
13984func_arith ()
13985{
13986 func_arith_result=`expr "$@"`
13987}
13988
13989# func_len string
13990# STRING may not start with a hyphen.
13991func_len ()
13992{
13993 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13994}
13995
13996_LT_EOF
13997esac
13998
13999case $lt_shell_append in
14000 yes)
14001 cat << \_LT_EOF >> "$cfgfile"
14002
14003# func_append var value
14004# Append VALUE to the end of shell variable VAR.
14005func_append ()
14006{
14007 eval "$1+=\$2"
14008}
14009_LT_EOF
14010 ;;
14011 *)
14012 cat << \_LT_EOF >> "$cfgfile"
14013
14014# func_append var value
14015# Append VALUE to the end of shell variable VAR.
14016func_append ()
14017{
14018 eval "$1=\$$1\$2"
14019}
14020
14021_LT_EOF
14022 ;;
14023 esac
14024
14025
14026 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14027 || (rm -f "$cfgfile"; exit 1)
14028
14029 mv -f "$cfgfile" "$ofile" ||
14030 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14031 chmod +x "$ofile"
14032
14033 ;;
mlcreech94984912008-03-04 19:03:08 +000014034
drh8b727472009-01-19 18:18:40 +000014035 esac
14036done # for ac_tag
14037
drh71eb93e2001-09-28 01:34:43 +000014038
drhf922ca42015-05-14 15:39:18 +000014039as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000014040_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014041ac_clean_files=$ac_clean_files_save
14042
drh8b727472009-01-19 18:18:40 +000014043test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000014044 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000014045
a.rottmann84e63352003-03-24 09:42:16 +000014046
drh71eb93e2001-09-28 01:34:43 +000014047# configure is writing to config.log, and then calls config.status.
14048# config.status does its own redirection, appending to config.log.
14049# Unfortunately, on DOS this fails, as config.log is still kept open
14050# by configure, so config.status won't be able to write to it; its
14051# output is simply discarded. So we exec the FD to /dev/null,
14052# effectively closing config.log, so it can be properly (re)opened and
14053# appended to by config.status. When coming back to configure, we
14054# need to make the FD available again.
14055if test "$no_create" != yes; then
14056 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000014057 ac_config_status_args=
14058 test "$silent" = yes &&
14059 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000014060 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000014061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000014062 exec 5>>config.log
14063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14064 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000014065 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000014066fi
drh8b727472009-01-19 18:18:40 +000014067if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000014068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14069$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000014070fi
drh63a49ce2017-01-02 19:10:14 +000014071