blob: b957c3c63eec18e18a0441adf56551bfbbea1fc8 [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.
drh83acc142019-02-12 15:51:36 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.28.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'
drh83acc142019-02-12 15:51:36 +0000729PACKAGE_VERSION='3.28.0'
730PACKAGE_STRING='sqlite 3.28.0'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
drhf922ca42015-05-14 15:39:18 +0000732PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000733
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000738# include <sys/types.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
drh8b727472009-01-19 18:18:40 +0000747# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000748# include <stdlib.h>
749# endif
a.rottmann84e63352003-03-24 09:42:16 +0000750#endif
drh8b727472009-01-19 18:18:40 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
drh8b727472009-01-19 18:18:40 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
drh8b727472009-01-19 18:18:40 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
drh8b727472009-01-19 18:18:40 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
drhf922ca42015-05-14 15:39:18 +0000770ac_subst_vars='LTLIBOBJS
drh710658c2012-01-16 13:00:05 +0000771LIBOBJS
drhf922ca42015-05-14 15:39:18 +0000772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
drh56c93112017-11-24 16:55:48 +0000775HAVE_ZLIB
drhf922ca42015-05-14 15:39:18 +0000776USE_AMALGAMATION
777TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000778TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000779TARGET_HAVE_READLINE
780TARGET_READLINE_INC
781TARGET_READLINE_LIBS
782HAVE_TCL
783TCL_SHLIB_SUFFIX
784TCL_STUB_LIB_SPEC
785TCL_STUB_LIB_FLAG
786TCL_STUB_LIB_FILE
787TCL_LIB_SPEC
788TCL_LIB_FLAG
789TCL_LIB_FILE
790TCL_INCLUDE_SPEC
791TCL_SRC_DIR
792TCL_BIN_DIR
793TCL_VERSION
794TARGET_EXEEXT
795SQLITE_OS_WIN
796SQLITE_OS_UNIX
797BUILD_EXEEXT
798TEMP_STORE
799ALLOWRELEASE
800SQLITE_THREADSAFE
801BUILD_CC
802VERSION_NUMBER
803RELEASE
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
drhfb556712019-03-22 11:38:14 +0000866runstatedir
drhf922ca42015-05-14 15:39:18 +0000867localstatedir
868sharedstatedir
869sysconfdir
870datadir
871datarootdir
872libexecdir
873sbindir
874bindir
875program_transform_name
876prefix
877exec_prefix
878PACKAGE_URL
879PACKAGE_BUGREPORT
880PACKAGE_STRING
881PACKAGE_VERSION
882PACKAGE_TARNAME
883PACKAGE_NAME
884PATH_SEPARATOR
885SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000886ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000887ac_user_opts='
888enable_option_checking
889enable_shared
890enable_static
891with_pic
892enable_fast_install
893with_gnu_ld
894enable_libtool_lock
895enable_largefile
drh8b727472009-01-19 18:18:40 +0000896enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000897enable_releasemode
898enable_tempstore
899enable_tcl
900with_tcl
drhe44b8352015-10-30 14:25:57 +0000901enable_editline
drh8b727472009-01-19 18:18:40 +0000902enable_readline
903with_readline_lib
904with_readline_inc
905enable_debug
906enable_amalgamation
907enable_load_extension
drhc530b9c2016-07-25 11:27:22 +0000908enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000909enable_memsys3
drhce1d9f52015-10-09 12:48:33 +0000910enable_fts3
911enable_fts4
912enable_fts5
913enable_json1
drh83bebdd2017-08-28 17:00:12 +0000914enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000915enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000916enable_rtree
drh5e18d402016-05-03 13:14:18 +0000917enable_session
drh8b727472009-01-19 18:18:40 +0000918enable_gcov
919'
920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000928CPP
929TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000930
drh75897232000-05-29 14:26:00 +0000931
932# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000933ac_init_help=
934ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000935ac_unrecognized_opts=
936ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000937# The variables have the same names as the options, with
938# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000939cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000940exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000941no_create=
drh75897232000-05-29 14:26:00 +0000942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
drh75897232000-05-29 14:26:00 +0000950verbose=
951x_includes=NONE
952x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000959# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
drhfb556712019-03-22 11:38:14 +0000968runstatedir='${localstatedir}/run'
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
drhfb556712019-03-22 11:38:14 +00001221 -runstatedir | --runstatedir | --runstatedi | --runstated \
1222 | --runstate | --runstat | --runsta | --runst | --runs \
1223 | --run | --ru | --r)
1224 ac_prev=runstatedir ;;
1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227 | --run=* | --ru=* | --r=*)
1228 runstatedir=$ac_optarg ;;
1229
drh75897232000-05-29 14:26:00 +00001230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001234 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001245 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001250 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001255 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001262 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001265 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001267 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
drh71eb93e2001-09-28 01:34:43 +00001272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001274
1275 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001277 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001279 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001288 esac
drh8b727472009-01-19 18:18:40 +00001289 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001290
1291 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001293 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001295 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"with_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001316 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001323 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001324
drhf922ca42015-05-14 15:39:18 +00001325 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001327 ;;
1328
drh71eb93e2001-09-28 01:34:43 +00001329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335 esac
drh8b727472009-01-19 18:18:40 +00001336 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001337 export $ac_envvar ;;
1338
drh75897232000-05-29 14:26:00 +00001339 *)
drh71eb93e2001-09-28 01:34:43 +00001340 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001345 ;;
1346
1347 esac
1348done
1349
1350if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001352 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001353fi
1354
drh8b727472009-01-19 18:18:40 +00001355if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
drhf922ca42015-05-14 15:39:18 +00001358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001360 esac
drh8b727472009-01-19 18:18:40 +00001361fi
drh866108f2008-05-13 00:57:21 +00001362
drh8b727472009-01-19 18:18:40 +00001363# Check all directory arguments for consistency.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drhfb556712019-03-22 11:38:14 +00001367 libdir localedir mandir runstatedir
drh866108f2008-05-13 00:57:21 +00001368do
drh8b727472009-01-19 18:18:40 +00001369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001371 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001375 esac
drh8b727472009-01-19 18:18:40 +00001376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
drhf922ca42015-05-14 15:39:18 +00001381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001382done
drh75897232000-05-29 14:26:00 +00001383
drh71eb93e2001-09-28 01:34:43 +00001384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001386# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001387build=$build_alias
1388host=$host_alias
1389target=$target_alias
drh75897232000-05-29 14:26:00 +00001390
a.rottmann84e63352003-03-24 09:42:16 +00001391# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001392if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001404
a.rottmann84e63352003-03-24 09:42:16 +00001405
drh8b727472009-01-19 18:18:40 +00001406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001409 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001411 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001412
1413
drh75897232000-05-29 14:26:00 +00001414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001441 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001442 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001443 srcdir=..
1444 fi
1445else
1446 ac_srcdir_defaulted=no
1447fi
drh8b727472009-01-19 18:18:40 +00001448if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001451fi
drh8b727472009-01-19 18:18:40 +00001452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001455 pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
drh75897232000-05-29 14:26:00 +00001472
drh71eb93e2001-09-28 01:34:43 +00001473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001479 cat <<_ACEOF
drh83acc142019-02-12 15:51:36 +00001480\`configure' configures sqlite 3.28.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE. See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001494 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499
drh71eb93e2001-09-28 01:34:43 +00001500Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001502 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001504 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
drhfb556712019-03-22 11:38:14 +00001520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
drh8b727472009-01-19 18:18:40 +00001521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001534_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001535
a.rottmann84e63352003-03-24 09:42:16 +00001536 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001537
1538System types:
1539 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001542fi
1543
1544if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001545 case $ac_init_help in
drh83acc142019-02-12 15:51:36 +00001546 short | recursive ) echo "Configuration of sqlite 3.28.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001547 esac
a.rottmann84e63352003-03-24 09:42:16 +00001548 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001549
1550Optional Features:
drh8b727472009-01-19 18:18:40 +00001551 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001554 --enable-shared[=PKGS] build shared libraries [default=yes]
1555 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001556 --enable-fast-install[=PKGS]
1557 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001559 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001560 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001561 --enable-releasemode Support libtool link to release mode
1562 --enable-tempstore Use an in-ram database for temporary tables
1563 (never,no,yes,always)
1564 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001565 --enable-editline enable BSD editline support
1566 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001567 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001568 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001569 separately
drh05c7e0b2015-01-10 14:27:17 +00001570 --disable-load-extension
1571 Disable loading of external extensions
drhc530b9c2016-07-25 11:27:22 +00001572 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001573 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001574 --enable-fts3 Enable the FTS3 extension
1575 --enable-fts4 Enable the FTS4 extension
1576 --enable-fts5 Enable the FTS5 extension
1577 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001578 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001579 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001580 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001581 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001582 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001583
1584Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001587 --with-pic try to use only PIC/non-PIC objects [default=use
1588 both]
mlcreech636a9952008-05-05 22:52:56 +00001589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001590 --with-tcl=DIR directory containing tcl configuration
1591 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001592 --with-readline-lib specify readline library
1593 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001594
1595Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001600 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001602 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001603 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001604 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
drhf922ca42015-05-14 15:39:18 +00001609Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001610_ACEOF
drh8b727472009-01-19 18:18:40 +00001611ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
a.rottmann84e63352003-03-24 09:42:16 +00001620 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001621
drh8b727472009-01-19 18:18:40 +00001622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001637
a.rottmann84e63352003-03-24 09:42:16 +00001638case $srcdir in
drh8b727472009-01-19 18:18:40 +00001639 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001640 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001644 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001651esac
drh8b727472009-01-19 18:18:40 +00001652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001653
drh8b727472009-01-19 18:18:40 +00001654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001662 else
drh8b727472009-01-19 18:18:40 +00001663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001666 done
1667fi
1668
drh8b727472009-01-19 18:18:40 +00001669test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001670if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001671 cat <<\_ACEOF
drh83acc142019-02-12 15:51:36 +00001672sqlite configure 3.28.0
drhf922ca42015-05-14 15:39:18 +00001673generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001674
drhf922ca42015-05-14 15:39:18 +00001675Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001678_ACEOF
drh8b727472009-01-19 18:18:40 +00001679 exit
drh71eb93e2001-09-28 01:34:43 +00001680fi
drhf922ca42015-05-14 15:39:18 +00001681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_compile
1723
1724# ac_fn_c_try_link LINENO
1725# -----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_link ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 test -x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_link
1769
1770# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists and can be compiled using the include files in
1773# INCLUDES, setting the cache variable VAR accordingly.
1774ac_fn_c_check_header_compile ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784$4
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789else
1790 eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_header_compile
1800
1801# ac_fn_c_try_cpp LINENO
1802# ----------------------
1803# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_cpp ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_cpp conftest.$ac_ext"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } > conftest.i && {
1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 }; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832fi
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_cpp
1837
1838# ac_fn_c_try_run LINENO
1839# ----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841# that executables *can* be run.
1842ac_fn_c_try_run ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>&5
1853 ac_status=$?
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856 { { case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_try") 2>&5
1863 ac_status=$?
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; }; }; then :
1866 ac_retval=0
1867else
1868 $as_echo "$as_me: program exited with status $ac_status" >&5
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=$ac_status
1873fi
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878} # ac_fn_c_try_run
1879
1880# ac_fn_c_check_func LINENO FUNC VAR
1881# ----------------------------------
1882# Tests whether FUNC exists, setting the cache variable VAR accordingly
1883ac_fn_c_check_func ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895#define $2 innocuous_$2
1896
1897/* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1901
1902#ifdef __STDC__
1903# include <limits.h>
1904#else
1905# include <assert.h>
1906#endif
1907
1908#undef $2
1909
1910/* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1913#ifdef __cplusplus
1914extern "C"
1915#endif
1916char $2 ();
1917/* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920#if defined __stub_$2 || defined __stub___$2
1921choke me
1922#endif
1923
1924int
1925main ()
1926{
1927return $2 ();
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_link "$LINENO"; then :
1933 eval "$3=yes"
1934else
1935 eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext \
1938 conftest$ac_exeext conftest.$ac_ext
1939fi
1940eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945} # ac_fn_c_check_func
1946
1947# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1948# -------------------------------------------
1949# Tests whether TYPE exists after having included INCLUDES, setting cache
1950# variable VAR accordingly.
1951ac_fn_c_check_type ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958else
1959 eval "$3=no"
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962$4
1963int
1964main ()
1965{
1966if (sizeof ($2))
1967 return 0;
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979if (sizeof (($2)))
1980 return 0;
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986
1987else
1988 eval "$3=yes"
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_type
2000
2001# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2002# -------------------------------------------------------
2003# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2004# the include files in INCLUDES and setting the cache variable VAR
2005# accordingly.
2006ac_fn_c_check_header_mongrel ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if eval \${$3+:} false; then :
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014fi
2015eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018else
2019 # Is the header compilable?
2020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2021$as_echo_n "checking $2 usability... " >&6; }
2022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$4
2025#include <$2>
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_header_compiler=yes
2029else
2030 ac_header_compiler=no
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2034$as_echo "$ac_header_compiler" >&6; }
2035
2036# Is the header present?
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2038$as_echo_n "checking $2 presence... " >&6; }
2039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041#include <$2>
2042_ACEOF
2043if ac_fn_c_try_cpp "$LINENO"; then :
2044 ac_header_preproc=yes
2045else
2046 ac_header_preproc=no
2047fi
2048rm -f conftest.err conftest.i conftest.$ac_ext
2049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2050$as_echo "$ac_header_preproc" >&6; }
2051
2052# So? What about this header?
2053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 yes:no: )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2056$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 ;;
2060 no:yes:* )
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2062$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2064$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2066$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2068$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 ;;
2072esac
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074$as_echo_n "checking for $2... " >&6; }
2075if eval \${$3+:} false; then :
2076 $as_echo_n "(cached) " >&6
2077else
2078 eval "$3=\$ac_header_compiler"
2079fi
2080eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083fi
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002087cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002088This file contains any messages produced by compilers while
2089running configure, to aid debugging if configure makes a mistake.
2090
drh83acc142019-02-12 15:51:36 +00002091It was created by sqlite $as_me 3.28.0, which was
drhf922ca42015-05-14 15:39:18 +00002092generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002093
2094 $ $0 $@
2095
a.rottmann84e63352003-03-24 09:42:16 +00002096_ACEOF
drh8b727472009-01-19 18:18:40 +00002097exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002098{
2099cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002100## --------- ##
2101## Platform. ##
2102## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002103
2104hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2105uname -m = `(uname -m) 2>/dev/null || echo unknown`
2106uname -r = `(uname -r) 2>/dev/null || echo unknown`
2107uname -s = `(uname -s) 2>/dev/null || echo unknown`
2108uname -v = `(uname -v) 2>/dev/null || echo unknown`
2109
2110/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2111/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2112
2113/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2114/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2115/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002116/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002117/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2118/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2119/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2120
drh71eb93e2001-09-28 01:34:43 +00002121_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002122
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002128 $as_echo "PATH: $as_dir"
2129 done
drh8b727472009-01-19 18:18:40 +00002130IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002131
drh71eb93e2001-09-28 01:34:43 +00002132} >&5
2133
a.rottmann84e63352003-03-24 09:42:16 +00002134cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002135
a.rottmann84e63352003-03-24 09:42:16 +00002136
2137## ----------- ##
2138## Core tests. ##
2139## ----------- ##
2140
2141_ACEOF
2142
drh71eb93e2001-09-28 01:34:43 +00002143
2144# Keep a trace of the command line.
2145# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002146# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002147# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002148# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002149ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002150ac_configure_args0=
2151ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002152ac_must_keep_next=false
2153for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002154do
a.rottmann84e63352003-03-24 09:42:16 +00002155 for ac_arg
2156 do
2157 case $ac_arg in
2158 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2160 | -silent | --silent | --silen | --sile | --sil)
2161 continue ;;
drh8b727472009-01-19 18:18:40 +00002162 *\'*)
2163 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002164 esac
2165 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002166 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002167 2)
drhf922ca42015-05-14 15:39:18 +00002168 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002169 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002170 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002171 else
a.rottmann964dbb12004-02-26 19:47:42 +00002172 case $ac_arg in
2173 *=* | --config-cache | -C | -disable-* | --disable-* \
2174 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2175 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2176 | -with-* | --with-* | -without-* | --without-* | --x)
2177 case "$ac_configure_args0 " in
2178 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2179 esac
2180 ;;
2181 -* ) ac_must_keep_next=true ;;
2182 esac
a.rottmann84e63352003-03-24 09:42:16 +00002183 fi
drhf922ca42015-05-14 15:39:18 +00002184 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002185 ;;
2186 esac
2187 done
drh71eb93e2001-09-28 01:34:43 +00002188done
drhf922ca42015-05-14 15:39:18 +00002189{ ac_configure_args0=; unset ac_configure_args0;}
2190{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002191
2192# When interrupted or exit'd, cleanup temporary files, and complete
2193# config.log. We remove comments because anyway the quotes in there
2194# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002195# WARNING: Use '\'' to represent an apostrophe within the trap.
2196# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002197trap 'exit_status=$?
2198 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002199 {
2200 echo
2201
drhf922ca42015-05-14 15:39:18 +00002202 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002203## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002204## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002205 echo
2206 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002207(
2208 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in #(
2211 *${as_nl}*)
2212 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002215 esac
2216 case $ac_var in #(
2217 _ | IFS | as_nl) ;; #(
2218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002219 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002220 esac ;;
2221 esac
2222 done
drh71eb93e2001-09-28 01:34:43 +00002223 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002224 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2225 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002226 sed -n \
drh8b727472009-01-19 18:18:40 +00002227 "s/'\''/'\''\\\\'\'''\''/g;
2228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2229 ;; #(
drh866108f2008-05-13 00:57:21 +00002230 *)
drh8b727472009-01-19 18:18:40 +00002231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002232 ;;
drh8b727472009-01-19 18:18:40 +00002233 esac |
2234 sort
2235)
a.rottmann84e63352003-03-24 09:42:16 +00002236 echo
2237
drhf922ca42015-05-14 15:39:18 +00002238 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002239## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002240## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002241 echo
2242 for ac_var in $ac_subst_vars
2243 do
drh8b727472009-01-19 18:18:40 +00002244 eval ac_val=\$$ac_var
2245 case $ac_val in
2246 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247 esac
2248 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002249 done | sort
2250 echo
2251
2252 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002253 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002254## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002255## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002256 echo
2257 for ac_var in $ac_subst_files
2258 do
drh8b727472009-01-19 18:18:40 +00002259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002264 done | sort
2265 echo
2266 fi
2267
2268 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002269 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002270## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002271## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002272 echo
drh8b727472009-01-19 18:18:40 +00002273 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002274 echo
2275 fi
2276 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002277 $as_echo "$as_me: caught signal $ac_signal"
2278 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002279 } >&5
drh8b727472009-01-19 18:18:40 +00002280 rm -f core *.core core.conftest.* &&
2281 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002282 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002283' 0
drh71eb93e2001-09-28 01:34:43 +00002284for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002285 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002286done
2287ac_signal=0
2288
2289# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002290rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002291
drhf922ca42015-05-14 15:39:18 +00002292$as_echo "/* confdefs.h */" > confdefs.h
2293
a.rottmann84e63352003-03-24 09:42:16 +00002294# Predefined preprocessor variables.
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_NAME "$PACKAGE_NAME"
2298_ACEOF
2299
a.rottmann84e63352003-03-24 09:42:16 +00002300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2302_ACEOF
2303
a.rottmann84e63352003-03-24 09:42:16 +00002304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_VERSION "$PACKAGE_VERSION"
2306_ACEOF
2307
a.rottmann84e63352003-03-24 09:42:16 +00002308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_STRING "$PACKAGE_STRING"
2310_ACEOF
2311
dana9f39fd2011-08-12 16:34:42 +00002312cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002313#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002314_ACEOF
2315
drhf922ca42015-05-14 15:39:18 +00002316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_URL "$PACKAGE_URL"
2318_ACEOF
2319
a.rottmann84e63352003-03-24 09:42:16 +00002320
drh71eb93e2001-09-28 01:34:43 +00002321# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002322# Prefer an explicitly selected file to automatically selected ones.
2323ac_site_file1=NONE
2324ac_site_file2=NONE
2325if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002326 # We do not want a PATH search for config.site.
2327 case $CONFIG_SITE in #((
2328 -*) ac_site_file1=./$CONFIG_SITE;;
2329 */*) ac_site_file1=$CONFIG_SITE;;
2330 *) ac_site_file1=./$CONFIG_SITE;;
2331 esac
drh8b727472009-01-19 18:18:40 +00002332elif test "x$prefix" != xNONE; then
2333 ac_site_file1=$prefix/share/config.site
2334 ac_site_file2=$prefix/etc/config.site
2335else
2336 ac_site_file1=$ac_default_prefix/share/config.site
2337 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002338fi
drh8b727472009-01-19 18:18:40 +00002339for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2340do
2341 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002342 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002344$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002345 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002346 . "$ac_site_file" \
2347 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349as_fn_error $? "failed to load site script $ac_site_file
2350See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002351 fi
2352done
2353
2354if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002355 # Some versions of bash will fail to source /dev/null (special files
2356 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2357 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002359$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002360 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002361 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2362 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002363 esac
2364 fi
drh75897232000-05-29 14:26:00 +00002365else
drhf922ca42015-05-14 15:39:18 +00002366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002367$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002368 >$cache_file
2369fi
2370
2371# Check that the precious variables saved in the cache have kept the same
2372# value.
2373ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002374for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002375 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2376 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002377 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2378 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002379 case $ac_old_set,$ac_new_set in
2380 set,)
drhf922ca42015-05-14 15:39:18 +00002381 { $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 +00002382$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002383 ac_cache_corrupted=: ;;
2384 ,set)
drhf922ca42015-05-14 15:39:18 +00002385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002386$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002387 ac_cache_corrupted=: ;;
2388 ,);;
2389 *)
2390 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002391 # differences in whitespace do not lead to failure.
2392 ac_old_val_w=`echo x $ac_old_val`
2393 ac_new_val_w=`echo x $ac_new_val`
2394 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002396$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2397 ac_cache_corrupted=:
2398 else
drhf922ca42015-05-14 15:39:18 +00002399 { $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 +00002400$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2401 eval $ac_var=\$ac_old_val
2402 fi
drhf922ca42015-05-14 15:39:18 +00002403 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002404$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002405 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002406$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002407 fi;;
2408 esac
a.rottmann84e63352003-03-24 09:42:16 +00002409 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002410 if test "$ac_new_set" = set; then
2411 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002412 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002413 *) ac_arg=$ac_var=$ac_new_val ;;
2414 esac
2415 case " $ac_configure_args " in
2416 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002417 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002418 esac
2419 fi
2420done
2421if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002425$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002426 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002427fi
drhf922ca42015-05-14 15:39:18 +00002428## -------------------- ##
2429## Main body of script. ##
2430## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002431
drh75897232000-05-29 14:26:00 +00002432ac_ext=c
drh75897232000-05-29 14:26:00 +00002433ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002437
a.rottmann84e63352003-03-24 09:42:16 +00002438
2439
drh04446102009-06-15 00:04:06 +00002440sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002441if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002442as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002443 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2444 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002445please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002446fi
2447
drh75897232000-05-29 14:26:00 +00002448#########
drh71eb93e2001-09-28 01:34:43 +00002449# Programs needed
drh75897232000-05-29 14:26:00 +00002450#
mlcreech636a9952008-05-05 22:52:56 +00002451case `pwd` in
2452 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002454$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002455esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002456
mlcreech94984912008-03-04 19:03:08 +00002457
mlcreech636a9952008-05-05 22:52:56 +00002458
vapier6acb2cf2009-01-28 04:46:28 +00002459macro_version='2.2.6'
2460macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002461
mlcreech94984912008-03-04 19:03:08 +00002462
mlcreech94984912008-03-04 19:03:08 +00002463
a.rottmann9bc8b932004-02-29 15:18:31 +00002464
mlcreech636a9952008-05-05 22:52:56 +00002465
2466
2467
2468
2469
2470
2471
2472
2473
2474ltmain="$ac_aux_dir/ltmain.sh"
2475
drh71eb93e2001-09-28 01:34:43 +00002476ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002477for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002478 if test -f "$ac_dir/install-sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install-sh -c"
2481 break
2482 elif test -f "$ac_dir/install.sh"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/install.sh -c"
2485 break
2486 elif test -f "$ac_dir/shtool"; then
2487 ac_aux_dir=$ac_dir
2488 ac_install_sh="$ac_aux_dir/shtool install -c"
2489 break
2490 fi
drh71eb93e2001-09-28 01:34:43 +00002491done
2492if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002493 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002494fi
drh8b727472009-01-19 18:18:40 +00002495
2496# These three variables are undocumented and unsupported,
2497# and are intended to be withdrawn in a future Autoconf release.
2498# They can cause serious problems if a builder's source tree is in a directory
2499# whose full name contains unusual characters.
2500ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2501ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2502ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2503
drh71eb93e2001-09-28 01:34:43 +00002504
2505# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002506$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002507 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002508
drhf922ca42015-05-14 15:39:18 +00002509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002510$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002511if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002512 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002513else
drh8b727472009-01-19 18:18:40 +00002514 ac_build_alias=$build_alias
2515test "x$ac_build_alias" = x &&
2516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2517test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002518 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002519ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002521
2522fi
drhf922ca42015-05-14 15:39:18 +00002523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002524$as_echo "$ac_cv_build" >&6; }
2525case $ac_cv_build in
2526*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002527*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002528esac
drh71eb93e2001-09-28 01:34:43 +00002529build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002530ac_save_IFS=$IFS; IFS='-'
2531set x $ac_cv_build
2532shift
2533build_cpu=$1
2534build_vendor=$2
2535shift; shift
2536# Remember, the first character of IFS is used to create $*,
2537# except with old shells:
2538build_os=$*
2539IFS=$ac_save_IFS
2540case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002541
a.rottmann84e63352003-03-24 09:42:16 +00002542
drhf922ca42015-05-14 15:39:18 +00002543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002544$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002545if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002546 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002547else
drh8b727472009-01-19 18:18:40 +00002548 if test "x$host_alias" = x; then
2549 ac_cv_host=$ac_cv_build
2550else
2551 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002553fi
drh71eb93e2001-09-28 01:34:43 +00002554
2555fi
drhf922ca42015-05-14 15:39:18 +00002556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002557$as_echo "$ac_cv_host" >&6; }
2558case $ac_cv_host in
2559*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002560*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002561esac
drh71eb93e2001-09-28 01:34:43 +00002562host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002563ac_save_IFS=$IFS; IFS='-'
2564set x $ac_cv_host
2565shift
2566host_cpu=$1
2567host_vendor=$2
2568shift; shift
2569# Remember, the first character of IFS is used to create $*,
2570# except with old shells:
2571host_os=$*
2572IFS=$ac_save_IFS
2573case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002574
a.rottmann84e63352003-03-24 09:42:16 +00002575
drh71eb93e2001-09-28 01:34:43 +00002576ac_ext=c
2577ac_cpp='$CPP $CPPFLAGS'
2578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2583set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002585$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002586if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002587 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002588else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591else
a.rottmann84e63352003-03-24 09:42:16 +00002592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002601 break 2
2602 fi
2603done
drhf922ca42015-05-14 15:39:18 +00002604 done
drh8b727472009-01-19 18:18:40 +00002605IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002606
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002612$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002613else
drhf922ca42015-05-14 15:39:18 +00002614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002615$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002616fi
2617
drh8b727472009-01-19 18:18:40 +00002618
drh71eb93e2001-09-28 01:34:43 +00002619fi
2620if test -z "$ac_cv_prog_CC"; then
2621 ac_ct_CC=$CC
2622 # Extract the first word of "gcc", so it can be a program name with args.
2623set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002625$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002626if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002627 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002628else
2629 if test -n "$ac_ct_CC"; then
2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2631else
a.rottmann84e63352003-03-24 09:42:16 +00002632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002639 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002641 break 2
2642 fi
2643done
drhf922ca42015-05-14 15:39:18 +00002644 done
drh8b727472009-01-19 18:18:40 +00002645IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002646
2647fi
2648fi
2649ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002652$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002653else
drhf922ca42015-05-14 15:39:18 +00002654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002655$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002656fi
2657
drh8b727472009-01-19 18:18:40 +00002658 if test "x$ac_ct_CC" = x; then
2659 CC=""
2660 else
2661 case $cross_compiling:$ac_tool_warned in
2662yes:)
drhf922ca42015-05-14 15:39:18 +00002663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002665ac_tool_warned=yes ;;
2666esac
2667 CC=$ac_ct_CC
2668 fi
drh71eb93e2001-09-28 01:34:43 +00002669else
2670 CC="$ac_cv_prog_CC"
2671fi
2672
2673if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002676set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002678$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002679if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002680 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002681else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
a.rottmann84e63352003-03-24 09:42:16 +00002685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002692 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002694 break 2
2695 fi
2696done
drhf922ca42015-05-14 15:39:18 +00002697 done
drh8b727472009-01-19 18:18:40 +00002698IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002705$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002706else
drhf922ca42015-05-14 15:39:18 +00002707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002708$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002709fi
2710
drh8b727472009-01-19 18:18:40 +00002711
a.rottmann84e63352003-03-24 09:42:16 +00002712 fi
drh71eb93e2001-09-28 01:34:43 +00002713fi
2714if test -z "$CC"; then
2715 # Extract the first word of "cc", so it can be a program name with args.
2716set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002718$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002719if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002720 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002721else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724else
2725 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2734 ac_prog_rejected=yes
2735 continue
2736 fi
2737 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002739 break 2
2740 fi
2741done
drhf922ca42015-05-14 15:39:18 +00002742 done
drh8b727472009-01-19 18:18:40 +00002743IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002744
2745if test $ac_prog_rejected = yes; then
2746 # We found a bogon in the path, so make sure we never use it.
2747 set dummy $ac_cv_prog_CC
2748 shift
2749 if test $# != 0; then
2750 # We chose a different compiler from the bogus one.
2751 # However, it has the same basename, so the bogon will be chosen
2752 # first if we set CC to just the basename; use the full file name.
2753 shift
a.rottmann84e63352003-03-24 09:42:16 +00002754 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002755 fi
2756fi
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002762$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002763else
drhf922ca42015-05-14 15:39:18 +00002764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002765$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002766fi
2767
drh8b727472009-01-19 18:18:40 +00002768
drh71eb93e2001-09-28 01:34:43 +00002769fi
2770if test -z "$CC"; then
2771 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002772 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002773 do
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002777$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002778if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002779 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002780else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
a.rottmann84e63352003-03-24 09:42:16 +00002784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002793 break 2
2794 fi
2795done
drhf922ca42015-05-14 15:39:18 +00002796 done
drh8b727472009-01-19 18:18:40 +00002797IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002804$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002805else
drhf922ca42015-05-14 15:39:18 +00002806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002807$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002808fi
2809
drh8b727472009-01-19 18:18:40 +00002810
drh71eb93e2001-09-28 01:34:43 +00002811 test -n "$CC" && break
2812 done
2813fi
2814if test -z "$CC"; then
2815 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002816 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002817do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002821$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002822if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002823 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
a.rottmann84e63352003-03-24 09:42:16 +00002828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002835 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002837 break 2
2838 fi
2839done
drhf922ca42015-05-14 15:39:18 +00002840 done
drh8b727472009-01-19 18:18:40 +00002841IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002848$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002849else
drhf922ca42015-05-14 15:39:18 +00002850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002851$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002852fi
2853
drh8b727472009-01-19 18:18:40 +00002854
drh71eb93e2001-09-28 01:34:43 +00002855 test -n "$ac_ct_CC" && break
2856done
2857
drh8b727472009-01-19 18:18:40 +00002858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
drhf922ca42015-05-14 15:39:18 +00002863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002865ac_tool_warned=yes ;;
2866esac
2867 CC=$ac_ct_CC
2868 fi
drh71eb93e2001-09-28 01:34:43 +00002869fi
2870
2871fi
2872
a.rottmann84e63352003-03-24 09:42:16 +00002873
drhf922ca42015-05-14 15:39:18 +00002874test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876as_fn_error $? "no acceptable C compiler found in \$PATH
2877See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002878
2879# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002880$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002881set X $ac_compile
2882ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002883for ac_option in --version -v -V -qversion; do
2884 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
drhf922ca42015-05-14 15:39:18 +00002889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890$as_echo "$ac_try_echo"; } >&5
2891 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002892 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002893 if test -s conftest.err; then
2894 sed '10a\
2895... rest of stderr output deleted ...
2896 10q' conftest.err >conftest.er1
2897 cat conftest.er1 >&5
2898 fi
2899 rm -f conftest.er1 conftest.err
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }
2902done
drh71eb93e2001-09-28 01:34:43 +00002903
drhf922ca42015-05-14 15:39:18 +00002904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002905/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002906
2907int
2908main ()
2909{
2910
2911 ;
2912 return 0;
2913}
2914_ACEOF
2915ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002916ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002917# Try to create an executable without -o first, disregard a.out.
2918# It will help us diagnose broken compilers, and finding out an intuition
2919# of exeext.
drhf922ca42015-05-14 15:39:18 +00002920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2921$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002922ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002923
drh8b727472009-01-19 18:18:40 +00002924# The possible output files:
2925ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2926
2927ac_rmfiles=
2928for ac_file in $ac_files
2929do
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933 esac
2934done
2935rm -f $ac_rmfiles
2936
drhf922ca42015-05-14 15:39:18 +00002937if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
drhf922ca42015-05-14 15:39:18 +00002942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002944 (eval "$ac_link_default") 2>&5
2945 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2949# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2950# in a Makefile. We should not override ac_cv_exeext if it was cached,
2951# so that the user can short-circuit this test for compilers unknown to
2952# Autoconf.
2953for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002954do
2955 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002956 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002958 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002959 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002960 # We found the default executable, but exeext='' is most
2961 # certainly right.
2962 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002963 *.* )
drhf922ca42015-05-14 15:39:18 +00002964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002965 then :; else
2966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 fi
2968 # We set ac_cv_exeext here because the later test for it is not
2969 # safe: cross compilers may not add the suffix if given an `-o'
2970 # argument, so we may need to know it at that point already.
2971 # Even if this section looks crufty: it has the advantage of
2972 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002973 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002974 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002975 break;;
drh71eb93e2001-09-28 01:34:43 +00002976 esac
2977done
drh8b727472009-01-19 18:18:40 +00002978test "$ac_cv_exeext" = no && ac_cv_exeext=
2979
drh71eb93e2001-09-28 01:34:43 +00002980else
drh8b727472009-01-19 18:18:40 +00002981 ac_file=''
2982fi
drhf922ca42015-05-14 15:39:18 +00002983if test -z "$ac_file"; then :
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002987sed 's/^/| /' conftest.$ac_ext >&5
2988
drhf922ca42015-05-14 15:39:18 +00002989{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991as_fn_error 77 "C compiler cannot create executables
2992See \`config.log' for more details" "$LINENO" 5; }
2993else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002995$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2998$as_echo_n "checking for C compiler default output file name... " >&6; }
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3000$as_echo "$ac_file" >&6; }
3001ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00003002
drh8b727472009-01-19 18:18:40 +00003003rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00003004ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00003005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00003006$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003007if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00003008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
drhf922ca42015-05-14 15:39:18 +00003012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3013$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003014 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003015 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3020# work properly (i.e., refer to `conftest.exe'), while it won't with
3021# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003022for ac_file in conftest.exe conftest conftest.*; do
3023 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003024 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003027 break;;
drh71eb93e2001-09-28 01:34:43 +00003028 * ) break;;
3029 esac
3030done
3031else
drhf922ca42015-05-14 15:39:18 +00003032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3035See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003036fi
drhf922ca42015-05-14 15:39:18 +00003037rm -f conftest conftest$ac_cv_exeext
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003039$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003040
3041rm -f conftest.$ac_ext
3042EXEEXT=$ac_cv_exeext
3043ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h. */
3046#include <stdio.h>
3047int
3048main ()
3049{
3050FILE *f = fopen ("conftest.out", "w");
3051 return ferror (f) || fclose (f) != 0;
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057ac_clean_files="$ac_clean_files conftest.out"
3058# Check that the compiler produces executables we can run. If not, either
3059# the compiler is broken, or we cross compile.
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3061$as_echo_n "checking whether we are cross compiling... " >&6; }
3062if test "$cross_compiling" != yes; then
3063 { { ac_try="$ac_link"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }
3074 if { ac_try='./conftest$ac_cv_exeext'
3075 { { case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080$as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_try") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; }; then
3085 cross_compiling=no
3086 else
3087 if test "$cross_compiling" = maybe; then
3088 cross_compiling=yes
3089 else
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092as_fn_error $? "cannot run C compiled programs.
3093If you meant to cross compile, use \`--host'.
3094See \`config.log' for more details" "$LINENO" 5; }
3095 fi
3096 fi
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3099$as_echo "$cross_compiling" >&6; }
3100
3101rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3102ac_clean_files=$ac_clean_files_save
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003104$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003105if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003106 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003107else
drhf922ca42015-05-14 15:39:18 +00003108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003109/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003110
3111int
3112main ()
3113{
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003120if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003121case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
drhf922ca42015-05-14 15:39:18 +00003125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003127 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003128 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003131 for ac_file in conftest.o conftest.obj conftest.*; do
3132 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003133 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3136 break;;
3137 esac
3138done
3139else
drh8b727472009-01-19 18:18:40 +00003140 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003141sed 's/^/| /' conftest.$ac_ext >&5
3142
drhf922ca42015-05-14 15:39:18 +00003143{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145as_fn_error $? "cannot compute suffix of object files: cannot compile
3146See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003147fi
drh71eb93e2001-09-28 01:34:43 +00003148rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149fi
drhf922ca42015-05-14 15:39:18 +00003150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003151$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003152OBJEXT=$ac_cv_objext
3153ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003155$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003156if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003157 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003158else
drhf922ca42015-05-14 15:39:18 +00003159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003160/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003161
3162int
3163main ()
3164{
3165#ifndef __GNUC__
3166 choke me
3167#endif
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
drhf922ca42015-05-14 15:39:18 +00003173if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003174 ac_compiler_gnu=yes
3175else
drhf922ca42015-05-14 15:39:18 +00003176 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003177fi
drh8b727472009-01-19 18:18:40 +00003178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003179ac_cv_c_compiler_gnu=$ac_compiler_gnu
3180
3181fi
drhf922ca42015-05-14 15:39:18 +00003182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003183$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184if test $ac_compiler_gnu = yes; then
3185 GCC=yes
3186else
3187 GCC=
3188fi
drh71eb93e2001-09-28 01:34:43 +00003189ac_test_CFLAGS=${CFLAGS+set}
3190ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003192$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003193if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003194 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003195else
drh8b727472009-01-19 18:18:40 +00003196 ac_save_c_werror_flag=$ac_c_werror_flag
3197 ac_c_werror_flag=yes
3198 ac_cv_prog_cc_g=no
3199 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003201/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003202
3203int
3204main ()
3205{
3206
3207 ;
3208 return 0;
3209}
3210_ACEOF
drhf922ca42015-05-14 15:39:18 +00003211if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003212 ac_cv_prog_cc_g=yes
3213else
drhf922ca42015-05-14 15:39:18 +00003214 CFLAGS=""
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
drhf922ca42015-05-14 15:39:18 +00003226if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003227
drhf922ca42015-05-14 15:39:18 +00003228else
3229 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003230 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003232/* end confdefs.h. */
3233
3234int
3235main ()
3236{
3237
3238 ;
3239 return 0;
3240}
3241_ACEOF
drhf922ca42015-05-14 15:39:18 +00003242if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003243 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003244fi
drh8b727472009-01-19 18:18:40 +00003245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003246fi
drh8b727472009-01-19 18:18:40 +00003247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
drh8b727472009-01-19 18:18:40 +00003249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251fi
drhf922ca42015-05-14 15:39:18 +00003252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003253$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
drhf922ca42015-05-14 15:39:18 +00003269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003270$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003271if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003272 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003273else
drh8b727472009-01-19 18:18:40 +00003274 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003275ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003277/* end confdefs.h. */
3278#include <stdarg.h>
3279#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003280struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3282struct buf { int x; };
3283FILE * (*rcsopen) (struct buf *, struct stat *, int);
3284static char *e (p, i)
3285 char **p;
3286 int i;
3287{
3288 return p[i];
3289}
3290static char *f (char * (*g) (char **, int), char **p, ...)
3291{
3292 char *s;
3293 va_list v;
3294 va_start (v,p);
3295 s = g (p, va_arg (v,int));
3296 va_end (v);
3297 return s;
3298}
a.rottmann964dbb12004-02-26 19:47:42 +00003299
3300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3301 function prototypes and stuff, but not '\xHH' hex character constants.
3302 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003303 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003304 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3305 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003306 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3308
drh8b727472009-01-19 18:18:40 +00003309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3310 inside strings and character constants. */
3311#define FOO(x) 'x'
3312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3313
a.rottmann84e63352003-03-24 09:42:16 +00003314int test (int i, double x);
3315struct s1 {int (*f) (int a);};
3316struct s2 {int (*f) (double a);};
3317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318int argc;
3319char **argv;
3320int
3321main ()
3322{
3323return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 ;
3325 return 0;
3326}
3327_ACEOF
drh8b727472009-01-19 18:18:40 +00003328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3329 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003330do
3331 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003332 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003333 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003334fi
drh8b727472009-01-19 18:18:40 +00003335rm -f core conftest.err conftest.$ac_objext
3336 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003337done
drh8b727472009-01-19 18:18:40 +00003338rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003339CC=$ac_save_CC
3340
3341fi
drh8b727472009-01-19 18:18:40 +00003342# AC_CACHE_VAL
3343case "x$ac_cv_prog_cc_c89" in
3344 x)
drhf922ca42015-05-14 15:39:18 +00003345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003346$as_echo "none needed" >&6; } ;;
3347 xno)
drhf922ca42015-05-14 15:39:18 +00003348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003349$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003350 *)
drh8b727472009-01-19 18:18:40 +00003351 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003353$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003354esac
drhf922ca42015-05-14 15:39:18 +00003355if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003356
drhf922ca42015-05-14 15:39:18 +00003357fi
a.rottmann84e63352003-03-24 09:42:16 +00003358
drh71eb93e2001-09-28 01:34:43 +00003359ac_ext=c
3360ac_cpp='$CPP $CPPFLAGS'
3361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364
drhf922ca42015-05-14 15:39:18 +00003365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003366$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003367if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003368 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003369else
drh8b727472009-01-19 18:18:40 +00003370 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3371 for ac_i in 1 2 3 4 5 6 7; do
3372 ac_script="$ac_script$as_nl$ac_script"
3373 done
3374 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003375 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003376 if test -z "$SED"; then
3377 ac_path_SED_found=false
3378 # Loop through the user's path and test for each of PROGNAME-LIST
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003380for as_dir in $PATH
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003384 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003385 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003386 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003387 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003388# Check for GNU ac_path_SED and select it if it is found.
3389 # Check for GNU $ac_path_SED
3390case `"$ac_path_SED" --version 2>&1` in
3391*GNU*)
3392 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3393*)
3394 ac_count=0
3395 $as_echo_n 0123456789 >"conftest.in"
3396 while :
3397 do
3398 cat "conftest.in" "conftest.in" >"conftest.tmp"
3399 mv "conftest.tmp" "conftest.in"
3400 cp "conftest.in" "conftest.nl"
3401 $as_echo '' >> "conftest.nl"
3402 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003404 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003405 if test $ac_count -gt ${ac_path_SED_max-0}; then
3406 # Best one so far, save it but keep looking for a better one
3407 ac_cv_path_SED="$ac_path_SED"
3408 ac_path_SED_max=$ac_count
3409 fi
3410 # 10*(2^10) chars as input seems more than enough
3411 test $ac_count -gt 10 && break
3412 done
3413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3414esac
3415
3416 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003417 done
3418 done
drhf922ca42015-05-14 15:39:18 +00003419 done
mlcreech636a9952008-05-05 22:52:56 +00003420IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003421 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003422 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003423 fi
drh8b727472009-01-19 18:18:40 +00003424else
3425 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003426fi
drh866108f2008-05-13 00:57:21 +00003427
drh8b727472009-01-19 18:18:40 +00003428fi
drhf922ca42015-05-14 15:39:18 +00003429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003430$as_echo "$ac_cv_path_SED" >&6; }
3431 SED="$ac_cv_path_SED"
3432 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003433
mlcreech636a9952008-05-05 22:52:56 +00003434test -z "$SED" && SED=sed
3435Xsed="$SED -e 1s/^X//"
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
drhf922ca42015-05-14 15:39:18 +00003447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003448$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003449if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003450 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003451else
drh8b727472009-01-19 18:18:40 +00003452 if test -z "$GREP"; then
3453 ac_path_GREP_found=false
3454 # Loop through the user's path and test for each of PROGNAME-LIST
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3457do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003460 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003463 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003464# Check for GNU ac_path_GREP and select it if it is found.
3465 # Check for GNU $ac_path_GREP
3466case `"$ac_path_GREP" --version 2>&1` in
3467*GNU*)
3468 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3469*)
3470 ac_count=0
3471 $as_echo_n 0123456789 >"conftest.in"
3472 while :
3473 do
3474 cat "conftest.in" "conftest.in" >"conftest.tmp"
3475 mv "conftest.tmp" "conftest.in"
3476 cp "conftest.in" "conftest.nl"
3477 $as_echo 'GREP' >> "conftest.nl"
3478 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003480 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003481 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3482 # Best one so far, save it but keep looking for a better one
3483 ac_cv_path_GREP="$ac_path_GREP"
3484 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003485 fi
drh8b727472009-01-19 18:18:40 +00003486 # 10*(2^10) chars as input seems more than enough
3487 test $ac_count -gt 10 && break
3488 done
3489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3490esac
3491
3492 $ac_path_GREP_found && break 3
3493 done
3494 done
drhf922ca42015-05-14 15:39:18 +00003495 done
drh8b727472009-01-19 18:18:40 +00003496IFS=$as_save_IFS
3497 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003498 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003499 fi
3500else
3501 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003502fi
drh8b727472009-01-19 18:18:40 +00003503
3504fi
drhf922ca42015-05-14 15:39:18 +00003505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003506$as_echo "$ac_cv_path_GREP" >&6; }
3507 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003508
3509
drhf922ca42015-05-14 15:39:18 +00003510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003511$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003512if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003513 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003514else
drh8b727472009-01-19 18:18:40 +00003515 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3516 then ac_cv_path_EGREP="$GREP -E"
3517 else
3518 if test -z "$EGREP"; then
3519 ac_path_EGREP_found=false
3520 # Loop through the user's path and test for each of PROGNAME-LIST
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003526 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003529 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003530# Check for GNU ac_path_EGREP and select it if it is found.
3531 # Check for GNU $ac_path_EGREP
3532case `"$ac_path_EGREP" --version 2>&1` in
3533*GNU*)
3534 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3535*)
3536 ac_count=0
3537 $as_echo_n 0123456789 >"conftest.in"
3538 while :
3539 do
3540 cat "conftest.in" "conftest.in" >"conftest.tmp"
3541 mv "conftest.tmp" "conftest.in"
3542 cp "conftest.in" "conftest.nl"
3543 $as_echo 'EGREP' >> "conftest.nl"
3544 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003546 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003547 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3548 # Best one so far, save it but keep looking for a better one
3549 ac_cv_path_EGREP="$ac_path_EGREP"
3550 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003551 fi
drh8b727472009-01-19 18:18:40 +00003552 # 10*(2^10) chars as input seems more than enough
3553 test $ac_count -gt 10 && break
3554 done
3555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3556esac
3557
3558 $ac_path_EGREP_found && break 3
3559 done
3560 done
drhf922ca42015-05-14 15:39:18 +00003561 done
drh8b727472009-01-19 18:18:40 +00003562IFS=$as_save_IFS
3563 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003564 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003565 fi
3566else
3567 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003568fi
drh8b727472009-01-19 18:18:40 +00003569
3570 fi
3571fi
drhf922ca42015-05-14 15:39:18 +00003572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003573$as_echo "$ac_cv_path_EGREP" >&6; }
3574 EGREP="$ac_cv_path_EGREP"
3575
3576
drhf922ca42015-05-14 15:39:18 +00003577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003578$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003579if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003580 $as_echo_n "(cached) " >&6
3581else
3582 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3583 then ac_cv_path_FGREP="$GREP -F"
3584 else
3585 if test -z "$FGREP"; then
3586 ac_path_FGREP_found=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3590do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003593 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003596 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003597# Check for GNU ac_path_FGREP and select it if it is found.
3598 # Check for GNU $ac_path_FGREP
3599case `"$ac_path_FGREP" --version 2>&1` in
3600*GNU*)
3601 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3602*)
3603 ac_count=0
3604 $as_echo_n 0123456789 >"conftest.in"
3605 while :
3606 do
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 $as_echo 'FGREP' >> "conftest.nl"
3611 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003613 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003614 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_FGREP="$ac_path_FGREP"
3617 ac_path_FGREP_max=$ac_count
3618 fi
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3621 done
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3623esac
3624
3625 $ac_path_FGREP_found && break 3
3626 done
3627 done
drhf922ca42015-05-14 15:39:18 +00003628 done
drh8b727472009-01-19 18:18:40 +00003629IFS=$as_save_IFS
3630 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003631 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003632 fi
3633else
3634 ac_cv_path_FGREP=$FGREP
3635fi
3636
3637 fi
3638fi
drhf922ca42015-05-14 15:39:18 +00003639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003640$as_echo "$ac_cv_path_FGREP" >&6; }
3641 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003642
3643
3644test -z "$GREP" && GREP=grep
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
a.rottmann9bc8b932004-02-29 15:18:31 +00003661
3662
a.rottmann84e63352003-03-24 09:42:16 +00003663
drh8b727472009-01-19 18:18:40 +00003664# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003665if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003666 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003667else
3668 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003669fi
3670
drh71eb93e2001-09-28 01:34:43 +00003671ac_prog=ld
3672if test "$GCC" = yes; then
3673 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003675$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003676 case $host in
3677 *-*-mingw*)
3678 # gcc leaves a trailing carriage return which upsets mingw
3679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3680 *)
3681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3682 esac
3683 case $ac_prog in
3684 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003685 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003686 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003687 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003688 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3689 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3690 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003691 done
3692 test -z "$LD" && LD="$ac_prog"
3693 ;;
3694 "")
3695 # If it fails, then pretend we aren't using GCC.
3696 ac_prog=ld
3697 ;;
3698 *)
3699 # If it is relative, then search for the first ld in PATH.
3700 with_gnu_ld=unknown
3701 ;;
3702 esac
3703elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003705$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003706else
drhf922ca42015-05-14 15:39:18 +00003707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003708$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003709fi
drhf922ca42015-05-14 15:39:18 +00003710if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003711 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003712else
3713 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003715 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003716 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003717 test -z "$ac_dir" && ac_dir=.
3718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3719 lt_cv_path_LD="$ac_dir/$ac_prog"
3720 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003721 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003722 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3724 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003725 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003726 ;;
3727 *)
drh71eb93e2001-09-28 01:34:43 +00003728 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003729 ;;
3730 esac
drh71eb93e2001-09-28 01:34:43 +00003731 fi
3732 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003733 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003734else
3735 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3736fi
3737fi
3738
3739LD="$lt_cv_path_LD"
3740if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003742$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003743else
drhf922ca42015-05-14 15:39:18 +00003744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003745$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003746fi
drhf922ca42015-05-14 15:39:18 +00003747test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003749$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003750if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003751 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003752else
vapier7f19c022007-02-17 14:46:31 +00003753 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003754case `$LD -v 2>&1 </dev/null` in
3755*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003756 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003757 ;;
3758*)
drh71eb93e2001-09-28 01:34:43 +00003759 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003760 ;;
3761esac
drh71eb93e2001-09-28 01:34:43 +00003762fi
drhf922ca42015-05-14 15:39:18 +00003763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003764$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003765with_gnu_ld=$lt_cv_prog_gnu_ld
3766
a.rottmann84e63352003-03-24 09:42:16 +00003767
drh71eb93e2001-09-28 01:34:43 +00003768
mlcreech636a9952008-05-05 22:52:56 +00003769
3770
3771
3772
3773
3774
drhf922ca42015-05-14 15:39:18 +00003775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003776$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003777if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003778 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003779else
3780 if test -n "$NM"; then
3781 # Let the user override the test.
3782 lt_cv_path_NM="$NM"
3783else
vapier7f19c022007-02-17 14:46:31 +00003784 lt_nm_to_check="${ac_tool_prefix}nm"
3785 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3786 lt_nm_to_check="$lt_nm_to_check nm"
3787 fi
3788 for lt_tmp_nm in $lt_nm_to_check; do
3789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3790 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3791 IFS="$lt_save_ifs"
3792 test -z "$ac_dir" && ac_dir=.
3793 tmp_nm="$ac_dir/$lt_tmp_nm"
3794 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3795 # Check to see if the nm accepts a BSD-compat flag.
3796 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3797 # nm: unknown option "B" ignored
3798 # Tru64's nm complains that /dev/null is an invalid object file
3799 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3800 */dev/null* | *'Invalid file or object type'*)
3801 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003802 break
3803 ;;
3804 *)
vapier7f19c022007-02-17 14:46:31 +00003805 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3806 */dev/null*)
3807 lt_cv_path_NM="$tmp_nm -p"
3808 break
3809 ;;
3810 *)
3811 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3812 continue # so that we can try to find one that supports BSD flags
3813 ;;
3814 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003815 ;;
3816 esac
vapier7f19c022007-02-17 14:46:31 +00003817 fi
3818 done
3819 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003820 done
mlcreech636a9952008-05-05 22:52:56 +00003821 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003822fi
3823fi
drhf922ca42015-05-14 15:39:18 +00003824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003825$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003826if test "$lt_cv_path_NM" != "no"; then
3827 NM="$lt_cv_path_NM"
3828else
3829 # Didn't find any BSD compatible name lister, look for dumpbin.
3830 if test -n "$ac_tool_prefix"; then
3831 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3832 do
3833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003836$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003837if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003838 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003839else
3840 if test -n "$DUMPBIN"; then
3841 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003850 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003852 break 2
3853 fi
3854done
drhf922ca42015-05-14 15:39:18 +00003855 done
drh8b727472009-01-19 18:18:40 +00003856IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003857
mlcreech636a9952008-05-05 22:52:56 +00003858fi
3859fi
3860DUMPBIN=$ac_cv_prog_DUMPBIN
3861if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003863$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003864else
drhf922ca42015-05-14 15:39:18 +00003865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003866$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003867fi
3868
drh8b727472009-01-19 18:18:40 +00003869
mlcreech636a9952008-05-05 22:52:56 +00003870 test -n "$DUMPBIN" && break
3871 done
3872fi
3873if test -z "$DUMPBIN"; then
3874 ac_ct_DUMPBIN=$DUMPBIN
3875 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3876do
3877 # Extract the first word of "$ac_prog", so it can be a program name with args.
3878set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003880$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003881if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003882 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003883else
3884 if test -n "$ac_ct_DUMPBIN"; then
3885 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3886else
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003894 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003896 break 2
3897 fi
3898done
drhf922ca42015-05-14 15:39:18 +00003899 done
drh8b727472009-01-19 18:18:40 +00003900IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003901
3902fi
3903fi
3904ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3905if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003907$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003908else
drhf922ca42015-05-14 15:39:18 +00003909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003910$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003911fi
3912
drh8b727472009-01-19 18:18:40 +00003913
mlcreech636a9952008-05-05 22:52:56 +00003914 test -n "$ac_ct_DUMPBIN" && break
3915done
3916
drh8b727472009-01-19 18:18:40 +00003917 if test "x$ac_ct_DUMPBIN" = x; then
3918 DUMPBIN=":"
3919 else
3920 case $cross_compiling:$ac_tool_warned in
3921yes:)
drhf922ca42015-05-14 15:39:18 +00003922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003924ac_tool_warned=yes ;;
3925esac
3926 DUMPBIN=$ac_ct_DUMPBIN
3927 fi
mlcreech636a9952008-05-05 22:52:56 +00003928fi
3929
3930
3931 if test "$DUMPBIN" != ":"; then
3932 NM="$DUMPBIN"
3933 fi
3934fi
3935test -z "$NM" && NM=nm
3936
3937
3938
3939
3940
3941
drhf922ca42015-05-14 15:39:18 +00003942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003943$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003944if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003945 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003946else
3947 lt_cv_nm_interface="BSD nm"
3948 echo "int some_variable = 0;" > conftest.$ac_ext
drhfb556712019-03-22 11:38:14 +00003949 (eval echo "\"\$as_me:3949: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003950 (eval "$ac_compile" 2>conftest.err)
3951 cat conftest.err >&5
drhfb556712019-03-22 11:38:14 +00003952 (eval echo "\"\$as_me:3952: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3954 cat conftest.err >&5
drhfb556712019-03-22 11:38:14 +00003955 (eval echo "\"\$as_me:3955: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003956 cat conftest.out >&5
3957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3958 lt_cv_nm_interface="MS dumpbin"
3959 fi
3960 rm -f conftest*
3961fi
drhf922ca42015-05-14 15:39:18 +00003962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003963$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003964
drhf922ca42015-05-14 15:39:18 +00003965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003966$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003967LN_S=$as_ln_s
3968if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003970$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003971else
drhf922ca42015-05-14 15:39:18 +00003972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003973$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003974fi
3975
mlcreech636a9952008-05-05 22:52:56 +00003976# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003978$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003979if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003980 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003981else
3982 i=0
3983 teststring="ABCD"
3984
3985 case $build_os in
3986 msdosdjgpp*)
3987 # On DJGPP, this test can blow up pretty badly due to problems in libc
3988 # (any single argument exceeding 2000 bytes causes a buffer overrun
3989 # during glob expansion). Even if it were fixed, the result of this
3990 # check would be larger than it should be.
3991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3992 ;;
3993
3994 gnu*)
3995 # Under GNU Hurd, this test is not required because there is
3996 # no limit to the length of command line arguments.
3997 # Libtool will interpret -1 as no limit whatsoever
3998 lt_cv_sys_max_cmd_len=-1;
3999 ;;
4000
vapier6acb2cf2009-01-28 04:46:28 +00004001 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004002 # On Win9x/ME, this test blows up -- it succeeds, but takes
4003 # about 5 minutes as the teststring grows exponentially.
4004 # Worse, since 9x/ME are not pre-emptively multitasking,
4005 # you end up with a "frozen" computer, even though with patience
4006 # the test eventually succeeds (with a max line length of 256k).
4007 # Instead, let's just punt: use the minimum linelength reported by
4008 # all of the supported platforms: 8192 (on NT/2K/XP).
4009 lt_cv_sys_max_cmd_len=8192;
4010 ;;
4011
4012 amigaos*)
4013 # On AmigaOS with pdksh, this test takes hours, literally.
4014 # So we just punt and use a minimum line length of 8192.
4015 lt_cv_sys_max_cmd_len=8192;
4016 ;;
4017
4018 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4019 # This has been around since 386BSD, at least. Likely further.
4020 if test -x /sbin/sysctl; then
4021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4022 elif test -x /usr/sbin/sysctl; then
4023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4024 else
4025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4026 fi
4027 # And add a safety zone
4028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4030 ;;
4031
4032 interix*)
4033 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4034 lt_cv_sys_max_cmd_len=196608
4035 ;;
4036
4037 osf*)
4038 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4039 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4040 # nice to cause kernel panics so lets avoid the loop below.
4041 # First set a reasonable default.
4042 lt_cv_sys_max_cmd_len=16384
4043 #
4044 if test -x /sbin/sysconfig; then
4045 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4046 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4047 esac
4048 fi
4049 ;;
4050 sco3.2v5*)
4051 lt_cv_sys_max_cmd_len=102400
4052 ;;
4053 sysv5* | sco5v6* | sysv4.2uw2*)
4054 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4055 if test -n "$kargmax"; then
4056 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4057 else
4058 lt_cv_sys_max_cmd_len=32768
4059 fi
4060 ;;
4061 *)
4062 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4063 if test -n "$lt_cv_sys_max_cmd_len"; then
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4066 else
4067 # Make teststring a little bigger before we do anything with it.
4068 # a 1K string should be a reasonable start.
4069 for i in 1 2 3 4 5 6 7 8 ; do
4070 teststring=$teststring$teststring
4071 done
4072 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4073 # If test is not a shell built-in, we'll probably end up computing a
4074 # maximum length that is only half of the actual maximum length, but
4075 # we can't tell.
4076 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4077 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4078 test $i != 17 # 1/2 MB should be enough
4079 do
4080 i=`expr $i + 1`
4081 teststring=$teststring$teststring
4082 done
4083 # Only check the string length outside the loop.
4084 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4085 teststring=
4086 # Add a significant safety factor because C++ compilers can tack on
4087 # massive amounts of additional arguments before passing them to the
4088 # linker. It appears as though 1/2 is a usable value.
4089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4090 fi
4091 ;;
4092 esac
4093
4094fi
4095
4096if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004098$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004099else
drhf922ca42015-05-14 15:39:18 +00004100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004101$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004102fi
4103max_cmd_len=$lt_cv_sys_max_cmd_len
4104
4105
4106
4107
4108
4109
4110: ${CP="cp -f"}
4111: ${MV="mv -f"}
4112: ${RM="rm -f"}
4113
drhf922ca42015-05-14 15:39:18 +00004114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004115$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004116# Try some XSI features
4117xsi_shell=no
4118( _lt_dummy="a/b/c"
4119 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4120 = c,a/b,, \
4121 && eval 'test $(( 1 + 1 )) -eq 2 \
4122 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4123 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004125$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004126
4127
drhf922ca42015-05-14 15:39:18 +00004128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004129$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004130lt_shell_append=no
4131( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4132 >/dev/null 2>&1 \
4133 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004135$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004136
4137
4138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4139 lt_unset=unset
4140else
4141 lt_unset=false
4142fi
4143
4144
4145
4146
4147
4148# test EBCDIC or ASCII
4149case `echo X|tr X '\101'` in
4150 A) # ASCII based system
4151 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4152 lt_SP2NL='tr \040 \012'
4153 lt_NL2SP='tr \015\012 \040\040'
4154 ;;
4155 *) # EBCDIC based system
4156 lt_SP2NL='tr \100 \n'
4157 lt_NL2SP='tr \r\n \100\100'
4158 ;;
4159esac
4160
4161
4162
4163
4164
4165
4166
4167
4168
drhf922ca42015-05-14 15:39:18 +00004169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004170$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004171if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004172 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004173else
4174 lt_cv_ld_reload_flag='-r'
4175fi
drhf922ca42015-05-14 15:39:18 +00004176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004177$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004178reload_flag=$lt_cv_ld_reload_flag
4179case $reload_flag in
4180"" | " "*) ;;
4181*) reload_flag=" $reload_flag" ;;
4182esac
4183reload_cmds='$LD$reload_flag -o $output$reload_objs'
4184case $host_os in
4185 darwin*)
4186 if test "$GCC" = yes; then
4187 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4188 else
4189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4190 fi
4191 ;;
4192esac
4193
4194
4195
4196
4197
4198
4199
4200
4201
vapier6acb2cf2009-01-28 04:46:28 +00004202if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4204set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004206$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004207if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004208 $as_echo_n "(cached) " >&6
4209else
4210 if test -n "$OBJDUMP"; then
4211 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004220 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004222 break 2
4223 fi
4224done
drhf922ca42015-05-14 15:39:18 +00004225 done
vapier6acb2cf2009-01-28 04:46:28 +00004226IFS=$as_save_IFS
4227
4228fi
4229fi
4230OBJDUMP=$ac_cv_prog_OBJDUMP
4231if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004233$as_echo "$OBJDUMP" >&6; }
4234else
drhf922ca42015-05-14 15:39:18 +00004235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004236$as_echo "no" >&6; }
4237fi
4238
4239
4240fi
4241if test -z "$ac_cv_prog_OBJDUMP"; then
4242 ac_ct_OBJDUMP=$OBJDUMP
4243 # Extract the first word of "objdump", so it can be a program name with args.
4244set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004246$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004247if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004248 $as_echo_n "(cached) " >&6
4249else
4250 if test -n "$ac_ct_OBJDUMP"; then
4251 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004260 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004262 break 2
4263 fi
4264done
drhf922ca42015-05-14 15:39:18 +00004265 done
vapier6acb2cf2009-01-28 04:46:28 +00004266IFS=$as_save_IFS
4267
4268fi
4269fi
4270ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4271if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004273$as_echo "$ac_ct_OBJDUMP" >&6; }
4274else
drhf922ca42015-05-14 15:39:18 +00004275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004276$as_echo "no" >&6; }
4277fi
4278
4279 if test "x$ac_ct_OBJDUMP" = x; then
4280 OBJDUMP="false"
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283yes:)
drhf922ca42015-05-14 15:39:18 +00004284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004286ac_tool_warned=yes ;;
4287esac
4288 OBJDUMP=$ac_ct_OBJDUMP
4289 fi
4290else
4291 OBJDUMP="$ac_cv_prog_OBJDUMP"
4292fi
4293
4294test -z "$OBJDUMP" && OBJDUMP=objdump
4295
4296
4297
4298
4299
4300
4301
4302
mlcreech636a9952008-05-05 22:52:56 +00004303
drhf922ca42015-05-14 15:39:18 +00004304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004305$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004306if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004307 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004308else
4309 lt_cv_file_magic_cmd='$MAGIC_CMD'
4310lt_cv_file_magic_test_file=
4311lt_cv_deplibs_check_method='unknown'
4312# Need to set the preceding variable on all platforms that support
4313# interlibrary dependencies.
4314# 'none' -- dependencies not supported.
4315# `unknown' -- same as none, but documents that we really don't know.
4316# 'pass_all' -- all dependencies passed with no checks.
4317# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004318# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004319# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004320# If you have `file' or equivalent on your system and you're not sure
4321# whether `pass_all' will *always* work, you probably want this one.
4322
4323case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004324aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004325 lt_cv_deplibs_check_method=pass_all
4326 ;;
4327
4328beos*)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331
vapier7f19c022007-02-17 14:46:31 +00004332bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4334 lt_cv_file_magic_cmd='/usr/bin/file -L'
4335 lt_cv_file_magic_test_file=/shlib/libc.so
4336 ;;
4337
a.rottmann9bc8b932004-02-29 15:18:31 +00004338cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004339 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004341 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004342 ;;
4343
4344mingw* | pw32*)
4345 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004346 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4347 # unless we find 'file', for example because we are cross-compiling.
4348 if ( file / ) >/dev/null 2>&1; then
4349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4350 lt_cv_file_magic_cmd='func_win32_libid'
4351 else
4352 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4353 lt_cv_file_magic_cmd='$OBJDUMP -f'
4354 fi
drh71eb93e2001-09-28 01:34:43 +00004355 ;;
4356
vapier6acb2cf2009-01-28 04:46:28 +00004357cegcc)
4358 # use the weaker test based on 'objdump'. See mingw*.
4359 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4360 lt_cv_file_magic_cmd='$OBJDUMP -f'
4361 ;;
4362
drh71eb93e2001-09-28 01:34:43 +00004363darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004364 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004365 ;;
4366
mlcreech636a9952008-05-05 22:52:56 +00004367freebsd* | dragonfly*)
4368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004369 case $host_cpu in
4370 i*86 )
4371 # Not sure whether the presence of OpenBSD here was a mistake.
4372 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004373 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 +00004374 lt_cv_file_magic_cmd=/usr/bin/file
4375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4376 ;;
4377 esac
4378 else
4379 lt_cv_deplibs_check_method=pass_all
4380 fi
4381 ;;
4382
4383gnu*)
4384 lt_cv_deplibs_check_method=pass_all
4385 ;;
4386
a.rottmann9bc8b932004-02-29 15:18:31 +00004387hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004388 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004389 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004390 ia64*)
4391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4392 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4393 ;;
4394 hppa*64*)
4395 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]'
4396 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4397 ;;
4398 *)
4399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4400 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4401 ;;
4402 esac
drh71eb93e2001-09-28 01:34:43 +00004403 ;;
4404
mlcreech636a9952008-05-05 22:52:56 +00004405interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004406 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4408 ;;
4409
a.rottmann84e63352003-03-24 09:42:16 +00004410irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004411 case $LD in
4412 *-32|*"-32 ") libmagic=32-bit;;
4413 *-n32|*"-n32 ") libmagic=N32;;
4414 *-64|*"-64 ") libmagic=64-bit;;
4415 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004416 esac
drh71eb93e2001-09-28 01:34:43 +00004417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419
4420# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004421linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004422 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004423 ;;
4424
vapier7f19c022007-02-17 14:46:31 +00004425netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004426 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004428 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004430 fi
4431 ;;
4432
4433newos6*)
4434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4435 lt_cv_file_magic_cmd=/usr/bin/file
4436 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4437 ;;
4438
mlcreech636a9952008-05-05 22:52:56 +00004439*nto* | *qnx*)
4440 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004441 ;;
4442
a.rottmann84e63352003-03-24 09:42:16 +00004443openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004446 else
vapier7f19c022007-02-17 14:46:31 +00004447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004448 fi
drh71eb93e2001-09-28 01:34:43 +00004449 ;;
4450
4451osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004452 lt_cv_deplibs_check_method=pass_all
4453 ;;
4454
mlcreech636a9952008-05-05 22:52:56 +00004455rdos*)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458
drh71eb93e2001-09-28 01:34:43 +00004459solaris*)
4460 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004461 ;;
4462
mlcreech636a9952008-05-05 22:52:56 +00004463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4464 lt_cv_deplibs_check_method=pass_all
4465 ;;
4466
vapier7f19c022007-02-17 14:46:31 +00004467sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004468 case $host_vendor in
4469 motorola)
4470 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]'
4471 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4472 ;;
4473 ncr)
4474 lt_cv_deplibs_check_method=pass_all
4475 ;;
4476 sequent)
4477 lt_cv_file_magic_cmd='/bin/file'
4478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4479 ;;
4480 sni)
4481 lt_cv_file_magic_cmd='/bin/file'
4482 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4483 lt_cv_file_magic_test_file=/lib/libc.so
4484 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004485 siemens)
4486 lt_cv_deplibs_check_method=pass_all
4487 ;;
vapier7f19c022007-02-17 14:46:31 +00004488 pc)
4489 lt_cv_deplibs_check_method=pass_all
4490 ;;
drh71eb93e2001-09-28 01:34:43 +00004491 esac
4492 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004493
mlcreech636a9952008-05-05 22:52:56 +00004494tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004495 lt_cv_deplibs_check_method=pass_all
4496 ;;
drh71eb93e2001-09-28 01:34:43 +00004497esac
4498
4499fi
drhf922ca42015-05-14 15:39:18 +00004500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004501$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004502file_magic_cmd=$lt_cv_file_magic_cmd
4503deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004504test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004505
drh71eb93e2001-09-28 01:34:43 +00004506
drh71eb93e2001-09-28 01:34:43 +00004507
drh71eb93e2001-09-28 01:34:43 +00004508
mlcreech636a9952008-05-05 22:52:56 +00004509
4510
4511
4512
4513
4514
4515
4516
4517if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4519set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004521$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004522if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004523 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004524else
4525 if test -n "$AR"; then
4526 ac_cv_prog_AR="$AR" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004535 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004537 break 2
4538 fi
4539done
drhf922ca42015-05-14 15:39:18 +00004540 done
drh8b727472009-01-19 18:18:40 +00004541IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004542
4543fi
4544fi
4545AR=$ac_cv_prog_AR
4546if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004548$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004549else
drhf922ca42015-05-14 15:39:18 +00004550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004551$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004552fi
4553
drh8b727472009-01-19 18:18:40 +00004554
mlcreech636a9952008-05-05 22:52:56 +00004555fi
4556if test -z "$ac_cv_prog_AR"; then
4557 ac_ct_AR=$AR
4558 # Extract the first word of "ar", so it can be a program name with args.
4559set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004561$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004562if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004563 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004564else
4565 if test -n "$ac_ct_AR"; then
4566 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004575 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004577 break 2
4578 fi
4579done
drhf922ca42015-05-14 15:39:18 +00004580 done
drh8b727472009-01-19 18:18:40 +00004581IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004582
4583fi
4584fi
4585ac_ct_AR=$ac_cv_prog_ac_ct_AR
4586if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004588$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004589else
drhf922ca42015-05-14 15:39:18 +00004590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004591$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004592fi
4593
drh8b727472009-01-19 18:18:40 +00004594 if test "x$ac_ct_AR" = x; then
4595 AR="false"
4596 else
4597 case $cross_compiling:$ac_tool_warned in
4598yes:)
drhf922ca42015-05-14 15:39:18 +00004599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004601ac_tool_warned=yes ;;
4602esac
4603 AR=$ac_ct_AR
4604 fi
mlcreech636a9952008-05-05 22:52:56 +00004605else
4606 AR="$ac_cv_prog_AR"
4607fi
4608
4609test -z "$AR" && AR=ar
4610test -z "$AR_FLAGS" && AR_FLAGS=cru
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4624set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004626$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004627if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004628 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004629else
4630 if test -n "$STRIP"; then
4631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4632else
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004642 break 2
4643 fi
4644done
drhf922ca42015-05-14 15:39:18 +00004645 done
drh8b727472009-01-19 18:18:40 +00004646IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004647
4648fi
4649fi
4650STRIP=$ac_cv_prog_STRIP
4651if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004653$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004654else
drhf922ca42015-05-14 15:39:18 +00004655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004656$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004657fi
4658
drh8b727472009-01-19 18:18:40 +00004659
mlcreech636a9952008-05-05 22:52:56 +00004660fi
4661if test -z "$ac_cv_prog_STRIP"; then
4662 ac_ct_STRIP=$STRIP
4663 # Extract the first word of "strip", so it can be a program name with args.
4664set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004666$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004667if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004668 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004669else
4670 if test -n "$ac_ct_STRIP"; then
4671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004680 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004682 break 2
4683 fi
4684done
drhf922ca42015-05-14 15:39:18 +00004685 done
drh8b727472009-01-19 18:18:40 +00004686IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004687
4688fi
4689fi
4690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4691if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004693$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004694else
drhf922ca42015-05-14 15:39:18 +00004695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004696$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004697fi
4698
drh8b727472009-01-19 18:18:40 +00004699 if test "x$ac_ct_STRIP" = x; then
4700 STRIP=":"
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703yes:)
drhf922ca42015-05-14 15:39:18 +00004704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004706ac_tool_warned=yes ;;
4707esac
4708 STRIP=$ac_ct_STRIP
4709 fi
mlcreech636a9952008-05-05 22:52:56 +00004710else
4711 STRIP="$ac_cv_prog_STRIP"
4712fi
4713
4714test -z "$STRIP" && STRIP=:
4715
4716
4717
4718
4719
4720
4721if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004725$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004726if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004727 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004728else
4729 if test -n "$RANLIB"; then
4730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4731else
4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004741 break 2
4742 fi
4743done
drhf922ca42015-05-14 15:39:18 +00004744 done
drh8b727472009-01-19 18:18:40 +00004745IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004746
4747fi
4748fi
4749RANLIB=$ac_cv_prog_RANLIB
4750if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004752$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004753else
drhf922ca42015-05-14 15:39:18 +00004754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004755$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004756fi
4757
drh8b727472009-01-19 18:18:40 +00004758
mlcreech636a9952008-05-05 22:52:56 +00004759fi
4760if test -z "$ac_cv_prog_RANLIB"; then
4761 ac_ct_RANLIB=$RANLIB
4762 # Extract the first word of "ranlib", so it can be a program name with args.
4763set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004765$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004766if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004767 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004768else
4769 if test -n "$ac_ct_RANLIB"; then
4770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004779 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004781 break 2
4782 fi
4783done
drhf922ca42015-05-14 15:39:18 +00004784 done
drh8b727472009-01-19 18:18:40 +00004785IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004786
4787fi
4788fi
4789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4790if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004792$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004793else
drhf922ca42015-05-14 15:39:18 +00004794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004795$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004796fi
4797
drh8b727472009-01-19 18:18:40 +00004798 if test "x$ac_ct_RANLIB" = x; then
4799 RANLIB=":"
4800 else
4801 case $cross_compiling:$ac_tool_warned in
4802yes:)
drhf922ca42015-05-14 15:39:18 +00004803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004805ac_tool_warned=yes ;;
4806esac
4807 RANLIB=$ac_ct_RANLIB
4808 fi
mlcreech636a9952008-05-05 22:52:56 +00004809else
4810 RANLIB="$ac_cv_prog_RANLIB"
4811fi
4812
4813test -z "$RANLIB" && RANLIB=:
4814
4815
4816
4817
4818
4819
4820# Determine commands to create old-style static archives.
4821old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4822old_postinstall_cmds='chmod 644 $oldlib'
4823old_postuninstall_cmds=
4824
4825if test -n "$RANLIB"; then
4826 case $host_os in
4827 openbsd*)
4828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4829 ;;
4830 *)
4831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4832 ;;
4833 esac
4834 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4835fi
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
a.rottmann9bc8b932004-02-29 15:18:31 +00004870# If no C compiler was specified, use CC.
4871LTCC=${LTCC-"$CC"}
4872
vapier7f19c022007-02-17 14:46:31 +00004873# If no C compiler flags were specified, use CFLAGS.
4874LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4875
a.rottmann9bc8b932004-02-29 15:18:31 +00004876# Allow CC to be a program name with arguments.
4877compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004878
drh71eb93e2001-09-28 01:34:43 +00004879
mlcreech636a9952008-05-05 22:52:56 +00004880# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004882$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004883if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004884 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004885else
4886
4887# These are sane defaults that work on at least a few old systems.
4888# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4889
4890# Character class describing NM global symbol codes.
4891symcode='[BCDEGRST]'
4892
4893# Regexp to match symbols that can be accessed directly from C.
4894sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4895
4896# Define system-specific variables.
4897case $host_os in
4898aix*)
4899 symcode='[BCDT]'
4900 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004901cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004902 symcode='[ABCDGISTW]'
4903 ;;
4904hpux*)
4905 if test "$host_cpu" = ia64; then
4906 symcode='[ABCDEGRST]'
4907 fi
4908 ;;
4909irix* | nonstopux*)
4910 symcode='[BCDEGRST]'
4911 ;;
4912osf*)
4913 symcode='[BCDEGQRST]'
4914 ;;
4915solaris*)
4916 symcode='[BDRT]'
4917 ;;
4918sco3.2v5*)
4919 symcode='[DT]'
4920 ;;
4921sysv4.2uw2*)
4922 symcode='[DT]'
4923 ;;
4924sysv5* | sco5v6* | unixware* | OpenUNIX*)
4925 symcode='[ABDT]'
4926 ;;
4927sysv4)
4928 symcode='[DFNSTU]'
4929 ;;
4930esac
4931
4932# If we're using GNU nm, then use its standard symbol codes.
4933case `$NM -V 2>&1` in
4934*GNU* | *'with BFD'*)
4935 symcode='[ABCDGIRSTW]' ;;
4936esac
4937
4938# Transform an extracted symbol line into a proper C declaration.
4939# Some systems (esp. on ia64) link data and code symbols differently,
4940# so use this general approach.
4941lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4942
4943# Transform an extracted symbol line into symbol name and symbol address
4944lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4945lt_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'"
4946
4947# Handle CRLF in mingw tool chain
4948opt_cr=
4949case $build_os in
4950mingw*)
4951 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4952 ;;
4953esac
4954
4955# Try without a prefix underscore, then with it.
4956for ac_symprfx in "" "_"; do
4957
4958 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4959 symxfrm="\\1 $ac_symprfx\\2 \\2"
4960
4961 # Write the raw and C identifiers.
4962 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4963 # Fake it for dumpbin and say T for any non-static function
4964 # and D for any global variable.
4965 # Also find C++ and __fastcall symbols from MSVC++,
4966 # which start with @ or ?.
4967 lt_cv_sys_global_symbol_pipe="$AWK '"\
4968" {last_section=section; section=\$ 3};"\
4969" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4970" \$ 0!~/External *\|/{next};"\
4971" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4972" {if(hide[section]) next};"\
4973" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4974" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4975" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4976" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4977" ' prfx=^$ac_symprfx"
4978 else
4979 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4980 fi
4981
4982 # Check to see that the pipe works correctly.
4983 pipe_works=no
4984
4985 rm -f conftest*
4986 cat > conftest.$ac_ext <<_LT_EOF
4987#ifdef __cplusplus
4988extern "C" {
4989#endif
4990char nm_test_var;
4991void nm_test_func(void);
4992void nm_test_func(void){}
4993#ifdef __cplusplus
4994}
4995#endif
4996int main(){nm_test_var='a';nm_test_func();return(0);}
4997_LT_EOF
4998
drhf922ca42015-05-14 15:39:18 +00004999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005000 (eval $ac_compile) 2>&5
5001 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005004 # Now try to grab the symbols.
5005 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00005006 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 +00005007 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5008 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5010 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005011 # Try sorting and uniquifying the output.
5012 if sort "$nlist" | uniq > "$nlist"T; then
5013 mv -f "$nlist"T "$nlist"
5014 else
5015 rm -f "$nlist"T
5016 fi
5017
5018 # Make sure that we snagged all the symbols we need.
5019 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5020 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5021 cat <<_LT_EOF > conftest.$ac_ext
5022#ifdef __cplusplus
5023extern "C" {
5024#endif
5025
5026_LT_EOF
5027 # Now generate the symbol file.
5028 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5029
5030 cat <<_LT_EOF >> conftest.$ac_ext
5031
5032/* The mapping between symbol names and symbols. */
5033const struct {
5034 const char *name;
5035 void *address;
5036}
5037lt__PROGRAM__LTX_preloaded_symbols[] =
5038{
5039 { "@PROGRAM@", (void *) 0 },
5040_LT_EOF
5041 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5042 cat <<\_LT_EOF >> conftest.$ac_ext
5043 {0, (void *) 0}
5044};
5045
5046/* This works around a problem in FreeBSD linker */
5047#ifdef FREEBSD_WORKAROUND
5048static const void *lt_preloaded_setup() {
5049 return lt__PROGRAM__LTX_preloaded_symbols;
5050}
5051#endif
5052
5053#ifdef __cplusplus
5054}
5055#endif
5056_LT_EOF
5057 # Now try linking the two files.
5058 mv conftest.$ac_objext conftstm.$ac_objext
5059 lt_save_LIBS="$LIBS"
5060 lt_save_CFLAGS="$CFLAGS"
5061 LIBS="conftstm.$ac_objext"
5062 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005064 (eval $ac_link) 2>&5
5065 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5067 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005068 pipe_works=yes
5069 fi
5070 LIBS="$lt_save_LIBS"
5071 CFLAGS="$lt_save_CFLAGS"
5072 else
5073 echo "cannot find nm_test_func in $nlist" >&5
5074 fi
5075 else
5076 echo "cannot find nm_test_var in $nlist" >&5
5077 fi
5078 else
5079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5080 fi
5081 else
5082 echo "$progname: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 fi
5085 rm -rf conftest* conftst*
5086
5087 # Do not use the global_symbol_pipe unless it works.
5088 if test "$pipe_works" = yes; then
5089 break
5090 else
5091 lt_cv_sys_global_symbol_pipe=
5092 fi
5093done
5094
5095fi
5096
5097if test -z "$lt_cv_sys_global_symbol_pipe"; then
5098 lt_cv_sys_global_symbol_to_cdecl=
5099fi
5100if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005102$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005103else
drhf922ca42015-05-14 15:39:18 +00005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005105$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005106fi
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
drh8b727472009-01-19 18:18:40 +00005130# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005131if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005132 enableval=$enable_libtool_lock;
5133fi
drh71eb93e2001-09-28 01:34:43 +00005134
a.rottmann9bc8b932004-02-29 15:18:31 +00005135test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005136
a.rottmann9bc8b932004-02-29 15:18:31 +00005137# Some flags need to be propagated to the compiler or linker for good
5138# libtool support.
5139case $host in
5140ia64-*-hpux*)
5141 # Find out which ABI we are using.
5142 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005144 (eval $ac_compile) 2>&5
5145 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5147 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005148 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005149 *ELF-32*)
5150 HPUX_IA64_MODE="32"
5151 ;;
5152 *ELF-64*)
5153 HPUX_IA64_MODE="64"
5154 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005155 esac
5156 fi
5157 rm -rf conftest*
5158 ;;
5159*-*-irix6*)
5160 # Find out which ABI we are using.
drhfb556712019-03-22 11:38:14 +00005161 echo '#line 5161 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005163 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005164 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005167 if test "$lt_cv_prog_gnu_ld" = yes; then
5168 case `/usr/bin/file conftest.$ac_objext` in
5169 *32-bit*)
5170 LD="${LD-ld} -melf32bsmip"
5171 ;;
5172 *N32*)
5173 LD="${LD-ld} -melf32bmipn32"
5174 ;;
5175 *64-bit*)
5176 LD="${LD-ld} -melf64bmip"
5177 ;;
5178 esac
5179 else
5180 case `/usr/bin/file conftest.$ac_objext` in
5181 *32-bit*)
5182 LD="${LD-ld} -32"
5183 ;;
5184 *N32*)
5185 LD="${LD-ld} -n32"
5186 ;;
5187 *64-bit*)
5188 LD="${LD-ld} -64"
5189 ;;
5190 esac
5191 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005192 fi
5193 rm -rf conftest*
5194 ;;
drh71eb93e2001-09-28 01:34:43 +00005195
mlcreech636a9952008-05-05 22:52:56 +00005196x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5197s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005198 # Find out which ABI we are using.
5199 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005201 (eval $ac_compile) 2>&5
5202 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5204 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005205 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005206 *32-bit*)
5207 case $host in
5208 x86_64-*kfreebsd*-gnu)
5209 LD="${LD-ld} -m elf_i386_fbsd"
5210 ;;
5211 x86_64-*linux*)
5212 LD="${LD-ld} -m elf_i386"
5213 ;;
5214 ppc64-*linux*|powerpc64-*linux*)
5215 LD="${LD-ld} -m elf32ppclinux"
5216 ;;
5217 s390x-*linux*)
5218 LD="${LD-ld} -m elf_s390"
5219 ;;
5220 sparc64-*linux*)
5221 LD="${LD-ld} -m elf32_sparc"
5222 ;;
5223 esac
5224 ;;
5225 *64-bit*)
5226 case $host in
5227 x86_64-*kfreebsd*-gnu)
5228 LD="${LD-ld} -m elf_x86_64_fbsd"
5229 ;;
5230 x86_64-*linux*)
5231 LD="${LD-ld} -m elf_x86_64"
5232 ;;
5233 ppc*-*linux*|powerpc*-*linux*)
5234 LD="${LD-ld} -m elf64ppc"
5235 ;;
5236 s390*-*linux*|s390*-*tpf*)
5237 LD="${LD-ld} -m elf64_s390"
5238 ;;
5239 sparc*-*linux*)
5240 LD="${LD-ld} -m elf64_sparc"
5241 ;;
5242 esac
5243 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005244 esac
5245 fi
5246 rm -rf conftest*
5247 ;;
drh71eb93e2001-09-28 01:34:43 +00005248
a.rottmann9bc8b932004-02-29 15:18:31 +00005249*-*-sco3.2v5*)
5250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5251 SAVE_CFLAGS="$CFLAGS"
5252 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005254$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005255if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005256 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005257else
5258 ac_ext=c
5259ac_cpp='$CPP $CPPFLAGS'
5260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005263
drhf922ca42015-05-14 15:39:18 +00005264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005265/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005266
a.rottmann9bc8b932004-02-29 15:18:31 +00005267int
5268main ()
drh71eb93e2001-09-28 01:34:43 +00005269{
drh71eb93e2001-09-28 01:34:43 +00005270
a.rottmann9bc8b932004-02-29 15:18:31 +00005271 ;
5272 return 0;
drh71eb93e2001-09-28 01:34:43 +00005273}
a.rottmann9bc8b932004-02-29 15:18:31 +00005274_ACEOF
drhf922ca42015-05-14 15:39:18 +00005275if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005276 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005277else
drhf922ca42015-05-14 15:39:18 +00005278 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005279fi
drhf922ca42015-05-14 15:39:18 +00005280rm -f core conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005282 ac_ext=c
5283ac_cpp='$CPP $CPPFLAGS'
5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
drh71eb93e2001-09-28 01:34:43 +00005288fi
drhf922ca42015-05-14 15:39:18 +00005289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005290$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5293 CFLAGS="$SAVE_CFLAGS"
5294 fi
5295 ;;
vapier7f19c022007-02-17 14:46:31 +00005296sparc*-*solaris*)
5297 # Find out which ABI we are using.
5298 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005300 (eval $ac_compile) 2>&5
5301 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5303 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005304 case `/usr/bin/file conftest.o` in
5305 *64-bit*)
5306 case $lt_cv_prog_gnu_ld in
5307 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005308 *)
5309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5310 LD="${LD-ld} -64"
5311 fi
5312 ;;
vapier7f19c022007-02-17 14:46:31 +00005313 esac
5314 ;;
5315 esac
5316 fi
5317 rm -rf conftest*
5318 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005319esac
5320
5321need_locks="$enable_libtool_lock"
5322
drh71eb93e2001-09-28 01:34:43 +00005323
mlcreech636a9952008-05-05 22:52:56 +00005324 case $host_os in
5325 rhapsody* | darwin*)
5326 if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5328set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005330$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005331if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005332 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005333else
5334 if test -n "$DSYMUTIL"; then
5335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005346 break 2
5347 fi
5348done
drhf922ca42015-05-14 15:39:18 +00005349 done
drh8b727472009-01-19 18:18:40 +00005350IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005351
5352fi
5353fi
5354DSYMUTIL=$ac_cv_prog_DSYMUTIL
5355if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005357$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005358else
drhf922ca42015-05-14 15:39:18 +00005359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005360$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005361fi
5362
drh8b727472009-01-19 18:18:40 +00005363
mlcreech636a9952008-05-05 22:52:56 +00005364fi
5365if test -z "$ac_cv_prog_DSYMUTIL"; then
5366 ac_ct_DSYMUTIL=$DSYMUTIL
5367 # Extract the first word of "dsymutil", so it can be a program name with args.
5368set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005370$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005371if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005372 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005373else
5374 if test -n "$ac_ct_DSYMUTIL"; then
5375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5376else
5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378for as_dir in $PATH
5379do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005386 break 2
5387 fi
5388done
drhf922ca42015-05-14 15:39:18 +00005389 done
drh8b727472009-01-19 18:18:40 +00005390IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005391
5392fi
5393fi
5394ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5395if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005397$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005398else
drhf922ca42015-05-14 15:39:18 +00005399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005400$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005401fi
5402
drh8b727472009-01-19 18:18:40 +00005403 if test "x$ac_ct_DSYMUTIL" = x; then
5404 DSYMUTIL=":"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407yes:)
drhf922ca42015-05-14 15:39:18 +00005408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005410ac_tool_warned=yes ;;
5411esac
5412 DSYMUTIL=$ac_ct_DSYMUTIL
5413 fi
mlcreech636a9952008-05-05 22:52:56 +00005414else
5415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5416fi
5417
5418 if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5420set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005422$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005423if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005424 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005425else
5426 if test -n "$NMEDIT"; then
5427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005438 break 2
5439 fi
5440done
drhf922ca42015-05-14 15:39:18 +00005441 done
drh8b727472009-01-19 18:18:40 +00005442IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005443
5444fi
5445fi
5446NMEDIT=$ac_cv_prog_NMEDIT
5447if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005449$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005450else
drhf922ca42015-05-14 15:39:18 +00005451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005452$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005453fi
5454
drh8b727472009-01-19 18:18:40 +00005455
mlcreech636a9952008-05-05 22:52:56 +00005456fi
5457if test -z "$ac_cv_prog_NMEDIT"; then
5458 ac_ct_NMEDIT=$NMEDIT
5459 # Extract the first word of "nmedit", so it can be a program name with args.
5460set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005462$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005463if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005464 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005465else
5466 if test -n "$ac_ct_NMEDIT"; then
5467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005478 break 2
5479 fi
5480done
drhf922ca42015-05-14 15:39:18 +00005481 done
drh8b727472009-01-19 18:18:40 +00005482IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005483
5484fi
5485fi
5486ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5487if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005489$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005490else
drhf922ca42015-05-14 15:39:18 +00005491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005492$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005493fi
5494
drh8b727472009-01-19 18:18:40 +00005495 if test "x$ac_ct_NMEDIT" = x; then
5496 NMEDIT=":"
5497 else
5498 case $cross_compiling:$ac_tool_warned in
5499yes:)
drhf922ca42015-05-14 15:39:18 +00005500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005502ac_tool_warned=yes ;;
5503esac
5504 NMEDIT=$ac_ct_NMEDIT
5505 fi
mlcreech636a9952008-05-05 22:52:56 +00005506else
5507 NMEDIT="$ac_cv_prog_NMEDIT"
5508fi
5509
5510 if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5512set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005514$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005515if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005516 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005517else
5518 if test -n "$LIPO"; then
5519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005530 break 2
5531 fi
5532done
drhf922ca42015-05-14 15:39:18 +00005533 done
drh8b727472009-01-19 18:18:40 +00005534IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005535
5536fi
5537fi
5538LIPO=$ac_cv_prog_LIPO
5539if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005541$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005542else
drhf922ca42015-05-14 15:39:18 +00005543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005544$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005545fi
5546
drh8b727472009-01-19 18:18:40 +00005547
mlcreech636a9952008-05-05 22:52:56 +00005548fi
5549if test -z "$ac_cv_prog_LIPO"; then
5550 ac_ct_LIPO=$LIPO
5551 # Extract the first word of "lipo", so it can be a program name with args.
5552set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005554$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005555if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005556 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005557else
5558 if test -n "$ac_ct_LIPO"; then
5559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005568 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005570 break 2
5571 fi
5572done
drhf922ca42015-05-14 15:39:18 +00005573 done
drh8b727472009-01-19 18:18:40 +00005574IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005575
5576fi
5577fi
5578ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5579if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005581$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005582else
drhf922ca42015-05-14 15:39:18 +00005583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005584$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005585fi
5586
drh8b727472009-01-19 18:18:40 +00005587 if test "x$ac_ct_LIPO" = x; then
5588 LIPO=":"
5589 else
5590 case $cross_compiling:$ac_tool_warned in
5591yes:)
drhf922ca42015-05-14 15:39:18 +00005592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005594ac_tool_warned=yes ;;
5595esac
5596 LIPO=$ac_ct_LIPO
5597 fi
mlcreech636a9952008-05-05 22:52:56 +00005598else
5599 LIPO="$ac_cv_prog_LIPO"
5600fi
5601
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5604set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005606$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005607if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005608 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005609else
5610 if test -n "$OTOOL"; then
5611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005622 break 2
5623 fi
5624done
drhf922ca42015-05-14 15:39:18 +00005625 done
drh8b727472009-01-19 18:18:40 +00005626IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005627
5628fi
5629fi
5630OTOOL=$ac_cv_prog_OTOOL
5631if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005633$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005634else
drhf922ca42015-05-14 15:39:18 +00005635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005636$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005637fi
5638
drh8b727472009-01-19 18:18:40 +00005639
mlcreech636a9952008-05-05 22:52:56 +00005640fi
5641if test -z "$ac_cv_prog_OTOOL"; then
5642 ac_ct_OTOOL=$OTOOL
5643 # Extract the first word of "otool", so it can be a program name with args.
5644set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005646$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005647if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005648 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005649else
5650 if test -n "$ac_ct_OTOOL"; then
5651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005660 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005662 break 2
5663 fi
5664done
drhf922ca42015-05-14 15:39:18 +00005665 done
drh8b727472009-01-19 18:18:40 +00005666IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005667
5668fi
5669fi
5670ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5671if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005673$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005674else
drhf922ca42015-05-14 15:39:18 +00005675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005676$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005677fi
5678
drh8b727472009-01-19 18:18:40 +00005679 if test "x$ac_ct_OTOOL" = x; then
5680 OTOOL=":"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683yes:)
drhf922ca42015-05-14 15:39:18 +00005684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005686ac_tool_warned=yes ;;
5687esac
5688 OTOOL=$ac_ct_OTOOL
5689 fi
mlcreech636a9952008-05-05 22:52:56 +00005690else
5691 OTOOL="$ac_cv_prog_OTOOL"
5692fi
5693
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005698$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005699if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005700 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005701else
5702 if test -n "$OTOOL64"; then
5703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005714 break 2
5715 fi
5716done
drhf922ca42015-05-14 15:39:18 +00005717 done
drh8b727472009-01-19 18:18:40 +00005718IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005719
5720fi
5721fi
5722OTOOL64=$ac_cv_prog_OTOOL64
5723if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005725$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005726else
drhf922ca42015-05-14 15:39:18 +00005727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005728$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005729fi
5730
drh8b727472009-01-19 18:18:40 +00005731
mlcreech636a9952008-05-05 22:52:56 +00005732fi
5733if test -z "$ac_cv_prog_OTOOL64"; then
5734 ac_ct_OTOOL64=$OTOOL64
5735 # Extract the first word of "otool64", so it can be a program name with args.
5736set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005738$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005739if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005740 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005741else
5742 if test -n "$ac_ct_OTOOL64"; then
5743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005752 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005754 break 2
5755 fi
5756done
drhf922ca42015-05-14 15:39:18 +00005757 done
drh8b727472009-01-19 18:18:40 +00005758IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005759
5760fi
5761fi
5762ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5763if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005765$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005766else
drhf922ca42015-05-14 15:39:18 +00005767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005768$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005769fi
5770
drh8b727472009-01-19 18:18:40 +00005771 if test "x$ac_ct_OTOOL64" = x; then
5772 OTOOL64=":"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775yes:)
drhf922ca42015-05-14 15:39:18 +00005776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005778ac_tool_warned=yes ;;
5779esac
5780 OTOOL64=$ac_ct_OTOOL64
5781 fi
mlcreech636a9952008-05-05 22:52:56 +00005782else
5783 OTOOL64="$ac_cv_prog_OTOOL64"
5784fi
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
drhf922ca42015-05-14 15:39:18 +00005812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005813$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005814if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005815 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005816else
5817 lt_cv_apple_cc_single_mod=no
5818 if test -z "${LT_MULTI_MODULE}"; then
5819 # By default we will add the -single_module flag. You can override
5820 # by either setting the environment variable LT_MULTI_MODULE
5821 # non-empty at configure time, or by adding -multi_module to the
5822 # link flags.
5823 rm -rf libconftest.dylib*
5824 echo "int foo(void){return 1;}" > conftest.c
5825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5826-dynamiclib -Wl,-single_module conftest.c" >&5
5827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5829 _lt_result=$?
5830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5831 lt_cv_apple_cc_single_mod=yes
5832 else
5833 cat conftest.err >&5
5834 fi
5835 rm -rf libconftest.dylib*
5836 rm -f conftest.*
5837 fi
5838fi
drhf922ca42015-05-14 15:39:18 +00005839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005840$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005842$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005843if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005844 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005845else
5846 lt_cv_ld_exported_symbols_list=no
5847 save_LDFLAGS=$LDFLAGS
5848 echo "_main" > conftest.sym
5849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005851/* end confdefs.h. */
5852
5853int
5854main ()
5855{
5856
5857 ;
5858 return 0;
5859}
5860_ACEOF
drhf922ca42015-05-14 15:39:18 +00005861if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005862 lt_cv_ld_exported_symbols_list=yes
5863else
drhf922ca42015-05-14 15:39:18 +00005864 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005865fi
drhf922ca42015-05-14 15:39:18 +00005866rm -f core conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005868 LDFLAGS="$save_LDFLAGS"
5869
5870fi
drhf922ca42015-05-14 15:39:18 +00005871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005872$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005873 case $host_os in
5874 rhapsody* | darwin1.[012])
5875 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5876 darwin1.*)
5877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5878 darwin*) # darwin 5.x on
5879 # if running on 10.5 or later, the deployment target defaults
5880 # to the OS version, if on x86, and 10.4, the deployment
5881 # target defaults to 10.4. Don't you love it?
5882 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5883 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5885 10.[012]*)
5886 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5887 10.*)
5888 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5889 esac
5890 ;;
5891 esac
5892 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5893 _lt_dar_single_mod='$single_module'
5894 fi
5895 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5896 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5897 else
5898 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5899 fi
5900 if test "$DSYMUTIL" != ":"; then
5901 _lt_dsymutil='~$DSYMUTIL $lib || :'
5902 else
5903 _lt_dsymutil=
5904 fi
5905 ;;
5906 esac
5907
a.rottmann84e63352003-03-24 09:42:16 +00005908ac_ext=c
5909ac_cpp='$CPP $CPPFLAGS'
5910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005914$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005915# On Suns, sometimes $CPP names a directory.
5916if test -n "$CPP" && test -d "$CPP"; then
5917 CPP=
5918fi
5919if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005920 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005921 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005922else
a.rottmann84e63352003-03-24 09:42:16 +00005923 # Double quotes because CPP needs to be expanded
5924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5925 do
5926 ac_preproc_ok=false
5927for ac_c_preproc_warn_flag in '' yes
5928do
5929 # Use a header file that comes with gcc, so configuring glibc
5930 # with a fresh cross-compiler works.
5931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932 # <limits.h> exists even on freestanding compilers.
5933 # On the NeXT, cc -E runs the code through the compiler's parser,
5934 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005936/* end confdefs.h. */
5937#ifdef __STDC__
5938# include <limits.h>
5939#else
5940# include <assert.h>
5941#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005942 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005943_ACEOF
drhf922ca42015-05-14 15:39:18 +00005944if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005945
drhf922ca42015-05-14 15:39:18 +00005946else
a.rottmann84e63352003-03-24 09:42:16 +00005947 # Broken: fails on valid input.
5948continue
5949fi
drhf922ca42015-05-14 15:39:18 +00005950rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005951
drh8b727472009-01-19 18:18:40 +00005952 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005953 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005955/* end confdefs.h. */
5956#include <ac_nonexistent.h>
5957_ACEOF
drhf922ca42015-05-14 15:39:18 +00005958if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005959 # Broken: success on invalid input.
5960continue
5961else
a.rottmann84e63352003-03-24 09:42:16 +00005962 # Passes both tests.
5963ac_preproc_ok=:
5964break
5965fi
drhf922ca42015-05-14 15:39:18 +00005966rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005967
5968done
5969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005970rm -f conftest.i conftest.err conftest.$ac_ext
5971if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005972 break
5973fi
5974
5975 done
5976 ac_cv_prog_CPP=$CPP
5977
5978fi
5979 CPP=$ac_cv_prog_CPP
5980else
5981 ac_cv_prog_CPP=$CPP
5982fi
drhf922ca42015-05-14 15:39:18 +00005983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005984$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005985ac_preproc_ok=false
5986for ac_c_preproc_warn_flag in '' yes
5987do
5988 # Use a header file that comes with gcc, so configuring glibc
5989 # with a fresh cross-compiler works.
5990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5991 # <limits.h> exists even on freestanding compilers.
5992 # On the NeXT, cc -E runs the code through the compiler's parser,
5993 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005995/* end confdefs.h. */
5996#ifdef __STDC__
5997# include <limits.h>
5998#else
5999# include <assert.h>
6000#endif
a.rottmann964dbb12004-02-26 19:47:42 +00006001 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00006002_ACEOF
drhf922ca42015-05-14 15:39:18 +00006003if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00006004
drhf922ca42015-05-14 15:39:18 +00006005else
a.rottmann84e63352003-03-24 09:42:16 +00006006 # Broken: fails on valid input.
6007continue
6008fi
drhf922ca42015-05-14 15:39:18 +00006009rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006010
drh8b727472009-01-19 18:18:40 +00006011 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006012 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006014/* end confdefs.h. */
6015#include <ac_nonexistent.h>
6016_ACEOF
drhf922ca42015-05-14 15:39:18 +00006017if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006018 # Broken: success on invalid input.
6019continue
6020else
a.rottmann84e63352003-03-24 09:42:16 +00006021 # Passes both tests.
6022ac_preproc_ok=:
6023break
6024fi
drhf922ca42015-05-14 15:39:18 +00006025rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006026
6027done
6028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006029rm -f conftest.i conftest.err conftest.$ac_ext
6030if $ac_preproc_ok; then :
6031
a.rottmann84e63352003-03-24 09:42:16 +00006032else
drhf922ca42015-05-14 15:39:18 +00006033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6036See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006037fi
6038
6039ac_ext=c
6040ac_cpp='$CPP $CPPFLAGS'
6041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
drhf922ca42015-05-14 15:39:18 +00006046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006047$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006048if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006049 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006050else
drhf922ca42015-05-14 15:39:18 +00006051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006052/* end confdefs.h. */
6053#include <stdlib.h>
6054#include <stdarg.h>
6055#include <string.h>
6056#include <float.h>
6057
6058int
6059main ()
6060{
6061
6062 ;
6063 return 0;
6064}
6065_ACEOF
drhf922ca42015-05-14 15:39:18 +00006066if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006067 ac_cv_header_stdc=yes
6068else
drhf922ca42015-05-14 15:39:18 +00006069 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006070fi
drh8b727472009-01-19 18:18:40 +00006071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006072
6073if test $ac_cv_header_stdc = yes; then
6074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006076/* end confdefs.h. */
6077#include <string.h>
6078
6079_ACEOF
6080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006081 $EGREP "memchr" >/dev/null 2>&1; then :
6082
a.rottmann84e63352003-03-24 09:42:16 +00006083else
6084 ac_cv_header_stdc=no
6085fi
6086rm -f conftest*
6087
6088fi
6089
6090if test $ac_cv_header_stdc = yes; then
6091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006093/* end confdefs.h. */
6094#include <stdlib.h>
6095
6096_ACEOF
6097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006098 $EGREP "free" >/dev/null 2>&1; then :
6099
a.rottmann84e63352003-03-24 09:42:16 +00006100else
6101 ac_cv_header_stdc=no
6102fi
6103rm -f conftest*
6104
6105fi
6106
6107if test $ac_cv_header_stdc = yes; then
6108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006109 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006110 :
6111else
drhf922ca42015-05-14 15:39:18 +00006112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006113/* end confdefs.h. */
6114#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006115#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006116#if ((' ' & 0x0FF) == 0x020)
6117# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6118# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6119#else
6120# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006121 (('a' <= (c) && (c) <= 'i') \
6122 || ('j' <= (c) && (c) <= 'r') \
6123 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006124# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6125#endif
6126
6127#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6128int
6129main ()
6130{
6131 int i;
6132 for (i = 0; i < 256; i++)
6133 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006134 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006135 return 2;
6136 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006137}
6138_ACEOF
drhf922ca42015-05-14 15:39:18 +00006139if ac_fn_c_try_run "$LINENO"; then :
6140
a.rottmann84e63352003-03-24 09:42:16 +00006141else
drhf922ca42015-05-14 15:39:18 +00006142 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006143fi
drhf922ca42015-05-14 15:39:18 +00006144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6145 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006146fi
6147
a.rottmann84e63352003-03-24 09:42:16 +00006148fi
6149fi
drhf922ca42015-05-14 15:39:18 +00006150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006151$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006152if test $ac_cv_header_stdc = yes; then
6153
drhf922ca42015-05-14 15:39:18 +00006154$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006155
6156fi
6157
6158# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006159for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006160 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006161do :
6162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6163ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6164"
6165if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006166 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006167#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006168_ACEOF
6169
6170fi
6171
6172done
6173
6174
a.rottmann84e63352003-03-24 09:42:16 +00006175for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006176do :
6177 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6178"
6179if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006180 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006181#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006182_ACEOF
6183
6184fi
6185
drh71eb93e2001-09-28 01:34:43 +00006186done
6187
drh71eb93e2001-09-28 01:34:43 +00006188
drh71eb93e2001-09-28 01:34:43 +00006189
mlcreech636a9952008-05-05 22:52:56 +00006190# Set options
mlcreech94984912008-03-04 19:03:08 +00006191
drh71eb93e2001-09-28 01:34:43 +00006192
drh71eb93e2001-09-28 01:34:43 +00006193
mlcreech636a9952008-05-05 22:52:56 +00006194 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006195
a.rottmann9bc8b932004-02-29 15:18:31 +00006196
mlcreech636a9952008-05-05 22:52:56 +00006197 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006198
a.rottmann9bc8b932004-02-29 15:18:31 +00006199
drh8b727472009-01-19 18:18:40 +00006200 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006201if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006202 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006203 case $enableval in
6204 yes) enable_shared=yes ;;
6205 no) enable_shared=no ;;
6206 *)
6207 enable_shared=no
6208 # Look at the argument we got. We use all the common list separators.
6209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6210 for pkg in $enableval; do
6211 IFS="$lt_save_ifs"
6212 if test "X$pkg" = "X$p"; then
6213 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006214 fi
mlcreech636a9952008-05-05 22:52:56 +00006215 done
6216 IFS="$lt_save_ifs"
6217 ;;
6218 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006219else
mlcreech636a9952008-05-05 22:52:56 +00006220 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006221fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006222
mlcreech636a9952008-05-05 22:52:56 +00006223
6224
6225
6226
6227
6228
6229
drh8b727472009-01-19 18:18:40 +00006230
6231 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006232if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006233 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006234 case $enableval in
6235 yes) enable_static=yes ;;
6236 no) enable_static=no ;;
6237 *)
6238 enable_static=no
6239 # Look at the argument we got. We use all the common list separators.
6240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6241 for pkg in $enableval; do
6242 IFS="$lt_save_ifs"
6243 if test "X$pkg" = "X$p"; then
6244 enable_static=yes
6245 fi
6246 done
6247 IFS="$lt_save_ifs"
6248 ;;
6249 esac
6250else
6251 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006252fi
mlcreech636a9952008-05-05 22:52:56 +00006253
6254
6255
6256
6257
6258
6259
6260
6261
drh8b727472009-01-19 18:18:40 +00006262
6263# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006264if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006265 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006266else
6267 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006268fi
6269
mlcreech636a9952008-05-05 22:52:56 +00006270
6271test -z "$pic_mode" && pic_mode=default
6272
6273
6274
6275
6276
6277
6278
drh8b727472009-01-19 18:18:40 +00006279 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006280if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006281 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006282 case $enableval in
6283 yes) enable_fast_install=yes ;;
6284 no) enable_fast_install=no ;;
6285 *)
6286 enable_fast_install=no
6287 # Look at the argument we got. We use all the common list separators.
6288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6289 for pkg in $enableval; do
6290 IFS="$lt_save_ifs"
6291 if test "X$pkg" = "X$p"; then
6292 enable_fast_install=yes
6293 fi
6294 done
6295 IFS="$lt_save_ifs"
6296 ;;
6297 esac
6298else
6299 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006300fi
6301
mlcreech636a9952008-05-05 22:52:56 +00006302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312# This can be used to rebuild libtool when needed
6313LIBTOOL_DEPS="$ltmain"
6314
6315# Always use our own libtool.
6316LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342test -z "$LN_S" && LN_S="ln -s"
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357if test -n "${ZSH_VERSION+set}" ; then
6358 setopt NO_GLOB_SUBST
6359fi
6360
drhf922ca42015-05-14 15:39:18 +00006361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006362$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006363if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006364 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006365else
6366 rm -f .libs 2>/dev/null
6367mkdir .libs 2>/dev/null
6368if test -d .libs; then
6369 lt_cv_objdir=.libs
6370else
6371 # MS-DOS does not allow filenames that begin with a dot.
6372 lt_cv_objdir=_libs
6373fi
6374rmdir .libs 2>/dev/null
6375fi
drhf922ca42015-05-14 15:39:18 +00006376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006377$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006378objdir=$lt_cv_objdir
6379
6380
6381
6382
6383
mlcreech636a9952008-05-05 22:52:56 +00006384cat >>confdefs.h <<_ACEOF
6385#define LT_OBJDIR "$lt_cv_objdir/"
6386_ACEOF
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
a.rottmann9bc8b932004-02-29 15:18:31 +00006404case $host_os in
6405aix3*)
6406 # AIX sometimes has problems with the GCC collect2 program. For some
6407 # reason, if we set the COLLECT_NAMES environment variable, the problems
6408 # vanish in a puff of smoke.
6409 if test "X${COLLECT_NAMES+set}" != Xset; then
6410 COLLECT_NAMES=
6411 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006412 fi
6413 ;;
6414esac
6415
a.rottmann9bc8b932004-02-29 15:18:31 +00006416# Sed substitution that helps us do robust quoting. It backslashifies
6417# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006418sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006419
6420# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006421double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006422
6423# Sed substitution to delay expansion of an escaped shell variable in a
6424# double_quote_subst'ed string.
6425delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6426
mlcreech636a9952008-05-05 22:52:56 +00006427# Sed substitution to delay expansion of an escaped single quote.
6428delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6429
a.rottmann9bc8b932004-02-29 15:18:31 +00006430# Sed substitution to avoid accidental globbing in evaled expressions
6431no_glob_subst='s/\*/\\\*/g'
6432
a.rottmann9bc8b932004-02-29 15:18:31 +00006433# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006434ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006435can_build_shared=yes
6436
vapier7f19c022007-02-17 14:46:31 +00006437# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006438# which needs '.lib').
6439libext=a
mlcreech636a9952008-05-05 22:52:56 +00006440
a.rottmann9bc8b932004-02-29 15:18:31 +00006441with_gnu_ld="$lt_cv_prog_gnu_ld"
6442
a.rottmann84e63352003-03-24 09:42:16 +00006443old_CC="$CC"
6444old_CFLAGS="$CFLAGS"
6445
6446# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006447test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006448test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006449test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006450test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006451test -z "$ac_objext" && ac_objext=o
6452
vapier7f19c022007-02-17 14:46:31 +00006453for cc_temp in $compiler""; do
6454 case $cc_temp in
6455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6457 \-*) ;;
6458 *) break;;
6459 esac
6460done
mlcreech636a9952008-05-05 22:52:56 +00006461cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006462
6463
a.rottmann9bc8b932004-02-29 15:18:31 +00006464# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006465test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006466case $deplibs_check_method in
6467file_magic*)
6468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006470$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006471if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006472 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006473else
a.rottmann9bc8b932004-02-29 15:18:31 +00006474 case $MAGIC_CMD in
6475[\\/*] | ?:[\\/]*)
6476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6477 ;;
6478*)
6479 lt_save_MAGIC_CMD="$MAGIC_CMD"
6480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6482 for ac_dir in $ac_dummy; do
6483 IFS="$lt_save_ifs"
6484 test -z "$ac_dir" && ac_dir=.
6485 if test -f $ac_dir/${ac_tool_prefix}file; then
6486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6487 if test -n "$file_magic_test_file"; then
6488 case $deplibs_check_method in
6489 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6493 $EGREP "$file_magic_regex" > /dev/null; then
6494 :
6495 else
mlcreech636a9952008-05-05 22:52:56 +00006496 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006497
a.rottmann9bc8b932004-02-29 15:18:31 +00006498*** Warning: the command libtool uses to detect shared libraries,
6499*** $file_magic_cmd, produces output that libtool cannot recognize.
6500*** The result is that libtool may fail to recognize shared libraries
6501*** as such. This will affect the creation of libtool libraries that
6502*** depend on shared libraries, but programs linked with such libtool
6503*** libraries will work regardless of this problem. Nevertheless, you
6504*** may want to report the problem to your system manager and/or to
6505*** bug-libtool@gnu.org
6506
mlcreech636a9952008-05-05 22:52:56 +00006507_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006508 fi ;;
6509 esac
6510 fi
6511 break
6512 fi
6513 done
6514 IFS="$lt_save_ifs"
6515 MAGIC_CMD="$lt_save_MAGIC_CMD"
6516 ;;
6517esac
6518fi
6519
6520MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6521if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006523$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006524else
drhf922ca42015-05-14 15:39:18 +00006525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006526$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006527fi
6528
mlcreech636a9952008-05-05 22:52:56 +00006529
6530
6531
6532
a.rottmann9bc8b932004-02-29 15:18:31 +00006533if test -z "$lt_cv_path_MAGIC_CMD"; then
6534 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006536$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006537if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006538 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006539else
6540 case $MAGIC_CMD in
6541[\\/*] | ?:[\\/]*)
6542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6543 ;;
6544*)
6545 lt_save_MAGIC_CMD="$MAGIC_CMD"
6546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6548 for ac_dir in $ac_dummy; do
6549 IFS="$lt_save_ifs"
6550 test -z "$ac_dir" && ac_dir=.
6551 if test -f $ac_dir/file; then
6552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6553 if test -n "$file_magic_test_file"; then
6554 case $deplibs_check_method in
6555 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6559 $EGREP "$file_magic_regex" > /dev/null; then
6560 :
6561 else
mlcreech636a9952008-05-05 22:52:56 +00006562 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006563
6564*** Warning: the command libtool uses to detect shared libraries,
6565*** $file_magic_cmd, produces output that libtool cannot recognize.
6566*** The result is that libtool may fail to recognize shared libraries
6567*** as such. This will affect the creation of libtool libraries that
6568*** depend on shared libraries, but programs linked with such libtool
6569*** libraries will work regardless of this problem. Nevertheless, you
6570*** may want to report the problem to your system manager and/or to
6571*** bug-libtool@gnu.org
6572
mlcreech636a9952008-05-05 22:52:56 +00006573_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006574 fi ;;
6575 esac
6576 fi
6577 break
6578 fi
6579 done
6580 IFS="$lt_save_ifs"
6581 MAGIC_CMD="$lt_save_MAGIC_CMD"
6582 ;;
6583esac
6584fi
6585
6586MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6587if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006589$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006590else
drhf922ca42015-05-14 15:39:18 +00006591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006592$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006593fi
6594
mlcreech636a9952008-05-05 22:52:56 +00006595
a.rottmann9bc8b932004-02-29 15:18:31 +00006596 else
6597 MAGIC_CMD=:
6598 fi
6599fi
6600
6601 fi
6602 ;;
6603esac
6604
a.rottmann9bc8b932004-02-29 15:18:31 +00006605# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006606
a.rottmann9bc8b932004-02-29 15:18:31 +00006607lt_save_CC="$CC"
6608ac_ext=c
6609ac_cpp='$CPP $CPPFLAGS'
6610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614
6615# Source file extension for C test sources.
6616ac_ext=c
6617
6618# Object file extension for compiled C test sources.
6619objext=o
6620objext=$objext
6621
6622# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006623lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006624
6625# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006626lt_simple_link_test_code='int main(){return(0);}'
6627
6628
6629
6630
6631
a.rottmann9bc8b932004-02-29 15:18:31 +00006632
6633
6634# If no C compiler was specified, use CC.
6635LTCC=${LTCC-"$CC"}
6636
vapier7f19c022007-02-17 14:46:31 +00006637# If no C compiler flags were specified, use CFLAGS.
6638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6639
a.rottmann9bc8b932004-02-29 15:18:31 +00006640# Allow CC to be a program name with arguments.
6641compiler=$CC
6642
mlcreech636a9952008-05-05 22:52:56 +00006643# Save the default compiler, since it gets overwritten when the other
6644# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6645compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006646
vapier7f19c022007-02-17 14:46:31 +00006647# save warnings/boilerplate of simple test code
6648ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006649echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006650eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6651_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006652$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006653
vapier7f19c022007-02-17 14:46:31 +00006654ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006655echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006656eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6657_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006658$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006659
6660
mlcreech636a9952008-05-05 22:52:56 +00006661if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006662
6663lt_prog_compiler_no_builtin_flag=
6664
6665if test "$GCC" = yes; then
6666 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6667
drhf922ca42015-05-14 15:39:18 +00006668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006669$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006670if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006671 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006672else
6673 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006674 ac_outfile=conftest.$ac_objext
6675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 lt_compiler_flag="-fno-rtti -fno-exceptions"
6677 # Insert the option either (1) after the last *FLAGS variable, or
6678 # (2) before a word containing "conftest.", or (3) at the end.
6679 # Note that $ac_compile itself does not contain backslashes and begins
6680 # with a dollar sign (not a hyphen), so the echo should work correctly.
6681 # The option is referenced via a variable to avoid confusing sed.
6682 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6685 -e 's:$: $lt_compiler_flag:'`
drhfb556712019-03-22 11:38:14 +00006686 (eval echo "\"\$as_me:6686: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006687 (eval "$lt_compile" 2>conftest.err)
6688 ac_status=$?
6689 cat conftest.err >&5
drhfb556712019-03-22 11:38:14 +00006690 echo "$as_me:6690: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006691 if (exit $ac_status) && test -s "$ac_outfile"; then
6692 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006693 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006694 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006697 lt_cv_prog_compiler_rtti_exceptions=yes
6698 fi
6699 fi
mlcreech636a9952008-05-05 22:52:56 +00006700 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006701
6702fi
drhf922ca42015-05-14 15:39:18 +00006703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006704$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006705
6706if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6708else
6709 :
6710fi
6711
6712fi
6713
mlcreech636a9952008-05-05 22:52:56 +00006714
6715
6716
6717
6718
6719 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006720lt_prog_compiler_pic=
6721lt_prog_compiler_static=
6722
drhf922ca42015-05-14 15:39:18 +00006723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006724$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006725
drh71eb93e2001-09-28 01:34:43 +00006726 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006727 lt_prog_compiler_wl='-Wl,'
6728 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006729
6730 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006731 aix*)
6732 # All AIX code is PIC.
6733 if test "$host_cpu" = ia64; then
6734 # AIX 5 now supports IA64 processor
6735 lt_prog_compiler_static='-Bstatic'
6736 fi
drh71eb93e2001-09-28 01:34:43 +00006737 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006738
drh71eb93e2001-09-28 01:34:43 +00006739 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006740 case $host_cpu in
6741 powerpc)
6742 # see comment about AmigaOS4 .so support
6743 lt_prog_compiler_pic='-fPIC'
6744 ;;
6745 m68k)
6746 # FIXME: we need at least 68020 code to build shared libraries, but
6747 # adding the `-m68020' flag to GCC prevents building anything better,
6748 # like `-m68040'.
6749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6750 ;;
6751 esac
drh71eb93e2001-09-28 01:34:43 +00006752 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006753
mlcreech636a9952008-05-05 22:52:56 +00006754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006755 # PIC is the default for these OSes.
6756 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006757
vapier6acb2cf2009-01-28 04:46:28 +00006758 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006759 # This hack is so that the source file can tell whether it is being
6760 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6762 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006763 lt_prog_compiler_pic='-DDLL_EXPORT'
6764 ;;
6765
drh71eb93e2001-09-28 01:34:43 +00006766 darwin* | rhapsody*)
6767 # PIC is the default on this platform
6768 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006769 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006770 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006771
a.rottmann9bc8b932004-02-29 15:18:31 +00006772 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006773 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6774 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6775 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006776 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006777 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006778 # +Z the default
6779 ;;
6780 *)
6781 lt_prog_compiler_pic='-fPIC'
6782 ;;
6783 esac
6784 ;;
6785
mlcreech636a9952008-05-05 22:52:56 +00006786 interix[3-9]*)
6787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6788 # Instead, we relocate shared libraries at runtime.
6789 ;;
6790
6791 msdosdjgpp*)
6792 # Just because we use GCC doesn't mean we suddenly get shared libraries
6793 # on systems that don't support them.
6794 lt_prog_compiler_can_build_shared=no
6795 enable_shared=no
6796 ;;
6797
6798 *nto* | *qnx*)
6799 # QNX uses GNU C++, but need to define -shared option too, otherwise
6800 # it will coredump.
6801 lt_prog_compiler_pic='-fPIC -shared'
6802 ;;
6803
6804 sysv4*MP*)
6805 if test -d /usr/nec; then
6806 lt_prog_compiler_pic=-Kconform_pic
6807 fi
6808 ;;
6809
drh71eb93e2001-09-28 01:34:43 +00006810 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006812 ;;
6813 esac
6814 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006816 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 aix*)
6818 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006819 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006820 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006821 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006822 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006823 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006824 fi
6825 ;;
6826
vapier6acb2cf2009-01-28 04:46:28 +00006827 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006828 # This hack is so that the source file can tell whether it is being
6829 # built for inclusion in a dll (and should export symbols for example).
6830 lt_prog_compiler_pic='-DDLL_EXPORT'
6831 ;;
6832
a.rottmann84e63352003-03-24 09:42:16 +00006833 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006834 lt_prog_compiler_wl='-Wl,'
6835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6836 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006837 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 hppa*64*|ia64*)
6839 # +Z the default
6840 ;;
6841 *)
6842 lt_prog_compiler_pic='+Z'
6843 ;;
6844 esac
6845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6846 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006847 ;;
6848
6849 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006850 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006851 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006852 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006853 ;;
6854
mlcreech636a9952008-05-05 22:52:56 +00006855 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006856 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006857 # old Intel for x86_64 which still supported -KPIC.
6858 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-static'
6862 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006863 # icc used to be incompatible with GCC.
6864 # ICC 10 doesn't accept -KPIC any more.
6865 icc* | ifort*)
6866 lt_prog_compiler_wl='-Wl,'
6867 lt_prog_compiler_pic='-fPIC'
6868 lt_prog_compiler_static='-static'
6869 ;;
6870 # Lahey Fortran 8.1.
6871 lf95*)
6872 lt_prog_compiler_wl='-Wl,'
6873 lt_prog_compiler_pic='--shared'
6874 lt_prog_compiler_static='--static'
6875 ;;
vapier7f19c022007-02-17 14:46:31 +00006876 pgcc* | pgf77* | pgf90* | pgf95*)
6877 # Portland Group compilers (*not* the Pentium gcc compiler,
6878 # which looks to be a dead project)
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_pic='-fpic'
6881 lt_prog_compiler_static='-Bstatic'
6882 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006883 ccc*)
6884 lt_prog_compiler_wl='-Wl,'
6885 # All Alpha code is PIC.
6886 lt_prog_compiler_static='-non_shared'
6887 ;;
mlcreech636a9952008-05-05 22:52:56 +00006888 xl*)
6889 # IBM XL C 8.0/Fortran 10.1 on PPC
6890 lt_prog_compiler_wl='-Wl,'
6891 lt_prog_compiler_pic='-qpic'
6892 lt_prog_compiler_static='-qstaticlink'
6893 ;;
6894 *)
6895 case `$CC -V 2>&1 | sed 5q` in
6896 *Sun\ C*)
6897 # Sun C 5.9
6898 lt_prog_compiler_pic='-KPIC'
6899 lt_prog_compiler_static='-Bstatic'
6900 lt_prog_compiler_wl='-Wl,'
6901 ;;
6902 *Sun\ F*)
6903 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6904 lt_prog_compiler_pic='-KPIC'
6905 lt_prog_compiler_static='-Bstatic'
6906 lt_prog_compiler_wl=''
6907 ;;
6908 esac
6909 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 esac
drh71eb93e2001-09-28 01:34:43 +00006911 ;;
6912
mlcreech636a9952008-05-05 22:52:56 +00006913 newsos6)
6914 lt_prog_compiler_pic='-KPIC'
6915 lt_prog_compiler_static='-Bstatic'
6916 ;;
6917
6918 *nto* | *qnx*)
6919 # QNX uses GNU C++, but need to define -shared option too, otherwise
6920 # it will coredump.
6921 lt_prog_compiler_pic='-fPIC -shared'
6922 ;;
6923
drh71eb93e2001-09-28 01:34:43 +00006924 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006925 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006926 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006927 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006928 ;;
6929
mlcreech636a9952008-05-05 22:52:56 +00006930 rdos*)
6931 lt_prog_compiler_static='-non_shared'
6932 ;;
6933
drh71eb93e2001-09-28 01:34:43 +00006934 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006935 lt_prog_compiler_pic='-KPIC'
6936 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006937 case $cc_basename in
6938 f77* | f90* | f95*)
6939 lt_prog_compiler_wl='-Qoption ld ';;
6940 *)
6941 lt_prog_compiler_wl='-Wl,';;
6942 esac
drh71eb93e2001-09-28 01:34:43 +00006943 ;;
6944
6945 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006946 lt_prog_compiler_wl='-Qoption ld '
6947 lt_prog_compiler_pic='-PIC'
6948 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006949 ;;
6950
vapier7f19c022007-02-17 14:46:31 +00006951 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006952 lt_prog_compiler_wl='-Wl,'
6953 lt_prog_compiler_pic='-KPIC'
6954 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006955 ;;
6956
6957 sysv4*MP*)
6958 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006959 lt_prog_compiler_pic='-Kconform_pic'
6960 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006961 fi
6962 ;;
6963
vapier7f19c022007-02-17 14:46:31 +00006964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6965 lt_prog_compiler_wl='-Wl,'
6966 lt_prog_compiler_pic='-KPIC'
6967 lt_prog_compiler_static='-Bstatic'
6968 ;;
6969
6970 unicos*)
6971 lt_prog_compiler_wl='-Wl,'
6972 lt_prog_compiler_can_build_shared=no
6973 ;;
6974
a.rottmann9bc8b932004-02-29 15:18:31 +00006975 uts4*)
6976 lt_prog_compiler_pic='-pic'
6977 lt_prog_compiler_static='-Bstatic'
6978 ;;
6979
drh71eb93e2001-09-28 01:34:43 +00006980 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006981 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006982 ;;
6983 esac
6984 fi
6985
mlcreech636a9952008-05-05 22:52:56 +00006986case $host_os in
6987 # For platforms which do not support PIC, -DPIC is meaningless:
6988 *djgpp*)
6989 lt_prog_compiler_pic=
6990 ;;
6991 *)
6992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6993 ;;
6994esac
drhf922ca42015-05-14 15:39:18 +00006995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006996$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006997
6998
6999
7000
7001
drh71eb93e2001-09-28 01:34:43 +00007002
a.rottmann9bc8b932004-02-29 15:18:31 +00007003#
7004# Check to make sure the PIC flag actually works.
7005#
7006if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00007007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007008$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007009if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007010 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007011else
mlcreech636a9952008-05-05 22:52:56 +00007012 lt_cv_prog_compiler_pic_works=no
7013 ac_outfile=conftest.$ac_objext
7014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7016 # Insert the option either (1) after the last *FLAGS variable, or
7017 # (2) before a word containing "conftest.", or (3) at the end.
7018 # Note that $ac_compile itself does not contain backslashes and begins
7019 # with a dollar sign (not a hyphen), so the echo should work correctly.
7020 # The option is referenced via a variable to avoid confusing sed.
7021 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7024 -e 's:$: $lt_compiler_flag:'`
drhfb556712019-03-22 11:38:14 +00007025 (eval echo "\"\$as_me:7025: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007026 (eval "$lt_compile" 2>conftest.err)
7027 ac_status=$?
7028 cat conftest.err >&5
drhfb556712019-03-22 11:38:14 +00007029 echo "$as_me:7029: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007030 if (exit $ac_status) && test -s "$ac_outfile"; then
7031 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007032 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007033 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007036 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007037 fi
7038 fi
mlcreech636a9952008-05-05 22:52:56 +00007039 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007040
a.rottmann9bc8b932004-02-29 15:18:31 +00007041fi
drhf922ca42015-05-14 15:39:18 +00007042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007043$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007044
mlcreech636a9952008-05-05 22:52:56 +00007045if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007046 case $lt_prog_compiler_pic in
7047 "" | " "*) ;;
7048 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7049 esac
drh71eb93e2001-09-28 01:34:43 +00007050else
a.rottmann9bc8b932004-02-29 15:18:31 +00007051 lt_prog_compiler_pic=
7052 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007053fi
7054
a.rottmann84e63352003-03-24 09:42:16 +00007055fi
mlcreech636a9952008-05-05 22:52:56 +00007056
7057
7058
7059
7060
a.rottmann84e63352003-03-24 09:42:16 +00007061
vapier7f19c022007-02-17 14:46:31 +00007062#
7063# Check to make sure the static flag actually works.
7064#
7065wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007067$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007068if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007069 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007070else
mlcreech636a9952008-05-05 22:52:56 +00007071 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007072 save_LDFLAGS="$LDFLAGS"
7073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7076 # The linker can only warn and ignore the option if not recognized
7077 # So say no if there are warnings
7078 if test -s conftest.err; then
7079 # Append any errors to the config.log.
7080 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007081 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7083 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007084 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007085 fi
7086 else
mlcreech636a9952008-05-05 22:52:56 +00007087 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007088 fi
7089 fi
mlcreech636a9952008-05-05 22:52:56 +00007090 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007091 LDFLAGS="$save_LDFLAGS"
7092
7093fi
drhf922ca42015-05-14 15:39:18 +00007094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007095$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007096
mlcreech636a9952008-05-05 22:52:56 +00007097if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007098 :
7099else
7100 lt_prog_compiler_static=
7101fi
7102
7103
mlcreech636a9952008-05-05 22:52:56 +00007104
7105
7106
7107
7108
drhf922ca42015-05-14 15:39:18 +00007109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007110$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007111if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007112 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007113else
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007115 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007116 mkdir conftest
7117 cd conftest
7118 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007120
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 lt_compiler_flag="-o out/conftest2.$ac_objext"
7122 # Insert the option either (1) after the last *FLAGS variable, or
7123 # (2) before a word containing "conftest.", or (3) at the end.
7124 # Note that $ac_compile itself does not contain backslashes and begins
7125 # with a dollar sign (not a hyphen), so the echo should work correctly.
7126 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7129 -e 's:$: $lt_compiler_flag:'`
drhfb556712019-03-22 11:38:14 +00007130 (eval echo "\"\$as_me:7130: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007131 (eval "$lt_compile" 2>out/conftest.err)
7132 ac_status=$?
7133 cat out/conftest.err >&5
drhfb556712019-03-22 11:38:14 +00007134 echo "$as_me:7134: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7136 then
7137 # The compiler can only warn and ignore the option if not recognized
7138 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007139 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007142 lt_cv_prog_compiler_c_o=yes
7143 fi
7144 fi
vapier7f19c022007-02-17 14:46:31 +00007145 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007146 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007147 # SGI C++ compiler will create directory out/ii_files/ for
7148 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7150 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007151 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007152 $RM -r conftest
7153 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007154
7155fi
drhf922ca42015-05-14 15:39:18 +00007156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007157$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007158
7159
7160
7161
7162
7163
drhf922ca42015-05-14 15:39:18 +00007164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007165$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007166if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007167 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007168else
7169 lt_cv_prog_compiler_c_o=no
7170 $RM -r conftest 2>/dev/null
7171 mkdir conftest
7172 cd conftest
7173 mkdir out
7174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7175
7176 lt_compiler_flag="-o out/conftest2.$ac_objext"
7177 # Insert the option either (1) after the last *FLAGS variable, or
7178 # (2) before a word containing "conftest.", or (3) at the end.
7179 # Note that $ac_compile itself does not contain backslashes and begins
7180 # with a dollar sign (not a hyphen), so the echo should work correctly.
7181 lt_compile=`echo "$ac_compile" | $SED \
7182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7184 -e 's:$: $lt_compiler_flag:'`
drhfb556712019-03-22 11:38:14 +00007185 (eval echo "\"\$as_me:7185: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007186 (eval "$lt_compile" 2>out/conftest.err)
7187 ac_status=$?
7188 cat out/conftest.err >&5
drhfb556712019-03-22 11:38:14 +00007189 echo "$as_me:7189: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7191 then
7192 # The compiler can only warn and ignore the option if not recognized
7193 # So say no if there are warnings
7194 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7197 lt_cv_prog_compiler_c_o=yes
7198 fi
7199 fi
7200 chmod u+w . 2>&5
7201 $RM conftest*
7202 # SGI C++ compiler will create directory out/ii_files/ for
7203 # template instantiation
7204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7205 $RM out/* && rmdir out
7206 cd ..
7207 $RM -r conftest
7208 $RM conftest*
7209
7210fi
drhf922ca42015-05-14 15:39:18 +00007211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007212$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007213
7214
drh71eb93e2001-09-28 01:34:43 +00007215
a.rottmann84e63352003-03-24 09:42:16 +00007216
drh71eb93e2001-09-28 01:34:43 +00007217hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007218if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007219 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007221$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007222 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007223 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7225 touch conftest.a
7226 ln conftest.a conftest.b 2>&5 || hard_links=no
7227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007229$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007230 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007231 { $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 +00007232$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007233 need_locks=warn
7234 fi
7235else
7236 need_locks=no
7237fi
7238
mlcreech636a9952008-05-05 22:52:56 +00007239
7240
7241
7242
7243
drhf922ca42015-05-14 15:39:18 +00007244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007245$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007246
7247 runpath_var=
7248 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007249 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007250 archive_cmds=
7251 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007252 compiler_needs_object=no
7253 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7256 hardcode_automatic=no
7257 hardcode_direct=no
7258 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007259 hardcode_libdir_flag_spec=
7260 hardcode_libdir_flag_spec_ld=
7261 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 hardcode_minus_L=no
7263 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007264 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007266 module_cmds=
7267 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007268 old_archive_from_new_cmds=
7269 old_archive_from_expsyms_cmds=
7270 thread_safe_flag_spec=
7271 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007272 # include_expsyms should be a list of space-separated symbols to be *always*
7273 # included in the symbol list
7274 include_expsyms=
7275 # exclude_expsyms can be an extended regexp of symbols to exclude
7276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7278 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007279 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7281 # platforms (ab)use it in PIC code, but their linkers get confused if
7282 # the symbol is explicitly referenced. Since portable code cannot
7283 # rely on this symbol name, it's probably fine to never include it in
7284 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007285 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007286 extract_expsyms_cmds=
7287
7288 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007289 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7291 # When not using gcc, we currently assume that we are using
7292 # Microsoft Visual C++.
7293 if test "$GCC" != yes; then
7294 with_gnu_ld=no
7295 fi
7296 ;;
vapier7f19c022007-02-17 14:46:31 +00007297 interix*)
7298 # we just hope/assume this is gcc and not c89 (= MSVC++)
7299 with_gnu_ld=yes
7300 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007301 openbsd*)
7302 with_gnu_ld=no
7303 ;;
7304 esac
7305
7306 ld_shlibs=yes
7307 if test "$with_gnu_ld" = yes; then
7308 # If archive_cmds runs LD, not CC, wlarc should be empty
7309 wlarc='${wl}'
7310
vapier7f19c022007-02-17 14:46:31 +00007311 # Set some defaults for GNU ld with shared library support. These
7312 # are reset later if shared libraries are not supported. Putting them
7313 # here allows them to be overridden if necessary.
7314 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007316 export_dynamic_flag_spec='${wl}--export-dynamic'
7317 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007318 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7319 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7320 else
7321 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007322 fi
7323 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007324 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007325 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7326 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7327 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7328 *\ 2.11.*) ;; # other 2.11 versions
7329 *) supports_anon_versioning=yes ;;
7330 esac
7331
a.rottmann9bc8b932004-02-29 15:18:31 +00007332 # See if GNU ld supports shared libraries.
7333 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007334 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007335 # On AIX/PPC, the GNU linker is very broken
7336 if test "$host_cpu" != ia64; then
7337 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007338 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007339
7340*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7341*** to be unable to reliably create shared libraries on AIX.
7342*** Therefore, libtool is disabling shared libraries support. If you
7343*** really care for shared libraries, you may want to modify your PATH
7344*** so that a non-GNU linker is found, and then restart.
7345
mlcreech636a9952008-05-05 22:52:56 +00007346_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007347 fi
7348 ;;
7349
7350 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007351 case $host_cpu in
7352 powerpc)
7353 # see comment about AmigaOS4 .so support
7354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7355 archive_expsym_cmds=''
7356 ;;
7357 m68k)
7358 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)'
7359 hardcode_libdir_flag_spec='-L$libdir'
7360 hardcode_minus_L=yes
7361 ;;
7362 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007363 ;;
7364
7365 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007367 allow_undefined_flag=unsupported
7368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7369 # support --undefined. This deserves some investigation. FIXME
7370 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7371 else
7372 ld_shlibs=no
7373 fi
7374 ;;
7375
vapier6acb2cf2009-01-28 04:46:28 +00007376 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007378 # as there is no search path for DLLs.
7379 hardcode_libdir_flag_spec='-L$libdir'
7380 allow_undefined_flag=unsupported
7381 always_export_symbols=no
7382 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007383 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 +00007384
mlcreech636a9952008-05-05 22:52:56 +00007385 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007386 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 +00007387 # If the export-symbols file already is a .def file (1st line
7388 # is EXPORTS), use it as is; otherwise, prepend...
7389 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7390 cp $export_symbols $output_objdir/$soname.def;
7391 else
7392 echo EXPORTS > $output_objdir/$soname.def;
7393 cat $export_symbols >> $output_objdir/$soname.def;
7394 fi~
vapier7f19c022007-02-17 14:46:31 +00007395 $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 +00007396 else
7397 ld_shlibs=no
7398 fi
7399 ;;
7400
mlcreech636a9952008-05-05 22:52:56 +00007401 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007402 hardcode_direct=no
7403 hardcode_shlibpath_var=no
7404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7405 export_dynamic_flag_spec='${wl}-E'
7406 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7407 # Instead, shared libraries are loaded at an image base (0x10000000 by
7408 # default) and relocated if they conflict, which is a slow very memory
7409 # consuming and fragmenting process. To avoid this, we pick a random,
7410 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7411 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7412 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7413 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'
7414 ;;
7415
mlcreech636a9952008-05-05 22:52:56 +00007416 gnu* | linux* | tpf* | k*bsd*-gnu)
7417 tmp_diet=no
7418 if test "$host_os" = linux-dietlibc; then
7419 case $cc_basename in
7420 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7421 esac
7422 fi
7423 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7424 && test "$tmp_diet" = no
7425 then
vapier7f19c022007-02-17 14:46:31 +00007426 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007427 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007428 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007429 pgcc*) # Portland Group C compiler
7430 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 +00007431 tmp_addflag=' $pic_flag'
7432 ;;
7433 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007434 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 +00007435 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007436 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007437 tmp_addflag=' -i_dynamic' ;;
7438 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7439 tmp_addflag=' -i_dynamic -nofor_main' ;;
7440 ifc* | ifort*) # Intel Fortran compiler
7441 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007442 lf95*) # Lahey Fortran 8.1
7443 whole_archive_flag_spec=
7444 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007445 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7446 tmp_sharedflag='-qmkshrobj'
7447 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007448 esac
mlcreech636a9952008-05-05 22:52:56 +00007449 case `$CC -V 2>&1 | sed 5q` in
7450 *Sun\ C*) # Sun C 5.9
7451 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'
7452 compiler_needs_object=yes
7453 tmp_sharedflag='-G' ;;
7454 *Sun\ F*) # Sun Fortran 8.3
7455 tmp_sharedflag='-G' ;;
7456 esac
7457 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007458
mlcreech636a9952008-05-05 22:52:56 +00007459 if test "x$supports_anon_versioning" = xyes; then
7460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7462 echo "local: *; };" >> $output_objdir/$libname.ver~
7463 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7464 fi
7465
7466 case $cc_basename in
7467 xlf*)
7468 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7469 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7470 hardcode_libdir_flag_spec=
7471 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7472 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7473 if test "x$supports_anon_versioning" = xyes; then
7474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7476 echo "local: *; };" >> $output_objdir/$libname.ver~
7477 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7478 fi
7479 ;;
7480 esac
vapier7f19c022007-02-17 14:46:31 +00007481 else
mlcreech636a9952008-05-05 22:52:56 +00007482 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007483 fi
7484 ;;
7485
7486 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007488 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7489 wlarc=
7490 else
7491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7493 fi
7494 ;;
7495
vapier7f19c022007-02-17 14:46:31 +00007496 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007497 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007498 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007499 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007500
7501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7502*** create shared libraries on Solaris systems. Therefore, libtool
7503*** is disabling shared libraries support. We urge you to upgrade GNU
7504*** binutils to release 2.9.1 or newer. Another option is to modify
7505*** your PATH or compiler configuration so that the native linker is
7506*** used, and then restart.
7507
mlcreech636a9952008-05-05 22:52:56 +00007508_LT_EOF
7509 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7512 else
7513 ld_shlibs=no
7514 fi
7515 ;;
7516
vapier7f19c022007-02-17 14:46:31 +00007517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7518 case `$LD -v 2>&1` in
7519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7520 ld_shlibs=no
7521 cat <<_LT_EOF 1>&2
7522
7523*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7524*** reliably create shared libraries on SCO systems. Therefore, libtool
7525*** is disabling shared libraries support. We urge you to upgrade GNU
7526*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7527*** your PATH or compiler configuration so that the native linker is
7528*** used, and then restart.
7529
7530_LT_EOF
7531 ;;
7532 *)
mlcreech636a9952008-05-05 22:52:56 +00007533 # For security reasons, it is highly recommended that you always
7534 # use absolute paths for naming shared libraries, and exclude the
7535 # DT_RUNPATH tag from executables and libraries. But doing so
7536 # requires that you compile everything twice, which is a pain.
7537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7540 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 +00007541 else
7542 ld_shlibs=no
7543 fi
7544 ;;
7545 esac
7546 ;;
7547
a.rottmann9bc8b932004-02-29 15:18:31 +00007548 sunos4*)
7549 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7550 wlarc=
7551 hardcode_direct=yes
7552 hardcode_shlibpath_var=no
7553 ;;
7554
a.rottmann9bc8b932004-02-29 15:18:31 +00007555 *)
mlcreech636a9952008-05-05 22:52:56 +00007556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7559 else
7560 ld_shlibs=no
7561 fi
7562 ;;
7563 esac
7564
vapier7f19c022007-02-17 14:46:31 +00007565 if test "$ld_shlibs" = no; then
7566 runpath_var=
7567 hardcode_libdir_flag_spec=
7568 export_dynamic_flag_spec=
7569 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007570 fi
7571 else
7572 # PORTME fill in a description of your system's linker (not GNU ld)
7573 case $host_os in
7574 aix3*)
7575 allow_undefined_flag=unsupported
7576 always_export_symbols=yes
7577 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'
7578 # Note: this linker hardcodes the directories in LIBPATH if there
7579 # are no directories specified by -L.
7580 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007581 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007582 # Neither direct hardcoding nor static linking is supported with a
7583 # broken collect2.
7584 hardcode_direct=unsupported
7585 fi
7586 ;;
7587
mlcreech636a9952008-05-05 22:52:56 +00007588 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007589 if test "$host_cpu" = ia64; then
7590 # On IA64, the linker does run time linking by default, so we don't
7591 # have to do anything special.
7592 aix_use_runtimelinking=no
7593 exp_sym_flag='-Bexport'
7594 no_entry_flag=""
7595 else
7596 # If we're using GNU nm, then we don't want the "-C" option.
7597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007598 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7599 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 +00007600 else
mlcreech636a9952008-05-05 22:52:56 +00007601 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 +00007602 fi
7603 aix_use_runtimelinking=no
7604
7605 # Test if we are trying to use run time linking or normal
7606 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7607 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007608 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007609 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007610 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7611 aix_use_runtimelinking=yes
7612 break
7613 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007614 done
vapier7f19c022007-02-17 14:46:31 +00007615 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007616 esac
7617
7618 exp_sym_flag='-bexport'
7619 no_entry_flag='-bnoentry'
7620 fi
7621
7622 # When large executables or shared objects are built, AIX ld can
7623 # have problems creating the table of contents. If linking a library
7624 # or program results in "error TOC overflow" add -mminimal-toc to
7625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7627
7628 archive_cmds=''
7629 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007630 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007631 hardcode_libdir_separator=':'
7632 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007633 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007634
7635 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007636 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 # We only want to do this on AIX 4.2 and lower, the check
7638 # below for broken collect2 doesn't work under 4.3+
7639 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007640 if test -f "$collect2name" &&
7641 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007642 then
mlcreech636a9952008-05-05 22:52:56 +00007643 # We have reworked collect2
7644 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007645 else
mlcreech636a9952008-05-05 22:52:56 +00007646 # We have old collect2
7647 hardcode_direct=unsupported
7648 # It fails to find uninstalled libraries when the uninstalled
7649 # path is not listed in the libpath. Setting hardcode_minus_L
7650 # to unsupported forces relinking
7651 hardcode_minus_L=yes
7652 hardcode_libdir_flag_spec='-L$libdir'
7653 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007654 fi
vapier7f19c022007-02-17 14:46:31 +00007655 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007656 esac
7657 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007658 if test "$aix_use_runtimelinking" = yes; then
7659 shared_flag="$shared_flag "'${wl}-G'
7660 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007661 else
7662 # not using gcc
7663 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007664 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7665 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007666 shared_flag='-G'
7667 else
vapier7f19c022007-02-17 14:46:31 +00007668 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007669 shared_flag='${wl}-G'
7670 else
7671 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007672 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007673 fi
7674 fi
7675
vapier6acb2cf2009-01-28 04:46:28 +00007676 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007677 # It seems that -bexpall does not export symbols beginning with
7678 # underscore (_), so it is better to generate a list of symbols to export.
7679 always_export_symbols=yes
7680 if test "$aix_use_runtimelinking" = yes; then
7681 # Warning - without using the other runtime loading flags (-brtl),
7682 # -berok will link without error, but may produce a broken library.
7683 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007684 # Determine the default libpath from the value encoded in an
7685 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007687/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007688
a.rottmann84e63352003-03-24 09:42:16 +00007689int
7690main ()
7691{
a.rottmann9bc8b932004-02-29 15:18:31 +00007692
a.rottmann84e63352003-03-24 09:42:16 +00007693 ;
7694 return 0;
7695}
7696_ACEOF
drhf922ca42015-05-14 15:39:18 +00007697if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007698
mlcreech636a9952008-05-05 22:52:56 +00007699lt_aix_libpath_sed='
7700 /Import File Strings/,/^$/ {
7701 /^0/ {
7702 s/^0 *\(.*\)$/\1/
7703 p
7704 }
7705 }'
7706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007707# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007708if test -z "$aix_libpath"; then
7709 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7710fi
a.rottmann84e63352003-03-24 09:42:16 +00007711fi
drhf922ca42015-05-14 15:39:18 +00007712rm -f core conftest.err conftest.$ac_objext \
7713 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007715
mlcreech636a9952008-05-05 22:52:56 +00007716 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7717 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"
7718 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007719 if test "$host_cpu" = ia64; then
7720 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7721 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007722 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 +00007723 else
mlcreech636a9952008-05-05 22:52:56 +00007724 # Determine the default libpath from the value encoded in an
7725 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007727/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007728
a.rottmann9bc8b932004-02-29 15:18:31 +00007729int
7730main ()
7731{
a.rottmann84e63352003-03-24 09:42:16 +00007732
a.rottmann9bc8b932004-02-29 15:18:31 +00007733 ;
7734 return 0;
7735}
7736_ACEOF
drhf922ca42015-05-14 15:39:18 +00007737if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007738
mlcreech636a9952008-05-05 22:52:56 +00007739lt_aix_libpath_sed='
7740 /Import File Strings/,/^$/ {
7741 /^0/ {
7742 s/^0 *\(.*\)$/\1/
7743 p
7744 }
7745 }'
7746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007747# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007748if test -z "$aix_libpath"; then
7749 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7750fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007751fi
drhf922ca42015-05-14 15:39:18 +00007752rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007755
a.rottmann9bc8b932004-02-29 15:18:31 +00007756 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7757 # Warning - without using the other run time loading flags,
7758 # -berok will link without error, but may produce a broken library.
7759 no_undefined_flag=' ${wl}-bernotok'
7760 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007761 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007762 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007763 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007764 # This is similar to how AIX traditionally builds its shared libraries.
7765 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 +00007766 fi
7767 fi
a.rottmann84e63352003-03-24 09:42:16 +00007768 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007769
7770 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007771 case $host_cpu in
7772 powerpc)
7773 # see comment about AmigaOS4 .so support
7774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7775 archive_expsym_cmds=''
7776 ;;
7777 m68k)
7778 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)'
7779 hardcode_libdir_flag_spec='-L$libdir'
7780 hardcode_minus_L=yes
7781 ;;
7782 esac
a.rottmann84e63352003-03-24 09:42:16 +00007783 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007784
vapier7f19c022007-02-17 14:46:31 +00007785 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007786 export_dynamic_flag_spec=-rdynamic
7787 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007788
vapier6acb2cf2009-01-28 04:46:28 +00007789 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007790 # When not using gcc, we currently assume that we are using
7791 # Microsoft Visual C++.
7792 # hardcode_libdir_flag_spec is actually meaningless, as there is
7793 # no search path for DLLs.
7794 hardcode_libdir_flag_spec=' '
7795 allow_undefined_flag=unsupported
7796 # Tell ltmain to make .lib files, not .a files.
7797 libext=lib
7798 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007799 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007800 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007801 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 +00007802 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007803 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007804 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007805 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007806 fix_srcfile_path='`cygpath -w "$srcfile"`'
7807 enable_shared_with_static_runtimes=yes
7808 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007809
a.rottmann9bc8b932004-02-29 15:18:31 +00007810 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007811
7812
7813 archive_cmds_need_lc=no
7814 hardcode_direct=no
7815 hardcode_automatic=yes
7816 hardcode_shlibpath_var=unsupported
7817 whole_archive_flag_spec=''
7818 link_all_deplibs=yes
7819 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007820 case $cc_basename in
7821 ifort*) _lt_dar_can_shared=yes ;;
7822 *) _lt_dar_can_shared=$GCC ;;
7823 esac
7824 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007825 output_verbose_link_cmd=echo
7826 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7827 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7828 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}"
7829 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}"
7830
7831 else
7832 ld_shlibs=no
7833 fi
7834
a.rottmann9bc8b932004-02-29 15:18:31 +00007835 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007836
a.rottmann9bc8b932004-02-29 15:18:31 +00007837 dgux*)
7838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7839 hardcode_libdir_flag_spec='-L$libdir'
7840 hardcode_shlibpath_var=no
7841 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007842
a.rottmann9bc8b932004-02-29 15:18:31 +00007843 freebsd1*)
7844 ld_shlibs=no
7845 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007846
a.rottmann9bc8b932004-02-29 15:18:31 +00007847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7848 # support. Future versions do this automatically, but an explicit c++rt0.o
7849 # does not break anything, and helps significantly (at the cost of a little
7850 # extra space).
7851 freebsd2.2*)
7852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7853 hardcode_libdir_flag_spec='-R$libdir'
7854 hardcode_direct=yes
7855 hardcode_shlibpath_var=no
7856 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007857
a.rottmann9bc8b932004-02-29 15:18:31 +00007858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7859 freebsd2*)
7860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7861 hardcode_direct=yes
7862 hardcode_minus_L=yes
7863 hardcode_shlibpath_var=no
7864 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007865
a.rottmann9bc8b932004-02-29 15:18:31 +00007866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007867 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007868 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7869 hardcode_libdir_flag_spec='-R$libdir'
7870 hardcode_direct=yes
7871 hardcode_shlibpath_var=no
7872 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007873
a.rottmann9bc8b932004-02-29 15:18:31 +00007874 hpux9*)
7875 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007876 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 +00007877 else
mlcreech636a9952008-05-05 22:52:56 +00007878 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 +00007879 fi
7880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7881 hardcode_libdir_separator=:
7882 hardcode_direct=yes
7883
7884 # hardcode_minus_L: Not really in the search PATH,
7885 # but as the default location of the library.
7886 hardcode_minus_L=yes
7887 export_dynamic_flag_spec='${wl}-E'
7888 ;;
7889
vapier7f19c022007-02-17 14:46:31 +00007890 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007891 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007892 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7893 else
7894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7895 fi
7896 if test "$with_gnu_ld" = no; then
7897 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007898 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007899 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007900 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007901 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007902 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007903 # hardcode_minus_L: Not really in the search PATH,
7904 # but as the default location of the library.
7905 hardcode_minus_L=yes
7906 fi
7907 ;;
7908
7909 hpux11*)
7910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7911 case $host_cpu in
7912 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007913 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7914 ;;
vapier7f19c022007-02-17 14:46:31 +00007915 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007916 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007917 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007918 *)
7919 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7920 ;;
7921 esac
7922 else
vapier7f19c022007-02-17 14:46:31 +00007923 case $host_cpu in
7924 hppa*64*)
7925 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7926 ;;
7927 ia64*)
7928 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 ;;
7930 *)
vapier7f19c022007-02-17 14:46:31 +00007931 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 +00007932 ;;
7933 esac
7934 fi
7935 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007936 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7937 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007938
vapier7f19c022007-02-17 14:46:31 +00007939 case $host_cpu in
7940 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007941 hardcode_direct=no
7942 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007943 ;;
7944 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007945 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007946 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007947 export_dynamic_flag_spec='${wl}-E'
7948
7949 # hardcode_minus_L: Not really in the search PATH,
7950 # but as the default location of the library.
7951 hardcode_minus_L=yes
7952 ;;
7953 esac
7954 fi
7955 ;;
7956
7957 irix5* | irix6* | nonstopux*)
7958 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007959 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'
7960 # Try to use the -exported_symbol ld option, if it does not
7961 # work, assume that -exports_file does not work either and
7962 # implicitly export all symbols.
7963 save_LDFLAGS="$LDFLAGS"
7964 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007967int foo(void) {}
7968_ACEOF
drhf922ca42015-05-14 15:39:18 +00007969if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007970 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'
7971
mlcreech636a9952008-05-05 22:52:56 +00007972fi
drhf922ca42015-05-14 15:39:18 +00007973rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007975 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007976 else
mlcreech636a9952008-05-05 22:52:56 +00007977 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'
7978 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 +00007979 fi
mlcreech636a9952008-05-05 22:52:56 +00007980 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7982 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007983 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007984 link_all_deplibs=yes
7985 ;;
7986
vapier7f19c022007-02-17 14:46:31 +00007987 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7990 else
7991 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7992 fi
7993 hardcode_libdir_flag_spec='-R$libdir'
7994 hardcode_direct=yes
7995 hardcode_shlibpath_var=no
7996 ;;
7997
7998 newsos6)
7999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8000 hardcode_direct=yes
8001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8002 hardcode_libdir_separator=:
8003 hardcode_shlibpath_var=no
8004 ;;
8005
mlcreech636a9952008-05-05 22:52:56 +00008006 *nto* | *qnx*)
8007 ;;
8008
a.rottmann9bc8b932004-02-29 15:18:31 +00008009 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008010 if test -f /usr/libexec/ld.so; then
8011 hardcode_direct=yes
8012 hardcode_shlibpath_var=no
8013 hardcode_direct_absolute=yes
8014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8016 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8018 export_dynamic_flag_spec='${wl}-E'
8019 else
8020 case $host_os in
8021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8023 hardcode_libdir_flag_spec='-R$libdir'
8024 ;;
8025 *)
8026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8028 ;;
8029 esac
8030 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008031 else
mlcreech636a9952008-05-05 22:52:56 +00008032 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008033 fi
8034 ;;
8035
8036 os2*)
8037 hardcode_libdir_flag_spec='-L$libdir'
8038 hardcode_minus_L=yes
8039 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008040 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'
8041 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008042 ;;
8043
8044 osf3*)
8045 if test "$GCC" = yes; then
8046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008047 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 +00008048 else
8049 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008050 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 +00008051 fi
mlcreech636a9952008-05-05 22:52:56 +00008052 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054 hardcode_libdir_separator=:
8055 ;;
8056
8057 osf4* | osf5*) # as osf3* with the addition of -msym flag
8058 if test "$GCC" = yes; then
8059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008060 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 +00008061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8062 else
8063 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008064 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'
8065 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~
8066 $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 +00008067
8068 # Both c and cxx compiler support -rpath directly
8069 hardcode_libdir_flag_spec='-rpath $libdir'
8070 fi
mlcreech636a9952008-05-05 22:52:56 +00008071 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008072 hardcode_libdir_separator=:
8073 ;;
8074
a.rottmann9bc8b932004-02-29 15:18:31 +00008075 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008076 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008077 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008078 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008079 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8081 $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 +00008082 else
mlcreech636a9952008-05-05 22:52:56 +00008083 case `$CC -V 2>&1` in
8084 *"Compilers 5.0"*)
8085 wlarc=''
8086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8089 ;;
8090 *)
8091 wlarc='${wl}'
8092 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8094 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8095 ;;
8096 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008097 fi
8098 hardcode_libdir_flag_spec='-R$libdir'
8099 hardcode_shlibpath_var=no
8100 case $host_os in
8101 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008102 *)
mlcreech636a9952008-05-05 22:52:56 +00008103 # The compiler driver will combine and reorder linker options,
8104 # but understands `-z linker_flag'. GCC discards it without `$wl',
8105 # but is careful enough not to reorder.
8106 # Supported since Solaris 2.6 (maybe 2.5.1?)
8107 if test "$GCC" = yes; then
8108 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8109 else
8110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8111 fi
8112 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008113 esac
8114 link_all_deplibs=yes
8115 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008116
a.rottmann9bc8b932004-02-29 15:18:31 +00008117 sunos4*)
8118 if test "x$host_vendor" = xsequent; then
8119 # Use $CC to link under sequent, because it throws in some extra .o
8120 # files that make .init and .fini sections work.
8121 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8122 else
8123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8124 fi
8125 hardcode_libdir_flag_spec='-L$libdir'
8126 hardcode_direct=yes
8127 hardcode_minus_L=yes
8128 hardcode_shlibpath_var=no
8129 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008130
a.rottmann9bc8b932004-02-29 15:18:31 +00008131 sysv4)
8132 case $host_vendor in
8133 sni)
8134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_direct=yes # is this really true???
8136 ;;
8137 siemens)
8138 ## LD is ld it makes a PLAMLIB
8139 ## CC just makes a GrossModule.
8140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8141 reload_cmds='$CC -r -o $output$reload_objs'
8142 hardcode_direct=no
8143 ;;
8144 motorola)
8145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8147 ;;
8148 esac
8149 runpath_var='LD_RUN_PATH'
8150 hardcode_shlibpath_var=no
8151 ;;
8152
8153 sysv4.3*)
8154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8155 hardcode_shlibpath_var=no
8156 export_dynamic_flag_spec='-Bexport'
8157 ;;
8158
8159 sysv4*MP*)
8160 if test -d /usr/nec; then
8161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8162 hardcode_shlibpath_var=no
8163 runpath_var=LD_RUN_PATH
8164 hardcode_runpath_var=yes
8165 ld_shlibs=yes
8166 fi
8167 ;;
8168
mlcreech636a9952008-05-05 22:52:56 +00008169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008170 no_undefined_flag='${wl}-z,text'
8171 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008172 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008173 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008174
a.rottmann9bc8b932004-02-29 15:18:31 +00008175 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8177 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 +00008178 else
vapier7f19c022007-02-17 14:46:31 +00008179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 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 +00008181 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008182 ;;
8183
vapier7f19c022007-02-17 14:46:31 +00008184 sysv5* | sco3.2v5* | sco5v6*)
8185 # Note: We can NOT use -z defs as we might desire, because we do not
8186 # link with -lc, and that would cause any symbols used from libc to
8187 # always be unresolved, which means just about no library would
8188 # ever link correctly. If we're not using GNU ld we use -z text
8189 # though, which does catch some bad symbols but isn't as heavy-handed
8190 # as -z defs.
8191 no_undefined_flag='${wl}-z,text'
8192 allow_undefined_flag='${wl}-z,nodefs'
8193 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008194 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008195 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008196 hardcode_libdir_separator=':'
8197 link_all_deplibs=yes
8198 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008199 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008200
8201 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008202 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008204 else
mlcreech636a9952008-05-05 22:52:56 +00008205 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8206 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008207 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008208 ;;
8209
8210 uts4*)
8211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8212 hardcode_libdir_flag_spec='-L$libdir'
8213 hardcode_shlibpath_var=no
8214 ;;
8215
8216 *)
8217 ld_shlibs=no
8218 ;;
8219 esac
mlcreech636a9952008-05-05 22:52:56 +00008220
8221 if test x$host_vendor = xsni; then
8222 case $host in
8223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8224 export_dynamic_flag_spec='${wl}-Blargedynsym'
8225 ;;
8226 esac
8227 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008228 fi
8229
drhf922ca42015-05-14 15:39:18 +00008230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008231$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008232test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008233
mlcreech636a9952008-05-05 22:52:56 +00008234with_gnu_ld=$with_gnu_ld
8235
8236
danielk197733a14782008-08-04 14:50:05 +00008237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
a.rottmann9bc8b932004-02-29 15:18:31 +00008250#
8251# Do we need to explicitly link libc?
8252#
8253case "x$archive_cmds_need_lc" in
8254x|xyes)
8255 # Assume -lc should be added
8256 archive_cmds_need_lc=yes
8257
8258 if test "$enable_shared" = yes && test "$GCC" = yes; then
8259 case $archive_cmds in
8260 *'~'*)
8261 # FIXME: we may have to deal with multi-command sequences.
8262 ;;
8263 '$CC '*)
8264 # Test whether the compiler implicitly links with -lc since on some
8265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8266 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008268$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008269 $RM conftest*
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008271
drhf922ca42015-05-14 15:39:18 +00008272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008273 (eval $ac_compile) 2>&5
8274 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8276 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008277 soname=conftest
8278 lib=conftest
8279 libobjs=conftest.$ac_objext
8280 deplibs=
8281 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008282 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 compiler_flags=-v
8284 linker_flags=-v
8285 verstring=
8286 output_objdir=.
8287 libname=conftest
8288 lt_save_allow_undefined_flag=$allow_undefined_flag
8289 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008290 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 +00008291 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008292 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8294 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008295 then
8296 archive_cmds_need_lc=no
8297 else
8298 archive_cmds_need_lc=yes
8299 fi
8300 allow_undefined_flag=$lt_save_allow_undefined_flag
8301 else
8302 cat conftest.err 1>&5
8303 fi
mlcreech636a9952008-05-05 22:52:56 +00008304 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008306$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008307 ;;
8308 esac
drh71eb93e2001-09-28 01:34:43 +00008309 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008310 ;;
8311esac
drh71eb93e2001-09-28 01:34:43 +00008312
mlcreech636a9952008-05-05 22:52:56 +00008313
danielk197733a14782008-08-04 14:50:05 +00008314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
drhf922ca42015-05-14 15:39:18 +00008469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008470$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008471
8472if test "$GCC" = yes; then
8473 case $host_os in
8474 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8475 *) lt_awk_arg="/^libraries:/" ;;
8476 esac
8477 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8478 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8479 # if the path contains ";" then we assume it to be the separator
8480 # otherwise default to the standard path separator (i.e. ":") - it is
8481 # assumed that no part of a normal pathname contains ";" but that should
8482 # okay in the real world where ";" in dirpaths is itself problematic.
8483 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8484 else
8485 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8486 fi
8487 # Ok, now we have the path, separated by spaces, we can step through it
8488 # and add multilib dir if necessary.
8489 lt_tmp_lt_search_path_spec=
8490 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8491 for lt_sys_path in $lt_search_path_spec; do
8492 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8494 else
8495 test -d "$lt_sys_path" && \
8496 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8497 fi
8498 done
8499 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8500BEGIN {RS=" "; FS="/|\n";} {
8501 lt_foo="";
8502 lt_count=0;
8503 for (lt_i = NF; lt_i > 0; lt_i--) {
8504 if ($lt_i != "" && $lt_i != ".") {
8505 if ($lt_i == "..") {
8506 lt_count++;
8507 } else {
8508 if (lt_count == 0) {
8509 lt_foo="/" $lt_i lt_foo;
8510 } else {
8511 lt_count--;
8512 }
8513 }
8514 }
8515 }
8516 if (lt_foo != "") { lt_freq[lt_foo]++; }
8517 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8518}'`
8519 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8520else
8521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8522fi
drh71eb93e2001-09-28 01:34:43 +00008523library_names_spec=
8524libname_spec='lib$name'
8525soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008526shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008527postinstall_cmds=
8528postuninstall_cmds=
8529finish_cmds=
8530finish_eval=
8531shlibpath_var=
8532shlibpath_overrides_runpath=unknown
8533version_type=none
8534dynamic_linker="$host_os ld.so"
8535sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008536need_lib_prefix=unknown
8537hardcode_into_libs=no
8538
8539# when you set need_version to no, make sure it does not cause -set_version
8540# flags to be left without arguments
8541need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008542
8543case $host_os in
8544aix3*)
8545 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008547 shlibpath_var=LIBPATH
8548
a.rottmann9bc8b932004-02-29 15:18:31 +00008549 # AIX 3 has no versioning support, so we append a major version to the name.
8550 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008551 ;;
8552
mlcreech636a9952008-05-05 22:52:56 +00008553aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008554 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008555 need_lib_prefix=no
8556 need_version=no
8557 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008558 if test "$host_cpu" = ia64; then
8559 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008561 shlibpath_var=LD_LIBRARY_PATH
8562 else
8563 # With GCC up to 2.95.x, collect2 would create an import file
8564 # for dependence libraries. The import file would start with
8565 # the line `#! .'. This would cause the generated library to
8566 # depend on `.', always an invalid library. This was fixed in
8567 # development snapshots of GCC prior to 3.0.
8568 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008569 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8571 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008572 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008573 :
8574 else
8575 can_build_shared=no
8576 fi
8577 ;;
drh71eb93e2001-09-28 01:34:43 +00008578 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8580 # soname into executable. Probably we can add versioning support to
8581 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008582 if test "$aix_use_runtimelinking" = yes; then
8583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8584 # instead of lib<name>.a to let people know that these are not
8585 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008587 else
8588 # We preserve .a as extension for shared libraries through AIX4.2
8589 # and later when we are not doing run time linking.
8590 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008591 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008592 fi
8593 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008594 fi
8595 ;;
8596
8597amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008598 case $host_cpu in
8599 powerpc)
8600 # Since July 2007 AmigaOS4 officially supports .so libraries.
8601 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 ;;
8604 m68k)
8605 library_names_spec='$libname.ixlibrary $libname.a'
8606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8607 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'
8608 ;;
8609 esac
drh71eb93e2001-09-28 01:34:43 +00008610 ;;
8611
8612beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008613 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008614 dynamic_linker="$host_os ld.so"
8615 shlibpath_var=LIBRARY_PATH
8616 ;;
8617
vapier7f19c022007-02-17 14:46:31 +00008618bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008619 version_type=linux
8620 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8624 shlibpath_var=LD_LIBRARY_PATH
8625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8627 # the default ld.so.conf also contains /usr/contrib/lib and
8628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8629 # libtool to hard-code these into programs
8630 ;;
8631
vapier6acb2cf2009-01-28 04:46:28 +00008632cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008633 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008634 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008635 need_version=no
8636 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008637
drh71eb93e2001-09-28 01:34:43 +00008638 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008639 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008640 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8642 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008644 dldir=$destdir/`dirname \$dlpath`~
8645 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008646 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008647 chmod a+x \$dldir/$dlname~
8648 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8649 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8650 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008652 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008653 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008654 shlibpath_overrides_runpath=yes
8655
8656 case $host_os in
8657 cygwin*)
8658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8661 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008662 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008663 # MinGW DLLs use traditional 'lib' prefix
8664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008665 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8666 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008667 # It is most probably a Windows format PATH printed by
8668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8669 # path with ; separators, and with drive letters. We can handle the
8670 # drive letters (cygwin fileutils understands them), so leave them,
8671 # especially as we might pass files found there to a mingw objdump,
8672 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008674 else
mlcreech636a9952008-05-05 22:52:56 +00008675 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008676 fi
8677 ;;
8678 pw32*)
8679 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008680 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 +00008681 ;;
8682 esac
drh71eb93e2001-09-28 01:34:43 +00008683 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008684
drh71eb93e2001-09-28 01:34:43 +00008685 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008687 ;;
8688 esac
8689 dynamic_linker='Win32 ld.exe'
8690 # FIXME: first we should search . and the directory the executable is in
8691 shlibpath_var=PATH
8692 ;;
8693
8694darwin* | rhapsody*)
8695 dynamic_linker="$host_os dyld"
8696 version_type=darwin
8697 need_lib_prefix=no
8698 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008699 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008700 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008701 shlibpath_overrides_runpath=yes
8702 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008703 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008704
8705 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008706 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8707 ;;
8708
8709dgux*)
8710 version_type=linux
8711 need_lib_prefix=no
8712 need_version=no
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008716 ;;
8717
a.rottmann84e63352003-03-24 09:42:16 +00008718freebsd1*)
8719 dynamic_linker=no
8720 ;;
8721
vapier7f19c022007-02-17 14:46:31 +00008722freebsd* | dragonfly*)
8723 # DragonFly does not have aout. When/if they implement a new
8724 # versioning mechanism, adjust this.
8725 if test -x /usr/bin/objformat; then
8726 objformat=`/usr/bin/objformat`
8727 else
8728 case $host_os in
8729 freebsd[123]*) objformat=aout ;;
8730 *) objformat=elf ;;
8731 esac
8732 fi
8733 # Handle Gentoo/FreeBSD as it was Linux
8734 case $host_vendor in
8735 gentoo)
8736 version_type=linux ;;
8737 *)
8738 version_type=freebsd-$objformat ;;
8739 esac
8740
drh71eb93e2001-09-28 01:34:43 +00008741 case $version_type in
8742 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008744 need_version=no
8745 need_lib_prefix=no
8746 ;;
8747 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008749 need_version=yes
8750 ;;
vapier7f19c022007-02-17 14:46:31 +00008751 linux)
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 need_lib_prefix=no
8755 need_version=no
8756 ;;
drh71eb93e2001-09-28 01:34:43 +00008757 esac
8758 shlibpath_var=LD_LIBRARY_PATH
8759 case $host_os in
8760 freebsd2*)
8761 shlibpath_overrides_runpath=yes
8762 ;;
vapier7f19c022007-02-17 14:46:31 +00008763 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008764 shlibpath_overrides_runpath=yes
8765 hardcode_into_libs=yes
8766 ;;
vapier7f19c022007-02-17 14:46:31 +00008767 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8768 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008769 shlibpath_overrides_runpath=no
8770 hardcode_into_libs=yes
8771 ;;
mlcreech636a9952008-05-05 22:52:56 +00008772 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008773 shlibpath_overrides_runpath=yes
8774 hardcode_into_libs=yes
8775 ;;
drh71eb93e2001-09-28 01:34:43 +00008776 esac
8777 ;;
8778
8779gnu*)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008785 shlibpath_var=LD_LIBRARY_PATH
8786 hardcode_into_libs=yes
8787 ;;
8788
8789hpux9* | hpux10* | hpux11*)
8790 # Give a soname corresponding to the major version so that dld.sl refuses to
8791 # link against other versions.
8792 version_type=sunos
8793 need_lib_prefix=no
8794 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008795 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008796 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008797 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008798 hardcode_into_libs=yes
8799 dynamic_linker="$host_os dld.so"
8800 shlibpath_var=LD_LIBRARY_PATH
8801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 if test "X$HPUX_IA64_MODE" = X32; then
8805 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8806 else
8807 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8808 fi
8809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810 ;;
mlcreech636a9952008-05-05 22:52:56 +00008811 hppa*64*)
8812 shrext_cmds='.sl'
8813 hardcode_into_libs=yes
8814 dynamic_linker="$host_os dld.sl"
8815 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8821 ;;
8822 *)
vapier7f19c022007-02-17 14:46:31 +00008823 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008824 dynamic_linker="$host_os dld.sl"
8825 shlibpath_var=SHLIB_PATH
8826 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 ;;
8830 esac
drh71eb93e2001-09-28 01:34:43 +00008831 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8832 postinstall_cmds='chmod 555 $lib'
8833 ;;
8834
mlcreech636a9952008-05-05 22:52:56 +00008835interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008836 version_type=linux
8837 need_lib_prefix=no
8838 need_version=no
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 shlibpath_overrides_runpath=no
8844 hardcode_into_libs=yes
8845 ;;
8846
a.rottmann84e63352003-03-24 09:42:16 +00008847irix5* | irix6* | nonstopux*)
8848 case $host_os in
8849 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008850 *)
8851 if test "$lt_cv_prog_gnu_ld" = yes; then
8852 version_type=linux
8853 else
8854 version_type=irix
8855 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008856 esac
drh71eb93e2001-09-28 01:34:43 +00008857 need_lib_prefix=no
8858 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008859 soname_spec='${libname}${release}${shared_ext}$major'
8860 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 +00008861 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008862 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008863 libsuff= shlibsuff=
8864 ;;
8865 *)
8866 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008867 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8868 libsuff= shlibsuff= libmagic=32-bit;;
8869 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8870 libsuff=32 shlibsuff=N32 libmagic=N32;;
8871 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8872 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008873 *) libsuff= shlibsuff= libmagic=never-match;;
8874 esac
8875 ;;
8876 esac
8877 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8878 shlibpath_overrides_runpath=no
8879 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8880 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008881 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008882 ;;
8883
8884# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008885linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008886 dynamic_linker=no
8887 ;;
8888
8889# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008890linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008891 version_type=linux
8892 need_lib_prefix=no
8893 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008899 # Some binutils ld are patched to set DT_RUNPATH
8900 save_LDFLAGS=$LDFLAGS
8901 save_libdir=$libdir
8902 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8903 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008905/* end confdefs.h. */
8906
8907int
8908main ()
8909{
8910
8911 ;
8912 return 0;
8913}
8914_ACEOF
drhf922ca42015-05-14 15:39:18 +00008915if ac_fn_c_try_link "$LINENO"; then :
8916 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008917 shlibpath_overrides_runpath=yes
8918fi
mlcreech636a9952008-05-05 22:52:56 +00008919fi
drhf922ca42015-05-14 15:39:18 +00008920rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008922 LDFLAGS=$save_LDFLAGS
8923 libdir=$save_libdir
8924
drh71eb93e2001-09-28 01:34:43 +00008925 # This implies no fast_install, which is unacceptable.
8926 # Some rework will be needed to allow for fast_install
8927 # before this can be enabled.
8928 hardcode_into_libs=yes
8929
a.rottmann9bc8b932004-02-29 15:18:31 +00008930 # Append ld.so.conf contents to the search path
8931 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008932 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 +00008933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008934 fi
8935
drh71eb93e2001-09-28 01:34:43 +00008936 # We used to test for /lib/ld.so.1 and disable shared libraries on
8937 # powerpc, because MkLinux only supported shared libraries with the
8938 # GNU dynamic linker. Since this was broken with cross compilers,
8939 # most powerpc-linux boxes support dynamic linking these days and
8940 # people can always --disable-shared, the test was removed, and we
8941 # assume the GNU/Linux dynamic linker is in use.
8942 dynamic_linker='GNU/Linux ld.so'
8943 ;;
8944
8945netbsd*)
8946 version_type=sunos
8947 need_lib_prefix=no
8948 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8952 dynamic_linker='NetBSD (a.out) ld.so'
8953 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008956 dynamic_linker='NetBSD ld.elf_so'
8957 fi
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=yes
8960 hardcode_into_libs=yes
8961 ;;
8962
8963newsos6)
8964 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=yes
8968 ;;
8969
mlcreech636a9952008-05-05 22:52:56 +00008970*nto* | *qnx*)
8971 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008972 need_lib_prefix=no
8973 need_version=no
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008976 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008977 shlibpath_overrides_runpath=no
8978 hardcode_into_libs=yes
8979 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008980 ;;
8981
drh71eb93e2001-09-28 01:34:43 +00008982openbsd*)
8983 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008984 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008985 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8987 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8989 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008990 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8993 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008994 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 +00008995 case $host_os in
8996 openbsd2.[89] | openbsd2.[89].*)
8997 shlibpath_overrides_runpath=no
8998 ;;
8999 *)
9000 shlibpath_overrides_runpath=yes
9001 ;;
9002 esac
a.rottmann84e63352003-03-24 09:42:16 +00009003 else
9004 shlibpath_overrides_runpath=yes
9005 fi
drh71eb93e2001-09-28 01:34:43 +00009006 ;;
9007
9008os2*)
9009 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009010 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009011 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009012 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009013 dynamic_linker='OS/2 ld.exe'
9014 shlibpath_var=LIBPATH
9015 ;;
9016
9017osf3* | osf4* | osf5*)
9018 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009019 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009020 need_version=no
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009023 shlibpath_var=LD_LIBRARY_PATH
9024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9026 ;;
9027
mlcreech636a9952008-05-05 22:52:56 +00009028rdos*)
9029 dynamic_linker=no
9030 ;;
9031
drh71eb93e2001-09-28 01:34:43 +00009032solaris*)
9033 version_type=linux
9034 need_lib_prefix=no
9035 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9041 # ldd complains unless libraries are executable
9042 postinstall_cmds='chmod +x $lib'
9043 ;;
9044
9045sunos4*)
9046 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=yes
9051 if test "$with_gnu_ld" = yes; then
9052 need_lib_prefix=no
9053 fi
9054 need_version=yes
9055 ;;
9056
vapier7f19c022007-02-17 14:46:31 +00009057sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009058 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009061 shlibpath_var=LD_LIBRARY_PATH
9062 case $host_vendor in
9063 sni)
9064 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009065 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009066 runpath_var=LD_RUN_PATH
9067 ;;
9068 siemens)
9069 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009070 ;;
9071 motorola)
9072 need_lib_prefix=no
9073 need_version=no
9074 shlibpath_overrides_runpath=no
9075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9076 ;;
9077 esac
9078 ;;
9079
9080sysv4*MP*)
9081 if test -d /usr/nec ;then
9082 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9084 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009085 shlibpath_var=LD_LIBRARY_PATH
9086 fi
9087 ;;
9088
vapier7f19c022007-02-17 14:46:31 +00009089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9090 version_type=freebsd-elf
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009096 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009097 hardcode_into_libs=yes
9098 if test "$with_gnu_ld" = yes; then
9099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009100 else
9101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009102 case $host_os in
9103 sco3.2v5*)
9104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9105 ;;
9106 esac
9107 fi
9108 sys_lib_dlsearch_path_spec='/usr/lib'
9109 ;;
9110
mlcreech636a9952008-05-05 22:52:56 +00009111tpf*)
9112 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9113 version_type=linux
9114 need_lib_prefix=no
9115 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009117 shlibpath_var=LD_LIBRARY_PATH
9118 shlibpath_overrides_runpath=no
9119 hardcode_into_libs=yes
9120 ;;
9121
a.rottmann9bc8b932004-02-29 15:18:31 +00009122uts4*)
9123 version_type=linux
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 ;;
9128
drh71eb93e2001-09-28 01:34:43 +00009129*)
9130 dynamic_linker=no
9131 ;;
9132esac
drhf922ca42015-05-14 15:39:18 +00009133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009134$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009135test "$dynamic_linker" = no && can_build_shared=no
9136
vapier7f19c022007-02-17 14:46:31 +00009137variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9138if test "$GCC" = yes; then
9139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9140fi
9141
mlcreech636a9952008-05-05 22:52:56 +00009142if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9143 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9144fi
9145if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9146 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9147fi
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
drhf922ca42015-05-14 15:39:18 +00009235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009236$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009237hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009238if test -n "$hardcode_libdir_flag_spec" ||
9239 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009240 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009241
mlcreech636a9952008-05-05 22:52:56 +00009242 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009243 if test "$hardcode_direct" != no &&
9244 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9245 # have to relink, otherwise we might link with an installed library
9246 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009247 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009248 test "$hardcode_minus_L" != no; then
9249 # Linking always hardcodes the temporary library directory.
9250 hardcode_action=relink
9251 else
9252 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9253 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009254 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009255else
9256 # We cannot hardcode anything, or else we can only hardcode existing
9257 # directories.
9258 hardcode_action=unsupported
9259fi
drhf922ca42015-05-14 15:39:18 +00009260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009261$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009262
mlcreech636a9952008-05-05 22:52:56 +00009263if test "$hardcode_action" = relink ||
9264 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009265 # Fast installation is not supported
9266 enable_fast_install=no
9267elif test "$shlibpath_overrides_runpath" = yes ||
9268 test "$enable_shared" = no; then
9269 # Fast installation is not necessary
9270 enable_fast_install=needless
9271fi
9272
a.rottmann84e63352003-03-24 09:42:16 +00009273
mlcreech636a9952008-05-05 22:52:56 +00009274
9275
9276
9277
9278 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009279 enable_dlopen=unknown
9280 enable_dlopen_self=unknown
9281 enable_dlopen_self_static=unknown
9282else
9283 lt_cv_dlopen=no
9284 lt_cv_dlopen_libs=
9285
9286 case $host_os in
9287 beos*)
9288 lt_cv_dlopen="load_add_on"
9289 lt_cv_dlopen_libs=
9290 lt_cv_dlopen_self=yes
9291 ;;
9292
vapier6acb2cf2009-01-28 04:46:28 +00009293 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009294 lt_cv_dlopen="LoadLibrary"
9295 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009296 ;;
drh71eb93e2001-09-28 01:34:43 +00009297
a.rottmann9bc8b932004-02-29 15:18:31 +00009298 cygwin*)
9299 lt_cv_dlopen="dlopen"
9300 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009301 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009302
9303 darwin*)
9304 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009306$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009307if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009308 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009309else
9310 ac_check_lib_save_LIBS=$LIBS
9311LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009313/* end confdefs.h. */
9314
drh8b727472009-01-19 18:18:40 +00009315/* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009318#ifdef __cplusplus
9319extern "C"
9320#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009321char dlopen ();
9322int
9323main ()
9324{
drh8b727472009-01-19 18:18:40 +00009325return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009326 ;
9327 return 0;
9328}
9329_ACEOF
drhf922ca42015-05-14 15:39:18 +00009330if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009331 ac_cv_lib_dl_dlopen=yes
9332else
drhf922ca42015-05-14 15:39:18 +00009333 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009334fi
drhf922ca42015-05-14 15:39:18 +00009335rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009337LIBS=$ac_check_lib_save_LIBS
9338fi
drhf922ca42015-05-14 15:39:18 +00009339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009340$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009341if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9343else
9344
9345 lt_cv_dlopen="dyld"
9346 lt_cv_dlopen_libs=
9347 lt_cv_dlopen_self=yes
9348
9349fi
9350
mlcreech636a9952008-05-05 22:52:56 +00009351 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009352
drh71eb93e2001-09-28 01:34:43 +00009353 *)
drhf922ca42015-05-14 15:39:18 +00009354 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9355if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009356 lt_cv_dlopen="shl_load"
9357else
drhf922ca42015-05-14 15:39:18 +00009358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009359$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009360if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009361 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009362else
9363 ac_check_lib_save_LIBS=$LIBS
9364LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009366/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009367
drh8b727472009-01-19 18:18:40 +00009368/* Override any GCC internal prototype to avoid an error.
9369 Use char because int might match the return type of a GCC
9370 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009371#ifdef __cplusplus
9372extern "C"
9373#endif
drh71eb93e2001-09-28 01:34:43 +00009374char shl_load ();
9375int
9376main ()
9377{
drh8b727472009-01-19 18:18:40 +00009378return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009379 ;
9380 return 0;
9381}
9382_ACEOF
drhf922ca42015-05-14 15:39:18 +00009383if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009384 ac_cv_lib_dld_shl_load=yes
9385else
drhf922ca42015-05-14 15:39:18 +00009386 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009387fi
drhf922ca42015-05-14 15:39:18 +00009388rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009390LIBS=$ac_check_lib_save_LIBS
9391fi
drhf922ca42015-05-14 15:39:18 +00009392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009393$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009394if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009395 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009396else
drhf922ca42015-05-14 15:39:18 +00009397 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9398if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009399 lt_cv_dlopen="dlopen"
9400else
drhf922ca42015-05-14 15:39:18 +00009401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009402$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009403if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009404 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009405else
9406 ac_check_lib_save_LIBS=$LIBS
9407LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009409/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009410
drh8b727472009-01-19 18:18:40 +00009411/* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009414#ifdef __cplusplus
9415extern "C"
9416#endif
drh71eb93e2001-09-28 01:34:43 +00009417char dlopen ();
9418int
9419main ()
9420{
drh8b727472009-01-19 18:18:40 +00009421return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009422 ;
9423 return 0;
9424}
9425_ACEOF
drhf922ca42015-05-14 15:39:18 +00009426if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009427 ac_cv_lib_dl_dlopen=yes
9428else
drhf922ca42015-05-14 15:39:18 +00009429 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009430fi
drhf922ca42015-05-14 15:39:18 +00009431rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009433LIBS=$ac_check_lib_save_LIBS
9434fi
drhf922ca42015-05-14 15:39:18 +00009435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009436$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009437if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9439else
drhf922ca42015-05-14 15:39:18 +00009440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009441$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009442if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009443 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009444else
9445 ac_check_lib_save_LIBS=$LIBS
9446LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009448/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009449
drh8b727472009-01-19 18:18:40 +00009450/* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009453#ifdef __cplusplus
9454extern "C"
9455#endif
drh71eb93e2001-09-28 01:34:43 +00009456char dlopen ();
9457int
9458main ()
9459{
drh8b727472009-01-19 18:18:40 +00009460return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009461 ;
9462 return 0;
9463}
9464_ACEOF
drhf922ca42015-05-14 15:39:18 +00009465if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009466 ac_cv_lib_svld_dlopen=yes
9467else
drhf922ca42015-05-14 15:39:18 +00009468 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009469fi
drhf922ca42015-05-14 15:39:18 +00009470rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009472LIBS=$ac_check_lib_save_LIBS
9473fi
drhf922ca42015-05-14 15:39:18 +00009474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009475$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009476if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009478else
drhf922ca42015-05-14 15:39:18 +00009479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009480$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009481if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009482 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009483else
9484 ac_check_lib_save_LIBS=$LIBS
9485LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009487/* end confdefs.h. */
9488
drh8b727472009-01-19 18:18:40 +00009489/* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009492#ifdef __cplusplus
9493extern "C"
9494#endif
a.rottmann84e63352003-03-24 09:42:16 +00009495char dld_link ();
9496int
9497main ()
9498{
drh8b727472009-01-19 18:18:40 +00009499return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009500 ;
9501 return 0;
9502}
9503_ACEOF
drhf922ca42015-05-14 15:39:18 +00009504if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009505 ac_cv_lib_dld_dld_link=yes
9506else
drhf922ca42015-05-14 15:39:18 +00009507 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009508fi
drhf922ca42015-05-14 15:39:18 +00009509rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009511LIBS=$ac_check_lib_save_LIBS
9512fi
drhf922ca42015-05-14 15:39:18 +00009513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009514$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009515if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009516 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009517fi
9518
drh71eb93e2001-09-28 01:34:43 +00009519
9520fi
9521
drh71eb93e2001-09-28 01:34:43 +00009522
9523fi
9524
a.rottmann84e63352003-03-24 09:42:16 +00009525
9526fi
9527
9528
9529fi
9530
9531
drh71eb93e2001-09-28 01:34:43 +00009532fi
9533
9534 ;;
9535 esac
9536
9537 if test "x$lt_cv_dlopen" != xno; then
9538 enable_dlopen=yes
9539 else
9540 enable_dlopen=no
9541 fi
9542
9543 case $lt_cv_dlopen in
9544 dlopen)
9545 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009546 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009547
9548 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009549 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009550
9551 save_LIBS="$LIBS"
9552 LIBS="$lt_cv_dlopen_libs $LIBS"
9553
drhf922ca42015-05-14 15:39:18 +00009554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009555$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009556if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009557 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009558else
9559 if test "$cross_compiling" = yes; then :
9560 lt_cv_dlopen_self=cross
9561else
a.rottmann9bc8b932004-02-29 15:18:31 +00009562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009563 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009564 cat > conftest.$ac_ext <<_LT_EOF
drhfb556712019-03-22 11:38:14 +00009565#line 9565 "configure"
drh71eb93e2001-09-28 01:34:43 +00009566#include "confdefs.h"
9567
9568#if HAVE_DLFCN_H
9569#include <dlfcn.h>
9570#endif
9571
9572#include <stdio.h>
9573
9574#ifdef RTLD_GLOBAL
9575# define LT_DLGLOBAL RTLD_GLOBAL
9576#else
9577# ifdef DL_GLOBAL
9578# define LT_DLGLOBAL DL_GLOBAL
9579# else
9580# define LT_DLGLOBAL 0
9581# endif
9582#endif
9583
9584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9585 find out it does not work in some platform. */
9586#ifndef LT_DLLAZY_OR_NOW
9587# ifdef RTLD_LAZY
9588# define LT_DLLAZY_OR_NOW RTLD_LAZY
9589# else
9590# ifdef DL_LAZY
9591# define LT_DLLAZY_OR_NOW DL_LAZY
9592# else
9593# ifdef RTLD_NOW
9594# define LT_DLLAZY_OR_NOW RTLD_NOW
9595# else
9596# ifdef DL_NOW
9597# define LT_DLLAZY_OR_NOW DL_NOW
9598# else
9599# define LT_DLLAZY_OR_NOW 0
9600# endif
9601# endif
9602# endif
9603# endif
9604#endif
9605
drh71eb93e2001-09-28 01:34:43 +00009606void fnord() { int i=42;}
9607int main ()
9608{
9609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9610 int status = $lt_dlunknown;
9611
9612 if (self)
9613 {
9614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9615 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9616 /* dlclose (self); */
9617 }
vapier7f19c022007-02-17 14:46:31 +00009618 else
9619 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009620
vapier6acb2cf2009-01-28 04:46:28 +00009621 return status;
drh71eb93e2001-09-28 01:34:43 +00009622}
mlcreech636a9952008-05-05 22:52:56 +00009623_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009625 (eval $ac_link) 2>&5
9626 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9628 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009629 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009630 lt_status=$?
9631 case x$lt_status in
9632 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9633 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009634 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009635 esac
9636 else :
9637 # compilation failed
9638 lt_cv_dlopen_self=no
9639 fi
9640fi
9641rm -fr conftest*
9642
a.rottmann84e63352003-03-24 09:42:16 +00009643
drh71eb93e2001-09-28 01:34:43 +00009644fi
drhf922ca42015-05-14 15:39:18 +00009645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009646$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009647
9648 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009651$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009652if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009653 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009654else
9655 if test "$cross_compiling" = yes; then :
9656 lt_cv_dlopen_self_static=cross
9657else
a.rottmann9bc8b932004-02-29 15:18:31 +00009658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009659 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009660 cat > conftest.$ac_ext <<_LT_EOF
drhfb556712019-03-22 11:38:14 +00009661#line 9661 "configure"
drh71eb93e2001-09-28 01:34:43 +00009662#include "confdefs.h"
9663
9664#if HAVE_DLFCN_H
9665#include <dlfcn.h>
9666#endif
9667
9668#include <stdio.h>
9669
9670#ifdef RTLD_GLOBAL
9671# define LT_DLGLOBAL RTLD_GLOBAL
9672#else
9673# ifdef DL_GLOBAL
9674# define LT_DLGLOBAL DL_GLOBAL
9675# else
9676# define LT_DLGLOBAL 0
9677# endif
9678#endif
9679
9680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9681 find out it does not work in some platform. */
9682#ifndef LT_DLLAZY_OR_NOW
9683# ifdef RTLD_LAZY
9684# define LT_DLLAZY_OR_NOW RTLD_LAZY
9685# else
9686# ifdef DL_LAZY
9687# define LT_DLLAZY_OR_NOW DL_LAZY
9688# else
9689# ifdef RTLD_NOW
9690# define LT_DLLAZY_OR_NOW RTLD_NOW
9691# else
9692# ifdef DL_NOW
9693# define LT_DLLAZY_OR_NOW DL_NOW
9694# else
9695# define LT_DLLAZY_OR_NOW 0
9696# endif
9697# endif
9698# endif
9699# endif
9700#endif
9701
drh71eb93e2001-09-28 01:34:43 +00009702void fnord() { int i=42;}
9703int main ()
9704{
9705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9706 int status = $lt_dlunknown;
9707
9708 if (self)
9709 {
9710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9712 /* dlclose (self); */
9713 }
vapier7f19c022007-02-17 14:46:31 +00009714 else
9715 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009716
vapier6acb2cf2009-01-28 04:46:28 +00009717 return status;
drh71eb93e2001-09-28 01:34:43 +00009718}
mlcreech636a9952008-05-05 22:52:56 +00009719_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009721 (eval $ac_link) 2>&5
9722 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009725 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009726 lt_status=$?
9727 case x$lt_status in
9728 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9729 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009730 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009731 esac
9732 else :
9733 # compilation failed
9734 lt_cv_dlopen_self_static=no
9735 fi
9736fi
9737rm -fr conftest*
9738
a.rottmann84e63352003-03-24 09:42:16 +00009739
drh71eb93e2001-09-28 01:34:43 +00009740fi
drhf922ca42015-05-14 15:39:18 +00009741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009742$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009743 fi
9744
9745 CPPFLAGS="$save_CPPFLAGS"
9746 LDFLAGS="$save_LDFLAGS"
9747 LIBS="$save_LIBS"
9748 ;;
9749 esac
9750
9751 case $lt_cv_dlopen_self in
9752 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9753 *) enable_dlopen_self=unknown ;;
9754 esac
9755
9756 case $lt_cv_dlopen_self_static in
9757 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9758 *) enable_dlopen_self_static=unknown ;;
9759 esac
9760fi
9761
drh71eb93e2001-09-28 01:34:43 +00009762
drh71eb93e2001-09-28 01:34:43 +00009763
a.rottmann9bc8b932004-02-29 15:18:31 +00009764
a.rottmann9bc8b932004-02-29 15:18:31 +00009765
mlcreech636a9952008-05-05 22:52:56 +00009766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778striplib=
9779old_striplib=
drhf922ca42015-05-14 15:39:18 +00009780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009781$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009782if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9783 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9784 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009786$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009787else
9788# FIXME - insert some real tests, host_os isn't really good enough
9789 case $host_os in
9790 darwin*)
9791 if test -n "$STRIP" ; then
9792 striplib="$STRIP -x"
9793 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009795$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009796 else
drhf922ca42015-05-14 15:39:18 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009798$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009799 fi
a.rottmann84e63352003-03-24 09:42:16 +00009800 ;;
mlcreech636a9952008-05-05 22:52:56 +00009801 *)
drhf922ca42015-05-14 15:39:18 +00009802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009803$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009804 ;;
9805 esac
mlcreech636a9952008-05-05 22:52:56 +00009806fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009807
a.rottmann9bc8b932004-02-29 15:18:31 +00009808
drh71eb93e2001-09-28 01:34:43 +00009809
drh71eb93e2001-09-28 01:34:43 +00009810
a.rottmann84e63352003-03-24 09:42:16 +00009811
drh71eb93e2001-09-28 01:34:43 +00009812
drh71eb93e2001-09-28 01:34:43 +00009813
a.rottmann9bc8b932004-02-29 15:18:31 +00009814
drh71eb93e2001-09-28 01:34:43 +00009815
drh71eb93e2001-09-28 01:34:43 +00009816
drh71eb93e2001-09-28 01:34:43 +00009817
drh71eb93e2001-09-28 01:34:43 +00009818
mlcreech636a9952008-05-05 22:52:56 +00009819 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009821$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009823$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009824
drhf922ca42015-05-14 15:39:18 +00009825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009826$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009827 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009828
mlcreech636a9952008-05-05 22:52:56 +00009829 # On AIX, shared libraries and static libraries use the same namespace, and
9830 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009831 case $host_os in
9832 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009833 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009834 if test -n "$RANLIB"; then
9835 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9836 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009837 fi
9838 ;;
9839
mlcreech636a9952008-05-05 22:52:56 +00009840 aix[4-9]*)
9841 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9842 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009843 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009844 ;;
9845 esac
drhf922ca42015-05-14 15:39:18 +00009846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009847$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
drhf922ca42015-05-14 15:39:18 +00009849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009850$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009851 # Make sure either enable_shared or enable_static is yes.
9852 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009854$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009855
a.rottmann9bc8b932004-02-29 15:18:31 +00009856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
a.rottmann9bc8b932004-02-29 15:18:31 +00009858
vapier7f19c022007-02-17 14:46:31 +00009859fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009860ac_ext=c
9861ac_cpp='$CPP $CPPFLAGS'
9862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864ac_compiler_gnu=$ac_cv_c_compiler_gnu
9865
9866CC="$lt_save_CC"
9867
a.rottmann9bc8b932004-02-29 15:18:31 +00009868
a.rottmann9bc8b932004-02-29 15:18:31 +00009869
9870
a.rottmann9bc8b932004-02-29 15:18:31 +00009871
a.rottmann9bc8b932004-02-29 15:18:31 +00009872
a.rottmann9bc8b932004-02-29 15:18:31 +00009873
a.rottmann9bc8b932004-02-29 15:18:31 +00009874
a.rottmann9bc8b932004-02-29 15:18:31 +00009875
a.rottmann9bc8b932004-02-29 15:18:31 +00009876
vapier7f19c022007-02-17 14:46:31 +00009877
a.rottmann9bc8b932004-02-29 15:18:31 +00009878
9879
drh8b727472009-01-19 18:18:40 +00009880 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009881
vapier7f19c022007-02-17 14:46:31 +00009882
9883
vapier7f19c022007-02-17 14:46:31 +00009884
mlcreech636a9952008-05-05 22:52:56 +00009885# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009886
9887
drh71eb93e2001-09-28 01:34:43 +00009888# Find a good install program. We prefer a C program (faster),
9889# so one script is as good as another. But avoid the broken or
9890# incompatible versions:
9891# SysV /etc/install, /usr/sbin/install
9892# SunOS /usr/etc/install
9893# IRIX /sbin/install
9894# AIX /bin/install
9895# AmigaOS /C/install, which installs bootblocks on floppy discs
9896# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9897# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9898# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009899# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009900# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009901# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009903$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009904if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009905if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009906 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009907else
a.rottmann84e63352003-03-24 09:42:16 +00009908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009913 # Account for people who put trailing slashes in PATH elements.
9914case $as_dir/ in #((
9915 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009917 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009918 /usr/ucb/* ) ;;
9919 *)
9920 # OSF1 and SCO ODT 3.0 have their own names for install.
9921 # Don't use installbsd from OSF since it installs stuff as root
9922 # by default.
9923 for ac_prog in ginstall scoinst install; do
9924 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009925 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009926 if test $ac_prog = install &&
9927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9928 # AIX install. It has an incompatible calling convention.
9929 :
9930 elif test $ac_prog = install &&
9931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9932 # program-specific install script used by HP pwplus--don't use.
9933 :
9934 else
drh8b727472009-01-19 18:18:40 +00009935 rm -rf conftest.one conftest.two conftest.dir
9936 echo one > conftest.one
9937 echo two > conftest.two
9938 mkdir conftest.dir
9939 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9940 test -s conftest.one && test -s conftest.two &&
9941 test -s conftest.dir/conftest.one &&
9942 test -s conftest.dir/conftest.two
9943 then
9944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9945 break 3
9946 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009947 fi
9948 fi
drh71eb93e2001-09-28 01:34:43 +00009949 done
a.rottmann84e63352003-03-24 09:42:16 +00009950 done
9951 ;;
9952esac
a.rottmann84e63352003-03-24 09:42:16 +00009953
drhf922ca42015-05-14 15:39:18 +00009954 done
drh8b727472009-01-19 18:18:40 +00009955IFS=$as_save_IFS
9956
9957rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009958
9959fi
9960 if test "${ac_cv_path_install+set}" = set; then
9961 INSTALL=$ac_cv_path_install
9962 else
drh8b727472009-01-19 18:18:40 +00009963 # As a last resort, use the slow shell script. Don't cache a
9964 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009965 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009966 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009967 INSTALL=$ac_install_sh
9968 fi
9969fi
drhf922ca42015-05-14 15:39:18 +00009970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009971$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009972
9973# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9974# It thinks the first close brace ends the variable substitution.
9975test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9976
9977test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9978
9979test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9980
a.rottmann84e63352003-03-24 09:42:16 +00009981
drh75897232000-05-29 14:26:00 +00009982#########
mlcreech636a9952008-05-05 22:52:56 +00009983# Enable large file support (if special flags are necessary)
9984#
drh8b727472009-01-19 18:18:40 +00009985# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009986if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009987 enableval=$enable_largefile;
9988fi
mlcreech636a9952008-05-05 22:52:56 +00009989
9990if test "$enable_largefile" != no; then
9991
drhf922ca42015-05-14 15:39:18 +00009992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009993$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009994if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009995 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009996else
mlcreech636a9952008-05-05 22:52:56 +00009997 ac_cv_sys_largefile_CC=no
9998 if test "$GCC" != yes; then
9999 ac_save_CC=$CC
10000 while :; do
drh8b727472009-01-19 18:18:40 +000010001 # IRIX 6.2 and later do not support large files by default,
10002 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +000010003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010004/* end confdefs.h. */
10005#include <sys/types.h>
10006 /* Check that off_t can represent 2**63 - 1 correctly.
10007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10008 since some C++ compilers masquerading as C compilers
10009 incorrectly reject 9223372036854775807. */
drhfb556712019-03-22 11:38:14 +000010010#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
mlcreech636a9952008-05-05 22:52:56 +000010011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10012 && LARGE_OFF_T % 2147483647 == 1)
10013 ? 1 : -1];
10014int
10015main ()
10016{
10017
10018 ;
10019 return 0;
10020}
10021_ACEOF
drhf922ca42015-05-14 15:39:18 +000010022 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010023 break
mlcreech636a9952008-05-05 22:52:56 +000010024fi
drh8b727472009-01-19 18:18:40 +000010025rm -f core conftest.err conftest.$ac_objext
10026 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010027 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010028 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010029fi
drh8b727472009-01-19 18:18:40 +000010030rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010031 break
10032 done
10033 CC=$ac_save_CC
10034 rm -f conftest.$ac_ext
10035 fi
10036fi
drhf922ca42015-05-14 15:39:18 +000010037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010038$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010039 if test "$ac_cv_sys_largefile_CC" != no; then
10040 CC=$CC$ac_cv_sys_largefile_CC
10041 fi
10042
drhf922ca42015-05-14 15:39:18 +000010043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010044$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010045if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010046 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010047else
10048 while :; do
drhf922ca42015-05-14 15:39:18 +000010049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010050/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010051#include <sys/types.h>
10052 /* Check that off_t can represent 2**63 - 1 correctly.
10053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10054 since some C++ compilers masquerading as C compilers
10055 incorrectly reject 9223372036854775807. */
drhfb556712019-03-22 11:38:14 +000010056#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
mlcreech636a9952008-05-05 22:52:56 +000010057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10058 && LARGE_OFF_T % 2147483647 == 1)
10059 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010060int
10061main ()
10062{
mlcreech636a9952008-05-05 22:52:56 +000010063
mlcreechb87057f2008-03-06 07:19:20 +000010064 ;
10065 return 0;
10066}
10067_ACEOF
drhf922ca42015-05-14 15:39:18 +000010068if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010069 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010070fi
drh8b727472009-01-19 18:18:40 +000010071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010073/* end confdefs.h. */
10074#define _FILE_OFFSET_BITS 64
10075#include <sys/types.h>
10076 /* Check that off_t can represent 2**63 - 1 correctly.
10077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10078 since some C++ compilers masquerading as C compilers
10079 incorrectly reject 9223372036854775807. */
drhfb556712019-03-22 11:38:14 +000010080#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
mlcreech636a9952008-05-05 22:52:56 +000010081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10082 && LARGE_OFF_T % 2147483647 == 1)
10083 ? 1 : -1];
10084int
10085main ()
10086{
10087
10088 ;
10089 return 0;
10090}
10091_ACEOF
drhf922ca42015-05-14 15:39:18 +000010092if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010093 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010094fi
drh8b727472009-01-19 18:18:40 +000010095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010097 break
10098done
10099fi
drhf922ca42015-05-14 15:39:18 +000010100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010101$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10102case $ac_cv_sys_file_offset_bits in #(
10103 no | unknown) ;;
10104 *)
mlcreech636a9952008-05-05 22:52:56 +000010105cat >>confdefs.h <<_ACEOF
10106#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10107_ACEOF
drh8b727472009-01-19 18:18:40 +000010108;;
10109esac
10110rm -rf conftest*
10111 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010113$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010114if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010115 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010116else
10117 while :; do
drhf922ca42015-05-14 15:39:18 +000010118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010119/* end confdefs.h. */
10120#include <sys/types.h>
10121 /* Check that off_t can represent 2**63 - 1 correctly.
10122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10123 since some C++ compilers masquerading as C compilers
10124 incorrectly reject 9223372036854775807. */
drhfb556712019-03-22 11:38:14 +000010125#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
mlcreech636a9952008-05-05 22:52:56 +000010126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10127 && LARGE_OFF_T % 2147483647 == 1)
10128 ? 1 : -1];
10129int
10130main ()
10131{
10132
10133 ;
10134 return 0;
10135}
10136_ACEOF
drhf922ca42015-05-14 15:39:18 +000010137if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010138 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010139fi
drh8b727472009-01-19 18:18:40 +000010140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010142/* end confdefs.h. */
10143#define _LARGE_FILES 1
10144#include <sys/types.h>
10145 /* Check that off_t can represent 2**63 - 1 correctly.
10146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10147 since some C++ compilers masquerading as C compilers
10148 incorrectly reject 9223372036854775807. */
drhfb556712019-03-22 11:38:14 +000010149#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
mlcreech636a9952008-05-05 22:52:56 +000010150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10151 && LARGE_OFF_T % 2147483647 == 1)
10152 ? 1 : -1];
10153int
10154main ()
10155{
10156
10157 ;
10158 return 0;
10159}
10160_ACEOF
drhf922ca42015-05-14 15:39:18 +000010161if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010162 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010163fi
drh8b727472009-01-19 18:18:40 +000010164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010166 break
10167done
10168fi
drhf922ca42015-05-14 15:39:18 +000010169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010170$as_echo "$ac_cv_sys_large_files" >&6; }
10171case $ac_cv_sys_large_files in #(
10172 no | unknown) ;;
10173 *)
mlcreech636a9952008-05-05 22:52:56 +000010174cat >>confdefs.h <<_ACEOF
10175#define _LARGE_FILES $ac_cv_sys_large_files
10176_ACEOF
drh8b727472009-01-19 18:18:40 +000010177;;
10178esac
10179rm -rf conftest*
10180 fi
drhf922ca42015-05-14 15:39:18 +000010181
10182
mlcreech636a9952008-05-05 22:52:56 +000010183fi
10184
10185
10186#########
10187# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010188ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10189if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010190
10191cat >>confdefs.h <<_ACEOF
10192#define HAVE_INT8_T 1
10193_ACEOF
10194
10195
10196fi
drhf922ca42015-05-14 15:39:18 +000010197ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10198if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010199
10200cat >>confdefs.h <<_ACEOF
10201#define HAVE_INT16_T 1
10202_ACEOF
10203
10204
10205fi
drhf922ca42015-05-14 15:39:18 +000010206ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10207if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010208
10209cat >>confdefs.h <<_ACEOF
10210#define HAVE_INT32_T 1
10211_ACEOF
10212
10213
10214fi
drhf922ca42015-05-14 15:39:18 +000010215ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10216if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010217
10218cat >>confdefs.h <<_ACEOF
10219#define HAVE_INT64_T 1
10220_ACEOF
10221
10222
10223fi
drhf922ca42015-05-14 15:39:18 +000010224ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10225if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010226
10227cat >>confdefs.h <<_ACEOF
10228#define HAVE_INTPTR_T 1
10229_ACEOF
10230
10231
10232fi
drhf922ca42015-05-14 15:39:18 +000010233ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10234if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010235
10236cat >>confdefs.h <<_ACEOF
10237#define HAVE_UINT8_T 1
10238_ACEOF
10239
10240
10241fi
drhf922ca42015-05-14 15:39:18 +000010242ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10243if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010244
10245cat >>confdefs.h <<_ACEOF
10246#define HAVE_UINT16_T 1
10247_ACEOF
10248
10249
10250fi
drhf922ca42015-05-14 15:39:18 +000010251ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10252if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010253
10254cat >>confdefs.h <<_ACEOF
10255#define HAVE_UINT32_T 1
10256_ACEOF
10257
10258
10259fi
drhf922ca42015-05-14 15:39:18 +000010260ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10261if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010262
10263cat >>confdefs.h <<_ACEOF
10264#define HAVE_UINT64_T 1
10265_ACEOF
10266
10267
10268fi
drhf922ca42015-05-14 15:39:18 +000010269ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10270if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010271
10272cat >>confdefs.h <<_ACEOF
10273#define HAVE_UINTPTR_T 1
10274_ACEOF
10275
10276
10277fi
mlcreechb87057f2008-03-06 07:19:20 +000010278
10279
10280#########
10281# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010282for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010283do :
10284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10285ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010287 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010289_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010290
mlcreechb87057f2008-03-06 07:19:20 +000010291fi
10292
10293done
10294
10295
10296#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010297# Figure out whether or not we have these functions
10298#
drhe32a2562016-03-04 02:38:00 +000010299for 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 +000010300do :
10301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10303if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010304 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010306_ACEOF
10307
10308fi
10309done
10310
10311
mlcreechab1c47b2008-03-09 02:51:10 +000010312#########
mlcreechf3868112008-03-11 18:03:30 +000010313# By default, we use the amalgamation (this may be changed below...)
10314#
10315USE_AMALGAMATION=1
10316
10317#########
mlcreechab1c47b2008-03-09 02:51:10 +000010318# See whether we can run specific tclsh versions known to work well;
10319# if not, then we fall back to plain tclsh.
10320# TODO: try other versions before falling back?
10321#
drh0b11bcb2017-09-22 00:24:44 +000010322for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010323do
10324 # Extract the first word of "$ac_prog", so it can be a program name with args.
10325set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010327$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010328if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010329 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010330else
10331 if test -n "$TCLSH_CMD"; then
10332 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10333else
10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010341 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010343 break 2
10344 fi
10345done
drhf922ca42015-05-14 15:39:18 +000010346 done
drh8b727472009-01-19 18:18:40 +000010347IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010348
10349fi
10350fi
10351TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10352if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010354$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010355else
drhf922ca42015-05-14 15:39:18 +000010356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010357$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010358fi
10359
drh8b727472009-01-19 18:18:40 +000010360
mlcreechab1c47b2008-03-09 02:51:10 +000010361 test -n "$TCLSH_CMD" && break
10362done
mlcreechf3868112008-03-11 18:03:30 +000010363test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010364
mlcreechf3868112008-03-11 18:03:30 +000010365if test "$TCLSH_CMD" = "none"; then
10366 # If we can't find a local tclsh, then building the amalgamation will fail.
10367 # We act as though --disable-amalgamation has been used.
10368 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10369 USE_AMALGAMATION=0
10370 TCLSH_CMD="tclsh"
10371fi
mlcreechab1c47b2008-03-09 02:51:10 +000010372
10373
mlcreech5b0a9eb2008-03-09 01:38:09 +000010374
vapier6acb2cf2009-01-28 04:46:28 +000010375if test "x${TCLLIBDIR+set}" != "xset" ; then
10376 TCLLIBDIR='$(libdir)'
10377 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10378 TCLLIBDIR=$i
10379 break
10380 done
10381 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10382fi
10383
10384
mlcreech5b0a9eb2008-03-09 01:38:09 +000010385#########
drh75897232000-05-29 14:26:00 +000010386# Set up an appropriate program prefix
10387#
10388if test "$program_prefix" = "NONE"; then
10389 program_prefix=""
10390fi
10391
a.rottmann84e63352003-03-24 09:42:16 +000010392
drh4b2266a2004-11-27 15:52:16 +000010393VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010394{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010395$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010396
10397RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010398{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010399$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010400
vapier6acb2cf2009-01-28 04:46:28 +000010401VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010402 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010403 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010404{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010405$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010406
drh26d0e2a2005-07-06 13:51:27 +000010407
drh75897232000-05-29 14:26:00 +000010408#########
drh75897232000-05-29 14:26:00 +000010409# Locate a compiler for the build machine. This compiler should
10410# generate command-line programs that run on the build machine.
10411#
vapier7f19c022007-02-17 14:46:31 +000010412if test x"$cross_compiling" = xno; then
10413 BUILD_CC=$CC
10414 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010415else
vapier7f19c022007-02-17 14:46:31 +000010416 if test "${BUILD_CC+set}" != set; then
10417 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010418do
10419 # Extract the first word of "$ac_prog", so it can be a program name with args.
10420set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010422$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010423if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010424 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010425else
vapier7f19c022007-02-17 14:46:31 +000010426 if test -n "$BUILD_CC"; then
10427 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010428else
a.rottmann84e63352003-03-24 09:42:16 +000010429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010436 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010438 break 2
10439 fi
10440done
drhf922ca42015-05-14 15:39:18 +000010441 done
drh8b727472009-01-19 18:18:40 +000010442IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010443
drh71eb93e2001-09-28 01:34:43 +000010444fi
10445fi
vapier7f19c022007-02-17 14:46:31 +000010446BUILD_CC=$ac_cv_prog_BUILD_CC
10447if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010449$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010450else
drhf922ca42015-05-14 15:39:18 +000010451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010452$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010453fi
drh75897232000-05-29 14:26:00 +000010454
drh8b727472009-01-19 18:18:40 +000010455
vapier7f19c022007-02-17 14:46:31 +000010456 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010457done
drh75897232000-05-29 14:26:00 +000010458
vapier7f19c022007-02-17 14:46:31 +000010459 fi
10460 if test "${BUILD_CFLAGS+set}" != set; then
10461 BUILD_CFLAGS="-g"
10462 fi
drh71eb93e2001-09-28 01:34:43 +000010463fi
10464
a.rottmann84e63352003-03-24 09:42:16 +000010465
drh297ecf12001-04-05 15:57:13 +000010466##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010467# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010468#
drh8b727472009-01-19 18:18:40 +000010469# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010470if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010471 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010472fi
10473
drhf922ca42015-05-14 15:39:18 +000010474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010475$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010476if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010477 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010479$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010480else
drh5a3032b2007-09-03 16:12:09 +000010481 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010483$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010484fi
10485
a.rottmann964dbb12004-02-26 19:47:42 +000010486
drh5a3032b2007-09-03 16:12:09 +000010487if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10489$as_echo_n "checking for library containing pthread_create... " >&6; }
10490if ${ac_cv_search_pthread_create+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492else
10493 ac_func_search_save_LIBS=$LIBS
10494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495/* end confdefs.h. */
10496
10497/* Override any GCC internal prototype to avoid an error.
10498 Use char because int might match the return type of a GCC
10499 builtin and then its argument prototype would still apply. */
10500#ifdef __cplusplus
10501extern "C"
10502#endif
10503char pthread_create ();
10504int
10505main ()
10506{
10507return pthread_create ();
10508 ;
10509 return 0;
10510}
10511_ACEOF
10512for ac_lib in '' pthread; do
10513 if test -z "$ac_lib"; then
10514 ac_res="none required"
10515 else
10516 ac_res=-l$ac_lib
10517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10518 fi
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 ac_cv_search_pthread_create=$ac_res
10521fi
10522rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext
10524 if ${ac_cv_search_pthread_create+:} false; then :
10525 break
10526fi
10527done
10528if ${ac_cv_search_pthread_create+:} false; then :
10529
10530else
10531 ac_cv_search_pthread_create=no
10532fi
10533rm conftest.$ac_ext
10534LIBS=$ac_func_search_save_LIBS
10535fi
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10537$as_echo "$ac_cv_search_pthread_create" >&6; }
10538ac_res=$ac_cv_search_pthread_create
10539if test "$ac_res" != no; then :
10540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10541
10542fi
10543
drh13c808a2016-01-13 21:23:48 +000010544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10545$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10546if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010547 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010548else
mlcreechc658b0f2008-03-09 02:20:11 +000010549 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010551/* end confdefs.h. */
10552
drh8b727472009-01-19 18:18:40 +000010553/* Override any GCC internal prototype to avoid an error.
10554 Use char because int might match the return type of a GCC
10555 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010556#ifdef __cplusplus
10557extern "C"
10558#endif
drh13c808a2016-01-13 21:23:48 +000010559char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010560int
10561main ()
10562{
drh13c808a2016-01-13 21:23:48 +000010563return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010564 ;
10565 return 0;
10566}
10567_ACEOF
drh8b727472009-01-19 18:18:40 +000010568for ac_lib in '' pthread; do
10569 if test -z "$ac_lib"; then
10570 ac_res="none required"
10571 else
10572 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010574 fi
drhf922ca42015-05-14 15:39:18 +000010575 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010576 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010577fi
drhf922ca42015-05-14 15:39:18 +000010578rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010580 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010581 break
drh866108f2008-05-13 00:57:21 +000010582fi
drh8b727472009-01-19 18:18:40 +000010583done
drh13c808a2016-01-13 21:23:48 +000010584if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010585
drh8b727472009-01-19 18:18:40 +000010586else
drh13c808a2016-01-13 21:23:48 +000010587 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010588fi
10589rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010590LIBS=$ac_func_search_save_LIBS
10591fi
drh13c808a2016-01-13 21:23:48 +000010592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10593$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10594ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010595if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010597
dougcurrie65623c72004-09-20 14:57:23 +000010598fi
10599
mlcreechc658b0f2008-03-09 02:20:11 +000010600fi
dougcurrie65623c72004-09-20 14:57:23 +000010601
xdong28f79f72003-09-23 00:35:21 +000010602##########
10603# Do we want to support release
10604#
drh8b727472009-01-19 18:18:40 +000010605# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010606if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010607 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010608else
10609 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010610fi
10611
drhf922ca42015-05-14 15:39:18 +000010612{ $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 +000010613$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010614if test "$enable_releasemode" = "no"; then
10615 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010617$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010618else
drh0b47d342007-11-27 14:50:06 +000010619 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010621$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010622fi
paulb0208cc2003-04-13 18:26:49 +000010623
a.rottmann964dbb12004-02-26 19:47:42 +000010624
paulb0208cc2003-04-13 18:26:49 +000010625##########
10626# Do we want temporary databases in memory
10627#
drh8b727472009-01-19 18:18:40 +000010628# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010629if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010630 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010631else
drh54414bb2005-10-10 00:05:50 +000010632 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010633fi
10634
drhf922ca42015-05-14 15:39:18 +000010635{ $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 +000010636$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010637case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010638 never )
paul2dc96f92003-04-20 11:46:34 +000010639 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010641$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010642 ;;
10643 no )
paul2dc96f92003-04-20 11:46:34 +000010644 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010646$as_echo "no" >&6; }
10647 ;;
10648 yes )
10649 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010651$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010652 ;;
10653 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010654 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010656$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010657 ;;
paulb0208cc2003-04-13 18:26:49 +000010658 * )
drh54414bb2005-10-10 00:05:50 +000010659 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010661$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010662 ;;
10663esac
10664
10665
10666
drh75897232000-05-29 14:26:00 +000010667###########
10668# Lots of things are different if we are compiling for Windows using
10669# the CYGWIN environment. So check for that special case and handle
10670# things accordingly.
10671#
drhf922ca42015-05-14 15:39:18 +000010672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010673$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010674if test "$config_BUILD_EXEEXT" = ".exe"; then
10675 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010677$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010678else
drhf922ca42015-05-14 15:39:18 +000010679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010680$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010681fi
10682if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010683
10684case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010685 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010686 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010687esac
drh75897232000-05-29 14:26:00 +000010688
drh75897232000-05-29 14:26:00 +000010689fi
10690if test "$CYGWIN" = "yes"; then
10691 BUILD_EXEEXT=.exe
10692else
dougcurrie6194a5f2003-12-19 20:09:51 +000010693 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010694fi
vapier7f19c022007-02-17 14:46:31 +000010695if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010696 TARGET_EXEEXT=$BUILD_EXEEXT
10697else
10698 TARGET_EXEEXT=$config_TARGET_EXEEXT
10699fi
10700if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010701 SQLITE_OS_UNIX=0
10702 SQLITE_OS_WIN=1
10703 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010704else
danielk197729bafea2008-06-26 10:41:19 +000010705 SQLITE_OS_UNIX=1
10706 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010707 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010708fi
drh75897232000-05-29 14:26:00 +000010709
a.rottmann84e63352003-03-24 09:42:16 +000010710
10711
10712
10713
10714
drh75897232000-05-29 14:26:00 +000010715##########
drh7b5717e2004-11-25 13:50:01 +000010716# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010717#
drh7b5717e2004-11-25 13:50:01 +000010718# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10719# macros in the in the tcl.m4 file of the standard TCL distribution.
10720# Those macros could not be used directly since we have to make some
10721# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010722#
drh8b727472009-01-19 18:18:40 +000010723# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010724if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010725 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010726else
drh7b5717e2004-11-25 13:50:01 +000010727 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010728fi
10729
drh7b5717e2004-11-25 13:50:01 +000010730if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010731
drh8b727472009-01-19 18:18:40 +000010732# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010733if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010734 withval=$with_tcl; with_tclconfig=${withval}
10735fi
10736
drhf922ca42015-05-14 15:39:18 +000010737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010738$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010739 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010740 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010741else
a.rottmann84e63352003-03-24 09:42:16 +000010742
drh7b5717e2004-11-25 13:50:01 +000010743 # First check to see if --with-tcl was specified.
10744 if test x"${with_tclconfig}" != x ; then
10745 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10746 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10747 else
drhf922ca42015-05-14 15:39:18 +000010748 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010749 fi
10750 fi
vapier6acb2cf2009-01-28 04:46:28 +000010751
10752 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010753 if test x"${ac_cv_c_tclconfig}" = x ; then
10754 if test x"$cross_compiling" = xno; then
10755 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10756 do
10757 if test -f "$i/tclConfig.sh" ; then
10758 ac_cv_c_tclconfig="$i"
10759 break
10760 fi
10761 done
10762 fi
vapier6acb2cf2009-01-28 04:46:28 +000010763 fi
10764
drhf960a642015-05-30 22:57:49 +000010765 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10766 # So try again after applying corrections.
10767 if test x"${ac_cv_c_tclconfig}" = x ; then
10768 if test x"$cross_compiling" = xno; then
10769 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10770 do
10771 if test -f "$i/tclConfig.sh" ; then
10772 ac_cv_c_tclconfig="$i"
10773 break
10774 fi
10775 done
10776 fi
10777 fi
10778
drh68314742016-05-23 00:10:58 +000010779 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10780 # in a strange place.
10781 if test x"${ac_cv_c_tclconfig}" = x ; then
10782 if test x"$cross_compiling" = xno; then
10783 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10784 do
10785 if test -f "$i/tclConfig.sh" ; then
10786 ac_cv_c_tclconfig="$i"
10787 break
10788 fi
10789 done
10790 fi
10791 fi
10792
drh7b5717e2004-11-25 13:50:01 +000010793 # then check for a private Tcl installation
10794 if test x"${ac_cv_c_tclconfig}" = x ; then
10795 for i in \
10796 ../tcl \
10797 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10798 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10799 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10800 ../../tcl \
10801 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10802 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10803 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10804 ../../../tcl \
10805 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10806 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10807 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10808 do
10809 if test -f "$i/unix/tclConfig.sh" ; then
10810 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10811 break
10812 fi
10813 done
10814 fi
10815
10816 # check in a few common install locations
10817 if test x"${ac_cv_c_tclconfig}" = x ; then
10818 for i in \
10819 `ls -d ${libdir} 2>/dev/null` \
10820 `ls -d /usr/local/lib 2>/dev/null` \
10821 `ls -d /usr/contrib/lib 2>/dev/null` \
10822 `ls -d /usr/lib 2>/dev/null`
10823 do
10824 if test -f "$i/tclConfig.sh" ; then
10825 ac_cv_c_tclconfig=`(cd $i; pwd)`
10826 break
10827 fi
10828 done
10829 fi
10830
10831 # check in a few other private locations
10832 if test x"${ac_cv_c_tclconfig}" = x ; then
10833 for i in \
10834 ${srcdir}/../tcl \
10835 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10836 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10837 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10838 do
10839 if test -f "$i/unix/tclConfig.sh" ; then
10840 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10841 break
10842 fi
10843 done
10844 fi
10845
drh75897232000-05-29 14:26:00 +000010846fi
10847
drh7b5717e2004-11-25 13:50:01 +000010848
10849 if test x"${ac_cv_c_tclconfig}" = x ; then
10850 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010852$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010854$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010856$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010857 else
10858 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010860$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010861
drhf922ca42015-05-14 15:39:18 +000010862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010863$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010864 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010866$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010867 . $TCL_BIN_DIR/tclConfig.sh
10868 else
drhf922ca42015-05-14 15:39:18 +000010869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010870$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010871 fi
drh7b5717e2004-11-25 13:50:01 +000010872
10873 #
10874 # If the TCL_BIN_DIR is the build directory (not the install directory),
10875 # then set the common variable name to the value of the build variables.
10876 # For example, the variable TCL_LIB_SPEC will be set to the value
10877 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10878 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10879 # installed and uninstalled version of Tcl.
10880 #
10881
mlcreechab1c47b2008-03-09 02:51:10 +000010882 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010883 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10884 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10885 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10886 fi
10887
10888 #
10889 # eval is required to do the TCL_DBGX substitution
10890 #
10891
10892 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10893 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10894 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10895
10896 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10897 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10898 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
drhd881ce82015-03-31 17:01:52 +000010912
drh7b5717e2004-11-25 13:50:01 +000010913 fi
drh75897232000-05-29 14:26:00 +000010914fi
drh7b5717e2004-11-25 13:50:01 +000010915if test "${use_tcl}" = "no" ; then
10916 HAVE_TCL=""
10917else
10918 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010919fi
drh75897232000-05-29 14:26:00 +000010920
a.rottmann84e63352003-03-24 09:42:16 +000010921
drh75897232000-05-29 14:26:00 +000010922##########
10923# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010924# that use "readline()" library.
10925#
vapier7f19c022007-02-17 14:46:31 +000010926TARGET_READLINE_LIBS=""
10927TARGET_READLINE_INC=""
10928TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010929TARGET_HAVE_EDITLINE=0
10930# Check whether --enable-editline was given.
10931if test "${enable_editline+set}" = set; then :
10932 enableval=$enable_editline; with_editline=$enableval
10933else
10934 with_editline=auto
10935fi
10936
drh8b727472009-01-19 18:18:40 +000010937# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010938if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010939 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010940else
vapier7f19c022007-02-17 14:46:31 +000010941 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010942fi
10943
vapier7f19c022007-02-17 14:46:31 +000010944
drhe44b8352015-10-30 14:25:57 +000010945if test x"$with_editline" != xno; then
10946 sLIBS=$LIBS
10947 LIBS=""
10948 TARGET_HAVE_EDITLINE=1
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10950$as_echo_n "checking for library containing readline... " >&6; }
10951if ${ac_cv_search_readline+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953else
10954 ac_func_search_save_LIBS=$LIBS
10955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h. */
10957
10958/* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10961#ifdef __cplusplus
10962extern "C"
10963#endif
10964char readline ();
10965int
10966main ()
10967{
10968return readline ();
10969 ;
10970 return 0;
10971}
10972_ACEOF
10973for ac_lib in '' edit; do
10974 if test -z "$ac_lib"; then
10975 ac_res="none required"
10976 else
10977 ac_res=-l$ac_lib
10978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10979 fi
10980 if ac_fn_c_try_link "$LINENO"; then :
10981 ac_cv_search_readline=$ac_res
10982fi
10983rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext
10985 if ${ac_cv_search_readline+:} false; then :
10986 break
10987fi
10988done
10989if ${ac_cv_search_readline+:} false; then :
10990
10991else
10992 ac_cv_search_readline=no
10993fi
10994rm conftest.$ac_ext
10995LIBS=$ac_func_search_save_LIBS
10996fi
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10998$as_echo "$ac_cv_search_readline" >&6; }
10999ac_res=$ac_cv_search_readline
11000if test "$ac_res" != no; then :
11001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11002 with_readline=no
11003else
11004 TARGET_HAVE_EDITLINE=0
11005fi
11006
11007 TARGET_READLINE_LIBS=$LIBS
11008 LIBS=$sLIBS
11009fi
vapier7f19c022007-02-17 14:46:31 +000011010if test x"$with_readline" != xno; then
11011 found="yes"
11012
11013
drh8b727472009-01-19 18:18:40 +000011014# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011015if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011016 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011017else
11018 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011019fi
11020
vapier7f19c022007-02-17 14:46:31 +000011021 if test "x$with_readline_lib" = xauto; then
11022 save_LIBS="$LIBS"
11023 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011025$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011026if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011027 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011028else
drh71eb93e2001-09-28 01:34:43 +000011029 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011031/* end confdefs.h. */
11032
drh8b727472009-01-19 18:18:40 +000011033/* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011036#ifdef __cplusplus
11037extern "C"
11038#endif
paul38372372003-04-22 08:04:49 +000011039char tgetent ();
11040int
11041main ()
11042{
drh8b727472009-01-19 18:18:40 +000011043return tgetent ();
paul38372372003-04-22 08:04:49 +000011044 ;
11045 return 0;
11046}
11047_ACEOF
drh8b727472009-01-19 18:18:40 +000011048for ac_lib in '' readline ncurses curses termcap; do
11049 if test -z "$ac_lib"; then
11050 ac_res="none required"
11051 else
11052 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011054 fi
drhf922ca42015-05-14 15:39:18 +000011055 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011056 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011057fi
drhf922ca42015-05-14 15:39:18 +000011058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext
11060 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011061 break
drh866108f2008-05-13 00:57:21 +000011062fi
drh8b727472009-01-19 18:18:40 +000011063done
drhf922ca42015-05-14 15:39:18 +000011064if ${ac_cv_search_tgetent+:} false; then :
11065
drh8b727472009-01-19 18:18:40 +000011066else
11067 ac_cv_search_tgetent=no
11068fi
11069rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011070LIBS=$ac_func_search_save_LIBS
11071fi
drhf922ca42015-05-14 15:39:18 +000011072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011073$as_echo "$ac_cv_search_tgetent" >&6; }
11074ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011075if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011077 term_LIBS="$LIBS"
11078else
11079 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011080fi
11081
drhf922ca42015-05-14 15:39:18 +000011082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011083$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011084if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011085 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011086else
11087 ac_check_lib_save_LIBS=$LIBS
11088LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011090/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011091
drh8b727472009-01-19 18:18:40 +000011092/* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011095#ifdef __cplusplus
11096extern "C"
11097#endif
drh71eb93e2001-09-28 01:34:43 +000011098char readline ();
11099int
11100main ()
11101{
drh8b727472009-01-19 18:18:40 +000011102return readline ();
drh71eb93e2001-09-28 01:34:43 +000011103 ;
11104 return 0;
11105}
11106_ACEOF
drhf922ca42015-05-14 15:39:18 +000011107if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011108 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011109else
drhf922ca42015-05-14 15:39:18 +000011110 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011111fi
drhf922ca42015-05-14 15:39:18 +000011112rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011114LIBS=$ac_check_lib_save_LIBS
11115fi
drhf922ca42015-05-14 15:39:18 +000011116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011117$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011118if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011119 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011120else
vapier7f19c022007-02-17 14:46:31 +000011121 found="no"
11122fi
drhf1878b42006-01-23 18:06:52 +000011123
vapier7f19c022007-02-17 14:46:31 +000011124 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11125 LIBS="$save_LIBS"
11126 else
11127 TARGET_READLINE_LIBS="$with_readline_lib"
11128 fi
11129
11130
drh8b727472009-01-19 18:18:40 +000011131# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011132if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011133 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011134else
vapier7f19c022007-02-17 14:46:31 +000011135 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011136fi
11137
vapier7f19c022007-02-17 14:46:31 +000011138 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011139 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11140if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011141 found="yes"
11142else
drh75897232000-05-29 14:26:00 +000011143
vapier7f19c022007-02-17 14:46:31 +000011144 found="no"
11145 if test "$cross_compiling" != yes; then
11146 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11147 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011148 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011150$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011151if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011152 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011153else
11154 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011155 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011156if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011157 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011158else
drh71eb93e2001-09-28 01:34:43 +000011159 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011160fi
11161fi
drhf922ca42015-05-14 15:39:18 +000011162eval ac_res=\$$as_ac_File
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011164$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011165if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011166 found=yes
drh75897232000-05-29 14:26:00 +000011167fi
11168
vapier7f19c022007-02-17 14:46:31 +000011169 if test "$found" = "yes"; then
11170 TARGET_READLINE_INC="-I$dir/$subdir"
11171 break
11172 fi
11173 done
11174 test "$found" = "yes" && break
11175 done
11176 fi
11177
11178fi
11179
11180
11181 else
11182 TARGET_READLINE_INC="$with_readline_inc"
11183 fi
11184
11185 if test x"$found" = xno; then
11186 TARGET_READLINE_LIBS=""
11187 TARGET_READLINE_INC=""
11188 TARGET_HAVE_READLINE=0
11189 else
11190 TARGET_HAVE_READLINE=1
11191 fi
11192fi
11193
11194
11195
11196
11197
drhe44b8352015-10-30 14:25:57 +000011198
vapier7f19c022007-02-17 14:46:31 +000011199##########
11200# Figure out what C libraries are required to compile programs
11201# that use "fdatasync()" function.
11202#
drhf922ca42015-05-14 15:39:18 +000011203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011204$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011205if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011206 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011207else
vapier7f19c022007-02-17 14:46:31 +000011208 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011210/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011211
drh8b727472009-01-19 18:18:40 +000011212/* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011215#ifdef __cplusplus
11216extern "C"
11217#endif
11218char fdatasync ();
11219int
11220main ()
11221{
drh8b727472009-01-19 18:18:40 +000011222return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011223 ;
11224 return 0;
11225}
11226_ACEOF
drh8b727472009-01-19 18:18:40 +000011227for ac_lib in '' rt; do
11228 if test -z "$ac_lib"; then
11229 ac_res="none required"
11230 else
11231 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011233 fi
drhf922ca42015-05-14 15:39:18 +000011234 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011235 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011236fi
drhf922ca42015-05-14 15:39:18 +000011237rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext
11239 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011240 break
drh866108f2008-05-13 00:57:21 +000011241fi
drh8b727472009-01-19 18:18:40 +000011242done
drhf922ca42015-05-14 15:39:18 +000011243if ${ac_cv_search_fdatasync+:} false; then :
11244
drh8b727472009-01-19 18:18:40 +000011245else
11246 ac_cv_search_fdatasync=no
11247fi
11248rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011249LIBS=$ac_func_search_save_LIBS
11250fi
drhf922ca42015-05-14 15:39:18 +000011251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011252$as_echo "$ac_cv_search_fdatasync" >&6; }
11253ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011254if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011256
vapier7f19c022007-02-17 14:46:31 +000011257fi
11258
a.rottmann84e63352003-03-24 09:42:16 +000011259
drh75897232000-05-29 14:26:00 +000011260#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011261# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011262# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011263if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011264 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011265fi
11266
drh8fa622d2018-06-11 19:47:14 +000011267if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011268 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011269else
11270 TARGET_DEBUG="-DNDEBUG"
11271fi
11272
11273
11274#########
mlcreech94984912008-03-04 19:03:08 +000011275# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011276# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011277if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011278 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011279fi
11280
drh8fa622d2018-06-11 19:47:14 +000011281if test "${enable_amalgamation}" == "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011282 USE_AMALGAMATION=0
11283fi
11284
11285
11286#########
drh56c93112017-11-24 16:55:48 +000011287# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11288for ac_header in zlib.h
11289do :
11290 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11291if test "x$ac_cv_header_zlib_h" = xyes; then :
11292 cat >>confdefs.h <<_ACEOF
11293#define HAVE_ZLIB_H 1
11294_ACEOF
11295
11296fi
11297
11298done
11299
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11301$as_echo_n "checking for library containing deflate... " >&6; }
11302if ${ac_cv_search_deflate+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304else
11305 ac_func_search_save_LIBS=$LIBS
11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307/* end confdefs.h. */
11308
11309/* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312#ifdef __cplusplus
11313extern "C"
11314#endif
11315char deflate ();
11316int
11317main ()
11318{
11319return deflate ();
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324for ac_lib in '' z; do
11325 if test -z "$ac_lib"; then
11326 ac_res="none required"
11327 else
11328 ac_res=-l$ac_lib
11329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11330 fi
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_search_deflate=$ac_res
11333fi
11334rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext
11336 if ${ac_cv_search_deflate+:} false; then :
11337 break
11338fi
11339done
11340if ${ac_cv_search_deflate+:} false; then :
11341
11342else
11343 ac_cv_search_deflate=no
11344fi
11345rm conftest.$ac_ext
11346LIBS=$ac_func_search_save_LIBS
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11349$as_echo "$ac_cv_search_deflate" >&6; }
11350ac_res=$ac_cv_search_deflate
11351if test "$ac_res" != no; then :
11352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11353 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11354else
11355 HAVE_ZLIB=""
11356fi
11357
11358
11359
11360#########
mlcreecha4edab02008-03-06 04:14:17 +000011361# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011362# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011363if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011364 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011365else
drh8fa622d2018-06-11 19:47:14 +000011366 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011367fi
11368
drh8fa622d2018-06-11 19:47:14 +000011369if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011370 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011372$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011373if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011374 $as_echo_n "(cached) " >&6
11375else
11376 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011378/* end confdefs.h. */
11379
11380/* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383#ifdef __cplusplus
11384extern "C"
11385#endif
11386char dlopen ();
11387int
11388main ()
11389{
11390return dlopen ();
11391 ;
11392 return 0;
11393}
11394_ACEOF
11395for ac_lib in '' dl; do
11396 if test -z "$ac_lib"; then
11397 ac_res="none required"
11398 else
11399 ac_res=-l$ac_lib
11400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11401 fi
drhf922ca42015-05-14 15:39:18 +000011402 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011403 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011404fi
drhf922ca42015-05-14 15:39:18 +000011405rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext
11407 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011408 break
11409fi
11410done
drhf922ca42015-05-14 15:39:18 +000011411if ${ac_cv_search_dlopen+:} false; then :
11412
drhdbe4b882011-06-20 18:00:17 +000011413else
11414 ac_cv_search_dlopen=no
11415fi
11416rm conftest.$ac_ext
11417LIBS=$ac_func_search_save_LIBS
11418fi
drhf922ca42015-05-14 15:39:18 +000011419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011420$as_echo "$ac_cv_search_dlopen" >&6; }
11421ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011422if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11424
11425fi
11426
mlcreecha4edab02008-03-06 04:14:17 +000011427else
shanefbedede2008-07-22 05:05:01 +000011428 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011429fi
11430
drhc530b9c2016-07-25 11:27:22 +000011431##########
11432# Do we want to support memsys3 and/or memsys5
11433#
drhc530b9c2016-07-25 11:27:22 +000011434# Check whether --enable-memsys5 was given.
11435if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011436 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011437fi
11438
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11440$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011441if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011442 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444$as_echo "yes" >&6; }
11445else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447$as_echo "no" >&6; }
11448fi
drh5d513ba2016-07-25 11:57:21 +000011449# Check whether --enable-memsys3 was given.
11450if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011451 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011452fi
11453
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11455$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11456if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011457 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459$as_echo "yes" >&6; }
11460else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
drhc530b9c2016-07-25 11:27:22 +000011464
mlcreechaac7b932008-04-01 02:45:22 +000011465#########
drhce1d9f52015-10-09 12:48:33 +000011466# See whether we should enable Full Text Search extensions
11467# Check whether --enable-fts3 was given.
11468if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011469 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011470fi
11471
11472if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011473 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011474fi
11475# Check whether --enable-fts4 was given.
11476if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011477 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011478fi
11479
11480if test "${enable_fts4}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011481 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11483$as_echo_n "checking for library containing log... " >&6; }
11484if ${ac_cv_search_log+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486else
11487 ac_func_search_save_LIBS=$LIBS
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char log ();
11498int
11499main ()
11500{
11501return log ();
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506for ac_lib in '' m; do
11507 if test -z "$ac_lib"; then
11508 ac_res="none required"
11509 else
11510 ac_res=-l$ac_lib
11511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11512 fi
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_search_log=$ac_res
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext
11518 if ${ac_cv_search_log+:} false; then :
11519 break
11520fi
11521done
11522if ${ac_cv_search_log+:} false; then :
11523
11524else
11525 ac_cv_search_log=no
11526fi
11527rm conftest.$ac_ext
11528LIBS=$ac_func_search_save_LIBS
11529fi
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11531$as_echo "$ac_cv_search_log" >&6; }
11532ac_res=$ac_cv_search_log
11533if test "$ac_res" != no; then :
11534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11535
11536fi
11537
11538fi
11539# Check whether --enable-fts5 was given.
11540if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011541 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011542fi
11543
11544if test "${enable_fts5}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011545 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11547$as_echo_n "checking for library containing log... " >&6; }
11548if ${ac_cv_search_log+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550else
11551 ac_func_search_save_LIBS=$LIBS
11552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553/* end confdefs.h. */
11554
11555/* Override any GCC internal prototype to avoid an error.
11556 Use char because int might match the return type of a GCC
11557 builtin and then its argument prototype would still apply. */
11558#ifdef __cplusplus
11559extern "C"
11560#endif
11561char log ();
11562int
11563main ()
11564{
11565return log ();
11566 ;
11567 return 0;
11568}
11569_ACEOF
11570for ac_lib in '' m; do
11571 if test -z "$ac_lib"; then
11572 ac_res="none required"
11573 else
11574 ac_res=-l$ac_lib
11575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11576 fi
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_search_log=$ac_res
11579fi
11580rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext
11582 if ${ac_cv_search_log+:} false; then :
11583 break
11584fi
11585done
11586if ${ac_cv_search_log+:} false; then :
11587
11588else
11589 ac_cv_search_log=no
11590fi
11591rm conftest.$ac_ext
11592LIBS=$ac_func_search_save_LIBS
11593fi
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11595$as_echo "$ac_cv_search_log" >&6; }
11596ac_res=$ac_cv_search_log
11597if test "$ac_res" != no; then :
11598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11599
11600fi
11601
11602fi
11603
11604#########
11605# See whether we should enable JSON1
11606# Check whether --enable-json1 was given.
11607if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011608 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011609fi
11610
11611if test "${enable_json1}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011612 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011613fi
11614
11615#########
drh83bebdd2017-08-28 17:00:12 +000011616# See whether we should enable the LIMIT clause on UPDATE and DELETE
11617# statements.
11618# Check whether --enable-update-limit was given.
11619if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011620 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011621fi
11622
11623if test "${enable_udlimit}" = "yes" ; then
11624 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11625fi
11626
11627#########
drh748b8fd2018-05-25 19:22:47 +000011628# See whether we should enable GEOPOLY
11629# Check whether --enable-geopoly was given.
11630if test "${enable_geopoly+set}" = set; then :
11631 enableval=$enable_geopoly; enable_geopoly=yes
11632else
11633 enable_geopoly=no
11634fi
11635
11636if test "${enable_geopoly}" = "yes" ; then
11637 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11638 enable_rtree=yes
11639fi
11640
11641#########
drhce1d9f52015-10-09 12:48:33 +000011642# See whether we should enable RTREE
11643# Check whether --enable-rtree was given.
11644if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011645 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011646fi
11647
11648if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011649 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011650fi
11651
11652#########
drh5e18d402016-05-03 13:14:18 +000011653# See whether we should enable the SESSION extension
11654# Check whether --enable-session was given.
11655if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011656 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011657fi
11658
11659if test "${enable_session}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011660 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11661 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011662fi
11663
11664#########
drh8c9ed052017-05-29 17:43:06 +000011665# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011666for option in $CFLAGS $CPPFLAGS
11667do
11668 case $option in
danielk197733a14782008-08-04 14:50:05 +000011669 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011670 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011671 esac
11672done
11673
11674
danielk197733a14782008-08-04 14:50:05 +000011675
shaneb1cd7302008-10-22 18:27:31 +000011676# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011677ac_temp_CFLAGS=""
11678for option in $CFLAGS
11679do
11680 case $option in
11681 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011682 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011683 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011684 esac
11685done
11686CFLAGS=$ac_temp_CFLAGS
11687
11688
shaneb1cd7302008-10-22 18:27:31 +000011689# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011690ac_temp_CPPFLAGS=""
11691for option in $CPPFLAGS
11692do
11693 case $option in
11694 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011695 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011696 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011697 esac
11698done
11699CPPFLAGS=$ac_temp_CPPFLAGS
11700
danielk197733a14782008-08-04 14:50:05 +000011701
drh8b727472009-01-19 18:18:40 +000011702# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011703ac_temp_BUILD_CFLAGS=""
11704for option in $BUILD_CFLAGS
11705do
11706 case $option in
11707 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011708 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011709 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011710 esac
11711done
11712BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11713
11714
11715#########
11716# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011717# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011718if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011719 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011720fi
11721
mlcreechaac7b932008-04-01 02:45:22 +000011722if test "${use_gcov}" = "yes" ; then
11723 USE_GCOV=1
11724else
11725 USE_GCOV=0
11726fi
11727
11728
danielk197733a14782008-08-04 14:50:05 +000011729
drh2dfbbca2000-07-28 14:32:48 +000011730#########
mlcreechb87057f2008-03-06 07:19:20 +000011731# Output the config header
drh8b727472009-01-19 18:18:40 +000011732ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011733
11734
11735#########
drh75897232000-05-29 14:26:00 +000011736# Generate the output files.
11737#
mlcreechdf59c7c2008-03-06 07:51:15 +000011738
drh8b727472009-01-19 18:18:40 +000011739ac_config_files="$ac_config_files Makefile sqlite3.pc"
11740
drh71eb93e2001-09-28 01:34:43 +000011741cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011742# This file is a shell script that caches the results of configure
11743# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011744# scripts and configure runs, see configure's option --config-cache.
11745# It is not useful on other systems. If it contains results you don't
11746# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011747#
drh71eb93e2001-09-28 01:34:43 +000011748# config.status only pays attention to the cache file if you give it
11749# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011750#
a.rottmann84e63352003-03-24 09:42:16 +000011751# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011752# loading this file, other *unset* `ac_cv_foo' will be assigned the
11753# following values.
11754
11755_ACEOF
11756
drh75897232000-05-29 14:26:00 +000011757# The following way of writing the cache mishandles newlines in values,
11758# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011759# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011760# Ultrix sh set writes to stderr and can't be redirected directly,
11761# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011762(
11763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11764 eval ac_val=\$$ac_var
11765 case $ac_val in #(
11766 *${as_nl}*)
11767 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11769$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011770 esac
11771 case $ac_var in #(
11772 _ | IFS | as_nl) ;; #(
11773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011774 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011775 esac ;;
11776 esac
11777 done
11778
drh71eb93e2001-09-28 01:34:43 +000011779 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011780 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11781 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011782 # `set' does not quote correctly, so add quotes: double-quote
11783 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011784 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011785 "s/'/'\\\\''/g;
11786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011787 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011788 *)
11789 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011791 ;;
drh8b727472009-01-19 18:18:40 +000011792 esac |
11793 sort
11794) |
drh71eb93e2001-09-28 01:34:43 +000011795 sed '
drh8b727472009-01-19 18:18:40 +000011796 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011797 t clear
drh8b727472009-01-19 18:18:40 +000011798 :clear
drh71eb93e2001-09-28 01:34:43 +000011799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11800 t end
drh8b727472009-01-19 18:18:40 +000011801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11802 :end' >>confcache
11803if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11804 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011805 if test "x$cache_file" != "x/dev/null"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011807$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011808 if test ! -f "$cache_file" || test -h "$cache_file"; then
11809 cat confcache >"$cache_file"
11810 else
11811 case $cache_file in #(
11812 */* | ?:*)
11813 mv -f confcache "$cache_file"$$ &&
11814 mv -f "$cache_file"$$ "$cache_file" ;; #(
11815 *)
11816 mv -f confcache "$cache_file" ;;
11817 esac
11818 fi
11819 fi
drh75897232000-05-29 14:26:00 +000011820 else
drhf922ca42015-05-14 15:39:18 +000011821 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011822$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011823 fi
11824fi
11825rm -f confcache
11826
drh75897232000-05-29 14:26:00 +000011827test "x$prefix" = xNONE && prefix=$ac_default_prefix
11828# Let make expand exec_prefix.
11829test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11830
mlcreechb87057f2008-03-06 07:19:20 +000011831DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011832
11833ac_libobjs=
11834ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011835U=
a.rottmann84e63352003-03-24 09:42:16 +000011836for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11837 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11841 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011844done
11845LIBOBJS=$ac_libobjs
11846
11847LTLIBOBJS=$ac_ltlibobjs
11848
11849
11850
drhf922ca42015-05-14 15:39:18 +000011851: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011852ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011853ac_clean_files_save=$ac_clean_files
11854ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011855{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011856$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011857as_write_fail=0
11858cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011859#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011860# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011861# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011862# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011863# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011864
drh71eb93e2001-09-28 01:34:43 +000011865debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011866ac_cs_recheck=false
11867ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011868
drhf922ca42015-05-14 15:39:18 +000011869SHELL=\${CONFIG_SHELL-$SHELL}
11870export SHELL
11871_ASEOF
11872cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11873## -------------------- ##
11874## M4sh Initialization. ##
11875## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011876
drh8b727472009-01-19 18:18:40 +000011877# Be more Bourne compatible
11878DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011880 emulate sh
11881 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011883 # is contrary to our usage. Disable this feature.
11884 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011885 setopt NO_GLOB_SUBST
11886else
drhf922ca42015-05-14 15:39:18 +000011887 case `(set -o) 2>/dev/null` in #(
11888 *posix*) :
11889 set -o posix ;; #(
11890 *) :
11891 ;;
drh8b727472009-01-19 18:18:40 +000011892esac
a.rottmann84e63352003-03-24 09:42:16 +000011893fi
drh8b727472009-01-19 18:18:40 +000011894
11895
drh8b727472009-01-19 18:18:40 +000011896as_nl='
11897'
11898export as_nl
11899# Printing a long string crashes Solaris 7 /usr/bin/printf.
11900as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011903# Prefer a ksh shell builtin over an external printf program on Solaris,
11904# but without wasting forks for bash or zsh.
11905if test -z "$BASH_VERSION$ZSH_VERSION" \
11906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11907 as_echo='print -r --'
11908 as_echo_n='print -rn --'
11909elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011910 as_echo='printf %s\n'
11911 as_echo_n='printf %s'
11912else
11913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11915 as_echo_n='/usr/ucb/echo -n'
11916 else
11917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11918 as_echo_n_body='eval
11919 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011920 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011921 *"$as_nl"*)
11922 expr "X$arg" : "X\\(.*\\)$as_nl";
11923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11924 esac;
11925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11926 '
11927 export as_echo_n_body
11928 as_echo_n='sh -c $as_echo_n_body as_echo'
11929 fi
11930 export as_echo_body
11931 as_echo='sh -c $as_echo_body as_echo'
11932fi
11933
11934# The user is always right.
11935if test "${PATH_SEPARATOR+set}" != set; then
11936 PATH_SEPARATOR=:
11937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11939 PATH_SEPARATOR=';'
11940 }
11941fi
a.rottmann84e63352003-03-24 09:42:16 +000011942
mlcreech94984912008-03-04 19:03:08 +000011943
drh8b727472009-01-19 18:18:40 +000011944# IFS
11945# We need space, tab and new line, in precisely that order. Quoting is
11946# there to prevent editors from complaining about space-tab.
11947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11948# splitting by setting IFS to empty value.)
11949IFS=" "" $as_nl"
11950
11951# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011952as_myself=
11953case $0 in #((
drh8b727472009-01-19 18:18:40 +000011954 *[\\/]* ) as_myself=$0 ;;
11955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11961 done
drh8b727472009-01-19 18:18:40 +000011962IFS=$as_save_IFS
11963
11964 ;;
11965esac
11966# We did not find ourselves, most probably we were run as `sh COMMAND'
11967# in which case we are not to be found in the path.
11968if test "x$as_myself" = x; then
11969 as_myself=$0
11970fi
11971if test ! -f "$as_myself"; then
11972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011973 exit 1
drh8b727472009-01-19 18:18:40 +000011974fi
11975
drhf922ca42015-05-14 15:39:18 +000011976# Unset variables that we do not need and which cause bugs (e.g. in
11977# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11978# suppresses any "Segmentation fault" message there. '((' could
11979# trigger a bug in pdksh 5.2.14.
11980for as_var in BASH_ENV ENV MAIL MAILPATH
11981do eval test x\${$as_var+set} = xset \
11982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011983done
mlcreech94984912008-03-04 19:03:08 +000011984PS1='$ '
11985PS2='> '
11986PS4='+ '
11987
11988# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011989LC_ALL=C
11990export LC_ALL
11991LANGUAGE=C
11992export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011993
drhf922ca42015-05-14 15:39:18 +000011994# CDPATH.
11995(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11996
11997
11998# as_fn_error STATUS ERROR [LINENO LOG_FD]
11999# ----------------------------------------
12000# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12001# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12002# script with STATUS, using 1 if that was 0.
12003as_fn_error ()
12004{
12005 as_status=$1; test $as_status -eq 0 && as_status=1
12006 if test "$4"; then
12007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12009 fi
12010 $as_echo "$as_me: error: $2" >&2
12011 as_fn_exit $as_status
12012} # as_fn_error
12013
12014
12015# as_fn_set_status STATUS
12016# -----------------------
12017# Set $? to STATUS, without forking.
12018as_fn_set_status ()
12019{
12020 return $1
12021} # as_fn_set_status
12022
12023# as_fn_exit STATUS
12024# -----------------
12025# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12026as_fn_exit ()
12027{
12028 set +e
12029 as_fn_set_status $1
12030 exit $1
12031} # as_fn_exit
12032
12033# as_fn_unset VAR
12034# ---------------
12035# Portably unset VAR.
12036as_fn_unset ()
12037{
12038 { eval $1=; unset $1;}
12039}
12040as_unset=as_fn_unset
12041# as_fn_append VAR VALUE
12042# ----------------------
12043# Append the text in VALUE to the end of the definition contained in VAR. Take
12044# advantage of any shell optimizations that allow amortized linear growth over
12045# repeated appends, instead of the typical quadratic growth present in naive
12046# implementations.
12047if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12048 eval 'as_fn_append ()
12049 {
12050 eval $1+=\$2
12051 }'
12052else
12053 as_fn_append ()
12054 {
12055 eval $1=\$$1\$2
12056 }
12057fi # as_fn_append
12058
12059# as_fn_arith ARG...
12060# ------------------
12061# Perform arithmetic evaluation on the ARGs, and store the result in the
12062# global $as_val. Take advantage of shells that can avoid forks. The arguments
12063# must be portable across $(()) and expr.
12064if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12065 eval 'as_fn_arith ()
12066 {
12067 as_val=$(( $* ))
12068 }'
12069else
12070 as_fn_arith ()
12071 {
12072 as_val=`expr "$@" || test $? -eq 1`
12073 }
12074fi # as_fn_arith
12075
12076
drh8b727472009-01-19 18:18:40 +000012077if expr a : '\(a\)' >/dev/null 2>&1 &&
12078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012079 as_expr=expr
12080else
12081 as_expr=false
12082fi
12083
drh8b727472009-01-19 18:18:40 +000012084if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012085 as_basename=basename
12086else
12087 as_basename=false
12088fi
12089
drhf922ca42015-05-14 15:39:18 +000012090if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12091 as_dirname=dirname
12092else
12093 as_dirname=false
12094fi
mlcreech94984912008-03-04 19:03:08 +000012095
drh8b727472009-01-19 18:18:40 +000012096as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012097$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12098 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12100$as_echo X/"$0" |
12101 sed '/^.*\/\([^/][^/]*\)\/*$/{
12102 s//\1/
12103 q
12104 }
12105 /^X\/\(\/\/\)$/{
12106 s//\1/
12107 q
12108 }
12109 /^X\/\(\/\).*/{
12110 s//\1/
12111 q
12112 }
12113 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012114
drhf922ca42015-05-14 15:39:18 +000012115# Avoid depending upon Character Ranges.
12116as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12117as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12118as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12119as_cr_digits='0123456789'
12120as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012121
drh8b727472009-01-19 18:18:40 +000012122ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012123case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012124-n*)
drhf922ca42015-05-14 15:39:18 +000012125 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012126 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012127 xy) ECHO_C='\c';;
12128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12129 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012130 esac;;
12131*)
12132 ECHO_N='-n';;
12133esac
drh71eb93e2001-09-28 01:34:43 +000012134
12135rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012136if test -d conf$$.dir; then
12137 rm -f conf$$.dir/conf$$.file
12138else
12139 rm -f conf$$.dir
12140 mkdir conf$$.dir 2>/dev/null
12141fi
12142if (echo >conf$$.file) 2>/dev/null; then
12143 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012144 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012145 # ... but there are two gotchas:
12146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012148 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012150 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012151 elif ln conf$$.file conf$$ 2>/dev/null; then
12152 as_ln_s=ln
12153 else
drhf922ca42015-05-14 15:39:18 +000012154 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012155 fi
drh71eb93e2001-09-28 01:34:43 +000012156else
drhf922ca42015-05-14 15:39:18 +000012157 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012158fi
drh8b727472009-01-19 18:18:40 +000012159rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12160rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012161
drhf922ca42015-05-14 15:39:18 +000012162
12163# as_fn_mkdir_p
12164# -------------
12165# Create "$as_dir" as a directory, including parents if necessary.
12166as_fn_mkdir_p ()
12167{
12168
12169 case $as_dir in #(
12170 -*) as_dir=./$as_dir;;
12171 esac
12172 test -d "$as_dir" || eval $as_mkdir_p || {
12173 as_dirs=
12174 while :; do
12175 case $as_dir in #(
12176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12177 *) as_qdir=$as_dir;;
12178 esac
12179 as_dirs="'$as_qdir' $as_dirs"
12180 as_dir=`$as_dirname -- "$as_dir" ||
12181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12182 X"$as_dir" : 'X\(//\)[^/]' \| \
12183 X"$as_dir" : 'X\(//\)$' \| \
12184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12185$as_echo X"$as_dir" |
12186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12187 s//\1/
12188 q
12189 }
12190 /^X\(\/\/\)[^/].*/{
12191 s//\1/
12192 q
12193 }
12194 /^X\(\/\/\)$/{
12195 s//\1/
12196 q
12197 }
12198 /^X\(\/\).*/{
12199 s//\1/
12200 q
12201 }
12202 s/.*/./; q'`
12203 test -d "$as_dir" && break
12204 done
12205 test -z "$as_dirs" || eval "mkdir $as_dirs"
12206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12207
12208
12209} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012210if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012211 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012212else
a.rottmann964dbb12004-02-26 19:47:42 +000012213 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012214 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012215fi
12216
drhf922ca42015-05-14 15:39:18 +000012217
12218# as_fn_executable_p FILE
12219# -----------------------
12220# Test if FILE is an executable regular file.
12221as_fn_executable_p ()
12222{
12223 test -f "$1" && test -x "$1"
12224} # as_fn_executable_p
12225as_test_x='test -x'
12226as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012227
12228# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012230
12231# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012233
drh71eb93e2001-09-28 01:34:43 +000012234
drh71eb93e2001-09-28 01:34:43 +000012235exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012236## ----------------------------------- ##
12237## Main body of $CONFIG_STATUS script. ##
12238## ----------------------------------- ##
12239_ASEOF
12240test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012241
drhf922ca42015-05-14 15:39:18 +000012242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12243# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012244# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012245# values after options handling.
12246ac_log="
drh83acc142019-02-12 15:51:36 +000012247This file was extended by sqlite $as_me 3.28.0, which was
drhf922ca42015-05-14 15:39:18 +000012248generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012249
12250 CONFIG_FILES = $CONFIG_FILES
12251 CONFIG_HEADERS = $CONFIG_HEADERS
12252 CONFIG_LINKS = $CONFIG_LINKS
12253 CONFIG_COMMANDS = $CONFIG_COMMANDS
12254 $ $0 $@
12255
drh8b727472009-01-19 18:18:40 +000012256on `(hostname || uname -n) 2>/dev/null | sed 1q`
12257"
12258
drh71eb93e2001-09-28 01:34:43 +000012259_ACEOF
12260
drhf922ca42015-05-14 15:39:18 +000012261case $ac_config_files in *"
12262"*) set x $ac_config_files; shift; ac_config_files=$*;;
12263esac
12264
12265case $ac_config_headers in *"
12266"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12267esac
12268
12269
drh8b727472009-01-19 18:18:40 +000012270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012271# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012272config_files="$ac_config_files"
12273config_headers="$ac_config_headers"
12274config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012275
drh8b727472009-01-19 18:18:40 +000012276_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012277
drh8b727472009-01-19 18:18:40 +000012278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012279ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012280\`$as_me' instantiates files and other configuration actions
12281from templates according to the current configuration. Unless the files
12282and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012283
drhf922ca42015-05-14 15:39:18 +000012284Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012285
12286 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012287 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012288 --config print configuration, then exit
12289 -q, --quiet, --silent
12290 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012291 -d, --debug don't remove temporary files
12292 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012293 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012294 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012295 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012296 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012297
12298Configuration files:
12299$config_files
12300
mlcreechb87057f2008-03-06 07:19:20 +000012301Configuration headers:
12302$config_headers
12303
mlcreech636a9952008-05-05 22:52:56 +000012304Configuration commands:
12305$config_commands
12306
drhf922ca42015-05-14 15:39:18 +000012307Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012308
mlcreech94984912008-03-04 19:03:08 +000012309_ACEOF
drh8b727472009-01-19 18:18:40 +000012310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012311ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012312ac_cs_version="\\
drh83acc142019-02-12 15:51:36 +000012313sqlite config.status 3.28.0
drhf922ca42015-05-14 15:39:18 +000012314configured by $0, generated by GNU Autoconf 2.69,
12315 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012316
drhf922ca42015-05-14 15:39:18 +000012317Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012318This config.status script is free software; the Free Software Foundation
12319gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012320
12321ac_pwd='$ac_pwd'
12322srcdir='$srcdir'
12323INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012324test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012325_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012326
drh8b727472009-01-19 18:18:40 +000012327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012329ac_need_defaults=:
12330while test $# != 0
12331do
12332 case $1 in
drhf922ca42015-05-14 15:39:18 +000012333 --*=?*)
drh8b727472009-01-19 18:18:40 +000012334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012336 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012337 ;;
drhf922ca42015-05-14 15:39:18 +000012338 --*=)
12339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12340 ac_optarg=
12341 ac_shift=:
12342 ;;
drh8b727472009-01-19 18:18:40 +000012343 *)
a.rottmann84e63352003-03-24 09:42:16 +000012344 ac_option=$1
12345 ac_optarg=$2
12346 ac_shift=shift
12347 ;;
drh75897232000-05-29 14:26:00 +000012348 esac
12349
a.rottmann84e63352003-03-24 09:42:16 +000012350 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012351 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012353 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12355 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012356 --config | --confi | --conf | --con | --co | --c )
12357 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012358 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012359 debug=: ;;
12360 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012361 $ac_shift
drh8b727472009-01-19 18:18:40 +000012362 case $ac_optarg in
12363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012364 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012365 esac
drhf922ca42015-05-14 15:39:18 +000012366 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012367 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012368 --header | --heade | --head | --hea )
12369 $ac_shift
drh8b727472009-01-19 18:18:40 +000012370 case $ac_optarg in
12371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12372 esac
drhf922ca42015-05-14 15:39:18 +000012373 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012374 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012375 --he | --h)
12376 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012377 as_fn_error $? "ambiguous option: \`$1'
12378Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012379 --help | --hel | -h )
12380 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12382 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12383 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012384
drh71eb93e2001-09-28 01:34:43 +000012385 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012386 -*) as_fn_error $? "unrecognized option: \`$1'
12387Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012388
drhf922ca42015-05-14 15:39:18 +000012389 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012390 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012391
12392 esac
12393 shift
12394done
12395
a.rottmann84e63352003-03-24 09:42:16 +000012396ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012397
a.rottmann84e63352003-03-24 09:42:16 +000012398if $ac_cs_silent; then
12399 exec 6>/dev/null
12400 ac_configure_extra_args="$ac_configure_extra_args --silent"
12401fi
drh71eb93e2001-09-28 01:34:43 +000012402
12403_ACEOF
drh8b727472009-01-19 18:18:40 +000012404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012405if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012406 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012407 shift
12408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12409 CONFIG_SHELL='$SHELL'
12410 export CONFIG_SHELL
12411 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012412fi
drh71eb93e2001-09-28 01:34:43 +000012413
a.rottmann84e63352003-03-24 09:42:16 +000012414_ACEOF
drh8b727472009-01-19 18:18:40 +000012415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416exec 5>>config.log
12417{
12418 echo
12419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12420## Running $as_me. ##
12421_ASBOX
12422 $as_echo "$ac_log"
12423} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012424
drh8b727472009-01-19 18:18:40 +000012425_ACEOF
12426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012427#
drh8b727472009-01-19 18:18:40 +000012428# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012429#
12430
12431
12432# The HP-UX ksh and POSIX shell print the target directory to stdout
12433# if CDPATH is set.
12434(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12435
12436sed_quote_subst='$sed_quote_subst'
12437double_quote_subst='$double_quote_subst'
12438delay_variable_subst='$delay_variable_subst'
12439macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12440macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12441enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12442enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12443pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12444enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12445host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12446host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12447host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12448build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12449build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12450build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12451SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12452Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12453GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12454EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12455FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12456LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12457NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12458LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12459max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12460ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12461exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12462lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12463lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12464lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12465reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12466reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012467OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012468deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12469file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12470AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12471AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12472STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12473RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12474old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12475old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12476old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12477CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12478CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12479compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12480GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12481lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12482lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12483lt_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"`'
12484lt_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"`'
12485objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12486SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12487ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12488MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12489lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12490lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12491lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12492lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12493lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12494need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12495DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12496NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12497LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12498OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12499OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12500libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12501shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12502extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12503archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12504enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12505export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12506whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12507compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12508old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12509old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12510archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12511archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12512module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12513module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12514with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12515allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12516no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12517hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12518hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12519hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12520hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12521hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12522hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12523hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12524hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12525inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12526link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12527fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12528always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12529export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12530exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12531include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12532prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12533file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12534variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12535need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12536need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12537version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12538runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12539shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12540shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12541libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12542library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12543soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12544postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12545postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12546finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12547finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12548hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12549sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12550sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12551hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12552enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12553enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12554enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12555old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12556striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12557
12558LTCC='$LTCC'
12559LTCFLAGS='$LTCFLAGS'
12560compiler='$compiler_DEFAULT'
12561
12562# Quote evaled strings.
12563for var in SED \
12564GREP \
12565EGREP \
12566FGREP \
12567LD \
12568NM \
12569LN_S \
12570lt_SP2NL \
12571lt_NL2SP \
12572reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012573OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012574deplibs_check_method \
12575file_magic_cmd \
12576AR \
12577AR_FLAGS \
12578STRIP \
12579RANLIB \
12580CC \
12581CFLAGS \
12582compiler \
12583lt_cv_sys_global_symbol_pipe \
12584lt_cv_sys_global_symbol_to_cdecl \
12585lt_cv_sys_global_symbol_to_c_name_address \
12586lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12587SHELL \
12588ECHO \
12589lt_prog_compiler_no_builtin_flag \
12590lt_prog_compiler_wl \
12591lt_prog_compiler_pic \
12592lt_prog_compiler_static \
12593lt_cv_prog_compiler_c_o \
12594need_locks \
12595DSYMUTIL \
12596NMEDIT \
12597LIPO \
12598OTOOL \
12599OTOOL64 \
12600shrext_cmds \
12601export_dynamic_flag_spec \
12602whole_archive_flag_spec \
12603compiler_needs_object \
12604with_gnu_ld \
12605allow_undefined_flag \
12606no_undefined_flag \
12607hardcode_libdir_flag_spec \
12608hardcode_libdir_flag_spec_ld \
12609hardcode_libdir_separator \
12610fix_srcfile_path \
12611exclude_expsyms \
12612include_expsyms \
12613file_list_spec \
12614variables_saved_for_relink \
12615libname_spec \
12616library_names_spec \
12617soname_spec \
12618finish_eval \
12619old_striplib \
12620striplib; do
12621 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12622 *[\\\\\\\`\\"\\\$]*)
12623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12624 ;;
12625 *)
12626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12627 ;;
12628 esac
12629done
12630
12631# Double-quote double-evaled strings.
12632for var in reload_cmds \
12633old_postinstall_cmds \
12634old_postuninstall_cmds \
12635old_archive_cmds \
12636extract_expsyms_cmds \
12637old_archive_from_new_cmds \
12638old_archive_from_expsyms_cmds \
12639archive_cmds \
12640archive_expsym_cmds \
12641module_cmds \
12642module_expsym_cmds \
12643export_symbols_cmds \
12644prelink_cmds \
12645postinstall_cmds \
12646postuninstall_cmds \
12647finish_cmds \
12648sys_lib_search_path_spec \
12649sys_lib_dlsearch_path_spec; do
12650 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12651 *[\\\\\\\`\\"\\\$]*)
12652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12653 ;;
12654 *)
12655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12656 ;;
12657 esac
12658done
12659
12660# Fix-up fallback echo if it was mangled by the above quoting rules.
12661case \$lt_ECHO in
12662*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12663 ;;
12664esac
12665
12666ac_aux_dir='$ac_aux_dir'
12667xsi_shell='$xsi_shell'
12668lt_shell_append='$lt_shell_append'
12669
12670# See if we are running on zsh, and set the options which allow our
12671# commands through without removal of \ escapes INIT.
12672if test -n "\${ZSH_VERSION+set}" ; then
12673 setopt NO_GLOB_SUBST
12674fi
12675
12676
12677 PACKAGE='$PACKAGE'
12678 VERSION='$VERSION'
12679 TIMESTAMP='$TIMESTAMP'
12680 RM='$RM'
12681 ofile='$ofile'
12682
12683
12684
12685
mlcreech94984912008-03-04 19:03:08 +000012686_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012687
drh8b727472009-01-19 18:18:40 +000012688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012689
drh8b727472009-01-19 18:18:40 +000012690# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012691for ac_config_target in $ac_config_targets
12692do
drh8b727472009-01-19 18:18:40 +000012693 case $ac_config_target in
12694 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12695 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12697 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12698
drhf922ca42015-05-14 15:39:18 +000012699 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012700 esac
12701done
12702
drh8b727472009-01-19 18:18:40 +000012703
drh71eb93e2001-09-28 01:34:43 +000012704# If the user did not use the arguments to specify the items to instantiate,
12705# then the envvar interface is used. Set only those that are not.
12706# We use the long form for the default assignment because of an extremely
12707# bizarre bug on SunOS 4.1.3.
12708if $ac_need_defaults; then
12709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012710 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012711 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012712fi
12713
a.rottmann84e63352003-03-24 09:42:16 +000012714# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012715# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012716# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012717# Hook for its removal unless debugging.
12718# Note that there is a small window in which the directory will not be cleaned:
12719# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012720$debug ||
12721{
drhf922ca42015-05-14 15:39:18 +000012722 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012723 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012724 : "${ac_tmp:=$tmp}"
12725 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012726' 0
drhf922ca42015-05-14 15:39:18 +000012727 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012728}
drh71eb93e2001-09-28 01:34:43 +000012729# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012730
drh71eb93e2001-09-28 01:34:43 +000012731{
drh8b727472009-01-19 18:18:40 +000012732 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012733 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012734} ||
12735{
drh8b727472009-01-19 18:18:40 +000012736 tmp=./conf$$-$RANDOM
12737 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012738} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12739ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012740
drh8b727472009-01-19 18:18:40 +000012741# Set up the scripts for CONFIG_FILES section.
12742# No need to generate them if there are no CONFIG_FILES.
12743# This happens for instance with `./config.status config.h'.
12744if test -n "$CONFIG_FILES"; then
12745
12746
drhf922ca42015-05-14 15:39:18 +000012747ac_cr=`echo X | tr X '\015'`
12748# On cygwin, bash can eat \r inside `` if the user requested igncr.
12749# But we know of no other shell where ac_cr would be empty at this
12750# point, so we can use a bashism as a fallback.
12751if test "x$ac_cr" = x; then
12752 eval ac_cr=\$\'\\r\'
12753fi
drh8b727472009-01-19 18:18:40 +000012754ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12755if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012756 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012757else
12758 ac_cs_awk_cr=$ac_cr
12759fi
12760
drhf922ca42015-05-14 15:39:18 +000012761echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012762_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012763
mlcreech94984912008-03-04 19:03:08 +000012764
drh8b727472009-01-19 18:18:40 +000012765{
12766 echo "cat >conf$$subs.awk <<_ACEOF" &&
12767 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12768 echo "_ACEOF"
12769} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12771ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012772ac_delim='%!_!# '
12773for ac_last_try in false false false false false :; do
12774 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012776
drhf922ca42015-05-14 15:39:18 +000012777 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12778 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012779 break
12780 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012782 else
12783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012784 fi
drh8b727472009-01-19 18:18:40 +000012785done
12786rm -f conf$$subs.sh
12787
12788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012789cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012790_ACEOF
12791sed -n '
12792h
12793s/^/S["/; s/!.*/"]=/
12794p
12795g
12796s/^[^!]*!//
12797:repl
12798t repl
12799s/'"$ac_delim"'$//
12800t delim
12801:nl
12802h
drhf922ca42015-05-14 15:39:18 +000012803s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012804t more1
12805s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12806p
12807n
12808b repl
12809:more1
12810s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12811p
12812g
12813s/.\{148\}//
12814t nl
12815:delim
12816h
drhf922ca42015-05-14 15:39:18 +000012817s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012818t more2
12819s/["\\]/\\&/g; s/^/"/; s/$/"/
12820p
12821b
12822:more2
12823s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12824p
12825g
12826s/.\{148\}//
12827t delim
12828' <conf$$subs.awk | sed '
12829/^[^""]/{
12830 N
12831 s/\n//
12832}
12833' >>$CONFIG_STATUS || ac_write_fail=1
12834rm -f conf$$subs.awk
12835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12836_ACAWK
drhf922ca42015-05-14 15:39:18 +000012837cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012838 for (key in S) S_is_set[key] = 1
12839 FS = ""
12840
12841}
12842{
12843 line = $ 0
12844 nfields = split(line, field, "@")
12845 substed = 0
12846 len = length(field[1])
12847 for (i = 2; i < nfields; i++) {
12848 key = field[i]
12849 keylen = length(key)
12850 if (S_is_set[key]) {
12851 value = S[key]
12852 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12853 len += length(value) + length(field[++i])
12854 substed = 1
12855 } else
12856 len += 1 + keylen
12857 }
12858
12859 print line
12860}
12861
12862_ACAWK
12863_ACEOF
12864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12865if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12866 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12867else
12868 cat
drhf922ca42015-05-14 15:39:18 +000012869fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12870 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012871_ACEOF
12872
drhf922ca42015-05-14 15:39:18 +000012873# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12874# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012875# trailing colons and then remove the whole line if VPATH becomes empty
12876# (actually we leave an empty line to preserve line numbers).
12877if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012878 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12879h
12880s///
12881s/^/:/
12882s/[ ]*$/:/
12883s/:\$(srcdir):/:/g
12884s/:\${srcdir}:/:/g
12885s/:@srcdir@:/:/g
12886s/^:*//
drh8b727472009-01-19 18:18:40 +000012887s/:*$//
drhf922ca42015-05-14 15:39:18 +000012888x
12889s/\(=[ ]*\).*/\1/
12890G
12891s/\n//
drh8b727472009-01-19 18:18:40 +000012892s/^[^=]*=[ ]*$//
12893}'
12894fi
12895
12896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012897fi # test -n "$CONFIG_FILES"
12898
drh8b727472009-01-19 18:18:40 +000012899# Set up the scripts for CONFIG_HEADERS section.
12900# No need to generate them if there are no CONFIG_HEADERS.
12901# This happens for instance with `./config.status Makefile'.
12902if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012903cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012904BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012905_ACEOF
drh8b727472009-01-19 18:18:40 +000012906
12907# Transform confdefs.h into an awk script `defines.awk', embedded as
12908# here-document in config.status, that substitutes the proper values into
12909# config.h.in to produce config.h.
12910
12911# Create a delimiter string that does not exist in confdefs.h, to ease
12912# handling of long lines.
12913ac_delim='%!_!# '
12914for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012915 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12916 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012917 break
12918 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012919 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012920 else
12921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12922 fi
12923done
12924
12925# For the awk script, D is an array of macro values keyed by name,
12926# likewise P contains macro parameters if any. Preserve backslash
12927# newline sequences.
12928
12929ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12930sed -n '
12931s/.\{148\}/&'"$ac_delim"'/g
12932t rset
12933:rset
12934s/^[ ]*#[ ]*define[ ][ ]*/ /
12935t def
12936d
12937:def
12938s/\\$//
12939t bsnl
12940s/["\\]/\\&/g
12941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12942D["\1"]=" \3"/p
12943s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12944d
12945:bsnl
12946s/["\\]/\\&/g
12947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12948D["\1"]=" \3\\\\\\n"\\/p
12949t cont
12950s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12951t cont
12952d
12953:cont
12954n
12955s/.\{148\}/&'"$ac_delim"'/g
12956t clear
12957:clear
12958s/\\$//
12959t bsnlc
12960s/["\\]/\\&/g; s/^/"/; s/$/"/p
12961d
12962:bsnlc
12963s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12964b cont
12965' <confdefs.h | sed '
12966s/'"$ac_delim"'/"\\\
12967"/g' >>$CONFIG_STATUS || ac_write_fail=1
12968
12969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12970 for (key in D) D_is_set[key] = 1
12971 FS = ""
12972}
12973/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12974 line = \$ 0
12975 split(line, arg, " ")
12976 if (arg[1] == "#") {
12977 defundef = arg[2]
12978 mac1 = arg[3]
12979 } else {
12980 defundef = substr(arg[1], 2)
12981 mac1 = arg[2]
12982 }
12983 split(mac1, mac2, "(") #)
12984 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012985 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012986 if (D_is_set[macro]) {
12987 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012988 print prefix "define", macro P[macro] D[macro]
12989 next
12990 } else {
12991 # Replace #undef with comments. This is necessary, for example,
12992 # in the case of _POSIX_SOURCE, which is predefined and required
12993 # on some systems where configure will not decide to define it.
12994 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012995 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012996 next
12997 }
12998 }
12999}
13000{ print }
13001_ACAWK
13002_ACEOF
13003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013004 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013005fi # test -n "$CONFIG_HEADERS"
13006
13007
13008eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13009shift
13010for ac_tag
13011do
13012 case $ac_tag in
13013 :[FHLC]) ac_mode=$ac_tag; continue;;
13014 esac
13015 case $ac_mode$ac_tag in
13016 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013017 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013018 :[FH]-) ac_tag=-:-;;
13019 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13020 esac
13021 ac_save_IFS=$IFS
13022 IFS=:
13023 set x $ac_tag
13024 IFS=$ac_save_IFS
13025 shift
13026 ac_file=$1
13027 shift
13028
13029 case $ac_mode in
13030 :L) ac_source=$1;;
13031 :[FH])
13032 ac_file_inputs=
13033 for ac_f
13034 do
13035 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013036 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013037 *) # Look for the file first in the build tree, then in the source tree
13038 # (if the path is not absolute). The absolute path cannot be DOS-style,
13039 # because $ac_f cannot contain `:'.
13040 test -f "$ac_f" ||
13041 case $ac_f in
13042 [\\/$]*) false;;
13043 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13044 esac ||
drhf922ca42015-05-14 15:39:18 +000013045 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013046 esac
13047 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013048 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013049 done
13050
13051 # Let's still pretend it is `configure' which instantiates (i.e., don't
13052 # use $as_me), people would be surprised to read:
13053 # /* config.h. Generated by config.status. */
13054 configure_input='Generated from '`
13055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13056 `' by configure.'
13057 if test x"$ac_file" != x-; then
13058 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013060$as_echo "$as_me: creating $ac_file" >&6;}
13061 fi
13062 # Neutralize special characters interpreted by sed in replacement strings.
13063 case $configure_input in #(
13064 *\&* | *\|* | *\\* )
13065 ac_sed_conf_input=`$as_echo "$configure_input" |
13066 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13067 *) ac_sed_conf_input=$configure_input;;
13068 esac
13069
13070 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013071 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013073 esac
13074 ;;
drh71eb93e2001-09-28 01:34:43 +000013075 esac
13076
drh8b727472009-01-19 18:18:40 +000013077 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013078$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013079 X"$ac_file" : 'X\(//\)[^/]' \| \
13080 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13082$as_echo X"$ac_file" |
13083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13084 s//\1/
13085 q
13086 }
13087 /^X\(\/\/\)[^/].*/{
13088 s//\1/
13089 q
13090 }
13091 /^X\(\/\/\)$/{
13092 s//\1/
13093 q
13094 }
13095 /^X\(\/\).*/{
13096 s//\1/
13097 q
13098 }
13099 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013100 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013101 ac_builddir=.
13102
drh8b727472009-01-19 18:18:40 +000013103case "$ac_dir" in
13104.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13105*)
13106 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13107 # A ".." for each directory in $ac_dir_suffix.
13108 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13109 case $ac_top_builddir_sub in
13110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13112 esac ;;
13113esac
13114ac_abs_top_builddir=$ac_pwd
13115ac_abs_builddir=$ac_pwd$ac_dir_suffix
13116# for backward compatibility:
13117ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013118
13119case $srcdir in
drh8b727472009-01-19 18:18:40 +000013120 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013121 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013122 ac_top_srcdir=$ac_top_builddir_sub
13123 ac_abs_top_srcdir=$ac_pwd ;;
13124 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013125 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013126 ac_top_srcdir=$srcdir
13127 ac_abs_top_srcdir=$srcdir ;;
13128 *) # Relative name.
13129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13130 ac_top_srcdir=$ac_top_build_prefix$srcdir
13131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013132esac
drh8b727472009-01-19 18:18:40 +000013133ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013134
a.rottmann84e63352003-03-24 09:42:16 +000013135
drh8b727472009-01-19 18:18:40 +000013136 case $ac_mode in
13137 :F)
13138 #
13139 # CONFIG_FILE
13140 #
drh75897232000-05-29 14:26:00 +000013141
drh71eb93e2001-09-28 01:34:43 +000013142 case $INSTALL in
13143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013145 esac
mlcreech94984912008-03-04 19:03:08 +000013146_ACEOF
drh8b727472009-01-19 18:18:40 +000013147
13148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13149# If the template does not know about datarootdir, expand it.
13150# FIXME: This hack should be removed a few years after 2.60.
13151ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013152ac_sed_dataroot='
13153/datarootdir/ {
13154 p
13155 q
13156}
13157/@datadir@/p
13158/@docdir@/p
13159/@infodir@/p
13160/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013161/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013162case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13163*datarootdir*) ac_datarootdir_seen=yes;;
13164*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013166$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13167_ACEOF
13168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 ac_datarootdir_hack='
13170 s&@datadir@&$datadir&g
13171 s&@docdir@&$docdir&g
13172 s&@infodir@&$infodir&g
13173 s&@localedir@&$localedir&g
13174 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013175 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013176esac
13177_ACEOF
13178
13179# Neutralize VPATH when `$srcdir' = `.'.
13180# Shell code in configure.ac might set extrasub.
13181# FIXME: do we really want to maintain this feature?
13182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013184$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013185_ACEOF
drh8b727472009-01-19 18:18:40 +000013186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013187:t
13188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013189s|@configure_input@|$ac_sed_conf_input|;t t
13190s&@top_builddir@&$ac_top_builddir_sub&;t t
13191s&@top_build_prefix@&$ac_top_build_prefix&;t t
13192s&@srcdir@&$ac_srcdir&;t t
13193s&@abs_srcdir@&$ac_abs_srcdir&;t t
13194s&@top_srcdir@&$ac_top_srcdir&;t t
13195s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13196s&@builddir@&$ac_builddir&;t t
13197s&@abs_builddir@&$ac_abs_builddir&;t t
13198s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13199s&@INSTALL@&$ac_INSTALL&;t t
13200$ac_datarootdir_hack
13201"
drhf922ca42015-05-14 15:39:18 +000013202eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13203 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013204
drh8b727472009-01-19 18:18:40 +000013205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013206 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13208 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13210which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013212which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013213
drhf922ca42015-05-14 15:39:18 +000013214 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013215 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013216 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13217 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013218 esac \
drhf922ca42015-05-14 15:39:18 +000013219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013220 ;;
13221 :H)
13222 #
13223 # CONFIG_HEADER
13224 #
drh866108f2008-05-13 00:57:21 +000013225 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013226 {
13227 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013228 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13229 } >"$ac_tmp/config.h" \
13230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13231 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013233$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013234 else
drh8b727472009-01-19 18:18:40 +000013235 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013236 mv "$ac_tmp/config.h" "$ac_file" \
13237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013238 fi
13239 else
drh8b727472009-01-19 18:18:40 +000013240 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13242 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013243 fi
drh8b727472009-01-19 18:18:40 +000013244 ;;
drh866108f2008-05-13 00:57:21 +000013245
drhf922ca42015-05-14 15:39:18 +000013246 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013247$as_echo "$as_me: executing $ac_file commands" >&6;}
13248 ;;
13249 esac
drh866108f2008-05-13 00:57:21 +000013250
13251
drh8b727472009-01-19 18:18:40 +000013252 case $ac_file$ac_mode in
13253 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013254
13255 # See if we are running on zsh, and set the options which allow our
13256 # commands through without removal of \ escapes.
13257 if test -n "${ZSH_VERSION+set}" ; then
13258 setopt NO_GLOB_SUBST
13259 fi
13260
13261 cfgfile="${ofile}T"
13262 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13263 $RM "$cfgfile"
13264
13265 cat <<_LT_EOF >> "$cfgfile"
13266#! $SHELL
13267
13268# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13269# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13270# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13271# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13272#
13273# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13274# 2006, 2007, 2008 Free Software Foundation, Inc.
13275# Written by Gordon Matzigkeit, 1996
13276#
13277# This file is part of GNU Libtool.
13278#
13279# GNU Libtool is free software; you can redistribute it and/or
13280# modify it under the terms of the GNU General Public License as
13281# published by the Free Software Foundation; either version 2 of
13282# the License, or (at your option) any later version.
13283#
13284# As a special exception to the GNU General Public License,
13285# if you distribute this file as part of a program or library that
13286# is built using GNU Libtool, you may include this file under the
13287# same distribution terms that you use for the rest of that program.
13288#
13289# GNU Libtool is distributed in the hope that it will be useful,
13290# but WITHOUT ANY WARRANTY; without even the implied warranty of
13291# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13292# GNU General Public License for more details.
13293#
13294# You should have received a copy of the GNU General Public License
13295# along with GNU Libtool; see the file COPYING. If not, a copy
13296# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13297# obtained by writing to the Free Software Foundation, Inc.,
13298# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13299
13300
13301# The names of the tagged configurations supported by this script.
13302available_tags=""
13303
13304# ### BEGIN LIBTOOL CONFIG
13305
13306# Which release of libtool.m4 was used?
13307macro_version=$macro_version
13308macro_revision=$macro_revision
13309
13310# Whether or not to build shared libraries.
13311build_libtool_libs=$enable_shared
13312
13313# Whether or not to build static libraries.
13314build_old_libs=$enable_static
13315
13316# What type of objects to build.
13317pic_mode=$pic_mode
13318
13319# Whether or not to optimize for fast installation.
13320fast_install=$enable_fast_install
13321
13322# The host system.
13323host_alias=$host_alias
13324host=$host
13325host_os=$host_os
13326
13327# The build system.
13328build_alias=$build_alias
13329build=$build
13330build_os=$build_os
13331
13332# A sed program that does not truncate output.
13333SED=$lt_SED
13334
13335# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13336Xsed="\$SED -e 1s/^X//"
13337
13338# A grep program that handles long lines.
13339GREP=$lt_GREP
13340
13341# An ERE matcher.
13342EGREP=$lt_EGREP
13343
13344# A literal string matcher.
13345FGREP=$lt_FGREP
13346
13347# A BSD- or MS-compatible name lister.
13348NM=$lt_NM
13349
13350# Whether we need soft or hard links.
13351LN_S=$lt_LN_S
13352
13353# What is the maximum length of a command?
13354max_cmd_len=$max_cmd_len
13355
13356# Object file suffix (normally "o").
13357objext=$ac_objext
13358
13359# Executable file suffix (normally "").
13360exeext=$exeext
13361
13362# whether the shell understands "unset".
13363lt_unset=$lt_unset
13364
13365# turn spaces into newlines.
13366SP2NL=$lt_lt_SP2NL
13367
13368# turn newlines into spaces.
13369NL2SP=$lt_lt_NL2SP
13370
13371# How to create reloadable object files.
13372reload_flag=$lt_reload_flag
13373reload_cmds=$lt_reload_cmds
13374
vapier6acb2cf2009-01-28 04:46:28 +000013375# An object symbol dumper.
13376OBJDUMP=$lt_OBJDUMP
13377
mlcreech636a9952008-05-05 22:52:56 +000013378# Method to check whether dependent libraries are shared objects.
13379deplibs_check_method=$lt_deplibs_check_method
13380
13381# Command to use when deplibs_check_method == "file_magic".
13382file_magic_cmd=$lt_file_magic_cmd
13383
13384# The archiver.
13385AR=$lt_AR
13386AR_FLAGS=$lt_AR_FLAGS
13387
13388# A symbol stripping program.
13389STRIP=$lt_STRIP
13390
13391# Commands used to install an old-style archive.
13392RANLIB=$lt_RANLIB
13393old_postinstall_cmds=$lt_old_postinstall_cmds
13394old_postuninstall_cmds=$lt_old_postuninstall_cmds
13395
13396# A C compiler.
13397LTCC=$lt_CC
13398
13399# LTCC compiler flags.
13400LTCFLAGS=$lt_CFLAGS
13401
13402# Take the output of nm and produce a listing of raw symbols and C names.
13403global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13404
13405# Transform the output of nm in a proper C declaration.
13406global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13407
13408# Transform the output of nm in a C name address pair.
13409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13410
13411# Transform the output of nm in a C name address pair when lib prefix is needed.
13412global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13413
13414# The name of the directory that contains temporary libtool files.
13415objdir=$objdir
13416
13417# Shell to use when invoking shell scripts.
13418SHELL=$lt_SHELL
13419
13420# An echo program that does not interpret backslashes.
13421ECHO=$lt_ECHO
13422
13423# Used to examine libraries when file_magic_cmd begins with "file".
13424MAGIC_CMD=$MAGIC_CMD
13425
13426# Must we lock files when doing compilation?
13427need_locks=$lt_need_locks
13428
13429# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13430DSYMUTIL=$lt_DSYMUTIL
13431
13432# Tool to change global to local symbols on Mac OS X.
13433NMEDIT=$lt_NMEDIT
13434
13435# Tool to manipulate fat objects and archives on Mac OS X.
13436LIPO=$lt_LIPO
13437
13438# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13439OTOOL=$lt_OTOOL
13440
13441# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13442OTOOL64=$lt_OTOOL64
13443
13444# Old archive suffix (normally "a").
13445libext=$libext
13446
13447# Shared library suffix (normally ".so").
13448shrext_cmds=$lt_shrext_cmds
13449
13450# The commands to extract the exported symbol list from a shared archive.
13451extract_expsyms_cmds=$lt_extract_expsyms_cmds
13452
13453# Variables whose values should be saved in libtool wrapper scripts and
13454# restored at link time.
13455variables_saved_for_relink=$lt_variables_saved_for_relink
13456
13457# Do we need the "lib" prefix for modules?
13458need_lib_prefix=$need_lib_prefix
13459
13460# Do we need a version for libraries?
13461need_version=$need_version
13462
13463# Library versioning type.
13464version_type=$version_type
13465
13466# Shared library runtime path variable.
13467runpath_var=$runpath_var
13468
13469# Shared library path variable.
13470shlibpath_var=$shlibpath_var
13471
13472# Is shlibpath searched before the hard-coded library search path?
13473shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13474
13475# Format of library name prefix.
13476libname_spec=$lt_libname_spec
13477
13478# List of archive names. First name is the real one, the rest are links.
13479# The last name is the one that the linker finds with -lNAME
13480library_names_spec=$lt_library_names_spec
13481
13482# The coded name of the library, if different from the real name.
13483soname_spec=$lt_soname_spec
13484
13485# Command to use after installation of a shared archive.
13486postinstall_cmds=$lt_postinstall_cmds
13487
13488# Command to use after uninstallation of a shared archive.
13489postuninstall_cmds=$lt_postuninstall_cmds
13490
13491# Commands used to finish a libtool library installation in a directory.
13492finish_cmds=$lt_finish_cmds
13493
13494# As "finish_cmds", except a single script fragment to be evaled but
13495# not shown.
13496finish_eval=$lt_finish_eval
13497
13498# Whether we should hardcode library paths into libraries.
13499hardcode_into_libs=$hardcode_into_libs
13500
13501# Compile-time system search path for libraries.
13502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13503
13504# Run-time system search path for libraries.
13505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13506
13507# Whether dlopen is supported.
13508dlopen_support=$enable_dlopen
13509
13510# Whether dlopen of programs is supported.
13511dlopen_self=$enable_dlopen_self
13512
13513# Whether dlopen of statically linked programs is supported.
13514dlopen_self_static=$enable_dlopen_self_static
13515
13516# Commands to strip libraries.
13517old_striplib=$lt_old_striplib
13518striplib=$lt_striplib
13519
13520
13521# The linker used to build libraries.
13522LD=$lt_LD
13523
13524# Commands used to build an old-style archive.
13525old_archive_cmds=$lt_old_archive_cmds
13526
13527# A language specific compiler.
13528CC=$lt_compiler
13529
13530# Is the compiler the GNU compiler?
13531with_gcc=$GCC
13532
13533# Compiler flag to turn off builtin functions.
13534no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13535
13536# How to pass a linker flag through the compiler.
13537wl=$lt_lt_prog_compiler_wl
13538
13539# Additional compiler flags for building library objects.
13540pic_flag=$lt_lt_prog_compiler_pic
13541
13542# Compiler flag to prevent dynamic linking.
13543link_static_flag=$lt_lt_prog_compiler_static
13544
13545# Does compiler simultaneously support -c and -o options?
13546compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13547
13548# Whether or not to add -lc for building shared libraries.
13549build_libtool_need_lc=$archive_cmds_need_lc
13550
13551# Whether or not to disallow shared libs when runtime libs are static.
13552allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13553
13554# Compiler flag to allow reflexive dlopens.
13555export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13556
13557# Compiler flag to generate shared objects directly from archives.
13558whole_archive_flag_spec=$lt_whole_archive_flag_spec
13559
13560# Whether the compiler copes with passing no objects directly.
13561compiler_needs_object=$lt_compiler_needs_object
13562
13563# Create an old-style archive from a shared archive.
13564old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13565
13566# Create a temporary old-style archive to link instead of a shared archive.
13567old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13568
13569# Commands used to build a shared archive.
13570archive_cmds=$lt_archive_cmds
13571archive_expsym_cmds=$lt_archive_expsym_cmds
13572
13573# Commands used to build a loadable module if different from building
13574# a shared archive.
13575module_cmds=$lt_module_cmds
13576module_expsym_cmds=$lt_module_expsym_cmds
13577
13578# Whether we are building with GNU ld or not.
13579with_gnu_ld=$lt_with_gnu_ld
13580
13581# Flag that allows shared libraries with undefined symbols to be built.
13582allow_undefined_flag=$lt_allow_undefined_flag
13583
13584# Flag that enforces no undefined symbols.
13585no_undefined_flag=$lt_no_undefined_flag
13586
13587# Flag to hardcode \$libdir into a binary during linking.
13588# This must work even if \$libdir does not exist
13589hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13590
13591# If ld is used when linking, flag to hardcode \$libdir into a binary
13592# during linking. This must work even if \$libdir does not exist.
13593hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13594
13595# Whether we need a single "-rpath" flag with a separated argument.
13596hardcode_libdir_separator=$lt_hardcode_libdir_separator
13597
13598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13599# DIR into the resulting binary.
13600hardcode_direct=$hardcode_direct
13601
13602# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13603# DIR into the resulting binary and the resulting library dependency is
13604# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13605# library is relocated.
13606hardcode_direct_absolute=$hardcode_direct_absolute
13607
13608# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13609# into the resulting binary.
13610hardcode_minus_L=$hardcode_minus_L
13611
13612# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13613# into the resulting binary.
13614hardcode_shlibpath_var=$hardcode_shlibpath_var
13615
13616# Set to "yes" if building a shared library automatically hardcodes DIR
13617# into the library and all subsequent libraries and executables linked
13618# against it.
13619hardcode_automatic=$hardcode_automatic
13620
13621# Set to yes if linker adds runtime paths of dependent libraries
13622# to runtime path list.
13623inherit_rpath=$inherit_rpath
13624
13625# Whether libtool must link a program against all its dependency libraries.
13626link_all_deplibs=$link_all_deplibs
13627
13628# Fix the shell variable \$srcfile for the compiler.
13629fix_srcfile_path=$lt_fix_srcfile_path
13630
13631# Set to "yes" if exported symbols are required.
13632always_export_symbols=$always_export_symbols
13633
13634# The commands to list exported symbols.
13635export_symbols_cmds=$lt_export_symbols_cmds
13636
13637# Symbols that should not be listed in the preloaded symbols.
13638exclude_expsyms=$lt_exclude_expsyms
13639
13640# Symbols that must always be exported.
13641include_expsyms=$lt_include_expsyms
13642
13643# Commands necessary for linking programs (against libraries) with templates.
13644prelink_cmds=$lt_prelink_cmds
13645
13646# Specify filename containing input files.
13647file_list_spec=$lt_file_list_spec
13648
13649# How to hardcode a shared library path into an executable.
13650hardcode_action=$hardcode_action
13651
13652# ### END LIBTOOL CONFIG
13653
13654_LT_EOF
13655
13656 case $host_os in
13657 aix3*)
13658 cat <<\_LT_EOF >> "$cfgfile"
13659# AIX sometimes has problems with the GCC collect2 program. For some
13660# reason, if we set the COLLECT_NAMES environment variable, the problems
13661# vanish in a puff of smoke.
13662if test "X${COLLECT_NAMES+set}" != Xset; then
13663 COLLECT_NAMES=
13664 export COLLECT_NAMES
13665fi
13666_LT_EOF
13667 ;;
13668 esac
13669
13670
13671ltmain="$ac_aux_dir/ltmain.sh"
13672
13673
13674 # We use sed instead of cat because bash on DJGPP gets confused if
13675 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13676 # text mode, it properly converts lines to CR/LF. This bash problem
13677 # is reportedly fixed, but why not run on old versions too?
13678 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13679 || (rm -f "$cfgfile"; exit 1)
13680
13681 case $xsi_shell in
13682 yes)
13683 cat << \_LT_EOF >> "$cfgfile"
13684
13685# func_dirname file append nondir_replacement
13686# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13687# otherwise set result to NONDIR_REPLACEMENT.
13688func_dirname ()
13689{
13690 case ${1} in
13691 */*) func_dirname_result="${1%/*}${2}" ;;
13692 * ) func_dirname_result="${3}" ;;
13693 esac
13694}
13695
13696# func_basename file
13697func_basename ()
13698{
13699 func_basename_result="${1##*/}"
13700}
13701
13702# func_dirname_and_basename file append nondir_replacement
13703# perform func_basename and func_dirname in a single function
13704# call:
13705# dirname: Compute the dirname of FILE. If nonempty,
13706# add APPEND to the result, otherwise set result
13707# to NONDIR_REPLACEMENT.
13708# value returned in "$func_dirname_result"
13709# basename: Compute filename of FILE.
13710# value retuned in "$func_basename_result"
13711# Implementation must be kept synchronized with func_dirname
13712# and func_basename. For efficiency, we do not delegate to
13713# those functions but instead duplicate the functionality here.
13714func_dirname_and_basename ()
13715{
13716 case ${1} in
13717 */*) func_dirname_result="${1%/*}${2}" ;;
13718 * ) func_dirname_result="${3}" ;;
13719 esac
13720 func_basename_result="${1##*/}"
13721}
13722
13723# func_stripname prefix suffix name
13724# strip PREFIX and SUFFIX off of NAME.
13725# PREFIX and SUFFIX must not contain globbing or regex special
13726# characters, hashes, percent signs, but SUFFIX may contain a leading
13727# dot (in which case that matches only a dot).
13728func_stripname ()
13729{
13730 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13731 # positional parameters, so assign one to ordinary parameter first.
13732 func_stripname_result=${3}
13733 func_stripname_result=${func_stripname_result#"${1}"}
13734 func_stripname_result=${func_stripname_result%"${2}"}
13735}
13736
13737# func_opt_split
13738func_opt_split ()
13739{
13740 func_opt_split_opt=${1%%=*}
13741 func_opt_split_arg=${1#*=}
13742}
13743
13744# func_lo2o object
13745func_lo2o ()
13746{
13747 case ${1} in
13748 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13749 *) func_lo2o_result=${1} ;;
13750 esac
13751}
13752
13753# func_xform libobj-or-source
13754func_xform ()
13755{
13756 func_xform_result=${1%.*}.lo
13757}
13758
13759# func_arith arithmetic-term...
13760func_arith ()
13761{
13762 func_arith_result=$(( $* ))
13763}
13764
13765# func_len string
13766# STRING may not start with a hyphen.
13767func_len ()
13768{
13769 func_len_result=${#1}
13770}
13771
13772_LT_EOF
13773 ;;
13774 *) # Bourne compatible functions.
13775 cat << \_LT_EOF >> "$cfgfile"
13776
13777# func_dirname file append nondir_replacement
13778# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13779# otherwise set result to NONDIR_REPLACEMENT.
13780func_dirname ()
13781{
13782 # Extract subdirectory from the argument.
13783 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13784 if test "X$func_dirname_result" = "X${1}"; then
13785 func_dirname_result="${3}"
13786 else
13787 func_dirname_result="$func_dirname_result${2}"
13788 fi
13789}
13790
13791# func_basename file
13792func_basename ()
13793{
13794 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13795}
13796
13797
13798# func_stripname prefix suffix name
13799# strip PREFIX and SUFFIX off of NAME.
13800# PREFIX and SUFFIX must not contain globbing or regex special
13801# characters, hashes, percent signs, but SUFFIX may contain a leading
13802# dot (in which case that matches only a dot).
13803# func_strip_suffix prefix name
13804func_stripname ()
13805{
13806 case ${2} in
13807 .*) func_stripname_result=`$ECHO "X${3}" \
13808 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13809 *) func_stripname_result=`$ECHO "X${3}" \
13810 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13811 esac
13812}
13813
13814# sed scripts:
13815my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13816my_sed_long_arg='1s/^-[^=]*=//'
13817
13818# func_opt_split
13819func_opt_split ()
13820{
13821 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13822 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13823}
13824
13825# func_lo2o object
13826func_lo2o ()
13827{
13828 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13829}
13830
13831# func_xform libobj-or-source
13832func_xform ()
13833{
13834 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13835}
13836
13837# func_arith arithmetic-term...
13838func_arith ()
13839{
13840 func_arith_result=`expr "$@"`
13841}
13842
13843# func_len string
13844# STRING may not start with a hyphen.
13845func_len ()
13846{
13847 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13848}
13849
13850_LT_EOF
13851esac
13852
13853case $lt_shell_append in
13854 yes)
13855 cat << \_LT_EOF >> "$cfgfile"
13856
13857# func_append var value
13858# Append VALUE to the end of shell variable VAR.
13859func_append ()
13860{
13861 eval "$1+=\$2"
13862}
13863_LT_EOF
13864 ;;
13865 *)
13866 cat << \_LT_EOF >> "$cfgfile"
13867
13868# func_append var value
13869# Append VALUE to the end of shell variable VAR.
13870func_append ()
13871{
13872 eval "$1=\$$1\$2"
13873}
13874
13875_LT_EOF
13876 ;;
13877 esac
13878
13879
13880 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13881 || (rm -f "$cfgfile"; exit 1)
13882
13883 mv -f "$cfgfile" "$ofile" ||
13884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13885 chmod +x "$ofile"
13886
13887 ;;
mlcreech94984912008-03-04 19:03:08 +000013888
drh8b727472009-01-19 18:18:40 +000013889 esac
13890done # for ac_tag
13891
drh71eb93e2001-09-28 01:34:43 +000013892
drhf922ca42015-05-14 15:39:18 +000013893as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013894_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013895ac_clean_files=$ac_clean_files_save
13896
drh8b727472009-01-19 18:18:40 +000013897test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013898 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013899
a.rottmann84e63352003-03-24 09:42:16 +000013900
drh71eb93e2001-09-28 01:34:43 +000013901# configure is writing to config.log, and then calls config.status.
13902# config.status does its own redirection, appending to config.log.
13903# Unfortunately, on DOS this fails, as config.log is still kept open
13904# by configure, so config.status won't be able to write to it; its
13905# output is simply discarded. So we exec the FD to /dev/null,
13906# effectively closing config.log, so it can be properly (re)opened and
13907# appended to by config.status. When coming back to configure, we
13908# need to make the FD available again.
13909if test "$no_create" != yes; then
13910 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013911 ac_config_status_args=
13912 test "$silent" = yes &&
13913 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013914 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013915 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013916 exec 5>>config.log
13917 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13918 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013919 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013920fi
drh8b727472009-01-19 18:18:40 +000013921if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13923$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013924fi
drh63a49ce2017-01-02 19:10:14 +000013925