blob: 64b95e912c9624abc92eb61765e99c4f62082a08 [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.
drh01d837d2017-07-27 19:59:37 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.21.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'
drh01d837d2017-07-27 19:59:37 +0000729PACKAGE_VERSION='3.21.0'
730PACKAGE_STRING='sqlite 3.21.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
775USE_AMALGAMATION
776TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000777TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000778TARGET_HAVE_READLINE
779TARGET_READLINE_INC
780TARGET_READLINE_LIBS
781HAVE_TCL
782TCL_SHLIB_SUFFIX
783TCL_STUB_LIB_SPEC
784TCL_STUB_LIB_FLAG
785TCL_STUB_LIB_FILE
786TCL_LIB_SPEC
787TCL_LIB_FLAG
788TCL_LIB_FILE
789TCL_INCLUDE_SPEC
790TCL_SRC_DIR
791TCL_BIN_DIR
792TCL_VERSION
793TARGET_EXEEXT
794SQLITE_OS_WIN
795SQLITE_OS_UNIX
796BUILD_EXEEXT
797TEMP_STORE
798ALLOWRELEASE
799SQLITE_THREADSAFE
800BUILD_CC
801VERSION_NUMBER
802RELEASE
803VERSION
804program_prefix
805TCLLIBDIR
806TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000884ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
drh8b727472009-01-19 18:18:40 +0000894enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
drhe44b8352015-10-30 14:25:57 +0000899enable_editline
drh8b727472009-01-19 18:18:40 +0000900enable_readline
901with_readline_lib
902with_readline_inc
903enable_debug
904enable_amalgamation
905enable_load_extension
drhc530b9c2016-07-25 11:27:22 +0000906enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000907enable_memsys3
drhce1d9f52015-10-09 12:48:33 +0000908enable_fts3
909enable_fts4
910enable_fts5
911enable_json1
drh83bebdd2017-08-28 17:00:12 +0000912enable_update_limit
drhce1d9f52015-10-09 12:48:33 +0000913enable_rtree
drh5e18d402016-05-03 13:14:18 +0000914enable_session
drh8b727472009-01-19 18:18:40 +0000915enable_gcov
916'
917 ac_precious_vars='build_alias
918host_alias
919target_alias
920CC
921CFLAGS
922LDFLAGS
923LIBS
924CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000925CPP
926TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000927
drh75897232000-05-29 14:26:00 +0000928
929# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000930ac_init_help=
931ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000932ac_unrecognized_opts=
933ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000934# The variables have the same names as the options, with
935# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000936cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000937exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000938no_create=
drh75897232000-05-29 14:26:00 +0000939no_recursion=
940prefix=NONE
941program_prefix=NONE
942program_suffix=NONE
943program_transform_name=s,x,x,
944silent=
945site=
946srcdir=
drh75897232000-05-29 14:26:00 +0000947verbose=
948x_includes=NONE
949x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000950
951# Installation directory options.
952# These are left unexpanded so users can "make install exec_prefix=/foo"
953# and all the variables that are supposed to be based on exec_prefix
954# by default will actually change.
955# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000956# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000957bindir='${exec_prefix}/bin'
958sbindir='${exec_prefix}/sbin'
959libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000960datarootdir='${prefix}/share'
961datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000962sysconfdir='${prefix}/etc'
963sharedstatedir='${prefix}/com'
964localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000965includedir='${prefix}/include'
966oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000967docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
968infodir='${datarootdir}/info'
969htmldir='${docdir}'
970dvidir='${docdir}'
971pdfdir='${docdir}'
972psdir='${docdir}'
973libdir='${exec_prefix}/lib'
974localedir='${datarootdir}/locale'
975mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000976
drh75897232000-05-29 14:26:00 +0000977ac_prev=
drh8b727472009-01-19 18:18:40 +0000978ac_dashdash=
drh75897232000-05-29 14:26:00 +0000979for ac_option
980do
drh75897232000-05-29 14:26:00 +0000981 # If the previous option needs an argument, assign it.
982 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000983 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000984 ac_prev=
985 continue
986 fi
987
drh8b727472009-01-19 18:18:40 +0000988 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000989 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 *=) ac_optarg= ;;
991 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000992 esac
drh75897232000-05-29 14:26:00 +0000993
994 # Accept the important Cygnus configure options, so we can diagnose typos.
995
drh8b727472009-01-19 18:18:40 +0000996 case $ac_dashdash$ac_option in
997 --)
998 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000999
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001 ac_prev=bindir ;;
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001003 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001004
1005 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001006 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001008 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001009
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001015 cache_file=$ac_optarg ;;
1016
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001019
drh8b727472009-01-19 18:18:40 +00001020 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001021 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001023 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001024
drh8b727472009-01-19 18:18:40 +00001025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1031
drh75897232000-05-29 14:26:00 +00001032 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001034 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001036 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=no ;;
1047
1048 -docdir | --docdir | --docdi | --doc | --do)
1049 ac_prev=docdir ;;
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1052
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054 ac_prev=dvidir ;;
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001057
1058 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001060 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001062 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"enable_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001071 esac
drh8b727472009-01-19 18:18:40 +00001072 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001073
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001081 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001082
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1086
drh71eb93e2001-09-28 01:34:43 +00001087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001093
1094 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001095 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001096 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001097 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001098
drh8b727472009-01-19 18:18:40 +00001099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1104
drh75897232000-05-29 14:26:00 +00001105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001110 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001111
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001115 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001116
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001120 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001121
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001127 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001128
drh8b727472009-01-19 18:18:40 +00001129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1133
drh75897232000-05-29 14:26:00 +00001134 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001135 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001139 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001140
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001144 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001145
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1149
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001151 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001152 no_create=yes ;;
1153
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1157
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001165 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001166
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001170 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001171
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001177 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001178
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001184 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001185
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001201 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001202
drh8b727472009-01-19 18:18:40 +00001203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1207
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1212
drh75897232000-05-29 14:26:00 +00001213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1216
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001221 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001222
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001232 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001233
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001237 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001238
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001242 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001243
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001249 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001250
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001252 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001254 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1258
drh71eb93e2001-09-28 01:34:43 +00001259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001261
1262 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001264 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001266 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1270 *"
1271"with_$ac_useropt"
1272"*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001275 esac
drh8b727472009-01-19 18:18:40 +00001276 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001277
1278 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001280 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001282 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287"with_$ac_useropt"
1288"*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001303 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001310 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001311
drhf922ca42015-05-14 15:39:18 +00001312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001314 ;;
1315
drh71eb93e2001-09-28 01:34:43 +00001316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322 esac
drh8b727472009-01-19 18:18:40 +00001323 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001324 export $ac_envvar ;;
1325
drh75897232000-05-29 14:26:00 +00001326 *)
drh71eb93e2001-09-28 01:34:43 +00001327 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001339 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001340fi
1341
drh8b727472009-01-19 18:18:40 +00001342if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
drhf922ca42015-05-14 15:39:18 +00001345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001347 esac
drh8b727472009-01-19 18:18:40 +00001348fi
drh866108f2008-05-13 00:57:21 +00001349
drh8b727472009-01-19 18:18:40 +00001350# Check all directory arguments for consistency.
1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001355do
drh8b727472009-01-19 18:18:40 +00001356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001358 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001362 esac
drh8b727472009-01-19 18:18:40 +00001363 # Be sure to have absolute directory names.
1364 case $ac_val in
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 esac
drhf922ca42015-05-14 15:39:18 +00001368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001369done
drh75897232000-05-29 14:26:00 +00001370
drh71eb93e2001-09-28 01:34:43 +00001371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001373# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001374build=$build_alias
1375host=$host_alias
1376target=$target_alias
drh75897232000-05-29 14:26:00 +00001377
a.rottmann84e63352003-03-24 09:42:16 +00001378# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1384 fi
1385fi
1386
1387ac_tool_prefix=
1388test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001391
a.rottmann84e63352003-03-24 09:42:16 +00001392
drh8b727472009-01-19 18:18:40 +00001393ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394ac_ls_di=`ls -di .` &&
1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001396 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001397test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001398 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001399
1400
drh75897232000-05-29 14:26:00 +00001401# Find the source files, if location was not specified.
1402if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410$as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)[^/].*/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\).*/{
1424 s//\1/
1425 q
1426 }
1427 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001428 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001429 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001430 srcdir=..
1431 fi
1432else
1433 ac_srcdir_defaulted=no
1434fi
drh8b727472009-01-19 18:18:40 +00001435if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001438fi
drh8b727472009-01-19 18:18:40 +00001439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001442 pwd)`
1443# When building in place, set srcdir=.
1444if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1446fi
1447# Remove unnecessary trailing slashes from srcdir.
1448# Double slashes in file names in object file debugging info
1449# mess up M-x gdb in Emacs.
1450case $srcdir in
1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452esac
1453for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458done
drh75897232000-05-29 14:26:00 +00001459
drh71eb93e2001-09-28 01:34:43 +00001460#
1461# Report the --help message.
1462#
1463if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001466 cat <<_ACEOF
drh01d837d2017-07-27 19:59:37 +00001467\`configure' configures sqlite 3.21.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001468
1469Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472VAR=VALUE. See below for descriptions of some of the useful variables.
1473
1474Defaults for the options are specified in brackets.
1475
1476Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001481 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486
drh71eb93e2001-09-28 01:34:43 +00001487Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001489 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001491 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001492
1493By default, \`make install' will install all the files in
1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496for instance \`--prefix=\$HOME'.
1497
1498For better control, use the options below.
1499
1500Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001520_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001521
a.rottmann84e63352003-03-24 09:42:16 +00001522 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001523
1524System types:
1525 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001528fi
1529
1530if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001531 case $ac_init_help in
drh01d837d2017-07-27 19:59:37 +00001532 short | recursive ) echo "Configuration of sqlite 3.21.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001533 esac
a.rottmann84e63352003-03-24 09:42:16 +00001534 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001535
1536Optional Features:
drh8b727472009-01-19 18:18:40 +00001537 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001540 --enable-shared[=PKGS] build shared libraries [default=yes]
1541 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001544 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001545 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001546 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001547 --enable-releasemode Support libtool link to release mode
1548 --enable-tempstore Use an in-ram database for temporary tables
1549 (never,no,yes,always)
1550 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001551 --enable-editline enable BSD editline support
1552 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001553 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001554 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001555 separately
drh05c7e0b2015-01-10 14:27:17 +00001556 --disable-load-extension
1557 Disable loading of external extensions
drhc530b9c2016-07-25 11:27:22 +00001558 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001559 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001560 --enable-fts3 Enable the FTS3 extension
1561 --enable-fts4 Enable the FTS4 extension
1562 --enable-fts5 Enable the FTS5 extension
1563 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001564 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drhce1d9f52015-10-09 12:48:33 +00001565 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001566 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001567 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001568
1569Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001572 --with-pic try to use only PIC/non-PIC objects [default=use
1573 both]
mlcreech636a9952008-05-05 22:52:56 +00001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001575 --with-tcl=DIR directory containing tcl configuration
1576 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001577 --with-readline-lib specify readline library
1578 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001579
1580Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001585 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001587 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001588 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001589 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001590
1591Use these variables to override the choices made by `configure' or to help
1592it to find libraries and programs with nonstandard names/locations.
1593
drhf922ca42015-05-14 15:39:18 +00001594Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001595_ACEOF
drh8b727472009-01-19 18:18:40 +00001596ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001597fi
1598
1599if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
a.rottmann84e63352003-03-24 09:42:16 +00001605 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001606
drh8b727472009-01-19 18:18:40 +00001607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001622
a.rottmann84e63352003-03-24 09:42:16 +00001623case $srcdir in
drh8b727472009-01-19 18:18:40 +00001624 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001625 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001629 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001636esac
drh8b727472009-01-19 18:18:40 +00001637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001638
drh8b727472009-01-19 18:18:40 +00001639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001647 else
drh8b727472009-01-19 18:18:40 +00001648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001651 done
1652fi
1653
drh8b727472009-01-19 18:18:40 +00001654test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001655if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001656 cat <<\_ACEOF
drh01d837d2017-07-27 19:59:37 +00001657sqlite configure 3.21.0
drhf922ca42015-05-14 15:39:18 +00001658generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001659
drhf922ca42015-05-14 15:39:18 +00001660Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001663_ACEOF
drh8b727472009-01-19 18:18:40 +00001664 exit
drh71eb93e2001-09-28 01:34:43 +00001665fi
drhf922ca42015-05-14 15:39:18 +00001666
1667## ------------------------ ##
1668## Autoconf initialization. ##
1669## ------------------------ ##
1670
1671# ac_fn_c_try_compile LINENO
1672# --------------------------
1673# Try to compile conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_compile ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707} # ac_fn_c_try_compile
1708
1709# ac_fn_c_try_link LINENO
1710# -----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_link ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 test -x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744fi
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753} # ac_fn_c_try_link
1754
1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists and can be compiled using the include files in
1758# INCLUDES, setting the cache variable VAR accordingly.
1759ac_fn_c_check_header_compile ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774else
1775 eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784} # ac_fn_c_check_header_compile
1785
1786# ac_fn_c_try_cpp LINENO
1787# ----------------------
1788# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_c_try_cpp ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_cpp conftest.$ac_ext"
1793case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } > conftest.i && {
1808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 }; then :
1811 ac_retval=0
1812else
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817fi
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1820
1821} # ac_fn_c_try_cpp
1822
1823# ac_fn_c_try_run LINENO
1824# ----------------------
1825# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826# that executables *can* be run.
1827ac_fn_c_try_run ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1831case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1848 ac_status=$?
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1851 ac_retval=0
1852else
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_retval=$ac_status
1858fi
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_run
1864
1865# ac_fn_c_check_func LINENO FUNC VAR
1866# ----------------------------------
1867# Tests whether FUNC exists, setting the cache variable VAR accordingly
1868ac_fn_c_check_func ()
1869{
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (); below.
1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885 <limits.h> exists even on freestanding compilers. */
1886
1887#ifdef __STDC__
1888# include <limits.h>
1889#else
1890# include <assert.h>
1891#endif
1892
1893#undef $2
1894
1895/* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1898#ifdef __cplusplus
1899extern "C"
1900#endif
1901char $2 ();
1902/* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905#if defined __stub_$2 || defined __stub___$2
1906choke me
1907#endif
1908
1909int
1910main ()
1911{
1912return $2 ();
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_link "$LINENO"; then :
1918 eval "$3=yes"
1919else
1920 eval "$3=no"
1921fi
1922rm -f core conftest.err conftest.$ac_objext \
1923 conftest$ac_exeext conftest.$ac_ext
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_func
1931
1932# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1933# -------------------------------------------
1934# Tests whether TYPE exists after having included INCLUDES, setting cache
1935# variable VAR accordingly.
1936ac_fn_c_check_type ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
1941if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943else
1944 eval "$3=no"
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h. */
1947$4
1948int
1949main ()
1950{
1951if (sizeof ($2))
1952 return 0;
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h. */
1960$4
1961int
1962main ()
1963{
1964if (sizeof (($2)))
1965 return 0;
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971
1972else
1973 eval "$3=yes"
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984} # ac_fn_c_check_type
1985
1986# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1987# -------------------------------------------------------
1988# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989# the include files in INCLUDES and setting the cache variable VAR
1990# accordingly.
1991ac_fn_c_check_header_mongrel ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if eval \${$3+:} false; then :
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999fi
2000eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003else
2004 # Is the header compilable?
2005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006$as_echo_n "checking $2 usability... " >&6; }
2007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$4
2010#include <$2>
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_header_compiler=yes
2014else
2015 ac_header_compiler=no
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019$as_echo "$ac_header_compiler" >&6; }
2020
2021# Is the header present?
2022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023$as_echo_n "checking $2 presence... " >&6; }
2024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026#include <$2>
2027_ACEOF
2028if ac_fn_c_try_cpp "$LINENO"; then :
2029 ac_header_preproc=yes
2030else
2031 ac_header_preproc=no
2032fi
2033rm -f conftest.err conftest.i conftest.$ac_ext
2034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035$as_echo "$ac_header_preproc" >&6; }
2036
2037# So? What about this header?
2038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2039 yes:no: )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 ;;
2045 no:yes:* )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2049$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2053$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 ;;
2057esac
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062else
2063 eval "$3=\$ac_header_compiler"
2064fi
2065eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068fi
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070
2071} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002072cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002073This file contains any messages produced by compilers while
2074running configure, to aid debugging if configure makes a mistake.
2075
drh01d837d2017-07-27 19:59:37 +00002076It was created by sqlite $as_me 3.21.0, which was
drhf922ca42015-05-14 15:39:18 +00002077generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002078
2079 $ $0 $@
2080
a.rottmann84e63352003-03-24 09:42:16 +00002081_ACEOF
drh8b727472009-01-19 18:18:40 +00002082exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002083{
2084cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002085## --------- ##
2086## Platform. ##
2087## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002088
2089hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2090uname -m = `(uname -m) 2>/dev/null || echo unknown`
2091uname -r = `(uname -r) 2>/dev/null || echo unknown`
2092uname -s = `(uname -s) 2>/dev/null || echo unknown`
2093uname -v = `(uname -v) 2>/dev/null || echo unknown`
2094
2095/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2096/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2097
2098/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2099/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2100/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002101/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002102/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2103/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2104/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2105
drh71eb93e2001-09-28 01:34:43 +00002106_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002107
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002113 $as_echo "PATH: $as_dir"
2114 done
drh8b727472009-01-19 18:18:40 +00002115IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002116
drh71eb93e2001-09-28 01:34:43 +00002117} >&5
2118
a.rottmann84e63352003-03-24 09:42:16 +00002119cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002120
a.rottmann84e63352003-03-24 09:42:16 +00002121
2122## ----------- ##
2123## Core tests. ##
2124## ----------- ##
2125
2126_ACEOF
2127
drh71eb93e2001-09-28 01:34:43 +00002128
2129# Keep a trace of the command line.
2130# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002131# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002132# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002133# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002134ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002135ac_configure_args0=
2136ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002137ac_must_keep_next=false
2138for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002139do
a.rottmann84e63352003-03-24 09:42:16 +00002140 for ac_arg
2141 do
2142 case $ac_arg in
2143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2145 | -silent | --silent | --silen | --sile | --sil)
2146 continue ;;
drh8b727472009-01-19 18:18:40 +00002147 *\'*)
2148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002149 esac
2150 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002152 2)
drhf922ca42015-05-14 15:39:18 +00002153 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002154 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002155 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002156 else
a.rottmann964dbb12004-02-26 19:47:42 +00002157 case $ac_arg in
2158 *=* | --config-cache | -C | -disable-* | --disable-* \
2159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2161 | -with-* | --with-* | -without-* | --without-* | --x)
2162 case "$ac_configure_args0 " in
2163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2164 esac
2165 ;;
2166 -* ) ac_must_keep_next=true ;;
2167 esac
a.rottmann84e63352003-03-24 09:42:16 +00002168 fi
drhf922ca42015-05-14 15:39:18 +00002169 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002170 ;;
2171 esac
2172 done
drh71eb93e2001-09-28 01:34:43 +00002173done
drhf922ca42015-05-14 15:39:18 +00002174{ ac_configure_args0=; unset ac_configure_args0;}
2175{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002176
2177# When interrupted or exit'd, cleanup temporary files, and complete
2178# config.log. We remove comments because anyway the quotes in there
2179# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002180# WARNING: Use '\'' to represent an apostrophe within the trap.
2181# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002182trap 'exit_status=$?
2183 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002184 {
2185 echo
2186
drhf922ca42015-05-14 15:39:18 +00002187 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002188## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002189## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002190 echo
2191 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002192(
2193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in #(
2196 *${as_nl}*)
2197 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2199$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002200 esac
2201 case $ac_var in #(
2202 _ | IFS | as_nl) ;; #(
2203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002204 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002205 esac ;;
2206 esac
2207 done
drh71eb93e2001-09-28 01:34:43 +00002208 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2210 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002211 sed -n \
drh8b727472009-01-19 18:18:40 +00002212 "s/'\''/'\''\\\\'\'''\''/g;
2213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214 ;; #(
drh866108f2008-05-13 00:57:21 +00002215 *)
drh8b727472009-01-19 18:18:40 +00002216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002217 ;;
drh8b727472009-01-19 18:18:40 +00002218 esac |
2219 sort
2220)
a.rottmann84e63352003-03-24 09:42:16 +00002221 echo
2222
drhf922ca42015-05-14 15:39:18 +00002223 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002224## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002225## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002226 echo
2227 for ac_var in $ac_subst_vars
2228 do
drh8b727472009-01-19 18:18:40 +00002229 eval ac_val=\$$ac_var
2230 case $ac_val in
2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232 esac
2233 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002234 done | sort
2235 echo
2236
2237 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002238 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002239## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002240## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002241 echo
2242 for ac_var in $ac_subst_files
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 fi
2252
2253 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002254 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002255## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002256## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002257 echo
drh8b727472009-01-19 18:18:40 +00002258 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002259 echo
2260 fi
2261 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002262 $as_echo "$as_me: caught signal $ac_signal"
2263 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002264 } >&5
drh8b727472009-01-19 18:18:40 +00002265 rm -f core *.core core.conftest.* &&
2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002267 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002268' 0
drh71eb93e2001-09-28 01:34:43 +00002269for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002271done
2272ac_signal=0
2273
2274# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002275rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002276
drhf922ca42015-05-14 15:39:18 +00002277$as_echo "/* confdefs.h */" > confdefs.h
2278
a.rottmann84e63352003-03-24 09:42:16 +00002279# Predefined preprocessor variables.
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_NAME "$PACKAGE_NAME"
2283_ACEOF
2284
a.rottmann84e63352003-03-24 09:42:16 +00002285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287_ACEOF
2288
a.rottmann84e63352003-03-24 09:42:16 +00002289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_VERSION "$PACKAGE_VERSION"
2291_ACEOF
2292
a.rottmann84e63352003-03-24 09:42:16 +00002293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_STRING "$PACKAGE_STRING"
2295_ACEOF
2296
dana9f39fd2011-08-12 16:34:42 +00002297cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002299_ACEOF
2300
drhf922ca42015-05-14 15:39:18 +00002301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_URL "$PACKAGE_URL"
2303_ACEOF
2304
a.rottmann84e63352003-03-24 09:42:16 +00002305
drh71eb93e2001-09-28 01:34:43 +00002306# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002307# Prefer an explicitly selected file to automatically selected ones.
2308ac_site_file1=NONE
2309ac_site_file2=NONE
2310if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002311 # We do not want a PATH search for config.site.
2312 case $CONFIG_SITE in #((
2313 -*) ac_site_file1=./$CONFIG_SITE;;
2314 */*) ac_site_file1=$CONFIG_SITE;;
2315 *) ac_site_file1=./$CONFIG_SITE;;
2316 esac
drh8b727472009-01-19 18:18:40 +00002317elif test "x$prefix" != xNONE; then
2318 ac_site_file1=$prefix/share/config.site
2319 ac_site_file2=$prefix/etc/config.site
2320else
2321 ac_site_file1=$ac_default_prefix/share/config.site
2322 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002323fi
drh8b727472009-01-19 18:18:40 +00002324for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2325do
2326 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002329$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002330 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002331 . "$ac_site_file" \
2332 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334as_fn_error $? "failed to load site script $ac_site_file
2335See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002336 fi
2337done
2338
2339if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002340 # Some versions of bash will fail to source /dev/null (special files
2341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002344$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002345 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2347 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002348 esac
2349 fi
drh75897232000-05-29 14:26:00 +00002350else
drhf922ca42015-05-14 15:39:18 +00002351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002352$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002353 >$cache_file
2354fi
2355
2356# Check that the precious variables saved in the cache have kept the same
2357# value.
2358ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002359for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002360 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2361 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002362 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2363 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002364 case $ac_old_set,$ac_new_set in
2365 set,)
drhf922ca42015-05-14 15:39:18 +00002366 { $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 +00002367$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002368 ac_cache_corrupted=: ;;
2369 ,set)
drhf922ca42015-05-14 15:39:18 +00002370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002371$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002372 ac_cache_corrupted=: ;;
2373 ,);;
2374 *)
2375 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002376 # differences in whitespace do not lead to failure.
2377 ac_old_val_w=`echo x $ac_old_val`
2378 ac_new_val_w=`echo x $ac_new_val`
2379 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002381$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2382 ac_cache_corrupted=:
2383 else
drhf922ca42015-05-14 15:39:18 +00002384 { $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 +00002385$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2386 eval $ac_var=\$ac_old_val
2387 fi
drhf922ca42015-05-14 15:39:18 +00002388 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002389$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002390 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002391$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002392 fi;;
2393 esac
a.rottmann84e63352003-03-24 09:42:16 +00002394 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002395 if test "$ac_new_set" = set; then
2396 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002397 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002398 *) ac_arg=$ac_var=$ac_new_val ;;
2399 esac
2400 case " $ac_configure_args " in
2401 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002402 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002403 esac
2404 fi
2405done
2406if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002410$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002411 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002412fi
drhf922ca42015-05-14 15:39:18 +00002413## -------------------- ##
2414## Main body of script. ##
2415## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002416
drh75897232000-05-29 14:26:00 +00002417ac_ext=c
drh75897232000-05-29 14:26:00 +00002418ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002422
a.rottmann84e63352003-03-24 09:42:16 +00002423
2424
drh04446102009-06-15 00:04:06 +00002425sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002426if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002427as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002428 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2429 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002430please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002431fi
2432
drh75897232000-05-29 14:26:00 +00002433#########
drh71eb93e2001-09-28 01:34:43 +00002434# Programs needed
drh75897232000-05-29 14:26:00 +00002435#
mlcreech636a9952008-05-05 22:52:56 +00002436case `pwd` in
2437 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002439$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002440esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002441
mlcreech94984912008-03-04 19:03:08 +00002442
mlcreech636a9952008-05-05 22:52:56 +00002443
vapier6acb2cf2009-01-28 04:46:28 +00002444macro_version='2.2.6'
2445macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002446
mlcreech94984912008-03-04 19:03:08 +00002447
mlcreech94984912008-03-04 19:03:08 +00002448
a.rottmann9bc8b932004-02-29 15:18:31 +00002449
mlcreech636a9952008-05-05 22:52:56 +00002450
2451
2452
2453
2454
2455
2456
2457
2458
2459ltmain="$ac_aux_dir/ltmain.sh"
2460
drh71eb93e2001-09-28 01:34:43 +00002461ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002462for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002463 if test -f "$ac_dir/install-sh"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/install-sh -c"
2466 break
2467 elif test -f "$ac_dir/install.sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install.sh -c"
2470 break
2471 elif test -f "$ac_dir/shtool"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/shtool install -c"
2474 break
2475 fi
drh71eb93e2001-09-28 01:34:43 +00002476done
2477if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002478 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002479fi
drh8b727472009-01-19 18:18:40 +00002480
2481# These three variables are undocumented and unsupported,
2482# and are intended to be withdrawn in a future Autoconf release.
2483# They can cause serious problems if a builder's source tree is in a directory
2484# whose full name contains unusual characters.
2485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488
drh71eb93e2001-09-28 01:34:43 +00002489
2490# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002492 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002493
drhf922ca42015-05-14 15:39:18 +00002494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002495$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002496if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002497 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002498else
drh8b727472009-01-19 18:18:40 +00002499 ac_build_alias=$build_alias
2500test "x$ac_build_alias" = x &&
2501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2502test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002506
2507fi
drhf922ca42015-05-14 15:39:18 +00002508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002509$as_echo "$ac_cv_build" >&6; }
2510case $ac_cv_build in
2511*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002513esac
drh71eb93e2001-09-28 01:34:43 +00002514build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002515ac_save_IFS=$IFS; IFS='-'
2516set x $ac_cv_build
2517shift
2518build_cpu=$1
2519build_vendor=$2
2520shift; shift
2521# Remember, the first character of IFS is used to create $*,
2522# except with old shells:
2523build_os=$*
2524IFS=$ac_save_IFS
2525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002526
a.rottmann84e63352003-03-24 09:42:16 +00002527
drhf922ca42015-05-14 15:39:18 +00002528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002529$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002530if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002531 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002532else
drh8b727472009-01-19 18:18:40 +00002533 if test "x$host_alias" = x; then
2534 ac_cv_host=$ac_cv_build
2535else
2536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002538fi
drh71eb93e2001-09-28 01:34:43 +00002539
2540fi
drhf922ca42015-05-14 15:39:18 +00002541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002542$as_echo "$ac_cv_host" >&6; }
2543case $ac_cv_host in
2544*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002545*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002546esac
drh71eb93e2001-09-28 01:34:43 +00002547host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002548ac_save_IFS=$IFS; IFS='-'
2549set x $ac_cv_host
2550shift
2551host_cpu=$1
2552host_vendor=$2
2553shift; shift
2554# Remember, the first character of IFS is used to create $*,
2555# except with old shells:
2556host_os=$*
2557IFS=$ac_save_IFS
2558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002559
a.rottmann84e63352003-03-24 09:42:16 +00002560
drh71eb93e2001-09-28 01:34:43 +00002561ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2568set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002570$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002571if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002572 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002573else
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2576else
a.rottmann84e63352003-03-24 09:42:16 +00002577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002586 break 2
2587 fi
2588done
drhf922ca42015-05-14 15:39:18 +00002589 done
drh8b727472009-01-19 18:18:40 +00002590IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002591
2592fi
2593fi
2594CC=$ac_cv_prog_CC
2595if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002597$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002598else
drhf922ca42015-05-14 15:39:18 +00002599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002600$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002601fi
2602
drh8b727472009-01-19 18:18:40 +00002603
drh71eb93e2001-09-28 01:34:43 +00002604fi
2605if test -z "$ac_cv_prog_CC"; then
2606 ac_ct_CC=$CC
2607 # Extract the first word of "gcc", so it can be a program name with args.
2608set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002610$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002611if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002612 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002613else
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2616else
a.rottmann84e63352003-03-24 09:42:16 +00002617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002624 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002626 break 2
2627 fi
2628done
drhf922ca42015-05-14 15:39:18 +00002629 done
drh8b727472009-01-19 18:18:40 +00002630IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002631
2632fi
2633fi
2634ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002637$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002638else
drhf922ca42015-05-14 15:39:18 +00002639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002640$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002641fi
2642
drh8b727472009-01-19 18:18:40 +00002643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647yes:)
drhf922ca42015-05-14 15:39:18 +00002648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002650ac_tool_warned=yes ;;
2651esac
2652 CC=$ac_ct_CC
2653 fi
drh71eb93e2001-09-28 01:34:43 +00002654else
2655 CC="$ac_cv_prog_CC"
2656fi
2657
2658if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002661set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002663$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002664if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002665 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002666else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669else
a.rottmann84e63352003-03-24 09:42:16 +00002670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002677 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002679 break 2
2680 fi
2681done
drhf922ca42015-05-14 15:39:18 +00002682 done
drh8b727472009-01-19 18:18:40 +00002683IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002684
2685fi
2686fi
2687CC=$ac_cv_prog_CC
2688if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002690$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002691else
drhf922ca42015-05-14 15:39:18 +00002692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002693$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002694fi
2695
drh8b727472009-01-19 18:18:40 +00002696
a.rottmann84e63352003-03-24 09:42:16 +00002697 fi
drh71eb93e2001-09-28 01:34:43 +00002698fi
2699if test -z "$CC"; then
2700 # Extract the first word of "cc", so it can be a program name with args.
2701set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002703$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002704if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002705 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002706else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709else
2710 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2719 ac_prog_rejected=yes
2720 continue
2721 fi
2722 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002724 break 2
2725 fi
2726done
drhf922ca42015-05-14 15:39:18 +00002727 done
drh8b727472009-01-19 18:18:40 +00002728IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002729
2730if test $ac_prog_rejected = yes; then
2731 # We found a bogon in the path, so make sure we never use it.
2732 set dummy $ac_cv_prog_CC
2733 shift
2734 if test $# != 0; then
2735 # We chose a different compiler from the bogus one.
2736 # However, it has the same basename, so the bogon will be chosen
2737 # first if we set CC to just the basename; use the full file name.
2738 shift
a.rottmann84e63352003-03-24 09:42:16 +00002739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002740 fi
2741fi
2742fi
2743fi
2744CC=$ac_cv_prog_CC
2745if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002747$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002748else
drhf922ca42015-05-14 15:39:18 +00002749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002750$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002751fi
2752
drh8b727472009-01-19 18:18:40 +00002753
drh71eb93e2001-09-28 01:34:43 +00002754fi
2755if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002757 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002758 do
2759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2760set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002762$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002763if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002764 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002765else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
a.rottmann84e63352003-03-24 09:42:16 +00002769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002778 break 2
2779 fi
2780done
drhf922ca42015-05-14 15:39:18 +00002781 done
drh8b727472009-01-19 18:18:40 +00002782IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002783
2784fi
2785fi
2786CC=$ac_cv_prog_CC
2787if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002789$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002790else
drhf922ca42015-05-14 15:39:18 +00002791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002792$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002793fi
2794
drh8b727472009-01-19 18:18:40 +00002795
drh71eb93e2001-09-28 01:34:43 +00002796 test -n "$CC" && break
2797 done
2798fi
2799if test -z "$CC"; then
2800 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002801 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002802do
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002806$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002807if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002808 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002809else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812else
a.rottmann84e63352003-03-24 09:42:16 +00002813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002820 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002822 break 2
2823 fi
2824done
drhf922ca42015-05-14 15:39:18 +00002825 done
drh8b727472009-01-19 18:18:40 +00002826IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002827
2828fi
2829fi
2830ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002833$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002834else
drhf922ca42015-05-14 15:39:18 +00002835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002836$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002837fi
2838
drh8b727472009-01-19 18:18:40 +00002839
drh71eb93e2001-09-28 01:34:43 +00002840 test -n "$ac_ct_CC" && break
2841done
2842
drh8b727472009-01-19 18:18:40 +00002843 if test "x$ac_ct_CC" = x; then
2844 CC=""
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847yes:)
drhf922ca42015-05-14 15:39:18 +00002848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002850ac_tool_warned=yes ;;
2851esac
2852 CC=$ac_ct_CC
2853 fi
drh71eb93e2001-09-28 01:34:43 +00002854fi
2855
2856fi
2857
a.rottmann84e63352003-03-24 09:42:16 +00002858
drhf922ca42015-05-14 15:39:18 +00002859test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861as_fn_error $? "no acceptable C compiler found in \$PATH
2862See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002863
2864# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002865$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002866set X $ac_compile
2867ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002868for ac_option in --version -v -V -qversion; do
2869 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002870case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
drhf922ca42015-05-14 15:39:18 +00002874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875$as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002877 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002878 if test -s conftest.err; then
2879 sed '10a\
2880... rest of stderr output deleted ...
2881 10q' conftest.err >conftest.er1
2882 cat conftest.er1 >&5
2883 fi
2884 rm -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }
2887done
drh71eb93e2001-09-28 01:34:43 +00002888
drhf922ca42015-05-14 15:39:18 +00002889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002890/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002891
2892int
2893main ()
2894{
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002901ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002902# Try to create an executable without -o first, disregard a.out.
2903# It will help us diagnose broken compilers, and finding out an intuition
2904# of exeext.
drhf922ca42015-05-14 15:39:18 +00002905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2906$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002907ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002908
drh8b727472009-01-19 18:18:40 +00002909# The possible output files:
2910ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911
2912ac_rmfiles=
2913for ac_file in $ac_files
2914do
2915 case $ac_file in
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 esac
2919done
2920rm -f $ac_rmfiles
2921
drhf922ca42015-05-14 15:39:18 +00002922if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
drhf922ca42015-05-14 15:39:18 +00002927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002929 (eval "$ac_link_default") 2>&5
2930 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935# in a Makefile. We should not override ac_cv_exeext if it was cached,
2936# so that the user can short-circuit this test for compilers unknown to
2937# Autoconf.
2938for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002939do
2940 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002941 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002943 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002944 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002945 # We found the default executable, but exeext='' is most
2946 # certainly right.
2947 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002948 *.* )
drhf922ca42015-05-14 15:39:18 +00002949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002950 then :; else
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 fi
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2957 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002958 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002959 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002960 break;;
drh71eb93e2001-09-28 01:34:43 +00002961 esac
2962done
drh8b727472009-01-19 18:18:40 +00002963test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
drh71eb93e2001-09-28 01:34:43 +00002965else
drh8b727472009-01-19 18:18:40 +00002966 ac_file=''
2967fi
drhf922ca42015-05-14 15:39:18 +00002968if test -z "$ac_file"; then :
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
2971$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002972sed 's/^/| /' conftest.$ac_ext >&5
2973
drhf922ca42015-05-14 15:39:18 +00002974{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976as_fn_error 77 "C compiler cannot create executables
2977See \`config.log' for more details" "$LINENO" 5; }
2978else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002980$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983$as_echo_n "checking for C compiler default output file name... " >&6; }
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2985$as_echo "$ac_file" >&6; }
2986ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002987
drh8b727472009-01-19 18:18:40 +00002988rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002989ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002991$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002992if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
drhf922ca42015-05-14 15:39:18 +00002997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002999 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003000 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3005# work properly (i.e., refer to `conftest.exe'), while it won't with
3006# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003007for ac_file in conftest.exe conftest conftest.*; do
3008 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003009 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003012 break;;
drh71eb93e2001-09-28 01:34:43 +00003013 * ) break;;
3014 esac
3015done
3016else
drhf922ca42015-05-14 15:39:18 +00003017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3020See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003021fi
drhf922ca42015-05-14 15:39:18 +00003022rm -f conftest conftest$ac_cv_exeext
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003024$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003025
3026rm -f conftest.$ac_ext
3027EXEEXT=$ac_cv_exeext
3028ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030/* end confdefs.h. */
3031#include <stdio.h>
3032int
3033main ()
3034{
3035FILE *f = fopen ("conftest.out", "w");
3036 return ferror (f) || fclose (f) != 0;
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042ac_clean_files="$ac_clean_files conftest.out"
3043# Check that the compiler produces executables we can run. If not, either
3044# the compiler is broken, or we cross compile.
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3046$as_echo_n "checking whether we are cross compiling... " >&6; }
3047if test "$cross_compiling" != yes; then
3048 { { ac_try="$ac_link"
3049case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 if { ac_try='./conftest$ac_cv_exeext'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065$as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3070 cross_compiling=no
3071 else
3072 if test "$cross_compiling" = maybe; then
3073 cross_compiling=yes
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077as_fn_error $? "cannot run C compiled programs.
3078If you meant to cross compile, use \`--host'.
3079See \`config.log' for more details" "$LINENO" 5; }
3080 fi
3081 fi
3082fi
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084$as_echo "$cross_compiling" >&6; }
3085
3086rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3087ac_clean_files=$ac_clean_files_save
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003089$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003090if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003091 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003092else
drhf922ca42015-05-14 15:39:18 +00003093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003094/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003095
3096int
3097main ()
3098{
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003105if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
drhf922ca42015-05-14 15:39:18 +00003110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003112 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003113 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003118 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 break;;
3122 esac
3123done
3124else
drh8b727472009-01-19 18:18:40 +00003125 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003126sed 's/^/| /' conftest.$ac_ext >&5
3127
drhf922ca42015-05-14 15:39:18 +00003128{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130as_fn_error $? "cannot compute suffix of object files: cannot compile
3131See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003132fi
drh71eb93e2001-09-28 01:34:43 +00003133rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134fi
drhf922ca42015-05-14 15:39:18 +00003135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003136$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003137OBJEXT=$ac_cv_objext
3138ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003141if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003142 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003143else
drhf922ca42015-05-14 15:39:18 +00003144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003145/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003146
3147int
3148main ()
3149{
3150#ifndef __GNUC__
3151 choke me
3152#endif
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
drhf922ca42015-05-14 15:39:18 +00003158if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003159 ac_compiler_gnu=yes
3160else
drhf922ca42015-05-14 15:39:18 +00003161 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003162fi
drh8b727472009-01-19 18:18:40 +00003163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003164ac_cv_c_compiler_gnu=$ac_compiler_gnu
3165
3166fi
drhf922ca42015-05-14 15:39:18 +00003167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003168$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169if test $ac_compiler_gnu = yes; then
3170 GCC=yes
3171else
3172 GCC=
3173fi
drh71eb93e2001-09-28 01:34:43 +00003174ac_test_CFLAGS=${CFLAGS+set}
3175ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003177$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003178if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003179 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003180else
drh8b727472009-01-19 18:18:40 +00003181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3183 ac_cv_prog_cc_g=no
3184 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003186/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003187
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
drhf922ca42015-05-14 15:39:18 +00003196if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003197 ac_cv_prog_cc_g=yes
3198else
drhf922ca42015-05-14 15:39:18 +00003199 CFLAGS=""
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003201/* end confdefs.h. */
3202
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 :
drh710658c2012-01-16 13:00:05 +00003212
drhf922ca42015-05-14 15:39:18 +00003213else
3214 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003215 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003217/* end confdefs.h. */
3218
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
drhf922ca42015-05-14 15:39:18 +00003227if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003228 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003229fi
drh8b727472009-01-19 18:18:40 +00003230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003231fi
drh8b727472009-01-19 18:18:40 +00003232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233fi
drh8b727472009-01-19 18:18:40 +00003234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3236fi
drhf922ca42015-05-14 15:39:18 +00003237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003238$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003239if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3246 fi
3247else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3252 fi
3253fi
drhf922ca42015-05-14 15:39:18 +00003254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003255$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003256if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003257 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003258else
drh8b727472009-01-19 18:18:40 +00003259 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003260ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003262/* end confdefs.h. */
3263#include <stdarg.h>
3264#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003265struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
a.rottmann964dbb12004-02-26 19:47:42 +00003284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003288 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003291 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
drh8b727472009-01-19 18:18:40 +00003294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
a.rottmann84e63352003-03-24 09:42:16 +00003299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
drh8b727472009-01-19 18:18:40 +00003313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003315do
3316 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003317 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003318 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003319fi
drh8b727472009-01-19 18:18:40 +00003320rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003322done
drh8b727472009-01-19 18:18:40 +00003323rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003324CC=$ac_save_CC
3325
3326fi
drh8b727472009-01-19 18:18:40 +00003327# AC_CACHE_VAL
3328case "x$ac_cv_prog_cc_c89" in
3329 x)
drhf922ca42015-05-14 15:39:18 +00003330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003331$as_echo "none needed" >&6; } ;;
3332 xno)
drhf922ca42015-05-14 15:39:18 +00003333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003334$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003335 *)
drh8b727472009-01-19 18:18:40 +00003336 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003338$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003339esac
drhf922ca42015-05-14 15:39:18 +00003340if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003341
drhf922ca42015-05-14 15:39:18 +00003342fi
a.rottmann84e63352003-03-24 09:42:16 +00003343
drh71eb93e2001-09-28 01:34:43 +00003344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349
drhf922ca42015-05-14 15:39:18 +00003350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003351$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003352if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003353 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003354else
drh8b727472009-01-19 18:18:40 +00003355 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3356 for ac_i in 1 2 3 4 5 6 7; do
3357 ac_script="$ac_script$as_nl$ac_script"
3358 done
3359 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003360 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003361 if test -z "$SED"; then
3362 ac_path_SED_found=false
3363 # Loop through the user's path and test for each of PROGNAME-LIST
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003365for as_dir in $PATH
3366do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003369 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003370 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003371 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003372 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003373# Check for GNU ac_path_SED and select it if it is found.
3374 # Check for GNU $ac_path_SED
3375case `"$ac_path_SED" --version 2>&1` in
3376*GNU*)
3377 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3378*)
3379 ac_count=0
3380 $as_echo_n 0123456789 >"conftest.in"
3381 while :
3382 do
3383 cat "conftest.in" "conftest.in" >"conftest.tmp"
3384 mv "conftest.tmp" "conftest.in"
3385 cp "conftest.in" "conftest.nl"
3386 $as_echo '' >> "conftest.nl"
3387 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003389 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003390 if test $ac_count -gt ${ac_path_SED_max-0}; then
3391 # Best one so far, save it but keep looking for a better one
3392 ac_cv_path_SED="$ac_path_SED"
3393 ac_path_SED_max=$ac_count
3394 fi
3395 # 10*(2^10) chars as input seems more than enough
3396 test $ac_count -gt 10 && break
3397 done
3398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399esac
3400
3401 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003402 done
3403 done
drhf922ca42015-05-14 15:39:18 +00003404 done
mlcreech636a9952008-05-05 22:52:56 +00003405IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003406 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003407 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003408 fi
drh8b727472009-01-19 18:18:40 +00003409else
3410 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003411fi
drh866108f2008-05-13 00:57:21 +00003412
drh8b727472009-01-19 18:18:40 +00003413fi
drhf922ca42015-05-14 15:39:18 +00003414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003415$as_echo "$ac_cv_path_SED" >&6; }
3416 SED="$ac_cv_path_SED"
3417 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003418
mlcreech636a9952008-05-05 22:52:56 +00003419test -z "$SED" && SED=sed
3420Xsed="$SED -e 1s/^X//"
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
drhf922ca42015-05-14 15:39:18 +00003432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003433$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003434if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003435 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003436else
drh8b727472009-01-19 18:18:40 +00003437 if test -z "$GREP"; then
3438 ac_path_GREP_found=false
3439 # Loop through the user's path and test for each of PROGNAME-LIST
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3442do
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003445 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003448 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003449# Check for GNU ac_path_GREP and select it if it is found.
3450 # Check for GNU $ac_path_GREP
3451case `"$ac_path_GREP" --version 2>&1` in
3452*GNU*)
3453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3454*)
3455 ac_count=0
3456 $as_echo_n 0123456789 >"conftest.in"
3457 while :
3458 do
3459 cat "conftest.in" "conftest.in" >"conftest.tmp"
3460 mv "conftest.tmp" "conftest.in"
3461 cp "conftest.in" "conftest.nl"
3462 $as_echo 'GREP' >> "conftest.nl"
3463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003465 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3467 # Best one so far, save it but keep looking for a better one
3468 ac_cv_path_GREP="$ac_path_GREP"
3469 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003470 fi
drh8b727472009-01-19 18:18:40 +00003471 # 10*(2^10) chars as input seems more than enough
3472 test $ac_count -gt 10 && break
3473 done
3474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3475esac
3476
3477 $ac_path_GREP_found && break 3
3478 done
3479 done
drhf922ca42015-05-14 15:39:18 +00003480 done
drh8b727472009-01-19 18:18:40 +00003481IFS=$as_save_IFS
3482 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003483 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003484 fi
3485else
3486 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003487fi
drh8b727472009-01-19 18:18:40 +00003488
3489fi
drhf922ca42015-05-14 15:39:18 +00003490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003491$as_echo "$ac_cv_path_GREP" >&6; }
3492 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003493
3494
drhf922ca42015-05-14 15:39:18 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003496$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003497if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003498 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003499else
drh8b727472009-01-19 18:18:40 +00003500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3501 then ac_cv_path_EGREP="$GREP -E"
3502 else
3503 if test -z "$EGREP"; then
3504 ac_path_EGREP_found=false
3505 # Loop through the user's path and test for each of PROGNAME-LIST
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003511 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003514 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003515# Check for GNU ac_path_EGREP and select it if it is found.
3516 # Check for GNU $ac_path_EGREP
3517case `"$ac_path_EGREP" --version 2>&1` in
3518*GNU*)
3519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3520*)
3521 ac_count=0
3522 $as_echo_n 0123456789 >"conftest.in"
3523 while :
3524 do
3525 cat "conftest.in" "conftest.in" >"conftest.tmp"
3526 mv "conftest.tmp" "conftest.in"
3527 cp "conftest.in" "conftest.nl"
3528 $as_echo 'EGREP' >> "conftest.nl"
3529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003531 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3533 # Best one so far, save it but keep looking for a better one
3534 ac_cv_path_EGREP="$ac_path_EGREP"
3535 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003536 fi
drh8b727472009-01-19 18:18:40 +00003537 # 10*(2^10) chars as input seems more than enough
3538 test $ac_count -gt 10 && break
3539 done
3540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3541esac
3542
3543 $ac_path_EGREP_found && break 3
3544 done
3545 done
drhf922ca42015-05-14 15:39:18 +00003546 done
drh8b727472009-01-19 18:18:40 +00003547IFS=$as_save_IFS
3548 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003549 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003550 fi
3551else
3552 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003553fi
drh8b727472009-01-19 18:18:40 +00003554
3555 fi
3556fi
drhf922ca42015-05-14 15:39:18 +00003557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003558$as_echo "$ac_cv_path_EGREP" >&6; }
3559 EGREP="$ac_cv_path_EGREP"
3560
3561
drhf922ca42015-05-14 15:39:18 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003563$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003564if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003565 $as_echo_n "(cached) " >&6
3566else
3567 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3568 then ac_cv_path_FGREP="$GREP -F"
3569 else
3570 if test -z "$FGREP"; then
3571 ac_path_FGREP_found=false
3572 # Loop through the user's path and test for each of PROGNAME-LIST
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003578 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003581 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003582# Check for GNU ac_path_FGREP and select it if it is found.
3583 # Check for GNU $ac_path_FGREP
3584case `"$ac_path_FGREP" --version 2>&1` in
3585*GNU*)
3586 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3587*)
3588 ac_count=0
3589 $as_echo_n 0123456789 >"conftest.in"
3590 while :
3591 do
3592 cat "conftest.in" "conftest.in" >"conftest.tmp"
3593 mv "conftest.tmp" "conftest.in"
3594 cp "conftest.in" "conftest.nl"
3595 $as_echo 'FGREP' >> "conftest.nl"
3596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003598 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3600 # Best one so far, save it but keep looking for a better one
3601 ac_cv_path_FGREP="$ac_path_FGREP"
3602 ac_path_FGREP_max=$ac_count
3603 fi
3604 # 10*(2^10) chars as input seems more than enough
3605 test $ac_count -gt 10 && break
3606 done
3607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3608esac
3609
3610 $ac_path_FGREP_found && break 3
3611 done
3612 done
drhf922ca42015-05-14 15:39:18 +00003613 done
drh8b727472009-01-19 18:18:40 +00003614IFS=$as_save_IFS
3615 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003616 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003617 fi
3618else
3619 ac_cv_path_FGREP=$FGREP
3620fi
3621
3622 fi
3623fi
drhf922ca42015-05-14 15:39:18 +00003624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003625$as_echo "$ac_cv_path_FGREP" >&6; }
3626 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003627
3628
3629test -z "$GREP" && GREP=grep
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
a.rottmann9bc8b932004-02-29 15:18:31 +00003646
3647
a.rottmann84e63352003-03-24 09:42:16 +00003648
drh8b727472009-01-19 18:18:40 +00003649# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003650if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003651 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003652else
3653 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003654fi
3655
drh71eb93e2001-09-28 01:34:43 +00003656ac_prog=ld
3657if test "$GCC" = yes; then
3658 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003660$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003661 case $host in
3662 *-*-mingw*)
3663 # gcc leaves a trailing carriage return which upsets mingw
3664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3665 *)
3666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3667 esac
3668 case $ac_prog in
3669 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003670 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003671 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003672 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003673 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3674 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3675 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003676 done
3677 test -z "$LD" && LD="$ac_prog"
3678 ;;
3679 "")
3680 # If it fails, then pretend we aren't using GCC.
3681 ac_prog=ld
3682 ;;
3683 *)
3684 # If it is relative, then search for the first ld in PATH.
3685 with_gnu_ld=unknown
3686 ;;
3687 esac
3688elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003690$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003691else
drhf922ca42015-05-14 15:39:18 +00003692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003693$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003694fi
drhf922ca42015-05-14 15:39:18 +00003695if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003696 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003697else
3698 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003700 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003701 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003702 test -z "$ac_dir" && ac_dir=.
3703 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3704 lt_cv_path_LD="$ac_dir/$ac_prog"
3705 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003706 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003707 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003708 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3709 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003710 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003711 ;;
3712 *)
drh71eb93e2001-09-28 01:34:43 +00003713 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003714 ;;
3715 esac
drh71eb93e2001-09-28 01:34:43 +00003716 fi
3717 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003718 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003719else
3720 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3721fi
3722fi
3723
3724LD="$lt_cv_path_LD"
3725if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003727$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003728else
drhf922ca42015-05-14 15:39:18 +00003729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003730$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003731fi
drhf922ca42015-05-14 15:39:18 +00003732test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003734$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003735if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003736 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003737else
vapier7f19c022007-02-17 14:46:31 +00003738 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003739case `$LD -v 2>&1 </dev/null` in
3740*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003741 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003742 ;;
3743*)
drh71eb93e2001-09-28 01:34:43 +00003744 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003745 ;;
3746esac
drh71eb93e2001-09-28 01:34:43 +00003747fi
drhf922ca42015-05-14 15:39:18 +00003748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003749$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003750with_gnu_ld=$lt_cv_prog_gnu_ld
3751
a.rottmann84e63352003-03-24 09:42:16 +00003752
drh71eb93e2001-09-28 01:34:43 +00003753
mlcreech636a9952008-05-05 22:52:56 +00003754
3755
3756
3757
3758
3759
drhf922ca42015-05-14 15:39:18 +00003760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003761$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003762if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003763 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003764else
3765 if test -n "$NM"; then
3766 # Let the user override the test.
3767 lt_cv_path_NM="$NM"
3768else
vapier7f19c022007-02-17 14:46:31 +00003769 lt_nm_to_check="${ac_tool_prefix}nm"
3770 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3771 lt_nm_to_check="$lt_nm_to_check nm"
3772 fi
3773 for lt_tmp_nm in $lt_nm_to_check; do
3774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3775 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3776 IFS="$lt_save_ifs"
3777 test -z "$ac_dir" && ac_dir=.
3778 tmp_nm="$ac_dir/$lt_tmp_nm"
3779 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3780 # Check to see if the nm accepts a BSD-compat flag.
3781 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3782 # nm: unknown option "B" ignored
3783 # Tru64's nm complains that /dev/null is an invalid object file
3784 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3785 */dev/null* | *'Invalid file or object type'*)
3786 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003787 break
3788 ;;
3789 *)
vapier7f19c022007-02-17 14:46:31 +00003790 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3791 */dev/null*)
3792 lt_cv_path_NM="$tmp_nm -p"
3793 break
3794 ;;
3795 *)
3796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3797 continue # so that we can try to find one that supports BSD flags
3798 ;;
3799 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003800 ;;
3801 esac
vapier7f19c022007-02-17 14:46:31 +00003802 fi
3803 done
3804 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003805 done
mlcreech636a9952008-05-05 22:52:56 +00003806 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003807fi
3808fi
drhf922ca42015-05-14 15:39:18 +00003809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003810$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003811if test "$lt_cv_path_NM" != "no"; then
3812 NM="$lt_cv_path_NM"
3813else
3814 # Didn't find any BSD compatible name lister, look for dumpbin.
3815 if test -n "$ac_tool_prefix"; then
3816 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3817 do
3818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003821$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003822if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003823 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003824else
3825 if test -n "$DUMPBIN"; then
3826 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003837 break 2
3838 fi
3839done
drhf922ca42015-05-14 15:39:18 +00003840 done
drh8b727472009-01-19 18:18:40 +00003841IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003842
mlcreech636a9952008-05-05 22:52:56 +00003843fi
3844fi
3845DUMPBIN=$ac_cv_prog_DUMPBIN
3846if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003848$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003849else
drhf922ca42015-05-14 15:39:18 +00003850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003851$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003852fi
3853
drh8b727472009-01-19 18:18:40 +00003854
mlcreech636a9952008-05-05 22:52:56 +00003855 test -n "$DUMPBIN" && break
3856 done
3857fi
3858if test -z "$DUMPBIN"; then
3859 ac_ct_DUMPBIN=$DUMPBIN
3860 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3861do
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003865$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003866if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003867 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003868else
3869 if test -n "$ac_ct_DUMPBIN"; then
3870 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003879 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003881 break 2
3882 fi
3883done
drhf922ca42015-05-14 15:39:18 +00003884 done
drh8b727472009-01-19 18:18:40 +00003885IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003886
3887fi
3888fi
3889ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3890if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003892$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003893else
drhf922ca42015-05-14 15:39:18 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003895$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003896fi
3897
drh8b727472009-01-19 18:18:40 +00003898
mlcreech636a9952008-05-05 22:52:56 +00003899 test -n "$ac_ct_DUMPBIN" && break
3900done
3901
drh8b727472009-01-19 18:18:40 +00003902 if test "x$ac_ct_DUMPBIN" = x; then
3903 DUMPBIN=":"
3904 else
3905 case $cross_compiling:$ac_tool_warned in
3906yes:)
drhf922ca42015-05-14 15:39:18 +00003907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003909ac_tool_warned=yes ;;
3910esac
3911 DUMPBIN=$ac_ct_DUMPBIN
3912 fi
mlcreech636a9952008-05-05 22:52:56 +00003913fi
3914
3915
3916 if test "$DUMPBIN" != ":"; then
3917 NM="$DUMPBIN"
3918 fi
3919fi
3920test -z "$NM" && NM=nm
3921
3922
3923
3924
3925
3926
drhf922ca42015-05-14 15:39:18 +00003927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003928$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003929if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003930 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003931else
3932 lt_cv_nm_interface="BSD nm"
3933 echo "int some_variable = 0;" > conftest.$ac_ext
drh83bebdd2017-08-28 17:00:12 +00003934 (eval echo "\"\$as_me:3934: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003935 (eval "$ac_compile" 2>conftest.err)
3936 cat conftest.err >&5
drh83bebdd2017-08-28 17:00:12 +00003937 (eval echo "\"\$as_me:3937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3939 cat conftest.err >&5
drh83bebdd2017-08-28 17:00:12 +00003940 (eval echo "\"\$as_me:3940: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003941 cat conftest.out >&5
3942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3943 lt_cv_nm_interface="MS dumpbin"
3944 fi
3945 rm -f conftest*
3946fi
drhf922ca42015-05-14 15:39:18 +00003947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003948$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003949
drhf922ca42015-05-14 15:39:18 +00003950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003951$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003952LN_S=$as_ln_s
3953if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003955$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003956else
drhf922ca42015-05-14 15:39:18 +00003957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003958$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003959fi
3960
mlcreech636a9952008-05-05 22:52:56 +00003961# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003963$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003964if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003965 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003966else
3967 i=0
3968 teststring="ABCD"
3969
3970 case $build_os in
3971 msdosdjgpp*)
3972 # On DJGPP, this test can blow up pretty badly due to problems in libc
3973 # (any single argument exceeding 2000 bytes causes a buffer overrun
3974 # during glob expansion). Even if it were fixed, the result of this
3975 # check would be larger than it should be.
3976 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3977 ;;
3978
3979 gnu*)
3980 # Under GNU Hurd, this test is not required because there is
3981 # no limit to the length of command line arguments.
3982 # Libtool will interpret -1 as no limit whatsoever
3983 lt_cv_sys_max_cmd_len=-1;
3984 ;;
3985
vapier6acb2cf2009-01-28 04:46:28 +00003986 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003987 # On Win9x/ME, this test blows up -- it succeeds, but takes
3988 # about 5 minutes as the teststring grows exponentially.
3989 # Worse, since 9x/ME are not pre-emptively multitasking,
3990 # you end up with a "frozen" computer, even though with patience
3991 # the test eventually succeeds (with a max line length of 256k).
3992 # Instead, let's just punt: use the minimum linelength reported by
3993 # all of the supported platforms: 8192 (on NT/2K/XP).
3994 lt_cv_sys_max_cmd_len=8192;
3995 ;;
3996
3997 amigaos*)
3998 # On AmigaOS with pdksh, this test takes hours, literally.
3999 # So we just punt and use a minimum line length of 8192.
4000 lt_cv_sys_max_cmd_len=8192;
4001 ;;
4002
4003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4004 # This has been around since 386BSD, at least. Likely further.
4005 if test -x /sbin/sysctl; then
4006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4007 elif test -x /usr/sbin/sysctl; then
4008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4009 else
4010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4011 fi
4012 # And add a safety zone
4013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4015 ;;
4016
4017 interix*)
4018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4019 lt_cv_sys_max_cmd_len=196608
4020 ;;
4021
4022 osf*)
4023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4025 # nice to cause kernel panics so lets avoid the loop below.
4026 # First set a reasonable default.
4027 lt_cv_sys_max_cmd_len=16384
4028 #
4029 if test -x /sbin/sysconfig; then
4030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4032 esac
4033 fi
4034 ;;
4035 sco3.2v5*)
4036 lt_cv_sys_max_cmd_len=102400
4037 ;;
4038 sysv5* | sco5v6* | sysv4.2uw2*)
4039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4040 if test -n "$kargmax"; then
4041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4042 else
4043 lt_cv_sys_max_cmd_len=32768
4044 fi
4045 ;;
4046 *)
4047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4048 if test -n "$lt_cv_sys_max_cmd_len"; then
4049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4051 else
4052 # Make teststring a little bigger before we do anything with it.
4053 # a 1K string should be a reasonable start.
4054 for i in 1 2 3 4 5 6 7 8 ; do
4055 teststring=$teststring$teststring
4056 done
4057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4058 # If test is not a shell built-in, we'll probably end up computing a
4059 # maximum length that is only half of the actual maximum length, but
4060 # we can't tell.
4061 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4062 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4063 test $i != 17 # 1/2 MB should be enough
4064 do
4065 i=`expr $i + 1`
4066 teststring=$teststring$teststring
4067 done
4068 # Only check the string length outside the loop.
4069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4070 teststring=
4071 # Add a significant safety factor because C++ compilers can tack on
4072 # massive amounts of additional arguments before passing them to the
4073 # linker. It appears as though 1/2 is a usable value.
4074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4075 fi
4076 ;;
4077 esac
4078
4079fi
4080
4081if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004083$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004084else
drhf922ca42015-05-14 15:39:18 +00004085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004086$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004087fi
4088max_cmd_len=$lt_cv_sys_max_cmd_len
4089
4090
4091
4092
4093
4094
4095: ${CP="cp -f"}
4096: ${MV="mv -f"}
4097: ${RM="rm -f"}
4098
drhf922ca42015-05-14 15:39:18 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004100$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004101# Try some XSI features
4102xsi_shell=no
4103( _lt_dummy="a/b/c"
4104 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4105 = c,a/b,, \
4106 && eval 'test $(( 1 + 1 )) -eq 2 \
4107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4108 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004110$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004111
4112
drhf922ca42015-05-14 15:39:18 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004114$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004115lt_shell_append=no
4116( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4117 >/dev/null 2>&1 \
4118 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004120$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004121
4122
4123if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4124 lt_unset=unset
4125else
4126 lt_unset=false
4127fi
4128
4129
4130
4131
4132
4133# test EBCDIC or ASCII
4134case `echo X|tr X '\101'` in
4135 A) # ASCII based system
4136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4137 lt_SP2NL='tr \040 \012'
4138 lt_NL2SP='tr \015\012 \040\040'
4139 ;;
4140 *) # EBCDIC based system
4141 lt_SP2NL='tr \100 \n'
4142 lt_NL2SP='tr \r\n \100\100'
4143 ;;
4144esac
4145
4146
4147
4148
4149
4150
4151
4152
4153
drhf922ca42015-05-14 15:39:18 +00004154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004155$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004156if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004157 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004158else
4159 lt_cv_ld_reload_flag='-r'
4160fi
drhf922ca42015-05-14 15:39:18 +00004161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004162$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004163reload_flag=$lt_cv_ld_reload_flag
4164case $reload_flag in
4165"" | " "*) ;;
4166*) reload_flag=" $reload_flag" ;;
4167esac
4168reload_cmds='$LD$reload_flag -o $output$reload_objs'
4169case $host_os in
4170 darwin*)
4171 if test "$GCC" = yes; then
4172 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4173 else
4174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175 fi
4176 ;;
4177esac
4178
4179
4180
4181
4182
4183
4184
4185
4186
vapier6acb2cf2009-01-28 04:46:28 +00004187if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4189set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004191$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004192if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004193 $as_echo_n "(cached) " >&6
4194else
4195 if test -n "$OBJDUMP"; then
4196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4197else
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004207 break 2
4208 fi
4209done
drhf922ca42015-05-14 15:39:18 +00004210 done
vapier6acb2cf2009-01-28 04:46:28 +00004211IFS=$as_save_IFS
4212
4213fi
4214fi
4215OBJDUMP=$ac_cv_prog_OBJDUMP
4216if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004218$as_echo "$OBJDUMP" >&6; }
4219else
drhf922ca42015-05-14 15:39:18 +00004220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004221$as_echo "no" >&6; }
4222fi
4223
4224
4225fi
4226if test -z "$ac_cv_prog_OBJDUMP"; then
4227 ac_ct_OBJDUMP=$OBJDUMP
4228 # Extract the first word of "objdump", so it can be a program name with args.
4229set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004231$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004232if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004233 $as_echo_n "(cached) " >&6
4234else
4235 if test -n "$ac_ct_OBJDUMP"; then
4236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004245 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004247 break 2
4248 fi
4249done
drhf922ca42015-05-14 15:39:18 +00004250 done
vapier6acb2cf2009-01-28 04:46:28 +00004251IFS=$as_save_IFS
4252
4253fi
4254fi
4255ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4256if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004258$as_echo "$ac_ct_OBJDUMP" >&6; }
4259else
drhf922ca42015-05-14 15:39:18 +00004260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004261$as_echo "no" >&6; }
4262fi
4263
4264 if test "x$ac_ct_OBJDUMP" = x; then
4265 OBJDUMP="false"
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268yes:)
drhf922ca42015-05-14 15:39:18 +00004269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004271ac_tool_warned=yes ;;
4272esac
4273 OBJDUMP=$ac_ct_OBJDUMP
4274 fi
4275else
4276 OBJDUMP="$ac_cv_prog_OBJDUMP"
4277fi
4278
4279test -z "$OBJDUMP" && OBJDUMP=objdump
4280
4281
4282
4283
4284
4285
4286
4287
mlcreech636a9952008-05-05 22:52:56 +00004288
drhf922ca42015-05-14 15:39:18 +00004289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004290$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004291if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004292 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004293else
4294 lt_cv_file_magic_cmd='$MAGIC_CMD'
4295lt_cv_file_magic_test_file=
4296lt_cv_deplibs_check_method='unknown'
4297# Need to set the preceding variable on all platforms that support
4298# interlibrary dependencies.
4299# 'none' -- dependencies not supported.
4300# `unknown' -- same as none, but documents that we really don't know.
4301# 'pass_all' -- all dependencies passed with no checks.
4302# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004303# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004304# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004305# If you have `file' or equivalent on your system and you're not sure
4306# whether `pass_all' will *always* work, you probably want this one.
4307
4308case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004309aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312
4313beos*)
4314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316
vapier7f19c022007-02-17 14:46:31 +00004317bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4319 lt_cv_file_magic_cmd='/usr/bin/file -L'
4320 lt_cv_file_magic_test_file=/shlib/libc.so
4321 ;;
4322
a.rottmann9bc8b932004-02-29 15:18:31 +00004323cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004324 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004326 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004327 ;;
4328
4329mingw* | pw32*)
4330 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004331 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4332 # unless we find 'file', for example because we are cross-compiling.
4333 if ( file / ) >/dev/null 2>&1; then
4334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4335 lt_cv_file_magic_cmd='func_win32_libid'
4336 else
4337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4338 lt_cv_file_magic_cmd='$OBJDUMP -f'
4339 fi
drh71eb93e2001-09-28 01:34:43 +00004340 ;;
4341
vapier6acb2cf2009-01-28 04:46:28 +00004342cegcc)
4343 # use the weaker test based on 'objdump'. See mingw*.
4344 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4345 lt_cv_file_magic_cmd='$OBJDUMP -f'
4346 ;;
4347
drh71eb93e2001-09-28 01:34:43 +00004348darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004349 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004350 ;;
4351
mlcreech636a9952008-05-05 22:52:56 +00004352freebsd* | dragonfly*)
4353 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004354 case $host_cpu in
4355 i*86 )
4356 # Not sure whether the presence of OpenBSD here was a mistake.
4357 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004358 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 +00004359 lt_cv_file_magic_cmd=/usr/bin/file
4360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4361 ;;
4362 esac
4363 else
4364 lt_cv_deplibs_check_method=pass_all
4365 fi
4366 ;;
4367
4368gnu*)
4369 lt_cv_deplibs_check_method=pass_all
4370 ;;
4371
a.rottmann9bc8b932004-02-29 15:18:31 +00004372hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004373 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004374 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004375 ia64*)
4376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4377 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4378 ;;
4379 hppa*64*)
4380 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]'
4381 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4382 ;;
4383 *)
4384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4385 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4386 ;;
4387 esac
drh71eb93e2001-09-28 01:34:43 +00004388 ;;
4389
mlcreech636a9952008-05-05 22:52:56 +00004390interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004391 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4393 ;;
4394
a.rottmann84e63352003-03-24 09:42:16 +00004395irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004396 case $LD in
4397 *-32|*"-32 ") libmagic=32-bit;;
4398 *-n32|*"-n32 ") libmagic=N32;;
4399 *-64|*"-64 ") libmagic=64-bit;;
4400 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004401 esac
drh71eb93e2001-09-28 01:34:43 +00004402 lt_cv_deplibs_check_method=pass_all
4403 ;;
4404
4405# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004406linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004407 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004408 ;;
4409
vapier7f19c022007-02-17 14:46:31 +00004410netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004411 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004413 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004415 fi
4416 ;;
4417
4418newos6*)
4419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4420 lt_cv_file_magic_cmd=/usr/bin/file
4421 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4422 ;;
4423
mlcreech636a9952008-05-05 22:52:56 +00004424*nto* | *qnx*)
4425 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004426 ;;
4427
a.rottmann84e63352003-03-24 09:42:16 +00004428openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004429 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004431 else
vapier7f19c022007-02-17 14:46:31 +00004432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004433 fi
drh71eb93e2001-09-28 01:34:43 +00004434 ;;
4435
4436osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004437 lt_cv_deplibs_check_method=pass_all
4438 ;;
4439
mlcreech636a9952008-05-05 22:52:56 +00004440rdos*)
4441 lt_cv_deplibs_check_method=pass_all
4442 ;;
4443
drh71eb93e2001-09-28 01:34:43 +00004444solaris*)
4445 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004446 ;;
4447
mlcreech636a9952008-05-05 22:52:56 +00004448sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
vapier7f19c022007-02-17 14:46:31 +00004452sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004453 case $host_vendor in
4454 motorola)
4455 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]'
4456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4457 ;;
4458 ncr)
4459 lt_cv_deplibs_check_method=pass_all
4460 ;;
4461 sequent)
4462 lt_cv_file_magic_cmd='/bin/file'
4463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4464 ;;
4465 sni)
4466 lt_cv_file_magic_cmd='/bin/file'
4467 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4468 lt_cv_file_magic_test_file=/lib/libc.so
4469 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004470 siemens)
4471 lt_cv_deplibs_check_method=pass_all
4472 ;;
vapier7f19c022007-02-17 14:46:31 +00004473 pc)
4474 lt_cv_deplibs_check_method=pass_all
4475 ;;
drh71eb93e2001-09-28 01:34:43 +00004476 esac
4477 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004478
mlcreech636a9952008-05-05 22:52:56 +00004479tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004480 lt_cv_deplibs_check_method=pass_all
4481 ;;
drh71eb93e2001-09-28 01:34:43 +00004482esac
4483
4484fi
drhf922ca42015-05-14 15:39:18 +00004485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004486$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004487file_magic_cmd=$lt_cv_file_magic_cmd
4488deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004489test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004490
drh71eb93e2001-09-28 01:34:43 +00004491
drh71eb93e2001-09-28 01:34:43 +00004492
drh71eb93e2001-09-28 01:34:43 +00004493
mlcreech636a9952008-05-05 22:52:56 +00004494
4495
4496
4497
4498
4499
4500
4501
4502if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4504set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004506$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004507if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004508 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004509else
4510 if test -n "$AR"; then
4511 ac_cv_prog_AR="$AR" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004520 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004522 break 2
4523 fi
4524done
drhf922ca42015-05-14 15:39:18 +00004525 done
drh8b727472009-01-19 18:18:40 +00004526IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004527
4528fi
4529fi
4530AR=$ac_cv_prog_AR
4531if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004533$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004534else
drhf922ca42015-05-14 15:39:18 +00004535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004536$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004537fi
4538
drh8b727472009-01-19 18:18:40 +00004539
mlcreech636a9952008-05-05 22:52:56 +00004540fi
4541if test -z "$ac_cv_prog_AR"; then
4542 ac_ct_AR=$AR
4543 # Extract the first word of "ar", so it can be a program name with args.
4544set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004546$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004547if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004548 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004549else
4550 if test -n "$ac_ct_AR"; then
4551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004560 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004562 break 2
4563 fi
4564done
drhf922ca42015-05-14 15:39:18 +00004565 done
drh8b727472009-01-19 18:18:40 +00004566IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004567
4568fi
4569fi
4570ac_ct_AR=$ac_cv_prog_ac_ct_AR
4571if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004573$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004574else
drhf922ca42015-05-14 15:39:18 +00004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004576$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004577fi
4578
drh8b727472009-01-19 18:18:40 +00004579 if test "x$ac_ct_AR" = x; then
4580 AR="false"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583yes:)
drhf922ca42015-05-14 15:39:18 +00004584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004586ac_tool_warned=yes ;;
4587esac
4588 AR=$ac_ct_AR
4589 fi
mlcreech636a9952008-05-05 22:52:56 +00004590else
4591 AR="$ac_cv_prog_AR"
4592fi
4593
4594test -z "$AR" && AR=ar
4595test -z "$AR_FLAGS" && AR_FLAGS=cru
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4609set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004611$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004612if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004613 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004614else
4615 if test -n "$STRIP"; then
4616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4617else
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004627 break 2
4628 fi
4629done
drhf922ca42015-05-14 15:39:18 +00004630 done
drh8b727472009-01-19 18:18:40 +00004631IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004632
4633fi
4634fi
4635STRIP=$ac_cv_prog_STRIP
4636if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004638$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004639else
drhf922ca42015-05-14 15:39:18 +00004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004641$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004642fi
4643
drh8b727472009-01-19 18:18:40 +00004644
mlcreech636a9952008-05-05 22:52:56 +00004645fi
4646if test -z "$ac_cv_prog_STRIP"; then
4647 ac_ct_STRIP=$STRIP
4648 # Extract the first word of "strip", so it can be a program name with args.
4649set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004651$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004652if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004653 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004654else
4655 if test -n "$ac_ct_STRIP"; then
4656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004665 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004667 break 2
4668 fi
4669done
drhf922ca42015-05-14 15:39:18 +00004670 done
drh8b727472009-01-19 18:18:40 +00004671IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004672
4673fi
4674fi
4675ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4676if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004678$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004679else
drhf922ca42015-05-14 15:39:18 +00004680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004681$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004682fi
4683
drh8b727472009-01-19 18:18:40 +00004684 if test "x$ac_ct_STRIP" = x; then
4685 STRIP=":"
4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688yes:)
drhf922ca42015-05-14 15:39:18 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004691ac_tool_warned=yes ;;
4692esac
4693 STRIP=$ac_ct_STRIP
4694 fi
mlcreech636a9952008-05-05 22:52:56 +00004695else
4696 STRIP="$ac_cv_prog_STRIP"
4697fi
4698
4699test -z "$STRIP" && STRIP=:
4700
4701
4702
4703
4704
4705
4706if test -n "$ac_tool_prefix"; then
4707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4708set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004710$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004711if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004712 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004713else
4714 if test -n "$RANLIB"; then
4715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004726 break 2
4727 fi
4728done
drhf922ca42015-05-14 15:39:18 +00004729 done
drh8b727472009-01-19 18:18:40 +00004730IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004731
4732fi
4733fi
4734RANLIB=$ac_cv_prog_RANLIB
4735if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004737$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004738else
drhf922ca42015-05-14 15:39:18 +00004739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004740$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004741fi
4742
drh8b727472009-01-19 18:18:40 +00004743
mlcreech636a9952008-05-05 22:52:56 +00004744fi
4745if test -z "$ac_cv_prog_RANLIB"; then
4746 ac_ct_RANLIB=$RANLIB
4747 # Extract the first word of "ranlib", so it can be a program name with args.
4748set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004750$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004751if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004752 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004753else
4754 if test -n "$ac_ct_RANLIB"; then
4755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004764 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004766 break 2
4767 fi
4768done
drhf922ca42015-05-14 15:39:18 +00004769 done
drh8b727472009-01-19 18:18:40 +00004770IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004771
4772fi
4773fi
4774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4775if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004777$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004778else
drhf922ca42015-05-14 15:39:18 +00004779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004780$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004781fi
4782
drh8b727472009-01-19 18:18:40 +00004783 if test "x$ac_ct_RANLIB" = x; then
4784 RANLIB=":"
4785 else
4786 case $cross_compiling:$ac_tool_warned in
4787yes:)
drhf922ca42015-05-14 15:39:18 +00004788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004790ac_tool_warned=yes ;;
4791esac
4792 RANLIB=$ac_ct_RANLIB
4793 fi
mlcreech636a9952008-05-05 22:52:56 +00004794else
4795 RANLIB="$ac_cv_prog_RANLIB"
4796fi
4797
4798test -z "$RANLIB" && RANLIB=:
4799
4800
4801
4802
4803
4804
4805# Determine commands to create old-style static archives.
4806old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4807old_postinstall_cmds='chmod 644 $oldlib'
4808old_postuninstall_cmds=
4809
4810if test -n "$RANLIB"; then
4811 case $host_os in
4812 openbsd*)
4813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4814 ;;
4815 *)
4816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4817 ;;
4818 esac
4819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4820fi
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
a.rottmann9bc8b932004-02-29 15:18:31 +00004855# If no C compiler was specified, use CC.
4856LTCC=${LTCC-"$CC"}
4857
vapier7f19c022007-02-17 14:46:31 +00004858# If no C compiler flags were specified, use CFLAGS.
4859LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4860
a.rottmann9bc8b932004-02-29 15:18:31 +00004861# Allow CC to be a program name with arguments.
4862compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004863
drh71eb93e2001-09-28 01:34:43 +00004864
mlcreech636a9952008-05-05 22:52:56 +00004865# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004867$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004868if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004869 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004870else
4871
4872# These are sane defaults that work on at least a few old systems.
4873# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4874
4875# Character class describing NM global symbol codes.
4876symcode='[BCDEGRST]'
4877
4878# Regexp to match symbols that can be accessed directly from C.
4879sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4880
4881# Define system-specific variables.
4882case $host_os in
4883aix*)
4884 symcode='[BCDT]'
4885 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004886cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004887 symcode='[ABCDGISTW]'
4888 ;;
4889hpux*)
4890 if test "$host_cpu" = ia64; then
4891 symcode='[ABCDEGRST]'
4892 fi
4893 ;;
4894irix* | nonstopux*)
4895 symcode='[BCDEGRST]'
4896 ;;
4897osf*)
4898 symcode='[BCDEGQRST]'
4899 ;;
4900solaris*)
4901 symcode='[BDRT]'
4902 ;;
4903sco3.2v5*)
4904 symcode='[DT]'
4905 ;;
4906sysv4.2uw2*)
4907 symcode='[DT]'
4908 ;;
4909sysv5* | sco5v6* | unixware* | OpenUNIX*)
4910 symcode='[ABDT]'
4911 ;;
4912sysv4)
4913 symcode='[DFNSTU]'
4914 ;;
4915esac
4916
4917# If we're using GNU nm, then use its standard symbol codes.
4918case `$NM -V 2>&1` in
4919*GNU* | *'with BFD'*)
4920 symcode='[ABCDGIRSTW]' ;;
4921esac
4922
4923# Transform an extracted symbol line into a proper C declaration.
4924# Some systems (esp. on ia64) link data and code symbols differently,
4925# so use this general approach.
4926lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4927
4928# Transform an extracted symbol line into symbol name and symbol address
4929lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4930lt_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'"
4931
4932# Handle CRLF in mingw tool chain
4933opt_cr=
4934case $build_os in
4935mingw*)
4936 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4937 ;;
4938esac
4939
4940# Try without a prefix underscore, then with it.
4941for ac_symprfx in "" "_"; do
4942
4943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4944 symxfrm="\\1 $ac_symprfx\\2 \\2"
4945
4946 # Write the raw and C identifiers.
4947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4948 # Fake it for dumpbin and say T for any non-static function
4949 # and D for any global variable.
4950 # Also find C++ and __fastcall symbols from MSVC++,
4951 # which start with @ or ?.
4952 lt_cv_sys_global_symbol_pipe="$AWK '"\
4953" {last_section=section; section=\$ 3};"\
4954" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4955" \$ 0!~/External *\|/{next};"\
4956" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4957" {if(hide[section]) next};"\
4958" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4959" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4960" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4961" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4962" ' prfx=^$ac_symprfx"
4963 else
4964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4965 fi
4966
4967 # Check to see that the pipe works correctly.
4968 pipe_works=no
4969
4970 rm -f conftest*
4971 cat > conftest.$ac_ext <<_LT_EOF
4972#ifdef __cplusplus
4973extern "C" {
4974#endif
4975char nm_test_var;
4976void nm_test_func(void);
4977void nm_test_func(void){}
4978#ifdef __cplusplus
4979}
4980#endif
4981int main(){nm_test_var='a';nm_test_func();return(0);}
4982_LT_EOF
4983
drhf922ca42015-05-14 15:39:18 +00004984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004985 (eval $ac_compile) 2>&5
4986 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004989 # Now try to grab the symbols.
4990 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004991 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 +00004992 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4993 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004996 # Try sorting and uniquifying the output.
4997 if sort "$nlist" | uniq > "$nlist"T; then
4998 mv -f "$nlist"T "$nlist"
4999 else
5000 rm -f "$nlist"T
5001 fi
5002
5003 # Make sure that we snagged all the symbols we need.
5004 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5005 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5006 cat <<_LT_EOF > conftest.$ac_ext
5007#ifdef __cplusplus
5008extern "C" {
5009#endif
5010
5011_LT_EOF
5012 # Now generate the symbol file.
5013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5014
5015 cat <<_LT_EOF >> conftest.$ac_ext
5016
5017/* The mapping between symbol names and symbols. */
5018const struct {
5019 const char *name;
5020 void *address;
5021}
5022lt__PROGRAM__LTX_preloaded_symbols[] =
5023{
5024 { "@PROGRAM@", (void *) 0 },
5025_LT_EOF
5026 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5027 cat <<\_LT_EOF >> conftest.$ac_ext
5028 {0, (void *) 0}
5029};
5030
5031/* This works around a problem in FreeBSD linker */
5032#ifdef FREEBSD_WORKAROUND
5033static const void *lt_preloaded_setup() {
5034 return lt__PROGRAM__LTX_preloaded_symbols;
5035}
5036#endif
5037
5038#ifdef __cplusplus
5039}
5040#endif
5041_LT_EOF
5042 # Now try linking the two files.
5043 mv conftest.$ac_objext conftstm.$ac_objext
5044 lt_save_LIBS="$LIBS"
5045 lt_save_CFLAGS="$CFLAGS"
5046 LIBS="conftstm.$ac_objext"
5047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005049 (eval $ac_link) 2>&5
5050 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5052 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005053 pipe_works=yes
5054 fi
5055 LIBS="$lt_save_LIBS"
5056 CFLAGS="$lt_save_CFLAGS"
5057 else
5058 echo "cannot find nm_test_func in $nlist" >&5
5059 fi
5060 else
5061 echo "cannot find nm_test_var in $nlist" >&5
5062 fi
5063 else
5064 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5065 fi
5066 else
5067 echo "$progname: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 fi
5070 rm -rf conftest* conftst*
5071
5072 # Do not use the global_symbol_pipe unless it works.
5073 if test "$pipe_works" = yes; then
5074 break
5075 else
5076 lt_cv_sys_global_symbol_pipe=
5077 fi
5078done
5079
5080fi
5081
5082if test -z "$lt_cv_sys_global_symbol_pipe"; then
5083 lt_cv_sys_global_symbol_to_cdecl=
5084fi
5085if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005087$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005088else
drhf922ca42015-05-14 15:39:18 +00005089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005090$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005091fi
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
drh8b727472009-01-19 18:18:40 +00005115# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005116if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005117 enableval=$enable_libtool_lock;
5118fi
drh71eb93e2001-09-28 01:34:43 +00005119
a.rottmann9bc8b932004-02-29 15:18:31 +00005120test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005121
a.rottmann9bc8b932004-02-29 15:18:31 +00005122# Some flags need to be propagated to the compiler or linker for good
5123# libtool support.
5124case $host in
5125ia64-*-hpux*)
5126 # Find out which ABI we are using.
5127 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005129 (eval $ac_compile) 2>&5
5130 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005133 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005134 *ELF-32*)
5135 HPUX_IA64_MODE="32"
5136 ;;
5137 *ELF-64*)
5138 HPUX_IA64_MODE="64"
5139 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005140 esac
5141 fi
5142 rm -rf conftest*
5143 ;;
5144*-*-irix6*)
5145 # Find out which ABI we are using.
drh83bebdd2017-08-28 17:00:12 +00005146 echo '#line 5146 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005148 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005149 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005152 if test "$lt_cv_prog_gnu_ld" = yes; then
5153 case `/usr/bin/file conftest.$ac_objext` in
5154 *32-bit*)
5155 LD="${LD-ld} -melf32bsmip"
5156 ;;
5157 *N32*)
5158 LD="${LD-ld} -melf32bmipn32"
5159 ;;
5160 *64-bit*)
5161 LD="${LD-ld} -melf64bmip"
5162 ;;
5163 esac
5164 else
5165 case `/usr/bin/file conftest.$ac_objext` in
5166 *32-bit*)
5167 LD="${LD-ld} -32"
5168 ;;
5169 *N32*)
5170 LD="${LD-ld} -n32"
5171 ;;
5172 *64-bit*)
5173 LD="${LD-ld} -64"
5174 ;;
5175 esac
5176 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005177 fi
5178 rm -rf conftest*
5179 ;;
drh71eb93e2001-09-28 01:34:43 +00005180
mlcreech636a9952008-05-05 22:52:56 +00005181x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5182s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005183 # Find out which ABI we are using.
5184 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005186 (eval $ac_compile) 2>&5
5187 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005190 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005191 *32-bit*)
5192 case $host in
5193 x86_64-*kfreebsd*-gnu)
5194 LD="${LD-ld} -m elf_i386_fbsd"
5195 ;;
5196 x86_64-*linux*)
5197 LD="${LD-ld} -m elf_i386"
5198 ;;
5199 ppc64-*linux*|powerpc64-*linux*)
5200 LD="${LD-ld} -m elf32ppclinux"
5201 ;;
5202 s390x-*linux*)
5203 LD="${LD-ld} -m elf_s390"
5204 ;;
5205 sparc64-*linux*)
5206 LD="${LD-ld} -m elf32_sparc"
5207 ;;
5208 esac
5209 ;;
5210 *64-bit*)
5211 case $host in
5212 x86_64-*kfreebsd*-gnu)
5213 LD="${LD-ld} -m elf_x86_64_fbsd"
5214 ;;
5215 x86_64-*linux*)
5216 LD="${LD-ld} -m elf_x86_64"
5217 ;;
5218 ppc*-*linux*|powerpc*-*linux*)
5219 LD="${LD-ld} -m elf64ppc"
5220 ;;
5221 s390*-*linux*|s390*-*tpf*)
5222 LD="${LD-ld} -m elf64_s390"
5223 ;;
5224 sparc*-*linux*)
5225 LD="${LD-ld} -m elf64_sparc"
5226 ;;
5227 esac
5228 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005229 esac
5230 fi
5231 rm -rf conftest*
5232 ;;
drh71eb93e2001-09-28 01:34:43 +00005233
a.rottmann9bc8b932004-02-29 15:18:31 +00005234*-*-sco3.2v5*)
5235 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5236 SAVE_CFLAGS="$CFLAGS"
5237 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005239$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005240if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005241 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005242else
5243 ac_ext=c
5244ac_cpp='$CPP $CPPFLAGS'
5245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005248
drhf922ca42015-05-14 15:39:18 +00005249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005250/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005251
a.rottmann9bc8b932004-02-29 15:18:31 +00005252int
5253main ()
drh71eb93e2001-09-28 01:34:43 +00005254{
drh71eb93e2001-09-28 01:34:43 +00005255
a.rottmann9bc8b932004-02-29 15:18:31 +00005256 ;
5257 return 0;
drh71eb93e2001-09-28 01:34:43 +00005258}
a.rottmann9bc8b932004-02-29 15:18:31 +00005259_ACEOF
drhf922ca42015-05-14 15:39:18 +00005260if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005261 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005262else
drhf922ca42015-05-14 15:39:18 +00005263 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005264fi
drhf922ca42015-05-14 15:39:18 +00005265rm -f core conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005267 ac_ext=c
5268ac_cpp='$CPP $CPPFLAGS'
5269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272
drh71eb93e2001-09-28 01:34:43 +00005273fi
drhf922ca42015-05-14 15:39:18 +00005274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005275$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005276 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5277 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5278 CFLAGS="$SAVE_CFLAGS"
5279 fi
5280 ;;
vapier7f19c022007-02-17 14:46:31 +00005281sparc*-*solaris*)
5282 # Find out which ABI we are using.
5283 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005285 (eval $ac_compile) 2>&5
5286 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005289 case `/usr/bin/file conftest.o` in
5290 *64-bit*)
5291 case $lt_cv_prog_gnu_ld in
5292 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005293 *)
5294 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5295 LD="${LD-ld} -64"
5296 fi
5297 ;;
vapier7f19c022007-02-17 14:46:31 +00005298 esac
5299 ;;
5300 esac
5301 fi
5302 rm -rf conftest*
5303 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005304esac
5305
5306need_locks="$enable_libtool_lock"
5307
drh71eb93e2001-09-28 01:34:43 +00005308
mlcreech636a9952008-05-05 22:52:56 +00005309 case $host_os in
5310 rhapsody* | darwin*)
5311 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5313set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005315$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005316if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005317 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005318else
5319 if test -n "$DSYMUTIL"; then
5320 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5321else
5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005329 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005331 break 2
5332 fi
5333done
drhf922ca42015-05-14 15:39:18 +00005334 done
drh8b727472009-01-19 18:18:40 +00005335IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005336
5337fi
5338fi
5339DSYMUTIL=$ac_cv_prog_DSYMUTIL
5340if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005342$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005343else
drhf922ca42015-05-14 15:39:18 +00005344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005345$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005346fi
5347
drh8b727472009-01-19 18:18:40 +00005348
mlcreech636a9952008-05-05 22:52:56 +00005349fi
5350if test -z "$ac_cv_prog_DSYMUTIL"; then
5351 ac_ct_DSYMUTIL=$DSYMUTIL
5352 # Extract the first word of "dsymutil", so it can be a program name with args.
5353set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005355$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005356if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005357 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005358else
5359 if test -n "$ac_ct_DSYMUTIL"; then
5360 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005369 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005371 break 2
5372 fi
5373done
drhf922ca42015-05-14 15:39:18 +00005374 done
drh8b727472009-01-19 18:18:40 +00005375IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005376
5377fi
5378fi
5379ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5380if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005382$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005383else
drhf922ca42015-05-14 15:39:18 +00005384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005385$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005386fi
5387
drh8b727472009-01-19 18:18:40 +00005388 if test "x$ac_ct_DSYMUTIL" = x; then
5389 DSYMUTIL=":"
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392yes:)
drhf922ca42015-05-14 15:39:18 +00005393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005395ac_tool_warned=yes ;;
5396esac
5397 DSYMUTIL=$ac_ct_DSYMUTIL
5398 fi
mlcreech636a9952008-05-05 22:52:56 +00005399else
5400 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5401fi
5402
5403 if test -n "$ac_tool_prefix"; then
5404 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5405set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005407$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005408if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005409 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005410else
5411 if test -n "$NMEDIT"; then
5412 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005421 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005423 break 2
5424 fi
5425done
drhf922ca42015-05-14 15:39:18 +00005426 done
drh8b727472009-01-19 18:18:40 +00005427IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005428
5429fi
5430fi
5431NMEDIT=$ac_cv_prog_NMEDIT
5432if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005434$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005435else
drhf922ca42015-05-14 15:39:18 +00005436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005437$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005438fi
5439
drh8b727472009-01-19 18:18:40 +00005440
mlcreech636a9952008-05-05 22:52:56 +00005441fi
5442if test -z "$ac_cv_prog_NMEDIT"; then
5443 ac_ct_NMEDIT=$NMEDIT
5444 # Extract the first word of "nmedit", so it can be a program name with args.
5445set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005447$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005448if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005449 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005450else
5451 if test -n "$ac_ct_NMEDIT"; then
5452 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5453else
5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005461 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005463 break 2
5464 fi
5465done
drhf922ca42015-05-14 15:39:18 +00005466 done
drh8b727472009-01-19 18:18:40 +00005467IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005468
5469fi
5470fi
5471ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5472if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005474$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005475else
drhf922ca42015-05-14 15:39:18 +00005476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005477$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005478fi
5479
drh8b727472009-01-19 18:18:40 +00005480 if test "x$ac_ct_NMEDIT" = x; then
5481 NMEDIT=":"
5482 else
5483 case $cross_compiling:$ac_tool_warned in
5484yes:)
drhf922ca42015-05-14 15:39:18 +00005485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005487ac_tool_warned=yes ;;
5488esac
5489 NMEDIT=$ac_ct_NMEDIT
5490 fi
mlcreech636a9952008-05-05 22:52:56 +00005491else
5492 NMEDIT="$ac_cv_prog_NMEDIT"
5493fi
5494
5495 if test -n "$ac_tool_prefix"; then
5496 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5497set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005499$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005500if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005501 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005502else
5503 if test -n "$LIPO"; then
5504 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005513 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005515 break 2
5516 fi
5517done
drhf922ca42015-05-14 15:39:18 +00005518 done
drh8b727472009-01-19 18:18:40 +00005519IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005520
5521fi
5522fi
5523LIPO=$ac_cv_prog_LIPO
5524if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005526$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005527else
drhf922ca42015-05-14 15:39:18 +00005528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005529$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005530fi
5531
drh8b727472009-01-19 18:18:40 +00005532
mlcreech636a9952008-05-05 22:52:56 +00005533fi
5534if test -z "$ac_cv_prog_LIPO"; then
5535 ac_ct_LIPO=$LIPO
5536 # Extract the first word of "lipo", so it can be a program name with args.
5537set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005539$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005540if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005541 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005542else
5543 if test -n "$ac_ct_LIPO"; then
5544 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005553 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005555 break 2
5556 fi
5557done
drhf922ca42015-05-14 15:39:18 +00005558 done
drh8b727472009-01-19 18:18:40 +00005559IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005560
5561fi
5562fi
5563ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5564if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005566$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005567else
drhf922ca42015-05-14 15:39:18 +00005568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005569$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005570fi
5571
drh8b727472009-01-19 18:18:40 +00005572 if test "x$ac_ct_LIPO" = x; then
5573 LIPO=":"
5574 else
5575 case $cross_compiling:$ac_tool_warned in
5576yes:)
drhf922ca42015-05-14 15:39:18 +00005577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005579ac_tool_warned=yes ;;
5580esac
5581 LIPO=$ac_ct_LIPO
5582 fi
mlcreech636a9952008-05-05 22:52:56 +00005583else
5584 LIPO="$ac_cv_prog_LIPO"
5585fi
5586
5587 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5589set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005591$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005592if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005593 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005594else
5595 if test -n "$OTOOL"; then
5596 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005605 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005607 break 2
5608 fi
5609done
drhf922ca42015-05-14 15:39:18 +00005610 done
drh8b727472009-01-19 18:18:40 +00005611IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005612
5613fi
5614fi
5615OTOOL=$ac_cv_prog_OTOOL
5616if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005618$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005619else
drhf922ca42015-05-14 15:39:18 +00005620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005621$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005622fi
5623
drh8b727472009-01-19 18:18:40 +00005624
mlcreech636a9952008-05-05 22:52:56 +00005625fi
5626if test -z "$ac_cv_prog_OTOOL"; then
5627 ac_ct_OTOOL=$OTOOL
5628 # Extract the first word of "otool", so it can be a program name with args.
5629set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005631$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005632if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005633 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005634else
5635 if test -n "$ac_ct_OTOOL"; then
5636 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005645 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005647 break 2
5648 fi
5649done
drhf922ca42015-05-14 15:39:18 +00005650 done
drh8b727472009-01-19 18:18:40 +00005651IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005652
5653fi
5654fi
5655ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5656if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005658$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005659else
drhf922ca42015-05-14 15:39:18 +00005660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005661$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005662fi
5663
drh8b727472009-01-19 18:18:40 +00005664 if test "x$ac_ct_OTOOL" = x; then
5665 OTOOL=":"
5666 else
5667 case $cross_compiling:$ac_tool_warned in
5668yes:)
drhf922ca42015-05-14 15:39:18 +00005669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005671ac_tool_warned=yes ;;
5672esac
5673 OTOOL=$ac_ct_OTOOL
5674 fi
mlcreech636a9952008-05-05 22:52:56 +00005675else
5676 OTOOL="$ac_cv_prog_OTOOL"
5677fi
5678
5679 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5681set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005683$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005684if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005685 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005686else
5687 if test -n "$OTOOL64"; then
5688 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5689else
5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005697 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005699 break 2
5700 fi
5701done
drhf922ca42015-05-14 15:39:18 +00005702 done
drh8b727472009-01-19 18:18:40 +00005703IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005704
5705fi
5706fi
5707OTOOL64=$ac_cv_prog_OTOOL64
5708if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005710$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005711else
drhf922ca42015-05-14 15:39:18 +00005712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005713$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005714fi
5715
drh8b727472009-01-19 18:18:40 +00005716
mlcreech636a9952008-05-05 22:52:56 +00005717fi
5718if test -z "$ac_cv_prog_OTOOL64"; then
5719 ac_ct_OTOOL64=$OTOOL64
5720 # Extract the first word of "otool64", so it can be a program name with args.
5721set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005723$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005724if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005725 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005726else
5727 if test -n "$ac_ct_OTOOL64"; then
5728 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005737 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005739 break 2
5740 fi
5741done
drhf922ca42015-05-14 15:39:18 +00005742 done
drh8b727472009-01-19 18:18:40 +00005743IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005744
5745fi
5746fi
5747ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5748if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005750$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005751else
drhf922ca42015-05-14 15:39:18 +00005752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005753$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005754fi
5755
drh8b727472009-01-19 18:18:40 +00005756 if test "x$ac_ct_OTOOL64" = x; then
5757 OTOOL64=":"
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760yes:)
drhf922ca42015-05-14 15:39:18 +00005761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005763ac_tool_warned=yes ;;
5764esac
5765 OTOOL64=$ac_ct_OTOOL64
5766 fi
mlcreech636a9952008-05-05 22:52:56 +00005767else
5768 OTOOL64="$ac_cv_prog_OTOOL64"
5769fi
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
drhf922ca42015-05-14 15:39:18 +00005797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005798$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005799if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005800 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005801else
5802 lt_cv_apple_cc_single_mod=no
5803 if test -z "${LT_MULTI_MODULE}"; then
5804 # By default we will add the -single_module flag. You can override
5805 # by either setting the environment variable LT_MULTI_MODULE
5806 # non-empty at configure time, or by adding -multi_module to the
5807 # link flags.
5808 rm -rf libconftest.dylib*
5809 echo "int foo(void){return 1;}" > conftest.c
5810 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5811-dynamiclib -Wl,-single_module conftest.c" >&5
5812 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5813 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5814 _lt_result=$?
5815 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5816 lt_cv_apple_cc_single_mod=yes
5817 else
5818 cat conftest.err >&5
5819 fi
5820 rm -rf libconftest.dylib*
5821 rm -f conftest.*
5822 fi
5823fi
drhf922ca42015-05-14 15:39:18 +00005824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005825$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005827$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005828if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005829 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005830else
5831 lt_cv_ld_exported_symbols_list=no
5832 save_LDFLAGS=$LDFLAGS
5833 echo "_main" > conftest.sym
5834 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005836/* end confdefs.h. */
5837
5838int
5839main ()
5840{
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
drhf922ca42015-05-14 15:39:18 +00005846if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005847 lt_cv_ld_exported_symbols_list=yes
5848else
drhf922ca42015-05-14 15:39:18 +00005849 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005850fi
drhf922ca42015-05-14 15:39:18 +00005851rm -f core conftest.err conftest.$ac_objext \
5852 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005853 LDFLAGS="$save_LDFLAGS"
5854
5855fi
drhf922ca42015-05-14 15:39:18 +00005856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005857$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005858 case $host_os in
5859 rhapsody* | darwin1.[012])
5860 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5861 darwin1.*)
5862 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5863 darwin*) # darwin 5.x on
5864 # if running on 10.5 or later, the deployment target defaults
5865 # to the OS version, if on x86, and 10.4, the deployment
5866 # target defaults to 10.4. Don't you love it?
5867 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5868 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5869 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5870 10.[012]*)
5871 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5872 10.*)
5873 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5874 esac
5875 ;;
5876 esac
5877 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5878 _lt_dar_single_mod='$single_module'
5879 fi
5880 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5881 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5882 else
5883 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5884 fi
5885 if test "$DSYMUTIL" != ":"; then
5886 _lt_dsymutil='~$DSYMUTIL $lib || :'
5887 else
5888 _lt_dsymutil=
5889 fi
5890 ;;
5891 esac
5892
a.rottmann84e63352003-03-24 09:42:16 +00005893ac_ext=c
5894ac_cpp='$CPP $CPPFLAGS'
5895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005899$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005900# On Suns, sometimes $CPP names a directory.
5901if test -n "$CPP" && test -d "$CPP"; then
5902 CPP=
5903fi
5904if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005905 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005906 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005907else
a.rottmann84e63352003-03-24 09:42:16 +00005908 # Double quotes because CPP needs to be expanded
5909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5910 do
5911 ac_preproc_ok=false
5912for ac_c_preproc_warn_flag in '' yes
5913do
5914 # Use a header file that comes with gcc, so configuring glibc
5915 # with a fresh cross-compiler works.
5916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5917 # <limits.h> exists even on freestanding compilers.
5918 # On the NeXT, cc -E runs the code through the compiler's parser,
5919 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005921/* end confdefs.h. */
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005927 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005928_ACEOF
drhf922ca42015-05-14 15:39:18 +00005929if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005930
drhf922ca42015-05-14 15:39:18 +00005931else
a.rottmann84e63352003-03-24 09:42:16 +00005932 # Broken: fails on valid input.
5933continue
5934fi
drhf922ca42015-05-14 15:39:18 +00005935rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005936
drh8b727472009-01-19 18:18:40 +00005937 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005938 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005940/* end confdefs.h. */
5941#include <ac_nonexistent.h>
5942_ACEOF
drhf922ca42015-05-14 15:39:18 +00005943if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005944 # Broken: success on invalid input.
5945continue
5946else
a.rottmann84e63352003-03-24 09:42:16 +00005947 # Passes both tests.
5948ac_preproc_ok=:
5949break
5950fi
drhf922ca42015-05-14 15:39:18 +00005951rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005952
5953done
5954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005955rm -f conftest.i conftest.err conftest.$ac_ext
5956if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005957 break
5958fi
5959
5960 done
5961 ac_cv_prog_CPP=$CPP
5962
5963fi
5964 CPP=$ac_cv_prog_CPP
5965else
5966 ac_cv_prog_CPP=$CPP
5967fi
drhf922ca42015-05-14 15:39:18 +00005968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005969$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005970ac_preproc_ok=false
5971for ac_c_preproc_warn_flag in '' yes
5972do
5973 # Use a header file that comes with gcc, so configuring glibc
5974 # with a fresh cross-compiler works.
5975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5976 # <limits.h> exists even on freestanding compilers.
5977 # On the NeXT, cc -E runs the code through the compiler's parser,
5978 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005980/* end confdefs.h. */
5981#ifdef __STDC__
5982# include <limits.h>
5983#else
5984# include <assert.h>
5985#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005986 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005987_ACEOF
drhf922ca42015-05-14 15:39:18 +00005988if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005989
drhf922ca42015-05-14 15:39:18 +00005990else
a.rottmann84e63352003-03-24 09:42:16 +00005991 # Broken: fails on valid input.
5992continue
5993fi
drhf922ca42015-05-14 15:39:18 +00005994rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005995
drh8b727472009-01-19 18:18:40 +00005996 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005997 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005999/* end confdefs.h. */
6000#include <ac_nonexistent.h>
6001_ACEOF
drhf922ca42015-05-14 15:39:18 +00006002if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006003 # Broken: success on invalid input.
6004continue
6005else
a.rottmann84e63352003-03-24 09:42:16 +00006006 # Passes both tests.
6007ac_preproc_ok=:
6008break
6009fi
drhf922ca42015-05-14 15:39:18 +00006010rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006011
6012done
6013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006014rm -f conftest.i conftest.err conftest.$ac_ext
6015if $ac_preproc_ok; then :
6016
a.rottmann84e63352003-03-24 09:42:16 +00006017else
drhf922ca42015-05-14 15:39:18 +00006018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6020as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6021See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006022fi
6023
6024ac_ext=c
6025ac_cpp='$CPP $CPPFLAGS'
6026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029
6030
drhf922ca42015-05-14 15:39:18 +00006031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006032$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006033if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006034 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006035else
drhf922ca42015-05-14 15:39:18 +00006036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006037/* end confdefs.h. */
6038#include <stdlib.h>
6039#include <stdarg.h>
6040#include <string.h>
6041#include <float.h>
6042
6043int
6044main ()
6045{
6046
6047 ;
6048 return 0;
6049}
6050_ACEOF
drhf922ca42015-05-14 15:39:18 +00006051if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006052 ac_cv_header_stdc=yes
6053else
drhf922ca42015-05-14 15:39:18 +00006054 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006055fi
drh8b727472009-01-19 18:18:40 +00006056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006057
6058if test $ac_cv_header_stdc = yes; then
6059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006061/* end confdefs.h. */
6062#include <string.h>
6063
6064_ACEOF
6065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006066 $EGREP "memchr" >/dev/null 2>&1; then :
6067
a.rottmann84e63352003-03-24 09:42:16 +00006068else
6069 ac_cv_header_stdc=no
6070fi
6071rm -f conftest*
6072
6073fi
6074
6075if test $ac_cv_header_stdc = yes; then
6076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006078/* end confdefs.h. */
6079#include <stdlib.h>
6080
6081_ACEOF
6082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006083 $EGREP "free" >/dev/null 2>&1; then :
6084
a.rottmann84e63352003-03-24 09:42:16 +00006085else
6086 ac_cv_header_stdc=no
6087fi
6088rm -f conftest*
6089
6090fi
6091
6092if test $ac_cv_header_stdc = yes; then
6093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006094 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006095 :
6096else
drhf922ca42015-05-14 15:39:18 +00006097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006098/* end confdefs.h. */
6099#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006100#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006101#if ((' ' & 0x0FF) == 0x020)
6102# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6103# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6104#else
6105# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006106 (('a' <= (c) && (c) <= 'i') \
6107 || ('j' <= (c) && (c) <= 'r') \
6108 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006109# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6110#endif
6111
6112#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6113int
6114main ()
6115{
6116 int i;
6117 for (i = 0; i < 256; i++)
6118 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006119 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006120 return 2;
6121 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006122}
6123_ACEOF
drhf922ca42015-05-14 15:39:18 +00006124if ac_fn_c_try_run "$LINENO"; then :
6125
a.rottmann84e63352003-03-24 09:42:16 +00006126else
drhf922ca42015-05-14 15:39:18 +00006127 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006128fi
drhf922ca42015-05-14 15:39:18 +00006129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6130 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006131fi
6132
a.rottmann84e63352003-03-24 09:42:16 +00006133fi
6134fi
drhf922ca42015-05-14 15:39:18 +00006135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006136$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006137if test $ac_cv_header_stdc = yes; then
6138
drhf922ca42015-05-14 15:39:18 +00006139$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006140
6141fi
6142
6143# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006145 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006146do :
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6149"
6150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006151 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006153_ACEOF
6154
6155fi
6156
6157done
6158
6159
a.rottmann84e63352003-03-24 09:42:16 +00006160for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006161do :
6162 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6163"
6164if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006165 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006166#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006167_ACEOF
6168
6169fi
6170
drh71eb93e2001-09-28 01:34:43 +00006171done
6172
drh71eb93e2001-09-28 01:34:43 +00006173
drh71eb93e2001-09-28 01:34:43 +00006174
mlcreech636a9952008-05-05 22:52:56 +00006175# Set options
mlcreech94984912008-03-04 19:03:08 +00006176
drh71eb93e2001-09-28 01:34:43 +00006177
drh71eb93e2001-09-28 01:34:43 +00006178
mlcreech636a9952008-05-05 22:52:56 +00006179 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006180
a.rottmann9bc8b932004-02-29 15:18:31 +00006181
mlcreech636a9952008-05-05 22:52:56 +00006182 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006183
a.rottmann9bc8b932004-02-29 15:18:31 +00006184
drh8b727472009-01-19 18:18:40 +00006185 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006186if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006187 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006188 case $enableval in
6189 yes) enable_shared=yes ;;
6190 no) enable_shared=no ;;
6191 *)
6192 enable_shared=no
6193 # Look at the argument we got. We use all the common list separators.
6194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6195 for pkg in $enableval; do
6196 IFS="$lt_save_ifs"
6197 if test "X$pkg" = "X$p"; then
6198 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006199 fi
mlcreech636a9952008-05-05 22:52:56 +00006200 done
6201 IFS="$lt_save_ifs"
6202 ;;
6203 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006204else
mlcreech636a9952008-05-05 22:52:56 +00006205 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006206fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006207
mlcreech636a9952008-05-05 22:52:56 +00006208
6209
6210
6211
6212
6213
6214
drh8b727472009-01-19 18:18:40 +00006215
6216 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006217if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006218 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006219 case $enableval in
6220 yes) enable_static=yes ;;
6221 no) enable_static=no ;;
6222 *)
6223 enable_static=no
6224 # Look at the argument we got. We use all the common list separators.
6225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6226 for pkg in $enableval; do
6227 IFS="$lt_save_ifs"
6228 if test "X$pkg" = "X$p"; then
6229 enable_static=yes
6230 fi
6231 done
6232 IFS="$lt_save_ifs"
6233 ;;
6234 esac
6235else
6236 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006237fi
mlcreech636a9952008-05-05 22:52:56 +00006238
6239
6240
6241
6242
6243
6244
6245
6246
drh8b727472009-01-19 18:18:40 +00006247
6248# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006249if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006250 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006251else
6252 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006253fi
6254
mlcreech636a9952008-05-05 22:52:56 +00006255
6256test -z "$pic_mode" && pic_mode=default
6257
6258
6259
6260
6261
6262
6263
drh8b727472009-01-19 18:18:40 +00006264 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006265if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006266 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006267 case $enableval in
6268 yes) enable_fast_install=yes ;;
6269 no) enable_fast_install=no ;;
6270 *)
6271 enable_fast_install=no
6272 # Look at the argument we got. We use all the common list separators.
6273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6274 for pkg in $enableval; do
6275 IFS="$lt_save_ifs"
6276 if test "X$pkg" = "X$p"; then
6277 enable_fast_install=yes
6278 fi
6279 done
6280 IFS="$lt_save_ifs"
6281 ;;
6282 esac
6283else
6284 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006285fi
6286
mlcreech636a9952008-05-05 22:52:56 +00006287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297# This can be used to rebuild libtool when needed
6298LIBTOOL_DEPS="$ltmain"
6299
6300# Always use our own libtool.
6301LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327test -z "$LN_S" && LN_S="ln -s"
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342if test -n "${ZSH_VERSION+set}" ; then
6343 setopt NO_GLOB_SUBST
6344fi
6345
drhf922ca42015-05-14 15:39:18 +00006346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006347$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006348if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006349 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006350else
6351 rm -f .libs 2>/dev/null
6352mkdir .libs 2>/dev/null
6353if test -d .libs; then
6354 lt_cv_objdir=.libs
6355else
6356 # MS-DOS does not allow filenames that begin with a dot.
6357 lt_cv_objdir=_libs
6358fi
6359rmdir .libs 2>/dev/null
6360fi
drhf922ca42015-05-14 15:39:18 +00006361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006362$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006363objdir=$lt_cv_objdir
6364
6365
6366
6367
6368
mlcreech636a9952008-05-05 22:52:56 +00006369cat >>confdefs.h <<_ACEOF
6370#define LT_OBJDIR "$lt_cv_objdir/"
6371_ACEOF
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
a.rottmann9bc8b932004-02-29 15:18:31 +00006389case $host_os in
6390aix3*)
6391 # AIX sometimes has problems with the GCC collect2 program. For some
6392 # reason, if we set the COLLECT_NAMES environment variable, the problems
6393 # vanish in a puff of smoke.
6394 if test "X${COLLECT_NAMES+set}" != Xset; then
6395 COLLECT_NAMES=
6396 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006397 fi
6398 ;;
6399esac
6400
a.rottmann9bc8b932004-02-29 15:18:31 +00006401# Sed substitution that helps us do robust quoting. It backslashifies
6402# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006403sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006404
6405# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006406double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006407
6408# Sed substitution to delay expansion of an escaped shell variable in a
6409# double_quote_subst'ed string.
6410delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6411
mlcreech636a9952008-05-05 22:52:56 +00006412# Sed substitution to delay expansion of an escaped single quote.
6413delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6414
a.rottmann9bc8b932004-02-29 15:18:31 +00006415# Sed substitution to avoid accidental globbing in evaled expressions
6416no_glob_subst='s/\*/\\\*/g'
6417
a.rottmann9bc8b932004-02-29 15:18:31 +00006418# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006419ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006420can_build_shared=yes
6421
vapier7f19c022007-02-17 14:46:31 +00006422# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006423# which needs '.lib').
6424libext=a
mlcreech636a9952008-05-05 22:52:56 +00006425
a.rottmann9bc8b932004-02-29 15:18:31 +00006426with_gnu_ld="$lt_cv_prog_gnu_ld"
6427
a.rottmann84e63352003-03-24 09:42:16 +00006428old_CC="$CC"
6429old_CFLAGS="$CFLAGS"
6430
6431# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006432test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006433test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006434test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006435test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006436test -z "$ac_objext" && ac_objext=o
6437
vapier7f19c022007-02-17 14:46:31 +00006438for cc_temp in $compiler""; do
6439 case $cc_temp in
6440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6442 \-*) ;;
6443 *) break;;
6444 esac
6445done
mlcreech636a9952008-05-05 22:52:56 +00006446cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006447
6448
a.rottmann9bc8b932004-02-29 15:18:31 +00006449# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006450test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006451case $deplibs_check_method in
6452file_magic*)
6453 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006455$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006456if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006457 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006458else
a.rottmann9bc8b932004-02-29 15:18:31 +00006459 case $MAGIC_CMD in
6460[\\/*] | ?:[\\/]*)
6461 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6462 ;;
6463*)
6464 lt_save_MAGIC_CMD="$MAGIC_CMD"
6465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6466 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6467 for ac_dir in $ac_dummy; do
6468 IFS="$lt_save_ifs"
6469 test -z "$ac_dir" && ac_dir=.
6470 if test -f $ac_dir/${ac_tool_prefix}file; then
6471 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6472 if test -n "$file_magic_test_file"; then
6473 case $deplibs_check_method in
6474 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006475 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6478 $EGREP "$file_magic_regex" > /dev/null; then
6479 :
6480 else
mlcreech636a9952008-05-05 22:52:56 +00006481 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006482
a.rottmann9bc8b932004-02-29 15:18:31 +00006483*** Warning: the command libtool uses to detect shared libraries,
6484*** $file_magic_cmd, produces output that libtool cannot recognize.
6485*** The result is that libtool may fail to recognize shared libraries
6486*** as such. This will affect the creation of libtool libraries that
6487*** depend on shared libraries, but programs linked with such libtool
6488*** libraries will work regardless of this problem. Nevertheless, you
6489*** may want to report the problem to your system manager and/or to
6490*** bug-libtool@gnu.org
6491
mlcreech636a9952008-05-05 22:52:56 +00006492_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006493 fi ;;
6494 esac
6495 fi
6496 break
6497 fi
6498 done
6499 IFS="$lt_save_ifs"
6500 MAGIC_CMD="$lt_save_MAGIC_CMD"
6501 ;;
6502esac
6503fi
6504
6505MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6506if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006508$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006509else
drhf922ca42015-05-14 15:39:18 +00006510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006511$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006512fi
6513
mlcreech636a9952008-05-05 22:52:56 +00006514
6515
6516
6517
a.rottmann9bc8b932004-02-29 15:18:31 +00006518if test -z "$lt_cv_path_MAGIC_CMD"; then
6519 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006521$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006522if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006523 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006524else
6525 case $MAGIC_CMD in
6526[\\/*] | ?:[\\/]*)
6527 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6528 ;;
6529*)
6530 lt_save_MAGIC_CMD="$MAGIC_CMD"
6531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6533 for ac_dir in $ac_dummy; do
6534 IFS="$lt_save_ifs"
6535 test -z "$ac_dir" && ac_dir=.
6536 if test -f $ac_dir/file; then
6537 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6538 if test -n "$file_magic_test_file"; then
6539 case $deplibs_check_method in
6540 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6544 $EGREP "$file_magic_regex" > /dev/null; then
6545 :
6546 else
mlcreech636a9952008-05-05 22:52:56 +00006547 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006548
6549*** Warning: the command libtool uses to detect shared libraries,
6550*** $file_magic_cmd, produces output that libtool cannot recognize.
6551*** The result is that libtool may fail to recognize shared libraries
6552*** as such. This will affect the creation of libtool libraries that
6553*** depend on shared libraries, but programs linked with such libtool
6554*** libraries will work regardless of this problem. Nevertheless, you
6555*** may want to report the problem to your system manager and/or to
6556*** bug-libtool@gnu.org
6557
mlcreech636a9952008-05-05 22:52:56 +00006558_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006559 fi ;;
6560 esac
6561 fi
6562 break
6563 fi
6564 done
6565 IFS="$lt_save_ifs"
6566 MAGIC_CMD="$lt_save_MAGIC_CMD"
6567 ;;
6568esac
6569fi
6570
6571MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6572if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006574$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006575else
drhf922ca42015-05-14 15:39:18 +00006576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006577$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006578fi
6579
mlcreech636a9952008-05-05 22:52:56 +00006580
a.rottmann9bc8b932004-02-29 15:18:31 +00006581 else
6582 MAGIC_CMD=:
6583 fi
6584fi
6585
6586 fi
6587 ;;
6588esac
6589
a.rottmann9bc8b932004-02-29 15:18:31 +00006590# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006591
a.rottmann9bc8b932004-02-29 15:18:31 +00006592lt_save_CC="$CC"
6593ac_ext=c
6594ac_cpp='$CPP $CPPFLAGS'
6595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599
6600# Source file extension for C test sources.
6601ac_ext=c
6602
6603# Object file extension for compiled C test sources.
6604objext=o
6605objext=$objext
6606
6607# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006608lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006609
6610# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006611lt_simple_link_test_code='int main(){return(0);}'
6612
6613
6614
6615
6616
a.rottmann9bc8b932004-02-29 15:18:31 +00006617
6618
6619# If no C compiler was specified, use CC.
6620LTCC=${LTCC-"$CC"}
6621
vapier7f19c022007-02-17 14:46:31 +00006622# If no C compiler flags were specified, use CFLAGS.
6623LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6624
a.rottmann9bc8b932004-02-29 15:18:31 +00006625# Allow CC to be a program name with arguments.
6626compiler=$CC
6627
mlcreech636a9952008-05-05 22:52:56 +00006628# Save the default compiler, since it gets overwritten when the other
6629# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6630compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006631
vapier7f19c022007-02-17 14:46:31 +00006632# save warnings/boilerplate of simple test code
6633ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006634echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006635eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6636_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006637$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006638
vapier7f19c022007-02-17 14:46:31 +00006639ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006640echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006641eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6642_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006643$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006644
6645
mlcreech636a9952008-05-05 22:52:56 +00006646if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006647
6648lt_prog_compiler_no_builtin_flag=
6649
6650if test "$GCC" = yes; then
6651 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6652
drhf922ca42015-05-14 15:39:18 +00006653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006654$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006655if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006656 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006657else
6658 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006659 ac_outfile=conftest.$ac_objext
6660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006661 lt_compiler_flag="-fno-rtti -fno-exceptions"
6662 # Insert the option either (1) after the last *FLAGS variable, or
6663 # (2) before a word containing "conftest.", or (3) at the end.
6664 # Note that $ac_compile itself does not contain backslashes and begins
6665 # with a dollar sign (not a hyphen), so the echo should work correctly.
6666 # The option is referenced via a variable to avoid confusing sed.
6667 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6670 -e 's:$: $lt_compiler_flag:'`
drh83bebdd2017-08-28 17:00:12 +00006671 (eval echo "\"\$as_me:6671: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006672 (eval "$lt_compile" 2>conftest.err)
6673 ac_status=$?
6674 cat conftest.err >&5
drh83bebdd2017-08-28 17:00:12 +00006675 echo "$as_me:6675: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 if (exit $ac_status) && test -s "$ac_outfile"; then
6677 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006678 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006679 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006682 lt_cv_prog_compiler_rtti_exceptions=yes
6683 fi
6684 fi
mlcreech636a9952008-05-05 22:52:56 +00006685 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006686
6687fi
drhf922ca42015-05-14 15:39:18 +00006688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006689$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006690
6691if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6692 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6693else
6694 :
6695fi
6696
6697fi
6698
mlcreech636a9952008-05-05 22:52:56 +00006699
6700
6701
6702
6703
6704 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006705lt_prog_compiler_pic=
6706lt_prog_compiler_static=
6707
drhf922ca42015-05-14 15:39:18 +00006708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006709$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006710
drh71eb93e2001-09-28 01:34:43 +00006711 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006712 lt_prog_compiler_wl='-Wl,'
6713 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006714
6715 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006716 aix*)
6717 # All AIX code is PIC.
6718 if test "$host_cpu" = ia64; then
6719 # AIX 5 now supports IA64 processor
6720 lt_prog_compiler_static='-Bstatic'
6721 fi
drh71eb93e2001-09-28 01:34:43 +00006722 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006723
drh71eb93e2001-09-28 01:34:43 +00006724 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006725 case $host_cpu in
6726 powerpc)
6727 # see comment about AmigaOS4 .so support
6728 lt_prog_compiler_pic='-fPIC'
6729 ;;
6730 m68k)
6731 # FIXME: we need at least 68020 code to build shared libraries, but
6732 # adding the `-m68020' flag to GCC prevents building anything better,
6733 # like `-m68040'.
6734 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6735 ;;
6736 esac
drh71eb93e2001-09-28 01:34:43 +00006737 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006738
mlcreech636a9952008-05-05 22:52:56 +00006739 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006740 # PIC is the default for these OSes.
6741 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006742
vapier6acb2cf2009-01-28 04:46:28 +00006743 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006744 # This hack is so that the source file can tell whether it is being
6745 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006746 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6747 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006748 lt_prog_compiler_pic='-DDLL_EXPORT'
6749 ;;
6750
drh71eb93e2001-09-28 01:34:43 +00006751 darwin* | rhapsody*)
6752 # PIC is the default on this platform
6753 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006754 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006755 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006756
a.rottmann9bc8b932004-02-29 15:18:31 +00006757 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006758 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6759 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6760 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006761 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006762 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006763 # +Z the default
6764 ;;
6765 *)
6766 lt_prog_compiler_pic='-fPIC'
6767 ;;
6768 esac
6769 ;;
6770
mlcreech636a9952008-05-05 22:52:56 +00006771 interix[3-9]*)
6772 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6773 # Instead, we relocate shared libraries at runtime.
6774 ;;
6775
6776 msdosdjgpp*)
6777 # Just because we use GCC doesn't mean we suddenly get shared libraries
6778 # on systems that don't support them.
6779 lt_prog_compiler_can_build_shared=no
6780 enable_shared=no
6781 ;;
6782
6783 *nto* | *qnx*)
6784 # QNX uses GNU C++, but need to define -shared option too, otherwise
6785 # it will coredump.
6786 lt_prog_compiler_pic='-fPIC -shared'
6787 ;;
6788
6789 sysv4*MP*)
6790 if test -d /usr/nec; then
6791 lt_prog_compiler_pic=-Kconform_pic
6792 fi
6793 ;;
6794
drh71eb93e2001-09-28 01:34:43 +00006795 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006796 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006797 ;;
6798 esac
6799 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006801 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 aix*)
6803 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006804 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006805 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006806 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006807 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006809 fi
6810 ;;
6811
vapier6acb2cf2009-01-28 04:46:28 +00006812 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006813 # This hack is so that the source file can tell whether it is being
6814 # built for inclusion in a dll (and should export symbols for example).
6815 lt_prog_compiler_pic='-DDLL_EXPORT'
6816 ;;
6817
a.rottmann84e63352003-03-24 09:42:16 +00006818 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006819 lt_prog_compiler_wl='-Wl,'
6820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6821 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006822 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006823 hppa*64*|ia64*)
6824 # +Z the default
6825 ;;
6826 *)
6827 lt_prog_compiler_pic='+Z'
6828 ;;
6829 esac
6830 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6831 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006832 ;;
6833
6834 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006835 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006836 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006837 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006838 ;;
6839
mlcreech636a9952008-05-05 22:52:56 +00006840 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006841 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006842 # old Intel for x86_64 which still supported -KPIC.
6843 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006844 lt_prog_compiler_wl='-Wl,'
6845 lt_prog_compiler_pic='-KPIC'
6846 lt_prog_compiler_static='-static'
6847 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006848 # icc used to be incompatible with GCC.
6849 # ICC 10 doesn't accept -KPIC any more.
6850 icc* | ifort*)
6851 lt_prog_compiler_wl='-Wl,'
6852 lt_prog_compiler_pic='-fPIC'
6853 lt_prog_compiler_static='-static'
6854 ;;
6855 # Lahey Fortran 8.1.
6856 lf95*)
6857 lt_prog_compiler_wl='-Wl,'
6858 lt_prog_compiler_pic='--shared'
6859 lt_prog_compiler_static='--static'
6860 ;;
vapier7f19c022007-02-17 14:46:31 +00006861 pgcc* | pgf77* | pgf90* | pgf95*)
6862 # Portland Group compilers (*not* the Pentium gcc compiler,
6863 # which looks to be a dead project)
6864 lt_prog_compiler_wl='-Wl,'
6865 lt_prog_compiler_pic='-fpic'
6866 lt_prog_compiler_static='-Bstatic'
6867 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006868 ccc*)
6869 lt_prog_compiler_wl='-Wl,'
6870 # All Alpha code is PIC.
6871 lt_prog_compiler_static='-non_shared'
6872 ;;
mlcreech636a9952008-05-05 22:52:56 +00006873 xl*)
6874 # IBM XL C 8.0/Fortran 10.1 on PPC
6875 lt_prog_compiler_wl='-Wl,'
6876 lt_prog_compiler_pic='-qpic'
6877 lt_prog_compiler_static='-qstaticlink'
6878 ;;
6879 *)
6880 case `$CC -V 2>&1 | sed 5q` in
6881 *Sun\ C*)
6882 # Sun C 5.9
6883 lt_prog_compiler_pic='-KPIC'
6884 lt_prog_compiler_static='-Bstatic'
6885 lt_prog_compiler_wl='-Wl,'
6886 ;;
6887 *Sun\ F*)
6888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6889 lt_prog_compiler_pic='-KPIC'
6890 lt_prog_compiler_static='-Bstatic'
6891 lt_prog_compiler_wl=''
6892 ;;
6893 esac
6894 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006895 esac
drh71eb93e2001-09-28 01:34:43 +00006896 ;;
6897
mlcreech636a9952008-05-05 22:52:56 +00006898 newsos6)
6899 lt_prog_compiler_pic='-KPIC'
6900 lt_prog_compiler_static='-Bstatic'
6901 ;;
6902
6903 *nto* | *qnx*)
6904 # QNX uses GNU C++, but need to define -shared option too, otherwise
6905 # it will coredump.
6906 lt_prog_compiler_pic='-fPIC -shared'
6907 ;;
6908
drh71eb93e2001-09-28 01:34:43 +00006909 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006911 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006912 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006913 ;;
6914
mlcreech636a9952008-05-05 22:52:56 +00006915 rdos*)
6916 lt_prog_compiler_static='-non_shared'
6917 ;;
6918
drh71eb93e2001-09-28 01:34:43 +00006919 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 lt_prog_compiler_pic='-KPIC'
6921 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006922 case $cc_basename in
6923 f77* | f90* | f95*)
6924 lt_prog_compiler_wl='-Qoption ld ';;
6925 *)
6926 lt_prog_compiler_wl='-Wl,';;
6927 esac
drh71eb93e2001-09-28 01:34:43 +00006928 ;;
6929
6930 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006931 lt_prog_compiler_wl='-Qoption ld '
6932 lt_prog_compiler_pic='-PIC'
6933 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006934 ;;
6935
vapier7f19c022007-02-17 14:46:31 +00006936 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006937 lt_prog_compiler_wl='-Wl,'
6938 lt_prog_compiler_pic='-KPIC'
6939 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006940 ;;
6941
6942 sysv4*MP*)
6943 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006944 lt_prog_compiler_pic='-Kconform_pic'
6945 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006946 fi
6947 ;;
6948
vapier7f19c022007-02-17 14:46:31 +00006949 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6950 lt_prog_compiler_wl='-Wl,'
6951 lt_prog_compiler_pic='-KPIC'
6952 lt_prog_compiler_static='-Bstatic'
6953 ;;
6954
6955 unicos*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_can_build_shared=no
6958 ;;
6959
a.rottmann9bc8b932004-02-29 15:18:31 +00006960 uts4*)
6961 lt_prog_compiler_pic='-pic'
6962 lt_prog_compiler_static='-Bstatic'
6963 ;;
6964
drh71eb93e2001-09-28 01:34:43 +00006965 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006966 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006967 ;;
6968 esac
6969 fi
6970
mlcreech636a9952008-05-05 22:52:56 +00006971case $host_os in
6972 # For platforms which do not support PIC, -DPIC is meaningless:
6973 *djgpp*)
6974 lt_prog_compiler_pic=
6975 ;;
6976 *)
6977 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6978 ;;
6979esac
drhf922ca42015-05-14 15:39:18 +00006980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006981$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006982
6983
6984
6985
6986
drh71eb93e2001-09-28 01:34:43 +00006987
a.rottmann9bc8b932004-02-29 15:18:31 +00006988#
6989# Check to make sure the PIC flag actually works.
6990#
6991if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006993$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006994if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006995 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006996else
mlcreech636a9952008-05-05 22:52:56 +00006997 lt_cv_prog_compiler_pic_works=no
6998 ac_outfile=conftest.$ac_objext
6999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007000 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7001 # Insert the option either (1) after the last *FLAGS variable, or
7002 # (2) before a word containing "conftest.", or (3) at the end.
7003 # Note that $ac_compile itself does not contain backslashes and begins
7004 # with a dollar sign (not a hyphen), so the echo should work correctly.
7005 # The option is referenced via a variable to avoid confusing sed.
7006 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007007 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007008 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7009 -e 's:$: $lt_compiler_flag:'`
drh83bebdd2017-08-28 17:00:12 +00007010 (eval echo "\"\$as_me:7010: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 (eval "$lt_compile" 2>conftest.err)
7012 ac_status=$?
7013 cat conftest.err >&5
drh83bebdd2017-08-28 17:00:12 +00007014 echo "$as_me:7014: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007015 if (exit $ac_status) && test -s "$ac_outfile"; then
7016 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007017 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007018 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7020 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007021 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007022 fi
7023 fi
mlcreech636a9952008-05-05 22:52:56 +00007024 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007025
a.rottmann9bc8b932004-02-29 15:18:31 +00007026fi
drhf922ca42015-05-14 15:39:18 +00007027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007028$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007029
mlcreech636a9952008-05-05 22:52:56 +00007030if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007031 case $lt_prog_compiler_pic in
7032 "" | " "*) ;;
7033 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7034 esac
drh71eb93e2001-09-28 01:34:43 +00007035else
a.rottmann9bc8b932004-02-29 15:18:31 +00007036 lt_prog_compiler_pic=
7037 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007038fi
7039
a.rottmann84e63352003-03-24 09:42:16 +00007040fi
mlcreech636a9952008-05-05 22:52:56 +00007041
7042
7043
7044
7045
a.rottmann84e63352003-03-24 09:42:16 +00007046
vapier7f19c022007-02-17 14:46:31 +00007047#
7048# Check to make sure the static flag actually works.
7049#
7050wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007052$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007053if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007054 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007055else
mlcreech636a9952008-05-05 22:52:56 +00007056 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007057 save_LDFLAGS="$LDFLAGS"
7058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7061 # The linker can only warn and ignore the option if not recognized
7062 # So say no if there are warnings
7063 if test -s conftest.err; then
7064 # Append any errors to the config.log.
7065 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007066 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7068 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007069 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007070 fi
7071 else
mlcreech636a9952008-05-05 22:52:56 +00007072 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007073 fi
7074 fi
mlcreech636a9952008-05-05 22:52:56 +00007075 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007076 LDFLAGS="$save_LDFLAGS"
7077
7078fi
drhf922ca42015-05-14 15:39:18 +00007079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007080$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007081
mlcreech636a9952008-05-05 22:52:56 +00007082if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007083 :
7084else
7085 lt_prog_compiler_static=
7086fi
7087
7088
mlcreech636a9952008-05-05 22:52:56 +00007089
7090
7091
7092
7093
drhf922ca42015-05-14 15:39:18 +00007094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007095$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007096if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007097 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007098else
a.rottmann9bc8b932004-02-29 15:18:31 +00007099 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007100 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007101 mkdir conftest
7102 cd conftest
7103 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007105
a.rottmann9bc8b932004-02-29 15:18:31 +00007106 lt_compiler_flag="-o out/conftest2.$ac_objext"
7107 # Insert the option either (1) after the last *FLAGS variable, or
7108 # (2) before a word containing "conftest.", or (3) at the end.
7109 # Note that $ac_compile itself does not contain backslashes and begins
7110 # with a dollar sign (not a hyphen), so the echo should work correctly.
7111 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7114 -e 's:$: $lt_compiler_flag:'`
drh83bebdd2017-08-28 17:00:12 +00007115 (eval echo "\"\$as_me:7115: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007116 (eval "$lt_compile" 2>out/conftest.err)
7117 ac_status=$?
7118 cat out/conftest.err >&5
drh83bebdd2017-08-28 17:00:12 +00007119 echo "$as_me:7119: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7121 then
7122 # The compiler can only warn and ignore the option if not recognized
7123 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007124 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007127 lt_cv_prog_compiler_c_o=yes
7128 fi
7129 fi
vapier7f19c022007-02-17 14:46:31 +00007130 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007131 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007132 # SGI C++ compiler will create directory out/ii_files/ for
7133 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7135 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007136 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007137 $RM -r conftest
7138 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007139
7140fi
drhf922ca42015-05-14 15:39:18 +00007141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007142$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007143
7144
7145
7146
7147
7148
drhf922ca42015-05-14 15:39:18 +00007149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007150$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007151if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007152 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007153else
7154 lt_cv_prog_compiler_c_o=no
7155 $RM -r conftest 2>/dev/null
7156 mkdir conftest
7157 cd conftest
7158 mkdir out
7159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7160
7161 lt_compiler_flag="-o out/conftest2.$ac_objext"
7162 # Insert the option either (1) after the last *FLAGS variable, or
7163 # (2) before a word containing "conftest.", or (3) at the end.
7164 # Note that $ac_compile itself does not contain backslashes and begins
7165 # with a dollar sign (not a hyphen), so the echo should work correctly.
7166 lt_compile=`echo "$ac_compile" | $SED \
7167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7169 -e 's:$: $lt_compiler_flag:'`
drh83bebdd2017-08-28 17:00:12 +00007170 (eval echo "\"\$as_me:7170: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007171 (eval "$lt_compile" 2>out/conftest.err)
7172 ac_status=$?
7173 cat out/conftest.err >&5
drh83bebdd2017-08-28 17:00:12 +00007174 echo "$as_me:7174: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7176 then
7177 # The compiler can only warn and ignore the option if not recognized
7178 # So say no if there are warnings
7179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7182 lt_cv_prog_compiler_c_o=yes
7183 fi
7184 fi
7185 chmod u+w . 2>&5
7186 $RM conftest*
7187 # SGI C++ compiler will create directory out/ii_files/ for
7188 # template instantiation
7189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7190 $RM out/* && rmdir out
7191 cd ..
7192 $RM -r conftest
7193 $RM conftest*
7194
7195fi
drhf922ca42015-05-14 15:39:18 +00007196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007197$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007198
7199
drh71eb93e2001-09-28 01:34:43 +00007200
a.rottmann84e63352003-03-24 09:42:16 +00007201
drh71eb93e2001-09-28 01:34:43 +00007202hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007203if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007204 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007206$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007207 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007208 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7210 touch conftest.a
7211 ln conftest.a conftest.b 2>&5 || hard_links=no
7212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007214$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007215 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007216 { $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 +00007217$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007218 need_locks=warn
7219 fi
7220else
7221 need_locks=no
7222fi
7223
mlcreech636a9952008-05-05 22:52:56 +00007224
7225
7226
7227
7228
drhf922ca42015-05-14 15:39:18 +00007229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007230$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007231
7232 runpath_var=
7233 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007234 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007235 archive_cmds=
7236 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007237 compiler_needs_object=no
7238 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007239 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7241 hardcode_automatic=no
7242 hardcode_direct=no
7243 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 hardcode_libdir_flag_spec=
7245 hardcode_libdir_flag_spec_ld=
7246 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007247 hardcode_minus_L=no
7248 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007249 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007250 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 module_cmds=
7252 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007253 old_archive_from_new_cmds=
7254 old_archive_from_expsyms_cmds=
7255 thread_safe_flag_spec=
7256 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007257 # include_expsyms should be a list of space-separated symbols to be *always*
7258 # included in the symbol list
7259 include_expsyms=
7260 # exclude_expsyms can be an extended regexp of symbols to exclude
7261 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7262 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7263 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007264 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7266 # platforms (ab)use it in PIC code, but their linkers get confused if
7267 # the symbol is explicitly referenced. Since portable code cannot
7268 # rely on this symbol name, it's probably fine to never include it in
7269 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007270 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 extract_expsyms_cmds=
7272
7273 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007274 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7276 # When not using gcc, we currently assume that we are using
7277 # Microsoft Visual C++.
7278 if test "$GCC" != yes; then
7279 with_gnu_ld=no
7280 fi
7281 ;;
vapier7f19c022007-02-17 14:46:31 +00007282 interix*)
7283 # we just hope/assume this is gcc and not c89 (= MSVC++)
7284 with_gnu_ld=yes
7285 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007286 openbsd*)
7287 with_gnu_ld=no
7288 ;;
7289 esac
7290
7291 ld_shlibs=yes
7292 if test "$with_gnu_ld" = yes; then
7293 # If archive_cmds runs LD, not CC, wlarc should be empty
7294 wlarc='${wl}'
7295
vapier7f19c022007-02-17 14:46:31 +00007296 # Set some defaults for GNU ld with shared library support. These
7297 # are reset later if shared libraries are not supported. Putting them
7298 # here allows them to be overridden if necessary.
7299 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007301 export_dynamic_flag_spec='${wl}--export-dynamic'
7302 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007303 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7304 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7305 else
7306 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007307 fi
7308 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007309 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7313 *\ 2.11.*) ;; # other 2.11 versions
7314 *) supports_anon_versioning=yes ;;
7315 esac
7316
a.rottmann9bc8b932004-02-29 15:18:31 +00007317 # See if GNU ld supports shared libraries.
7318 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007319 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007320 # On AIX/PPC, the GNU linker is very broken
7321 if test "$host_cpu" != ia64; then
7322 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007323 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007324
7325*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7326*** to be unable to reliably create shared libraries on AIX.
7327*** Therefore, libtool is disabling shared libraries support. If you
7328*** really care for shared libraries, you may want to modify your PATH
7329*** so that a non-GNU linker is found, and then restart.
7330
mlcreech636a9952008-05-05 22:52:56 +00007331_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007332 fi
7333 ;;
7334
7335 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007336 case $host_cpu in
7337 powerpc)
7338 # see comment about AmigaOS4 .so support
7339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7340 archive_expsym_cmds=''
7341 ;;
7342 m68k)
7343 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)'
7344 hardcode_libdir_flag_spec='-L$libdir'
7345 hardcode_minus_L=yes
7346 ;;
7347 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007348 ;;
7349
7350 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007352 allow_undefined_flag=unsupported
7353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7354 # support --undefined. This deserves some investigation. FIXME
7355 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7356 else
7357 ld_shlibs=no
7358 fi
7359 ;;
7360
vapier6acb2cf2009-01-28 04:46:28 +00007361 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007362 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007363 # as there is no search path for DLLs.
7364 hardcode_libdir_flag_spec='-L$libdir'
7365 allow_undefined_flag=unsupported
7366 always_export_symbols=no
7367 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007368 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 +00007369
mlcreech636a9952008-05-05 22:52:56 +00007370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007371 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 +00007372 # If the export-symbols file already is a .def file (1st line
7373 # is EXPORTS), use it as is; otherwise, prepend...
7374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7375 cp $export_symbols $output_objdir/$soname.def;
7376 else
7377 echo EXPORTS > $output_objdir/$soname.def;
7378 cat $export_symbols >> $output_objdir/$soname.def;
7379 fi~
vapier7f19c022007-02-17 14:46:31 +00007380 $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 +00007381 else
7382 ld_shlibs=no
7383 fi
7384 ;;
7385
mlcreech636a9952008-05-05 22:52:56 +00007386 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007387 hardcode_direct=no
7388 hardcode_shlibpath_var=no
7389 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7390 export_dynamic_flag_spec='${wl}-E'
7391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7392 # Instead, shared libraries are loaded at an image base (0x10000000 by
7393 # default) and relocated if they conflict, which is a slow very memory
7394 # consuming and fragmenting process. To avoid this, we pick a random,
7395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7398 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'
7399 ;;
7400
mlcreech636a9952008-05-05 22:52:56 +00007401 gnu* | linux* | tpf* | k*bsd*-gnu)
7402 tmp_diet=no
7403 if test "$host_os" = linux-dietlibc; then
7404 case $cc_basename in
7405 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7406 esac
7407 fi
7408 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7409 && test "$tmp_diet" = no
7410 then
vapier7f19c022007-02-17 14:46:31 +00007411 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007412 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007413 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007414 pgcc*) # Portland Group C compiler
7415 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 +00007416 tmp_addflag=' $pic_flag'
7417 ;;
7418 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007419 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 +00007420 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007421 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007422 tmp_addflag=' -i_dynamic' ;;
7423 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7424 tmp_addflag=' -i_dynamic -nofor_main' ;;
7425 ifc* | ifort*) # Intel Fortran compiler
7426 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007427 lf95*) # Lahey Fortran 8.1
7428 whole_archive_flag_spec=
7429 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007430 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7431 tmp_sharedflag='-qmkshrobj'
7432 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007433 esac
mlcreech636a9952008-05-05 22:52:56 +00007434 case `$CC -V 2>&1 | sed 5q` in
7435 *Sun\ C*) # Sun C 5.9
7436 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'
7437 compiler_needs_object=yes
7438 tmp_sharedflag='-G' ;;
7439 *Sun\ F*) # Sun Fortran 8.3
7440 tmp_sharedflag='-G' ;;
7441 esac
7442 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007443
mlcreech636a9952008-05-05 22:52:56 +00007444 if test "x$supports_anon_versioning" = xyes; then
7445 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7447 echo "local: *; };" >> $output_objdir/$libname.ver~
7448 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7449 fi
7450
7451 case $cc_basename in
7452 xlf*)
7453 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7454 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7455 hardcode_libdir_flag_spec=
7456 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7457 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7458 if test "x$supports_anon_versioning" = xyes; then
7459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7461 echo "local: *; };" >> $output_objdir/$libname.ver~
7462 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7463 fi
7464 ;;
7465 esac
vapier7f19c022007-02-17 14:46:31 +00007466 else
mlcreech636a9952008-05-05 22:52:56 +00007467 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007468 fi
7469 ;;
7470
7471 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007473 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7474 wlarc=
7475 else
7476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7477 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7478 fi
7479 ;;
7480
vapier7f19c022007-02-17 14:46:31 +00007481 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007482 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007483 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007484 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007485
7486*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7487*** create shared libraries on Solaris systems. Therefore, libtool
7488*** is disabling shared libraries support. We urge you to upgrade GNU
7489*** binutils to release 2.9.1 or newer. Another option is to modify
7490*** your PATH or compiler configuration so that the native linker is
7491*** used, and then restart.
7492
mlcreech636a9952008-05-05 22:52:56 +00007493_LT_EOF
7494 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7497 else
7498 ld_shlibs=no
7499 fi
7500 ;;
7501
vapier7f19c022007-02-17 14:46:31 +00007502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7503 case `$LD -v 2>&1` in
7504 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7505 ld_shlibs=no
7506 cat <<_LT_EOF 1>&2
7507
7508*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7509*** reliably create shared libraries on SCO systems. Therefore, libtool
7510*** is disabling shared libraries support. We urge you to upgrade GNU
7511*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7512*** your PATH or compiler configuration so that the native linker is
7513*** used, and then restart.
7514
7515_LT_EOF
7516 ;;
7517 *)
mlcreech636a9952008-05-05 22:52:56 +00007518 # For security reasons, it is highly recommended that you always
7519 # use absolute paths for naming shared libraries, and exclude the
7520 # DT_RUNPATH tag from executables and libraries. But doing so
7521 # requires that you compile everything twice, which is a pain.
7522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7525 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 +00007526 else
7527 ld_shlibs=no
7528 fi
7529 ;;
7530 esac
7531 ;;
7532
a.rottmann9bc8b932004-02-29 15:18:31 +00007533 sunos4*)
7534 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7535 wlarc=
7536 hardcode_direct=yes
7537 hardcode_shlibpath_var=no
7538 ;;
7539
a.rottmann9bc8b932004-02-29 15:18:31 +00007540 *)
mlcreech636a9952008-05-05 22:52:56 +00007541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7544 else
7545 ld_shlibs=no
7546 fi
7547 ;;
7548 esac
7549
vapier7f19c022007-02-17 14:46:31 +00007550 if test "$ld_shlibs" = no; then
7551 runpath_var=
7552 hardcode_libdir_flag_spec=
7553 export_dynamic_flag_spec=
7554 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007555 fi
7556 else
7557 # PORTME fill in a description of your system's linker (not GNU ld)
7558 case $host_os in
7559 aix3*)
7560 allow_undefined_flag=unsupported
7561 always_export_symbols=yes
7562 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'
7563 # Note: this linker hardcodes the directories in LIBPATH if there
7564 # are no directories specified by -L.
7565 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007566 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007567 # Neither direct hardcoding nor static linking is supported with a
7568 # broken collect2.
7569 hardcode_direct=unsupported
7570 fi
7571 ;;
7572
mlcreech636a9952008-05-05 22:52:56 +00007573 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007574 if test "$host_cpu" = ia64; then
7575 # On IA64, the linker does run time linking by default, so we don't
7576 # have to do anything special.
7577 aix_use_runtimelinking=no
7578 exp_sym_flag='-Bexport'
7579 no_entry_flag=""
7580 else
7581 # If we're using GNU nm, then we don't want the "-C" option.
7582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007583 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7584 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 +00007585 else
mlcreech636a9952008-05-05 22:52:56 +00007586 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 +00007587 fi
7588 aix_use_runtimelinking=no
7589
7590 # Test if we are trying to use run time linking or normal
7591 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7592 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007593 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007594 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007595 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7596 aix_use_runtimelinking=yes
7597 break
7598 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007599 done
vapier7f19c022007-02-17 14:46:31 +00007600 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007601 esac
7602
7603 exp_sym_flag='-bexport'
7604 no_entry_flag='-bnoentry'
7605 fi
7606
7607 # When large executables or shared objects are built, AIX ld can
7608 # have problems creating the table of contents. If linking a library
7609 # or program results in "error TOC overflow" add -mminimal-toc to
7610 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7611 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7612
7613 archive_cmds=''
7614 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007615 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007616 hardcode_libdir_separator=':'
7617 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007618 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007619
7620 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007621 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 # We only want to do this on AIX 4.2 and lower, the check
7623 # below for broken collect2 doesn't work under 4.3+
7624 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007625 if test -f "$collect2name" &&
7626 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007627 then
mlcreech636a9952008-05-05 22:52:56 +00007628 # We have reworked collect2
7629 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007630 else
mlcreech636a9952008-05-05 22:52:56 +00007631 # We have old collect2
7632 hardcode_direct=unsupported
7633 # It fails to find uninstalled libraries when the uninstalled
7634 # path is not listed in the libpath. Setting hardcode_minus_L
7635 # to unsupported forces relinking
7636 hardcode_minus_L=yes
7637 hardcode_libdir_flag_spec='-L$libdir'
7638 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007639 fi
vapier7f19c022007-02-17 14:46:31 +00007640 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007641 esac
7642 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007643 if test "$aix_use_runtimelinking" = yes; then
7644 shared_flag="$shared_flag "'${wl}-G'
7645 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007646 else
7647 # not using gcc
7648 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007649 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7650 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 shared_flag='-G'
7652 else
vapier7f19c022007-02-17 14:46:31 +00007653 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007654 shared_flag='${wl}-G'
7655 else
7656 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007657 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007658 fi
7659 fi
7660
vapier6acb2cf2009-01-28 04:46:28 +00007661 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 # It seems that -bexpall does not export symbols beginning with
7663 # underscore (_), so it is better to generate a list of symbols to export.
7664 always_export_symbols=yes
7665 if test "$aix_use_runtimelinking" = yes; then
7666 # Warning - without using the other runtime loading flags (-brtl),
7667 # -berok will link without error, but may produce a broken library.
7668 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007669 # Determine the default libpath from the value encoded in an
7670 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007672/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007673
a.rottmann84e63352003-03-24 09:42:16 +00007674int
7675main ()
7676{
a.rottmann9bc8b932004-02-29 15:18:31 +00007677
a.rottmann84e63352003-03-24 09:42:16 +00007678 ;
7679 return 0;
7680}
7681_ACEOF
drhf922ca42015-05-14 15:39:18 +00007682if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007683
mlcreech636a9952008-05-05 22:52:56 +00007684lt_aix_libpath_sed='
7685 /Import File Strings/,/^$/ {
7686 /^0/ {
7687 s/^0 *\(.*\)$/\1/
7688 p
7689 }
7690 }'
7691aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007692# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007693if test -z "$aix_libpath"; then
7694 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7695fi
a.rottmann84e63352003-03-24 09:42:16 +00007696fi
drhf922ca42015-05-14 15:39:18 +00007697rm -f core conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007699if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007700
mlcreech636a9952008-05-05 22:52:56 +00007701 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7702 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"
7703 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007704 if test "$host_cpu" = ia64; then
7705 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7706 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007707 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 +00007708 else
mlcreech636a9952008-05-05 22:52:56 +00007709 # Determine the default libpath from the value encoded in an
7710 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007712/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007713
a.rottmann9bc8b932004-02-29 15:18:31 +00007714int
7715main ()
7716{
a.rottmann84e63352003-03-24 09:42:16 +00007717
a.rottmann9bc8b932004-02-29 15:18:31 +00007718 ;
7719 return 0;
7720}
7721_ACEOF
drhf922ca42015-05-14 15:39:18 +00007722if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007723
mlcreech636a9952008-05-05 22:52:56 +00007724lt_aix_libpath_sed='
7725 /Import File Strings/,/^$/ {
7726 /^0/ {
7727 s/^0 *\(.*\)$/\1/
7728 p
7729 }
7730 }'
7731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007732# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007733if test -z "$aix_libpath"; then
7734 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7735fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007736fi
drhf922ca42015-05-14 15:39:18 +00007737rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007740
a.rottmann9bc8b932004-02-29 15:18:31 +00007741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7742 # Warning - without using the other run time loading flags,
7743 # -berok will link without error, but may produce a broken library.
7744 no_undefined_flag=' ${wl}-bernotok'
7745 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007746 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007747 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007748 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007749 # This is similar to how AIX traditionally builds its shared libraries.
7750 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 +00007751 fi
7752 fi
a.rottmann84e63352003-03-24 09:42:16 +00007753 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007754
7755 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007756 case $host_cpu in
7757 powerpc)
7758 # see comment about AmigaOS4 .so support
7759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760 archive_expsym_cmds=''
7761 ;;
7762 m68k)
7763 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)'
7764 hardcode_libdir_flag_spec='-L$libdir'
7765 hardcode_minus_L=yes
7766 ;;
7767 esac
a.rottmann84e63352003-03-24 09:42:16 +00007768 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007769
vapier7f19c022007-02-17 14:46:31 +00007770 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007771 export_dynamic_flag_spec=-rdynamic
7772 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007773
vapier6acb2cf2009-01-28 04:46:28 +00007774 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007775 # When not using gcc, we currently assume that we are using
7776 # Microsoft Visual C++.
7777 # hardcode_libdir_flag_spec is actually meaningless, as there is
7778 # no search path for DLLs.
7779 hardcode_libdir_flag_spec=' '
7780 allow_undefined_flag=unsupported
7781 # Tell ltmain to make .lib files, not .a files.
7782 libext=lib
7783 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007784 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007785 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007786 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 +00007787 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007788 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007790 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007791 fix_srcfile_path='`cygpath -w "$srcfile"`'
7792 enable_shared_with_static_runtimes=yes
7793 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007794
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007796
7797
7798 archive_cmds_need_lc=no
7799 hardcode_direct=no
7800 hardcode_automatic=yes
7801 hardcode_shlibpath_var=unsupported
7802 whole_archive_flag_spec=''
7803 link_all_deplibs=yes
7804 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007805 case $cc_basename in
7806 ifort*) _lt_dar_can_shared=yes ;;
7807 *) _lt_dar_can_shared=$GCC ;;
7808 esac
7809 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007810 output_verbose_link_cmd=echo
7811 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7812 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7813 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}"
7814 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}"
7815
7816 else
7817 ld_shlibs=no
7818 fi
7819
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007821
a.rottmann9bc8b932004-02-29 15:18:31 +00007822 dgux*)
7823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7824 hardcode_libdir_flag_spec='-L$libdir'
7825 hardcode_shlibpath_var=no
7826 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007827
a.rottmann9bc8b932004-02-29 15:18:31 +00007828 freebsd1*)
7829 ld_shlibs=no
7830 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007831
a.rottmann9bc8b932004-02-29 15:18:31 +00007832 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7833 # support. Future versions do this automatically, but an explicit c++rt0.o
7834 # does not break anything, and helps significantly (at the cost of a little
7835 # extra space).
7836 freebsd2.2*)
7837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7838 hardcode_libdir_flag_spec='-R$libdir'
7839 hardcode_direct=yes
7840 hardcode_shlibpath_var=no
7841 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007842
a.rottmann9bc8b932004-02-29 15:18:31 +00007843 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7844 freebsd2*)
7845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7846 hardcode_direct=yes
7847 hardcode_minus_L=yes
7848 hardcode_shlibpath_var=no
7849 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007850
a.rottmann9bc8b932004-02-29 15:18:31 +00007851 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007852 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007853 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7854 hardcode_libdir_flag_spec='-R$libdir'
7855 hardcode_direct=yes
7856 hardcode_shlibpath_var=no
7857 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007858
a.rottmann9bc8b932004-02-29 15:18:31 +00007859 hpux9*)
7860 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007861 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 +00007862 else
mlcreech636a9952008-05-05 22:52:56 +00007863 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 +00007864 fi
7865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7866 hardcode_libdir_separator=:
7867 hardcode_direct=yes
7868
7869 # hardcode_minus_L: Not really in the search PATH,
7870 # but as the default location of the library.
7871 hardcode_minus_L=yes
7872 export_dynamic_flag_spec='${wl}-E'
7873 ;;
7874
vapier7f19c022007-02-17 14:46:31 +00007875 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007876 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7878 else
7879 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7880 fi
7881 if test "$with_gnu_ld" = no; then
7882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007883 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007884 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007885 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007886 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007887 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007888 # hardcode_minus_L: Not really in the search PATH,
7889 # but as the default location of the library.
7890 hardcode_minus_L=yes
7891 fi
7892 ;;
7893
7894 hpux11*)
7895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7896 case $host_cpu in
7897 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007898 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7899 ;;
vapier7f19c022007-02-17 14:46:31 +00007900 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007901 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007902 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007903 *)
7904 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7905 ;;
7906 esac
7907 else
vapier7f19c022007-02-17 14:46:31 +00007908 case $host_cpu in
7909 hppa*64*)
7910 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7911 ;;
7912 ia64*)
7913 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007914 ;;
7915 *)
vapier7f19c022007-02-17 14:46:31 +00007916 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 +00007917 ;;
7918 esac
7919 fi
7920 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7922 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007923
vapier7f19c022007-02-17 14:46:31 +00007924 case $host_cpu in
7925 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007926 hardcode_direct=no
7927 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007928 ;;
7929 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007930 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007931 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007932 export_dynamic_flag_spec='${wl}-E'
7933
7934 # hardcode_minus_L: Not really in the search PATH,
7935 # but as the default location of the library.
7936 hardcode_minus_L=yes
7937 ;;
7938 esac
7939 fi
7940 ;;
7941
7942 irix5* | irix6* | nonstopux*)
7943 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007944 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'
7945 # Try to use the -exported_symbol ld option, if it does not
7946 # work, assume that -exports_file does not work either and
7947 # implicitly export all symbols.
7948 save_LDFLAGS="$LDFLAGS"
7949 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007952int foo(void) {}
7953_ACEOF
drhf922ca42015-05-14 15:39:18 +00007954if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007955 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'
7956
mlcreech636a9952008-05-05 22:52:56 +00007957fi
drhf922ca42015-05-14 15:39:18 +00007958rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007960 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007961 else
mlcreech636a9952008-05-05 22:52:56 +00007962 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'
7963 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 +00007964 fi
mlcreech636a9952008-05-05 22:52:56 +00007965 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007968 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007969 link_all_deplibs=yes
7970 ;;
7971
vapier7f19c022007-02-17 14:46:31 +00007972 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007973 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7975 else
7976 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7977 fi
7978 hardcode_libdir_flag_spec='-R$libdir'
7979 hardcode_direct=yes
7980 hardcode_shlibpath_var=no
7981 ;;
7982
7983 newsos6)
7984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7985 hardcode_direct=yes
7986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7987 hardcode_libdir_separator=:
7988 hardcode_shlibpath_var=no
7989 ;;
7990
mlcreech636a9952008-05-05 22:52:56 +00007991 *nto* | *qnx*)
7992 ;;
7993
a.rottmann9bc8b932004-02-29 15:18:31 +00007994 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007995 if test -f /usr/libexec/ld.so; then
7996 hardcode_direct=yes
7997 hardcode_shlibpath_var=no
7998 hardcode_direct_absolute=yes
7999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8001 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8003 export_dynamic_flag_spec='${wl}-E'
8004 else
8005 case $host_os in
8006 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8008 hardcode_libdir_flag_spec='-R$libdir'
8009 ;;
8010 *)
8011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8013 ;;
8014 esac
8015 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008016 else
mlcreech636a9952008-05-05 22:52:56 +00008017 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008018 fi
8019 ;;
8020
8021 os2*)
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8024 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008025 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'
8026 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008027 ;;
8028
8029 osf3*)
8030 if test "$GCC" = yes; then
8031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008032 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 +00008033 else
8034 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008035 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 +00008036 fi
mlcreech636a9952008-05-05 22:52:56 +00008037 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039 hardcode_libdir_separator=:
8040 ;;
8041
8042 osf4* | osf5*) # as osf3* with the addition of -msym flag
8043 if test "$GCC" = yes; then
8044 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008045 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 +00008046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8047 else
8048 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008049 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'
8050 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~
8051 $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 +00008052
8053 # Both c and cxx compiler support -rpath directly
8054 hardcode_libdir_flag_spec='-rpath $libdir'
8055 fi
mlcreech636a9952008-05-05 22:52:56 +00008056 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008057 hardcode_libdir_separator=:
8058 ;;
8059
a.rottmann9bc8b932004-02-29 15:18:31 +00008060 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008061 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008062 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008063 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008064 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8066 $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 +00008067 else
mlcreech636a9952008-05-05 22:52:56 +00008068 case `$CC -V 2>&1` in
8069 *"Compilers 5.0"*)
8070 wlarc=''
8071 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8073 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8074 ;;
8075 *)
8076 wlarc='${wl}'
8077 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8079 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8080 ;;
8081 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008082 fi
8083 hardcode_libdir_flag_spec='-R$libdir'
8084 hardcode_shlibpath_var=no
8085 case $host_os in
8086 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008087 *)
mlcreech636a9952008-05-05 22:52:56 +00008088 # The compiler driver will combine and reorder linker options,
8089 # but understands `-z linker_flag'. GCC discards it without `$wl',
8090 # but is careful enough not to reorder.
8091 # Supported since Solaris 2.6 (maybe 2.5.1?)
8092 if test "$GCC" = yes; then
8093 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8094 else
8095 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8096 fi
8097 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008098 esac
8099 link_all_deplibs=yes
8100 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008101
a.rottmann9bc8b932004-02-29 15:18:31 +00008102 sunos4*)
8103 if test "x$host_vendor" = xsequent; then
8104 # Use $CC to link under sequent, because it throws in some extra .o
8105 # files that make .init and .fini sections work.
8106 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8107 else
8108 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8109 fi
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 hardcode_direct=yes
8112 hardcode_minus_L=yes
8113 hardcode_shlibpath_var=no
8114 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008115
a.rottmann9bc8b932004-02-29 15:18:31 +00008116 sysv4)
8117 case $host_vendor in
8118 sni)
8119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120 hardcode_direct=yes # is this really true???
8121 ;;
8122 siemens)
8123 ## LD is ld it makes a PLAMLIB
8124 ## CC just makes a GrossModule.
8125 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8126 reload_cmds='$CC -r -o $output$reload_objs'
8127 hardcode_direct=no
8128 ;;
8129 motorola)
8130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8132 ;;
8133 esac
8134 runpath_var='LD_RUN_PATH'
8135 hardcode_shlibpath_var=no
8136 ;;
8137
8138 sysv4.3*)
8139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8140 hardcode_shlibpath_var=no
8141 export_dynamic_flag_spec='-Bexport'
8142 ;;
8143
8144 sysv4*MP*)
8145 if test -d /usr/nec; then
8146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_shlibpath_var=no
8148 runpath_var=LD_RUN_PATH
8149 hardcode_runpath_var=yes
8150 ld_shlibs=yes
8151 fi
8152 ;;
8153
mlcreech636a9952008-05-05 22:52:56 +00008154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008155 no_undefined_flag='${wl}-z,text'
8156 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008157 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008158 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008159
a.rottmann9bc8b932004-02-29 15:18:31 +00008160 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008161 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 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 +00008163 else
vapier7f19c022007-02-17 14:46:31 +00008164 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8165 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 +00008166 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008167 ;;
8168
vapier7f19c022007-02-17 14:46:31 +00008169 sysv5* | sco3.2v5* | sco5v6*)
8170 # Note: We can NOT use -z defs as we might desire, because we do not
8171 # link with -lc, and that would cause any symbols used from libc to
8172 # always be unresolved, which means just about no library would
8173 # ever link correctly. If we're not using GNU ld we use -z text
8174 # though, which does catch some bad symbols but isn't as heavy-handed
8175 # as -z defs.
8176 no_undefined_flag='${wl}-z,text'
8177 allow_undefined_flag='${wl}-z,nodefs'
8178 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008179 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008180 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008181 hardcode_libdir_separator=':'
8182 link_all_deplibs=yes
8183 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008184 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008185
8186 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008187 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8188 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008189 else
mlcreech636a9952008-05-05 22:52:56 +00008190 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8191 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008192 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008193 ;;
8194
8195 uts4*)
8196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8197 hardcode_libdir_flag_spec='-L$libdir'
8198 hardcode_shlibpath_var=no
8199 ;;
8200
8201 *)
8202 ld_shlibs=no
8203 ;;
8204 esac
mlcreech636a9952008-05-05 22:52:56 +00008205
8206 if test x$host_vendor = xsni; then
8207 case $host in
8208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8209 export_dynamic_flag_spec='${wl}-Blargedynsym'
8210 ;;
8211 esac
8212 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008213 fi
8214
drhf922ca42015-05-14 15:39:18 +00008215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008216$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008217test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008218
mlcreech636a9952008-05-05 22:52:56 +00008219with_gnu_ld=$with_gnu_ld
8220
8221
danielk197733a14782008-08-04 14:50:05 +00008222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
a.rottmann9bc8b932004-02-29 15:18:31 +00008235#
8236# Do we need to explicitly link libc?
8237#
8238case "x$archive_cmds_need_lc" in
8239x|xyes)
8240 # Assume -lc should be added
8241 archive_cmds_need_lc=yes
8242
8243 if test "$enable_shared" = yes && test "$GCC" = yes; then
8244 case $archive_cmds in
8245 *'~'*)
8246 # FIXME: we may have to deal with multi-command sequences.
8247 ;;
8248 '$CC '*)
8249 # Test whether the compiler implicitly links with -lc since on some
8250 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8251 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008253$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008254 $RM conftest*
8255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008256
drhf922ca42015-05-14 15:39:18 +00008257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008258 (eval $ac_compile) 2>&5
8259 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008262 soname=conftest
8263 lib=conftest
8264 libobjs=conftest.$ac_objext
8265 deplibs=
8266 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008267 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008268 compiler_flags=-v
8269 linker_flags=-v
8270 verstring=
8271 output_objdir=.
8272 libname=conftest
8273 lt_save_allow_undefined_flag=$allow_undefined_flag
8274 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008275 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 +00008276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008277 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8279 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008280 then
8281 archive_cmds_need_lc=no
8282 else
8283 archive_cmds_need_lc=yes
8284 fi
8285 allow_undefined_flag=$lt_save_allow_undefined_flag
8286 else
8287 cat conftest.err 1>&5
8288 fi
mlcreech636a9952008-05-05 22:52:56 +00008289 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008291$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008292 ;;
8293 esac
drh71eb93e2001-09-28 01:34:43 +00008294 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008295 ;;
8296esac
drh71eb93e2001-09-28 01:34:43 +00008297
mlcreech636a9952008-05-05 22:52:56 +00008298
danielk197733a14782008-08-04 14:50:05 +00008299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
drhf922ca42015-05-14 15:39:18 +00008454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008455$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008456
8457if test "$GCC" = yes; then
8458 case $host_os in
8459 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8460 *) lt_awk_arg="/^libraries:/" ;;
8461 esac
8462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8463 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8464 # if the path contains ";" then we assume it to be the separator
8465 # otherwise default to the standard path separator (i.e. ":") - it is
8466 # assumed that no part of a normal pathname contains ";" but that should
8467 # okay in the real world where ";" in dirpaths is itself problematic.
8468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8469 else
8470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8471 fi
8472 # Ok, now we have the path, separated by spaces, we can step through it
8473 # and add multilib dir if necessary.
8474 lt_tmp_lt_search_path_spec=
8475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8476 for lt_sys_path in $lt_search_path_spec; do
8477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8479 else
8480 test -d "$lt_sys_path" && \
8481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8482 fi
8483 done
8484 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8485BEGIN {RS=" "; FS="/|\n";} {
8486 lt_foo="";
8487 lt_count=0;
8488 for (lt_i = NF; lt_i > 0; lt_i--) {
8489 if ($lt_i != "" && $lt_i != ".") {
8490 if ($lt_i == "..") {
8491 lt_count++;
8492 } else {
8493 if (lt_count == 0) {
8494 lt_foo="/" $lt_i lt_foo;
8495 } else {
8496 lt_count--;
8497 }
8498 }
8499 }
8500 }
8501 if (lt_foo != "") { lt_freq[lt_foo]++; }
8502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8503}'`
8504 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8505else
8506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8507fi
drh71eb93e2001-09-28 01:34:43 +00008508library_names_spec=
8509libname_spec='lib$name'
8510soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008511shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008512postinstall_cmds=
8513postuninstall_cmds=
8514finish_cmds=
8515finish_eval=
8516shlibpath_var=
8517shlibpath_overrides_runpath=unknown
8518version_type=none
8519dynamic_linker="$host_os ld.so"
8520sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008521need_lib_prefix=unknown
8522hardcode_into_libs=no
8523
8524# when you set need_version to no, make sure it does not cause -set_version
8525# flags to be left without arguments
8526need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008527
8528case $host_os in
8529aix3*)
8530 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008532 shlibpath_var=LIBPATH
8533
a.rottmann9bc8b932004-02-29 15:18:31 +00008534 # AIX 3 has no versioning support, so we append a major version to the name.
8535 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008536 ;;
8537
mlcreech636a9952008-05-05 22:52:56 +00008538aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008539 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008540 need_lib_prefix=no
8541 need_version=no
8542 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008543 if test "$host_cpu" = ia64; then
8544 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008546 shlibpath_var=LD_LIBRARY_PATH
8547 else
8548 # With GCC up to 2.95.x, collect2 would create an import file
8549 # for dependence libraries. The import file would start with
8550 # the line `#! .'. This would cause the generated library to
8551 # depend on `.', always an invalid library. This was fixed in
8552 # development snapshots of GCC prior to 3.0.
8553 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008554 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8556 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008557 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008558 :
8559 else
8560 can_build_shared=no
8561 fi
8562 ;;
drh71eb93e2001-09-28 01:34:43 +00008563 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8565 # soname into executable. Probably we can add versioning support to
8566 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008567 if test "$aix_use_runtimelinking" = yes; then
8568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8569 # instead of lib<name>.a to let people know that these are not
8570 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008572 else
8573 # We preserve .a as extension for shared libraries through AIX4.2
8574 # and later when we are not doing run time linking.
8575 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008576 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008577 fi
8578 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008579 fi
8580 ;;
8581
8582amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008583 case $host_cpu in
8584 powerpc)
8585 # Since July 2007 AmigaOS4 officially supports .so libraries.
8586 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8588 ;;
8589 m68k)
8590 library_names_spec='$libname.ixlibrary $libname.a'
8591 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8592 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'
8593 ;;
8594 esac
drh71eb93e2001-09-28 01:34:43 +00008595 ;;
8596
8597beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008598 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008599 dynamic_linker="$host_os ld.so"
8600 shlibpath_var=LIBRARY_PATH
8601 ;;
8602
vapier7f19c022007-02-17 14:46:31 +00008603bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008604 version_type=linux
8605 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8607 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8609 shlibpath_var=LD_LIBRARY_PATH
8610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8612 # the default ld.so.conf also contains /usr/contrib/lib and
8613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8614 # libtool to hard-code these into programs
8615 ;;
8616
vapier6acb2cf2009-01-28 04:46:28 +00008617cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008618 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008619 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008620 need_version=no
8621 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008622
drh71eb93e2001-09-28 01:34:43 +00008623 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008624 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008625 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8627 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008629 dldir=$destdir/`dirname \$dlpath`~
8630 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008631 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008632 chmod a+x \$dldir/$dlname~
8633 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8634 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8635 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008637 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008638 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008639 shlibpath_overrides_runpath=yes
8640
8641 case $host_os in
8642 cygwin*)
8643 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8644 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8645 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8646 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008647 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008648 # MinGW DLLs use traditional 'lib' prefix
8649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008650 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8651 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008652 # It is most probably a Windows format PATH printed by
8653 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8654 # path with ; separators, and with drive letters. We can handle the
8655 # drive letters (cygwin fileutils understands them), so leave them,
8656 # especially as we might pass files found there to a mingw objdump,
8657 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008659 else
mlcreech636a9952008-05-05 22:52:56 +00008660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008661 fi
8662 ;;
8663 pw32*)
8664 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008665 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 +00008666 ;;
8667 esac
drh71eb93e2001-09-28 01:34:43 +00008668 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008669
drh71eb93e2001-09-28 01:34:43 +00008670 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008671 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008672 ;;
8673 esac
8674 dynamic_linker='Win32 ld.exe'
8675 # FIXME: first we should search . and the directory the executable is in
8676 shlibpath_var=PATH
8677 ;;
8678
8679darwin* | rhapsody*)
8680 dynamic_linker="$host_os dyld"
8681 version_type=darwin
8682 need_lib_prefix=no
8683 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008684 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008685 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008686 shlibpath_overrides_runpath=yes
8687 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008688 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008689
8690 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8692 ;;
8693
8694dgux*)
8695 version_type=linux
8696 need_lib_prefix=no
8697 need_version=no
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008701 ;;
8702
a.rottmann84e63352003-03-24 09:42:16 +00008703freebsd1*)
8704 dynamic_linker=no
8705 ;;
8706
vapier7f19c022007-02-17 14:46:31 +00008707freebsd* | dragonfly*)
8708 # DragonFly does not have aout. When/if they implement a new
8709 # versioning mechanism, adjust this.
8710 if test -x /usr/bin/objformat; then
8711 objformat=`/usr/bin/objformat`
8712 else
8713 case $host_os in
8714 freebsd[123]*) objformat=aout ;;
8715 *) objformat=elf ;;
8716 esac
8717 fi
8718 # Handle Gentoo/FreeBSD as it was Linux
8719 case $host_vendor in
8720 gentoo)
8721 version_type=linux ;;
8722 *)
8723 version_type=freebsd-$objformat ;;
8724 esac
8725
drh71eb93e2001-09-28 01:34:43 +00008726 case $version_type in
8727 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008729 need_version=no
8730 need_lib_prefix=no
8731 ;;
8732 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008734 need_version=yes
8735 ;;
vapier7f19c022007-02-17 14:46:31 +00008736 linux)
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 need_lib_prefix=no
8740 need_version=no
8741 ;;
drh71eb93e2001-09-28 01:34:43 +00008742 esac
8743 shlibpath_var=LD_LIBRARY_PATH
8744 case $host_os in
8745 freebsd2*)
8746 shlibpath_overrides_runpath=yes
8747 ;;
vapier7f19c022007-02-17 14:46:31 +00008748 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008749 shlibpath_overrides_runpath=yes
8750 hardcode_into_libs=yes
8751 ;;
vapier7f19c022007-02-17 14:46:31 +00008752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008754 shlibpath_overrides_runpath=no
8755 hardcode_into_libs=yes
8756 ;;
mlcreech636a9952008-05-05 22:52:56 +00008757 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008758 shlibpath_overrides_runpath=yes
8759 hardcode_into_libs=yes
8760 ;;
drh71eb93e2001-09-28 01:34:43 +00008761 esac
8762 ;;
8763
8764gnu*)
8765 version_type=linux
8766 need_lib_prefix=no
8767 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008770 shlibpath_var=LD_LIBRARY_PATH
8771 hardcode_into_libs=yes
8772 ;;
8773
8774hpux9* | hpux10* | hpux11*)
8775 # Give a soname corresponding to the major version so that dld.sl refuses to
8776 # link against other versions.
8777 version_type=sunos
8778 need_lib_prefix=no
8779 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008780 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008781 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008782 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008783 hardcode_into_libs=yes
8784 dynamic_linker="$host_os dld.so"
8785 shlibpath_var=LD_LIBRARY_PATH
8786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 if test "X$HPUX_IA64_MODE" = X32; then
8790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8791 else
8792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8793 fi
8794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8795 ;;
mlcreech636a9952008-05-05 22:52:56 +00008796 hppa*64*)
8797 shrext_cmds='.sl'
8798 hardcode_into_libs=yes
8799 dynamic_linker="$host_os dld.sl"
8800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8806 ;;
8807 *)
vapier7f19c022007-02-17 14:46:31 +00008808 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008809 dynamic_linker="$host_os dld.sl"
8810 shlibpath_var=SHLIB_PATH
8811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 ;;
8815 esac
drh71eb93e2001-09-28 01:34:43 +00008816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8817 postinstall_cmds='chmod 555 $lib'
8818 ;;
8819
mlcreech636a9952008-05-05 22:52:56 +00008820interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008821 version_type=linux
8822 need_lib_prefix=no
8823 need_version=no
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=no
8829 hardcode_into_libs=yes
8830 ;;
8831
a.rottmann84e63352003-03-24 09:42:16 +00008832irix5* | irix6* | nonstopux*)
8833 case $host_os in
8834 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008835 *)
8836 if test "$lt_cv_prog_gnu_ld" = yes; then
8837 version_type=linux
8838 else
8839 version_type=irix
8840 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008841 esac
drh71eb93e2001-09-28 01:34:43 +00008842 need_lib_prefix=no
8843 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008844 soname_spec='${libname}${release}${shared_ext}$major'
8845 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 +00008846 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008847 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008848 libsuff= shlibsuff=
8849 ;;
8850 *)
8851 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8853 libsuff= shlibsuff= libmagic=32-bit;;
8854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8855 libsuff=32 shlibsuff=N32 libmagic=N32;;
8856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8857 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008858 *) libsuff= shlibsuff= libmagic=never-match;;
8859 esac
8860 ;;
8861 esac
8862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8863 shlibpath_overrides_runpath=no
8864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008866 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008867 ;;
8868
8869# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008870linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008871 dynamic_linker=no
8872 ;;
8873
8874# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008875linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008876 version_type=linux
8877 need_lib_prefix=no
8878 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008884 # Some binutils ld are patched to set DT_RUNPATH
8885 save_LDFLAGS=$LDFLAGS
8886 save_libdir=$libdir
8887 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8888 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008890/* end confdefs.h. */
8891
8892int
8893main ()
8894{
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
drhf922ca42015-05-14 15:39:18 +00008900if ac_fn_c_try_link "$LINENO"; then :
8901 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008902 shlibpath_overrides_runpath=yes
8903fi
mlcreech636a9952008-05-05 22:52:56 +00008904fi
drhf922ca42015-05-14 15:39:18 +00008905rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008907 LDFLAGS=$save_LDFLAGS
8908 libdir=$save_libdir
8909
drh71eb93e2001-09-28 01:34:43 +00008910 # This implies no fast_install, which is unacceptable.
8911 # Some rework will be needed to allow for fast_install
8912 # before this can be enabled.
8913 hardcode_into_libs=yes
8914
a.rottmann9bc8b932004-02-29 15:18:31 +00008915 # Append ld.so.conf contents to the search path
8916 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008917 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 +00008918 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008919 fi
8920
drh71eb93e2001-09-28 01:34:43 +00008921 # We used to test for /lib/ld.so.1 and disable shared libraries on
8922 # powerpc, because MkLinux only supported shared libraries with the
8923 # GNU dynamic linker. Since this was broken with cross compilers,
8924 # most powerpc-linux boxes support dynamic linking these days and
8925 # people can always --disable-shared, the test was removed, and we
8926 # assume the GNU/Linux dynamic linker is in use.
8927 dynamic_linker='GNU/Linux ld.so'
8928 ;;
8929
8930netbsd*)
8931 version_type=sunos
8932 need_lib_prefix=no
8933 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8937 dynamic_linker='NetBSD (a.out) ld.so'
8938 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008941 dynamic_linker='NetBSD ld.elf_so'
8942 fi
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 hardcode_into_libs=yes
8946 ;;
8947
8948newsos6)
8949 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes
8953 ;;
8954
mlcreech636a9952008-05-05 22:52:56 +00008955*nto* | *qnx*)
8956 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008957 need_lib_prefix=no
8958 need_version=no
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008961 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008965 ;;
8966
drh71eb93e2001-09-28 01:34:43 +00008967openbsd*)
8968 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008969 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008970 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8972 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8974 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008975 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8978 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008979 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 +00008980 case $host_os in
8981 openbsd2.[89] | openbsd2.[89].*)
8982 shlibpath_overrides_runpath=no
8983 ;;
8984 *)
8985 shlibpath_overrides_runpath=yes
8986 ;;
8987 esac
a.rottmann84e63352003-03-24 09:42:16 +00008988 else
8989 shlibpath_overrides_runpath=yes
8990 fi
drh71eb93e2001-09-28 01:34:43 +00008991 ;;
8992
8993os2*)
8994 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008995 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008996 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008997 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008998 dynamic_linker='OS/2 ld.exe'
8999 shlibpath_var=LIBPATH
9000 ;;
9001
9002osf3* | osf4* | osf5*)
9003 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009004 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009005 need_version=no
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009008 shlibpath_var=LD_LIBRARY_PATH
9009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9011 ;;
9012
mlcreech636a9952008-05-05 22:52:56 +00009013rdos*)
9014 dynamic_linker=no
9015 ;;
9016
drh71eb93e2001-09-28 01:34:43 +00009017solaris*)
9018 version_type=linux
9019 need_lib_prefix=no
9020 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009023 shlibpath_var=LD_LIBRARY_PATH
9024 shlibpath_overrides_runpath=yes
9025 hardcode_into_libs=yes
9026 # ldd complains unless libraries are executable
9027 postinstall_cmds='chmod +x $lib'
9028 ;;
9029
9030sunos4*)
9031 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9036 if test "$with_gnu_ld" = yes; then
9037 need_lib_prefix=no
9038 fi
9039 need_version=yes
9040 ;;
9041
vapier7f19c022007-02-17 14:46:31 +00009042sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009043 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009046 shlibpath_var=LD_LIBRARY_PATH
9047 case $host_vendor in
9048 sni)
9049 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009050 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009051 runpath_var=LD_RUN_PATH
9052 ;;
9053 siemens)
9054 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009055 ;;
9056 motorola)
9057 need_lib_prefix=no
9058 need_version=no
9059 shlibpath_overrides_runpath=no
9060 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9061 ;;
9062 esac
9063 ;;
9064
9065sysv4*MP*)
9066 if test -d /usr/nec ;then
9067 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009068 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9069 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009070 shlibpath_var=LD_LIBRARY_PATH
9071 fi
9072 ;;
9073
vapier7f19c022007-02-17 14:46:31 +00009074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9075 version_type=freebsd-elf
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009081 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009082 hardcode_into_libs=yes
9083 if test "$with_gnu_ld" = yes; then
9084 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009085 else
9086 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009087 case $host_os in
9088 sco3.2v5*)
9089 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9090 ;;
9091 esac
9092 fi
9093 sys_lib_dlsearch_path_spec='/usr/lib'
9094 ;;
9095
mlcreech636a9952008-05-05 22:52:56 +00009096tpf*)
9097 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9098 version_type=linux
9099 need_lib_prefix=no
9100 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009102 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=no
9104 hardcode_into_libs=yes
9105 ;;
9106
a.rottmann9bc8b932004-02-29 15:18:31 +00009107uts4*)
9108 version_type=linux
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 ;;
9113
drh71eb93e2001-09-28 01:34:43 +00009114*)
9115 dynamic_linker=no
9116 ;;
9117esac
drhf922ca42015-05-14 15:39:18 +00009118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009119$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009120test "$dynamic_linker" = no && can_build_shared=no
9121
vapier7f19c022007-02-17 14:46:31 +00009122variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9123if test "$GCC" = yes; then
9124 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9125fi
9126
mlcreech636a9952008-05-05 22:52:56 +00009127if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9128 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9129fi
9130if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9131 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9132fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
drhf922ca42015-05-14 15:39:18 +00009220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009221$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009222hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009223if test -n "$hardcode_libdir_flag_spec" ||
9224 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009225 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009226
mlcreech636a9952008-05-05 22:52:56 +00009227 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009228 if test "$hardcode_direct" != no &&
9229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9230 # have to relink, otherwise we might link with an installed library
9231 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009233 test "$hardcode_minus_L" != no; then
9234 # Linking always hardcodes the temporary library directory.
9235 hardcode_action=relink
9236 else
9237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9238 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009239 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009240else
9241 # We cannot hardcode anything, or else we can only hardcode existing
9242 # directories.
9243 hardcode_action=unsupported
9244fi
drhf922ca42015-05-14 15:39:18 +00009245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009246$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009247
mlcreech636a9952008-05-05 22:52:56 +00009248if test "$hardcode_action" = relink ||
9249 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009250 # Fast installation is not supported
9251 enable_fast_install=no
9252elif test "$shlibpath_overrides_runpath" = yes ||
9253 test "$enable_shared" = no; then
9254 # Fast installation is not necessary
9255 enable_fast_install=needless
9256fi
9257
a.rottmann84e63352003-03-24 09:42:16 +00009258
mlcreech636a9952008-05-05 22:52:56 +00009259
9260
9261
9262
9263 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009264 enable_dlopen=unknown
9265 enable_dlopen_self=unknown
9266 enable_dlopen_self_static=unknown
9267else
9268 lt_cv_dlopen=no
9269 lt_cv_dlopen_libs=
9270
9271 case $host_os in
9272 beos*)
9273 lt_cv_dlopen="load_add_on"
9274 lt_cv_dlopen_libs=
9275 lt_cv_dlopen_self=yes
9276 ;;
9277
vapier6acb2cf2009-01-28 04:46:28 +00009278 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009279 lt_cv_dlopen="LoadLibrary"
9280 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009281 ;;
drh71eb93e2001-09-28 01:34:43 +00009282
a.rottmann9bc8b932004-02-29 15:18:31 +00009283 cygwin*)
9284 lt_cv_dlopen="dlopen"
9285 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009286 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009287
9288 darwin*)
9289 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009291$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009292if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009293 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009294else
9295 ac_check_lib_save_LIBS=$LIBS
9296LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009298/* end confdefs.h. */
9299
drh8b727472009-01-19 18:18:40 +00009300/* Override any GCC internal prototype to avoid an error.
9301 Use char because int might match the return type of a GCC
9302 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009303#ifdef __cplusplus
9304extern "C"
9305#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009306char dlopen ();
9307int
9308main ()
9309{
drh8b727472009-01-19 18:18:40 +00009310return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009311 ;
9312 return 0;
9313}
9314_ACEOF
drhf922ca42015-05-14 15:39:18 +00009315if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009316 ac_cv_lib_dl_dlopen=yes
9317else
drhf922ca42015-05-14 15:39:18 +00009318 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009319fi
drhf922ca42015-05-14 15:39:18 +00009320rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009322LIBS=$ac_check_lib_save_LIBS
9323fi
drhf922ca42015-05-14 15:39:18 +00009324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009325$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009326if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9328else
9329
9330 lt_cv_dlopen="dyld"
9331 lt_cv_dlopen_libs=
9332 lt_cv_dlopen_self=yes
9333
9334fi
9335
mlcreech636a9952008-05-05 22:52:56 +00009336 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009337
drh71eb93e2001-09-28 01:34:43 +00009338 *)
drhf922ca42015-05-14 15:39:18 +00009339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9340if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009341 lt_cv_dlopen="shl_load"
9342else
drhf922ca42015-05-14 15:39:18 +00009343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009344$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009345if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009346 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009347else
9348 ac_check_lib_save_LIBS=$LIBS
9349LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009351/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009352
drh8b727472009-01-19 18:18:40 +00009353/* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009356#ifdef __cplusplus
9357extern "C"
9358#endif
drh71eb93e2001-09-28 01:34:43 +00009359char shl_load ();
9360int
9361main ()
9362{
drh8b727472009-01-19 18:18:40 +00009363return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009364 ;
9365 return 0;
9366}
9367_ACEOF
drhf922ca42015-05-14 15:39:18 +00009368if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009369 ac_cv_lib_dld_shl_load=yes
9370else
drhf922ca42015-05-14 15:39:18 +00009371 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009372fi
drhf922ca42015-05-14 15:39:18 +00009373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009375LIBS=$ac_check_lib_save_LIBS
9376fi
drhf922ca42015-05-14 15:39:18 +00009377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009378$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009379if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009381else
drhf922ca42015-05-14 15:39:18 +00009382 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9383if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009384 lt_cv_dlopen="dlopen"
9385else
drhf922ca42015-05-14 15:39:18 +00009386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009387$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009388if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009389 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009390else
9391 ac_check_lib_save_LIBS=$LIBS
9392LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009394/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009395
drh8b727472009-01-19 18:18:40 +00009396/* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009399#ifdef __cplusplus
9400extern "C"
9401#endif
drh71eb93e2001-09-28 01:34:43 +00009402char dlopen ();
9403int
9404main ()
9405{
drh8b727472009-01-19 18:18:40 +00009406return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009407 ;
9408 return 0;
9409}
9410_ACEOF
drhf922ca42015-05-14 15:39:18 +00009411if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009412 ac_cv_lib_dl_dlopen=yes
9413else
drhf922ca42015-05-14 15:39:18 +00009414 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009415fi
drhf922ca42015-05-14 15:39:18 +00009416rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009418LIBS=$ac_check_lib_save_LIBS
9419fi
drhf922ca42015-05-14 15:39:18 +00009420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009421$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009422if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9424else
drhf922ca42015-05-14 15:39:18 +00009425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009426$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009427if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009428 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009429else
9430 ac_check_lib_save_LIBS=$LIBS
9431LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009433/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009434
drh8b727472009-01-19 18:18:40 +00009435/* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009438#ifdef __cplusplus
9439extern "C"
9440#endif
drh71eb93e2001-09-28 01:34:43 +00009441char dlopen ();
9442int
9443main ()
9444{
drh8b727472009-01-19 18:18:40 +00009445return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009446 ;
9447 return 0;
9448}
9449_ACEOF
drhf922ca42015-05-14 15:39:18 +00009450if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009451 ac_cv_lib_svld_dlopen=yes
9452else
drhf922ca42015-05-14 15:39:18 +00009453 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009454fi
drhf922ca42015-05-14 15:39:18 +00009455rm -f core conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009457LIBS=$ac_check_lib_save_LIBS
9458fi
drhf922ca42015-05-14 15:39:18 +00009459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009460$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009461if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009463else
drhf922ca42015-05-14 15:39:18 +00009464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009465$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009466if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009467 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009468else
9469 ac_check_lib_save_LIBS=$LIBS
9470LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009472/* end confdefs.h. */
9473
drh8b727472009-01-19 18:18:40 +00009474/* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009477#ifdef __cplusplus
9478extern "C"
9479#endif
a.rottmann84e63352003-03-24 09:42:16 +00009480char dld_link ();
9481int
9482main ()
9483{
drh8b727472009-01-19 18:18:40 +00009484return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009485 ;
9486 return 0;
9487}
9488_ACEOF
drhf922ca42015-05-14 15:39:18 +00009489if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009490 ac_cv_lib_dld_dld_link=yes
9491else
drhf922ca42015-05-14 15:39:18 +00009492 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009493fi
drhf922ca42015-05-14 15:39:18 +00009494rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009496LIBS=$ac_check_lib_save_LIBS
9497fi
drhf922ca42015-05-14 15:39:18 +00009498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009499$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009500if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009502fi
9503
drh71eb93e2001-09-28 01:34:43 +00009504
9505fi
9506
drh71eb93e2001-09-28 01:34:43 +00009507
9508fi
9509
a.rottmann84e63352003-03-24 09:42:16 +00009510
9511fi
9512
9513
9514fi
9515
9516
drh71eb93e2001-09-28 01:34:43 +00009517fi
9518
9519 ;;
9520 esac
9521
9522 if test "x$lt_cv_dlopen" != xno; then
9523 enable_dlopen=yes
9524 else
9525 enable_dlopen=no
9526 fi
9527
9528 case $lt_cv_dlopen in
9529 dlopen)
9530 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009532
9533 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009535
9536 save_LIBS="$LIBS"
9537 LIBS="$lt_cv_dlopen_libs $LIBS"
9538
drhf922ca42015-05-14 15:39:18 +00009539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009540$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009541if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009542 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009543else
9544 if test "$cross_compiling" = yes; then :
9545 lt_cv_dlopen_self=cross
9546else
a.rottmann9bc8b932004-02-29 15:18:31 +00009547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009548 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009549 cat > conftest.$ac_ext <<_LT_EOF
drh83bebdd2017-08-28 17:00:12 +00009550#line 9550 "configure"
drh71eb93e2001-09-28 01:34:43 +00009551#include "confdefs.h"
9552
9553#if HAVE_DLFCN_H
9554#include <dlfcn.h>
9555#endif
9556
9557#include <stdio.h>
9558
9559#ifdef RTLD_GLOBAL
9560# define LT_DLGLOBAL RTLD_GLOBAL
9561#else
9562# ifdef DL_GLOBAL
9563# define LT_DLGLOBAL DL_GLOBAL
9564# else
9565# define LT_DLGLOBAL 0
9566# endif
9567#endif
9568
9569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9570 find out it does not work in some platform. */
9571#ifndef LT_DLLAZY_OR_NOW
9572# ifdef RTLD_LAZY
9573# define LT_DLLAZY_OR_NOW RTLD_LAZY
9574# else
9575# ifdef DL_LAZY
9576# define LT_DLLAZY_OR_NOW DL_LAZY
9577# else
9578# ifdef RTLD_NOW
9579# define LT_DLLAZY_OR_NOW RTLD_NOW
9580# else
9581# ifdef DL_NOW
9582# define LT_DLLAZY_OR_NOW DL_NOW
9583# else
9584# define LT_DLLAZY_OR_NOW 0
9585# endif
9586# endif
9587# endif
9588# endif
9589#endif
9590
drh71eb93e2001-09-28 01:34:43 +00009591void fnord() { int i=42;}
9592int main ()
9593{
9594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9595 int status = $lt_dlunknown;
9596
9597 if (self)
9598 {
9599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9601 /* dlclose (self); */
9602 }
vapier7f19c022007-02-17 14:46:31 +00009603 else
9604 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009605
vapier6acb2cf2009-01-28 04:46:28 +00009606 return status;
drh71eb93e2001-09-28 01:34:43 +00009607}
mlcreech636a9952008-05-05 22:52:56 +00009608_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009610 (eval $ac_link) 2>&5
9611 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009614 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009615 lt_status=$?
9616 case x$lt_status in
9617 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9618 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009619 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009620 esac
9621 else :
9622 # compilation failed
9623 lt_cv_dlopen_self=no
9624 fi
9625fi
9626rm -fr conftest*
9627
a.rottmann84e63352003-03-24 09:42:16 +00009628
drh71eb93e2001-09-28 01:34:43 +00009629fi
drhf922ca42015-05-14 15:39:18 +00009630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009631$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009632
9633 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009636$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009637if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009638 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009639else
9640 if test "$cross_compiling" = yes; then :
9641 lt_cv_dlopen_self_static=cross
9642else
a.rottmann9bc8b932004-02-29 15:18:31 +00009643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009644 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009645 cat > conftest.$ac_ext <<_LT_EOF
drh83bebdd2017-08-28 17:00:12 +00009646#line 9646 "configure"
drh71eb93e2001-09-28 01:34:43 +00009647#include "confdefs.h"
9648
9649#if HAVE_DLFCN_H
9650#include <dlfcn.h>
9651#endif
9652
9653#include <stdio.h>
9654
9655#ifdef RTLD_GLOBAL
9656# define LT_DLGLOBAL RTLD_GLOBAL
9657#else
9658# ifdef DL_GLOBAL
9659# define LT_DLGLOBAL DL_GLOBAL
9660# else
9661# define LT_DLGLOBAL 0
9662# endif
9663#endif
9664
9665/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9666 find out it does not work in some platform. */
9667#ifndef LT_DLLAZY_OR_NOW
9668# ifdef RTLD_LAZY
9669# define LT_DLLAZY_OR_NOW RTLD_LAZY
9670# else
9671# ifdef DL_LAZY
9672# define LT_DLLAZY_OR_NOW DL_LAZY
9673# else
9674# ifdef RTLD_NOW
9675# define LT_DLLAZY_OR_NOW RTLD_NOW
9676# else
9677# ifdef DL_NOW
9678# define LT_DLLAZY_OR_NOW DL_NOW
9679# else
9680# define LT_DLLAZY_OR_NOW 0
9681# endif
9682# endif
9683# endif
9684# endif
9685#endif
9686
drh71eb93e2001-09-28 01:34:43 +00009687void fnord() { int i=42;}
9688int main ()
9689{
9690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9691 int status = $lt_dlunknown;
9692
9693 if (self)
9694 {
9695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9697 /* dlclose (self); */
9698 }
vapier7f19c022007-02-17 14:46:31 +00009699 else
9700 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009701
vapier6acb2cf2009-01-28 04:46:28 +00009702 return status;
drh71eb93e2001-09-28 01:34:43 +00009703}
mlcreech636a9952008-05-05 22:52:56 +00009704_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009706 (eval $ac_link) 2>&5
9707 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9709 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009710 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009711 lt_status=$?
9712 case x$lt_status in
9713 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9714 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009715 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009716 esac
9717 else :
9718 # compilation failed
9719 lt_cv_dlopen_self_static=no
9720 fi
9721fi
9722rm -fr conftest*
9723
a.rottmann84e63352003-03-24 09:42:16 +00009724
drh71eb93e2001-09-28 01:34:43 +00009725fi
drhf922ca42015-05-14 15:39:18 +00009726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009727$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009728 fi
9729
9730 CPPFLAGS="$save_CPPFLAGS"
9731 LDFLAGS="$save_LDFLAGS"
9732 LIBS="$save_LIBS"
9733 ;;
9734 esac
9735
9736 case $lt_cv_dlopen_self in
9737 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9738 *) enable_dlopen_self=unknown ;;
9739 esac
9740
9741 case $lt_cv_dlopen_self_static in
9742 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9743 *) enable_dlopen_self_static=unknown ;;
9744 esac
9745fi
9746
drh71eb93e2001-09-28 01:34:43 +00009747
drh71eb93e2001-09-28 01:34:43 +00009748
a.rottmann9bc8b932004-02-29 15:18:31 +00009749
a.rottmann9bc8b932004-02-29 15:18:31 +00009750
mlcreech636a9952008-05-05 22:52:56 +00009751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763striplib=
9764old_striplib=
drhf922ca42015-05-14 15:39:18 +00009765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009766$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009767if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009771$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009772else
9773# FIXME - insert some real tests, host_os isn't really good enough
9774 case $host_os in
9775 darwin*)
9776 if test -n "$STRIP" ; then
9777 striplib="$STRIP -x"
9778 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009780$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009781 else
drhf922ca42015-05-14 15:39:18 +00009782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009783$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009784 fi
a.rottmann84e63352003-03-24 09:42:16 +00009785 ;;
mlcreech636a9952008-05-05 22:52:56 +00009786 *)
drhf922ca42015-05-14 15:39:18 +00009787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009788$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009789 ;;
9790 esac
mlcreech636a9952008-05-05 22:52:56 +00009791fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009792
a.rottmann9bc8b932004-02-29 15:18:31 +00009793
drh71eb93e2001-09-28 01:34:43 +00009794
drh71eb93e2001-09-28 01:34:43 +00009795
a.rottmann84e63352003-03-24 09:42:16 +00009796
drh71eb93e2001-09-28 01:34:43 +00009797
drh71eb93e2001-09-28 01:34:43 +00009798
a.rottmann9bc8b932004-02-29 15:18:31 +00009799
drh71eb93e2001-09-28 01:34:43 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
drh71eb93e2001-09-28 01:34:43 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
mlcreech636a9952008-05-05 22:52:56 +00009804 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009806$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009808$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009809
drhf922ca42015-05-14 15:39:18 +00009810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009811$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009812 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009813
mlcreech636a9952008-05-05 22:52:56 +00009814 # On AIX, shared libraries and static libraries use the same namespace, and
9815 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009816 case $host_os in
9817 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009818 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009819 if test -n "$RANLIB"; then
9820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9821 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009822 fi
9823 ;;
9824
mlcreech636a9952008-05-05 22:52:56 +00009825 aix[4-9]*)
9826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9827 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009828 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009829 ;;
9830 esac
drhf922ca42015-05-14 15:39:18 +00009831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009832$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009833
drhf922ca42015-05-14 15:39:18 +00009834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009835$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009836 # Make sure either enable_shared or enable_static is yes.
9837 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009839$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009840
a.rottmann9bc8b932004-02-29 15:18:31 +00009841
a.rottmann9bc8b932004-02-29 15:18:31 +00009842
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
vapier7f19c022007-02-17 14:46:31 +00009844fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009845ac_ext=c
9846ac_cpp='$CPP $CPPFLAGS'
9847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849ac_compiler_gnu=$ac_cv_c_compiler_gnu
9850
9851CC="$lt_save_CC"
9852
a.rottmann9bc8b932004-02-29 15:18:31 +00009853
a.rottmann9bc8b932004-02-29 15:18:31 +00009854
9855
a.rottmann9bc8b932004-02-29 15:18:31 +00009856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
a.rottmann9bc8b932004-02-29 15:18:31 +00009858
a.rottmann9bc8b932004-02-29 15:18:31 +00009859
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
vapier7f19c022007-02-17 14:46:31 +00009862
a.rottmann9bc8b932004-02-29 15:18:31 +00009863
9864
drh8b727472009-01-19 18:18:40 +00009865 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009866
vapier7f19c022007-02-17 14:46:31 +00009867
9868
vapier7f19c022007-02-17 14:46:31 +00009869
mlcreech636a9952008-05-05 22:52:56 +00009870# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009871
9872
drh71eb93e2001-09-28 01:34:43 +00009873# Find a good install program. We prefer a C program (faster),
9874# so one script is as good as another. But avoid the broken or
9875# incompatible versions:
9876# SysV /etc/install, /usr/sbin/install
9877# SunOS /usr/etc/install
9878# IRIX /sbin/install
9879# AIX /bin/install
9880# AmigaOS /C/install, which installs bootblocks on floppy discs
9881# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9882# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9883# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009884# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009885# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009886# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009888$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009889if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009890if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009891 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009892else
a.rottmann84e63352003-03-24 09:42:16 +00009893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009898 # Account for people who put trailing slashes in PATH elements.
9899case $as_dir/ in #((
9900 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009902 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009903 /usr/ucb/* ) ;;
9904 *)
9905 # OSF1 and SCO ODT 3.0 have their own names for install.
9906 # Don't use installbsd from OSF since it installs stuff as root
9907 # by default.
9908 for ac_prog in ginstall scoinst install; do
9909 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009910 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009911 if test $ac_prog = install &&
9912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9913 # AIX install. It has an incompatible calling convention.
9914 :
9915 elif test $ac_prog = install &&
9916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9917 # program-specific install script used by HP pwplus--don't use.
9918 :
9919 else
drh8b727472009-01-19 18:18:40 +00009920 rm -rf conftest.one conftest.two conftest.dir
9921 echo one > conftest.one
9922 echo two > conftest.two
9923 mkdir conftest.dir
9924 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9925 test -s conftest.one && test -s conftest.two &&
9926 test -s conftest.dir/conftest.one &&
9927 test -s conftest.dir/conftest.two
9928 then
9929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9930 break 3
9931 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009932 fi
9933 fi
drh71eb93e2001-09-28 01:34:43 +00009934 done
a.rottmann84e63352003-03-24 09:42:16 +00009935 done
9936 ;;
9937esac
a.rottmann84e63352003-03-24 09:42:16 +00009938
drhf922ca42015-05-14 15:39:18 +00009939 done
drh8b727472009-01-19 18:18:40 +00009940IFS=$as_save_IFS
9941
9942rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009943
9944fi
9945 if test "${ac_cv_path_install+set}" = set; then
9946 INSTALL=$ac_cv_path_install
9947 else
drh8b727472009-01-19 18:18:40 +00009948 # As a last resort, use the slow shell script. Don't cache a
9949 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009950 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009951 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009952 INSTALL=$ac_install_sh
9953 fi
9954fi
drhf922ca42015-05-14 15:39:18 +00009955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009956$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009957
9958# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9959# It thinks the first close brace ends the variable substitution.
9960test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9961
9962test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9963
9964test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9965
a.rottmann84e63352003-03-24 09:42:16 +00009966
drh75897232000-05-29 14:26:00 +00009967#########
mlcreech636a9952008-05-05 22:52:56 +00009968# Enable large file support (if special flags are necessary)
9969#
drh8b727472009-01-19 18:18:40 +00009970# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009971if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009972 enableval=$enable_largefile;
9973fi
mlcreech636a9952008-05-05 22:52:56 +00009974
9975if test "$enable_largefile" != no; then
9976
drhf922ca42015-05-14 15:39:18 +00009977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009978$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009979if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009980 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009981else
mlcreech636a9952008-05-05 22:52:56 +00009982 ac_cv_sys_largefile_CC=no
9983 if test "$GCC" != yes; then
9984 ac_save_CC=$CC
9985 while :; do
drh8b727472009-01-19 18:18:40 +00009986 # IRIX 6.2 and later do not support large files by default,
9987 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009989/* end confdefs.h. */
9990#include <sys/types.h>
9991 /* Check that off_t can represent 2**63 - 1 correctly.
9992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9993 since some C++ compilers masquerading as C compilers
9994 incorrectly reject 9223372036854775807. */
9995#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9997 && LARGE_OFF_T % 2147483647 == 1)
9998 ? 1 : -1];
9999int
10000main ()
10001{
10002
10003 ;
10004 return 0;
10005}
10006_ACEOF
drhf922ca42015-05-14 15:39:18 +000010007 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010008 break
mlcreech636a9952008-05-05 22:52:56 +000010009fi
drh8b727472009-01-19 18:18:40 +000010010rm -f core conftest.err conftest.$ac_objext
10011 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010012 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010013 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010014fi
drh8b727472009-01-19 18:18:40 +000010015rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010016 break
10017 done
10018 CC=$ac_save_CC
10019 rm -f conftest.$ac_ext
10020 fi
10021fi
drhf922ca42015-05-14 15:39:18 +000010022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010023$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010024 if test "$ac_cv_sys_largefile_CC" != no; then
10025 CC=$CC$ac_cv_sys_largefile_CC
10026 fi
10027
drhf922ca42015-05-14 15:39:18 +000010028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010029$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010030if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010031 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010032else
10033 while :; do
drhf922ca42015-05-14 15:39:18 +000010034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010035/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010036#include <sys/types.h>
10037 /* Check that off_t can represent 2**63 - 1 correctly.
10038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10039 since some C++ compilers masquerading as C compilers
10040 incorrectly reject 9223372036854775807. */
10041#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10043 && LARGE_OFF_T % 2147483647 == 1)
10044 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010045int
10046main ()
10047{
mlcreech636a9952008-05-05 22:52:56 +000010048
mlcreechb87057f2008-03-06 07:19:20 +000010049 ;
10050 return 0;
10051}
10052_ACEOF
drhf922ca42015-05-14 15:39:18 +000010053if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010054 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010055fi
drh8b727472009-01-19 18:18:40 +000010056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010058/* end confdefs.h. */
10059#define _FILE_OFFSET_BITS 64
10060#include <sys/types.h>
10061 /* Check that off_t can represent 2**63 - 1 correctly.
10062 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10063 since some C++ compilers masquerading as C compilers
10064 incorrectly reject 9223372036854775807. */
10065#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10066 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10067 && LARGE_OFF_T % 2147483647 == 1)
10068 ? 1 : -1];
10069int
10070main ()
10071{
10072
10073 ;
10074 return 0;
10075}
10076_ACEOF
drhf922ca42015-05-14 15:39:18 +000010077if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010078 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010079fi
drh8b727472009-01-19 18:18:40 +000010080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010082 break
10083done
10084fi
drhf922ca42015-05-14 15:39:18 +000010085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010086$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10087case $ac_cv_sys_file_offset_bits in #(
10088 no | unknown) ;;
10089 *)
mlcreech636a9952008-05-05 22:52:56 +000010090cat >>confdefs.h <<_ACEOF
10091#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10092_ACEOF
drh8b727472009-01-19 18:18:40 +000010093;;
10094esac
10095rm -rf conftest*
10096 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010098$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010099if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010100 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010101else
10102 while :; do
drhf922ca42015-05-14 15:39:18 +000010103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010104/* end confdefs.h. */
10105#include <sys/types.h>
10106 /* Check that off_t can represent 2**63 - 1 correctly.
10107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10108 since some C++ compilers masquerading as C compilers
10109 incorrectly reject 9223372036854775807. */
10110#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10112 && LARGE_OFF_T % 2147483647 == 1)
10113 ? 1 : -1];
10114int
10115main ()
10116{
10117
10118 ;
10119 return 0;
10120}
10121_ACEOF
drhf922ca42015-05-14 15:39:18 +000010122if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010123 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010124fi
drh8b727472009-01-19 18:18:40 +000010125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010127/* end confdefs.h. */
10128#define _LARGE_FILES 1
10129#include <sys/types.h>
10130 /* Check that off_t can represent 2**63 - 1 correctly.
10131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10132 since some C++ compilers masquerading as C compilers
10133 incorrectly reject 9223372036854775807. */
10134#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10136 && LARGE_OFF_T % 2147483647 == 1)
10137 ? 1 : -1];
10138int
10139main ()
10140{
10141
10142 ;
10143 return 0;
10144}
10145_ACEOF
drhf922ca42015-05-14 15:39:18 +000010146if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010147 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010148fi
drh8b727472009-01-19 18:18:40 +000010149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010151 break
10152done
10153fi
drhf922ca42015-05-14 15:39:18 +000010154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010155$as_echo "$ac_cv_sys_large_files" >&6; }
10156case $ac_cv_sys_large_files in #(
10157 no | unknown) ;;
10158 *)
mlcreech636a9952008-05-05 22:52:56 +000010159cat >>confdefs.h <<_ACEOF
10160#define _LARGE_FILES $ac_cv_sys_large_files
10161_ACEOF
drh8b727472009-01-19 18:18:40 +000010162;;
10163esac
10164rm -rf conftest*
10165 fi
drhf922ca42015-05-14 15:39:18 +000010166
10167
mlcreech636a9952008-05-05 22:52:56 +000010168fi
10169
10170
10171#########
10172# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010173ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10174if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010175
10176cat >>confdefs.h <<_ACEOF
10177#define HAVE_INT8_T 1
10178_ACEOF
10179
10180
10181fi
drhf922ca42015-05-14 15:39:18 +000010182ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10183if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010184
10185cat >>confdefs.h <<_ACEOF
10186#define HAVE_INT16_T 1
10187_ACEOF
10188
10189
10190fi
drhf922ca42015-05-14 15:39:18 +000010191ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10192if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010193
10194cat >>confdefs.h <<_ACEOF
10195#define HAVE_INT32_T 1
10196_ACEOF
10197
10198
10199fi
drhf922ca42015-05-14 15:39:18 +000010200ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10201if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010202
10203cat >>confdefs.h <<_ACEOF
10204#define HAVE_INT64_T 1
10205_ACEOF
10206
10207
10208fi
drhf922ca42015-05-14 15:39:18 +000010209ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10210if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010211
10212cat >>confdefs.h <<_ACEOF
10213#define HAVE_INTPTR_T 1
10214_ACEOF
10215
10216
10217fi
drhf922ca42015-05-14 15:39:18 +000010218ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10219if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010220
10221cat >>confdefs.h <<_ACEOF
10222#define HAVE_UINT8_T 1
10223_ACEOF
10224
10225
10226fi
drhf922ca42015-05-14 15:39:18 +000010227ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10228if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010229
10230cat >>confdefs.h <<_ACEOF
10231#define HAVE_UINT16_T 1
10232_ACEOF
10233
10234
10235fi
drhf922ca42015-05-14 15:39:18 +000010236ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10237if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010238
10239cat >>confdefs.h <<_ACEOF
10240#define HAVE_UINT32_T 1
10241_ACEOF
10242
10243
10244fi
drhf922ca42015-05-14 15:39:18 +000010245ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10246if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010247
10248cat >>confdefs.h <<_ACEOF
10249#define HAVE_UINT64_T 1
10250_ACEOF
10251
10252
10253fi
drhf922ca42015-05-14 15:39:18 +000010254ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10255if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010256
10257cat >>confdefs.h <<_ACEOF
10258#define HAVE_UINTPTR_T 1
10259_ACEOF
10260
10261
10262fi
mlcreechb87057f2008-03-06 07:19:20 +000010263
10264
10265#########
10266# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010267for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010268do :
10269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10270ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10271if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010272 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010273#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010274_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010275
mlcreechb87057f2008-03-06 07:19:20 +000010276fi
10277
10278done
10279
10280
10281#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010282# Figure out whether or not we have these functions
10283#
drhe32a2562016-03-04 02:38:00 +000010284for 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 +000010285do :
10286 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10287ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10288if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010289 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010290#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010291_ACEOF
10292
10293fi
10294done
10295
10296
mlcreechab1c47b2008-03-09 02:51:10 +000010297#########
mlcreechf3868112008-03-11 18:03:30 +000010298# By default, we use the amalgamation (this may be changed below...)
10299#
10300USE_AMALGAMATION=1
10301
10302#########
mlcreechab1c47b2008-03-09 02:51:10 +000010303# See whether we can run specific tclsh versions known to work well;
10304# if not, then we fall back to plain tclsh.
10305# TODO: try other versions before falling back?
10306#
drh0b11bcb2017-09-22 00:24:44 +000010307for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010308do
10309 # Extract the first word of "$ac_prog", so it can be a program name with args.
10310set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010312$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010313if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010314 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010315else
10316 if test -n "$TCLSH_CMD"; then
10317 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010326 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010328 break 2
10329 fi
10330done
drhf922ca42015-05-14 15:39:18 +000010331 done
drh8b727472009-01-19 18:18:40 +000010332IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010333
10334fi
10335fi
10336TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10337if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010339$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010340else
drhf922ca42015-05-14 15:39:18 +000010341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010342$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010343fi
10344
drh8b727472009-01-19 18:18:40 +000010345
mlcreechab1c47b2008-03-09 02:51:10 +000010346 test -n "$TCLSH_CMD" && break
10347done
mlcreechf3868112008-03-11 18:03:30 +000010348test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010349
mlcreechf3868112008-03-11 18:03:30 +000010350if test "$TCLSH_CMD" = "none"; then
10351 # If we can't find a local tclsh, then building the amalgamation will fail.
10352 # We act as though --disable-amalgamation has been used.
10353 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10354 USE_AMALGAMATION=0
10355 TCLSH_CMD="tclsh"
10356fi
mlcreechab1c47b2008-03-09 02:51:10 +000010357
10358
mlcreech5b0a9eb2008-03-09 01:38:09 +000010359
vapier6acb2cf2009-01-28 04:46:28 +000010360if test "x${TCLLIBDIR+set}" != "xset" ; then
10361 TCLLIBDIR='$(libdir)'
10362 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10363 TCLLIBDIR=$i
10364 break
10365 done
10366 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10367fi
10368
10369
mlcreech5b0a9eb2008-03-09 01:38:09 +000010370#########
drh75897232000-05-29 14:26:00 +000010371# Set up an appropriate program prefix
10372#
10373if test "$program_prefix" = "NONE"; then
10374 program_prefix=""
10375fi
10376
a.rottmann84e63352003-03-24 09:42:16 +000010377
drh4b2266a2004-11-27 15:52:16 +000010378VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010379{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010380$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010381
10382RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010383{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010384$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010385
vapier6acb2cf2009-01-28 04:46:28 +000010386VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010387 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010388 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010389{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010390$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010391
drh26d0e2a2005-07-06 13:51:27 +000010392
drh75897232000-05-29 14:26:00 +000010393#########
drh75897232000-05-29 14:26:00 +000010394# Locate a compiler for the build machine. This compiler should
10395# generate command-line programs that run on the build machine.
10396#
vapier7f19c022007-02-17 14:46:31 +000010397if test x"$cross_compiling" = xno; then
10398 BUILD_CC=$CC
10399 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010400else
vapier7f19c022007-02-17 14:46:31 +000010401 if test "${BUILD_CC+set}" != set; then
10402 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010403do
10404 # Extract the first word of "$ac_prog", so it can be a program name with args.
10405set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010407$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010408if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010409 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010410else
vapier7f19c022007-02-17 14:46:31 +000010411 if test -n "$BUILD_CC"; then
10412 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010413else
a.rottmann84e63352003-03-24 09:42:16 +000010414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010421 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010423 break 2
10424 fi
10425done
drhf922ca42015-05-14 15:39:18 +000010426 done
drh8b727472009-01-19 18:18:40 +000010427IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010428
drh71eb93e2001-09-28 01:34:43 +000010429fi
10430fi
vapier7f19c022007-02-17 14:46:31 +000010431BUILD_CC=$ac_cv_prog_BUILD_CC
10432if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010434$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010435else
drhf922ca42015-05-14 15:39:18 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010437$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010438fi
drh75897232000-05-29 14:26:00 +000010439
drh8b727472009-01-19 18:18:40 +000010440
vapier7f19c022007-02-17 14:46:31 +000010441 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010442done
drh75897232000-05-29 14:26:00 +000010443
vapier7f19c022007-02-17 14:46:31 +000010444 fi
10445 if test "${BUILD_CFLAGS+set}" != set; then
10446 BUILD_CFLAGS="-g"
10447 fi
drh71eb93e2001-09-28 01:34:43 +000010448fi
10449
a.rottmann84e63352003-03-24 09:42:16 +000010450
drh297ecf12001-04-05 15:57:13 +000010451##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010452# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010453#
drh8b727472009-01-19 18:18:40 +000010454# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010455if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010456 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010457else
drh5a3032b2007-09-03 16:12:09 +000010458 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010459fi
10460
drhf922ca42015-05-14 15:39:18 +000010461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010462$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010463if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010464 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010466$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010467else
drh5a3032b2007-09-03 16:12:09 +000010468 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010470$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010471fi
10472
a.rottmann964dbb12004-02-26 19:47:42 +000010473
drh5a3032b2007-09-03 16:12:09 +000010474if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10476$as_echo_n "checking for library containing pthread_create... " >&6; }
10477if ${ac_cv_search_pthread_create+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479else
10480 ac_func_search_save_LIBS=$LIBS
10481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h. */
10483
10484/* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487#ifdef __cplusplus
10488extern "C"
10489#endif
10490char pthread_create ();
10491int
10492main ()
10493{
10494return pthread_create ();
10495 ;
10496 return 0;
10497}
10498_ACEOF
10499for ac_lib in '' pthread; do
10500 if test -z "$ac_lib"; then
10501 ac_res="none required"
10502 else
10503 ac_res=-l$ac_lib
10504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10505 fi
10506 if ac_fn_c_try_link "$LINENO"; then :
10507 ac_cv_search_pthread_create=$ac_res
10508fi
10509rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext
10511 if ${ac_cv_search_pthread_create+:} false; then :
10512 break
10513fi
10514done
10515if ${ac_cv_search_pthread_create+:} false; then :
10516
10517else
10518 ac_cv_search_pthread_create=no
10519fi
10520rm conftest.$ac_ext
10521LIBS=$ac_func_search_save_LIBS
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10524$as_echo "$ac_cv_search_pthread_create" >&6; }
10525ac_res=$ac_cv_search_pthread_create
10526if test "$ac_res" != no; then :
10527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10528
10529fi
10530
drh13c808a2016-01-13 21:23:48 +000010531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10532$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10533if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010534 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010535else
mlcreechc658b0f2008-03-09 02:20:11 +000010536 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010538/* end confdefs.h. */
10539
drh8b727472009-01-19 18:18:40 +000010540/* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010543#ifdef __cplusplus
10544extern "C"
10545#endif
drh13c808a2016-01-13 21:23:48 +000010546char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010547int
10548main ()
10549{
drh13c808a2016-01-13 21:23:48 +000010550return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010551 ;
10552 return 0;
10553}
10554_ACEOF
drh8b727472009-01-19 18:18:40 +000010555for ac_lib in '' pthread; do
10556 if test -z "$ac_lib"; then
10557 ac_res="none required"
10558 else
10559 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010561 fi
drhf922ca42015-05-14 15:39:18 +000010562 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010563 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010564fi
drhf922ca42015-05-14 15:39:18 +000010565rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010567 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010568 break
drh866108f2008-05-13 00:57:21 +000010569fi
drh8b727472009-01-19 18:18:40 +000010570done
drh13c808a2016-01-13 21:23:48 +000010571if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010572
drh8b727472009-01-19 18:18:40 +000010573else
drh13c808a2016-01-13 21:23:48 +000010574 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010575fi
10576rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010577LIBS=$ac_func_search_save_LIBS
10578fi
drh13c808a2016-01-13 21:23:48 +000010579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10580$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10581ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010582if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010584
dougcurrie65623c72004-09-20 14:57:23 +000010585fi
10586
mlcreechc658b0f2008-03-09 02:20:11 +000010587fi
dougcurrie65623c72004-09-20 14:57:23 +000010588
xdong28f79f72003-09-23 00:35:21 +000010589##########
10590# Do we want to support release
10591#
drh8b727472009-01-19 18:18:40 +000010592# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010593if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010594 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010595else
10596 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010597fi
10598
drhf922ca42015-05-14 15:39:18 +000010599{ $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 +000010600$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010601if test "$enable_releasemode" = "no"; then
10602 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010604$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010605else
drh0b47d342007-11-27 14:50:06 +000010606 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010608$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010609fi
paulb0208cc2003-04-13 18:26:49 +000010610
a.rottmann964dbb12004-02-26 19:47:42 +000010611
paulb0208cc2003-04-13 18:26:49 +000010612##########
10613# Do we want temporary databases in memory
10614#
drh8b727472009-01-19 18:18:40 +000010615# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010616if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010617 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010618else
drh54414bb2005-10-10 00:05:50 +000010619 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010620fi
10621
drhf922ca42015-05-14 15:39:18 +000010622{ $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 +000010623$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010624case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010625 never )
paul2dc96f92003-04-20 11:46:34 +000010626 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010628$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010629 ;;
10630 no )
paul2dc96f92003-04-20 11:46:34 +000010631 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010633$as_echo "no" >&6; }
10634 ;;
10635 yes )
10636 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010638$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010639 ;;
10640 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010641 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010643$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010644 ;;
paulb0208cc2003-04-13 18:26:49 +000010645 * )
drh54414bb2005-10-10 00:05:50 +000010646 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010648$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010649 ;;
10650esac
10651
10652
10653
drh75897232000-05-29 14:26:00 +000010654###########
10655# Lots of things are different if we are compiling for Windows using
10656# the CYGWIN environment. So check for that special case and handle
10657# things accordingly.
10658#
drhf922ca42015-05-14 15:39:18 +000010659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010660$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010661if test "$config_BUILD_EXEEXT" = ".exe"; then
10662 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010664$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010665else
drhf922ca42015-05-14 15:39:18 +000010666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010667$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010668fi
10669if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010670
10671case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010672 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010673 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010674esac
drh75897232000-05-29 14:26:00 +000010675
drh75897232000-05-29 14:26:00 +000010676fi
10677if test "$CYGWIN" = "yes"; then
10678 BUILD_EXEEXT=.exe
10679else
dougcurrie6194a5f2003-12-19 20:09:51 +000010680 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010681fi
vapier7f19c022007-02-17 14:46:31 +000010682if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010683 TARGET_EXEEXT=$BUILD_EXEEXT
10684else
10685 TARGET_EXEEXT=$config_TARGET_EXEEXT
10686fi
10687if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010688 SQLITE_OS_UNIX=0
10689 SQLITE_OS_WIN=1
10690 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010691else
danielk197729bafea2008-06-26 10:41:19 +000010692 SQLITE_OS_UNIX=1
10693 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010694 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010695fi
drh75897232000-05-29 14:26:00 +000010696
a.rottmann84e63352003-03-24 09:42:16 +000010697
10698
10699
10700
10701
drh75897232000-05-29 14:26:00 +000010702##########
drh7b5717e2004-11-25 13:50:01 +000010703# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010704#
drh7b5717e2004-11-25 13:50:01 +000010705# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10706# macros in the in the tcl.m4 file of the standard TCL distribution.
10707# Those macros could not be used directly since we have to make some
10708# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010709#
drh8b727472009-01-19 18:18:40 +000010710# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010711if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010712 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010713else
drh7b5717e2004-11-25 13:50:01 +000010714 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010715fi
10716
drh7b5717e2004-11-25 13:50:01 +000010717if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010718
drh8b727472009-01-19 18:18:40 +000010719# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010720if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010721 withval=$with_tcl; with_tclconfig=${withval}
10722fi
10723
drhf922ca42015-05-14 15:39:18 +000010724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010725$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010726 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010727 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010728else
a.rottmann84e63352003-03-24 09:42:16 +000010729
drh7b5717e2004-11-25 13:50:01 +000010730 # First check to see if --with-tcl was specified.
10731 if test x"${with_tclconfig}" != x ; then
10732 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10733 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10734 else
drhf922ca42015-05-14 15:39:18 +000010735 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010736 fi
10737 fi
vapier6acb2cf2009-01-28 04:46:28 +000010738
10739 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010740 if test x"${ac_cv_c_tclconfig}" = x ; then
10741 if test x"$cross_compiling" = xno; then
10742 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10743 do
10744 if test -f "$i/tclConfig.sh" ; then
10745 ac_cv_c_tclconfig="$i"
10746 break
10747 fi
10748 done
10749 fi
vapier6acb2cf2009-01-28 04:46:28 +000010750 fi
10751
drhf960a642015-05-30 22:57:49 +000010752 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10753 # So try again after applying corrections.
10754 if test x"${ac_cv_c_tclconfig}" = x ; then
10755 if test x"$cross_compiling" = xno; then
10756 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10757 do
10758 if test -f "$i/tclConfig.sh" ; then
10759 ac_cv_c_tclconfig="$i"
10760 break
10761 fi
10762 done
10763 fi
10764 fi
10765
drh68314742016-05-23 00:10:58 +000010766 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10767 # in a strange place.
10768 if test x"${ac_cv_c_tclconfig}" = x ; then
10769 if test x"$cross_compiling" = xno; then
10770 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10771 do
10772 if test -f "$i/tclConfig.sh" ; then
10773 ac_cv_c_tclconfig="$i"
10774 break
10775 fi
10776 done
10777 fi
10778 fi
10779
drh7b5717e2004-11-25 13:50:01 +000010780 # then check for a private Tcl installation
10781 if test x"${ac_cv_c_tclconfig}" = x ; then
10782 for i in \
10783 ../tcl \
10784 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10785 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10786 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10787 ../../tcl \
10788 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10789 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10790 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10791 ../../../tcl \
10792 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10793 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10794 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10795 do
10796 if test -f "$i/unix/tclConfig.sh" ; then
10797 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10798 break
10799 fi
10800 done
10801 fi
10802
10803 # check in a few common install locations
10804 if test x"${ac_cv_c_tclconfig}" = x ; then
10805 for i in \
10806 `ls -d ${libdir} 2>/dev/null` \
10807 `ls -d /usr/local/lib 2>/dev/null` \
10808 `ls -d /usr/contrib/lib 2>/dev/null` \
10809 `ls -d /usr/lib 2>/dev/null`
10810 do
10811 if test -f "$i/tclConfig.sh" ; then
10812 ac_cv_c_tclconfig=`(cd $i; pwd)`
10813 break
10814 fi
10815 done
10816 fi
10817
10818 # check in a few other private locations
10819 if test x"${ac_cv_c_tclconfig}" = x ; then
10820 for i in \
10821 ${srcdir}/../tcl \
10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10825 do
10826 if test -f "$i/unix/tclConfig.sh" ; then
10827 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10828 break
10829 fi
10830 done
10831 fi
10832
drh75897232000-05-29 14:26:00 +000010833fi
10834
drh7b5717e2004-11-25 13:50:01 +000010835
10836 if test x"${ac_cv_c_tclconfig}" = x ; then
10837 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010843$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010844 else
10845 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010847$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010848
drhf922ca42015-05-14 15:39:18 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010850$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010851 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010853$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010854 . $TCL_BIN_DIR/tclConfig.sh
10855 else
drhf922ca42015-05-14 15:39:18 +000010856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010857$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010858 fi
drh7b5717e2004-11-25 13:50:01 +000010859
10860 #
10861 # If the TCL_BIN_DIR is the build directory (not the install directory),
10862 # then set the common variable name to the value of the build variables.
10863 # For example, the variable TCL_LIB_SPEC will be set to the value
10864 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10865 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10866 # installed and uninstalled version of Tcl.
10867 #
10868
mlcreechab1c47b2008-03-09 02:51:10 +000010869 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010870 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10871 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10872 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10873 fi
10874
10875 #
10876 # eval is required to do the TCL_DBGX substitution
10877 #
10878
10879 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10880 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10881 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10882
10883 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10884 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10885 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
drhd881ce82015-03-31 17:01:52 +000010899
drh7b5717e2004-11-25 13:50:01 +000010900 fi
drh75897232000-05-29 14:26:00 +000010901fi
drh7b5717e2004-11-25 13:50:01 +000010902if test "${use_tcl}" = "no" ; then
10903 HAVE_TCL=""
10904else
10905 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010906fi
drh75897232000-05-29 14:26:00 +000010907
a.rottmann84e63352003-03-24 09:42:16 +000010908
drh75897232000-05-29 14:26:00 +000010909##########
10910# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010911# that use "readline()" library.
10912#
vapier7f19c022007-02-17 14:46:31 +000010913TARGET_READLINE_LIBS=""
10914TARGET_READLINE_INC=""
10915TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010916TARGET_HAVE_EDITLINE=0
10917# Check whether --enable-editline was given.
10918if test "${enable_editline+set}" = set; then :
10919 enableval=$enable_editline; with_editline=$enableval
10920else
10921 with_editline=auto
10922fi
10923
drh8b727472009-01-19 18:18:40 +000010924# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010925if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010926 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010927else
vapier7f19c022007-02-17 14:46:31 +000010928 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010929fi
10930
vapier7f19c022007-02-17 14:46:31 +000010931
drhe44b8352015-10-30 14:25:57 +000010932if test x"$with_editline" != xno; then
10933 sLIBS=$LIBS
10934 LIBS=""
10935 TARGET_HAVE_EDITLINE=1
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10937$as_echo_n "checking for library containing readline... " >&6; }
10938if ${ac_cv_search_readline+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940else
10941 ac_func_search_save_LIBS=$LIBS
10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h. */
10944
10945/* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10948#ifdef __cplusplus
10949extern "C"
10950#endif
10951char readline ();
10952int
10953main ()
10954{
10955return readline ();
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960for ac_lib in '' edit; do
10961 if test -z "$ac_lib"; then
10962 ac_res="none required"
10963 else
10964 ac_res=-l$ac_lib
10965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10966 fi
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_search_readline=$ac_res
10969fi
10970rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext
10972 if ${ac_cv_search_readline+:} false; then :
10973 break
10974fi
10975done
10976if ${ac_cv_search_readline+:} false; then :
10977
10978else
10979 ac_cv_search_readline=no
10980fi
10981rm conftest.$ac_ext
10982LIBS=$ac_func_search_save_LIBS
10983fi
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10985$as_echo "$ac_cv_search_readline" >&6; }
10986ac_res=$ac_cv_search_readline
10987if test "$ac_res" != no; then :
10988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10989 with_readline=no
10990else
10991 TARGET_HAVE_EDITLINE=0
10992fi
10993
10994 TARGET_READLINE_LIBS=$LIBS
10995 LIBS=$sLIBS
10996fi
vapier7f19c022007-02-17 14:46:31 +000010997if test x"$with_readline" != xno; then
10998 found="yes"
10999
11000
drh8b727472009-01-19 18:18:40 +000011001# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011002if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011003 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011004else
11005 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011006fi
11007
vapier7f19c022007-02-17 14:46:31 +000011008 if test "x$with_readline_lib" = xauto; then
11009 save_LIBS="$LIBS"
11010 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011012$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011013if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011014 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011015else
drh71eb93e2001-09-28 01:34:43 +000011016 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011018/* end confdefs.h. */
11019
drh8b727472009-01-19 18:18:40 +000011020/* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011023#ifdef __cplusplus
11024extern "C"
11025#endif
paul38372372003-04-22 08:04:49 +000011026char tgetent ();
11027int
11028main ()
11029{
drh8b727472009-01-19 18:18:40 +000011030return tgetent ();
paul38372372003-04-22 08:04:49 +000011031 ;
11032 return 0;
11033}
11034_ACEOF
drh8b727472009-01-19 18:18:40 +000011035for ac_lib in '' readline ncurses curses termcap; do
11036 if test -z "$ac_lib"; then
11037 ac_res="none required"
11038 else
11039 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011041 fi
drhf922ca42015-05-14 15:39:18 +000011042 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011043 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011044fi
drhf922ca42015-05-14 15:39:18 +000011045rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext
11047 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011048 break
drh866108f2008-05-13 00:57:21 +000011049fi
drh8b727472009-01-19 18:18:40 +000011050done
drhf922ca42015-05-14 15:39:18 +000011051if ${ac_cv_search_tgetent+:} false; then :
11052
drh8b727472009-01-19 18:18:40 +000011053else
11054 ac_cv_search_tgetent=no
11055fi
11056rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011057LIBS=$ac_func_search_save_LIBS
11058fi
drhf922ca42015-05-14 15:39:18 +000011059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011060$as_echo "$ac_cv_search_tgetent" >&6; }
11061ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011062if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011064 term_LIBS="$LIBS"
11065else
11066 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011067fi
11068
drhf922ca42015-05-14 15:39:18 +000011069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011070$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011071if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011072 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011073else
11074 ac_check_lib_save_LIBS=$LIBS
11075LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011077/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011078
drh8b727472009-01-19 18:18:40 +000011079/* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011082#ifdef __cplusplus
11083extern "C"
11084#endif
drh71eb93e2001-09-28 01:34:43 +000011085char readline ();
11086int
11087main ()
11088{
drh8b727472009-01-19 18:18:40 +000011089return readline ();
drh71eb93e2001-09-28 01:34:43 +000011090 ;
11091 return 0;
11092}
11093_ACEOF
drhf922ca42015-05-14 15:39:18 +000011094if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011095 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011096else
drhf922ca42015-05-14 15:39:18 +000011097 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011098fi
drhf922ca42015-05-14 15:39:18 +000011099rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011101LIBS=$ac_check_lib_save_LIBS
11102fi
drhf922ca42015-05-14 15:39:18 +000011103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011104$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011105if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011106 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011107else
vapier7f19c022007-02-17 14:46:31 +000011108 found="no"
11109fi
drhf1878b42006-01-23 18:06:52 +000011110
vapier7f19c022007-02-17 14:46:31 +000011111 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11112 LIBS="$save_LIBS"
11113 else
11114 TARGET_READLINE_LIBS="$with_readline_lib"
11115 fi
11116
11117
drh8b727472009-01-19 18:18:40 +000011118# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011119if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011120 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011121else
vapier7f19c022007-02-17 14:46:31 +000011122 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011123fi
11124
vapier7f19c022007-02-17 14:46:31 +000011125 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011126 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11127if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011128 found="yes"
11129else
drh75897232000-05-29 14:26:00 +000011130
vapier7f19c022007-02-17 14:46:31 +000011131 found="no"
11132 if test "$cross_compiling" != yes; then
11133 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11134 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011135 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011137$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011138if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011139 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011140else
11141 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011142 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011143if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011144 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011145else
drh71eb93e2001-09-28 01:34:43 +000011146 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011147fi
11148fi
drhf922ca42015-05-14 15:39:18 +000011149eval ac_res=\$$as_ac_File
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011151$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011152if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011153 found=yes
drh75897232000-05-29 14:26:00 +000011154fi
11155
vapier7f19c022007-02-17 14:46:31 +000011156 if test "$found" = "yes"; then
11157 TARGET_READLINE_INC="-I$dir/$subdir"
11158 break
11159 fi
11160 done
11161 test "$found" = "yes" && break
11162 done
11163 fi
11164
11165fi
11166
11167
11168 else
11169 TARGET_READLINE_INC="$with_readline_inc"
11170 fi
11171
11172 if test x"$found" = xno; then
11173 TARGET_READLINE_LIBS=""
11174 TARGET_READLINE_INC=""
11175 TARGET_HAVE_READLINE=0
11176 else
11177 TARGET_HAVE_READLINE=1
11178 fi
11179fi
11180
11181
11182
11183
11184
drhe44b8352015-10-30 14:25:57 +000011185
vapier7f19c022007-02-17 14:46:31 +000011186##########
11187# Figure out what C libraries are required to compile programs
11188# that use "fdatasync()" function.
11189#
drhf922ca42015-05-14 15:39:18 +000011190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011191$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011192if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011193 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011194else
vapier7f19c022007-02-17 14:46:31 +000011195 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011197/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011198
drh8b727472009-01-19 18:18:40 +000011199/* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011202#ifdef __cplusplus
11203extern "C"
11204#endif
11205char fdatasync ();
11206int
11207main ()
11208{
drh8b727472009-01-19 18:18:40 +000011209return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011210 ;
11211 return 0;
11212}
11213_ACEOF
drh8b727472009-01-19 18:18:40 +000011214for ac_lib in '' rt; do
11215 if test -z "$ac_lib"; then
11216 ac_res="none required"
11217 else
11218 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011220 fi
drhf922ca42015-05-14 15:39:18 +000011221 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011222 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011223fi
drhf922ca42015-05-14 15:39:18 +000011224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext
11226 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011227 break
drh866108f2008-05-13 00:57:21 +000011228fi
drh8b727472009-01-19 18:18:40 +000011229done
drhf922ca42015-05-14 15:39:18 +000011230if ${ac_cv_search_fdatasync+:} false; then :
11231
drh8b727472009-01-19 18:18:40 +000011232else
11233 ac_cv_search_fdatasync=no
11234fi
11235rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011236LIBS=$ac_func_search_save_LIBS
11237fi
drhf922ca42015-05-14 15:39:18 +000011238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011239$as_echo "$ac_cv_search_fdatasync" >&6; }
11240ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011241if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011243
vapier7f19c022007-02-17 14:46:31 +000011244fi
11245
a.rottmann84e63352003-03-24 09:42:16 +000011246
drh75897232000-05-29 14:26:00 +000011247#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011248# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011249# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011250if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011251 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011252else
11253 use_debug=no
drh8b727472009-01-19 18:18:40 +000011254fi
11255
tpoindex9d9f76c2005-01-03 21:28:56 +000011256if test "${use_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011257 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011258else
11259 TARGET_DEBUG="-DNDEBUG"
11260fi
11261
11262
11263#########
mlcreech94984912008-03-04 19:03:08 +000011264# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011265# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011266if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011267 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011268else
11269 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011270fi
11271
mlcreechf3868112008-03-11 18:03:30 +000011272if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011273 USE_AMALGAMATION=0
11274fi
11275
11276
11277#########
mlcreecha4edab02008-03-06 04:14:17 +000011278# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011279# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011280if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011281 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011282else
drh05c7e0b2015-01-10 14:27:17 +000011283 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011284fi
11285
mlcreecha4edab02008-03-06 04:14:17 +000011286if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011287 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011289$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011290if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011291 $as_echo_n "(cached) " >&6
11292else
11293 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011295/* end confdefs.h. */
11296
11297/* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11300#ifdef __cplusplus
11301extern "C"
11302#endif
11303char dlopen ();
11304int
11305main ()
11306{
11307return dlopen ();
11308 ;
11309 return 0;
11310}
11311_ACEOF
11312for ac_lib in '' dl; do
11313 if test -z "$ac_lib"; then
11314 ac_res="none required"
11315 else
11316 ac_res=-l$ac_lib
11317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11318 fi
drhf922ca42015-05-14 15:39:18 +000011319 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011320 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011321fi
drhf922ca42015-05-14 15:39:18 +000011322rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext
11324 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011325 break
11326fi
11327done
drhf922ca42015-05-14 15:39:18 +000011328if ${ac_cv_search_dlopen+:} false; then :
11329
drhdbe4b882011-06-20 18:00:17 +000011330else
11331 ac_cv_search_dlopen=no
11332fi
11333rm conftest.$ac_ext
11334LIBS=$ac_func_search_save_LIBS
11335fi
drhf922ca42015-05-14 15:39:18 +000011336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011337$as_echo "$ac_cv_search_dlopen" >&6; }
11338ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011339if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11341
11342fi
11343
mlcreecha4edab02008-03-06 04:14:17 +000011344else
shanefbedede2008-07-22 05:05:01 +000011345 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011346fi
11347
drhc530b9c2016-07-25 11:27:22 +000011348##########
11349# Do we want to support memsys3 and/or memsys5
11350#
drhc530b9c2016-07-25 11:27:22 +000011351# Check whether --enable-memsys5 was given.
11352if test "${enable_memsys5+set}" = set; then :
drh26197d12016-07-25 11:32:09 +000011353 enableval=$enable_memsys5; enable_memsys5=yes
drhc530b9c2016-07-25 11:27:22 +000011354else
drh26197d12016-07-25 11:32:09 +000011355 enable_memsys5=no
drhc530b9c2016-07-25 11:27:22 +000011356fi
11357
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11359$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011360if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011361 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11363$as_echo "yes" >&6; }
11364else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
11367fi
drh5d513ba2016-07-25 11:57:21 +000011368# Check whether --enable-memsys3 was given.
11369if test "${enable_memsys3+set}" = set; then :
11370 enableval=$enable_memsys3; enable_memsys3=yes
11371else
11372 enable_memsys3=no
11373fi
11374
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11376$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11377if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011378 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380$as_echo "yes" >&6; }
11381else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383$as_echo "no" >&6; }
11384fi
drhc530b9c2016-07-25 11:27:22 +000011385
mlcreechaac7b932008-04-01 02:45:22 +000011386#########
drhce1d9f52015-10-09 12:48:33 +000011387# See whether we should enable Full Text Search extensions
11388# Check whether --enable-fts3 was given.
11389if test "${enable_fts3+set}" = set; then :
11390 enableval=$enable_fts3; enable_fts3=yes
11391else
11392 enable_fts3=no
11393fi
11394
11395if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011396 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011397fi
11398# Check whether --enable-fts4 was given.
11399if test "${enable_fts4+set}" = set; then :
11400 enableval=$enable_fts4; enable_fts4=yes
11401else
11402 enable_fts4=no
11403fi
11404
11405if test "${enable_fts4}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011406 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11408$as_echo_n "checking for library containing log... " >&6; }
11409if ${ac_cv_search_log+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411else
11412 ac_func_search_save_LIBS=$LIBS
11413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414/* end confdefs.h. */
11415
11416/* Override any GCC internal prototype to avoid an error.
11417 Use char because int might match the return type of a GCC
11418 builtin and then its argument prototype would still apply. */
11419#ifdef __cplusplus
11420extern "C"
11421#endif
11422char log ();
11423int
11424main ()
11425{
11426return log ();
11427 ;
11428 return 0;
11429}
11430_ACEOF
11431for ac_lib in '' m; do
11432 if test -z "$ac_lib"; then
11433 ac_res="none required"
11434 else
11435 ac_res=-l$ac_lib
11436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11437 fi
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_search_log=$ac_res
11440fi
11441rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext
11443 if ${ac_cv_search_log+:} false; then :
11444 break
11445fi
11446done
11447if ${ac_cv_search_log+:} false; then :
11448
11449else
11450 ac_cv_search_log=no
11451fi
11452rm conftest.$ac_ext
11453LIBS=$ac_func_search_save_LIBS
11454fi
11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11456$as_echo "$ac_cv_search_log" >&6; }
11457ac_res=$ac_cv_search_log
11458if test "$ac_res" != no; then :
11459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11460
11461fi
11462
11463fi
11464# Check whether --enable-fts5 was given.
11465if test "${enable_fts5+set}" = set; then :
11466 enableval=$enable_fts5; enable_fts5=yes
11467else
11468 enable_fts5=no
11469fi
11470
11471if test "${enable_fts5}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011472 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11474$as_echo_n "checking for library containing log... " >&6; }
11475if ${ac_cv_search_log+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477else
11478 ac_func_search_save_LIBS=$LIBS
11479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480/* end confdefs.h. */
11481
11482/* Override any GCC internal prototype to avoid an error.
11483 Use char because int might match the return type of a GCC
11484 builtin and then its argument prototype would still apply. */
11485#ifdef __cplusplus
11486extern "C"
11487#endif
11488char log ();
11489int
11490main ()
11491{
11492return log ();
11493 ;
11494 return 0;
11495}
11496_ACEOF
11497for ac_lib in '' m; do
11498 if test -z "$ac_lib"; then
11499 ac_res="none required"
11500 else
11501 ac_res=-l$ac_lib
11502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11503 fi
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 ac_cv_search_log=$ac_res
11506fi
11507rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext
11509 if ${ac_cv_search_log+:} false; then :
11510 break
11511fi
11512done
11513if ${ac_cv_search_log+:} false; then :
11514
11515else
11516 ac_cv_search_log=no
11517fi
11518rm conftest.$ac_ext
11519LIBS=$ac_func_search_save_LIBS
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11522$as_echo "$ac_cv_search_log" >&6; }
11523ac_res=$ac_cv_search_log
11524if test "$ac_res" != no; then :
11525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11526
11527fi
11528
11529fi
11530
11531#########
11532# See whether we should enable JSON1
11533# Check whether --enable-json1 was given.
11534if test "${enable_json1+set}" = set; then :
11535 enableval=$enable_json1; enable_json1=yes
11536else
11537 enable_json1=no
11538fi
11539
11540if test "${enable_json1}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011541 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011542fi
11543
11544#########
drh83bebdd2017-08-28 17:00:12 +000011545# See whether we should enable the LIMIT clause on UPDATE and DELETE
11546# statements.
11547# Check whether --enable-update-limit was given.
11548if test "${enable_update_limit+set}" = set; then :
11549 enableval=$enable_update_limit; enable_udlimit=yes
11550else
11551 enable_udlimit=no
11552fi
11553
11554if test "${enable_udlimit}" = "yes" ; then
11555 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11556fi
11557
11558#########
drhce1d9f52015-10-09 12:48:33 +000011559# See whether we should enable RTREE
11560# Check whether --enable-rtree was given.
11561if test "${enable_rtree+set}" = set; then :
11562 enableval=$enable_rtree; enable_rtree=yes
11563else
11564 enable_rtree=no
11565fi
11566
11567if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011568 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011569fi
11570
11571#########
drh5e18d402016-05-03 13:14:18 +000011572# See whether we should enable the SESSION extension
11573# Check whether --enable-session was given.
11574if test "${enable_session+set}" = set; then :
11575 enableval=$enable_session; enable_session=yes
11576else
11577 enable_session=no
11578fi
11579
11580if test "${enable_session}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011581 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11582 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011583fi
11584
11585#########
drh8c9ed052017-05-29 17:43:06 +000011586# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011587for option in $CFLAGS $CPPFLAGS
11588do
11589 case $option in
danielk197733a14782008-08-04 14:50:05 +000011590 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011591 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011592 esac
11593done
11594
11595
danielk197733a14782008-08-04 14:50:05 +000011596
shaneb1cd7302008-10-22 18:27:31 +000011597# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011598ac_temp_CFLAGS=""
11599for option in $CFLAGS
11600do
11601 case $option in
11602 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011603 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011604 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011605 esac
11606done
11607CFLAGS=$ac_temp_CFLAGS
11608
11609
shaneb1cd7302008-10-22 18:27:31 +000011610# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011611ac_temp_CPPFLAGS=""
11612for option in $CPPFLAGS
11613do
11614 case $option in
11615 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011616 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011617 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011618 esac
11619done
11620CPPFLAGS=$ac_temp_CPPFLAGS
11621
danielk197733a14782008-08-04 14:50:05 +000011622
drh8b727472009-01-19 18:18:40 +000011623# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011624ac_temp_BUILD_CFLAGS=""
11625for option in $BUILD_CFLAGS
11626do
11627 case $option in
11628 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011629 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011630 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011631 esac
11632done
11633BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11634
11635
11636#########
11637# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011638# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011639if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011640 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011641else
11642 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011643fi
11644
mlcreechaac7b932008-04-01 02:45:22 +000011645if test "${use_gcov}" = "yes" ; then
11646 USE_GCOV=1
11647else
11648 USE_GCOV=0
11649fi
11650
11651
danielk197733a14782008-08-04 14:50:05 +000011652
drh2dfbbca2000-07-28 14:32:48 +000011653#########
mlcreechb87057f2008-03-06 07:19:20 +000011654# Output the config header
drh8b727472009-01-19 18:18:40 +000011655ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011656
11657
11658#########
drh75897232000-05-29 14:26:00 +000011659# Generate the output files.
11660#
mlcreechdf59c7c2008-03-06 07:51:15 +000011661
drh8b727472009-01-19 18:18:40 +000011662ac_config_files="$ac_config_files Makefile sqlite3.pc"
11663
drh71eb93e2001-09-28 01:34:43 +000011664cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011665# This file is a shell script that caches the results of configure
11666# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011667# scripts and configure runs, see configure's option --config-cache.
11668# It is not useful on other systems. If it contains results you don't
11669# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011670#
drh71eb93e2001-09-28 01:34:43 +000011671# config.status only pays attention to the cache file if you give it
11672# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011673#
a.rottmann84e63352003-03-24 09:42:16 +000011674# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011675# loading this file, other *unset* `ac_cv_foo' will be assigned the
11676# following values.
11677
11678_ACEOF
11679
drh75897232000-05-29 14:26:00 +000011680# The following way of writing the cache mishandles newlines in values,
11681# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011682# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011683# Ultrix sh set writes to stderr and can't be redirected directly,
11684# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011685(
11686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11687 eval ac_val=\$$ac_var
11688 case $ac_val in #(
11689 *${as_nl}*)
11690 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011691 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11692$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011693 esac
11694 case $ac_var in #(
11695 _ | IFS | as_nl) ;; #(
11696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011697 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011698 esac ;;
11699 esac
11700 done
11701
drh71eb93e2001-09-28 01:34:43 +000011702 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11704 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011705 # `set' does not quote correctly, so add quotes: double-quote
11706 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011707 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011708 "s/'/'\\\\''/g;
11709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011710 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011711 *)
11712 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011714 ;;
drh8b727472009-01-19 18:18:40 +000011715 esac |
11716 sort
11717) |
drh71eb93e2001-09-28 01:34:43 +000011718 sed '
drh8b727472009-01-19 18:18:40 +000011719 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011720 t clear
drh8b727472009-01-19 18:18:40 +000011721 :clear
drh71eb93e2001-09-28 01:34:43 +000011722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11723 t end
drh8b727472009-01-19 18:18:40 +000011724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11725 :end' >>confcache
11726if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11727 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011728 if test "x$cache_file" != "x/dev/null"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011730$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011731 if test ! -f "$cache_file" || test -h "$cache_file"; then
11732 cat confcache >"$cache_file"
11733 else
11734 case $cache_file in #(
11735 */* | ?:*)
11736 mv -f confcache "$cache_file"$$ &&
11737 mv -f "$cache_file"$$ "$cache_file" ;; #(
11738 *)
11739 mv -f confcache "$cache_file" ;;
11740 esac
11741 fi
11742 fi
drh75897232000-05-29 14:26:00 +000011743 else
drhf922ca42015-05-14 15:39:18 +000011744 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011745$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011746 fi
11747fi
11748rm -f confcache
11749
drh75897232000-05-29 14:26:00 +000011750test "x$prefix" = xNONE && prefix=$ac_default_prefix
11751# Let make expand exec_prefix.
11752test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11753
mlcreechb87057f2008-03-06 07:19:20 +000011754DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011755
11756ac_libobjs=
11757ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011758U=
a.rottmann84e63352003-03-24 09:42:16 +000011759for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11760 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011761 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11762 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11764 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011765 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11766 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011767done
11768LIBOBJS=$ac_libobjs
11769
11770LTLIBOBJS=$ac_ltlibobjs
11771
11772
11773
drhf922ca42015-05-14 15:39:18 +000011774: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011775ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011776ac_clean_files_save=$ac_clean_files
11777ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011778{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011779$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011780as_write_fail=0
11781cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011782#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011783# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011784# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011785# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011786# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011787
drh71eb93e2001-09-28 01:34:43 +000011788debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011789ac_cs_recheck=false
11790ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011791
drhf922ca42015-05-14 15:39:18 +000011792SHELL=\${CONFIG_SHELL-$SHELL}
11793export SHELL
11794_ASEOF
11795cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11796## -------------------- ##
11797## M4sh Initialization. ##
11798## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011799
drh8b727472009-01-19 18:18:40 +000011800# Be more Bourne compatible
11801DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011802if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011803 emulate sh
11804 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011806 # is contrary to our usage. Disable this feature.
11807 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011808 setopt NO_GLOB_SUBST
11809else
drhf922ca42015-05-14 15:39:18 +000011810 case `(set -o) 2>/dev/null` in #(
11811 *posix*) :
11812 set -o posix ;; #(
11813 *) :
11814 ;;
drh8b727472009-01-19 18:18:40 +000011815esac
a.rottmann84e63352003-03-24 09:42:16 +000011816fi
drh8b727472009-01-19 18:18:40 +000011817
11818
drh8b727472009-01-19 18:18:40 +000011819as_nl='
11820'
11821export as_nl
11822# Printing a long string crashes Solaris 7 /usr/bin/printf.
11823as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011826# Prefer a ksh shell builtin over an external printf program on Solaris,
11827# but without wasting forks for bash or zsh.
11828if test -z "$BASH_VERSION$ZSH_VERSION" \
11829 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11830 as_echo='print -r --'
11831 as_echo_n='print -rn --'
11832elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011833 as_echo='printf %s\n'
11834 as_echo_n='printf %s'
11835else
11836 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11837 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11838 as_echo_n='/usr/ucb/echo -n'
11839 else
11840 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11841 as_echo_n_body='eval
11842 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011843 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011844 *"$as_nl"*)
11845 expr "X$arg" : "X\\(.*\\)$as_nl";
11846 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11847 esac;
11848 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11849 '
11850 export as_echo_n_body
11851 as_echo_n='sh -c $as_echo_n_body as_echo'
11852 fi
11853 export as_echo_body
11854 as_echo='sh -c $as_echo_body as_echo'
11855fi
11856
11857# The user is always right.
11858if test "${PATH_SEPARATOR+set}" != set; then
11859 PATH_SEPARATOR=:
11860 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11861 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11862 PATH_SEPARATOR=';'
11863 }
11864fi
a.rottmann84e63352003-03-24 09:42:16 +000011865
mlcreech94984912008-03-04 19:03:08 +000011866
drh8b727472009-01-19 18:18:40 +000011867# IFS
11868# We need space, tab and new line, in precisely that order. Quoting is
11869# there to prevent editors from complaining about space-tab.
11870# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11871# splitting by setting IFS to empty value.)
11872IFS=" "" $as_nl"
11873
11874# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011875as_myself=
11876case $0 in #((
drh8b727472009-01-19 18:18:40 +000011877 *[\\/]* ) as_myself=$0 ;;
11878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879for as_dir in $PATH
11880do
11881 IFS=$as_save_IFS
11882 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11884 done
drh8b727472009-01-19 18:18:40 +000011885IFS=$as_save_IFS
11886
11887 ;;
11888esac
11889# We did not find ourselves, most probably we were run as `sh COMMAND'
11890# in which case we are not to be found in the path.
11891if test "x$as_myself" = x; then
11892 as_myself=$0
11893fi
11894if test ! -f "$as_myself"; then
11895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011896 exit 1
drh8b727472009-01-19 18:18:40 +000011897fi
11898
drhf922ca42015-05-14 15:39:18 +000011899# Unset variables that we do not need and which cause bugs (e.g. in
11900# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11901# suppresses any "Segmentation fault" message there. '((' could
11902# trigger a bug in pdksh 5.2.14.
11903for as_var in BASH_ENV ENV MAIL MAILPATH
11904do eval test x\${$as_var+set} = xset \
11905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011906done
mlcreech94984912008-03-04 19:03:08 +000011907PS1='$ '
11908PS2='> '
11909PS4='+ '
11910
11911# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011912LC_ALL=C
11913export LC_ALL
11914LANGUAGE=C
11915export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011916
drhf922ca42015-05-14 15:39:18 +000011917# CDPATH.
11918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11919
11920
11921# as_fn_error STATUS ERROR [LINENO LOG_FD]
11922# ----------------------------------------
11923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11925# script with STATUS, using 1 if that was 0.
11926as_fn_error ()
11927{
11928 as_status=$1; test $as_status -eq 0 && as_status=1
11929 if test "$4"; then
11930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11932 fi
11933 $as_echo "$as_me: error: $2" >&2
11934 as_fn_exit $as_status
11935} # as_fn_error
11936
11937
11938# as_fn_set_status STATUS
11939# -----------------------
11940# Set $? to STATUS, without forking.
11941as_fn_set_status ()
11942{
11943 return $1
11944} # as_fn_set_status
11945
11946# as_fn_exit STATUS
11947# -----------------
11948# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11949as_fn_exit ()
11950{
11951 set +e
11952 as_fn_set_status $1
11953 exit $1
11954} # as_fn_exit
11955
11956# as_fn_unset VAR
11957# ---------------
11958# Portably unset VAR.
11959as_fn_unset ()
11960{
11961 { eval $1=; unset $1;}
11962}
11963as_unset=as_fn_unset
11964# as_fn_append VAR VALUE
11965# ----------------------
11966# Append the text in VALUE to the end of the definition contained in VAR. Take
11967# advantage of any shell optimizations that allow amortized linear growth over
11968# repeated appends, instead of the typical quadratic growth present in naive
11969# implementations.
11970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11971 eval 'as_fn_append ()
11972 {
11973 eval $1+=\$2
11974 }'
11975else
11976 as_fn_append ()
11977 {
11978 eval $1=\$$1\$2
11979 }
11980fi # as_fn_append
11981
11982# as_fn_arith ARG...
11983# ------------------
11984# Perform arithmetic evaluation on the ARGs, and store the result in the
11985# global $as_val. Take advantage of shells that can avoid forks. The arguments
11986# must be portable across $(()) and expr.
11987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11988 eval 'as_fn_arith ()
11989 {
11990 as_val=$(( $* ))
11991 }'
11992else
11993 as_fn_arith ()
11994 {
11995 as_val=`expr "$@" || test $? -eq 1`
11996 }
11997fi # as_fn_arith
11998
11999
drh8b727472009-01-19 18:18:40 +000012000if expr a : '\(a\)' >/dev/null 2>&1 &&
12001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012002 as_expr=expr
12003else
12004 as_expr=false
12005fi
12006
drh8b727472009-01-19 18:18:40 +000012007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012008 as_basename=basename
12009else
12010 as_basename=false
12011fi
12012
drhf922ca42015-05-14 15:39:18 +000012013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12014 as_dirname=dirname
12015else
12016 as_dirname=false
12017fi
mlcreech94984912008-03-04 19:03:08 +000012018
drh8b727472009-01-19 18:18:40 +000012019as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12021 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12023$as_echo X/"$0" |
12024 sed '/^.*\/\([^/][^/]*\)\/*$/{
12025 s//\1/
12026 q
12027 }
12028 /^X\/\(\/\/\)$/{
12029 s//\1/
12030 q
12031 }
12032 /^X\/\(\/\).*/{
12033 s//\1/
12034 q
12035 }
12036 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012037
drhf922ca42015-05-14 15:39:18 +000012038# Avoid depending upon Character Ranges.
12039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12042as_cr_digits='0123456789'
12043as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012044
drh8b727472009-01-19 18:18:40 +000012045ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012046case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012047-n*)
drhf922ca42015-05-14 15:39:18 +000012048 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012050 xy) ECHO_C='\c';;
12051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12052 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012053 esac;;
12054*)
12055 ECHO_N='-n';;
12056esac
drh71eb93e2001-09-28 01:34:43 +000012057
12058rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012059if test -d conf$$.dir; then
12060 rm -f conf$$.dir/conf$$.file
12061else
12062 rm -f conf$$.dir
12063 mkdir conf$$.dir 2>/dev/null
12064fi
12065if (echo >conf$$.file) 2>/dev/null; then
12066 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012067 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012068 # ... but there are two gotchas:
12069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012071 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012073 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012074 elif ln conf$$.file conf$$ 2>/dev/null; then
12075 as_ln_s=ln
12076 else
drhf922ca42015-05-14 15:39:18 +000012077 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012078 fi
drh71eb93e2001-09-28 01:34:43 +000012079else
drhf922ca42015-05-14 15:39:18 +000012080 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012081fi
drh8b727472009-01-19 18:18:40 +000012082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12083rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012084
drhf922ca42015-05-14 15:39:18 +000012085
12086# as_fn_mkdir_p
12087# -------------
12088# Create "$as_dir" as a directory, including parents if necessary.
12089as_fn_mkdir_p ()
12090{
12091
12092 case $as_dir in #(
12093 -*) as_dir=./$as_dir;;
12094 esac
12095 test -d "$as_dir" || eval $as_mkdir_p || {
12096 as_dirs=
12097 while :; do
12098 case $as_dir in #(
12099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12100 *) as_qdir=$as_dir;;
12101 esac
12102 as_dirs="'$as_qdir' $as_dirs"
12103 as_dir=`$as_dirname -- "$as_dir" ||
12104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12105 X"$as_dir" : 'X\(//\)[^/]' \| \
12106 X"$as_dir" : 'X\(//\)$' \| \
12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12108$as_echo X"$as_dir" |
12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12110 s//\1/
12111 q
12112 }
12113 /^X\(\/\/\)[^/].*/{
12114 s//\1/
12115 q
12116 }
12117 /^X\(\/\/\)$/{
12118 s//\1/
12119 q
12120 }
12121 /^X\(\/\).*/{
12122 s//\1/
12123 q
12124 }
12125 s/.*/./; q'`
12126 test -d "$as_dir" && break
12127 done
12128 test -z "$as_dirs" || eval "mkdir $as_dirs"
12129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12130
12131
12132} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012133if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012134 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012135else
a.rottmann964dbb12004-02-26 19:47:42 +000012136 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012137 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012138fi
12139
drhf922ca42015-05-14 15:39:18 +000012140
12141# as_fn_executable_p FILE
12142# -----------------------
12143# Test if FILE is an executable regular file.
12144as_fn_executable_p ()
12145{
12146 test -f "$1" && test -x "$1"
12147} # as_fn_executable_p
12148as_test_x='test -x'
12149as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012150
12151# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012152as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012153
12154# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012155as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012156
drh71eb93e2001-09-28 01:34:43 +000012157
drh71eb93e2001-09-28 01:34:43 +000012158exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012159## ----------------------------------- ##
12160## Main body of $CONFIG_STATUS script. ##
12161## ----------------------------------- ##
12162_ASEOF
12163test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012164
drhf922ca42015-05-14 15:39:18 +000012165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12166# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012167# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012168# values after options handling.
12169ac_log="
drh01d837d2017-07-27 19:59:37 +000012170This file was extended by sqlite $as_me 3.21.0, which was
drhf922ca42015-05-14 15:39:18 +000012171generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012172
12173 CONFIG_FILES = $CONFIG_FILES
12174 CONFIG_HEADERS = $CONFIG_HEADERS
12175 CONFIG_LINKS = $CONFIG_LINKS
12176 CONFIG_COMMANDS = $CONFIG_COMMANDS
12177 $ $0 $@
12178
drh8b727472009-01-19 18:18:40 +000012179on `(hostname || uname -n) 2>/dev/null | sed 1q`
12180"
12181
drh71eb93e2001-09-28 01:34:43 +000012182_ACEOF
12183
drhf922ca42015-05-14 15:39:18 +000012184case $ac_config_files in *"
12185"*) set x $ac_config_files; shift; ac_config_files=$*;;
12186esac
12187
12188case $ac_config_headers in *"
12189"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12190esac
12191
12192
drh8b727472009-01-19 18:18:40 +000012193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012194# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012195config_files="$ac_config_files"
12196config_headers="$ac_config_headers"
12197config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012198
drh8b727472009-01-19 18:18:40 +000012199_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012200
drh8b727472009-01-19 18:18:40 +000012201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012202ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012203\`$as_me' instantiates files and other configuration actions
12204from templates according to the current configuration. Unless the files
12205and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012206
drhf922ca42015-05-14 15:39:18 +000012207Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012208
12209 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012210 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012211 --config print configuration, then exit
12212 -q, --quiet, --silent
12213 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012214 -d, --debug don't remove temporary files
12215 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012216 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012217 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012218 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012219 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012220
12221Configuration files:
12222$config_files
12223
mlcreechb87057f2008-03-06 07:19:20 +000012224Configuration headers:
12225$config_headers
12226
mlcreech636a9952008-05-05 22:52:56 +000012227Configuration commands:
12228$config_commands
12229
drhf922ca42015-05-14 15:39:18 +000012230Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012231
mlcreech94984912008-03-04 19:03:08 +000012232_ACEOF
drh8b727472009-01-19 18:18:40 +000012233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012234ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012235ac_cs_version="\\
drh01d837d2017-07-27 19:59:37 +000012236sqlite config.status 3.21.0
drhf922ca42015-05-14 15:39:18 +000012237configured by $0, generated by GNU Autoconf 2.69,
12238 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012239
drhf922ca42015-05-14 15:39:18 +000012240Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012241This config.status script is free software; the Free Software Foundation
12242gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012243
12244ac_pwd='$ac_pwd'
12245srcdir='$srcdir'
12246INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012247test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012248_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012249
drh8b727472009-01-19 18:18:40 +000012250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012252ac_need_defaults=:
12253while test $# != 0
12254do
12255 case $1 in
drhf922ca42015-05-14 15:39:18 +000012256 --*=?*)
drh8b727472009-01-19 18:18:40 +000012257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12258 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012259 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012260 ;;
drhf922ca42015-05-14 15:39:18 +000012261 --*=)
12262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12263 ac_optarg=
12264 ac_shift=:
12265 ;;
drh8b727472009-01-19 18:18:40 +000012266 *)
a.rottmann84e63352003-03-24 09:42:16 +000012267 ac_option=$1
12268 ac_optarg=$2
12269 ac_shift=shift
12270 ;;
drh75897232000-05-29 14:26:00 +000012271 esac
12272
a.rottmann84e63352003-03-24 09:42:16 +000012273 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012274 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012275 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012276 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012277 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12278 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012279 --config | --confi | --conf | --con | --co | --c )
12280 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012281 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012282 debug=: ;;
12283 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012284 $ac_shift
drh8b727472009-01-19 18:18:40 +000012285 case $ac_optarg in
12286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012287 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012288 esac
drhf922ca42015-05-14 15:39:18 +000012289 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012290 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012291 --header | --heade | --head | --hea )
12292 $ac_shift
drh8b727472009-01-19 18:18:40 +000012293 case $ac_optarg in
12294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12295 esac
drhf922ca42015-05-14 15:39:18 +000012296 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012297 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012298 --he | --h)
12299 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012300 as_fn_error $? "ambiguous option: \`$1'
12301Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012302 --help | --hel | -h )
12303 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12306 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012307
drh71eb93e2001-09-28 01:34:43 +000012308 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012309 -*) as_fn_error $? "unrecognized option: \`$1'
12310Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012311
drhf922ca42015-05-14 15:39:18 +000012312 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012313 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012314
12315 esac
12316 shift
12317done
12318
a.rottmann84e63352003-03-24 09:42:16 +000012319ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012320
a.rottmann84e63352003-03-24 09:42:16 +000012321if $ac_cs_silent; then
12322 exec 6>/dev/null
12323 ac_configure_extra_args="$ac_configure_extra_args --silent"
12324fi
drh71eb93e2001-09-28 01:34:43 +000012325
12326_ACEOF
drh8b727472009-01-19 18:18:40 +000012327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012328if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012329 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012330 shift
12331 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12332 CONFIG_SHELL='$SHELL'
12333 export CONFIG_SHELL
12334 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012335fi
drh71eb93e2001-09-28 01:34:43 +000012336
a.rottmann84e63352003-03-24 09:42:16 +000012337_ACEOF
drh8b727472009-01-19 18:18:40 +000012338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12339exec 5>>config.log
12340{
12341 echo
12342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12343## Running $as_me. ##
12344_ASBOX
12345 $as_echo "$ac_log"
12346} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012347
drh8b727472009-01-19 18:18:40 +000012348_ACEOF
12349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012350#
drh8b727472009-01-19 18:18:40 +000012351# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012352#
12353
12354
12355# The HP-UX ksh and POSIX shell print the target directory to stdout
12356# if CDPATH is set.
12357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12358
12359sed_quote_subst='$sed_quote_subst'
12360double_quote_subst='$double_quote_subst'
12361delay_variable_subst='$delay_variable_subst'
12362macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12363macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12364enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12365enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12366pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12367enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12368host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12369host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12370host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12371build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12372build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12373build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12374SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12375Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12376GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12377EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12378FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12379LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12380NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12381LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12382max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12383ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12384exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12385lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12386lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12387lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12388reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12389reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012390OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012391deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12392file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12393AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12394AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12395STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12396RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12397old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12398old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12399old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12400CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12401CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12402compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12403GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12404lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12405lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12406lt_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"`'
12407lt_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"`'
12408objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12409SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12410ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12411MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12412lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12413lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12414lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12415lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12416lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12417need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12418DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12419NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12420LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12421OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12422OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12423libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12424shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12425extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12426archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12427enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12428export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12429whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12430compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12431old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12432old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12433archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12434archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12435module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12436module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12437with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12438allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12439no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12440hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12441hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12442hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12443hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12444hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12445hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12446hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12447hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12448inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12449link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12450fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12451always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12452export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12453exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12454include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12455prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12456file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12457variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12458need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12459need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12460version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12461runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12462shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12463shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12464libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12465library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12466soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12467postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12468postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12469finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12470finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12471hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12472sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12473sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12474hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12475enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12476enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12477enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12478old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12479striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12480
12481LTCC='$LTCC'
12482LTCFLAGS='$LTCFLAGS'
12483compiler='$compiler_DEFAULT'
12484
12485# Quote evaled strings.
12486for var in SED \
12487GREP \
12488EGREP \
12489FGREP \
12490LD \
12491NM \
12492LN_S \
12493lt_SP2NL \
12494lt_NL2SP \
12495reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012496OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012497deplibs_check_method \
12498file_magic_cmd \
12499AR \
12500AR_FLAGS \
12501STRIP \
12502RANLIB \
12503CC \
12504CFLAGS \
12505compiler \
12506lt_cv_sys_global_symbol_pipe \
12507lt_cv_sys_global_symbol_to_cdecl \
12508lt_cv_sys_global_symbol_to_c_name_address \
12509lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12510SHELL \
12511ECHO \
12512lt_prog_compiler_no_builtin_flag \
12513lt_prog_compiler_wl \
12514lt_prog_compiler_pic \
12515lt_prog_compiler_static \
12516lt_cv_prog_compiler_c_o \
12517need_locks \
12518DSYMUTIL \
12519NMEDIT \
12520LIPO \
12521OTOOL \
12522OTOOL64 \
12523shrext_cmds \
12524export_dynamic_flag_spec \
12525whole_archive_flag_spec \
12526compiler_needs_object \
12527with_gnu_ld \
12528allow_undefined_flag \
12529no_undefined_flag \
12530hardcode_libdir_flag_spec \
12531hardcode_libdir_flag_spec_ld \
12532hardcode_libdir_separator \
12533fix_srcfile_path \
12534exclude_expsyms \
12535include_expsyms \
12536file_list_spec \
12537variables_saved_for_relink \
12538libname_spec \
12539library_names_spec \
12540soname_spec \
12541finish_eval \
12542old_striplib \
12543striplib; do
12544 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12545 *[\\\\\\\`\\"\\\$]*)
12546 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12547 ;;
12548 *)
12549 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12550 ;;
12551 esac
12552done
12553
12554# Double-quote double-evaled strings.
12555for var in reload_cmds \
12556old_postinstall_cmds \
12557old_postuninstall_cmds \
12558old_archive_cmds \
12559extract_expsyms_cmds \
12560old_archive_from_new_cmds \
12561old_archive_from_expsyms_cmds \
12562archive_cmds \
12563archive_expsym_cmds \
12564module_cmds \
12565module_expsym_cmds \
12566export_symbols_cmds \
12567prelink_cmds \
12568postinstall_cmds \
12569postuninstall_cmds \
12570finish_cmds \
12571sys_lib_search_path_spec \
12572sys_lib_dlsearch_path_spec; do
12573 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12574 *[\\\\\\\`\\"\\\$]*)
12575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12576 ;;
12577 *)
12578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12579 ;;
12580 esac
12581done
12582
12583# Fix-up fallback echo if it was mangled by the above quoting rules.
12584case \$lt_ECHO in
12585*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12586 ;;
12587esac
12588
12589ac_aux_dir='$ac_aux_dir'
12590xsi_shell='$xsi_shell'
12591lt_shell_append='$lt_shell_append'
12592
12593# See if we are running on zsh, and set the options which allow our
12594# commands through without removal of \ escapes INIT.
12595if test -n "\${ZSH_VERSION+set}" ; then
12596 setopt NO_GLOB_SUBST
12597fi
12598
12599
12600 PACKAGE='$PACKAGE'
12601 VERSION='$VERSION'
12602 TIMESTAMP='$TIMESTAMP'
12603 RM='$RM'
12604 ofile='$ofile'
12605
12606
12607
12608
mlcreech94984912008-03-04 19:03:08 +000012609_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012610
drh8b727472009-01-19 18:18:40 +000012611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012612
drh8b727472009-01-19 18:18:40 +000012613# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012614for ac_config_target in $ac_config_targets
12615do
drh8b727472009-01-19 18:18:40 +000012616 case $ac_config_target in
12617 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12618 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12619 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12620 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12621
drhf922ca42015-05-14 15:39:18 +000012622 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012623 esac
12624done
12625
drh8b727472009-01-19 18:18:40 +000012626
drh71eb93e2001-09-28 01:34:43 +000012627# If the user did not use the arguments to specify the items to instantiate,
12628# then the envvar interface is used. Set only those that are not.
12629# We use the long form for the default assignment because of an extremely
12630# bizarre bug on SunOS 4.1.3.
12631if $ac_need_defaults; then
12632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012635fi
12636
a.rottmann84e63352003-03-24 09:42:16 +000012637# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012638# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012639# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012640# Hook for its removal unless debugging.
12641# Note that there is a small window in which the directory will not be cleaned:
12642# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012643$debug ||
12644{
drhf922ca42015-05-14 15:39:18 +000012645 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012646 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012647 : "${ac_tmp:=$tmp}"
12648 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012649' 0
drhf922ca42015-05-14 15:39:18 +000012650 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012651}
drh71eb93e2001-09-28 01:34:43 +000012652# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012653
drh71eb93e2001-09-28 01:34:43 +000012654{
drh8b727472009-01-19 18:18:40 +000012655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012656 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012657} ||
12658{
drh8b727472009-01-19 18:18:40 +000012659 tmp=./conf$$-$RANDOM
12660 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012661} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12662ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012663
drh8b727472009-01-19 18:18:40 +000012664# Set up the scripts for CONFIG_FILES section.
12665# No need to generate them if there are no CONFIG_FILES.
12666# This happens for instance with `./config.status config.h'.
12667if test -n "$CONFIG_FILES"; then
12668
12669
drhf922ca42015-05-14 15:39:18 +000012670ac_cr=`echo X | tr X '\015'`
12671# On cygwin, bash can eat \r inside `` if the user requested igncr.
12672# But we know of no other shell where ac_cr would be empty at this
12673# point, so we can use a bashism as a fallback.
12674if test "x$ac_cr" = x; then
12675 eval ac_cr=\$\'\\r\'
12676fi
drh8b727472009-01-19 18:18:40 +000012677ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12678if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012679 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012680else
12681 ac_cs_awk_cr=$ac_cr
12682fi
12683
drhf922ca42015-05-14 15:39:18 +000012684echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012685_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012686
mlcreech94984912008-03-04 19:03:08 +000012687
drh8b727472009-01-19 18:18:40 +000012688{
12689 echo "cat >conf$$subs.awk <<_ACEOF" &&
12690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12691 echo "_ACEOF"
12692} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12694ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012695ac_delim='%!_!# '
12696for ac_last_try in false false false false false :; do
12697 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012699
drhf922ca42015-05-14 15:39:18 +000012700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12701 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012702 break
12703 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012705 else
12706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012707 fi
drh8b727472009-01-19 18:18:40 +000012708done
12709rm -f conf$$subs.sh
12710
12711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012712cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012713_ACEOF
12714sed -n '
12715h
12716s/^/S["/; s/!.*/"]=/
12717p
12718g
12719s/^[^!]*!//
12720:repl
12721t repl
12722s/'"$ac_delim"'$//
12723t delim
12724:nl
12725h
drhf922ca42015-05-14 15:39:18 +000012726s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012727t more1
12728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12729p
12730n
12731b repl
12732:more1
12733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12734p
12735g
12736s/.\{148\}//
12737t nl
12738:delim
12739h
drhf922ca42015-05-14 15:39:18 +000012740s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012741t more2
12742s/["\\]/\\&/g; s/^/"/; s/$/"/
12743p
12744b
12745:more2
12746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12747p
12748g
12749s/.\{148\}//
12750t delim
12751' <conf$$subs.awk | sed '
12752/^[^""]/{
12753 N
12754 s/\n//
12755}
12756' >>$CONFIG_STATUS || ac_write_fail=1
12757rm -f conf$$subs.awk
12758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12759_ACAWK
drhf922ca42015-05-14 15:39:18 +000012760cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012761 for (key in S) S_is_set[key] = 1
12762 FS = ""
12763
12764}
12765{
12766 line = $ 0
12767 nfields = split(line, field, "@")
12768 substed = 0
12769 len = length(field[1])
12770 for (i = 2; i < nfields; i++) {
12771 key = field[i]
12772 keylen = length(key)
12773 if (S_is_set[key]) {
12774 value = S[key]
12775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12776 len += length(value) + length(field[++i])
12777 substed = 1
12778 } else
12779 len += 1 + keylen
12780 }
12781
12782 print line
12783}
12784
12785_ACAWK
12786_ACEOF
12787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12788if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12790else
12791 cat
drhf922ca42015-05-14 15:39:18 +000012792fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012794_ACEOF
12795
drhf922ca42015-05-14 15:39:18 +000012796# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12797# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012798# trailing colons and then remove the whole line if VPATH becomes empty
12799# (actually we leave an empty line to preserve line numbers).
12800if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12802h
12803s///
12804s/^/:/
12805s/[ ]*$/:/
12806s/:\$(srcdir):/:/g
12807s/:\${srcdir}:/:/g
12808s/:@srcdir@:/:/g
12809s/^:*//
drh8b727472009-01-19 18:18:40 +000012810s/:*$//
drhf922ca42015-05-14 15:39:18 +000012811x
12812s/\(=[ ]*\).*/\1/
12813G
12814s/\n//
drh8b727472009-01-19 18:18:40 +000012815s/^[^=]*=[ ]*$//
12816}'
12817fi
12818
12819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012820fi # test -n "$CONFIG_FILES"
12821
drh8b727472009-01-19 18:18:40 +000012822# Set up the scripts for CONFIG_HEADERS section.
12823# No need to generate them if there are no CONFIG_HEADERS.
12824# This happens for instance with `./config.status Makefile'.
12825if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012826cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012827BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012828_ACEOF
drh8b727472009-01-19 18:18:40 +000012829
12830# Transform confdefs.h into an awk script `defines.awk', embedded as
12831# here-document in config.status, that substitutes the proper values into
12832# config.h.in to produce config.h.
12833
12834# Create a delimiter string that does not exist in confdefs.h, to ease
12835# handling of long lines.
12836ac_delim='%!_!# '
12837for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012838 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12839 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012840 break
12841 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012842 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012843 else
12844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12845 fi
12846done
12847
12848# For the awk script, D is an array of macro values keyed by name,
12849# likewise P contains macro parameters if any. Preserve backslash
12850# newline sequences.
12851
12852ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12853sed -n '
12854s/.\{148\}/&'"$ac_delim"'/g
12855t rset
12856:rset
12857s/^[ ]*#[ ]*define[ ][ ]*/ /
12858t def
12859d
12860:def
12861s/\\$//
12862t bsnl
12863s/["\\]/\\&/g
12864s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12865D["\1"]=" \3"/p
12866s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12867d
12868:bsnl
12869s/["\\]/\\&/g
12870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12871D["\1"]=" \3\\\\\\n"\\/p
12872t cont
12873s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12874t cont
12875d
12876:cont
12877n
12878s/.\{148\}/&'"$ac_delim"'/g
12879t clear
12880:clear
12881s/\\$//
12882t bsnlc
12883s/["\\]/\\&/g; s/^/"/; s/$/"/p
12884d
12885:bsnlc
12886s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12887b cont
12888' <confdefs.h | sed '
12889s/'"$ac_delim"'/"\\\
12890"/g' >>$CONFIG_STATUS || ac_write_fail=1
12891
12892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12893 for (key in D) D_is_set[key] = 1
12894 FS = ""
12895}
12896/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12897 line = \$ 0
12898 split(line, arg, " ")
12899 if (arg[1] == "#") {
12900 defundef = arg[2]
12901 mac1 = arg[3]
12902 } else {
12903 defundef = substr(arg[1], 2)
12904 mac1 = arg[2]
12905 }
12906 split(mac1, mac2, "(") #)
12907 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012908 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012909 if (D_is_set[macro]) {
12910 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012911 print prefix "define", macro P[macro] D[macro]
12912 next
12913 } else {
12914 # Replace #undef with comments. This is necessary, for example,
12915 # in the case of _POSIX_SOURCE, which is predefined and required
12916 # on some systems where configure will not decide to define it.
12917 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012918 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012919 next
12920 }
12921 }
12922}
12923{ print }
12924_ACAWK
12925_ACEOF
12926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012927 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012928fi # test -n "$CONFIG_HEADERS"
12929
12930
12931eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12932shift
12933for ac_tag
12934do
12935 case $ac_tag in
12936 :[FHLC]) ac_mode=$ac_tag; continue;;
12937 esac
12938 case $ac_mode$ac_tag in
12939 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012940 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012941 :[FH]-) ac_tag=-:-;;
12942 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12943 esac
12944 ac_save_IFS=$IFS
12945 IFS=:
12946 set x $ac_tag
12947 IFS=$ac_save_IFS
12948 shift
12949 ac_file=$1
12950 shift
12951
12952 case $ac_mode in
12953 :L) ac_source=$1;;
12954 :[FH])
12955 ac_file_inputs=
12956 for ac_f
12957 do
12958 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012959 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012960 *) # Look for the file first in the build tree, then in the source tree
12961 # (if the path is not absolute). The absolute path cannot be DOS-style,
12962 # because $ac_f cannot contain `:'.
12963 test -f "$ac_f" ||
12964 case $ac_f in
12965 [\\/$]*) false;;
12966 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12967 esac ||
drhf922ca42015-05-14 15:39:18 +000012968 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012969 esac
12970 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012971 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012972 done
12973
12974 # Let's still pretend it is `configure' which instantiates (i.e., don't
12975 # use $as_me), people would be surprised to read:
12976 # /* config.h. Generated by config.status. */
12977 configure_input='Generated from '`
12978 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12979 `' by configure.'
12980 if test x"$ac_file" != x-; then
12981 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012983$as_echo "$as_me: creating $ac_file" >&6;}
12984 fi
12985 # Neutralize special characters interpreted by sed in replacement strings.
12986 case $configure_input in #(
12987 *\&* | *\|* | *\\* )
12988 ac_sed_conf_input=`$as_echo "$configure_input" |
12989 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12990 *) ac_sed_conf_input=$configure_input;;
12991 esac
12992
12993 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012994 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012996 esac
12997 ;;
drh71eb93e2001-09-28 01:34:43 +000012998 esac
12999
drh8b727472009-01-19 18:18:40 +000013000 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013001$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013002 X"$ac_file" : 'X\(//\)[^/]' \| \
13003 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13005$as_echo X"$ac_file" |
13006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13007 s//\1/
13008 q
13009 }
13010 /^X\(\/\/\)[^/].*/{
13011 s//\1/
13012 q
13013 }
13014 /^X\(\/\/\)$/{
13015 s//\1/
13016 q
13017 }
13018 /^X\(\/\).*/{
13019 s//\1/
13020 q
13021 }
13022 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013023 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013024 ac_builddir=.
13025
drh8b727472009-01-19 18:18:40 +000013026case "$ac_dir" in
13027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13028*)
13029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13030 # A ".." for each directory in $ac_dir_suffix.
13031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13032 case $ac_top_builddir_sub in
13033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13035 esac ;;
13036esac
13037ac_abs_top_builddir=$ac_pwd
13038ac_abs_builddir=$ac_pwd$ac_dir_suffix
13039# for backward compatibility:
13040ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013041
13042case $srcdir in
drh8b727472009-01-19 18:18:40 +000013043 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013044 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013045 ac_top_srcdir=$ac_top_builddir_sub
13046 ac_abs_top_srcdir=$ac_pwd ;;
13047 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013048 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013049 ac_top_srcdir=$srcdir
13050 ac_abs_top_srcdir=$srcdir ;;
13051 *) # Relative name.
13052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13053 ac_top_srcdir=$ac_top_build_prefix$srcdir
13054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013055esac
drh8b727472009-01-19 18:18:40 +000013056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013057
a.rottmann84e63352003-03-24 09:42:16 +000013058
drh8b727472009-01-19 18:18:40 +000013059 case $ac_mode in
13060 :F)
13061 #
13062 # CONFIG_FILE
13063 #
drh75897232000-05-29 14:26:00 +000013064
drh71eb93e2001-09-28 01:34:43 +000013065 case $INSTALL in
13066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013068 esac
mlcreech94984912008-03-04 19:03:08 +000013069_ACEOF
drh8b727472009-01-19 18:18:40 +000013070
13071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13072# If the template does not know about datarootdir, expand it.
13073# FIXME: This hack should be removed a few years after 2.60.
13074ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013075ac_sed_dataroot='
13076/datarootdir/ {
13077 p
13078 q
13079}
13080/@datadir@/p
13081/@docdir@/p
13082/@infodir@/p
13083/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013084/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013085case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13086*datarootdir*) ac_datarootdir_seen=yes;;
13087*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013089$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13090_ACEOF
13091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092 ac_datarootdir_hack='
13093 s&@datadir@&$datadir&g
13094 s&@docdir@&$docdir&g
13095 s&@infodir@&$infodir&g
13096 s&@localedir@&$localedir&g
13097 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013098 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013099esac
13100_ACEOF
13101
13102# Neutralize VPATH when `$srcdir' = `.'.
13103# Shell code in configure.ac might set extrasub.
13104# FIXME: do we really want to maintain this feature?
13105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13106ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013107$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013108_ACEOF
drh8b727472009-01-19 18:18:40 +000013109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013110:t
13111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013112s|@configure_input@|$ac_sed_conf_input|;t t
13113s&@top_builddir@&$ac_top_builddir_sub&;t t
13114s&@top_build_prefix@&$ac_top_build_prefix&;t t
13115s&@srcdir@&$ac_srcdir&;t t
13116s&@abs_srcdir@&$ac_abs_srcdir&;t t
13117s&@top_srcdir@&$ac_top_srcdir&;t t
13118s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13119s&@builddir@&$ac_builddir&;t t
13120s&@abs_builddir@&$ac_abs_builddir&;t t
13121s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13122s&@INSTALL@&$ac_INSTALL&;t t
13123$ac_datarootdir_hack
13124"
drhf922ca42015-05-14 15:39:18 +000013125eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13126 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013127
drh8b727472009-01-19 18:18:40 +000013128test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013129 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13130 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13131 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13133which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013134$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013135which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013136
drhf922ca42015-05-14 15:39:18 +000013137 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013138 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013139 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13140 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013141 esac \
drhf922ca42015-05-14 15:39:18 +000013142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013143 ;;
13144 :H)
13145 #
13146 # CONFIG_HEADER
13147 #
drh866108f2008-05-13 00:57:21 +000013148 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013149 {
13150 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13152 } >"$ac_tmp/config.h" \
13153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13154 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013156$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013157 else
drh8b727472009-01-19 18:18:40 +000013158 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013159 mv "$ac_tmp/config.h" "$ac_file" \
13160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013161 fi
13162 else
drh8b727472009-01-19 18:18:40 +000013163 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13165 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013166 fi
drh8b727472009-01-19 18:18:40 +000013167 ;;
drh866108f2008-05-13 00:57:21 +000013168
drhf922ca42015-05-14 15:39:18 +000013169 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013170$as_echo "$as_me: executing $ac_file commands" >&6;}
13171 ;;
13172 esac
drh866108f2008-05-13 00:57:21 +000013173
13174
drh8b727472009-01-19 18:18:40 +000013175 case $ac_file$ac_mode in
13176 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013177
13178 # See if we are running on zsh, and set the options which allow our
13179 # commands through without removal of \ escapes.
13180 if test -n "${ZSH_VERSION+set}" ; then
13181 setopt NO_GLOB_SUBST
13182 fi
13183
13184 cfgfile="${ofile}T"
13185 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13186 $RM "$cfgfile"
13187
13188 cat <<_LT_EOF >> "$cfgfile"
13189#! $SHELL
13190
13191# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13192# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13193# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13194# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13195#
13196# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13197# 2006, 2007, 2008 Free Software Foundation, Inc.
13198# Written by Gordon Matzigkeit, 1996
13199#
13200# This file is part of GNU Libtool.
13201#
13202# GNU Libtool is free software; you can redistribute it and/or
13203# modify it under the terms of the GNU General Public License as
13204# published by the Free Software Foundation; either version 2 of
13205# the License, or (at your option) any later version.
13206#
13207# As a special exception to the GNU General Public License,
13208# if you distribute this file as part of a program or library that
13209# is built using GNU Libtool, you may include this file under the
13210# same distribution terms that you use for the rest of that program.
13211#
13212# GNU Libtool is distributed in the hope that it will be useful,
13213# but WITHOUT ANY WARRANTY; without even the implied warranty of
13214# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13215# GNU General Public License for more details.
13216#
13217# You should have received a copy of the GNU General Public License
13218# along with GNU Libtool; see the file COPYING. If not, a copy
13219# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13220# obtained by writing to the Free Software Foundation, Inc.,
13221# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13222
13223
13224# The names of the tagged configurations supported by this script.
13225available_tags=""
13226
13227# ### BEGIN LIBTOOL CONFIG
13228
13229# Which release of libtool.m4 was used?
13230macro_version=$macro_version
13231macro_revision=$macro_revision
13232
13233# Whether or not to build shared libraries.
13234build_libtool_libs=$enable_shared
13235
13236# Whether or not to build static libraries.
13237build_old_libs=$enable_static
13238
13239# What type of objects to build.
13240pic_mode=$pic_mode
13241
13242# Whether or not to optimize for fast installation.
13243fast_install=$enable_fast_install
13244
13245# The host system.
13246host_alias=$host_alias
13247host=$host
13248host_os=$host_os
13249
13250# The build system.
13251build_alias=$build_alias
13252build=$build
13253build_os=$build_os
13254
13255# A sed program that does not truncate output.
13256SED=$lt_SED
13257
13258# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13259Xsed="\$SED -e 1s/^X//"
13260
13261# A grep program that handles long lines.
13262GREP=$lt_GREP
13263
13264# An ERE matcher.
13265EGREP=$lt_EGREP
13266
13267# A literal string matcher.
13268FGREP=$lt_FGREP
13269
13270# A BSD- or MS-compatible name lister.
13271NM=$lt_NM
13272
13273# Whether we need soft or hard links.
13274LN_S=$lt_LN_S
13275
13276# What is the maximum length of a command?
13277max_cmd_len=$max_cmd_len
13278
13279# Object file suffix (normally "o").
13280objext=$ac_objext
13281
13282# Executable file suffix (normally "").
13283exeext=$exeext
13284
13285# whether the shell understands "unset".
13286lt_unset=$lt_unset
13287
13288# turn spaces into newlines.
13289SP2NL=$lt_lt_SP2NL
13290
13291# turn newlines into spaces.
13292NL2SP=$lt_lt_NL2SP
13293
13294# How to create reloadable object files.
13295reload_flag=$lt_reload_flag
13296reload_cmds=$lt_reload_cmds
13297
vapier6acb2cf2009-01-28 04:46:28 +000013298# An object symbol dumper.
13299OBJDUMP=$lt_OBJDUMP
13300
mlcreech636a9952008-05-05 22:52:56 +000013301# Method to check whether dependent libraries are shared objects.
13302deplibs_check_method=$lt_deplibs_check_method
13303
13304# Command to use when deplibs_check_method == "file_magic".
13305file_magic_cmd=$lt_file_magic_cmd
13306
13307# The archiver.
13308AR=$lt_AR
13309AR_FLAGS=$lt_AR_FLAGS
13310
13311# A symbol stripping program.
13312STRIP=$lt_STRIP
13313
13314# Commands used to install an old-style archive.
13315RANLIB=$lt_RANLIB
13316old_postinstall_cmds=$lt_old_postinstall_cmds
13317old_postuninstall_cmds=$lt_old_postuninstall_cmds
13318
13319# A C compiler.
13320LTCC=$lt_CC
13321
13322# LTCC compiler flags.
13323LTCFLAGS=$lt_CFLAGS
13324
13325# Take the output of nm and produce a listing of raw symbols and C names.
13326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13327
13328# Transform the output of nm in a proper C declaration.
13329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13330
13331# Transform the output of nm in a C name address pair.
13332global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13333
13334# Transform the output of nm in a C name address pair when lib prefix is needed.
13335global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13336
13337# The name of the directory that contains temporary libtool files.
13338objdir=$objdir
13339
13340# Shell to use when invoking shell scripts.
13341SHELL=$lt_SHELL
13342
13343# An echo program that does not interpret backslashes.
13344ECHO=$lt_ECHO
13345
13346# Used to examine libraries when file_magic_cmd begins with "file".
13347MAGIC_CMD=$MAGIC_CMD
13348
13349# Must we lock files when doing compilation?
13350need_locks=$lt_need_locks
13351
13352# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13353DSYMUTIL=$lt_DSYMUTIL
13354
13355# Tool to change global to local symbols on Mac OS X.
13356NMEDIT=$lt_NMEDIT
13357
13358# Tool to manipulate fat objects and archives on Mac OS X.
13359LIPO=$lt_LIPO
13360
13361# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13362OTOOL=$lt_OTOOL
13363
13364# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13365OTOOL64=$lt_OTOOL64
13366
13367# Old archive suffix (normally "a").
13368libext=$libext
13369
13370# Shared library suffix (normally ".so").
13371shrext_cmds=$lt_shrext_cmds
13372
13373# The commands to extract the exported symbol list from a shared archive.
13374extract_expsyms_cmds=$lt_extract_expsyms_cmds
13375
13376# Variables whose values should be saved in libtool wrapper scripts and
13377# restored at link time.
13378variables_saved_for_relink=$lt_variables_saved_for_relink
13379
13380# Do we need the "lib" prefix for modules?
13381need_lib_prefix=$need_lib_prefix
13382
13383# Do we need a version for libraries?
13384need_version=$need_version
13385
13386# Library versioning type.
13387version_type=$version_type
13388
13389# Shared library runtime path variable.
13390runpath_var=$runpath_var
13391
13392# Shared library path variable.
13393shlibpath_var=$shlibpath_var
13394
13395# Is shlibpath searched before the hard-coded library search path?
13396shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13397
13398# Format of library name prefix.
13399libname_spec=$lt_libname_spec
13400
13401# List of archive names. First name is the real one, the rest are links.
13402# The last name is the one that the linker finds with -lNAME
13403library_names_spec=$lt_library_names_spec
13404
13405# The coded name of the library, if different from the real name.
13406soname_spec=$lt_soname_spec
13407
13408# Command to use after installation of a shared archive.
13409postinstall_cmds=$lt_postinstall_cmds
13410
13411# Command to use after uninstallation of a shared archive.
13412postuninstall_cmds=$lt_postuninstall_cmds
13413
13414# Commands used to finish a libtool library installation in a directory.
13415finish_cmds=$lt_finish_cmds
13416
13417# As "finish_cmds", except a single script fragment to be evaled but
13418# not shown.
13419finish_eval=$lt_finish_eval
13420
13421# Whether we should hardcode library paths into libraries.
13422hardcode_into_libs=$hardcode_into_libs
13423
13424# Compile-time system search path for libraries.
13425sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13426
13427# Run-time system search path for libraries.
13428sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13429
13430# Whether dlopen is supported.
13431dlopen_support=$enable_dlopen
13432
13433# Whether dlopen of programs is supported.
13434dlopen_self=$enable_dlopen_self
13435
13436# Whether dlopen of statically linked programs is supported.
13437dlopen_self_static=$enable_dlopen_self_static
13438
13439# Commands to strip libraries.
13440old_striplib=$lt_old_striplib
13441striplib=$lt_striplib
13442
13443
13444# The linker used to build libraries.
13445LD=$lt_LD
13446
13447# Commands used to build an old-style archive.
13448old_archive_cmds=$lt_old_archive_cmds
13449
13450# A language specific compiler.
13451CC=$lt_compiler
13452
13453# Is the compiler the GNU compiler?
13454with_gcc=$GCC
13455
13456# Compiler flag to turn off builtin functions.
13457no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13458
13459# How to pass a linker flag through the compiler.
13460wl=$lt_lt_prog_compiler_wl
13461
13462# Additional compiler flags for building library objects.
13463pic_flag=$lt_lt_prog_compiler_pic
13464
13465# Compiler flag to prevent dynamic linking.
13466link_static_flag=$lt_lt_prog_compiler_static
13467
13468# Does compiler simultaneously support -c and -o options?
13469compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13470
13471# Whether or not to add -lc for building shared libraries.
13472build_libtool_need_lc=$archive_cmds_need_lc
13473
13474# Whether or not to disallow shared libs when runtime libs are static.
13475allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13476
13477# Compiler flag to allow reflexive dlopens.
13478export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13479
13480# Compiler flag to generate shared objects directly from archives.
13481whole_archive_flag_spec=$lt_whole_archive_flag_spec
13482
13483# Whether the compiler copes with passing no objects directly.
13484compiler_needs_object=$lt_compiler_needs_object
13485
13486# Create an old-style archive from a shared archive.
13487old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13488
13489# Create a temporary old-style archive to link instead of a shared archive.
13490old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13491
13492# Commands used to build a shared archive.
13493archive_cmds=$lt_archive_cmds
13494archive_expsym_cmds=$lt_archive_expsym_cmds
13495
13496# Commands used to build a loadable module if different from building
13497# a shared archive.
13498module_cmds=$lt_module_cmds
13499module_expsym_cmds=$lt_module_expsym_cmds
13500
13501# Whether we are building with GNU ld or not.
13502with_gnu_ld=$lt_with_gnu_ld
13503
13504# Flag that allows shared libraries with undefined symbols to be built.
13505allow_undefined_flag=$lt_allow_undefined_flag
13506
13507# Flag that enforces no undefined symbols.
13508no_undefined_flag=$lt_no_undefined_flag
13509
13510# Flag to hardcode \$libdir into a binary during linking.
13511# This must work even if \$libdir does not exist
13512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13513
13514# If ld is used when linking, flag to hardcode \$libdir into a binary
13515# during linking. This must work even if \$libdir does not exist.
13516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13517
13518# Whether we need a single "-rpath" flag with a separated argument.
13519hardcode_libdir_separator=$lt_hardcode_libdir_separator
13520
13521# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13522# DIR into the resulting binary.
13523hardcode_direct=$hardcode_direct
13524
13525# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13526# DIR into the resulting binary and the resulting library dependency is
13527# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13528# library is relocated.
13529hardcode_direct_absolute=$hardcode_direct_absolute
13530
13531# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13532# into the resulting binary.
13533hardcode_minus_L=$hardcode_minus_L
13534
13535# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13536# into the resulting binary.
13537hardcode_shlibpath_var=$hardcode_shlibpath_var
13538
13539# Set to "yes" if building a shared library automatically hardcodes DIR
13540# into the library and all subsequent libraries and executables linked
13541# against it.
13542hardcode_automatic=$hardcode_automatic
13543
13544# Set to yes if linker adds runtime paths of dependent libraries
13545# to runtime path list.
13546inherit_rpath=$inherit_rpath
13547
13548# Whether libtool must link a program against all its dependency libraries.
13549link_all_deplibs=$link_all_deplibs
13550
13551# Fix the shell variable \$srcfile for the compiler.
13552fix_srcfile_path=$lt_fix_srcfile_path
13553
13554# Set to "yes" if exported symbols are required.
13555always_export_symbols=$always_export_symbols
13556
13557# The commands to list exported symbols.
13558export_symbols_cmds=$lt_export_symbols_cmds
13559
13560# Symbols that should not be listed in the preloaded symbols.
13561exclude_expsyms=$lt_exclude_expsyms
13562
13563# Symbols that must always be exported.
13564include_expsyms=$lt_include_expsyms
13565
13566# Commands necessary for linking programs (against libraries) with templates.
13567prelink_cmds=$lt_prelink_cmds
13568
13569# Specify filename containing input files.
13570file_list_spec=$lt_file_list_spec
13571
13572# How to hardcode a shared library path into an executable.
13573hardcode_action=$hardcode_action
13574
13575# ### END LIBTOOL CONFIG
13576
13577_LT_EOF
13578
13579 case $host_os in
13580 aix3*)
13581 cat <<\_LT_EOF >> "$cfgfile"
13582# AIX sometimes has problems with the GCC collect2 program. For some
13583# reason, if we set the COLLECT_NAMES environment variable, the problems
13584# vanish in a puff of smoke.
13585if test "X${COLLECT_NAMES+set}" != Xset; then
13586 COLLECT_NAMES=
13587 export COLLECT_NAMES
13588fi
13589_LT_EOF
13590 ;;
13591 esac
13592
13593
13594ltmain="$ac_aux_dir/ltmain.sh"
13595
13596
13597 # We use sed instead of cat because bash on DJGPP gets confused if
13598 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13599 # text mode, it properly converts lines to CR/LF. This bash problem
13600 # is reportedly fixed, but why not run on old versions too?
13601 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13602 || (rm -f "$cfgfile"; exit 1)
13603
13604 case $xsi_shell in
13605 yes)
13606 cat << \_LT_EOF >> "$cfgfile"
13607
13608# func_dirname file append nondir_replacement
13609# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13610# otherwise set result to NONDIR_REPLACEMENT.
13611func_dirname ()
13612{
13613 case ${1} in
13614 */*) func_dirname_result="${1%/*}${2}" ;;
13615 * ) func_dirname_result="${3}" ;;
13616 esac
13617}
13618
13619# func_basename file
13620func_basename ()
13621{
13622 func_basename_result="${1##*/}"
13623}
13624
13625# func_dirname_and_basename file append nondir_replacement
13626# perform func_basename and func_dirname in a single function
13627# call:
13628# dirname: Compute the dirname of FILE. If nonempty,
13629# add APPEND to the result, otherwise set result
13630# to NONDIR_REPLACEMENT.
13631# value returned in "$func_dirname_result"
13632# basename: Compute filename of FILE.
13633# value retuned in "$func_basename_result"
13634# Implementation must be kept synchronized with func_dirname
13635# and func_basename. For efficiency, we do not delegate to
13636# those functions but instead duplicate the functionality here.
13637func_dirname_and_basename ()
13638{
13639 case ${1} in
13640 */*) func_dirname_result="${1%/*}${2}" ;;
13641 * ) func_dirname_result="${3}" ;;
13642 esac
13643 func_basename_result="${1##*/}"
13644}
13645
13646# func_stripname prefix suffix name
13647# strip PREFIX and SUFFIX off of NAME.
13648# PREFIX and SUFFIX must not contain globbing or regex special
13649# characters, hashes, percent signs, but SUFFIX may contain a leading
13650# dot (in which case that matches only a dot).
13651func_stripname ()
13652{
13653 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13654 # positional parameters, so assign one to ordinary parameter first.
13655 func_stripname_result=${3}
13656 func_stripname_result=${func_stripname_result#"${1}"}
13657 func_stripname_result=${func_stripname_result%"${2}"}
13658}
13659
13660# func_opt_split
13661func_opt_split ()
13662{
13663 func_opt_split_opt=${1%%=*}
13664 func_opt_split_arg=${1#*=}
13665}
13666
13667# func_lo2o object
13668func_lo2o ()
13669{
13670 case ${1} in
13671 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13672 *) func_lo2o_result=${1} ;;
13673 esac
13674}
13675
13676# func_xform libobj-or-source
13677func_xform ()
13678{
13679 func_xform_result=${1%.*}.lo
13680}
13681
13682# func_arith arithmetic-term...
13683func_arith ()
13684{
13685 func_arith_result=$(( $* ))
13686}
13687
13688# func_len string
13689# STRING may not start with a hyphen.
13690func_len ()
13691{
13692 func_len_result=${#1}
13693}
13694
13695_LT_EOF
13696 ;;
13697 *) # Bourne compatible functions.
13698 cat << \_LT_EOF >> "$cfgfile"
13699
13700# func_dirname file append nondir_replacement
13701# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13702# otherwise set result to NONDIR_REPLACEMENT.
13703func_dirname ()
13704{
13705 # Extract subdirectory from the argument.
13706 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13707 if test "X$func_dirname_result" = "X${1}"; then
13708 func_dirname_result="${3}"
13709 else
13710 func_dirname_result="$func_dirname_result${2}"
13711 fi
13712}
13713
13714# func_basename file
13715func_basename ()
13716{
13717 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13718}
13719
13720
13721# func_stripname prefix suffix name
13722# strip PREFIX and SUFFIX off of NAME.
13723# PREFIX and SUFFIX must not contain globbing or regex special
13724# characters, hashes, percent signs, but SUFFIX may contain a leading
13725# dot (in which case that matches only a dot).
13726# func_strip_suffix prefix name
13727func_stripname ()
13728{
13729 case ${2} in
13730 .*) func_stripname_result=`$ECHO "X${3}" \
13731 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13732 *) func_stripname_result=`$ECHO "X${3}" \
13733 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13734 esac
13735}
13736
13737# sed scripts:
13738my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13739my_sed_long_arg='1s/^-[^=]*=//'
13740
13741# func_opt_split
13742func_opt_split ()
13743{
13744 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13745 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13746}
13747
13748# func_lo2o object
13749func_lo2o ()
13750{
13751 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13752}
13753
13754# func_xform libobj-or-source
13755func_xform ()
13756{
13757 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13758}
13759
13760# func_arith arithmetic-term...
13761func_arith ()
13762{
13763 func_arith_result=`expr "$@"`
13764}
13765
13766# func_len string
13767# STRING may not start with a hyphen.
13768func_len ()
13769{
13770 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13771}
13772
13773_LT_EOF
13774esac
13775
13776case $lt_shell_append in
13777 yes)
13778 cat << \_LT_EOF >> "$cfgfile"
13779
13780# func_append var value
13781# Append VALUE to the end of shell variable VAR.
13782func_append ()
13783{
13784 eval "$1+=\$2"
13785}
13786_LT_EOF
13787 ;;
13788 *)
13789 cat << \_LT_EOF >> "$cfgfile"
13790
13791# func_append var value
13792# Append VALUE to the end of shell variable VAR.
13793func_append ()
13794{
13795 eval "$1=\$$1\$2"
13796}
13797
13798_LT_EOF
13799 ;;
13800 esac
13801
13802
13803 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13804 || (rm -f "$cfgfile"; exit 1)
13805
13806 mv -f "$cfgfile" "$ofile" ||
13807 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13808 chmod +x "$ofile"
13809
13810 ;;
mlcreech94984912008-03-04 19:03:08 +000013811
drh8b727472009-01-19 18:18:40 +000013812 esac
13813done # for ac_tag
13814
drh71eb93e2001-09-28 01:34:43 +000013815
drhf922ca42015-05-14 15:39:18 +000013816as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013817_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013818ac_clean_files=$ac_clean_files_save
13819
drh8b727472009-01-19 18:18:40 +000013820test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013822
a.rottmann84e63352003-03-24 09:42:16 +000013823
drh71eb93e2001-09-28 01:34:43 +000013824# configure is writing to config.log, and then calls config.status.
13825# config.status does its own redirection, appending to config.log.
13826# Unfortunately, on DOS this fails, as config.log is still kept open
13827# by configure, so config.status won't be able to write to it; its
13828# output is simply discarded. So we exec the FD to /dev/null,
13829# effectively closing config.log, so it can be properly (re)opened and
13830# appended to by config.status. When coming back to configure, we
13831# need to make the FD available again.
13832if test "$no_create" != yes; then
13833 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013834 ac_config_status_args=
13835 test "$silent" = yes &&
13836 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013837 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013839 exec 5>>config.log
13840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13841 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013842 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013843fi
drh8b727472009-01-19 18:18:40 +000013844if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13846$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013847fi
drh63a49ce2017-01-02 19:10:14 +000013848