blob: c923417532fc428ac645e5b5b741b9d6ffb1fd30 [file] [log] [blame]
Iain Buclawb4c522f2018-10-28 19:51:47 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Joseph Myers22e05272018-10-31 17:03:16 +00003# Generated by GNU Autoconf 2.69 for package-unused version-unused.
Iain Buclawb4c522f2018-10-28 19:51:47 +00004#
Joseph Myers22e05272018-10-31 17:03:16 +00005#
Rainer Orth0b6e3122019-02-14 17:47:49 +00006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Joseph Myers22e05272018-10-31 17:03:16 +00007#
Iain Buclawb4c522f2018-10-28 19:51:47 +00008#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_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
41# 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
48 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;
58 case $arg in #(
59 *"$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
80
81
82# 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.
Joseph Myers22e05272018-10-31 17:03:16 +000090as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000091case $0 in #((
92 *[\\/]* ) 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=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$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
111 exit 1
112fi
113
114# 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 || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Joseph Myers22e05272018-10-31 17:03:16 +0000135# 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;}
Iain Buclawb4c522f2018-10-28 19:51:47 +0000160if 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
Joseph Myers22e05272018-10-31 17:03:16 +0000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000195 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
Rainer Orth235d1c42019-04-14 09:30:42 +0000199test \$(( 1 + 1 )) = 2 || exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +0000200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
Rainer Orth235d1c42019-04-14 09:30:42 +0000207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
Joseph Myers22e05272018-10-31 17:03:16 +0000247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
Iain Buclawb4c522f2018-10-28 19:51:47 +0000266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +0000363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000364
365
366} # as_fn_mkdir_p
Joseph Myers22e05272018-10-31 17:03:16 +0000367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +0000375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
Joseph Myers22e05272018-10-31 17:03:16 +0000411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +0000413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +0000415# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +0000416as_fn_error ()
417{
Joseph Myers22e05272018-10-31 17:03:16 +0000418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +0000422 fi
Joseph Myers22e05272018-10-31 17:03:16 +0000423 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +0000424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
Joseph Myers22e05272018-10-31 17:03:16 +0000496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
Iain Buclawb4c522f2018-10-28 19:51:47 +0000500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +0000534 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +0000535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +0000536 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
Joseph Myers22e05272018-10-31 17:03:16 +0000540 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000541 fi
542else
Joseph Myers22e05272018-10-31 17:03:16 +0000543 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
Joseph Myers22e05272018-10-31 17:03:16 +0000555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +0000557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
Joseph Myers22e05272018-10-31 17:03:16 +0000567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
Iain Buclawb4c522f2018-10-28 19:51:47 +0000569
570# Name of the host.
Joseph Myers22e05272018-10-31 17:03:16 +0000571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Iain Buclawb4c522f2018-10-28 19:51:47 +0000572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libphobos'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libdruntime/gcc/attribute.d"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
Iain Buclaw38c30172020-03-29 23:54:01 +0200636WARN_DFLAGS
Iain Buclaw85041a52018-11-28 17:54:07 +0000637libtool_VERSION
Iain Buclawb4c522f2018-10-28 19:51:47 +0000638SPEC_PHOBOS_DEPS
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200639CHECKING_DFLAGS
Iain Buclaw261bd782020-03-25 09:38:58 +0100640ENABLE_LIBDRUNTIME_ONLY_FALSE
641ENABLE_LIBDRUNTIME_ONLY_TRUE
Rainer Orthbca0a322019-05-07 10:38:45 +0000642ENABLE_LIBPHOBOS_FALSE
643ENABLE_LIBPHOBOS_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000644gdc_include_dir
Iain Buclawac677522018-11-02 08:29:50 +0000645libphobos_toolexeclibdir
646libphobos_toolexecdir
Iain Buclawb4c522f2018-10-28 19:51:47 +0000647gcc_version
Iain Buclawbb503122019-04-12 20:13:34 +0000648LIBZ
Iain Buclawb4c522f2018-10-28 19:51:47 +0000649BACKTRACE_SUPPORTS_THREADS
650BACKTRACE_USES_MALLOC
651BACKTRACE_SUPPORTED
652LIBBACKTRACE
653LIBATOMIC
654DCFG_HAVE_LIBATOMIC
655DCFG_HAVE_64BIT_ATOMICS
656DCFG_HAVE_ATOMIC_BUILTINS
Johannes Pfau36d7f152019-02-18 23:29:39 +0000657DCFG_HAVE_QSORT_R
Rainer Orthba838aa2019-04-14 09:24:26 +0000658OS_LINK_SPEC
Rainer Orth235d1c42019-04-14 09:30:42 +0000659DCFG_DLPI_TLS_MODID
Rainer Orth0b6e3122019-02-14 17:47:49 +0000660DRUNTIME_OS_MINFO_BRACKETING_FALSE
661DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000662DCFG_MINFO_BRACKETING
663DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665DCFG_ARM_EABI_UNWINDER
666DCFG_THREAD_MODEL
Iain Buclaw72c136c2020-04-08 22:52:05 +0200667DRUNTIME_OS_POSIX_FALSE
668DRUNTIME_OS_POSIX_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000669DRUNTIME_OS_SOLARIS_FALSE
670DRUNTIME_OS_SOLARIS_TRUE
671DRUNTIME_OS_MINGW_FALSE
672DRUNTIME_OS_MINGW_TRUE
673DRUNTIME_OS_LINUX_FALSE
674DRUNTIME_OS_LINUX_TRUE
675DRUNTIME_OS_OPENBSD_FALSE
676DRUNTIME_OS_OPENBSD_TRUE
677DRUNTIME_OS_NETBSD_FALSE
678DRUNTIME_OS_NETBSD_TRUE
679DRUNTIME_OS_FREEBSD_FALSE
680DRUNTIME_OS_FREEBSD_TRUE
681DRUNTIME_OS_DRAGONFLYBSD_FALSE
682DRUNTIME_OS_DRAGONFLYBSD_TRUE
683DRUNTIME_OS_DARWIN_FALSE
684DRUNTIME_OS_DARWIN_TRUE
685DRUNTIME_OS_ANDROID_FALSE
686DRUNTIME_OS_ANDROID_TRUE
687DRUNTIME_OS_AIX_FALSE
688DRUNTIME_OS_AIX_TRUE
Robin Dapp88e508f2020-04-07 21:05:38 +0200689DRUNTIME_CPU_S390_FALSE
690DRUNTIME_CPU_S390_TRUE
691DRUNTIME_CPU_SYSTEMZ_FALSE
692DRUNTIME_CPU_SYSTEMZ_TRUE
Iain Buclaw2493e712019-04-24 22:46:59 +0000693DRUNTIME_CPU_X86_FALSE
694DRUNTIME_CPU_X86_TRUE
695DRUNTIME_CPU_POWERPC64_FALSE
696DRUNTIME_CPU_POWERPC64_TRUE
697DRUNTIME_CPU_POWERPC_FALSE
698DRUNTIME_CPU_POWERPC_TRUE
699DRUNTIME_CPU_MIPS_FALSE
700DRUNTIME_CPU_MIPS_TRUE
701DRUNTIME_CPU_ARM_FALSE
702DRUNTIME_CPU_ARM_TRUE
703DRUNTIME_CPU_AARCH64_FALSE
704DRUNTIME_CPU_AARCH64_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000705libphobos_srcdir
706libphobos_builddir
707get_gcc_base_ver
708phobos_compiler_shared_flag
709phobos_compiler_pic_flag
Iain Buclawb4c522f2018-10-28 19:51:47 +0000710OTOOL64
711OTOOL
712LIPO
713NMEDIT
714DSYMUTIL
715OBJDUMP
716LN_S
717NM
718ac_ct_DUMPBIN
719DUMPBIN
720LD
721FGREP
Iain Buclawb4c522f2018-10-28 19:51:47 +0000722SED
723LIBTOOL
724CFLAGS_FOR_BUILD
725CC_FOR_BUILD
726AR
727RANLIB
728MAINT
729MAINTAINER_MODE_FALSE
730MAINTAINER_MODE_TRUE
731GDCFLAGS
732GDC
733CCASFLAGS
734CCAS
Joseph Myers22e05272018-10-31 17:03:16 +0000735AM_BACKSLASH
736AM_DEFAULT_VERBOSITY
737AM_DEFAULT_V
738AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000739am__untar
740am__tar
741AMTAR
742am__leading_dot
743SET_MAKE
744AWK
745mkdir_p
746MKDIR_P
747INSTALL_STRIP_PROGRAM
748STRIP
749install_sh
750MAKEINFO
751AUTOHEADER
752AUTOMAKE
753AUTOCONF
754ACLOCAL
755VERSION
756PACKAGE
757CYGPATH_W
758am__isrc
759INSTALL_DATA
760INSTALL_SCRIPT
761INSTALL_PROGRAM
Rainer Orth235d1c42019-04-14 09:30:42 +0000762EGREP
763GREP
764CPP
765OBJEXT
766EXEEXT
767ac_ct_CC
768CPPFLAGS
769LDFLAGS
770CFLAGS
771CC
Iain Buclawb4c522f2018-10-28 19:51:47 +0000772target_os
773target_vendor
774target_cpu
775target
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784multi_basedir
785target_alias
786host_alias
787build_alias
788LIBS
789ECHO_T
790ECHO_N
791ECHO_C
792DEFS
793mandir
794localedir
795libdir
796psdir
797pdfdir
798dvidir
799htmldir
800infodir
801docdir
802oldincludedir
803includedir
804localstatedir
805sharedstatedir
806sysconfdir
807datadir
808datarootdir
809libexecdir
810sbindir
811bindir
812program_transform_name
813prefix
814exec_prefix
815PACKAGE_URL
816PACKAGE_BUGREPORT
817PACKAGE_STRING
818PACKAGE_VERSION
819PACKAGE_TARNAME
820PACKAGE_NAME
821PATH_SEPARATOR
822SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000823ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000824ac_user_opts='
825enable_option_checking
826enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000827enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000828enable_maintainer_mode
829enable_shared
830enable_static
831with_pic
832enable_fast_install
833with_gnu_ld
834enable_libtool_lock
835with_gcc_major_version_only
836enable_werror
Iain Buclawb4c522f2018-10-28 19:51:47 +0000837with_libatomic
838with_libbacktrace
839with_target_system_zlib
840with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000841enable_version_specific_runtime_libs
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +0000842with_toolexeclibdir
Rainer Orthbca0a322019-05-07 10:38:45 +0000843enable_libphobos
Iain Buclaw371d1012020-04-20 18:50:36 +0200844with_libphobos_druntime_only
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200845enable_libphobos_checking
Iain Buclawb4c522f2018-10-28 19:51:47 +0000846'
847 ac_precious_vars='build_alias
848host_alias
849target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000850CC
851CFLAGS
852LDFLAGS
853LIBS
854CPPFLAGS
855CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894includedir='${prefix}/include'
895oldincludedir='/usr/include'
896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897infodir='${datarootdir}/info'
898htmldir='${docdir}'
899dvidir='${docdir}'
900pdfdir='${docdir}'
901psdir='${docdir}'
902libdir='${exec_prefix}/lib'
903localedir='${datarootdir}/locale'
904mandir='${datarootdir}/man'
905
906ac_prev=
907ac_dashdash=
908for ac_option
909do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000921 esac
922
923 # Accept the important Cygnus configure options, so we can diagnose typos.
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000965 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000991 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996"enable_$ac_useropt"
997"*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 ac_prev=sbindir ;;
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 | --sbi=* | --sb=*)
1150 sbindir=$ac_optarg ;;
1151
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1155 | --sha | --sh)
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 | --sha=* | --sh=*)
1161 sharedstatedir=$ac_optarg ;;
1162
1163 -site | --site | --sit)
1164 ac_prev=site ;;
1165 -site=* | --site=* | --sit=*)
1166 site=$ac_optarg ;;
1167
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 ac_prev=srcdir ;;
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1172
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1179
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1184
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 verbose=yes ;;
1187
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1190
1191 -with-* | --with-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001195 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1206
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001211 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216"with_$ac_useropt"
1217"*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=no ;;
1222
1223 --x)
1224 # Obsolete; use --with-x.
1225 with_x=yes ;;
1226
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1233
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1240
Joseph Myers22e05272018-10-31 17:03:16 +00001241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001243 ;;
1244
1245 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001251 esac
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1254
1255 *)
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001261 ;;
1262
1263 esac
1264done
1265
1266if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001268 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001269fi
1270
1271if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1273 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 esac
1277fi
1278
1279# Check all directory arguments for consistency.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001283 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001284do
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1287 case $ac_val in
1288 */ )
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1291 esac
1292 # Be sure to have absolute directory names.
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314fi
1315
1316ac_tool_prefix=
1317test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319test "$silent" = yes && exec 6>/dev/null
1320
1321
1322ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323ac_ls_di=`ls -di .` &&
1324ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001325 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001326test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001327 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001328
1329
1330# Find the source files, if location was not specified.
1331if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339$as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361else
1362 ac_srcdir_defaulted=no
1363fi
1364if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001410 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 --target=TARGET configure for building compilers for TARGET [HOST]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of package-unused version-unused:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-werror turns on -Werror [default=no]
Iain Buclawac677522018-11-02 08:29:50 +00001487 --enable-version-specific-runtime-libs
1488 Specify that runtime libraries should be installed
1489 in a compiler-specific directory
Rainer Orthbca0a322019-05-07 10:38:45 +00001490 --enable-libphobos Enable libphobos
Iain Buclawc0dbfbd2020-04-09 00:41:14 +02001491 --enable-libphobos-checking[=LIST]
1492 enable expensive run-time checks. With LIST, enable
1493 only specific categories of checks. Categories are:
1494 yes,no,all,none,release. Flags are: assert or other
1495 strings
Iain Buclawb4c522f2018-10-28 19:51:47 +00001496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-gcc-major-version-only
1504 use only GCC major number in filesystem paths
1505 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1506 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1507 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001508 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001509 use installed libz (default: no)
1510 --with-cross-host=HOST configuring with a cross compiler
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +00001511 --with-toolexeclibdir=DIR
1512 install libraries built with a cross compiler within
1513 DIR
Iain Buclaw261bd782020-03-25 09:38:58 +01001514 --with-libphobos-druntime-only={yes,no,auto}
1515 build only the druntime library (default: auto)
Iain Buclawb4c522f2018-10-28 19:51:47 +00001516
1517Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001524 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001525 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001526 CCAS assembler compiler command (defaults to CC)
1527 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1528 GDC D compiler command
1529 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001530
1531Use these variables to override the choices made by `configure' or to help
1532it to find libraries and programs with nonstandard names/locations.
1533
1534Report bugs to the package provider.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596 cat <<\_ACEOF
1597package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001598generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001599
Rainer Orth0b6e3122019-02-14 17:47:49 +00001600Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
1604 exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
1611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
Joseph Myers22e05272018-10-31 17:03:16 +00001644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001646
1647} # ac_fn_c_try_compile
1648
Iain Buclawb4c522f2018-10-28 19:51:47 +00001649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001670 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675else
1676 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680fi
Joseph Myers22e05272018-10-31 17:03:16 +00001681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001683
1684} # ac_fn_c_try_cpp
1685
Iain Buclawb4c522f2018-10-28 19:51:47 +00001686# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687# -------------------------------------------------------
1688# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689# the include files in INCLUDES and setting the cache variable VAR
1690# accordingly.
1691ac_fn_c_check_header_mongrel ()
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001694 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001697if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001698 $as_echo_n "(cached) " >&6
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703else
1704 # Is the header compilable?
1705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706$as_echo_n "checking $2 usability... " >&6; }
1707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1714else
1715 ac_header_compiler=no
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719$as_echo "$ac_header_compiler" >&6; }
1720
1721# Is the header present?
1722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723$as_echo_n "checking $2 presence... " >&6; }
1724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726#include <$2>
1727_ACEOF
1728if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1730else
1731 ac_header_preproc=no
1732fi
Joseph Myers22e05272018-10-31 17:03:16 +00001733rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735$as_echo "$ac_header_preproc" >&6; }
1736
1737# So? What about this header?
1738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739 yes:no: )
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744 ;;
1745 no:yes:* )
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 ;;
1757esac
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001760if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001761 $as_echo_n "(cached) " >&6
1762else
1763 eval "$3=\$ac_header_compiler"
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
1768fi
Joseph Myers22e05272018-10-31 17:03:16 +00001769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001770
1771} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001772
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=$ac_status
1808fi
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_run
1814
1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists and can be compiled using the include files in
1818# INCLUDES, setting the cache variable VAR accordingly.
1819ac_fn_c_check_header_compile ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833 eval "$3=yes"
1834else
1835 eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838fi
1839eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_c_check_header_compile
1845
1846# ac_fn_d_try_compile LINENO
1847# --------------------------
1848# Try to compile conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_d_try_compile ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1854case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_d_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1872 ac_retval=0
1873else
1874 $as_echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878fi
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1881
1882} # ac_fn_d_try_compile
1883
1884# ac_fn_c_try_link LINENO
1885# -----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded.
1887ac_fn_c_try_link ()
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914else
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_link
1929
1930# ac_fn_c_check_func LINENO FUNC VAR
1931# ----------------------------------
1932# Tests whether FUNC exists, setting the cache variable VAR accordingly
1933ac_fn_c_check_func ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945#define $2 innocuous_$2
1946
1947/* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1951
1952#ifdef __STDC__
1953# include <limits.h>
1954#else
1955# include <assert.h>
1956#endif
1957
1958#undef $2
1959
1960/* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1963#ifdef __cplusplus
1964extern "C"
1965#endif
1966char $2 ();
1967/* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970#if defined __stub_$2 || defined __stub___$2
1971choke me
1972#endif
1973
1974int
1975main ()
1976{
1977return $2 ();
1978 ;
1979 return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_link "$LINENO"; then :
1983 eval "$3=yes"
1984else
1985 eval "$3=no"
1986fi
1987rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_func
1996
1997# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1998# ----------------------------------------------------
1999# Tries to find if the field MEMBER exists in type AGGR, after including
2000# INCLUDES, setting cache variable VAR accordingly.
2001ac_fn_c_check_member ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2005$as_echo_n "checking for $2.$3... " >&6; }
2006if eval \${$4+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011$5
2012int
2013main ()
2014{
2015static $2 ac_aggr;
2016if (ac_aggr.$3)
2017return 0;
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023 eval "$4=yes"
2024else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027$5
2028int
2029main ()
2030{
2031static $2 ac_aggr;
2032if (sizeof ac_aggr.$3)
2033return 0;
2034 ;
2035 return 0;
2036}
2037_ACEOF
2038if ac_fn_c_try_compile "$LINENO"; then :
2039 eval "$4=yes"
2040else
2041 eval "$4=no"
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047eval ac_res=\$$4
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052} # ac_fn_c_check_member
2053
2054# ac_fn_d_try_link LINENO
2055# -----------------------
2056# Try to link conftest.$ac_ext, and return whether this succeeded.
2057ac_fn_d_try_link ()
2058{
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 rm -f conftest.$ac_objext conftest$ac_exeext
2061 if { { ac_try="$ac_link"
2062case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>conftest.err
2069 ac_status=$?
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2074 fi
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && {
2077 test -z "$ac_d_werror_flag" ||
2078 test ! -s conftest.err
2079 } && test -s conftest$ac_exeext && {
2080 test "$cross_compiling" = yes ||
2081 test -x conftest$ac_exeext
2082 }; then :
2083 ac_retval=0
2084else
2085 $as_echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_retval=1
2089fi
2090 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2091 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2092 # interfere with the next link command; also delete a directory that is
2093 # left behind by Apple's compiler. We do this before executing the actions.
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2097
2098} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002099cat >config.log <<_ACEOF
2100This file contains any messages produced by compilers while
2101running configure, to aid debugging if configure makes a mistake.
2102
2103It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002104generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002105
2106 $ $0 $@
2107
2108_ACEOF
2109exec 5>>config.log
2110{
2111cat <<_ASUNAME
2112## --------- ##
2113## Platform. ##
2114## --------- ##
2115
2116hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133_ASUNAME
2134
2135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142IFS=$as_save_IFS
2143
2144} >&5
2145
2146cat >&5 <<_ACEOF
2147
2148
2149## ----------- ##
2150## Core tests. ##
2151## ----------- ##
2152
2153_ACEOF
2154
2155
2156# Keep a trace of the command line.
2157# Strip out --no-create and --no-recursion so they do not pile up.
2158# Strip out --silent because we don't want to record it for future runs.
2159# Also quote any args containing shell meta-characters.
2160# Make two passes to allow for proper duplicate-argument suppression.
2161ac_configure_args=
2162ac_configure_args0=
2163ac_configure_args1=
2164ac_must_keep_next=false
2165for ac_pass in 1 2
2166do
2167 for ac_arg
2168 do
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 2)
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2192 ;;
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2195 fi
2196 as_fn_append ac_configure_args " '$ac_arg'"
2197 ;;
2198 esac
2199 done
2200done
2201{ ac_configure_args0=; unset ac_configure_args0;}
2202{ ac_configure_args1=; unset ac_configure_args1;}
2203
2204# When interrupted or exit'd, cleanup temporary files, and complete
2205# config.log. We remove comments because anyway the quotes in there
2206# would cause problems or look ugly.
2207# WARNING: Use '\'' to represent an apostrophe within the trap.
2208# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2211 {
2212 echo
2213
Joseph Myers22e05272018-10-31 17:03:16 +00002214 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002215## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002216## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002217 echo
2218 # The following way of writing the cache mishandles newlines in values,
2219(
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
2235 (set) 2>&1 |
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2238 sed -n \
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
2242 *)
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 ;;
2245 esac |
2246 sort
2247)
2248 echo
2249
Joseph Myers22e05272018-10-31 17:03:16 +00002250 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002251## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002252## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002253 echo
2254 for ac_var in $ac_subst_vars
2255 do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in
2258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 esac
2260 $as_echo "$ac_var='\''$ac_val'\''"
2261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002265 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002266## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002267## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002268 echo
2269 for ac_var in $ac_subst_files
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278 fi
2279
2280 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002281 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002282## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002283## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002284 echo
2285 cat confdefs.h
2286 echo
2287 fi
2288 test "$ac_signal" != 0 &&
2289 $as_echo "$as_me: caught signal $ac_signal"
2290 $as_echo "$as_me: exit $exit_status"
2291 } >&5
2292 rm -f core *.core core.conftest.* &&
2293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294 exit $exit_status
2295' 0
2296for ac_signal in 1 2 13 15; do
2297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298done
2299ac_signal=0
2300
2301# confdefs.h avoids OS command line length limits that DEFS can exceed.
2302rm -f -r conftest* confdefs.h
2303
2304$as_echo "/* confdefs.h */" > confdefs.h
2305
2306# Predefined preprocessor variables.
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_NAME "$PACKAGE_NAME"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314_ACEOF
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_VERSION "$PACKAGE_VERSION"
2318_ACEOF
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_STRING "$PACKAGE_STRING"
2322_ACEOF
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326_ACEOF
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_URL "$PACKAGE_URL"
2330_ACEOF
2331
2332
2333# Let the site file select an alternate cache file if it wants to.
2334# Prefer an explicitly selected file to automatically selected ones.
2335ac_site_file1=NONE
2336ac_site_file2=NONE
2337if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002338 # We do not want a PATH search for config.site.
2339 case $CONFIG_SITE in #((
2340 -*) ac_site_file1=./$CONFIG_SITE;;
2341 */*) ac_site_file1=$CONFIG_SITE;;
2342 *) ac_site_file1=./$CONFIG_SITE;;
2343 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002344elif test "x$prefix" != xNONE; then
2345 ac_site_file1=$prefix/share/config.site
2346 ac_site_file2=$prefix/etc/config.site
2347else
2348 ac_site_file1=$ac_default_prefix/share/config.site
2349 ac_site_file2=$ac_default_prefix/etc/config.site
2350fi
2351for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352do
2353 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002354 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002358 . "$ac_site_file" \
2359 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361as_fn_error $? "failed to load site script $ac_site_file
2362See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002363 fi
2364done
2365
2366if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002367 # Some versions of bash will fail to source /dev/null (special files
2368 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2369 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2371$as_echo "$as_me: loading cache $cache_file" >&6;}
2372 case $cache_file in
2373 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2374 *) . "./$cache_file";;
2375 esac
2376 fi
2377else
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2379$as_echo "$as_me: creating cache $cache_file" >&6;}
2380 >$cache_file
2381fi
2382
2383# Check that the precious variables saved in the cache have kept the same
2384# value.
2385ac_cache_corrupted=false
2386for ac_var in $ac_precious_vars; do
2387 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2388 eval ac_new_set=\$ac_env_${ac_var}_set
2389 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2390 eval ac_new_val=\$ac_env_${ac_var}_value
2391 case $ac_old_set,$ac_new_set in
2392 set,)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2394$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2396 ,set)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2398$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,);;
2401 *)
2402 if test "x$ac_old_val" != "x$ac_new_val"; then
2403 # differences in whitespace do not lead to failure.
2404 ac_old_val_w=`echo x $ac_old_val`
2405 ac_new_val_w=`echo x $ac_new_val`
2406 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2408$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409 ac_cache_corrupted=:
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2412$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2413 eval $ac_var=\$ac_old_val
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2416$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2418$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2419 fi;;
2420 esac
2421 # Pass precious variables to config.status.
2422 if test "$ac_new_set" = set; then
2423 case $ac_new_val in
2424 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 *) ac_arg=$ac_var=$ac_new_val ;;
2426 esac
2427 case " $ac_configure_args " in
2428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2429 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2430 esac
2431 fi
2432done
2433if $ac_cache_corrupted; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2437$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002438 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002439fi
2440## -------------------- ##
2441## Main body of script. ##
2442## -------------------- ##
2443
2444ac_ext=c
2445ac_cpp='$CPP $CPPFLAGS'
2446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
2450
2451
2452
2453
2454
2455ac_config_headers="$ac_config_headers config.h"
2456
2457
2458# Default to --enable-multilib
2459# Check whether --enable-multilib was given.
2460if test "${enable_multilib+set}" = set; then :
2461 enableval=$enable_multilib; case "$enableval" in
2462 yes) multilib=yes ;;
2463 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002464 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002465 esac
2466else
2467 multilib=yes
2468fi
2469
2470
2471# We may get other options which we leave undocumented:
2472# --with-target-subdir, --with-multisrctop, --with-multisubdir
2473# See config-ml.in if you want the gory details.
2474
2475if test "$srcdir" = "."; then
2476 if test "$with_target_subdir" != "."; then
2477 multi_basedir="$srcdir/$with_multisrctop../.."
2478 else
2479 multi_basedir="$srcdir/$with_multisrctop.."
2480 fi
2481else
2482 multi_basedir="$srcdir/.."
2483fi
2484
2485
2486# Even if the default multilib is not a cross compilation,
2487# it may be that some of the other multilibs are.
2488if test $cross_compiling = no && test $multilib = yes \
2489 && test "x${with_multisubdir}" != x ; then
2490 cross_compiling=maybe
2491fi
2492
2493ac_config_commands="$ac_config_commands default-1"
2494
2495ac_aux_dir=
2496for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002497 if test -f "$ac_dir/install-sh"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/install-sh -c"
2500 break
2501 elif test -f "$ac_dir/install.sh"; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/install.sh -c"
2504 break
2505 elif test -f "$ac_dir/shtool"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/shtool install -c"
2508 break
2509 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002510done
2511if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002512 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002513fi
2514
2515# These three variables are undocumented and unsupported,
2516# and are intended to be withdrawn in a future Autoconf release.
2517# They can cause serious problems if a builder's source tree is in a directory
2518# whose full name contains unusual characters.
2519ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2520ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2521ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2522
2523
2524# Make sure we can run config.sub.
2525$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002527
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2529$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002530if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002531 $as_echo_n "(cached) " >&6
2532else
2533 ac_build_alias=$build_alias
2534test "x$ac_build_alias" = x &&
2535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2536test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002538ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002540
2541fi
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2543$as_echo "$ac_cv_build" >&6; }
2544case $ac_cv_build in
2545*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002546*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002547esac
2548build=$ac_cv_build
2549ac_save_IFS=$IFS; IFS='-'
2550set x $ac_cv_build
2551shift
2552build_cpu=$1
2553build_vendor=$2
2554shift; shift
2555# Remember, the first character of IFS is used to create $*,
2556# except with old shells:
2557build_os=$*
2558IFS=$ac_save_IFS
2559case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2560
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2563$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002564if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002565 $as_echo_n "(cached) " >&6
2566else
2567 if test "x$host_alias" = x; then
2568 ac_cv_host=$ac_cv_build
2569else
2570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002572fi
2573
2574fi
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2576$as_echo "$ac_cv_host" >&6; }
2577case $ac_cv_host in
2578*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002579*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002580esac
2581host=$ac_cv_host
2582ac_save_IFS=$IFS; IFS='-'
2583set x $ac_cv_host
2584shift
2585host_cpu=$1
2586host_vendor=$2
2587shift; shift
2588# Remember, the first character of IFS is used to create $*,
2589# except with old shells:
2590host_os=$*
2591IFS=$ac_save_IFS
2592case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2596$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002597if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002598 $as_echo_n "(cached) " >&6
2599else
2600 if test "x$target_alias" = x; then
2601 ac_cv_target=$ac_cv_host
2602else
2603 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002605fi
2606
2607fi
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2609$as_echo "$ac_cv_target" >&6; }
2610case $ac_cv_target in
2611*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002612*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002613esac
2614target=$ac_cv_target
2615ac_save_IFS=$IFS; IFS='-'
2616set x $ac_cv_target
2617shift
2618target_cpu=$1
2619target_vendor=$2
2620shift; shift
2621# Remember, the first character of IFS is used to create $*,
2622# except with old shells:
2623target_os=$*
2624IFS=$ac_save_IFS
2625case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2626
2627
2628# The aliases save the names the user supplied, while $host etc.
2629# will get canonicalized.
2630test -n "$target_alias" &&
2631 test "$program_prefix$program_suffix$program_transform_name" = \
2632 NONENONEs,x,x, &&
2633 program_prefix=${target_alias}-
2634
Joseph Myers22e05272018-10-31 17:03:16 +00002635# Expand $ac_aux_dir to an absolute path.
2636am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002637
Iain Buclawb4c522f2018-10-28 19:51:47 +00002638ac_ext=c
2639ac_cpp='$CPP $CPPFLAGS'
2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002648if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002649 $as_echo_n "(cached) " >&6
2650else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666 done
2667IFS=$as_save_IFS
2668
2669fi
2670fi
2671CC=$ac_cv_prog_CC
2672if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674$as_echo "$CC" >&6; }
2675else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677$as_echo "no" >&6; }
2678fi
2679
2680
2681fi
2682if test -z "$ac_cv_prog_CC"; then
2683 ac_ct_CC=$CC
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685set dummy gcc; ac_word=$2
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002688if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002689 $as_echo_n "(cached) " >&6
2690else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693else
2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695for as_dir in $PATH
2696do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002701 ac_cv_prog_ac_ct_CC="gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705done
2706 done
2707IFS=$as_save_IFS
2708
2709fi
2710fi
2711ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714$as_echo "$ac_ct_CC" >&6; }
2715else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717$as_echo "no" >&6; }
2718fi
2719
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724yes:)
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727ac_tool_warned=yes ;;
2728esac
2729 CC=$ac_ct_CC
2730 fi
2731else
2732 CC="$ac_cv_prog_CC"
2733fi
2734
2735if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738set dummy ${ac_tool_prefix}cc; ac_word=$2
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002741if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002742 $as_echo_n "(cached) " >&6
2743else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002754 ac_cv_prog_CC="${ac_tool_prefix}cc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758done
2759 done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767$as_echo "$CC" >&6; }
2768else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774 fi
2775fi
2776if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778set dummy cc; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002781if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786else
2787 ac_prog_rejected=no
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2797 continue
2798 fi
2799 ac_cv_prog_CC="cc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804 done
2805IFS=$as_save_IFS
2806
2807if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2810 shift
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2815 shift
2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2817 fi
2818fi
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831fi
2832if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl.exe
2835 do
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002840if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002841 $as_echo_n "(cached) " >&6
2842else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858 done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863CC=$ac_cv_prog_CC
2864if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866$as_echo "$CC" >&6; }
2867else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872
2873 test -n "$CC" && break
2874 done
2875fi
2876if test -z "$CC"; then
2877 ac_ct_CC=$CC
2878 for ac_prog in cl.exe
2879do
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881set dummy $ac_prog; ac_word=$2
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002884if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002885 $as_echo_n "(cached) " >&6
2886else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002897 ac_cv_prog_ac_ct_CC="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902 done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910$as_echo "$ac_ct_CC" >&6; }
2911else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
2917 test -n "$ac_ct_CC" && break
2918done
2919
2920 if test "x$ac_ct_CC" = x; then
2921 CC=""
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924yes:)
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927ac_tool_warned=yes ;;
2928esac
2929 CC=$ac_ct_CC
2930 fi
2931fi
2932
2933fi
2934
2935
2936test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002938as_fn_error $? "no acceptable C compiler found in \$PATH
2939See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002940
2941# Provide some information about the compiler.
2942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2943set X $ac_compile
2944ac_compiler=$2
2945for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2947case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950esac
2951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952$as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 ac_status=$?
2955 if test -s conftest.err; then
2956 sed '10a\
2957... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002960 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002961 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964done
2965
2966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967/* end confdefs.h. */
2968
2969int
2970main ()
2971{
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002978ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002979# Try to create an executable without -o first, disregard a.out.
2980# It will help us diagnose broken compilers, and finding out an intuition
2981# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2983$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002984ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985
2986# The possible output files:
2987ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988
2989ac_rmfiles=
2990for ac_file in $ac_files
2991do
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996done
2997rm -f $ac_rmfiles
2998
2999if { { ac_try="$ac_link_default"
3000case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012# in a Makefile. We should not override ac_cv_exeext if it was cached,
3013# so that the user can short-circuit this test for compilers unknown to
3014# Autoconf.
3015for ac_file in $ac_files ''
3016do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3020 ;;
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 fi
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3036 * )
3037 break;;
3038 esac
3039done
3040test "$ac_cv_exeext" = no && ac_cv_exeext=
3041
3042else
3043 ac_file=''
3044fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003045if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003053as_fn_error 77 "C compiler cannot create executables
3054See \`config.log' for more details" "$LINENO" 5; }
3055else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003058fi
Joseph Myers22e05272018-10-31 17:03:16 +00003059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3060$as_echo_n "checking for C compiler default output file name... " >&6; }
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3062$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003063ac_exeext=$ac_cv_exeext
3064
Joseph Myers22e05272018-10-31 17:03:16 +00003065rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003066ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3068$as_echo_n "checking for suffix of executables... " >&6; }
3069if { { ac_try="$ac_link"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3081# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3082# work properly (i.e., refer to `conftest.exe'), while it won't with
3083# `rm'.
3084for ac_file in conftest.exe conftest conftest.*; do
3085 test -f "$ac_file" || continue
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 break;;
3090 * ) break;;
3091 esac
3092done
3093else
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003096as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3097See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003098fi
Joseph Myers22e05272018-10-31 17:03:16 +00003099rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3101$as_echo "$ac_cv_exeext" >&6; }
3102
3103rm -f conftest.$ac_ext
3104EXEEXT=$ac_cv_exeext
3105ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107/* end confdefs.h. */
3108#include <stdio.h>
3109int
3110main ()
3111{
3112FILE *f = fopen ("conftest.out", "w");
3113 return ferror (f) || fclose (f) != 0;
3114
3115 ;
3116 return 0;
3117}
3118_ACEOF
3119ac_clean_files="$ac_clean_files conftest.out"
3120# Check that the compiler produces executables we can run. If not, either
3121# the compiler is broken, or we cross compile.
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3123$as_echo_n "checking whether we are cross compiling... " >&6; }
3124if test "$cross_compiling" != yes; then
3125 { { ac_try="$ac_link"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131$as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 if { ac_try='./conftest$ac_cv_exeext'
3137 { { case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142$as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; }; then
3147 cross_compiling=no
3148 else
3149 if test "$cross_compiling" = maybe; then
3150 cross_compiling=yes
3151 else
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154as_fn_error $? "cannot run C compiled programs.
3155If you meant to cross compile, use \`--host'.
3156See \`config.log' for more details" "$LINENO" 5; }
3157 fi
3158 fi
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3161$as_echo "$cross_compiling" >&6; }
3162
3163rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3164ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3166$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003167if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003168 $as_echo_n "(cached) " >&6
3169else
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
3181rm -f conftest.o conftest.obj
3182if { { ac_try="$ac_compile"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188$as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compile") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 for ac_file in conftest.o conftest.obj conftest.*; do
3194 test -f "$ac_file" || continue;
3195 case $ac_file in
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3198 break;;
3199 esac
3200done
3201else
3202 $as_echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003207as_fn_error $? "cannot compute suffix of object files: cannot compile
3208See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003209fi
3210rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211fi
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3213$as_echo "$ac_cv_objext" >&6; }
3214OBJEXT=$ac_cv_objext
3215ac_objext=$OBJEXT
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3217$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003218if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003219 $as_echo_n "(cached) " >&6
3220else
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227#ifndef __GNUC__
3228 choke me
3229#endif
3230
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235if ac_fn_c_try_compile "$LINENO"; then :
3236 ac_compiler_gnu=yes
3237else
3238 ac_compiler_gnu=no
3239fi
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3245$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3246if test $ac_compiler_gnu = yes; then
3247 GCC=yes
3248else
3249 GCC=
3250fi
3251ac_test_CFLAGS=${CFLAGS+set}
3252ac_save_CFLAGS=$CFLAGS
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3254$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003255if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003256 $as_echo_n "(cached) " >&6
3257else
3258 ac_save_c_werror_flag=$ac_c_werror_flag
3259 ac_c_werror_flag=yes
3260 ac_cv_prog_cc_g=no
3261 CFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_g=yes
3275else
3276 CFLAGS=""
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h. */
3279
3280int
3281main ()
3282{
3283
3284 ;
3285 return 0;
3286}
3287_ACEOF
3288if ac_fn_c_try_compile "$LINENO"; then :
3289
3290else
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3292 CFLAGS="-g"
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294/* end confdefs.h. */
3295
3296int
3297main ()
3298{
3299
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304if ac_fn_c_try_compile "$LINENO"; then :
3305 ac_cv_prog_cc_g=yes
3306fi
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310fi
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3313fi
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3315$as_echo "$ac_cv_prog_cc_g" >&6; }
3316if test "$ac_test_CFLAGS" = set; then
3317 CFLAGS=$ac_save_CFLAGS
3318elif test $ac_cv_prog_cc_g = yes; then
3319 if test "$GCC" = yes; then
3320 CFLAGS="-g -O2"
3321 else
3322 CFLAGS="-g"
3323 fi
3324else
3325 if test "$GCC" = yes; then
3326 CFLAGS="-O2"
3327 else
3328 CFLAGS=
3329 fi
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3332$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003333if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003334 $as_echo_n "(cached) " >&6
3335else
3336 ac_cv_prog_cc_c89=no
3337ac_save_CC=$CC
3338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339/* end confdefs.h. */
3340#include <stdarg.h>
3341#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003342struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344struct buf { int x; };
3345FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346static char *e (p, i)
3347 char **p;
3348 int i;
3349{
3350 return p[i];
3351}
3352static char *f (char * (*g) (char **, int), char **p, ...)
3353{
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360}
3361
3362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3363 function prototypes and stuff, but not '\xHH' hex character constants.
3364 These don't provoke an error unfortunately, instead are silently treated
3365 as 'x'. The following induces an error, until -std is added to get
3366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3367 array size at least. It's necessary to write '\x00'==0 to get something
3368 that's true only with -std. */
3369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3370
3371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3372 inside strings and character constants. */
3373#define FOO(x) 'x'
3374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3375
3376int test (int i, double x);
3377struct s1 {int (*f) (int a);};
3378struct s2 {int (*f) (double a);};
3379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380int argc;
3381char **argv;
3382int
3383main ()
3384{
3385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3386 ;
3387 return 0;
3388}
3389_ACEOF
3390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3392do
3393 CC="$ac_save_CC $ac_arg"
3394 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_cv_prog_cc_c89=$ac_arg
3396fi
3397rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
3399done
3400rm -f conftest.$ac_ext
3401CC=$ac_save_CC
3402
3403fi
3404# AC_CACHE_VAL
3405case "x$ac_cv_prog_cc_c89" in
3406 x)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408$as_echo "none needed" >&6; } ;;
3409 xno)
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411$as_echo "unsupported" >&6; } ;;
3412 *)
3413 CC="$CC $ac_cv_prog_cc_c89"
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3415$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3416esac
3417if test "x$ac_cv_prog_cc_c89" != xno; then :
3418
3419fi
3420
3421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426
Joseph Myers22e05272018-10-31 17:03:16 +00003427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3433$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3434if ${am_cv_prog_cc_c_o+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436else
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438/* end confdefs.h. */
3439
3440int
3441main ()
3442{
3443
3444 ;
3445 return 0;
3446}
3447_ACEOF
3448 # Make sure it works both with $CC and with simple cc.
3449 # Following AC_PROG_CC_C_O, we do the test twice because some
3450 # compilers refuse to overwrite an existing .o file with -o,
3451 # though they will create one.
3452 am_cv_prog_cc_c_o=yes
3453 for am_i in 1 2; do
3454 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3455 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } \
3459 && test -f conftest2.$ac_objext; then
3460 : OK
3461 else
3462 am_cv_prog_cc_c_o=no
3463 break
3464 fi
3465 done
3466 rm -f core conftest*
3467 unset am_i
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3470$as_echo "$am_cv_prog_cc_c_o" >&6; }
3471if test "$am_cv_prog_cc_c_o" != yes; then
3472 # Losing compiler, so override with the script.
3473 # FIXME: It is wrong to rewrite CC.
3474 # But if we don't then we get into trouble of one sort or another.
3475 # A longer-term fix would be to have automake use am__CC in this case,
3476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3477 CC="$am_aux_dir/compile $CC"
3478fi
3479ac_ext=c
3480ac_cpp='$CPP $CPPFLAGS'
3481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
3485
Rainer Orth235d1c42019-04-14 09:30:42 +00003486
3487ac_ext=c
3488ac_cpp='$CPP $CPPFLAGS'
3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3493$as_echo_n "checking how to run the C preprocessor... " >&6; }
3494# On Suns, sometimes $CPP names a directory.
3495if test -n "$CPP" && test -d "$CPP"; then
3496 CPP=
3497fi
3498if test -z "$CPP"; then
3499 if ${ac_cv_prog_CPP+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501else
3502 # Double quotes because CPP needs to be expanded
3503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3504 do
3505 ac_preproc_ok=false
3506for ac_c_preproc_warn_flag in '' yes
3507do
3508 # Use a header file that comes with gcc, so configuring glibc
3509 # with a fresh cross-compiler works.
3510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3511 # <limits.h> exists even on freestanding compilers.
3512 # On the NeXT, cc -E runs the code through the compiler's parser,
3513 # not just through cpp. "Syntax error" is here to catch this case.
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h. */
3516#ifdef __STDC__
3517# include <limits.h>
3518#else
3519# include <assert.h>
3520#endif
3521 Syntax error
3522_ACEOF
3523if ac_fn_c_try_cpp "$LINENO"; then :
3524
3525else
3526 # Broken: fails on valid input.
3527continue
3528fi
3529rm -f conftest.err conftest.i conftest.$ac_ext
3530
3531 # OK, works on sane cases. Now check whether nonexistent headers
3532 # can be detected and how.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h. */
3535#include <ac_nonexistent.h>
3536_ACEOF
3537if ac_fn_c_try_cpp "$LINENO"; then :
3538 # Broken: success on invalid input.
3539continue
3540else
3541 # Passes both tests.
3542ac_preproc_ok=:
3543break
3544fi
3545rm -f conftest.err conftest.i conftest.$ac_ext
3546
3547done
3548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549rm -f conftest.i conftest.err conftest.$ac_ext
3550if $ac_preproc_ok; then :
3551 break
3552fi
3553
3554 done
3555 ac_cv_prog_CPP=$CPP
3556
3557fi
3558 CPP=$ac_cv_prog_CPP
3559else
3560 ac_cv_prog_CPP=$CPP
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3563$as_echo "$CPP" >&6; }
3564ac_preproc_ok=false
3565for ac_c_preproc_warn_flag in '' yes
3566do
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h. */
3575#ifdef __STDC__
3576# include <limits.h>
3577#else
3578# include <assert.h>
3579#endif
3580 Syntax error
3581_ACEOF
3582if ac_fn_c_try_cpp "$LINENO"; then :
3583
3584else
3585 # Broken: fails on valid input.
3586continue
3587fi
3588rm -f conftest.err conftest.i conftest.$ac_ext
3589
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h. */
3594#include <ac_nonexistent.h>
3595_ACEOF
3596if ac_fn_c_try_cpp "$LINENO"; then :
3597 # Broken: success on invalid input.
3598continue
3599else
3600 # Passes both tests.
3601ac_preproc_ok=:
3602break
3603fi
3604rm -f conftest.err conftest.i conftest.$ac_ext
3605
3606done
3607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3608rm -f conftest.i conftest.err conftest.$ac_ext
3609if $ac_preproc_ok; then :
3610
3611else
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3615See \`config.log' for more details" "$LINENO" 5; }
3616fi
3617
3618ac_ext=c
3619ac_cpp='$CPP $CPPFLAGS'
3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623
3624
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3626$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3627if ${ac_cv_path_GREP+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 if test -z "$GREP"; then
3631 ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in grep ggrep; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641 as_fn_executable_p "$ac_path_GREP" || continue
3642# Check for GNU ac_path_GREP and select it if it is found.
3643 # Check for GNU $ac_path_GREP
3644case `"$ac_path_GREP" --version 2>&1` in
3645*GNU*)
3646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647*)
3648 ac_count=0
3649 $as_echo_n 0123456789 >"conftest.in"
3650 while :
3651 do
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 $as_echo 'GREP' >> "conftest.nl"
3656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 as_fn_arith $ac_count + 1 && ac_count=$as_val
3659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_GREP="$ac_path_GREP"
3662 ac_path_GREP_max=$ac_count
3663 fi
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3666 done
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668esac
3669
3670 $ac_path_GREP_found && break 3
3671 done
3672 done
3673 done
3674IFS=$as_save_IFS
3675 if test -z "$ac_cv_path_GREP"; then
3676 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3677 fi
3678else
3679 ac_cv_path_GREP=$GREP
3680fi
3681
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3684$as_echo "$ac_cv_path_GREP" >&6; }
3685 GREP="$ac_cv_path_GREP"
3686
3687
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3689$as_echo_n "checking for egrep... " >&6; }
3690if ${ac_cv_path_EGREP+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692else
3693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3694 then ac_cv_path_EGREP="$GREP -E"
3695 else
3696 if test -z "$EGREP"; then
3697 ac_path_EGREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in egrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3707 as_fn_executable_p "$ac_path_EGREP" || continue
3708# Check for GNU ac_path_EGREP and select it if it is found.
3709 # Check for GNU $ac_path_EGREP
3710case `"$ac_path_EGREP" --version 2>&1` in
3711*GNU*)
3712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3713*)
3714 ac_count=0
3715 $as_echo_n 0123456789 >"conftest.in"
3716 while :
3717 do
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 $as_echo 'EGREP' >> "conftest.nl"
3722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 as_fn_arith $ac_count + 1 && ac_count=$as_val
3725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_EGREP="$ac_path_EGREP"
3728 ac_path_EGREP_max=$ac_count
3729 fi
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3732 done
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734esac
3735
3736 $ac_path_EGREP_found && break 3
3737 done
3738 done
3739 done
3740IFS=$as_save_IFS
3741 if test -z "$ac_cv_path_EGREP"; then
3742 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3743 fi
3744else
3745 ac_cv_path_EGREP=$EGREP
3746fi
3747
3748 fi
3749fi
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3751$as_echo "$ac_cv_path_EGREP" >&6; }
3752 EGREP="$ac_cv_path_EGREP"
3753
3754
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3756$as_echo_n "checking for ANSI C header files... " >&6; }
3757if ${ac_cv_header_stdc+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759else
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h. */
3762#include <stdlib.h>
3763#include <stdarg.h>
3764#include <string.h>
3765#include <float.h>
3766
3767int
3768main ()
3769{
3770
3771 ;
3772 return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_header_stdc=yes
3777else
3778 ac_cv_header_stdc=no
3779fi
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781
3782if test $ac_cv_header_stdc = yes; then
3783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h. */
3786#include <string.h>
3787
3788_ACEOF
3789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 $EGREP "memchr" >/dev/null 2>&1; then :
3791
3792else
3793 ac_cv_header_stdc=no
3794fi
3795rm -f conftest*
3796
3797fi
3798
3799if test $ac_cv_header_stdc = yes; then
3800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h. */
3803#include <stdlib.h>
3804
3805_ACEOF
3806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "free" >/dev/null 2>&1; then :
3808
3809else
3810 ac_cv_header_stdc=no
3811fi
3812rm -f conftest*
3813
3814fi
3815
3816if test $ac_cv_header_stdc = yes; then
3817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3818 if test "$cross_compiling" = yes; then :
3819 :
3820else
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h. */
3823#include <ctype.h>
3824#include <stdlib.h>
3825#if ((' ' & 0x0FF) == 0x020)
3826# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3827# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3828#else
3829# define ISLOWER(c) \
3830 (('a' <= (c) && (c) <= 'i') \
3831 || ('j' <= (c) && (c) <= 'r') \
3832 || ('s' <= (c) && (c) <= 'z'))
3833# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3834#endif
3835
3836#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3837int
3838main ()
3839{
3840 int i;
3841 for (i = 0; i < 256; i++)
3842 if (XOR (islower (i), ISLOWER (i))
3843 || toupper (i) != TOUPPER (i))
3844 return 2;
3845 return 0;
3846}
3847_ACEOF
3848if ac_fn_c_try_run "$LINENO"; then :
3849
3850else
3851 ac_cv_header_stdc=no
3852fi
3853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3854 conftest.$ac_objext conftest.beam conftest.$ac_ext
3855fi
3856
3857fi
3858fi
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3860$as_echo "$ac_cv_header_stdc" >&6; }
3861if test $ac_cv_header_stdc = yes; then
3862
3863$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3864
3865fi
3866
3867# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3868for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3869 inttypes.h stdint.h unistd.h
3870do :
3871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3872ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3873"
3874if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3875 cat >>confdefs.h <<_ACEOF
3876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3877_ACEOF
3878
3879fi
3880
3881done
3882
3883
3884
3885 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3886if test "x$ac_cv_header_minix_config_h" = xyes; then :
3887 MINIX=yes
3888else
3889 MINIX=
3890fi
3891
3892
3893 if test "$MINIX" = yes; then
3894
3895$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3896
3897
3898$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3899
3900
3901$as_echo "#define _MINIX 1" >>confdefs.h
3902
3903 fi
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3907$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3908if ${ac_cv_safe_to_define___extensions__+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h. */
3913
3914# define __EXTENSIONS__ 1
3915 $ac_includes_default
3916int
3917main ()
3918{
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_safe_to_define___extensions__=yes
3926else
3927 ac_cv_safe_to_define___extensions__=no
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3932$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3933 test $ac_cv_safe_to_define___extensions__ = yes &&
3934 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3935
3936 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3937
3938 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3939
3940 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3941
3942 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3943
3944
3945
3946target_alias=${target_alias-$target}
3947
3948
3949# 1.11.1: Require that version of automake.
3950# foreign: Don't require README, INSTALL, NEWS, etc.
3951# no-define: Don't define PACKAGE and VERSION.
3952# no-dependencies: Don't generate automatic dependencies.
3953# (because it breaks when using bootstrap-lean, since some of the
3954# headers are gone at "make install" time).
3955# subdir-objects: Build objects in sub-directories.
3956# -Wall: Issue all automake warnings.
3957# -Wno-portability: Don't warn about constructs supported by GNU make.
3958# (because GCC requires GNU make anyhow).
3959# -Wno-override: Overrides used in testsuite.
3960am__api_version='1.15'
3961
3962# Find a good install program. We prefer a C program (faster),
3963# so one script is as good as another. But avoid the broken or
3964# incompatible versions:
3965# SysV /etc/install, /usr/sbin/install
3966# SunOS /usr/etc/install
3967# IRIX /sbin/install
3968# AIX /bin/install
3969# AmigaOS /C/install, which installs bootblocks on floppy discs
3970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3973# OS/2's system install, which has a completely different semantic
3974# ./install, which can be erroneously created by make from ./install.sh.
3975# Reject install programs that cannot install multiple files.
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3977$as_echo_n "checking for a BSD-compatible install... " >&6; }
3978if test -z "$INSTALL"; then
3979if ${ac_cv_path_install+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 # Account for people who put trailing slashes in PATH elements.
3988case $as_dir/ in #((
3989 ./ | .// | /[cC]/* | \
3990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3991 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3992 /usr/ucb/* ) ;;
3993 *)
3994 # OSF1 and SCO ODT 3.0 have their own names for install.
3995 # Don't use installbsd from OSF since it installs stuff as root
3996 # by default.
3997 for ac_prog in ginstall scoinst install; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4000 if test $ac_prog = install &&
4001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4002 # AIX install. It has an incompatible calling convention.
4003 :
4004 elif test $ac_prog = install &&
4005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4006 # program-specific install script used by HP pwplus--don't use.
4007 :
4008 else
4009 rm -rf conftest.one conftest.two conftest.dir
4010 echo one > conftest.one
4011 echo two > conftest.two
4012 mkdir conftest.dir
4013 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4014 test -s conftest.one && test -s conftest.two &&
4015 test -s conftest.dir/conftest.one &&
4016 test -s conftest.dir/conftest.two
4017 then
4018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4019 break 3
4020 fi
4021 fi
4022 fi
4023 done
4024 done
4025 ;;
4026esac
4027
4028 done
4029IFS=$as_save_IFS
4030
4031rm -rf conftest.one conftest.two conftest.dir
4032
4033fi
4034 if test "${ac_cv_path_install+set}" = set; then
4035 INSTALL=$ac_cv_path_install
4036 else
4037 # As a last resort, use the slow shell script. Don't cache a
4038 # value for INSTALL within a source directory, because that will
4039 # break other packages using the cache if that directory is
4040 # removed, or if the value is a relative name.
4041 INSTALL=$ac_install_sh
4042 fi
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4045$as_echo "$INSTALL" >&6; }
4046
4047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4048# It thinks the first close brace ends the variable substitution.
4049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4050
4051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4052
4053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4054
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4056$as_echo_n "checking whether build environment is sane... " >&6; }
4057# Reject unsafe characters in $srcdir or the absolute working directory
4058# name. Accept space and tab only in the latter.
4059am_lf='
4060'
4061case `pwd` in
4062 *[\\\"\#\$\&\'\`$am_lf]*)
4063 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4064esac
4065case $srcdir in
4066 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4067 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4068esac
4069
4070# Do 'set' in a subshell so we don't clobber the current shell's
4071# arguments. Must try -L first in case configure is actually a
4072# symlink; some systems play weird games with the mod time of symlinks
4073# (eg FreeBSD returns the mod time of the symlink's containing
4074# directory).
4075if (
4076 am_has_slept=no
4077 for am_try in 1 2; do
4078 echo "timestamp, slept: $am_has_slept" > conftest.file
4079 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4080 if test "$*" = "X"; then
4081 # -L didn't work.
4082 set X `ls -t "$srcdir/configure" conftest.file`
4083 fi
4084 if test "$*" != "X $srcdir/configure conftest.file" \
4085 && test "$*" != "X conftest.file $srcdir/configure"; then
4086
4087 # If neither matched, then we have a broken ls. This can happen
4088 # if, for instance, CONFIG_SHELL is bash and it inherits a
4089 # broken ls alias from the environment. This has actually
4090 # happened. Such a system could not be considered "sane".
4091 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4092 alias in your environment" "$LINENO" 5
4093 fi
4094 if test "$2" = conftest.file || test $am_try -eq 2; then
4095 break
4096 fi
4097 # Just in case.
4098 sleep 1
4099 am_has_slept=yes
4100 done
4101 test "$2" = conftest.file
4102 )
4103then
4104 # Ok.
4105 :
4106else
4107 as_fn_error $? "newly created file is older than distributed files!
4108Check your system clock" "$LINENO" 5
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111$as_echo "yes" >&6; }
4112# If we didn't sleep, we still need to ensure time stamps of config.status and
4113# generated files are strictly newer.
4114am_sleep_pid=
4115if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4116 ( sleep 1 ) &
4117 am_sleep_pid=$!
4118fi
4119
4120rm -f conftest.file
4121
4122test "$program_prefix" != NONE &&
4123 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4124# Use a double $ so make ignores it.
4125test "$program_suffix" != NONE &&
4126 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4127# Double any \ or $.
4128# By default was `s,x,x', remove it if useless.
4129ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4130program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4131
4132if test x"${MISSING+set}" != xset; then
4133 case $am_aux_dir in
4134 *\ * | *\ *)
4135 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4136 *)
4137 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4138 esac
4139fi
4140# Use eval to expand $SHELL
4141if eval "$MISSING --is-lightweight"; then
4142 am_missing_run="$MISSING "
4143else
4144 am_missing_run=
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4146$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4147fi
4148
4149if test x"${install_sh+set}" != xset; then
4150 case $am_aux_dir in
4151 *\ * | *\ *)
4152 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4153 *)
4154 install_sh="\${SHELL} $am_aux_dir/install-sh"
4155 esac
4156fi
4157
4158# Installed binaries are usually stripped using 'strip' when the user
4159# run "make install-strip". However 'strip' might not be the right
4160# tool to use in cross-compilation environments, therefore Automake
4161# will honor the 'STRIP' environment variable to overrule this program.
4162if test "$cross_compiling" != no; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4165set dummy ${ac_tool_prefix}strip; ac_word=$2
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if ${ac_cv_prog_STRIP+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170else
4171 if test -n "$STRIP"; then
4172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185done
4186 done
4187IFS=$as_save_IFS
4188
4189fi
4190fi
4191STRIP=$ac_cv_prog_STRIP
4192if test -n "$STRIP"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4194$as_echo "$STRIP" >&6; }
4195else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
4198fi
4199
4200
4201fi
4202if test -z "$ac_cv_prog_STRIP"; then
4203 ac_ct_STRIP=$STRIP
4204 # Extract the first word of "strip", so it can be a program name with args.
4205set dummy strip; ac_word=$2
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210else
4211 if test -n "$ac_ct_STRIP"; then
4212 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_ac_ct_STRIP="strip"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225done
4226 done
4227IFS=$as_save_IFS
4228
4229fi
4230fi
4231ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4232if test -n "$ac_ct_STRIP"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4234$as_echo "$ac_ct_STRIP" >&6; }
4235else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238fi
4239
4240 if test "x$ac_ct_STRIP" = x; then
4241 STRIP=":"
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244yes:)
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247ac_tool_warned=yes ;;
4248esac
4249 STRIP=$ac_ct_STRIP
4250 fi
4251else
4252 STRIP="$ac_cv_prog_STRIP"
4253fi
4254
4255fi
4256INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4259$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4260if test -z "$MKDIR_P"; then
4261 if ${ac_cv_path_mkdir+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_prog in mkdir gmkdir; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4272 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4273 'mkdir (GNU coreutils) '* | \
4274 'mkdir (coreutils) '* | \
4275 'mkdir (fileutils) '4.1*)
4276 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4277 break 3;;
4278 esac
4279 done
4280 done
4281 done
4282IFS=$as_save_IFS
4283
4284fi
4285
4286 test -d ./--version && rmdir ./--version
4287 if test "${ac_cv_path_mkdir+set}" = set; then
4288 MKDIR_P="$ac_cv_path_mkdir -p"
4289 else
4290 # As a last resort, use the slow shell script. Don't cache a
4291 # value for MKDIR_P within a source directory, because that will
4292 # break other packages using the cache if that directory is
4293 # removed, or if the value is a relative name.
4294 MKDIR_P="$ac_install_sh -d"
4295 fi
4296fi
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4298$as_echo "$MKDIR_P" >&6; }
4299
4300for ac_prog in gawk mawk nawk awk
4301do
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303set dummy $ac_prog; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if ${ac_cv_prog_AWK+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308else
4309 if test -n "$AWK"; then
4310 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_AWK="$ac_prog"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323done
4324 done
4325IFS=$as_save_IFS
4326
4327fi
4328fi
4329AWK=$ac_cv_prog_AWK
4330if test -n "$AWK"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4332$as_echo "$AWK" >&6; }
4333else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335$as_echo "no" >&6; }
4336fi
4337
4338
4339 test -n "$AWK" && break
4340done
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4343$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4344set x ${MAKE-make}
4345ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4346if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348else
4349 cat >conftest.make <<\_ACEOF
4350SHELL = /bin/sh
4351all:
4352 @echo '@@@%%%=$(MAKE)=@@@%%%'
4353_ACEOF
4354# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4355case `${MAKE-make} -f conftest.make 2>/dev/null` in
4356 *@@@%%%=?*=@@@%%%*)
4357 eval ac_cv_prog_make_${ac_make}_set=yes;;
4358 *)
4359 eval ac_cv_prog_make_${ac_make}_set=no;;
4360esac
4361rm -f conftest.make
4362fi
4363if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365$as_echo "yes" >&6; }
4366 SET_MAKE=
4367else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369$as_echo "no" >&6; }
4370 SET_MAKE="MAKE=${MAKE-make}"
4371fi
4372
4373rm -rf .tst 2>/dev/null
4374mkdir .tst 2>/dev/null
4375if test -d .tst; then
4376 am__leading_dot=.
4377else
4378 am__leading_dot=_
4379fi
4380rmdir .tst 2>/dev/null
4381
4382# Check whether --enable-silent-rules was given.
4383if test "${enable_silent_rules+set}" = set; then :
4384 enableval=$enable_silent_rules;
4385fi
4386
4387case $enable_silent_rules in # (((
4388 yes) AM_DEFAULT_VERBOSITY=0;;
4389 no) AM_DEFAULT_VERBOSITY=1;;
4390 *) AM_DEFAULT_VERBOSITY=1;;
4391esac
4392am_make=${MAKE-make}
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4394$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4395if ${am_cv_make_support_nested_variables+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397else
4398 if $as_echo 'TRUE=$(BAR$(V))
4399BAR0=false
4400BAR1=true
4401V=1
4402am__doit:
4403 @$(TRUE)
4404.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4405 am_cv_make_support_nested_variables=yes
4406else
4407 am_cv_make_support_nested_variables=no
4408fi
4409fi
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4411$as_echo "$am_cv_make_support_nested_variables" >&6; }
4412if test $am_cv_make_support_nested_variables = yes; then
4413 AM_V='$(V)'
4414 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4415else
4416 AM_V=$AM_DEFAULT_VERBOSITY
4417 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4418fi
4419AM_BACKSLASH='\'
4420
4421if test "`cd $srcdir && pwd`" != "`pwd`"; then
4422 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4423 # is not polluted with repeated "-I."
4424 am__isrc=' -I$(srcdir)'
4425 # test to see if srcdir already configured
4426 if test -f $srcdir/config.status; then
4427 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4428 fi
4429fi
4430
4431# test whether we have cygpath
4432if test -z "$CYGPATH_W"; then
4433 if (cygpath --version) >/dev/null 2>/dev/null; then
4434 CYGPATH_W='cygpath -w'
4435 else
4436 CYGPATH_W=echo
4437 fi
4438fi
4439
4440
4441# Define the identity of the package.
4442 PACKAGE='libphobos'
4443 VERSION='version-unused'
4444
4445
4446# Some tools Automake needs.
4447
4448ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4449
4450
4451AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4452
4453
4454AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4455
4456
4457AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4458
4459
4460MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4461
4462# For better backward compatibility. To be removed once Automake 1.9.x
4463# dies out for good. For more background, see:
4464# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4465# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4466mkdir_p='$(MKDIR_P)'
4467
4468# We need awk for the "check" target (and possibly the TAP driver). The
4469# system "awk" is bad on some platforms.
4470# Always define AMTAR for backward compatibility. Yes, it's still used
4471# in the wild :-( We should find a proper way to deprecate it ...
4472AMTAR='$${TAR-tar}'
4473
4474
4475# We'll loop over all known methods to create a tar archive until one works.
4476_am_tools='gnutar pax cpio none'
4477
4478am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4479
4480
4481
4482
4483
4484
4485# POSIX will say in a future version that running "rm -f" with no argument
4486# is OK; and we want to be able to make that assumption in our Makefile
4487# recipes. So use an aggressive probe to check that the usage we want is
4488# actually supported "in the wild" to an acceptable degree.
4489# See automake bug#10828.
4490# To make any issue more visible, cause the running configure to be aborted
4491# by default if the 'rm' program in use doesn't match our expectations; the
4492# user can still override this though.
4493if rm -f && rm -fr && rm -rf; then : OK; else
4494 cat >&2 <<'END'
4495Oops!
4496
4497Your 'rm' program seems unable to run without file operands specified
4498on the command line, even when the '-f' option is present. This is contrary
4499to the behaviour of most rm programs out there, and not conforming with
4500the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4501
4502Please tell bug-automake@gnu.org about your system, including the value
4503of your $PATH and any error possibly output before this message. This
4504can help us improve future automake versions.
4505
4506END
4507 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4508 echo 'Configuration will proceed anyway, since you have set the' >&2
4509 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4510 echo >&2
4511 else
4512 cat >&2 <<'END'
4513Aborting the configuration process, to ensure you take notice of the issue.
4514
4515You can download and install GNU coreutils to get an 'rm' implementation
4516that behaves properly: <http://www.gnu.org/software/coreutils/>.
4517
4518If you want to complete the configuration process using your problematic
4519'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4520to "yes", and re-run configure.
4521
4522END
4523 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4524 fi
4525fi
4526
4527
4528
4529
Iain Buclawb4c522f2018-10-28 19:51:47 +00004530# By default we simply use the C compiler to build assembly code.
4531
4532test "${CCAS+set}" = set || CCAS=$CC
4533test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4534
4535
4536
4537ac_ext=c
4538ac_cpp='$CPP $CPPFLAGS'
4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542if test -n "$ac_tool_prefix"; then
4543 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4544set dummy ${ac_tool_prefix}gcc; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004547if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004548 $as_echo_n "(cached) " >&6
4549else
4550 if test -n "$CC"; then
4551 ac_cv_prog_CC="$CC" # 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=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004560 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565 done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570CC=$ac_cv_prog_CC
4571if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573$as_echo "$CC" >&6; }
4574else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576$as_echo "no" >&6; }
4577fi
4578
4579
4580fi
4581if test -z "$ac_cv_prog_CC"; then
4582 ac_ct_CC=$CC
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584set dummy gcc; ac_word=$2
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004587if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004588 $as_echo_n "(cached) " >&6
4589else
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004600 ac_cv_prog_ac_ct_CC="gcc"
4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605 done
4606IFS=$as_save_IFS
4607
4608fi
4609fi
4610ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611if test -n "$ac_ct_CC"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4613$as_echo "$ac_ct_CC" >&6; }
4614else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616$as_echo "no" >&6; }
4617fi
4618
4619 if test "x$ac_ct_CC" = x; then
4620 CC=""
4621 else
4622 case $cross_compiling:$ac_tool_warned in
4623yes:)
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626ac_tool_warned=yes ;;
4627esac
4628 CC=$ac_ct_CC
4629 fi
4630else
4631 CC="$ac_cv_prog_CC"
4632fi
4633
4634if test -z "$CC"; then
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4637set dummy ${ac_tool_prefix}cc; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004640if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$CC"; then
4644 ac_cv_prog_CC="$CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004653 ac_cv_prog_CC="${ac_tool_prefix}cc"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658 done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663CC=$ac_cv_prog_CC
4664if test -n "$CC"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666$as_echo "$CC" >&6; }
4667else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672
4673 fi
4674fi
4675if test -z "$CC"; then
4676 # Extract the first word of "cc", so it can be a program name with args.
4677set dummy cc; ac_word=$2
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004680if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004681 $as_echo_n "(cached) " >&6
4682else
4683 if test -n "$CC"; then
4684 ac_cv_prog_CC="$CC" # Let the user override the test.
4685else
4686 ac_prog_rejected=no
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4695 ac_prog_rejected=yes
4696 continue
4697 fi
4698 ac_cv_prog_CC="cc"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702done
4703 done
4704IFS=$as_save_IFS
4705
4706if test $ac_prog_rejected = yes; then
4707 # We found a bogon in the path, so make sure we never use it.
4708 set dummy $ac_cv_prog_CC
4709 shift
4710 if test $# != 0; then
4711 # We chose a different compiler from the bogus one.
4712 # However, it has the same basename, so the bogon will be chosen
4713 # first if we set CC to just the basename; use the full file name.
4714 shift
4715 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4716 fi
4717fi
4718fi
4719fi
4720CC=$ac_cv_prog_CC
4721if test -n "$CC"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723$as_echo "$CC" >&6; }
4724else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727fi
4728
4729
4730fi
4731if test -z "$CC"; then
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in cl.exe
4734 do
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004739if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004740 $as_echo_n "(cached) " >&6
4741else
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756done
4757 done
4758IFS=$as_save_IFS
4759
4760fi
4761fi
4762CC=$ac_cv_prog_CC
4763if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765$as_echo "$CC" >&6; }
4766else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769fi
4770
4771
4772 test -n "$CC" && break
4773 done
4774fi
4775if test -z "$CC"; then
4776 ac_ct_CC=$CC
4777 for ac_prog in cl.exe
4778do
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780set dummy $ac_prog; ac_word=$2
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004783if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004784 $as_echo_n "(cached) " >&6
4785else
4786 if test -n "$ac_ct_CC"; then
4787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004796 ac_cv_prog_ac_ct_CC="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801 done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807if test -n "$ac_ct_CC"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809$as_echo "$ac_ct_CC" >&6; }
4810else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813fi
4814
4815
4816 test -n "$ac_ct_CC" && break
4817done
4818
4819 if test "x$ac_ct_CC" = x; then
4820 CC=""
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828 CC=$ac_ct_CC
4829 fi
4830fi
4831
4832fi
4833
4834
4835test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004837as_fn_error $? "no acceptable C compiler found in \$PATH
4838See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004839
4840# Provide some information about the compiler.
4841$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4842set X $ac_compile
4843ac_compiler=$2
4844for ac_option in --version -v -V -qversion; do
4845 { { ac_try="$ac_compiler $ac_option >&5"
4846case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849esac
4850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851$as_echo "$ac_try_echo"; } >&5
4852 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4853 ac_status=$?
4854 if test -s conftest.err; then
4855 sed '10a\
4856... rest of stderr output deleted ...
4857 10q' conftest.err >conftest.er1
4858 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004859 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004860 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; }
4863done
4864
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4866$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004867if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004868 $as_echo_n "(cached) " >&6
4869else
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h. */
4872
4873int
4874main ()
4875{
4876#ifndef __GNUC__
4877 choke me
4878#endif
4879
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884if ac_fn_c_try_compile "$LINENO"; then :
4885 ac_compiler_gnu=yes
4886else
4887 ac_compiler_gnu=no
4888fi
4889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890ac_cv_c_compiler_gnu=$ac_compiler_gnu
4891
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4894$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4895if test $ac_compiler_gnu = yes; then
4896 GCC=yes
4897else
4898 GCC=
4899fi
4900ac_test_CFLAGS=${CFLAGS+set}
4901ac_save_CFLAGS=$CFLAGS
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4903$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004904if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004905 $as_echo_n "(cached) " >&6
4906else
4907 ac_save_c_werror_flag=$ac_c_werror_flag
4908 ac_c_werror_flag=yes
4909 ac_cv_prog_cc_g=no
4910 CFLAGS="-g"
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h. */
4913
4914int
4915main ()
4916{
4917
4918 ;
4919 return 0;
4920}
4921_ACEOF
4922if ac_fn_c_try_compile "$LINENO"; then :
4923 ac_cv_prog_cc_g=yes
4924else
4925 CFLAGS=""
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
4937if ac_fn_c_try_compile "$LINENO"; then :
4938
4939else
4940 ac_c_werror_flag=$ac_save_c_werror_flag
4941 CFLAGS="-g"
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948
4949 ;
4950 return 0;
4951}
4952_ACEOF
4953if ac_fn_c_try_compile "$LINENO"; then :
4954 ac_cv_prog_cc_g=yes
4955fi
4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 ac_c_werror_flag=$ac_save_c_werror_flag
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4964$as_echo "$ac_cv_prog_cc_g" >&6; }
4965if test "$ac_test_CFLAGS" = set; then
4966 CFLAGS=$ac_save_CFLAGS
4967elif test $ac_cv_prog_cc_g = yes; then
4968 if test "$GCC" = yes; then
4969 CFLAGS="-g -O2"
4970 else
4971 CFLAGS="-g"
4972 fi
4973else
4974 if test "$GCC" = yes; then
4975 CFLAGS="-O2"
4976 else
4977 CFLAGS=
4978 fi
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4981$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004982if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004983 $as_echo_n "(cached) " >&6
4984else
4985 ac_cv_prog_cc_c89=no
4986ac_save_CC=$CC
4987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h. */
4989#include <stdarg.h>
4990#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004991struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004992/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4993struct buf { int x; };
4994FILE * (*rcsopen) (struct buf *, struct stat *, int);
4995static char *e (p, i)
4996 char **p;
4997 int i;
4998{
4999 return p[i];
5000}
5001static char *f (char * (*g) (char **, int), char **p, ...)
5002{
5003 char *s;
5004 va_list v;
5005 va_start (v,p);
5006 s = g (p, va_arg (v,int));
5007 va_end (v);
5008 return s;
5009}
5010
5011/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5012 function prototypes and stuff, but not '\xHH' hex character constants.
5013 These don't provoke an error unfortunately, instead are silently treated
5014 as 'x'. The following induces an error, until -std is added to get
5015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5016 array size at least. It's necessary to write '\x00'==0 to get something
5017 that's true only with -std. */
5018int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5019
5020/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5021 inside strings and character constants. */
5022#define FOO(x) 'x'
5023int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5024
5025int test (int i, double x);
5026struct s1 {int (*f) (int a);};
5027struct s2 {int (*f) (double a);};
5028int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5029int argc;
5030char **argv;
5031int
5032main ()
5033{
5034return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5040 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5041do
5042 CC="$ac_save_CC $ac_arg"
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_prog_cc_c89=$ac_arg
5045fi
5046rm -f core conftest.err conftest.$ac_objext
5047 test "x$ac_cv_prog_cc_c89" != "xno" && break
5048done
5049rm -f conftest.$ac_ext
5050CC=$ac_save_CC
5051
5052fi
5053# AC_CACHE_VAL
5054case "x$ac_cv_prog_cc_c89" in
5055 x)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5057$as_echo "none needed" >&6; } ;;
5058 xno)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5060$as_echo "unsupported" >&6; } ;;
5061 *)
5062 CC="$CC $ac_cv_prog_cc_c89"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5064$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5065esac
5066if test "x$ac_cv_prog_cc_c89" != xno; then :
5067
5068fi
5069
5070ac_ext=c
5071ac_cpp='$CPP $CPPFLAGS'
5072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
Joseph Myers22e05272018-10-31 17:03:16 +00005076ac_ext=c
5077ac_cpp='$CPP $CPPFLAGS'
5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5082$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5083if ${am_cv_prog_cc_c_o+:} false; then :
5084 $as_echo_n "(cached) " >&6
5085else
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h. */
5088
5089int
5090main ()
5091{
5092
5093 ;
5094 return 0;
5095}
5096_ACEOF
5097 # Make sure it works both with $CC and with simple cc.
5098 # Following AC_PROG_CC_C_O, we do the test twice because some
5099 # compilers refuse to overwrite an existing .o file with -o,
5100 # though they will create one.
5101 am_cv_prog_cc_c_o=yes
5102 for am_i in 1 2; do
5103 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5104 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } \
5108 && test -f conftest2.$ac_objext; then
5109 : OK
5110 else
5111 am_cv_prog_cc_c_o=no
5112 break
5113 fi
5114 done
5115 rm -f core conftest*
5116 unset am_i
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5119$as_echo "$am_cv_prog_cc_c_o" >&6; }
5120if test "$am_cv_prog_cc_c_o" != yes; then
5121 # Losing compiler, so override with the script.
5122 # FIXME: It is wrong to rewrite CC.
5123 # But if we don't then we get into trouble of one sort or another.
5124 # A longer-term fix would be to have automake use am__CC in this case,
5125 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5126 CC="$am_aux_dir/compile $CC"
5127fi
5128ac_ext=c
5129ac_cpp='$CPP $CPPFLAGS'
5130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
Iain Buclawb4c522f2018-10-28 19:51:47 +00005135ac_ext=d
5136ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5137ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=yes
5139if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5141set dummy ${ac_tool_prefix}gdc; ac_word=$2
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005144if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005145 $as_echo_n "(cached) " >&6
5146else
5147 if test -n "$GDC"; then
5148 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005157 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162 done
5163IFS=$as_save_IFS
5164
5165fi
5166fi
5167GDC=$ac_cv_prog_GDC
5168if test -n "$GDC"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5170$as_echo "$GDC" >&6; }
5171else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
5175
5176
5177fi
5178if test -z "$ac_cv_prog_GDC"; then
5179 ac_ct_GDC=$GDC
5180 # Extract the first word of "gdc", so it can be a program name with args.
5181set dummy gdc; ac_word=$2
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005184if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 if test -n "$ac_ct_GDC"; then
5188 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005197 ac_cv_prog_ac_ct_GDC="gdc"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202 done
5203IFS=$as_save_IFS
5204
5205fi
5206fi
5207ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5208if test -n "$ac_ct_GDC"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5210$as_echo "$ac_ct_GDC" >&6; }
5211else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214fi
5215
5216 if test "x$ac_ct_GDC" = x; then
5217 GDC=""
5218 else
5219 case $cross_compiling:$ac_tool_warned in
5220yes:)
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223ac_tool_warned=yes ;;
5224esac
5225 GDC=$ac_ct_GDC
5226 fi
5227else
5228 GDC="$ac_cv_prog_GDC"
5229fi
5230
5231if test -z "$GDC"; then
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5234set dummy ${ac_tool_prefix}gdc; ac_word=$2
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005237if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005238 $as_echo_n "(cached) " >&6
5239else
5240 if test -n "$GDC"; then
5241 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5242else
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005250 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254done
5255 done
5256IFS=$as_save_IFS
5257
5258fi
5259fi
5260GDC=$ac_cv_prog_GDC
5261if test -n "$GDC"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5263$as_echo "$GDC" >&6; }
5264else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
5267fi
5268
5269
5270 fi
5271fi
5272if test -z "$GDC"; then
5273 # Extract the first word of "gdc", so it can be a program name with args.
5274set dummy gdc; ac_word=$2
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005277if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005278 $as_echo_n "(cached) " >&6
5279else
5280 if test -n "$GDC"; then
5281 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5282else
5283 ac_prog_rejected=no
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005291 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5292 ac_prog_rejected=yes
5293 continue
5294 fi
5295 ac_cv_prog_GDC="gdc"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300 done
5301IFS=$as_save_IFS
5302
5303if test $ac_prog_rejected = yes; then
5304 # We found a bogon in the path, so make sure we never use it.
5305 set dummy $ac_cv_prog_GDC
5306 shift
5307 if test $# != 0; then
5308 # We chose a different compiler from the bogus one.
5309 # However, it has the same basename, so the bogon will be chosen
5310 # first if we set GDC to just the basename; use the full file name.
5311 shift
5312 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5313 fi
5314fi
5315fi
5316fi
5317GDC=$ac_cv_prog_GDC
5318if test -n "$GDC"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5320$as_echo "$GDC" >&6; }
5321else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324fi
5325
5326
5327fi
5328
5329
5330# Provide some information about the compiler.
5331$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5332set X $ac_compile
5333ac_compiler=$2
5334{ { ac_try="$ac_compiler --version >&5"
5335case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338esac
5339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5340$as_echo "$ac_try_echo"; } >&5
5341 (eval "$ac_compiler --version >&5") 2>conftest.err
5342 ac_status=$?
5343 if test -s conftest.err; then
5344 sed '10a\
5345... rest of stderr output deleted ...
5346 10q' conftest.err >conftest.er1
5347 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005348 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005349 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5351 test $ac_status = 0; }
5352ac_ext=c
5353ac_cpp='$CPP $CPPFLAGS'
5354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5360$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005361if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005362 $as_echo_n "(cached) " >&6
5363else
5364 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5367$as_echo "$phobos_cv_abs_srcdir" >&6; }
5368 if test -d "$phobos_cv_abs_srcdir"; then :
5369
5370else
Joseph Myers22e05272018-10-31 17:03:16 +00005371 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005372fi
5373
5374
5375
5376
5377 gdc_save_DFLAGS=$GDCFLAGS
5378 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5379
5380 ac_ext=d
5381ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5382ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383ac_compiler_gnu=yes
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5386$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5387 cat > conftest.$ac_ext <<_ACEOF
5388module mod;
5389
5390
5391extern(C) int main() {
5392 return 0;
5393}
5394_ACEOF
5395if ac_fn_d_try_compile "$LINENO"; then :
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5397$as_echo "yes" >&6; }
5398else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005401 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_ext=c
5405ac_cpp='$CPP $CPPFLAGS'
5406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5408ac_compiler_gnu=$ac_cv_c_compiler_gnu
5409
5410
5411 GDCFLAGS=$gdc_save_DFLAGS
5412
5413
5414
5415
5416
5417
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5419$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5420 # Check whether --enable-maintainer-mode was given.
5421if test "${enable_maintainer_mode+set}" = set; then :
5422 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5423else
5424 USE_MAINTAINER_MODE=no
5425fi
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5428$as_echo "$USE_MAINTAINER_MODE" >&6; }
5429 if test $USE_MAINTAINER_MODE = yes; then
5430 MAINTAINER_MODE_TRUE=
5431 MAINTAINER_MODE_FALSE='#'
5432else
5433 MAINTAINER_MODE_TRUE='#'
5434 MAINTAINER_MODE_FALSE=
5435fi
5436
5437 MAINT=$MAINTAINER_MODE_TRUE
5438
5439
5440if test -n "$ac_tool_prefix"; then
5441 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5442set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005445if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005446 $as_echo_n "(cached) " >&6
5447else
5448 if test -n "$RANLIB"; then
5449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463 done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468RANLIB=$ac_cv_prog_RANLIB
5469if test -n "$RANLIB"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5471$as_echo "$RANLIB" >&6; }
5472else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478fi
5479if test -z "$ac_cv_prog_RANLIB"; then
5480 ac_ct_RANLIB=$RANLIB
5481 # Extract the first word of "ranlib", so it can be a program name with args.
5482set dummy ranlib; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005485if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005486 $as_echo_n "(cached) " >&6
5487else
5488 if test -n "$ac_ct_RANLIB"; then
5489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005498 ac_cv_prog_ac_ct_RANLIB="ranlib"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502done
5503 done
5504IFS=$as_save_IFS
5505
5506fi
5507fi
5508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5509if test -n "$ac_ct_RANLIB"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5511$as_echo "$ac_ct_RANLIB" >&6; }
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517 if test "x$ac_ct_RANLIB" = x; then
5518 RANLIB=":"
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521yes:)
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524ac_tool_warned=yes ;;
5525esac
5526 RANLIB=$ac_ct_RANLIB
5527 fi
5528else
5529 RANLIB="$ac_cv_prog_RANLIB"
5530fi
5531
5532
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5534$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5535set x ${MAKE-make}
5536ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005537if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005538 $as_echo_n "(cached) " >&6
5539else
5540 cat >conftest.make <<\_ACEOF
5541SHELL = /bin/sh
5542all:
5543 @echo '@@@%%%=$(MAKE)=@@@%%%'
5544_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005545# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005546case `${MAKE-make} -f conftest.make 2>/dev/null` in
5547 *@@@%%%=?*=@@@%%%*)
5548 eval ac_cv_prog_make_${ac_make}_set=yes;;
5549 *)
5550 eval ac_cv_prog_make_${ac_make}_set=no;;
5551esac
5552rm -f conftest.make
5553fi
5554if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5556$as_echo "yes" >&6; }
5557 SET_MAKE=
5558else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560$as_echo "no" >&6; }
5561 SET_MAKE="MAKE=${MAKE-make}"
5562fi
5563
5564
5565# This should be inherited in the recursive make, but ensure it is defined.
5566test "$AR" || AR=ar
5567
5568
5569CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5570
5571
5572
5573# Enable libtool
5574case `pwd` in
5575 *\ * | *\ *)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5577$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5578esac
5579
5580
5581
5582macro_version='2.2.7a'
5583macro_revision='1.3134'
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597ltmain="$ac_aux_dir/ltmain.sh"
5598
5599# Backslashify metacharacters that are still active within
5600# double-quoted strings.
5601sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5602
5603# Same as above, but do not quote variable references.
5604double_quote_subst='s/\(["`\\]\)/\\\1/g'
5605
5606# Sed substitution to delay expansion of an escaped shell variable in a
5607# double_quote_subst'ed string.
5608delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5609
5610# Sed substitution to delay expansion of an escaped single quote.
5611delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5612
5613# Sed substitution to avoid accidental globbing in evaled expressions
5614no_glob_subst='s/\*/\\\*/g'
5615
5616ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5617ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5618ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5621$as_echo_n "checking how to print strings... " >&6; }
5622# Test print first, because it will be a builtin if present.
5623if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5624 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5625 ECHO='print -r --'
5626elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5627 ECHO='printf %s\n'
5628else
5629 # Use this function as a fallback that always works.
5630 func_fallback_echo ()
5631 {
5632 eval 'cat <<_LTECHO_EOF
5633$1
5634_LTECHO_EOF'
5635 }
5636 ECHO='func_fallback_echo'
5637fi
5638
5639# func_echo_all arg...
5640# Invoke $ECHO with all args, space-separated.
5641func_echo_all ()
5642{
5643 $ECHO ""
5644}
5645
5646case "$ECHO" in
5647 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5648$as_echo "printf" >&6; } ;;
5649 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5650$as_echo "print -r" >&6; } ;;
5651 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5652$as_echo "cat" >&6; } ;;
5653esac
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5669$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005670if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005671 $as_echo_n "(cached) " >&6
5672else
5673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5674 for ac_i in 1 2 3 4 5 6 7; do
5675 ac_script="$ac_script$as_nl$ac_script"
5676 done
5677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5678 { ac_script=; unset ac_script;}
5679 if test -z "$SED"; then
5680 ac_path_SED_found=false
5681 # Loop through the user's path and test for each of PROGNAME-LIST
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_prog in sed gsed; do
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005690 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005691# Check for GNU ac_path_SED and select it if it is found.
5692 # Check for GNU $ac_path_SED
5693case `"$ac_path_SED" --version 2>&1` in
5694*GNU*)
5695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5696*)
5697 ac_count=0
5698 $as_echo_n 0123456789 >"conftest.in"
5699 while :
5700 do
5701 cat "conftest.in" "conftest.in" >"conftest.tmp"
5702 mv "conftest.tmp" "conftest.in"
5703 cp "conftest.in" "conftest.nl"
5704 $as_echo '' >> "conftest.nl"
5705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5707 as_fn_arith $ac_count + 1 && ac_count=$as_val
5708 if test $ac_count -gt ${ac_path_SED_max-0}; then
5709 # Best one so far, save it but keep looking for a better one
5710 ac_cv_path_SED="$ac_path_SED"
5711 ac_path_SED_max=$ac_count
5712 fi
5713 # 10*(2^10) chars as input seems more than enough
5714 test $ac_count -gt 10 && break
5715 done
5716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5717esac
5718
5719 $ac_path_SED_found && break 3
5720 done
5721 done
5722 done
5723IFS=$as_save_IFS
5724 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005726 fi
5727else
5728 ac_cv_path_SED=$SED
5729fi
5730
5731fi
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5733$as_echo "$ac_cv_path_SED" >&6; }
5734 SED="$ac_cv_path_SED"
5735 rm -f conftest.sed
5736
5737test -z "$SED" && SED=sed
5738Xsed="$SED -e 1s/^X//"
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
Iain Buclawb4c522f2018-10-28 19:51:47 +00005750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5751$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005752if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005753 $as_echo_n "(cached) " >&6
5754else
5755 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5756 then ac_cv_path_FGREP="$GREP -F"
5757 else
5758 if test -z "$FGREP"; then
5759 ac_path_FGREP_found=false
5760 # Loop through the user's path and test for each of PROGNAME-LIST
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_prog in fgrep; do
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005769 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005770# Check for GNU ac_path_FGREP and select it if it is found.
5771 # Check for GNU $ac_path_FGREP
5772case `"$ac_path_FGREP" --version 2>&1` in
5773*GNU*)
5774 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5775*)
5776 ac_count=0
5777 $as_echo_n 0123456789 >"conftest.in"
5778 while :
5779 do
5780 cat "conftest.in" "conftest.in" >"conftest.tmp"
5781 mv "conftest.tmp" "conftest.in"
5782 cp "conftest.in" "conftest.nl"
5783 $as_echo 'FGREP' >> "conftest.nl"
5784 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5786 as_fn_arith $ac_count + 1 && ac_count=$as_val
5787 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5788 # Best one so far, save it but keep looking for a better one
5789 ac_cv_path_FGREP="$ac_path_FGREP"
5790 ac_path_FGREP_max=$ac_count
5791 fi
5792 # 10*(2^10) chars as input seems more than enough
5793 test $ac_count -gt 10 && break
5794 done
5795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5796esac
5797
5798 $ac_path_FGREP_found && break 3
5799 done
5800 done
5801 done
5802IFS=$as_save_IFS
5803 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005804 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005805 fi
5806else
5807 ac_cv_path_FGREP=$FGREP
5808fi
5809
5810 fi
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5813$as_echo "$ac_cv_path_FGREP" >&6; }
5814 FGREP="$ac_cv_path_FGREP"
5815
5816
5817test -z "$GREP" && GREP=grep
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837# Check whether --with-gnu-ld was given.
5838if test "${with_gnu_ld+set}" = set; then :
5839 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5840else
5841 with_gnu_ld=no
5842fi
5843
5844ac_prog=ld
5845if test "$GCC" = yes; then
5846 # Check if gcc -print-prog-name=ld gives a path.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5848$as_echo_n "checking for ld used by $CC... " >&6; }
5849 case $host in
5850 *-*-mingw*)
5851 # gcc leaves a trailing carriage return which upsets mingw
5852 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5853 *)
5854 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5855 esac
5856 case $ac_prog in
5857 # Accept absolute paths.
5858 [\\/]* | ?:[\\/]*)
5859 re_direlt='/[^/][^/]*/\.\./'
5860 # Canonicalize the pathname of ld
5861 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5862 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5863 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5864 done
5865 test -z "$LD" && LD="$ac_prog"
5866 ;;
5867 "")
5868 # If it fails, then pretend we aren't using GCC.
5869 ac_prog=ld
5870 ;;
5871 *)
5872 # If it is relative, then search for the first ld in PATH.
5873 with_gnu_ld=unknown
5874 ;;
5875 esac
5876elif test "$with_gnu_ld" = yes; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5878$as_echo_n "checking for GNU ld... " >&6; }
5879else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5881$as_echo_n "checking for non-GNU ld... " >&6; }
5882fi
Joseph Myers22e05272018-10-31 17:03:16 +00005883if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005884 $as_echo_n "(cached) " >&6
5885else
5886 if test -z "$LD"; then
5887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5888 for ac_dir in $PATH; do
5889 IFS="$lt_save_ifs"
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5892 lt_cv_path_LD="$ac_dir/$ac_prog"
5893 # Check to see if the program is GNU ld. I'd rather use --version,
5894 # but apparently some variants of GNU ld only accept -v.
5895 # Break only if it was the GNU/non-GNU ld that we prefer.
5896 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5897 *GNU* | *'with BFD'*)
5898 test "$with_gnu_ld" != no && break
5899 ;;
5900 *)
5901 test "$with_gnu_ld" != yes && break
5902 ;;
5903 esac
5904 fi
5905 done
5906 IFS="$lt_save_ifs"
5907else
5908 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5909fi
5910fi
5911
5912LD="$lt_cv_path_LD"
5913if test -n "$LD"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5915$as_echo "$LD" >&6; }
5916else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919fi
Joseph Myers22e05272018-10-31 17:03:16 +00005920test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5922$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005923if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005924 $as_echo_n "(cached) " >&6
5925else
5926 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5927case `$LD -v 2>&1 </dev/null` in
5928*GNU* | *'with BFD'*)
5929 lt_cv_prog_gnu_ld=yes
5930 ;;
5931*)
5932 lt_cv_prog_gnu_ld=no
5933 ;;
5934esac
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5937$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5938with_gnu_ld=$lt_cv_prog_gnu_ld
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5949$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005950if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005951 $as_echo_n "(cached) " >&6
5952else
5953 if test -n "$NM"; then
5954 # Let the user override the test.
5955 lt_cv_path_NM="$NM"
5956else
5957 lt_nm_to_check="${ac_tool_prefix}nm"
5958 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5959 lt_nm_to_check="$lt_nm_to_check nm"
5960 fi
5961 for lt_tmp_nm in $lt_nm_to_check; do
5962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5963 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5964 IFS="$lt_save_ifs"
5965 test -z "$ac_dir" && ac_dir=.
5966 tmp_nm="$ac_dir/$lt_tmp_nm"
5967 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5968 # Check to see if the nm accepts a BSD-compat flag.
5969 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5970 # nm: unknown option "B" ignored
5971 # Tru64's nm complains that /dev/null is an invalid object file
5972 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5973 */dev/null* | *'Invalid file or object type'*)
5974 lt_cv_path_NM="$tmp_nm -B"
5975 break
5976 ;;
5977 *)
5978 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5979 */dev/null*)
5980 lt_cv_path_NM="$tmp_nm -p"
5981 break
5982 ;;
5983 *)
5984 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5985 continue # so that we can try to find one that supports BSD flags
5986 ;;
5987 esac
5988 ;;
5989 esac
5990 fi
5991 done
5992 IFS="$lt_save_ifs"
5993 done
5994 : ${lt_cv_path_NM=no}
5995fi
5996fi
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5998$as_echo "$lt_cv_path_NM" >&6; }
5999if test "$lt_cv_path_NM" != "no"; then
6000 NM="$lt_cv_path_NM"
6001else
6002 # Didn't find any BSD compatible name lister, look for dumpbin.
6003 if test -n "$DUMPBIN"; then :
6004 # Let the user override the test.
6005 else
6006 if test -n "$ac_tool_prefix"; then
6007 for ac_prog in dumpbin "link -dump"
6008 do
6009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006013if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006014 $as_echo_n "(cached) " >&6
6015else
6016 if test -n "$DUMPBIN"; then
6017 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006026 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030done
6031 done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036DUMPBIN=$ac_cv_prog_DUMPBIN
6037if test -n "$DUMPBIN"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6039$as_echo "$DUMPBIN" >&6; }
6040else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046 test -n "$DUMPBIN" && break
6047 done
6048fi
6049if test -z "$DUMPBIN"; then
6050 ac_ct_DUMPBIN=$DUMPBIN
6051 for ac_prog in dumpbin "link -dump"
6052do
6053 # Extract the first word of "$ac_prog", so it can be a program name with args.
6054set dummy $ac_prog; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006057if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006058 $as_echo_n "(cached) " >&6
6059else
6060 if test -n "$ac_ct_DUMPBIN"; then
6061 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006070 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075 done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6081if test -n "$ac_ct_DUMPBIN"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6083$as_echo "$ac_ct_DUMPBIN" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089
6090 test -n "$ac_ct_DUMPBIN" && break
6091done
6092
6093 if test "x$ac_ct_DUMPBIN" = x; then
6094 DUMPBIN=":"
6095 else
6096 case $cross_compiling:$ac_tool_warned in
6097yes:)
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100ac_tool_warned=yes ;;
6101esac
6102 DUMPBIN=$ac_ct_DUMPBIN
6103 fi
6104fi
6105
6106 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6107 *COFF*)
6108 DUMPBIN="$DUMPBIN -symbols"
6109 ;;
6110 *)
6111 DUMPBIN=:
6112 ;;
6113 esac
6114 fi
6115
6116 if test "$DUMPBIN" != ":"; then
6117 NM="$DUMPBIN"
6118 fi
6119fi
6120test -z "$NM" && NM=nm
6121
6122
6123
6124
6125
6126
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6128$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006129if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006130 $as_echo_n "(cached) " >&6
6131else
6132 lt_cv_nm_interface="BSD nm"
6133 echo "int some_variable = 0;" > conftest.$ac_ext
6134 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6135 (eval "$ac_compile" 2>conftest.err)
6136 cat conftest.err >&5
6137 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6138 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6139 cat conftest.err >&5
6140 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6141 cat conftest.out >&5
6142 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6143 lt_cv_nm_interface="MS dumpbin"
6144 fi
6145 rm -f conftest*
6146fi
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6148$as_echo "$lt_cv_nm_interface" >&6; }
6149
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6151$as_echo_n "checking whether ln -s works... " >&6; }
6152LN_S=$as_ln_s
6153if test "$LN_S" = "ln -s"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6155$as_echo "yes" >&6; }
6156else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6158$as_echo "no, using $LN_S" >&6; }
6159fi
6160
6161# find the maximum length of command line arguments
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6163$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006164if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006165 $as_echo_n "(cached) " >&6
6166else
6167 i=0
6168 teststring="ABCD"
6169
6170 case $build_os in
6171 msdosdjgpp*)
6172 # On DJGPP, this test can blow up pretty badly due to problems in libc
6173 # (any single argument exceeding 2000 bytes causes a buffer overrun
6174 # during glob expansion). Even if it were fixed, the result of this
6175 # check would be larger than it should be.
6176 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6177 ;;
6178
6179 gnu*)
6180 # Under GNU Hurd, this test is not required because there is
6181 # no limit to the length of command line arguments.
6182 # Libtool will interpret -1 as no limit whatsoever
6183 lt_cv_sys_max_cmd_len=-1;
6184 ;;
6185
6186 cygwin* | mingw* | cegcc*)
6187 # On Win9x/ME, this test blows up -- it succeeds, but takes
6188 # about 5 minutes as the teststring grows exponentially.
6189 # Worse, since 9x/ME are not pre-emptively multitasking,
6190 # you end up with a "frozen" computer, even though with patience
6191 # the test eventually succeeds (with a max line length of 256k).
6192 # Instead, let's just punt: use the minimum linelength reported by
6193 # all of the supported platforms: 8192 (on NT/2K/XP).
6194 lt_cv_sys_max_cmd_len=8192;
6195 ;;
6196
6197 mint*)
6198 # On MiNT this can take a long time and run out of memory.
6199 lt_cv_sys_max_cmd_len=8192;
6200 ;;
6201
6202 amigaos*)
6203 # On AmigaOS with pdksh, this test takes hours, literally.
6204 # So we just punt and use a minimum line length of 8192.
6205 lt_cv_sys_max_cmd_len=8192;
6206 ;;
6207
6208 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6209 # This has been around since 386BSD, at least. Likely further.
6210 if test -x /sbin/sysctl; then
6211 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6212 elif test -x /usr/sbin/sysctl; then
6213 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6214 else
6215 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6216 fi
6217 # And add a safety zone
6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6220 ;;
6221
6222 interix*)
6223 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6224 lt_cv_sys_max_cmd_len=196608
6225 ;;
6226
6227 osf*)
6228 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6229 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6230 # nice to cause kernel panics so lets avoid the loop below.
6231 # First set a reasonable default.
6232 lt_cv_sys_max_cmd_len=16384
6233 #
6234 if test -x /sbin/sysconfig; then
6235 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6236 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6237 esac
6238 fi
6239 ;;
6240 sco3.2v5*)
6241 lt_cv_sys_max_cmd_len=102400
6242 ;;
6243 sysv5* | sco5v6* | sysv4.2uw2*)
6244 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6245 if test -n "$kargmax"; then
6246 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6247 else
6248 lt_cv_sys_max_cmd_len=32768
6249 fi
6250 ;;
6251 *)
6252 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6253 if test -n "$lt_cv_sys_max_cmd_len"; then
6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6256 else
6257 # Make teststring a little bigger before we do anything with it.
6258 # a 1K string should be a reasonable start.
6259 for i in 1 2 3 4 5 6 7 8 ; do
6260 teststring=$teststring$teststring
6261 done
6262 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6263 # If test is not a shell built-in, we'll probably end up computing a
6264 # maximum length that is only half of the actual maximum length, but
6265 # we can't tell.
6266 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6267 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6268 test $i != 17 # 1/2 MB should be enough
6269 do
6270 i=`expr $i + 1`
6271 teststring=$teststring$teststring
6272 done
6273 # Only check the string length outside the loop.
6274 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6275 teststring=
6276 # Add a significant safety factor because C++ compilers can tack on
6277 # massive amounts of additional arguments before passing them to the
6278 # linker. It appears as though 1/2 is a usable value.
6279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6280 fi
6281 ;;
6282 esac
6283
6284fi
6285
6286if test -n $lt_cv_sys_max_cmd_len ; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6288$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6289else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6291$as_echo "none" >&6; }
6292fi
6293max_cmd_len=$lt_cv_sys_max_cmd_len
6294
6295
6296
6297
6298
6299
6300: ${CP="cp -f"}
6301: ${MV="mv -f"}
6302: ${RM="rm -f"}
6303
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6305$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6306# Try some XSI features
6307xsi_shell=no
6308( _lt_dummy="a/b/c"
6309 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6310 = c,a/b,, \
6311 && eval 'test $(( 1 + 1 )) -eq 2 \
6312 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6313 && xsi_shell=yes
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6315$as_echo "$xsi_shell" >&6; }
6316
6317
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6319$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6320lt_shell_append=no
6321( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6322 >/dev/null 2>&1 \
6323 && lt_shell_append=yes
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6325$as_echo "$lt_shell_append" >&6; }
6326
6327
6328if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6329 lt_unset=unset
6330else
6331 lt_unset=false
6332fi
6333
6334
6335
6336
6337
6338# test EBCDIC or ASCII
6339case `echo X|tr X '\101'` in
6340 A) # ASCII based system
6341 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6342 lt_SP2NL='tr \040 \012'
6343 lt_NL2SP='tr \015\012 \040\040'
6344 ;;
6345 *) # EBCDIC based system
6346 lt_SP2NL='tr \100 \n'
6347 lt_NL2SP='tr \r\n \100\100'
6348 ;;
6349esac
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6360$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006361if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006362 $as_echo_n "(cached) " >&6
6363else
6364 lt_cv_ld_reload_flag='-r'
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6367$as_echo "$lt_cv_ld_reload_flag" >&6; }
6368reload_flag=$lt_cv_ld_reload_flag
6369case $reload_flag in
6370"" | " "*) ;;
6371*) reload_flag=" $reload_flag" ;;
6372esac
6373reload_cmds='$LD$reload_flag -o $output$reload_objs'
6374case $host_os in
6375 darwin*)
6376 if test "$GCC" = yes; then
6377 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6378 else
6379 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6380 fi
6381 ;;
6382esac
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6394set dummy ${ac_tool_prefix}objdump; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006397if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006398 $as_echo_n "(cached) " >&6
6399else
6400 if test -n "$OBJDUMP"; then
6401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420OBJDUMP=$ac_cv_prog_OBJDUMP
6421if test -n "$OBJDUMP"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6423$as_echo "$OBJDUMP" >&6; }
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430fi
6431if test -z "$ac_cv_prog_OBJDUMP"; then
6432 ac_ct_OBJDUMP=$OBJDUMP
6433 # Extract the first word of "objdump", so it can be a program name with args.
6434set dummy objdump; ac_word=$2
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006437if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006438 $as_echo_n "(cached) " >&6
6439else
6440 if test -n "$ac_ct_OBJDUMP"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006450 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455 done
6456IFS=$as_save_IFS
6457
6458fi
6459fi
6460ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6461if test -n "$ac_ct_OBJDUMP"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6463$as_echo "$ac_ct_OBJDUMP" >&6; }
6464else
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469 if test "x$ac_ct_OBJDUMP" = x; then
6470 OBJDUMP="false"
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473yes:)
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476ac_tool_warned=yes ;;
6477esac
6478 OBJDUMP=$ac_ct_OBJDUMP
6479 fi
6480else
6481 OBJDUMP="$ac_cv_prog_OBJDUMP"
6482fi
6483
6484test -z "$OBJDUMP" && OBJDUMP=objdump
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6495$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006496if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006497 $as_echo_n "(cached) " >&6
6498else
6499 lt_cv_file_magic_cmd='$MAGIC_CMD'
6500lt_cv_file_magic_test_file=
6501lt_cv_deplibs_check_method='unknown'
6502# Need to set the preceding variable on all platforms that support
6503# interlibrary dependencies.
6504# 'none' -- dependencies not supported.
6505# `unknown' -- same as none, but documents that we really don't know.
6506# 'pass_all' -- all dependencies passed with no checks.
6507# 'test_compile' -- check by making test program.
6508# 'file_magic [[regex]]' -- check by looking for files in library path
6509# which responds to the $file_magic_cmd with a given extended regex.
6510# If you have `file' or equivalent on your system and you're not sure
6511# whether `pass_all' will *always* work, you probably want this one.
6512
6513case $host_os in
6514aix[4-9]*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518beos*)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522bsdi[45]*)
6523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6524 lt_cv_file_magic_cmd='/usr/bin/file -L'
6525 lt_cv_file_magic_test_file=/shlib/libc.so
6526 ;;
6527
6528cygwin*)
6529 # func_win32_libid is a shell function defined in ltmain.sh
6530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531 lt_cv_file_magic_cmd='func_win32_libid'
6532 ;;
6533
6534mingw* | pw32*)
6535 # Base MSYS/MinGW do not provide the 'file' command needed by
6536 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6537 # unless we find 'file', for example because we are cross-compiling.
6538 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6539 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6541 lt_cv_file_magic_cmd='func_win32_libid'
6542 else
6543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6544 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 fi
6546 ;;
6547
6548cegcc*)
6549 # use the weaker test based on 'objdump'. See mingw*.
6550 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6551 lt_cv_file_magic_cmd='$OBJDUMP -f'
6552 ;;
6553
6554darwin* | rhapsody*)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557
6558freebsd* | dragonfly*)
6559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6560 case $host_cpu in
6561 i*86 )
6562 # Not sure whether the presence of OpenBSD here was a mistake.
6563 # Let's accept both of them until this is cleared up.
6564 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6565 lt_cv_file_magic_cmd=/usr/bin/file
6566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6567 ;;
6568 esac
6569 else
6570 lt_cv_deplibs_check_method=pass_all
6571 fi
6572 ;;
6573
6574gnu*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578haiku*)
6579 lt_cv_deplibs_check_method=pass_all
6580 ;;
6581
6582hpux10.20* | hpux11*)
6583 lt_cv_file_magic_cmd=/usr/bin/file
6584 case $host_cpu in
6585 ia64*)
6586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6588 ;;
6589 hppa*64*)
6590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6592 ;;
6593 *)
6594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6596 ;;
6597 esac
6598 ;;
6599
6600interix[3-9]*)
6601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6603 ;;
6604
6605irix5* | irix6* | nonstopux*)
6606 case $LD in
6607 *-32|*"-32 ") libmagic=32-bit;;
6608 *-n32|*"-n32 ") libmagic=N32;;
6609 *-64|*"-64 ") libmagic=64-bit;;
6610 *) libmagic=never-match;;
6611 esac
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614
6615# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00006616linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00006617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619
6620netbsd*)
6621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6623 else
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6625 fi
6626 ;;
6627
6628newos6*)
6629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6630 lt_cv_file_magic_cmd=/usr/bin/file
6631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6632 ;;
6633
6634*nto* | *qnx*)
6635 lt_cv_deplibs_check_method=pass_all
6636 ;;
6637
6638openbsd*)
6639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6641 else
6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6643 fi
6644 ;;
6645
6646osf3* | osf4* | osf5*)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649
6650rdos*)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
6653
6654solaris*)
6655 lt_cv_deplibs_check_method=pass_all
6656 ;;
6657
6658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661
6662sysv4 | sysv4.3*)
6663 case $host_vendor in
6664 motorola)
6665 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]'
6666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6667 ;;
6668 ncr)
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671 sequent)
6672 lt_cv_file_magic_cmd='/bin/file'
6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6674 ;;
6675 sni)
6676 lt_cv_file_magic_cmd='/bin/file'
6677 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6678 lt_cv_file_magic_test_file=/lib/libc.so
6679 ;;
6680 siemens)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683 pc)
6684 lt_cv_deplibs_check_method=pass_all
6685 ;;
6686 esac
6687 ;;
6688
6689tpf*)
6690 lt_cv_deplibs_check_method=pass_all
6691 ;;
6692esac
6693
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6696$as_echo "$lt_cv_deplibs_check_method" >&6; }
6697file_magic_cmd=$lt_cv_file_magic_cmd
6698deplibs_check_method=$lt_cv_deplibs_check_method
6699test -z "$deplibs_check_method" && deplibs_check_method=unknown
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712if test -n "$ac_tool_prefix"; then
6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714set dummy ${ac_tool_prefix}ar; ac_word=$2
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006717if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006718 $as_echo_n "(cached) " >&6
6719else
6720 if test -n "$AR"; then
6721 ac_cv_prog_AR="$AR" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006730 ac_cv_prog_AR="${ac_tool_prefix}ar"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735 done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740AR=$ac_cv_prog_AR
6741if test -n "$AR"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6743$as_echo "$AR" >&6; }
6744else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
6748
6749
6750fi
6751if test -z "$ac_cv_prog_AR"; then
6752 ac_ct_AR=$AR
6753 # Extract the first word of "ar", so it can be a program name with args.
6754set dummy ar; ac_word=$2
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006757if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006758 $as_echo_n "(cached) " >&6
6759else
6760 if test -n "$ac_ct_AR"; then
6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006770 ac_cv_prog_ac_ct_AR="ar"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774done
6775 done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781if test -n "$ac_ct_AR"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6783$as_echo "$ac_ct_AR" >&6; }
6784else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786$as_echo "no" >&6; }
6787fi
6788
6789 if test "x$ac_ct_AR" = x; then
6790 AR="false"
6791 else
6792 case $cross_compiling:$ac_tool_warned in
6793yes:)
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796ac_tool_warned=yes ;;
6797esac
6798 AR=$ac_ct_AR
6799 fi
6800else
6801 AR="$ac_cv_prog_AR"
6802fi
6803
6804test -z "$AR" && AR=ar
6805test -z "$AR_FLAGS" && AR_FLAGS=cru
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819set dummy ${ac_tool_prefix}strip; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006822if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006823 $as_echo_n "(cached) " >&6
6824else
6825 if test -n "$STRIP"; then
6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840 done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845STRIP=$ac_cv_prog_STRIP
6846if test -n "$STRIP"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6848$as_echo "$STRIP" >&6; }
6849else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854
6855fi
6856if test -z "$ac_cv_prog_STRIP"; then
6857 ac_ct_STRIP=$STRIP
6858 # Extract the first word of "strip", so it can be a program name with args.
6859set dummy strip; ac_word=$2
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006862if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006863 $as_echo_n "(cached) " >&6
6864else
6865 if test -n "$ac_ct_STRIP"; then
6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006875 ac_cv_prog_ac_ct_STRIP="strip"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880 done
6881IFS=$as_save_IFS
6882
6883fi
6884fi
6885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886if test -n "$ac_ct_STRIP"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6888$as_echo "$ac_ct_STRIP" >&6; }
6889else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891$as_echo "no" >&6; }
6892fi
6893
6894 if test "x$ac_ct_STRIP" = x; then
6895 STRIP=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898yes:)
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901ac_tool_warned=yes ;;
6902esac
6903 STRIP=$ac_ct_STRIP
6904 fi
6905else
6906 STRIP="$ac_cv_prog_STRIP"
6907fi
6908
6909test -z "$STRIP" && STRIP=:
6910
6911
6912
6913
6914
6915
6916if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6918set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006921if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006922 $as_echo_n "(cached) " >&6
6923else
6924 if test -n "$RANLIB"; then
6925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939 done
6940IFS=$as_save_IFS
6941
6942fi
6943fi
6944RANLIB=$ac_cv_prog_RANLIB
6945if test -n "$RANLIB"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6947$as_echo "$RANLIB" >&6; }
6948else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
6951fi
6952
6953
6954fi
6955if test -z "$ac_cv_prog_RANLIB"; then
6956 ac_ct_RANLIB=$RANLIB
6957 # Extract the first word of "ranlib", so it can be a program name with args.
6958set dummy ranlib; ac_word=$2
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006961if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006962 $as_echo_n "(cached) " >&6
6963else
6964 if test -n "$ac_ct_RANLIB"; then
6965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006974 ac_cv_prog_ac_ct_RANLIB="ranlib"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978done
6979 done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6985if test -n "$ac_ct_RANLIB"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6987$as_echo "$ac_ct_RANLIB" >&6; }
6988else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993 if test "x$ac_ct_RANLIB" = x; then
6994 RANLIB=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997yes:)
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000ac_tool_warned=yes ;;
7001esac
7002 RANLIB=$ac_ct_RANLIB
7003 fi
7004else
7005 RANLIB="$ac_cv_prog_RANLIB"
7006fi
7007
7008test -z "$RANLIB" && RANLIB=:
7009
7010
7011
7012
7013
7014
7015# Determine commands to create old-style static archives.
7016old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7017old_postinstall_cmds='chmod 644 $oldlib'
7018old_postuninstall_cmds=
7019
7020if test -n "$RANLIB"; then
7021 case $host_os in
7022 openbsd*)
7023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7024 ;;
7025 *)
7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7027 ;;
7028 esac
7029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7030fi
7031
7032case $host_os in
7033 darwin*)
7034 lock_old_archive_extraction=yes ;;
7035 *)
7036 lock_old_archive_extraction=no ;;
7037esac
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077# If no C compiler was specified, use CC.
7078LTCC=${LTCC-"$CC"}
7079
7080# If no C compiler flags were specified, use CFLAGS.
7081LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7082
7083# Allow CC to be a program name with arguments.
7084compiler=$CC
7085
7086
7087# Check for command to grab the raw symbol name followed by C symbol from nm.
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7089$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007090if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007091 $as_echo_n "(cached) " >&6
7092else
7093
7094# These are sane defaults that work on at least a few old systems.
7095# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7096
7097# Character class describing NM global symbol codes.
7098symcode='[BCDEGRST]'
7099
7100# Regexp to match symbols that can be accessed directly from C.
7101sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7102
7103# Define system-specific variables.
7104case $host_os in
7105aix*)
7106 symcode='[BCDT]'
7107 ;;
7108cygwin* | mingw* | pw32* | cegcc*)
7109 symcode='[ABCDGISTW]'
7110 ;;
7111hpux*)
7112 if test "$host_cpu" = ia64; then
7113 symcode='[ABCDEGRST]'
7114 fi
7115 ;;
7116irix* | nonstopux*)
7117 symcode='[BCDEGRST]'
7118 ;;
7119osf*)
7120 symcode='[BCDEGQRST]'
7121 ;;
7122solaris*)
7123 symcode='[BDRT]'
7124 ;;
7125sco3.2v5*)
7126 symcode='[DT]'
7127 ;;
7128sysv4.2uw2*)
7129 symcode='[DT]'
7130 ;;
7131sysv5* | sco5v6* | unixware* | OpenUNIX*)
7132 symcode='[ABDT]'
7133 ;;
7134sysv4)
7135 symcode='[DFNSTU]'
7136 ;;
7137esac
7138
7139# If we're using GNU nm, then use its standard symbol codes.
7140case `$NM -V 2>&1` in
7141*GNU* | *'with BFD'*)
7142 symcode='[ABCDGIRSTW]' ;;
7143esac
7144
7145# Transform an extracted symbol line into a proper C declaration.
7146# Some systems (esp. on ia64) link data and code symbols differently,
7147# so use this general approach.
7148lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7149
7150# Transform an extracted symbol line into symbol name and symbol address
7151lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7152lt_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'"
7153
7154# Handle CRLF in mingw tool chain
7155opt_cr=
7156case $build_os in
7157mingw*)
7158 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7159 ;;
7160esac
7161
7162# Try without a prefix underscore, then with it.
7163for ac_symprfx in "" "_"; do
7164
7165 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7166 symxfrm="\\1 $ac_symprfx\\2 \\2"
7167
7168 # Write the raw and C identifiers.
7169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7170 # Fake it for dumpbin and say T for any non-static function
7171 # and D for any global variable.
7172 # Also find C++ and __fastcall symbols from MSVC++,
7173 # which start with @ or ?.
7174 lt_cv_sys_global_symbol_pipe="$AWK '"\
7175" {last_section=section; section=\$ 3};"\
7176" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7177" \$ 0!~/External *\|/{next};"\
7178" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7179" {if(hide[section]) next};"\
7180" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7181" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7182" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7183" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7184" ' prfx=^$ac_symprfx"
7185 else
7186 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7187 fi
7188
7189 # Check to see that the pipe works correctly.
7190 pipe_works=no
7191
7192 rm -f conftest*
7193 cat > conftest.$ac_ext <<_LT_EOF
7194#ifdef __cplusplus
7195extern "C" {
7196#endif
7197char nm_test_var;
7198void nm_test_func(void);
7199void nm_test_func(void){}
7200#ifdef __cplusplus
7201}
7202#endif
7203int main(){nm_test_var='a';nm_test_func();return(0);}
7204_LT_EOF
7205
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207 (eval $ac_compile) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; }; then
7211 # Now try to grab the symbols.
7212 nlist=conftest.nm
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7214 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; } && test -s "$nlist"; then
7218 # Try sorting and uniquifying the output.
7219 if sort "$nlist" | uniq > "$nlist"T; then
7220 mv -f "$nlist"T "$nlist"
7221 else
7222 rm -f "$nlist"T
7223 fi
7224
7225 # Make sure that we snagged all the symbols we need.
7226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7228 cat <<_LT_EOF > conftest.$ac_ext
7229#ifdef __cplusplus
7230extern "C" {
7231#endif
7232
7233_LT_EOF
7234 # Now generate the symbol file.
7235 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7236
7237 cat <<_LT_EOF >> conftest.$ac_ext
7238
7239/* The mapping between symbol names and symbols. */
7240const struct {
7241 const char *name;
7242 void *address;
7243}
7244lt__PROGRAM__LTX_preloaded_symbols[] =
7245{
7246 { "@PROGRAM@", (void *) 0 },
7247_LT_EOF
7248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7249 cat <<\_LT_EOF >> conftest.$ac_ext
7250 {0, (void *) 0}
7251};
7252
7253/* This works around a problem in FreeBSD linker */
7254#ifdef FREEBSD_WORKAROUND
7255static const void *lt_preloaded_setup() {
7256 return lt__PROGRAM__LTX_preloaded_symbols;
7257}
7258#endif
7259
7260#ifdef __cplusplus
7261}
7262#endif
7263_LT_EOF
7264 # Now try linking the two files.
7265 mv conftest.$ac_objext conftstm.$ac_objext
7266 lt_save_LIBS="$LIBS"
7267 lt_save_CFLAGS="$CFLAGS"
7268 LIBS="conftstm.$ac_objext"
7269 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7271 (eval $ac_link) 2>&5
7272 ac_status=$?
7273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7275 pipe_works=yes
7276 fi
7277 LIBS="$lt_save_LIBS"
7278 CFLAGS="$lt_save_CFLAGS"
7279 else
7280 echo "cannot find nm_test_func in $nlist" >&5
7281 fi
7282 else
7283 echo "cannot find nm_test_var in $nlist" >&5
7284 fi
7285 else
7286 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7287 fi
7288 else
7289 echo "$progname: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7291 fi
7292 rm -rf conftest* conftst*
7293
7294 # Do not use the global_symbol_pipe unless it works.
7295 if test "$pipe_works" = yes; then
7296 break
7297 else
7298 lt_cv_sys_global_symbol_pipe=
7299 fi
7300done
7301
7302fi
7303
7304if test -z "$lt_cv_sys_global_symbol_pipe"; then
7305 lt_cv_sys_global_symbol_to_cdecl=
7306fi
7307if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7309$as_echo "failed" >&6; }
7310else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7312$as_echo "ok" >&6; }
7313fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
Iain Buclawb4c522f2018-10-28 19:51:47 +00007336# Check whether --enable-libtool-lock was given.
7337if test "${enable_libtool_lock+set}" = set; then :
7338 enableval=$enable_libtool_lock;
7339fi
7340
7341test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7342
7343# Some flags need to be propagated to the compiler or linker for good
7344# libtool support.
7345case $host in
7346ia64-*-hpux*)
7347 # Find out which ABI we are using.
7348 echo 'int i;' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 case `/usr/bin/file conftest.$ac_objext` in
7355 *ELF-32*)
7356 HPUX_IA64_MODE="32"
7357 ;;
7358 *ELF-64*)
7359 HPUX_IA64_MODE="64"
7360 ;;
7361 esac
7362 fi
7363 rm -rf conftest*
7364 ;;
7365*-*-irix6*)
7366 # Find out which ABI we are using.
7367 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; then
7373 if test "$lt_cv_prog_gnu_ld" = yes; then
7374 case `/usr/bin/file conftest.$ac_objext` in
7375 *32-bit*)
7376 LD="${LD-ld} -melf32bsmip"
7377 ;;
7378 *N32*)
7379 LD="${LD-ld} -melf32bmipn32"
7380 ;;
7381 *64-bit*)
7382 LD="${LD-ld} -melf64bmip"
7383 ;;
7384 esac
7385 else
7386 case `/usr/bin/file conftest.$ac_objext` in
7387 *32-bit*)
7388 LD="${LD-ld} -32"
7389 ;;
7390 *N32*)
7391 LD="${LD-ld} -n32"
7392 ;;
7393 *64-bit*)
7394 LD="${LD-ld} -64"
7395 ;;
7396 esac
7397 fi
7398 fi
7399 rm -rf conftest*
7400 ;;
7401
7402x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7403s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7404 # Find out which ABI we are using.
7405 echo 'int i;' > conftest.$ac_ext
7406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7407 (eval $ac_compile) 2>&5
7408 ac_status=$?
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }; then
7411 case `/usr/bin/file conftest.o` in
7412 *32-bit*)
7413 case $host in
7414 x86_64-*kfreebsd*-gnu)
7415 LD="${LD-ld} -m elf_i386_fbsd"
7416 ;;
7417 x86_64-*linux*)
7418 case `/usr/bin/file conftest.o` in
7419 *x86-64*)
7420 LD="${LD-ld} -m elf32_x86_64"
7421 ;;
7422 *)
7423 LD="${LD-ld} -m elf_i386"
7424 ;;
7425 esac
7426 ;;
7427 powerpc64le-*linux*)
7428 LD="${LD-ld} -m elf32lppclinux"
7429 ;;
7430 powerpc64-*linux*)
7431 LD="${LD-ld} -m elf32ppclinux"
7432 ;;
7433 s390x-*linux*)
7434 LD="${LD-ld} -m elf_s390"
7435 ;;
7436 sparc64-*linux*)
7437 LD="${LD-ld} -m elf32_sparc"
7438 ;;
7439 esac
7440 ;;
7441 *64-bit*)
7442 case $host in
7443 x86_64-*kfreebsd*-gnu)
7444 LD="${LD-ld} -m elf_x86_64_fbsd"
7445 ;;
7446 x86_64-*linux*)
7447 LD="${LD-ld} -m elf_x86_64"
7448 ;;
7449 powerpcle-*linux*)
7450 LD="${LD-ld} -m elf64lppc"
7451 ;;
7452 powerpc-*linux*)
7453 LD="${LD-ld} -m elf64ppc"
7454 ;;
7455 s390*-*linux*|s390*-*tpf*)
7456 LD="${LD-ld} -m elf64_s390"
7457 ;;
7458 sparc*-*linux*)
7459 LD="${LD-ld} -m elf64_sparc"
7460 ;;
7461 esac
7462 ;;
7463 esac
7464 fi
7465 rm -rf conftest*
7466 ;;
7467
7468*-*-sco3.2v5*)
7469 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7470 SAVE_CFLAGS="$CFLAGS"
7471 CFLAGS="$CFLAGS -belf"
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7473$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007474if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007475 $as_echo_n "(cached) " >&6
7476else
7477 ac_ext=c
7478ac_cpp='$CPP $CPPFLAGS'
7479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h. */
7485
7486int
7487main ()
7488{
7489
7490 ;
7491 return 0;
7492}
7493_ACEOF
7494if ac_fn_c_try_link "$LINENO"; then :
7495 lt_cv_cc_needs_belf=yes
7496else
7497 lt_cv_cc_needs_belf=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501 ac_ext=c
7502ac_cpp='$CPP $CPPFLAGS'
7503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507fi
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7509$as_echo "$lt_cv_cc_needs_belf" >&6; }
7510 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7511 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7512 CFLAGS="$SAVE_CFLAGS"
7513 fi
7514 ;;
7515sparc*-*solaris*)
7516 # Find out which ABI we are using.
7517 echo 'int i;' > conftest.$ac_ext
7518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7519 (eval $ac_compile) 2>&5
7520 ac_status=$?
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 case `/usr/bin/file conftest.o` in
7524 *64-bit*)
7525 case $lt_cv_prog_gnu_ld in
7526 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7527 *)
7528 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7529 LD="${LD-ld} -64"
7530 fi
7531 ;;
7532 esac
7533 ;;
7534 esac
7535 fi
7536 rm -rf conftest*
7537 ;;
7538esac
7539
7540need_locks="$enable_libtool_lock"
7541
7542
7543 case $host_os in
7544 rhapsody* | darwin*)
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7547set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007550if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007551 $as_echo_n "(cached) " >&6
7552else
7553 if test -n "$DSYMUTIL"; then
7554 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7555else
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007563 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568 done
7569IFS=$as_save_IFS
7570
7571fi
7572fi
7573DSYMUTIL=$ac_cv_prog_DSYMUTIL
7574if test -n "$DSYMUTIL"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7576$as_echo "$DSYMUTIL" >&6; }
7577else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579$as_echo "no" >&6; }
7580fi
7581
7582
7583fi
7584if test -z "$ac_cv_prog_DSYMUTIL"; then
7585 ac_ct_DSYMUTIL=$DSYMUTIL
7586 # Extract the first word of "dsymutil", so it can be a program name with args.
7587set dummy dsymutil; ac_word=$2
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007590if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007591 $as_echo_n "(cached) " >&6
7592else
7593 if test -n "$ac_ct_DSYMUTIL"; then
7594 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007603 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608 done
7609IFS=$as_save_IFS
7610
7611fi
7612fi
7613ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7614if test -n "$ac_ct_DSYMUTIL"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7616$as_echo "$ac_ct_DSYMUTIL" >&6; }
7617else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619$as_echo "no" >&6; }
7620fi
7621
7622 if test "x$ac_ct_DSYMUTIL" = x; then
7623 DSYMUTIL=":"
7624 else
7625 case $cross_compiling:$ac_tool_warned in
7626yes:)
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629ac_tool_warned=yes ;;
7630esac
7631 DSYMUTIL=$ac_ct_DSYMUTIL
7632 fi
7633else
7634 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7635fi
7636
7637 if test -n "$ac_tool_prefix"; then
7638 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7639set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007642if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007643 $as_echo_n "(cached) " >&6
7644else
7645 if test -n "$NMEDIT"; then
7646 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7647else
7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649for as_dir in $PATH
7650do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007655 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659done
7660 done
7661IFS=$as_save_IFS
7662
7663fi
7664fi
7665NMEDIT=$ac_cv_prog_NMEDIT
7666if test -n "$NMEDIT"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7668$as_echo "$NMEDIT" >&6; }
7669else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672fi
7673
7674
7675fi
7676if test -z "$ac_cv_prog_NMEDIT"; then
7677 ac_ct_NMEDIT=$NMEDIT
7678 # Extract the first word of "nmedit", so it can be a program name with args.
7679set dummy nmedit; ac_word=$2
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007682if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007683 $as_echo_n "(cached) " >&6
7684else
7685 if test -n "$ac_ct_NMEDIT"; then
7686 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7687else
7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689for as_dir in $PATH
7690do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007695 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699done
7700 done
7701IFS=$as_save_IFS
7702
7703fi
7704fi
7705ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7706if test -n "$ac_ct_NMEDIT"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7708$as_echo "$ac_ct_NMEDIT" >&6; }
7709else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711$as_echo "no" >&6; }
7712fi
7713
7714 if test "x$ac_ct_NMEDIT" = x; then
7715 NMEDIT=":"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718yes:)
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721ac_tool_warned=yes ;;
7722esac
7723 NMEDIT=$ac_ct_NMEDIT
7724 fi
7725else
7726 NMEDIT="$ac_cv_prog_NMEDIT"
7727fi
7728
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7731set dummy ${ac_tool_prefix}lipo; ac_word=$2
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007734if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007735 $as_echo_n "(cached) " >&6
7736else
7737 if test -n "$LIPO"; then
7738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7739else
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007747 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751done
7752 done
7753IFS=$as_save_IFS
7754
7755fi
7756fi
7757LIPO=$ac_cv_prog_LIPO
7758if test -n "$LIPO"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7760$as_echo "$LIPO" >&6; }
7761else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
7765
7766
7767fi
7768if test -z "$ac_cv_prog_LIPO"; then
7769 ac_ct_LIPO=$LIPO
7770 # Extract the first word of "lipo", so it can be a program name with args.
7771set dummy lipo; ac_word=$2
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007774if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007775 $as_echo_n "(cached) " >&6
7776else
7777 if test -n "$ac_ct_LIPO"; then
7778 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7779else
7780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007787 ac_cv_prog_ac_ct_LIPO="lipo"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792 done
7793IFS=$as_save_IFS
7794
7795fi
7796fi
7797ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7798if test -n "$ac_ct_LIPO"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7800$as_echo "$ac_ct_LIPO" >&6; }
7801else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803$as_echo "no" >&6; }
7804fi
7805
7806 if test "x$ac_ct_LIPO" = x; then
7807 LIPO=":"
7808 else
7809 case $cross_compiling:$ac_tool_warned in
7810yes:)
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813ac_tool_warned=yes ;;
7814esac
7815 LIPO=$ac_ct_LIPO
7816 fi
7817else
7818 LIPO="$ac_cv_prog_LIPO"
7819fi
7820
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7823set dummy ${ac_tool_prefix}otool; ac_word=$2
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007826if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007827 $as_echo_n "(cached) " >&6
7828else
7829 if test -n "$OTOOL"; then
7830 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007839 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844 done
7845IFS=$as_save_IFS
7846
7847fi
7848fi
7849OTOOL=$ac_cv_prog_OTOOL
7850if test -n "$OTOOL"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7852$as_echo "$OTOOL" >&6; }
7853else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855$as_echo "no" >&6; }
7856fi
7857
7858
7859fi
7860if test -z "$ac_cv_prog_OTOOL"; then
7861 ac_ct_OTOOL=$OTOOL
7862 # Extract the first word of "otool", so it can be a program name with args.
7863set dummy otool; ac_word=$2
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007866if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007867 $as_echo_n "(cached) " >&6
7868else
7869 if test -n "$ac_ct_OTOOL"; then
7870 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007879 ac_cv_prog_ac_ct_OTOOL="otool"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883done
7884 done
7885IFS=$as_save_IFS
7886
7887fi
7888fi
7889ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7890if test -n "$ac_ct_OTOOL"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7892$as_echo "$ac_ct_OTOOL" >&6; }
7893else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
7898 if test "x$ac_ct_OTOOL" = x; then
7899 OTOOL=":"
7900 else
7901 case $cross_compiling:$ac_tool_warned in
7902yes:)
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905ac_tool_warned=yes ;;
7906esac
7907 OTOOL=$ac_ct_OTOOL
7908 fi
7909else
7910 OTOOL="$ac_cv_prog_OTOOL"
7911fi
7912
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7915set dummy ${ac_tool_prefix}otool64; ac_word=$2
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007918if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007919 $as_echo_n "(cached) " >&6
7920else
7921 if test -n "$OTOOL64"; then
7922 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007931 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935done
7936 done
7937IFS=$as_save_IFS
7938
7939fi
7940fi
7941OTOOL64=$ac_cv_prog_OTOOL64
7942if test -n "$OTOOL64"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7944$as_echo "$OTOOL64" >&6; }
7945else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
7948fi
7949
7950
7951fi
7952if test -z "$ac_cv_prog_OTOOL64"; then
7953 ac_ct_OTOOL64=$OTOOL64
7954 # Extract the first word of "otool64", so it can be a program name with args.
7955set dummy otool64; ac_word=$2
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007958if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007959 $as_echo_n "(cached) " >&6
7960else
7961 if test -n "$ac_ct_OTOOL64"; then
7962 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007971 ac_cv_prog_ac_ct_OTOOL64="otool64"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975done
7976 done
7977IFS=$as_save_IFS
7978
7979fi
7980fi
7981ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7982if test -n "$ac_ct_OTOOL64"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7984$as_echo "$ac_ct_OTOOL64" >&6; }
7985else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987$as_echo "no" >&6; }
7988fi
7989
7990 if test "x$ac_ct_OTOOL64" = x; then
7991 OTOOL64=":"
7992 else
7993 case $cross_compiling:$ac_tool_warned in
7994yes:)
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997ac_tool_warned=yes ;;
7998esac
7999 OTOOL64=$ac_ct_OTOOL64
8000 fi
8001else
8002 OTOOL64="$ac_cv_prog_OTOOL64"
8003fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8032$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008033if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008034 $as_echo_n "(cached) " >&6
8035else
8036 lt_cv_apple_cc_single_mod=no
8037 if test -z "${LT_MULTI_MODULE}"; then
8038 # By default we will add the -single_module flag. You can override
8039 # by either setting the environment variable LT_MULTI_MODULE
8040 # non-empty at configure time, or by adding -multi_module to the
8041 # link flags.
8042 rm -rf libconftest.dylib*
8043 echo "int foo(void){return 1;}" > conftest.c
8044 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8045-dynamiclib -Wl,-single_module conftest.c" >&5
8046 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8047 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8048 _lt_result=$?
8049 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8050 lt_cv_apple_cc_single_mod=yes
8051 else
8052 cat conftest.err >&5
8053 fi
8054 rm -rf libconftest.dylib*
8055 rm -f conftest.*
8056 fi
8057fi
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8059$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8061$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008062if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008063 $as_echo_n "(cached) " >&6
8064else
8065 lt_cv_ld_exported_symbols_list=no
8066 save_LDFLAGS=$LDFLAGS
8067 echo "_main" > conftest.sym
8068 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070/* end confdefs.h. */
8071
8072int
8073main ()
8074{
8075
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080if ac_fn_c_try_link "$LINENO"; then :
8081 lt_cv_ld_exported_symbols_list=yes
8082else
8083 lt_cv_ld_exported_symbols_list=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LDFLAGS="$save_LDFLAGS"
8088
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8091$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8093$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008094if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008095 $as_echo_n "(cached) " >&6
8096else
8097 lt_cv_ld_force_load=no
8098 cat > conftest.c << _LT_EOF
8099int forced_loaded() { return 2;}
8100_LT_EOF
8101 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8102 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8103 echo "$AR cru libconftest.a conftest.o" >&5
8104 $AR cru libconftest.a conftest.o 2>&5
8105 cat > conftest.c << _LT_EOF
8106int main() { return 0;}
8107_LT_EOF
8108 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8109 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8110 _lt_result=$?
8111 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8112 lt_cv_ld_force_load=yes
8113 else
8114 cat conftest.err >&5
8115 fi
8116 rm -f conftest.err libconftest.a conftest conftest.c
8117 rm -rf conftest.dSYM
8118
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8121$as_echo "$lt_cv_ld_force_load" >&6; }
8122 case $host_os in
8123 rhapsody* | darwin1.[012])
8124 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8125 darwin1.*)
8126 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8127 darwin*) # darwin 5.x on
8128 # if running on 10.5 or later, the deployment target defaults
8129 # to the OS version, if on x86, and 10.4, the deployment
8130 # target defaults to 10.4. Don't you love it?
8131 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8132 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8133 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8134 10.[012][,.]*)
8135 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8136 10.*)
8137 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8138 esac
8139 ;;
8140 esac
8141 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8142 _lt_dar_single_mod='$single_module'
8143 fi
8144 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8145 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8146 else
8147 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8148 fi
8149 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8150 _lt_dsymutil='~$DSYMUTIL $lib || :'
8151 else
8152 _lt_dsymutil=
8153 fi
8154 ;;
8155 esac
8156
Iain Buclawb4c522f2018-10-28 19:51:47 +00008157for ac_header in dlfcn.h
8158do :
8159 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8160"
Joseph Myers22e05272018-10-31 17:03:16 +00008161if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008162 cat >>confdefs.h <<_ACEOF
8163#define HAVE_DLFCN_H 1
8164_ACEOF
8165
8166fi
8167
8168done
8169
8170
8171
8172
8173
8174# Set options
8175enable_dlopen=yes
8176
8177
8178
8179
8180 enable_win32_dll=no
8181
8182
8183 # Check whether --enable-shared was given.
8184if test "${enable_shared+set}" = set; then :
8185 enableval=$enable_shared; p=${PACKAGE-default}
8186 case $enableval in
8187 yes) enable_shared=yes ;;
8188 no) enable_shared=no ;;
8189 *)
8190 enable_shared=no
8191 # Look at the argument we got. We use all the common list separators.
8192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8193 for pkg in $enableval; do
8194 IFS="$lt_save_ifs"
8195 if test "X$pkg" = "X$p"; then
8196 enable_shared=yes
8197 fi
8198 done
8199 IFS="$lt_save_ifs"
8200 ;;
8201 esac
8202else
8203 enable_shared=yes
8204fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 # Check whether --enable-static was given.
8215if test "${enable_static+set}" = set; then :
8216 enableval=$enable_static; p=${PACKAGE-default}
8217 case $enableval in
8218 yes) enable_static=yes ;;
8219 no) enable_static=no ;;
8220 *)
8221 enable_static=no
8222 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8224 for pkg in $enableval; do
8225 IFS="$lt_save_ifs"
8226 if test "X$pkg" = "X$p"; then
8227 enable_static=yes
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 ;;
8232 esac
8233else
8234 enable_static=yes
8235fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246# Check whether --with-pic was given.
8247if test "${with_pic+set}" = set; then :
8248 withval=$with_pic; pic_mode="$withval"
8249else
8250 pic_mode=default
8251fi
8252
8253
8254test -z "$pic_mode" && pic_mode=default
8255
8256
8257
8258
8259
8260
8261
8262 # Check whether --enable-fast-install was given.
8263if test "${enable_fast_install+set}" = set; then :
8264 enableval=$enable_fast_install; p=${PACKAGE-default}
8265 case $enableval in
8266 yes) enable_fast_install=yes ;;
8267 no) enable_fast_install=no ;;
8268 *)
8269 enable_fast_install=no
8270 # Look at the argument we got. We use all the common list separators.
8271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272 for pkg in $enableval; do
8273 IFS="$lt_save_ifs"
8274 if test "X$pkg" = "X$p"; then
8275 enable_fast_install=yes
8276 fi
8277 done
8278 IFS="$lt_save_ifs"
8279 ;;
8280 esac
8281else
8282 enable_fast_install=yes
8283fi
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295# This can be used to rebuild libtool when needed
8296LIBTOOL_DEPS="$ltmain"
8297
8298# Always use our own libtool.
8299LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8326test -z "$LN_S" && LN_S="ln -s"
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341if test -n "${ZSH_VERSION+set}" ; then
8342 setopt NO_GLOB_SUBST
8343fi
8344
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8346$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008347if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008348 $as_echo_n "(cached) " >&6
8349else
8350 rm -f .libs 2>/dev/null
8351mkdir .libs 2>/dev/null
8352if test -d .libs; then
8353 lt_cv_objdir=.libs
8354else
8355 # MS-DOS does not allow filenames that begin with a dot.
8356 lt_cv_objdir=_libs
8357fi
8358rmdir .libs 2>/dev/null
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8361$as_echo "$lt_cv_objdir" >&6; }
8362objdir=$lt_cv_objdir
8363
8364
8365
8366
8367
8368cat >>confdefs.h <<_ACEOF
8369#define LT_OBJDIR "$lt_cv_objdir/"
8370_ACEOF
8371
8372
8373
8374
8375case $host_os in
8376aix3*)
8377 # AIX sometimes has problems with the GCC collect2 program. For some
8378 # reason, if we set the COLLECT_NAMES environment variable, the problems
8379 # vanish in a puff of smoke.
8380 if test "X${COLLECT_NAMES+set}" != Xset; then
8381 COLLECT_NAMES=
8382 export COLLECT_NAMES
8383 fi
8384 ;;
8385esac
8386
8387# Global variables:
8388ofile=libtool
8389can_build_shared=yes
8390
8391# All known linkers require a `.a' archive for static linking (except MSVC,
8392# which needs '.lib').
8393libext=a
8394
8395with_gnu_ld="$lt_cv_prog_gnu_ld"
8396
8397old_CC="$CC"
8398old_CFLAGS="$CFLAGS"
8399
8400# Set sane defaults for various variables
8401test -z "$CC" && CC=cc
8402test -z "$LTCC" && LTCC=$CC
8403test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8404test -z "$LD" && LD=ld
8405test -z "$ac_objext" && ac_objext=o
8406
8407for cc_temp in $compiler""; do
8408 case $cc_temp in
8409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8411 \-*) ;;
8412 *) break;;
8413 esac
8414done
8415cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8416
8417
8418# Only perform the check for file, if the check method requires it
8419test -z "$MAGIC_CMD" && MAGIC_CMD=file
8420case $deplibs_check_method in
8421file_magic*)
8422 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8424$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008425if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008426 $as_echo_n "(cached) " >&6
8427else
8428 case $MAGIC_CMD in
8429[\\/*] | ?:[\\/]*)
8430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8431 ;;
8432*)
8433 lt_save_MAGIC_CMD="$MAGIC_CMD"
8434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8435 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8436 for ac_dir in $ac_dummy; do
8437 IFS="$lt_save_ifs"
8438 test -z "$ac_dir" && ac_dir=.
8439 if test -f $ac_dir/${ac_tool_prefix}file; then
8440 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8441 if test -n "$file_magic_test_file"; then
8442 case $deplibs_check_method in
8443 "file_magic "*)
8444 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8447 $EGREP "$file_magic_regex" > /dev/null; then
8448 :
8449 else
8450 cat <<_LT_EOF 1>&2
8451
8452*** Warning: the command libtool uses to detect shared libraries,
8453*** $file_magic_cmd, produces output that libtool cannot recognize.
8454*** The result is that libtool may fail to recognize shared libraries
8455*** as such. This will affect the creation of libtool libraries that
8456*** depend on shared libraries, but programs linked with such libtool
8457*** libraries will work regardless of this problem. Nevertheless, you
8458*** may want to report the problem to your system manager and/or to
8459*** bug-libtool@gnu.org
8460
8461_LT_EOF
8462 fi ;;
8463 esac
8464 fi
8465 break
8466 fi
8467 done
8468 IFS="$lt_save_ifs"
8469 MAGIC_CMD="$lt_save_MAGIC_CMD"
8470 ;;
8471esac
8472fi
8473
8474MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8475if test -n "$MAGIC_CMD"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8477$as_echo "$MAGIC_CMD" >&6; }
8478else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480$as_echo "no" >&6; }
8481fi
8482
8483
8484
8485
8486
8487if test -z "$lt_cv_path_MAGIC_CMD"; then
8488 if test -n "$ac_tool_prefix"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8490$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008491if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008492 $as_echo_n "(cached) " >&6
8493else
8494 case $MAGIC_CMD in
8495[\\/*] | ?:[\\/]*)
8496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8497 ;;
8498*)
8499 lt_save_MAGIC_CMD="$MAGIC_CMD"
8500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8502 for ac_dir in $ac_dummy; do
8503 IFS="$lt_save_ifs"
8504 test -z "$ac_dir" && ac_dir=.
8505 if test -f $ac_dir/file; then
8506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8507 if test -n "$file_magic_test_file"; then
8508 case $deplibs_check_method in
8509 "file_magic "*)
8510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8513 $EGREP "$file_magic_regex" > /dev/null; then
8514 :
8515 else
8516 cat <<_LT_EOF 1>&2
8517
8518*** Warning: the command libtool uses to detect shared libraries,
8519*** $file_magic_cmd, produces output that libtool cannot recognize.
8520*** The result is that libtool may fail to recognize shared libraries
8521*** as such. This will affect the creation of libtool libraries that
8522*** depend on shared libraries, but programs linked with such libtool
8523*** libraries will work regardless of this problem. Nevertheless, you
8524*** may want to report the problem to your system manager and/or to
8525*** bug-libtool@gnu.org
8526
8527_LT_EOF
8528 fi ;;
8529 esac
8530 fi
8531 break
8532 fi
8533 done
8534 IFS="$lt_save_ifs"
8535 MAGIC_CMD="$lt_save_MAGIC_CMD"
8536 ;;
8537esac
8538fi
8539
8540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541if test -n "$MAGIC_CMD"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8543$as_echo "$MAGIC_CMD" >&6; }
8544else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546$as_echo "no" >&6; }
8547fi
8548
8549
8550 else
8551 MAGIC_CMD=:
8552 fi
8553fi
8554
8555 fi
8556 ;;
8557esac
8558
8559# Use C for the default configuration in the libtool script
8560
8561lt_save_CC="$CC"
8562ac_ext=c
8563ac_cpp='$CPP $CPPFLAGS'
8564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8566ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567
8568
8569# Source file extension for C test sources.
8570ac_ext=c
8571
8572# Object file extension for compiled C test sources.
8573objext=o
8574objext=$objext
8575
8576# Code to be used in simple compile tests
8577lt_simple_compile_test_code="int some_variable = 0;"
8578
8579# Code to be used in simple link tests
8580lt_simple_link_test_code='int main(){return(0);}'
8581
8582
8583
8584
8585
8586
8587
8588# If no C compiler was specified, use CC.
8589LTCC=${LTCC-"$CC"}
8590
8591# If no C compiler flags were specified, use CFLAGS.
8592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8593
8594# Allow CC to be a program name with arguments.
8595compiler=$CC
8596
8597# Save the default compiler, since it gets overwritten when the other
8598# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8599compiler_DEFAULT=$CC
8600
8601# save warnings/boilerplate of simple test code
8602ac_outfile=conftest.$ac_objext
8603echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8604eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8605_lt_compiler_boilerplate=`cat conftest.err`
8606$RM conftest*
8607
8608ac_outfile=conftest.$ac_objext
8609echo "$lt_simple_link_test_code" >conftest.$ac_ext
8610eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8611_lt_linker_boilerplate=`cat conftest.err`
8612$RM -r conftest*
8613
8614
8615## CAVEAT EMPTOR:
8616## There is no encapsulation within the following macros, do not change
8617## the running order or otherwise move them around unless you know exactly
8618## what you are doing...
8619if test -n "$compiler"; then
8620
8621lt_prog_compiler_no_builtin_flag=
8622
8623if test "$GCC" = yes; then
8624 case $cc_basename in
8625 nvcc*)
8626 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8627 *)
8628 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8629 esac
8630
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8632$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008633if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008634 $as_echo_n "(cached) " >&6
8635else
8636 lt_cv_prog_compiler_rtti_exceptions=no
8637 ac_outfile=conftest.$ac_objext
8638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8639 lt_compiler_flag="-fno-rtti -fno-exceptions"
8640 # Insert the option either (1) after the last *FLAGS variable, or
8641 # (2) before a word containing "conftest.", or (3) at the end.
8642 # Note that $ac_compile itself does not contain backslashes and begins
8643 # with a dollar sign (not a hyphen), so the echo should work correctly.
8644 # The option is referenced via a variable to avoid confusing sed.
8645 lt_compile=`echo "$ac_compile" | $SED \
8646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8648 -e 's:$: $lt_compiler_flag:'`
8649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8650 (eval "$lt_compile" 2>conftest.err)
8651 ac_status=$?
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 if (exit $ac_status) && test -s "$ac_outfile"; then
8655 # The compiler can only warn and ignore the option if not recognized
8656 # So say no if there are warnings other than the usual output.
8657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8660 lt_cv_prog_compiler_rtti_exceptions=yes
8661 fi
8662 fi
8663 $RM conftest*
8664
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8667$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8668
8669if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8670 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8671else
8672 :
8673fi
8674
8675fi
8676
8677
8678
8679
8680
8681
8682 lt_prog_compiler_wl=
8683lt_prog_compiler_pic=
8684lt_prog_compiler_static=
8685
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8687$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8688
8689 if test "$GCC" = yes; then
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_static='-static'
8692
8693 case $host_os in
8694 aix*)
8695 # All AIX code is PIC.
8696 if test "$host_cpu" = ia64; then
8697 # AIX 5 now supports IA64 processor
8698 lt_prog_compiler_static='-Bstatic'
8699 fi
8700 lt_prog_compiler_pic='-fPIC'
8701 ;;
8702
8703 amigaos*)
8704 case $host_cpu in
8705 powerpc)
8706 # see comment about AmigaOS4 .so support
8707 lt_prog_compiler_pic='-fPIC'
8708 ;;
8709 m68k)
8710 # FIXME: we need at least 68020 code to build shared libraries, but
8711 # adding the `-m68020' flag to GCC prevents building anything better,
8712 # like `-m68040'.
8713 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8714 ;;
8715 esac
8716 ;;
8717
8718 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8719 # PIC is the default for these OSes.
8720 ;;
8721
8722 mingw* | cygwin* | pw32* | os2* | cegcc*)
8723 # This hack is so that the source file can tell whether it is being
8724 # built for inclusion in a dll (and should export symbols for example).
8725 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8726 # (--disable-auto-import) libraries
8727 lt_prog_compiler_pic='-DDLL_EXPORT'
8728 ;;
8729
8730 darwin* | rhapsody*)
8731 # PIC is the default on this platform
8732 # Common symbols not allowed in MH_DYLIB files
8733 lt_prog_compiler_pic='-fno-common'
8734 ;;
8735
8736 haiku*)
8737 # PIC is the default for Haiku.
8738 # The "-static" flag exists, but is broken.
8739 lt_prog_compiler_static=
8740 ;;
8741
8742 hpux*)
8743 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8744 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8745 # sets the default TLS model and affects inlining.
8746 case $host_cpu in
8747 hppa*64*)
8748 # +Z the default
8749 ;;
8750 *)
8751 lt_prog_compiler_pic='-fPIC'
8752 ;;
8753 esac
8754 ;;
8755
8756 interix[3-9]*)
8757 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8758 # Instead, we relocate shared libraries at runtime.
8759 ;;
8760
8761 msdosdjgpp*)
8762 # Just because we use GCC doesn't mean we suddenly get shared libraries
8763 # on systems that don't support them.
8764 lt_prog_compiler_can_build_shared=no
8765 enable_shared=no
8766 ;;
8767
8768 *nto* | *qnx*)
8769 # QNX uses GNU C++, but need to define -shared option too, otherwise
8770 # it will coredump.
8771 lt_prog_compiler_pic='-fPIC -shared'
8772 ;;
8773
8774 sysv4*MP*)
8775 if test -d /usr/nec; then
8776 lt_prog_compiler_pic=-Kconform_pic
8777 fi
8778 ;;
8779
8780 *)
8781 lt_prog_compiler_pic='-fPIC'
8782 ;;
8783 esac
8784
8785 case $cc_basename in
8786 nvcc*) # Cuda Compiler Driver 2.2
8787 lt_prog_compiler_wl='-Xlinker '
8788 lt_prog_compiler_pic='-Xcompiler -fPIC'
8789 ;;
8790 esac
8791 else
8792 # PORTME Check for flag to pass linker flags through the system compiler.
8793 case $host_os in
8794 aix*)
8795 lt_prog_compiler_wl='-Wl,'
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 now supports IA64 processor
8798 lt_prog_compiler_static='-Bstatic'
8799 else
8800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8801 fi
8802 ;;
8803
8804 mingw* | cygwin* | pw32* | os2* | cegcc*)
8805 # This hack is so that the source file can tell whether it is being
8806 # built for inclusion in a dll (and should export symbols for example).
8807 lt_prog_compiler_pic='-DDLL_EXPORT'
8808 ;;
8809
8810 hpux9* | hpux10* | hpux11*)
8811 lt_prog_compiler_wl='-Wl,'
8812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8813 # not for PA HP-UX.
8814 case $host_cpu in
8815 hppa*64*|ia64*)
8816 # +Z the default
8817 ;;
8818 *)
8819 lt_prog_compiler_pic='+Z'
8820 ;;
8821 esac
8822 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8823 lt_prog_compiler_static='${wl}-a ${wl}archive'
8824 ;;
8825
8826 irix5* | irix6* | nonstopux*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # PIC (with -KPIC) is the default.
8829 lt_prog_compiler_static='-non_shared'
8830 ;;
8831
8832 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8833 case $cc_basename in
8834 # old Intel for x86_64 which still supported -KPIC.
8835 ecc*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-static'
8839 ;;
8840 # icc used to be incompatible with GCC.
8841 # ICC 10 doesn't accept -KPIC any more.
8842 icc* | ifort*)
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-fPIC'
8845 lt_prog_compiler_static='-static'
8846 ;;
8847 # Lahey Fortran 8.1.
8848 lf95*)
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='--shared'
8851 lt_prog_compiler_static='--static'
8852 ;;
8853 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8854 # Portland Group compilers (*not* the Pentium gcc compiler,
8855 # which looks to be a dead project)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-fpic'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860 ccc*)
8861 lt_prog_compiler_wl='-Wl,'
8862 # All Alpha code is PIC.
8863 lt_prog_compiler_static='-non_shared'
8864 ;;
8865 xl* | bgxl* | bgf* | mpixl*)
8866 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-qpic'
8869 lt_prog_compiler_static='-qstaticlink'
8870 ;;
8871 *)
8872 case `$CC -V 2>&1 | sed 5q` in
8873 *Sun\ F* | *Sun*Fortran*)
8874 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 lt_prog_compiler_wl=''
8878 ;;
8879 *Sun\ C*)
8880 # Sun C 5.9
8881 lt_prog_compiler_pic='-KPIC'
8882 lt_prog_compiler_static='-Bstatic'
8883 lt_prog_compiler_wl='-Wl,'
8884 ;;
8885 esac
8886 ;;
8887 esac
8888 ;;
8889
8890 newsos6)
8891 lt_prog_compiler_pic='-KPIC'
8892 lt_prog_compiler_static='-Bstatic'
8893 ;;
8894
8895 *nto* | *qnx*)
8896 # QNX uses GNU C++, but need to define -shared option too, otherwise
8897 # it will coredump.
8898 lt_prog_compiler_pic='-fPIC -shared'
8899 ;;
8900
8901 osf3* | osf4* | osf5*)
8902 lt_prog_compiler_wl='-Wl,'
8903 # All OSF/1 code is PIC.
8904 lt_prog_compiler_static='-non_shared'
8905 ;;
8906
8907 rdos*)
8908 lt_prog_compiler_static='-non_shared'
8909 ;;
8910
8911 solaris*)
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8914 case $cc_basename in
8915 f77* | f90* | f95*)
8916 lt_prog_compiler_wl='-Qoption ld ';;
8917 *)
8918 lt_prog_compiler_wl='-Wl,';;
8919 esac
8920 ;;
8921
8922 sunos4*)
8923 lt_prog_compiler_wl='-Qoption ld '
8924 lt_prog_compiler_pic='-PIC'
8925 lt_prog_compiler_static='-Bstatic'
8926 ;;
8927
8928 sysv4 | sysv4.2uw2* | sysv4.3*)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='-KPIC'
8931 lt_prog_compiler_static='-Bstatic'
8932 ;;
8933
8934 sysv4*MP*)
8935 if test -d /usr/nec ;then
8936 lt_prog_compiler_pic='-Kconform_pic'
8937 lt_prog_compiler_static='-Bstatic'
8938 fi
8939 ;;
8940
8941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8942 lt_prog_compiler_wl='-Wl,'
8943 lt_prog_compiler_pic='-KPIC'
8944 lt_prog_compiler_static='-Bstatic'
8945 ;;
8946
8947 unicos*)
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_can_build_shared=no
8950 ;;
8951
8952 uts4*)
8953 lt_prog_compiler_pic='-pic'
8954 lt_prog_compiler_static='-Bstatic'
8955 ;;
8956
8957 *)
8958 lt_prog_compiler_can_build_shared=no
8959 ;;
8960 esac
8961 fi
8962
8963case $host_os in
8964 # For platforms which do not support PIC, -DPIC is meaningless:
8965 *djgpp*)
8966 lt_prog_compiler_pic=
8967 ;;
8968 *)
8969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8970 ;;
8971esac
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8973$as_echo "$lt_prog_compiler_pic" >&6; }
8974
8975
8976
8977
8978
8979
8980#
8981# Check to make sure the PIC flag actually works.
8982#
8983if test -n "$lt_prog_compiler_pic"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8985$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008986if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008987 $as_echo_n "(cached) " >&6
8988else
8989 lt_cv_prog_compiler_pic_works=no
8990 ac_outfile=conftest.$ac_objext
8991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8993 # Insert the option either (1) after the last *FLAGS variable, or
8994 # (2) before a word containing "conftest.", or (3) at the end.
8995 # Note that $ac_compile itself does not contain backslashes and begins
8996 # with a dollar sign (not a hyphen), so the echo should work correctly.
8997 # The option is referenced via a variable to avoid confusing sed.
8998 lt_compile=`echo "$ac_compile" | $SED \
8999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001 -e 's:$: $lt_compiler_flag:'`
9002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003 (eval "$lt_compile" 2>conftest.err)
9004 ac_status=$?
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 if (exit $ac_status) && test -s "$ac_outfile"; then
9008 # The compiler can only warn and ignore the option if not recognized
9009 # So say no if there are warnings other than the usual output.
9010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_pic_works=yes
9014 fi
9015 fi
9016 $RM conftest*
9017
9018fi
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9020$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9021
9022if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9023 case $lt_prog_compiler_pic in
9024 "" | " "*) ;;
9025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026 esac
9027else
9028 lt_prog_compiler_pic=
9029 lt_prog_compiler_can_build_shared=no
9030fi
9031
9032fi
9033
9034
9035
9036
9037
9038
9039#
9040# Check to make sure the static flag actually works.
9041#
9042wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9044$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009045if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009046 $as_echo_n "(cached) " >&6
9047else
9048 lt_cv_prog_compiler_static_works=no
9049 save_LDFLAGS="$LDFLAGS"
9050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9051 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9053 # The linker can only warn and ignore the option if not recognized
9054 # So say no if there are warnings
9055 if test -s conftest.err; then
9056 # Append any errors to the config.log.
9057 cat conftest.err 1>&5
9058 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9060 if diff conftest.exp conftest.er2 >/dev/null; then
9061 lt_cv_prog_compiler_static_works=yes
9062 fi
9063 else
9064 lt_cv_prog_compiler_static_works=yes
9065 fi
9066 fi
9067 $RM -r conftest*
9068 LDFLAGS="$save_LDFLAGS"
9069
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9072$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9073
9074if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9075 :
9076else
9077 lt_prog_compiler_static=
9078fi
9079
9080
9081
9082
9083
9084
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009088if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009089 $as_echo_n "(cached) " >&6
9090else
9091 lt_cv_prog_compiler_c_o=no
9092 $RM -r conftest 2>/dev/null
9093 mkdir conftest
9094 cd conftest
9095 mkdir out
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097
9098 lt_compiler_flag="-o out/conftest2.$ac_objext"
9099 # Insert the option either (1) after the last *FLAGS variable, or
9100 # (2) before a word containing "conftest.", or (3) at the end.
9101 # Note that $ac_compile itself does not contain backslashes and begins
9102 # with a dollar sign (not a hyphen), so the echo should work correctly.
9103 lt_compile=`echo "$ac_compile" | $SED \
9104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9106 -e 's:$: $lt_compiler_flag:'`
9107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9108 (eval "$lt_compile" 2>out/conftest.err)
9109 ac_status=$?
9110 cat out/conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113 then
9114 # The compiler can only warn and ignore the option if not recognized
9115 # So say no if there are warnings
9116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler_c_o=yes
9120 fi
9121 fi
9122 chmod u+w . 2>&5
9123 $RM conftest*
9124 # SGI C++ compiler will create directory out/ii_files/ for
9125 # template instantiation
9126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9127 $RM out/* && rmdir out
9128 cd ..
9129 $RM -r conftest
9130 $RM conftest*
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9134$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9135
9136
9137
9138
9139
9140
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9142$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009143if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009144 $as_echo_n "(cached) " >&6
9145else
9146 lt_cv_prog_compiler_c_o=no
9147 $RM -r conftest 2>/dev/null
9148 mkdir conftest
9149 cd conftest
9150 mkdir out
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153 lt_compiler_flag="-o out/conftest2.$ac_objext"
9154 # Insert the option either (1) after the last *FLAGS variable, or
9155 # (2) before a word containing "conftest.", or (3) at the end.
9156 # Note that $ac_compile itself does not contain backslashes and begins
9157 # with a dollar sign (not a hyphen), so the echo should work correctly.
9158 lt_compile=`echo "$ac_compile" | $SED \
9159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161 -e 's:$: $lt_compiler_flag:'`
9162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163 (eval "$lt_compile" 2>out/conftest.err)
9164 ac_status=$?
9165 cat out/conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168 then
9169 # The compiler can only warn and ignore the option if not recognized
9170 # So say no if there are warnings
9171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler_c_o=yes
9175 fi
9176 fi
9177 chmod u+w . 2>&5
9178 $RM conftest*
9179 # SGI C++ compiler will create directory out/ii_files/ for
9180 # template instantiation
9181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9182 $RM out/* && rmdir out
9183 cd ..
9184 $RM -r conftest
9185 $RM conftest*
9186
9187fi
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9189$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190
9191
9192
9193
9194hard_links="nottested"
9195if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9196 # do not overwrite the value of need_locks provided by the user
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9198$as_echo_n "checking if we can lock with hard links... " >&6; }
9199 hard_links=yes
9200 $RM conftest*
9201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202 touch conftest.a
9203 ln conftest.a conftest.b 2>&5 || hard_links=no
9204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9206$as_echo "$hard_links" >&6; }
9207 if test "$hard_links" = no; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9209$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9210 need_locks=warn
9211 fi
9212else
9213 need_locks=no
9214fi
9215
9216
9217
9218
9219
9220
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9222$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9223
9224 runpath_var=
9225 allow_undefined_flag=
9226 always_export_symbols=no
9227 archive_cmds=
9228 archive_expsym_cmds=
9229 compiler_needs_object=no
9230 enable_shared_with_static_runtimes=no
9231 export_dynamic_flag_spec=
9232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9233 hardcode_automatic=no
9234 hardcode_direct=no
9235 hardcode_direct_absolute=no
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld=
9238 hardcode_libdir_separator=
9239 hardcode_minus_L=no
9240 hardcode_shlibpath_var=unsupported
9241 inherit_rpath=no
9242 link_all_deplibs=unknown
9243 module_cmds=
9244 module_expsym_cmds=
9245 old_archive_from_new_cmds=
9246 old_archive_from_expsyms_cmds=
9247 thread_safe_flag_spec=
9248 whole_archive_flag_spec=
9249 # include_expsyms should be a list of space-separated symbols to be *always*
9250 # included in the symbol list
9251 include_expsyms=
9252 # exclude_expsyms can be an extended regexp of symbols to exclude
9253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9255 # as well as any symbol that contains `d'.
9256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9258 # platforms (ab)use it in PIC code, but their linkers get confused if
9259 # the symbol is explicitly referenced. Since portable code cannot
9260 # rely on this symbol name, it's probably fine to never include it in
9261 # preloaded symbol tables.
9262 # Exclude shared library initialization/finalization symbols.
9263 extract_expsyms_cmds=
9264
9265 case $host_os in
9266 cygwin* | mingw* | pw32* | cegcc*)
9267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9268 # When not using gcc, we currently assume that we are using
9269 # Microsoft Visual C++.
9270 if test "$GCC" != yes; then
9271 with_gnu_ld=no
9272 fi
9273 ;;
9274 interix*)
9275 # we just hope/assume this is gcc and not c89 (= MSVC++)
9276 with_gnu_ld=yes
9277 ;;
9278 openbsd*)
9279 with_gnu_ld=no
9280 ;;
9281 esac
9282
9283 ld_shlibs=yes
9284
9285 # On some targets, GNU ld is compatible enough with the native linker
9286 # that we're better off using the native interface for both.
9287 lt_use_gnu_ld_interface=no
9288 if test "$with_gnu_ld" = yes; then
9289 case $host_os in
9290 aix*)
9291 # The AIX port of GNU ld has always aspired to compatibility
9292 # with the native linker. However, as the warning in the GNU ld
9293 # block says, versions before 2.19.5* couldn't really create working
9294 # shared libraries, regardless of the interface used.
9295 case `$LD -v 2>&1` in
9296 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 ;;
9304 *)
9305 lt_use_gnu_ld_interface=yes
9306 ;;
9307 esac
9308 fi
9309
9310 if test "$lt_use_gnu_ld_interface" = yes; then
9311 # If archive_cmds runs LD, not CC, wlarc should be empty
9312 wlarc='${wl}'
9313
9314 # Set some defaults for GNU ld with shared library support. These
9315 # are reset later if shared libraries are not supported. Putting them
9316 # here allows them to be overridden if necessary.
9317 runpath_var=LD_RUN_PATH
9318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319 export_dynamic_flag_spec='${wl}--export-dynamic'
9320 # ancient GNU ld didn't support --whole-archive et. al.
9321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9323 else
9324 whole_archive_flag_spec=
9325 fi
9326 supports_anon_versioning=no
9327 case `$LD -v 2>&1` in
9328 *GNU\ gold*) supports_anon_versioning=yes ;;
9329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332 *\ 2.11.*) ;; # other 2.11 versions
9333 *) supports_anon_versioning=yes ;;
9334 esac
9335
9336 # See if GNU ld supports shared libraries.
9337 case $host_os in
9338 aix[3-9]*)
9339 # On AIX/PPC, the GNU linker is very broken
9340 if test "$host_cpu" != ia64; then
9341 ld_shlibs=no
9342 cat <<_LT_EOF 1>&2
9343
9344*** Warning: the GNU linker, at least up to release 2.19, is reported
9345*** to be unable to reliably create shared libraries on AIX.
9346*** Therefore, libtool is disabling shared libraries support. If you
9347*** really care for shared libraries, you may want to install binutils
9348*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349*** You will then need to restart the configuration process.
9350
9351_LT_EOF
9352 fi
9353 ;;
9354
9355 amigaos*)
9356 case $host_cpu in
9357 powerpc)
9358 # see comment about AmigaOS4 .so support
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds=''
9361 ;;
9362 m68k)
9363 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)'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 ;;
9367 esac
9368 ;;
9369
9370 beos*)
9371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372 allow_undefined_flag=unsupported
9373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9374 # support --undefined. This deserves some investigation. FIXME
9375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380
9381 cygwin* | mingw* | pw32* | cegcc*)
9382 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383 # as there is no search path for DLLs.
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 export_dynamic_flag_spec='${wl}--export-all-symbols'
9386 allow_undefined_flag=unsupported
9387 always_export_symbols=no
9388 enable_shared_with_static_runtimes=yes
9389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9390
9391 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393 # If the export-symbols file already is a .def file (1st line
9394 # is EXPORTS), use it as is; otherwise, prepend...
9395 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9396 cp $export_symbols $output_objdir/$soname.def;
9397 else
9398 echo EXPORTS > $output_objdir/$soname.def;
9399 cat $export_symbols >> $output_objdir/$soname.def;
9400 fi~
9401 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402 else
9403 ld_shlibs=no
9404 fi
9405 ;;
9406
9407 haiku*)
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 link_all_deplibs=yes
9410 ;;
9411
9412 interix[3-9]*)
9413 hardcode_direct=no
9414 hardcode_shlibpath_var=no
9415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416 export_dynamic_flag_spec='${wl}-E'
9417 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9418 # Instead, shared libraries are loaded at an image base (0x10000000 by
9419 # default) and relocated if they conflict, which is a slow very memory
9420 # consuming and fragmenting process. To avoid this, we pick a random,
9421 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9422 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9424 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'
9425 ;;
9426
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00009427 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00009428 tmp_diet=no
9429 if test "$host_os" = linux-dietlibc; then
9430 case $cc_basename in
9431 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9432 esac
9433 fi
9434 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9435 && test "$tmp_diet" = no
9436 then
9437 tmp_addflag=' $pic_flag'
9438 tmp_sharedflag='-shared'
9439 case $cc_basename,$host_cpu in
9440 pgcc*) # Portland Group C compiler
9441 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9442 tmp_addflag=' $pic_flag'
9443 ;;
9444 pgf77* | pgf90* | pgf95* | pgfortran*)
9445 # Portland Group f77 and f90 compilers
9446 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9447 tmp_addflag=' $pic_flag -Mnomain' ;;
9448 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9449 tmp_addflag=' -i_dynamic' ;;
9450 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9451 tmp_addflag=' -i_dynamic -nofor_main' ;;
9452 ifc* | ifort*) # Intel Fortran compiler
9453 tmp_addflag=' -nofor_main' ;;
9454 lf95*) # Lahey Fortran 8.1
9455 whole_archive_flag_spec=
9456 tmp_sharedflag='--shared' ;;
9457 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9458 tmp_sharedflag='-qmkshrobj'
9459 tmp_addflag= ;;
9460 nvcc*) # Cuda Compiler Driver 2.2
9461 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9462 compiler_needs_object=yes
9463 ;;
9464 esac
9465 case `$CC -V 2>&1 | sed 5q` in
9466 *Sun\ C*) # Sun C 5.9
9467 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9468 compiler_needs_object=yes
9469 tmp_sharedflag='-G' ;;
9470 *Sun\ F*) # Sun Fortran 8.3
9471 tmp_sharedflag='-G' ;;
9472 esac
9473 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474
9475 if test "x$supports_anon_versioning" = xyes; then
9476 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478 echo "local: *; };" >> $output_objdir/$libname.ver~
9479 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9480 fi
9481
9482 case $cc_basename in
9483 xlf* | bgf* | bgxlf* | mpixlf*)
9484 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9485 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9486 hardcode_libdir_flag_spec=
9487 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9488 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9489 if test "x$supports_anon_versioning" = xyes; then
9490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9492 echo "local: *; };" >> $output_objdir/$libname.ver~
9493 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9494 fi
9495 ;;
9496 esac
9497 else
9498 ld_shlibs=no
9499 fi
9500 ;;
9501
9502 netbsd*)
9503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9505 wlarc=
9506 else
9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509 fi
9510 ;;
9511
9512 solaris*)
9513 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9514 ld_shlibs=no
9515 cat <<_LT_EOF 1>&2
9516
9517*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9518*** create shared libraries on Solaris systems. Therefore, libtool
9519*** is disabling shared libraries support. We urge you to upgrade GNU
9520*** binutils to release 2.9.1 or newer. Another option is to modify
9521*** your PATH or compiler configuration so that the native linker is
9522*** used, and then restart.
9523
9524_LT_EOF
9525 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9534 case `$LD -v 2>&1` in
9535 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9536 ld_shlibs=no
9537 cat <<_LT_EOF 1>&2
9538
9539*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9540*** reliably create shared libraries on SCO systems. Therefore, libtool
9541*** is disabling shared libraries support. We urge you to upgrade GNU
9542*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9543*** your PATH or compiler configuration so that the native linker is
9544*** used, and then restart.
9545
9546_LT_EOF
9547 ;;
9548 *)
9549 # For security reasons, it is highly recommended that you always
9550 # use absolute paths for naming shared libraries, and exclude the
9551 # DT_RUNPATH tag from executables and libraries. But doing so
9552 # requires that you compile everything twice, which is a pain.
9553 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557 else
9558 ld_shlibs=no
9559 fi
9560 ;;
9561 esac
9562 ;;
9563
9564 sunos4*)
9565 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 wlarc=
9567 hardcode_direct=yes
9568 hardcode_shlibpath_var=no
9569 ;;
9570
9571 *)
9572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9575 else
9576 ld_shlibs=no
9577 fi
9578 ;;
9579 esac
9580
9581 if test "$ld_shlibs" = no; then
9582 runpath_var=
9583 hardcode_libdir_flag_spec=
9584 export_dynamic_flag_spec=
9585 whole_archive_flag_spec=
9586 fi
9587 else
9588 # PORTME fill in a description of your system's linker (not GNU ld)
9589 case $host_os in
9590 aix3*)
9591 allow_undefined_flag=unsupported
9592 always_export_symbols=yes
9593 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'
9594 # Note: this linker hardcodes the directories in LIBPATH if there
9595 # are no directories specified by -L.
9596 hardcode_minus_L=yes
9597 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9598 # Neither direct hardcoding nor static linking is supported with a
9599 # broken collect2.
9600 hardcode_direct=unsupported
9601 fi
9602 ;;
9603
9604 aix[4-9]*)
9605 if test "$host_cpu" = ia64; then
9606 # On IA64, the linker does run time linking by default, so we don't
9607 # have to do anything special.
9608 aix_use_runtimelinking=no
9609 exp_sym_flag='-Bexport'
9610 no_entry_flag=""
9611 else
9612 # If we're using GNU nm, then we don't want the "-C" option.
9613 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9614 # Also, AIX nm treats weak defined symbols like other global
9615 # defined symbols, whereas GNU nm marks them as "W".
9616 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9617 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9618 else
9619 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9620 fi
9621 aix_use_runtimelinking=no
9622
9623 # Test if we are trying to use run time linking or normal
9624 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9625 # need to do runtime linking.
9626 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9627 for ld_flag in $LDFLAGS; do
9628 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9629 aix_use_runtimelinking=yes
9630 break
9631 fi
9632 done
9633 ;;
9634 esac
9635
9636 exp_sym_flag='-bexport'
9637 no_entry_flag='-bnoentry'
9638 fi
9639
9640 # When large executables or shared objects are built, AIX ld can
9641 # have problems creating the table of contents. If linking a library
9642 # or program results in "error TOC overflow" add -mminimal-toc to
9643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9645
9646 archive_cmds=''
9647 hardcode_direct=yes
9648 hardcode_direct_absolute=yes
9649 hardcode_libdir_separator=':'
9650 link_all_deplibs=yes
9651 file_list_spec='${wl}-f,'
9652
9653 if test "$GCC" = yes; then
9654 case $host_os in aix4.[012]|aix4.[012].*)
9655 # We only want to do this on AIX 4.2 and lower, the check
9656 # below for broken collect2 doesn't work under 4.3+
9657 collect2name=`${CC} -print-prog-name=collect2`
9658 if test -f "$collect2name" &&
9659 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9660 then
9661 # We have reworked collect2
9662 :
9663 else
9664 # We have old collect2
9665 hardcode_direct=unsupported
9666 # It fails to find uninstalled libraries when the uninstalled
9667 # path is not listed in the libpath. Setting hardcode_minus_L
9668 # to unsupported forces relinking
9669 hardcode_minus_L=yes
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_libdir_separator=
9672 fi
9673 ;;
9674 esac
9675 shared_flag='-shared'
9676 if test "$aix_use_runtimelinking" = yes; then
9677 shared_flag="$shared_flag "'${wl}-G'
9678 fi
9679 else
9680 # not using gcc
9681 if test "$host_cpu" = ia64; then
9682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683 # chokes on -Wl,-G. The following line is correct:
9684 shared_flag='-G'
9685 else
9686 if test "$aix_use_runtimelinking" = yes; then
9687 shared_flag='${wl}-G'
9688 else
9689 shared_flag='${wl}-bM:SRE'
9690 fi
9691 fi
9692 fi
9693
9694 export_dynamic_flag_spec='${wl}-bexpall'
9695 # It seems that -bexpall does not export symbols beginning with
9696 # underscore (_), so it is better to generate a list of symbols to export.
9697 always_export_symbols=yes
9698 if test "$aix_use_runtimelinking" = yes; then
9699 # Warning - without using the other runtime loading flags (-brtl),
9700 # -berok will link without error, but may produce a broken library.
9701 allow_undefined_flag='-berok'
9702 # Determine the default libpath from the value encoded in an
9703 # empty executable.
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705/* end confdefs.h. */
9706
9707int
9708main ()
9709{
9710
9711 ;
9712 return 0;
9713}
9714_ACEOF
9715if ac_fn_c_try_link "$LINENO"; then :
9716
9717lt_aix_libpath_sed='
9718 /Import File Strings/,/^$/ {
9719 /^0/ {
9720 s/^0 *\(.*\)$/\1/
9721 p
9722 }
9723 }'
9724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725# Check for a 64-bit object if we didn't find anything.
9726if test -z "$aix_libpath"; then
9727 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728fi
9729fi
9730rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9733
9734 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9735 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9736 else
9737 if test "$host_cpu" = ia64; then
9738 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9739 allow_undefined_flag="-z nodefs"
9740 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"
9741 else
9742 # Determine the default libpath from the value encoded in an
9743 # empty executable.
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h. */
9746
9747int
9748main ()
9749{
9750
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756
9757lt_aix_libpath_sed='
9758 /Import File Strings/,/^$/ {
9759 /^0/ {
9760 s/^0 *\(.*\)$/\1/
9761 p
9762 }
9763 }'
9764aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765# Check for a 64-bit object if we didn't find anything.
9766if test -z "$aix_libpath"; then
9767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768fi
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9773
9774 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 # Warning - without using the other run time loading flags,
9776 # -berok will link without error, but may produce a broken library.
9777 no_undefined_flag=' ${wl}-bernotok'
9778 allow_undefined_flag=' ${wl}-berok'
9779 if test "$with_gnu_ld" = yes; then
9780 # We only use this code for GNU lds that support --whole-archive.
9781 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9782 else
9783 # Exported symbols can be pulled into shared objects from archives
9784 whole_archive_flag_spec='$convenience'
9785 fi
9786 archive_cmds_need_lc=yes
9787 # This is similar to how AIX traditionally builds its shared libraries.
9788 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'
9789 fi
9790 fi
9791 ;;
9792
9793 amigaos*)
9794 case $host_cpu in
9795 powerpc)
9796 # see comment about AmigaOS4 .so support
9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds=''
9799 ;;
9800 m68k)
9801 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)'
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_minus_L=yes
9804 ;;
9805 esac
9806 ;;
9807
9808 bsdi[45]*)
9809 export_dynamic_flag_spec=-rdynamic
9810 ;;
9811
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # When not using gcc, we currently assume that we are using
9814 # Microsoft Visual C++.
9815 # hardcode_libdir_flag_spec is actually meaningless, as there is
9816 # no search path for DLLs.
9817 hardcode_libdir_flag_spec=' '
9818 allow_undefined_flag=unsupported
9819 # Tell ltmain to make .lib files, not .a files.
9820 libext=lib
9821 # Tell ltmain to make .dll files, not .so files.
9822 shrext_cmds=".dll"
9823 # FIXME: Setting linknames here is a bad hack.
9824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9825 # The linker will automatically build a .lib file if we build a DLL.
9826 old_archive_from_new_cmds='true'
9827 # FIXME: Should let the user specify the lib program.
9828 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9829 fix_srcfile_path='`cygpath -w "$srcfile"`'
9830 enable_shared_with_static_runtimes=yes
9831 ;;
9832
9833 darwin* | rhapsody*)
9834
9835
9836 archive_cmds_need_lc=no
9837 hardcode_direct=no
9838 hardcode_automatic=yes
9839 hardcode_shlibpath_var=unsupported
9840 if test "$lt_cv_ld_force_load" = "yes"; then
9841 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9842 else
9843 whole_archive_flag_spec=''
9844 fi
9845 link_all_deplibs=yes
9846 allow_undefined_flag="$_lt_dar_allow_undefined"
9847 case $cc_basename in
9848 ifort*) _lt_dar_can_shared=yes ;;
9849 *) _lt_dar_can_shared=$GCC ;;
9850 esac
9851 if test "$_lt_dar_can_shared" = "yes"; then
9852 output_verbose_link_cmd=func_echo_all
9853 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9854 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9855 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}"
9856 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}"
9857
9858 else
9859 ld_shlibs=no
9860 fi
9861
9862 ;;
9863
9864 dgux*)
9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9871 # support. Future versions do this automatically, but an explicit c++rt0.o
9872 # does not break anything, and helps significantly (at the cost of a little
9873 # extra space).
9874 freebsd2.2*)
9875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9876 hardcode_libdir_flag_spec='-R$libdir'
9877 hardcode_direct=yes
9878 hardcode_shlibpath_var=no
9879 ;;
9880
9881 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9882 freebsd2.*)
9883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_direct=yes
9885 hardcode_minus_L=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9890 freebsd* | dragonfly*)
9891 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9892 hardcode_libdir_flag_spec='-R$libdir'
9893 hardcode_direct=yes
9894 hardcode_shlibpath_var=no
9895 ;;
9896
9897 hpux9*)
9898 if test "$GCC" = yes; then
9899 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'
9900 else
9901 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'
9902 fi
9903 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9904 hardcode_libdir_separator=:
9905 hardcode_direct=yes
9906
9907 # hardcode_minus_L: Not really in the search PATH,
9908 # but as the default location of the library.
9909 hardcode_minus_L=yes
9910 export_dynamic_flag_spec='${wl}-E'
9911 ;;
9912
9913 hpux10*)
9914 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916 else
9917 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9918 fi
9919 if test "$with_gnu_ld" = no; then
9920 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921 hardcode_libdir_flag_spec_ld='+b $libdir'
9922 hardcode_libdir_separator=:
9923 hardcode_direct=yes
9924 hardcode_direct_absolute=yes
9925 export_dynamic_flag_spec='${wl}-E'
9926 # hardcode_minus_L: Not really in the search PATH,
9927 # but as the default location of the library.
9928 hardcode_minus_L=yes
9929 fi
9930 ;;
9931
9932 hpux11*)
9933 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9934 case $host_cpu in
9935 hppa*64*)
9936 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 ;;
9938 ia64*)
9939 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9940 ;;
9941 *)
9942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 ;;
9944 esac
9945 else
9946 case $host_cpu in
9947 hppa*64*)
9948 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 ;;
9950 ia64*)
9951 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952 ;;
9953 *)
9954
9955 # Older versions of the 11.00 compiler do not understand -b yet
9956 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9958$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009959if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009960 $as_echo_n "(cached) " >&6
9961else
9962 lt_cv_prog_compiler__b=no
9963 save_LDFLAGS="$LDFLAGS"
9964 LDFLAGS="$LDFLAGS -b"
9965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9967 # The linker can only warn and ignore the option if not recognized
9968 # So say no if there are warnings
9969 if test -s conftest.err; then
9970 # Append any errors to the config.log.
9971 cat conftest.err 1>&5
9972 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9974 if diff conftest.exp conftest.er2 >/dev/null; then
9975 lt_cv_prog_compiler__b=yes
9976 fi
9977 else
9978 lt_cv_prog_compiler__b=yes
9979 fi
9980 fi
9981 $RM -r conftest*
9982 LDFLAGS="$save_LDFLAGS"
9983
9984fi
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9986$as_echo "$lt_cv_prog_compiler__b" >&6; }
9987
9988if test x"$lt_cv_prog_compiler__b" = xyes; then
9989 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9990else
9991 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992fi
9993
9994 ;;
9995 esac
9996 fi
9997 if test "$with_gnu_ld" = no; then
9998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9999 hardcode_libdir_separator=:
10000
10001 case $host_cpu in
10002 hppa*64*|ia64*)
10003 hardcode_direct=no
10004 hardcode_shlibpath_var=no
10005 ;;
10006 *)
10007 hardcode_direct=yes
10008 hardcode_direct_absolute=yes
10009 export_dynamic_flag_spec='${wl}-E'
10010
10011 # hardcode_minus_L: Not really in the search PATH,
10012 # but as the default location of the library.
10013 hardcode_minus_L=yes
10014 ;;
10015 esac
10016 fi
10017 ;;
10018
10019 irix5* | irix6* | nonstopux*)
10020 if test "$GCC" = yes; then
10021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10022 # Try to use the -exported_symbol ld option, if it does not
10023 # work, assume that -exports_file does not work either and
10024 # implicitly export all symbols.
10025 save_LDFLAGS="$LDFLAGS"
10026 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028/* end confdefs.h. */
10029int foo(void) {}
10030_ACEOF
10031if ac_fn_c_try_link "$LINENO"; then :
10032 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10033
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 LDFLAGS="$save_LDFLAGS"
10038 else
10039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10041 fi
10042 archive_cmds_need_lc='no'
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 hardcode_libdir_separator=:
10045 inherit_rpath=yes
10046 link_all_deplibs=yes
10047 ;;
10048
10049 netbsd*)
10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10052 else
10053 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10054 fi
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10058 ;;
10059
10060 newsos6)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=yes
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 hardcode_libdir_separator=:
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 *nto* | *qnx*)
10069 ;;
10070
10071 openbsd*)
10072 if test -f /usr/libexec/ld.so; then
10073 hardcode_direct=yes
10074 hardcode_shlibpath_var=no
10075 hardcode_direct_absolute=yes
10076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080 export_dynamic_flag_spec='${wl}-E'
10081 else
10082 case $host_os in
10083 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 ;;
10087 *)
10088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10090 ;;
10091 esac
10092 fi
10093 else
10094 ld_shlibs=no
10095 fi
10096 ;;
10097
10098 os2*)
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10101 allow_undefined_flag=unsupported
10102 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'
10103 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10104 ;;
10105
10106 osf3*)
10107 if test "$GCC" = yes; then
10108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10109 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10110 else
10111 allow_undefined_flag=' -expect_unresolved \*'
10112 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10113 fi
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10117 ;;
10118
10119 osf4* | osf5*) # as osf3* with the addition of -msym flag
10120 if test "$GCC" = yes; then
10121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10122 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124 else
10125 allow_undefined_flag=' -expect_unresolved \*'
10126 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10127 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~
10128 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10129
10130 # Both c and cxx compiler support -rpath directly
10131 hardcode_libdir_flag_spec='-rpath $libdir'
10132 fi
10133 archive_cmds_need_lc='no'
10134 hardcode_libdir_separator=:
10135 ;;
10136
10137 solaris*)
10138 no_undefined_flag=' -z defs'
10139 if test "$GCC" = yes; then
10140 wlarc='${wl}'
10141 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10144 else
10145 case `$CC -V 2>&1` in
10146 *"Compilers 5.0"*)
10147 wlarc=''
10148 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10151 ;;
10152 *)
10153 wlarc='${wl}'
10154 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10157 ;;
10158 esac
10159 fi
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_shlibpath_var=no
10162 case $host_os in
10163 solaris2.[0-5] | solaris2.[0-5].*) ;;
10164 *)
10165 # The compiler driver will combine and reorder linker options,
10166 # but understands `-z linker_flag'. GCC discards it without `$wl',
10167 # but is careful enough not to reorder.
10168 # Supported since Solaris 2.6 (maybe 2.5.1?)
10169 if test "$GCC" = yes; then
10170 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10171 else
10172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10173 fi
10174 ;;
10175 esac
10176 link_all_deplibs=yes
10177 ;;
10178
10179 sunos4*)
10180 if test "x$host_vendor" = xsequent; then
10181 # Use $CC to link under sequent, because it throws in some extra .o
10182 # files that make .init and .fini sections work.
10183 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10184 else
10185 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10186 fi
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_direct=yes
10189 hardcode_minus_L=yes
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 sysv4)
10194 case $host_vendor in
10195 sni)
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_direct=yes # is this really true???
10198 ;;
10199 siemens)
10200 ## LD is ld it makes a PLAMLIB
10201 ## CC just makes a GrossModule.
10202 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10203 reload_cmds='$CC -r -o $output$reload_objs'
10204 hardcode_direct=no
10205 ;;
10206 motorola)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10209 ;;
10210 esac
10211 runpath_var='LD_RUN_PATH'
10212 hardcode_shlibpath_var=no
10213 ;;
10214
10215 sysv4.3*)
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_shlibpath_var=no
10218 export_dynamic_flag_spec='-Bexport'
10219 ;;
10220
10221 sysv4*MP*)
10222 if test -d /usr/nec; then
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_shlibpath_var=no
10225 runpath_var=LD_RUN_PATH
10226 hardcode_runpath_var=yes
10227 ld_shlibs=yes
10228 fi
10229 ;;
10230
10231 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10232 no_undefined_flag='${wl}-z,text'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 runpath_var='LD_RUN_PATH'
10236
10237 if test "$GCC" = yes; then
10238 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 else
10241 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 fi
10244 ;;
10245
10246 sysv5* | sco3.2v5* | sco5v6*)
10247 # Note: We can NOT use -z defs as we might desire, because we do not
10248 # link with -lc, and that would cause any symbols used from libc to
10249 # always be unresolved, which means just about no library would
10250 # ever link correctly. If we're not using GNU ld we use -z text
10251 # though, which does catch some bad symbols but isn't as heavy-handed
10252 # as -z defs.
10253 no_undefined_flag='${wl}-z,text'
10254 allow_undefined_flag='${wl}-z,nodefs'
10255 archive_cmds_need_lc=no
10256 hardcode_shlibpath_var=no
10257 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10258 hardcode_libdir_separator=':'
10259 link_all_deplibs=yes
10260 export_dynamic_flag_spec='${wl}-Bexport'
10261 runpath_var='LD_RUN_PATH'
10262
10263 if test "$GCC" = yes; then
10264 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 else
10267 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 fi
10270 ;;
10271
10272 uts4*)
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_libdir_flag_spec='-L$libdir'
10275 hardcode_shlibpath_var=no
10276 ;;
10277
10278 *)
10279 ld_shlibs=no
10280 ;;
10281 esac
10282
10283 if test x$host_vendor = xsni; then
10284 case $host in
10285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10286 export_dynamic_flag_spec='${wl}-Blargedynsym'
10287 ;;
10288 esac
10289 fi
10290 fi
10291
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10293$as_echo "$ld_shlibs" >&6; }
10294test "$ld_shlibs" = no && can_build_shared=no
10295
10296with_gnu_ld=$with_gnu_ld
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312#
10313# Do we need to explicitly link libc?
10314#
10315case "x$archive_cmds_need_lc" in
10316x|xyes)
10317 # Assume -lc should be added
10318 archive_cmds_need_lc=yes
10319
10320 if test "$enable_shared" = yes && test "$GCC" = yes; then
10321 case $archive_cmds in
10322 *'~'*)
10323 # FIXME: we may have to deal with multi-command sequences.
10324 ;;
10325 '$CC '*)
10326 # Test whether the compiler implicitly links with -lc since on some
10327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10328 # to ld, don't add -lc before -lgcc.
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10330$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010331if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010332 $as_echo_n "(cached) " >&6
10333else
10334 $RM conftest*
10335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10336
10337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10338 (eval $ac_compile) 2>&5
10339 ac_status=$?
10340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341 test $ac_status = 0; } 2>conftest.err; then
10342 soname=conftest
10343 lib=conftest
10344 libobjs=conftest.$ac_objext
10345 deplibs=
10346 wl=$lt_prog_compiler_wl
10347 pic_flag=$lt_prog_compiler_pic
10348 compiler_flags=-v
10349 linker_flags=-v
10350 verstring=
10351 output_objdir=.
10352 libname=conftest
10353 lt_save_allow_undefined_flag=$allow_undefined_flag
10354 allow_undefined_flag=
10355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10356 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10357 ac_status=$?
10358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359 test $ac_status = 0; }
10360 then
10361 lt_cv_archive_cmds_need_lc=no
10362 else
10363 lt_cv_archive_cmds_need_lc=yes
10364 fi
10365 allow_undefined_flag=$lt_save_allow_undefined_flag
10366 else
10367 cat conftest.err 1>&5
10368 fi
10369 $RM conftest*
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10373$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10374 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10375 ;;
10376 esac
10377 fi
10378 ;;
10379esac
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10538$as_echo_n "checking dynamic linker characteristics... " >&6; }
10539
10540if test "$GCC" = yes; then
10541 case $host_os in
10542 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10543 *) lt_awk_arg="/^libraries:/" ;;
10544 esac
10545 case $host_os in
10546 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10547 *) lt_sed_strip_eq="s,=/,/,g" ;;
10548 esac
10549 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10550 case $lt_search_path_spec in
10551 *\;*)
10552 # if the path contains ";" then we assume it to be the separator
10553 # otherwise default to the standard path separator (i.e. ":") - it is
10554 # assumed that no part of a normal pathname contains ";" but that should
10555 # okay in the real world where ";" in dirpaths is itself problematic.
10556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10557 ;;
10558 *)
10559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10560 ;;
10561 esac
10562 # Ok, now we have the path, separated by spaces, we can step through it
10563 # and add multilib dir if necessary.
10564 lt_tmp_lt_search_path_spec=
10565 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10566 for lt_sys_path in $lt_search_path_spec; do
10567 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10569 else
10570 test -d "$lt_sys_path" && \
10571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10572 fi
10573 done
10574 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10575BEGIN {RS=" "; FS="/|\n";} {
10576 lt_foo="";
10577 lt_count=0;
10578 for (lt_i = NF; lt_i > 0; lt_i--) {
10579 if ($lt_i != "" && $lt_i != ".") {
10580 if ($lt_i == "..") {
10581 lt_count++;
10582 } else {
10583 if (lt_count == 0) {
10584 lt_foo="/" $lt_i lt_foo;
10585 } else {
10586 lt_count--;
10587 }
10588 }
10589 }
10590 }
10591 if (lt_foo != "") { lt_freq[lt_foo]++; }
10592 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10593}'`
10594 # AWK program above erroneously prepends '/' to C:/dos/paths
10595 # for these hosts.
10596 case $host_os in
10597 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10598 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10599 esac
10600 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10601else
10602 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10603fi
10604library_names_spec=
10605libname_spec='lib$name'
10606soname_spec=
10607shrext_cmds=".so"
10608postinstall_cmds=
10609postuninstall_cmds=
10610finish_cmds=
10611finish_eval=
10612shlibpath_var=
10613shlibpath_overrides_runpath=unknown
10614version_type=none
10615dynamic_linker="$host_os ld.so"
10616sys_lib_dlsearch_path_spec="/lib /usr/lib"
10617need_lib_prefix=unknown
10618hardcode_into_libs=no
10619
10620# when you set need_version to no, make sure it does not cause -set_version
10621# flags to be left without arguments
10622need_version=unknown
10623
10624case $host_os in
10625aix3*)
10626 version_type=linux
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10628 shlibpath_var=LIBPATH
10629
10630 # AIX 3 has no versioning support, so we append a major version to the name.
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 ;;
10633
10634aix[4-9]*)
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 hardcode_into_libs=yes
10639 if test "$host_cpu" = ia64; then
10640 # AIX 5 supports IA64
10641 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 else
10644 # With GCC up to 2.95.x, collect2 would create an import file
10645 # for dependence libraries. The import file would start with
10646 # the line `#! .'. This would cause the generated library to
10647 # depend on `.', always an invalid library. This was fixed in
10648 # development snapshots of GCC prior to 3.0.
10649 case $host_os in
10650 aix4 | aix4.[01] | aix4.[01].*)
10651 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10652 echo ' yes '
10653 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10654 :
10655 else
10656 can_build_shared=no
10657 fi
10658 ;;
10659 esac
10660 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10661 # soname into executable. Probably we can add versioning support to
10662 # collect2, so additional links can be useful in future.
10663 if test "$aix_use_runtimelinking" = yes; then
10664 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10665 # instead of lib<name>.a to let people know that these are not
10666 # typical AIX shared libraries.
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 else
10669 # We preserve .a as extension for shared libraries through AIX4.2
10670 # and later when we are not doing run time linking.
10671 library_names_spec='${libname}${release}.a $libname.a'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 fi
10674 shlibpath_var=LIBPATH
10675 fi
10676 ;;
10677
10678amigaos*)
10679 case $host_cpu in
10680 powerpc)
10681 # Since July 2007 AmigaOS4 officially supports .so libraries.
10682 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 ;;
10685 m68k)
10686 library_names_spec='$libname.ixlibrary $libname.a'
10687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10688 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10689 ;;
10690 esac
10691 ;;
10692
10693beos*)
10694 library_names_spec='${libname}${shared_ext}'
10695 dynamic_linker="$host_os ld.so"
10696 shlibpath_var=LIBRARY_PATH
10697 ;;
10698
10699bsdi[45]*)
10700 version_type=linux
10701 need_version=no
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10707 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10708 # the default ld.so.conf also contains /usr/contrib/lib and
10709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10710 # libtool to hard-code these into programs
10711 ;;
10712
10713cygwin* | mingw* | pw32* | cegcc*)
10714 version_type=windows
10715 shrext_cmds=".dll"
10716 need_version=no
10717 need_lib_prefix=no
10718
10719 case $GCC,$host_os in
10720 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10721 library_names_spec='$libname.dll.a'
10722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10723 postinstall_cmds='base_file=`basename \${file}`~
10724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10725 dldir=$destdir/`dirname \$dlpath`~
10726 test -d \$dldir || mkdir -p \$dldir~
10727 $install_prog $dir/$dlname \$dldir/$dlname~
10728 chmod a+x \$dldir/$dlname~
10729 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10730 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10731 fi'
10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733 dlpath=$dir/\$dldll~
10734 $RM \$dlpath'
10735 shlibpath_overrides_runpath=yes
10736
10737 case $host_os in
10738 cygwin*)
10739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10741
10742 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10743 ;;
10744 mingw* | cegcc*)
10745 # MinGW DLLs use traditional 'lib' prefix
10746 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 ;;
10748 pw32*)
10749 # pw32 DLLs use 'pw' prefix rather than 'lib'
10750 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751 ;;
10752 esac
10753 ;;
10754
10755 *)
10756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10757 ;;
10758 esac
10759 dynamic_linker='Win32 ld.exe'
10760 # FIXME: first we should search . and the directory the executable is in
10761 shlibpath_var=PATH
10762 ;;
10763
10764darwin* | rhapsody*)
10765 dynamic_linker="$host_os dyld"
10766 version_type=darwin
10767 need_lib_prefix=no
10768 need_version=no
10769 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10770 soname_spec='${libname}${release}${major}$shared_ext'
10771 shlibpath_overrides_runpath=yes
10772 shlibpath_var=DYLD_LIBRARY_PATH
10773 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10774
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10777 ;;
10778
10779dgux*)
10780 version_type=linux
10781 need_lib_prefix=no
10782 need_version=no
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 ;;
10787
10788freebsd* | dragonfly*)
10789 # DragonFly does not have aout. When/if they implement a new
10790 # versioning mechanism, adjust this.
10791 if test -x /usr/bin/objformat; then
10792 objformat=`/usr/bin/objformat`
10793 else
10794 case $host_os in
10795 freebsd[23].*) objformat=aout ;;
10796 *) objformat=elf ;;
10797 esac
10798 fi
10799 version_type=freebsd-$objformat
10800 case $version_type in
10801 freebsd-elf*)
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10803 need_version=no
10804 need_lib_prefix=no
10805 ;;
10806 freebsd-*)
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10808 need_version=yes
10809 ;;
10810 esac
10811 shlibpath_var=LD_LIBRARY_PATH
10812 case $host_os in
10813 freebsd2.*)
10814 shlibpath_overrides_runpath=yes
10815 ;;
10816 freebsd3.[01]* | freebsdelf3.[01]*)
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10819 ;;
10820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10822 shlibpath_overrides_runpath=no
10823 hardcode_into_libs=yes
10824 ;;
10825 *) # from 4.6 on, and DragonFly
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 esac
10830 ;;
10831
10832gnu*)
10833 version_type=linux
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 hardcode_into_libs=yes
10840 ;;
10841
10842haiku*)
10843 version_type=linux
10844 need_lib_prefix=no
10845 need_version=no
10846 dynamic_linker="$host_os runtime_loader"
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes
10851 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10852 hardcode_into_libs=yes
10853 ;;
10854
10855hpux9* | hpux10* | hpux11*)
10856 # Give a soname corresponding to the major version so that dld.sl refuses to
10857 # link against other versions.
10858 version_type=sunos
10859 need_lib_prefix=no
10860 need_version=no
10861 case $host_cpu in
10862 ia64*)
10863 shrext_cmds='.so'
10864 hardcode_into_libs=yes
10865 dynamic_linker="$host_os dld.so"
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 if test "X$HPUX_IA64_MODE" = X32; then
10871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10872 else
10873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10874 fi
10875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876 ;;
10877 hppa*64*)
10878 shrext_cmds='.sl'
10879 hardcode_into_libs=yes
10880 dynamic_linker="$host_os dld.sl"
10881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 ;;
10888 *)
10889 shrext_cmds='.sl'
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=SHLIB_PATH
10892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 ;;
10896 esac
10897 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10898 postinstall_cmds='chmod 555 $lib'
10899 # or fails outright, so override atomically:
10900 install_override_mode=555
10901 ;;
10902
10903interix[3-9]*)
10904 version_type=linux
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10913 ;;
10914
10915irix5* | irix6* | nonstopux*)
10916 case $host_os in
10917 nonstopux*) version_type=nonstopux ;;
10918 *)
10919 if test "$lt_cv_prog_gnu_ld" = yes; then
10920 version_type=linux
10921 else
10922 version_type=irix
10923 fi ;;
10924 esac
10925 need_lib_prefix=no
10926 need_version=no
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 case $host_os in
10930 irix5* | nonstopux*)
10931 libsuff= shlibsuff=
10932 ;;
10933 *)
10934 case $LD in # libtool.m4 will add one of these switches to LD
10935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10936 libsuff= shlibsuff= libmagic=32-bit;;
10937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10938 libsuff=32 shlibsuff=N32 libmagic=N32;;
10939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10941 *) libsuff= shlibsuff= libmagic=never-match;;
10942 esac
10943 ;;
10944 esac
10945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10946 shlibpath_overrides_runpath=no
10947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10949 hardcode_into_libs=yes
10950 ;;
10951
10952# No shared lib support for Linux oldld, aout, or coff.
10953linux*oldld* | linux*aout* | linux*coff*)
10954 dynamic_linker=no
10955 ;;
10956
10957# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000010958
10959# uclinux* changes (here and below) have been submitted to the libtool
10960# project, but have not yet been accepted: they are GCC-local changes
10961# for the time being. (See
10962# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10963linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000010964 version_type=linux
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10972
10973 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010974 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010975 $as_echo_n "(cached) " >&6
10976else
10977 lt_cv_shlibpath_overrides_runpath=no
10978 save_LDFLAGS=$LDFLAGS
10979 save_libdir=$libdir
10980 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10981 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h. */
10984
10985int
10986main ()
10987{
10988
10989 ;
10990 return 0;
10991}
10992_ACEOF
10993if ac_fn_c_try_link "$LINENO"; then :
10994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10995 lt_cv_shlibpath_overrides_runpath=yes
10996fi
10997fi
10998rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LDFLAGS=$save_LDFLAGS
11001 libdir=$save_libdir
11002
11003fi
11004
11005 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11006
11007 # This implies no fast_install, which is unacceptable.
11008 # Some rework will be needed to allow for fast_install
11009 # before this can be enabled.
11010 hardcode_into_libs=yes
11011
11012 # Append ld.so.conf contents to the search path
11013 if test -f /etc/ld.so.conf; then
11014 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;s/"//g;/^$/d' | tr '\n' ' '`
11015 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11016 fi
11017
11018 # We used to test for /lib/ld.so.1 and disable shared libraries on
11019 # powerpc, because MkLinux only supported shared libraries with the
11020 # GNU dynamic linker. Since this was broken with cross compilers,
11021 # most powerpc-linux boxes support dynamic linking these days and
11022 # people can always --disable-shared, the test was removed, and we
11023 # assume the GNU/Linux dynamic linker is in use.
11024 dynamic_linker='GNU/Linux ld.so'
11025 ;;
11026
11027netbsd*)
11028 version_type=sunos
11029 need_lib_prefix=no
11030 need_version=no
11031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11034 dynamic_linker='NetBSD (a.out) ld.so'
11035 else
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 dynamic_linker='NetBSD ld.elf_so'
11039 fi
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes
11042 hardcode_into_libs=yes
11043 ;;
11044
11045newsos6)
11046 version_type=linux
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050 ;;
11051
11052*nto* | *qnx*)
11053 version_type=qnx
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=no
11060 hardcode_into_libs=yes
11061 dynamic_linker='ldqnx.so'
11062 ;;
11063
11064openbsd*)
11065 version_type=sunos
11066 sys_lib_dlsearch_path_spec="/usr/lib"
11067 need_lib_prefix=no
11068 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11069 case $host_os in
11070 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11071 *) need_version=no ;;
11072 esac
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 case $host_os in
11078 openbsd2.[89] | openbsd2.[89].*)
11079 shlibpath_overrides_runpath=no
11080 ;;
11081 *)
11082 shlibpath_overrides_runpath=yes
11083 ;;
11084 esac
11085 else
11086 shlibpath_overrides_runpath=yes
11087 fi
11088 ;;
11089
11090os2*)
11091 libname_spec='$name'
11092 shrext_cmds=".dll"
11093 need_lib_prefix=no
11094 library_names_spec='$libname${shared_ext} $libname.a'
11095 dynamic_linker='OS/2 ld.exe'
11096 shlibpath_var=LIBPATH
11097 ;;
11098
11099osf3* | osf4* | osf5*)
11100 version_type=osf
11101 need_lib_prefix=no
11102 need_version=no
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11107 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11108 ;;
11109
11110rdos*)
11111 dynamic_linker=no
11112 ;;
11113
11114solaris*)
11115 version_type=linux
11116 need_lib_prefix=no
11117 need_version=no
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11123 # ldd complains unless libraries are executable
11124 postinstall_cmds='chmod +x $lib'
11125 ;;
11126
11127sunos4*)
11128 version_type=sunos
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 if test "$with_gnu_ld" = yes; then
11134 need_lib_prefix=no
11135 fi
11136 need_version=yes
11137 ;;
11138
11139sysv4 | sysv4.3*)
11140 version_type=linux
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 case $host_vendor in
11145 sni)
11146 shlibpath_overrides_runpath=no
11147 need_lib_prefix=no
11148 runpath_var=LD_RUN_PATH
11149 ;;
11150 siemens)
11151 need_lib_prefix=no
11152 ;;
11153 motorola)
11154 need_lib_prefix=no
11155 need_version=no
11156 shlibpath_overrides_runpath=no
11157 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11158 ;;
11159 esac
11160 ;;
11161
11162sysv4*MP*)
11163 if test -d /usr/nec ;then
11164 version_type=linux
11165 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11166 soname_spec='$libname${shared_ext}.$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 fi
11169 ;;
11170
11171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 version_type=freebsd-elf
11173 need_lib_prefix=no
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 hardcode_into_libs=yes
11180 if test "$with_gnu_ld" = yes; then
11181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11182 else
11183 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11184 case $host_os in
11185 sco3.2v5*)
11186 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11187 ;;
11188 esac
11189 fi
11190 sys_lib_dlsearch_path_spec='/usr/lib'
11191 ;;
11192
11193tpf*)
11194 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11195 version_type=linux
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=no
11201 hardcode_into_libs=yes
11202 ;;
11203
11204uts4*)
11205 version_type=linux
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 ;;
11210
11211*)
11212 dynamic_linker=no
11213 ;;
11214esac
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11216$as_echo "$dynamic_linker" >&6; }
11217test "$dynamic_linker" = no && can_build_shared=no
11218
11219variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11220if test "$GCC" = yes; then
11221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11222fi
11223
11224if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11225 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226fi
11227if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11228 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11229fi
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11323$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11324hardcode_action=
11325if test -n "$hardcode_libdir_flag_spec" ||
11326 test -n "$runpath_var" ||
11327 test "X$hardcode_automatic" = "Xyes" ; then
11328
11329 # We can hardcode non-existent directories.
11330 if test "$hardcode_direct" != no &&
11331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11332 # have to relink, otherwise we might link with an installed library
11333 # when we should be linking with a yet-to-be-installed one
11334 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11335 test "$hardcode_minus_L" != no; then
11336 # Linking always hardcodes the temporary library directory.
11337 hardcode_action=relink
11338 else
11339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11340 hardcode_action=immediate
11341 fi
11342else
11343 # We cannot hardcode anything, or else we can only hardcode existing
11344 # directories.
11345 hardcode_action=unsupported
11346fi
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11348$as_echo "$hardcode_action" >&6; }
11349
11350if test "$hardcode_action" = relink ||
11351 test "$inherit_rpath" = yes; then
11352 # Fast installation is not supported
11353 enable_fast_install=no
11354elif test "$shlibpath_overrides_runpath" = yes ||
11355 test "$enable_shared" = no; then
11356 # Fast installation is not necessary
11357 enable_fast_install=needless
11358fi
11359
11360
11361
11362
11363
11364
11365 if test "x$enable_dlopen" != xyes; then
11366 enable_dlopen=unknown
11367 enable_dlopen_self=unknown
11368 enable_dlopen_self_static=unknown
11369else
11370 lt_cv_dlopen=no
11371 lt_cv_dlopen_libs=
11372
11373 case $host_os in
11374 beos*)
11375 lt_cv_dlopen="load_add_on"
11376 lt_cv_dlopen_libs=
11377 lt_cv_dlopen_self=yes
11378 ;;
11379
11380 mingw* | pw32* | cegcc*)
11381 lt_cv_dlopen="LoadLibrary"
11382 lt_cv_dlopen_libs=
11383 ;;
11384
11385 cygwin*)
11386 lt_cv_dlopen="dlopen"
11387 lt_cv_dlopen_libs=
11388 ;;
11389
11390 darwin*)
11391 # if libdl is installed we need to link against it
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011394if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011395 $as_echo_n "(cached) " >&6
11396else
11397 ac_check_lib_save_LIBS=$LIBS
11398LIBS="-ldl $LIBS"
11399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400/* end confdefs.h. */
11401
11402/* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405#ifdef __cplusplus
11406extern "C"
11407#endif
11408char dlopen ();
11409int
11410main ()
11411{
11412return dlopen ();
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dl_dlopen=yes
11419else
11420 ac_cv_lib_dl_dlopen=no
11421fi
11422rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424LIBS=$ac_check_lib_save_LIBS
11425fi
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430else
11431
11432 lt_cv_dlopen="dyld"
11433 lt_cv_dlopen_libs=
11434 lt_cv_dlopen_self=yes
11435
11436fi
11437
11438 ;;
11439
11440 *)
11441 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011442if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011443 lt_cv_dlopen="shl_load"
11444else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11446$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011447if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011448 $as_echo_n "(cached) " >&6
11449else
11450 ac_check_lib_save_LIBS=$LIBS
11451LIBS="-ldld $LIBS"
11452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453/* end confdefs.h. */
11454
11455/* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458#ifdef __cplusplus
11459extern "C"
11460#endif
11461char shl_load ();
11462int
11463main ()
11464{
11465return shl_load ();
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470if ac_fn_c_try_link "$LINENO"; then :
11471 ac_cv_lib_dld_shl_load=yes
11472else
11473 ac_cv_lib_dld_shl_load=no
11474fi
11475rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477LIBS=$ac_check_lib_save_LIBS
11478fi
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11480$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011481if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011482 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11483else
11484 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011485if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011486 lt_cv_dlopen="dlopen"
11487else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011490if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011491 $as_echo_n "(cached) " >&6
11492else
11493 ac_check_lib_save_LIBS=$LIBS
11494LIBS="-ldl $LIBS"
11495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h. */
11497
11498/* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501#ifdef __cplusplus
11502extern "C"
11503#endif
11504char dlopen ();
11505int
11506main ()
11507{
11508return dlopen ();
11509 ;
11510 return 0;
11511}
11512_ACEOF
11513if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dl_dlopen=yes
11515else
11516 ac_cv_lib_dl_dlopen=no
11517fi
11518rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520LIBS=$ac_check_lib_save_LIBS
11521fi
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011524if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11528$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011529if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011530 $as_echo_n "(cached) " >&6
11531else
11532 ac_check_lib_save_LIBS=$LIBS
11533LIBS="-lsvld $LIBS"
11534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h. */
11536
11537/* Override any GCC internal prototype to avoid an error.
11538 Use char because int might match the return type of a GCC
11539 builtin and then its argument prototype would still apply. */
11540#ifdef __cplusplus
11541extern "C"
11542#endif
11543char dlopen ();
11544int
11545main ()
11546{
11547return dlopen ();
11548 ;
11549 return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_link "$LINENO"; then :
11553 ac_cv_lib_svld_dlopen=yes
11554else
11555 ac_cv_lib_svld_dlopen=no
11556fi
11557rm -f core conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11559LIBS=$ac_check_lib_save_LIBS
11560fi
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11562$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011563if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11567$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011568if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011569 $as_echo_n "(cached) " >&6
11570else
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-ldld $LIBS"
11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
11575
11576/* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582char dld_link ();
11583int
11584main ()
11585{
11586return dld_link ();
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_dld_dld_link=yes
11593else
11594 ac_cv_lib_dld_dld_link=no
11595fi
11596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598LIBS=$ac_check_lib_save_LIBS
11599fi
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11601$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011602if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011603 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11604fi
11605
11606
11607fi
11608
11609
11610fi
11611
11612
11613fi
11614
11615
11616fi
11617
11618
11619fi
11620
11621 ;;
11622 esac
11623
11624 if test "x$lt_cv_dlopen" != xno; then
11625 enable_dlopen=yes
11626 else
11627 enable_dlopen=no
11628 fi
11629
11630 case $lt_cv_dlopen in
11631 dlopen)
11632 save_CPPFLAGS="$CPPFLAGS"
11633 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634
11635 save_LDFLAGS="$LDFLAGS"
11636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11637
11638 save_LIBS="$LIBS"
11639 LIBS="$lt_cv_dlopen_libs $LIBS"
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11642$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011643if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011644 $as_echo_n "(cached) " >&6
11645else
11646 if test "$cross_compiling" = yes; then :
11647 lt_cv_dlopen_self=cross
11648else
11649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650 lt_status=$lt_dlunknown
11651 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw81e07d42020-04-21 23:03:23 +020011652#line 11652 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011653#include "confdefs.h"
11654
11655#if HAVE_DLFCN_H
11656#include <dlfcn.h>
11657#endif
11658
11659#include <stdio.h>
11660
11661#ifdef RTLD_GLOBAL
11662# define LT_DLGLOBAL RTLD_GLOBAL
11663#else
11664# ifdef DL_GLOBAL
11665# define LT_DLGLOBAL DL_GLOBAL
11666# else
11667# define LT_DLGLOBAL 0
11668# endif
11669#endif
11670
11671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672 find out it does not work in some platform. */
11673#ifndef LT_DLLAZY_OR_NOW
11674# ifdef RTLD_LAZY
11675# define LT_DLLAZY_OR_NOW RTLD_LAZY
11676# else
11677# ifdef DL_LAZY
11678# define LT_DLLAZY_OR_NOW DL_LAZY
11679# else
11680# ifdef RTLD_NOW
11681# define LT_DLLAZY_OR_NOW RTLD_NOW
11682# else
11683# ifdef DL_NOW
11684# define LT_DLLAZY_OR_NOW DL_NOW
11685# else
11686# define LT_DLLAZY_OR_NOW 0
11687# endif
11688# endif
11689# endif
11690# endif
11691#endif
11692
11693/* When -fvisbility=hidden is used, assume the code has been annotated
11694 correspondingly for the symbols needed. */
11695#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11696void fnord () __attribute__((visibility("default")));
11697#endif
11698
11699void fnord () { int i=42; }
11700int main ()
11701{
11702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11703 int status = $lt_dlunknown;
11704
11705 if (self)
11706 {
11707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11708 else
11709 {
11710 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11711 else puts (dlerror ());
11712 }
11713 /* dlclose (self); */
11714 }
11715 else
11716 puts (dlerror ());
11717
11718 return status;
11719}
11720_LT_EOF
11721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11722 (eval $ac_link) 2>&5
11723 ac_status=$?
11724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11725 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11726 (./conftest; exit; ) >&5 2>/dev/null
11727 lt_status=$?
11728 case x$lt_status in
11729 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11730 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11731 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11732 esac
11733 else :
11734 # compilation failed
11735 lt_cv_dlopen_self=no
11736 fi
11737fi
11738rm -fr conftest*
11739
11740
11741fi
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11743$as_echo "$lt_cv_dlopen_self" >&6; }
11744
11745 if test "x$lt_cv_dlopen_self" = xyes; then
11746 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11748$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011749if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011750 $as_echo_n "(cached) " >&6
11751else
11752 if test "$cross_compiling" = yes; then :
11753 lt_cv_dlopen_self_static=cross
11754else
11755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11756 lt_status=$lt_dlunknown
11757 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw81e07d42020-04-21 23:03:23 +020011758#line 11758 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011759#include "confdefs.h"
11760
11761#if HAVE_DLFCN_H
11762#include <dlfcn.h>
11763#endif
11764
11765#include <stdio.h>
11766
11767#ifdef RTLD_GLOBAL
11768# define LT_DLGLOBAL RTLD_GLOBAL
11769#else
11770# ifdef DL_GLOBAL
11771# define LT_DLGLOBAL DL_GLOBAL
11772# else
11773# define LT_DLGLOBAL 0
11774# endif
11775#endif
11776
11777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11778 find out it does not work in some platform. */
11779#ifndef LT_DLLAZY_OR_NOW
11780# ifdef RTLD_LAZY
11781# define LT_DLLAZY_OR_NOW RTLD_LAZY
11782# else
11783# ifdef DL_LAZY
11784# define LT_DLLAZY_OR_NOW DL_LAZY
11785# else
11786# ifdef RTLD_NOW
11787# define LT_DLLAZY_OR_NOW RTLD_NOW
11788# else
11789# ifdef DL_NOW
11790# define LT_DLLAZY_OR_NOW DL_NOW
11791# else
11792# define LT_DLLAZY_OR_NOW 0
11793# endif
11794# endif
11795# endif
11796# endif
11797#endif
11798
11799/* When -fvisbility=hidden is used, assume the code has been annotated
11800 correspondingly for the symbols needed. */
11801#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11802void fnord () __attribute__((visibility("default")));
11803#endif
11804
11805void fnord () { int i=42; }
11806int main ()
11807{
11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11809 int status = $lt_dlunknown;
11810
11811 if (self)
11812 {
11813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11814 else
11815 {
11816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 else puts (dlerror ());
11818 }
11819 /* dlclose (self); */
11820 }
11821 else
11822 puts (dlerror ());
11823
11824 return status;
11825}
11826_LT_EOF
11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11828 (eval $ac_link) 2>&5
11829 ac_status=$?
11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11831 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11832 (./conftest; exit; ) >&5 2>/dev/null
11833 lt_status=$?
11834 case x$lt_status in
11835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11838 esac
11839 else :
11840 # compilation failed
11841 lt_cv_dlopen_self_static=no
11842 fi
11843fi
11844rm -fr conftest*
11845
11846
11847fi
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11849$as_echo "$lt_cv_dlopen_self_static" >&6; }
11850 fi
11851
11852 CPPFLAGS="$save_CPPFLAGS"
11853 LDFLAGS="$save_LDFLAGS"
11854 LIBS="$save_LIBS"
11855 ;;
11856 esac
11857
11858 case $lt_cv_dlopen_self in
11859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11860 *) enable_dlopen_self=unknown ;;
11861 esac
11862
11863 case $lt_cv_dlopen_self_static in
11864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11865 *) enable_dlopen_self_static=unknown ;;
11866 esac
11867fi
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885striplib=
11886old_striplib=
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11888$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11889if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11891 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893$as_echo "yes" >&6; }
11894else
11895# FIXME - insert some real tests, host_os isn't really good enough
11896 case $host_os in
11897 darwin*)
11898 if test -n "$STRIP" ; then
11899 striplib="$STRIP -x"
11900 old_striplib="$STRIP -S"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902$as_echo "yes" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905$as_echo "no" >&6; }
11906 fi
11907 ;;
11908 *)
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910$as_echo "no" >&6; }
11911 ;;
11912 esac
11913fi
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926 # Report which library types will actually be built
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11928$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11930$as_echo "$can_build_shared" >&6; }
11931
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11933$as_echo_n "checking whether to build shared libraries... " >&6; }
11934 test "$can_build_shared" = "no" && enable_shared=no
11935
11936 # On AIX, shared libraries and static libraries use the same namespace, and
11937 # are all built from PIC.
11938 case $host_os in
11939 aix3*)
11940 test "$enable_shared" = yes && enable_static=no
11941 if test -n "$RANLIB"; then
11942 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11943 postinstall_cmds='$RANLIB $lib'
11944 fi
11945 ;;
11946
11947 aix[4-9]*)
11948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11949 test "$enable_shared" = yes && enable_static=no
11950 fi
11951 ;;
11952 esac
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11954$as_echo "$enable_shared" >&6; }
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11957$as_echo_n "checking whether to build static libraries... " >&6; }
11958 # Make sure either enable_shared or enable_static is yes.
11959 test "$enable_shared" = yes || enable_static=yes
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11961$as_echo "$enable_static" >&6; }
11962
11963
11964
11965
11966fi
11967ac_ext=c
11968ac_cpp='$CPP $CPPFLAGS'
11969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972
11973CC="$lt_save_CC"
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 ac_config_commands="$ac_config_commands libtool"
11988
11989
11990
11991
11992# Only expand once:
11993
11994
11995
11996
11997
11998 gdc_save_DFLAGS=$GDCFLAGS
11999 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12000
12001
12002# Source file extension for D test sources.
12003ac_ext=d
12004
12005# Object file extension for compiled D test sources.
12006objext=o
12007objext_D=$objext
12008
12009# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012010lt_simple_compile_test_code="\
12011 module object;
12012 shared int some_variable = 0;
12013"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012014
12015# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012016lt_simple_link_test_code="\
12017 module object;
12018 extern(C) int main() { return 0; }
12019"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012020
12021# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12022
12023
12024
12025
12026
12027
12028# If no C compiler was specified, use CC.
12029LTCC=${LTCC-"$CC"}
12030
12031# If no C compiler flags were specified, use CFLAGS.
12032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12033
12034# Allow CC to be a program name with arguments.
12035compiler=$CC
12036
12037
12038# save warnings/boilerplate of simple test code
12039ac_outfile=conftest.$ac_objext
12040echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12041eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12042_lt_compiler_boilerplate=`cat conftest.err`
12043$RM conftest*
12044
12045ac_outfile=conftest.$ac_objext
12046echo "$lt_simple_link_test_code" >conftest.$ac_ext
12047eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12048_lt_linker_boilerplate=`cat conftest.err`
12049$RM -r conftest*
12050
12051
12052# Allow CC to be a program name with arguments.
12053lt_save_CC=$CC
12054lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012055lt_save_GCC=$GCC
12056GCC=yes
12057CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012058CFLAGS=$GDCFLAGS
12059compiler=$CC
12060compiler_D=$CC
12061LD_D=$CC
12062for cc_temp in $compiler""; do
12063 case $cc_temp in
12064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12066 \-*) ;;
12067 *) break;;
12068 esac
12069done
12070cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12071
12072
12073# GDC did not exist at the time GCC didn't implicitly link libc in.
12074archive_cmds_need_lc_D=no
12075
12076old_archive_cmds_D=$old_archive_cmds
12077reload_flag_D=$reload_flag
12078reload_cmds_D=$reload_cmds
12079
12080## CAVEAT EMPTOR:
12081## There is no encapsulation within the following macros, do not change
12082## the running order or otherwise move them around unless you know exactly
12083## what you are doing...
12084if test -n "$compiler"; then
12085
12086lt_prog_compiler_no_builtin_flag_D=
12087
12088if test "$GCC" = yes; then
12089 case $cc_basename in
12090 nvcc*)
12091 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12092 *)
12093 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12094 esac
12095
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12097$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012098if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012099 $as_echo_n "(cached) " >&6
12100else
12101 lt_cv_prog_compiler_rtti_exceptions=no
12102 ac_outfile=conftest.$ac_objext
12103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12104 lt_compiler_flag="-fno-rtti -fno-exceptions"
12105 # Insert the option either (1) after the last *FLAGS variable, or
12106 # (2) before a word containing "conftest.", or (3) at the end.
12107 # Note that $ac_compile itself does not contain backslashes and begins
12108 # with a dollar sign (not a hyphen), so the echo should work correctly.
12109 # The option is referenced via a variable to avoid confusing sed.
12110 lt_compile=`echo "$ac_compile" | $SED \
12111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113 -e 's:$: $lt_compiler_flag:'`
12114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12115 (eval "$lt_compile" 2>conftest.err)
12116 ac_status=$?
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 if (exit $ac_status) && test -s "$ac_outfile"; then
12120 # The compiler can only warn and ignore the option if not recognized
12121 # So say no if there are warnings other than the usual output.
12122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12125 lt_cv_prog_compiler_rtti_exceptions=yes
12126 fi
12127 fi
12128 $RM conftest*
12129
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12132$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12133
12134if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12135 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12136else
12137 :
12138fi
12139
12140fi
12141
12142
12143
12144 lt_prog_compiler_wl_D=
12145lt_prog_compiler_pic_D=
12146lt_prog_compiler_static_D=
12147
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12149$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12150
12151 if test "$GCC" = yes; then
12152 lt_prog_compiler_wl_D='-Wl,'
12153 lt_prog_compiler_static_D='-static'
12154
12155 case $host_os in
12156 aix*)
12157 # All AIX code is PIC.
12158 if test "$host_cpu" = ia64; then
12159 # AIX 5 now supports IA64 processor
12160 lt_prog_compiler_static_D='-Bstatic'
12161 fi
12162 lt_prog_compiler_pic_D='-fPIC'
12163 ;;
12164
12165 amigaos*)
12166 case $host_cpu in
12167 powerpc)
12168 # see comment about AmigaOS4 .so support
12169 lt_prog_compiler_pic_D='-fPIC'
12170 ;;
12171 m68k)
12172 # FIXME: we need at least 68020 code to build shared libraries, but
12173 # adding the `-m68020' flag to GCC prevents building anything better,
12174 # like `-m68040'.
12175 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12176 ;;
12177 esac
12178 ;;
12179
12180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12181 # PIC is the default for these OSes.
12182 ;;
12183
12184 mingw* | cygwin* | pw32* | os2* | cegcc*)
12185 # This hack is so that the source file can tell whether it is being
12186 # built for inclusion in a dll (and should export symbols for example).
12187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12188 # (--disable-auto-import) libraries
12189 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12190 ;;
12191
12192 darwin* | rhapsody*)
12193 # PIC is the default on this platform
12194 # Common symbols not allowed in MH_DYLIB files
12195 lt_prog_compiler_pic_D='-fno-common'
12196 ;;
12197
12198 haiku*)
12199 # PIC is the default for Haiku.
12200 # The "-static" flag exists, but is broken.
12201 lt_prog_compiler_static_D=
12202 ;;
12203
12204 hpux*)
12205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12207 # sets the default TLS model and affects inlining.
12208 case $host_cpu in
12209 hppa*64*)
12210 # +Z the default
12211 ;;
12212 *)
12213 lt_prog_compiler_pic_D='-fPIC'
12214 ;;
12215 esac
12216 ;;
12217
12218 interix[3-9]*)
12219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12220 # Instead, we relocate shared libraries at runtime.
12221 ;;
12222
12223 msdosdjgpp*)
12224 # Just because we use GCC doesn't mean we suddenly get shared libraries
12225 # on systems that don't support them.
12226 lt_prog_compiler_can_build_shared_D=no
12227 enable_shared=no
12228 ;;
12229
12230 *nto* | *qnx*)
12231 # QNX uses GNU C++, but need to define -shared option too, otherwise
12232 # it will coredump.
12233 lt_prog_compiler_pic_D='-fPIC -shared'
12234 ;;
12235
12236 sysv4*MP*)
12237 if test -d /usr/nec; then
12238 lt_prog_compiler_pic_D=-Kconform_pic
12239 fi
12240 ;;
12241
12242 *)
12243 lt_prog_compiler_pic_D='-fPIC'
12244 ;;
12245 esac
12246
12247 case $cc_basename in
12248 nvcc*) # Cuda Compiler Driver 2.2
12249 lt_prog_compiler_wl_D='-Xlinker '
12250 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12251 ;;
12252 esac
12253 else
12254 # PORTME Check for flag to pass linker flags through the system compiler.
12255 case $host_os in
12256 aix*)
12257 lt_prog_compiler_wl_D='-Wl,'
12258 if test "$host_cpu" = ia64; then
12259 # AIX 5 now supports IA64 processor
12260 lt_prog_compiler_static_D='-Bstatic'
12261 else
12262 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12263 fi
12264 ;;
12265
12266 mingw* | cygwin* | pw32* | os2* | cegcc*)
12267 # This hack is so that the source file can tell whether it is being
12268 # built for inclusion in a dll (and should export symbols for example).
12269 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12270 ;;
12271
12272 hpux9* | hpux10* | hpux11*)
12273 lt_prog_compiler_wl_D='-Wl,'
12274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12275 # not for PA HP-UX.
12276 case $host_cpu in
12277 hppa*64*|ia64*)
12278 # +Z the default
12279 ;;
12280 *)
12281 lt_prog_compiler_pic_D='+Z'
12282 ;;
12283 esac
12284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12285 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12286 ;;
12287
12288 irix5* | irix6* | nonstopux*)
12289 lt_prog_compiler_wl_D='-Wl,'
12290 # PIC (with -KPIC) is the default.
12291 lt_prog_compiler_static_D='-non_shared'
12292 ;;
12293
12294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12295 case $cc_basename in
12296 # old Intel for x86_64 which still supported -KPIC.
12297 ecc*)
12298 lt_prog_compiler_wl_D='-Wl,'
12299 lt_prog_compiler_pic_D='-KPIC'
12300 lt_prog_compiler_static_D='-static'
12301 ;;
12302 # icc used to be incompatible with GCC.
12303 # ICC 10 doesn't accept -KPIC any more.
12304 icc* | ifort*)
12305 lt_prog_compiler_wl_D='-Wl,'
12306 lt_prog_compiler_pic_D='-fPIC'
12307 lt_prog_compiler_static_D='-static'
12308 ;;
12309 # Lahey Fortran 8.1.
12310 lf95*)
12311 lt_prog_compiler_wl_D='-Wl,'
12312 lt_prog_compiler_pic_D='--shared'
12313 lt_prog_compiler_static_D='--static'
12314 ;;
12315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12316 # Portland Group compilers (*not* the Pentium gcc compiler,
12317 # which looks to be a dead project)
12318 lt_prog_compiler_wl_D='-Wl,'
12319 lt_prog_compiler_pic_D='-fpic'
12320 lt_prog_compiler_static_D='-Bstatic'
12321 ;;
12322 ccc*)
12323 lt_prog_compiler_wl_D='-Wl,'
12324 # All Alpha code is PIC.
12325 lt_prog_compiler_static_D='-non_shared'
12326 ;;
12327 xl* | bgxl* | bgf* | mpixl*)
12328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12329 lt_prog_compiler_wl_D='-Wl,'
12330 lt_prog_compiler_pic_D='-qpic'
12331 lt_prog_compiler_static_D='-qstaticlink'
12332 ;;
12333 *)
12334 case `$CC -V 2>&1 | sed 5q` in
12335 *Sun\ F* | *Sun*Fortran*)
12336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12337 lt_prog_compiler_pic_D='-KPIC'
12338 lt_prog_compiler_static_D='-Bstatic'
12339 lt_prog_compiler_wl_D=''
12340 ;;
12341 *Sun\ C*)
12342 # Sun C 5.9
12343 lt_prog_compiler_pic_D='-KPIC'
12344 lt_prog_compiler_static_D='-Bstatic'
12345 lt_prog_compiler_wl_D='-Wl,'
12346 ;;
12347 esac
12348 ;;
12349 esac
12350 ;;
12351
12352 newsos6)
12353 lt_prog_compiler_pic_D='-KPIC'
12354 lt_prog_compiler_static_D='-Bstatic'
12355 ;;
12356
12357 *nto* | *qnx*)
12358 # QNX uses GNU C++, but need to define -shared option too, otherwise
12359 # it will coredump.
12360 lt_prog_compiler_pic_D='-fPIC -shared'
12361 ;;
12362
12363 osf3* | osf4* | osf5*)
12364 lt_prog_compiler_wl_D='-Wl,'
12365 # All OSF/1 code is PIC.
12366 lt_prog_compiler_static_D='-non_shared'
12367 ;;
12368
12369 rdos*)
12370 lt_prog_compiler_static_D='-non_shared'
12371 ;;
12372
12373 solaris*)
12374 lt_prog_compiler_pic_D='-KPIC'
12375 lt_prog_compiler_static_D='-Bstatic'
12376 case $cc_basename in
12377 f77* | f90* | f95*)
12378 lt_prog_compiler_wl_D='-Qoption ld ';;
12379 *)
12380 lt_prog_compiler_wl_D='-Wl,';;
12381 esac
12382 ;;
12383
12384 sunos4*)
12385 lt_prog_compiler_wl_D='-Qoption ld '
12386 lt_prog_compiler_pic_D='-PIC'
12387 lt_prog_compiler_static_D='-Bstatic'
12388 ;;
12389
12390 sysv4 | sysv4.2uw2* | sysv4.3*)
12391 lt_prog_compiler_wl_D='-Wl,'
12392 lt_prog_compiler_pic_D='-KPIC'
12393 lt_prog_compiler_static_D='-Bstatic'
12394 ;;
12395
12396 sysv4*MP*)
12397 if test -d /usr/nec ;then
12398 lt_prog_compiler_pic_D='-Kconform_pic'
12399 lt_prog_compiler_static_D='-Bstatic'
12400 fi
12401 ;;
12402
12403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12404 lt_prog_compiler_wl_D='-Wl,'
12405 lt_prog_compiler_pic_D='-KPIC'
12406 lt_prog_compiler_static_D='-Bstatic'
12407 ;;
12408
12409 unicos*)
12410 lt_prog_compiler_wl_D='-Wl,'
12411 lt_prog_compiler_can_build_shared_D=no
12412 ;;
12413
12414 uts4*)
12415 lt_prog_compiler_pic_D='-pic'
12416 lt_prog_compiler_static_D='-Bstatic'
12417 ;;
12418
12419 *)
12420 lt_prog_compiler_can_build_shared_D=no
12421 ;;
12422 esac
12423 fi
12424
12425case $host_os in
12426 # For platforms which do not support PIC, -DPIC is meaningless:
12427 *djgpp*)
12428 lt_prog_compiler_pic_D=
12429 ;;
12430 *)
12431 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12432 ;;
12433esac
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12435$as_echo "$lt_prog_compiler_pic_D" >&6; }
12436
12437
12438
12439#
12440# Check to make sure the PIC flag actually works.
12441#
12442if test -n "$lt_prog_compiler_pic_D"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12444$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012445if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012446 $as_echo_n "(cached) " >&6
12447else
12448 lt_cv_prog_compiler_pic_works_D=no
12449 ac_outfile=conftest.$ac_objext
12450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12451 lt_compiler_flag="$lt_prog_compiler_pic_D"
12452 # Insert the option either (1) after the last *FLAGS variable, or
12453 # (2) before a word containing "conftest.", or (3) at the end.
12454 # Note that $ac_compile itself does not contain backslashes and begins
12455 # with a dollar sign (not a hyphen), so the echo should work correctly.
12456 # The option is referenced via a variable to avoid confusing sed.
12457 lt_compile=`echo "$ac_compile" | $SED \
12458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12460 -e 's:$: $lt_compiler_flag:'`
12461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12462 (eval "$lt_compile" 2>conftest.err)
12463 ac_status=$?
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 if (exit $ac_status) && test -s "$ac_outfile"; then
12467 # The compiler can only warn and ignore the option if not recognized
12468 # So say no if there are warnings other than the usual output.
12469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12472 lt_cv_prog_compiler_pic_works_D=yes
12473 fi
12474 fi
12475 $RM conftest*
12476
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12479$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12480
12481if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12482 case $lt_prog_compiler_pic_D in
12483 "" | " "*) ;;
12484 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12485 esac
12486else
12487 lt_prog_compiler_pic_D=
12488 lt_prog_compiler_can_build_shared_D=no
12489fi
12490
12491fi
12492
12493
12494
12495#
12496# Check to make sure the static flag actually works.
12497#
12498wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012501if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012502 $as_echo_n "(cached) " >&6
12503else
12504 lt_cv_prog_compiler_static_works_D=no
12505 save_LDFLAGS="$LDFLAGS"
12506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12509 # The linker can only warn and ignore the option if not recognized
12510 # So say no if there are warnings
12511 if test -s conftest.err; then
12512 # Append any errors to the config.log.
12513 cat conftest.err 1>&5
12514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12516 if diff conftest.exp conftest.er2 >/dev/null; then
12517 lt_cv_prog_compiler_static_works_D=yes
12518 fi
12519 else
12520 lt_cv_prog_compiler_static_works_D=yes
12521 fi
12522 fi
12523 $RM -r conftest*
12524 LDFLAGS="$save_LDFLAGS"
12525
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12528$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12529
12530if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12531 :
12532else
12533 lt_prog_compiler_static_D=
12534fi
12535
12536
12537
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012541if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012542 $as_echo_n "(cached) " >&6
12543else
12544 lt_cv_prog_compiler_c_o_D=no
12545 $RM -r conftest 2>/dev/null
12546 mkdir conftest
12547 cd conftest
12548 mkdir out
12549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12550
12551 lt_compiler_flag="-o out/conftest2.$ac_objext"
12552 # Insert the option either (1) after the last *FLAGS variable, or
12553 # (2) before a word containing "conftest.", or (3) at the end.
12554 # Note that $ac_compile itself does not contain backslashes and begins
12555 # with a dollar sign (not a hyphen), so the echo should work correctly.
12556 lt_compile=`echo "$ac_compile" | $SED \
12557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559 -e 's:$: $lt_compiler_flag:'`
12560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12561 (eval "$lt_compile" 2>out/conftest.err)
12562 ac_status=$?
12563 cat out/conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566 then
12567 # The compiler can only warn and ignore the option if not recognized
12568 # So say no if there are warnings
12569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572 lt_cv_prog_compiler_c_o_D=yes
12573 fi
12574 fi
12575 chmod u+w . 2>&5
12576 $RM conftest*
12577 # SGI C++ compiler will create directory out/ii_files/ for
12578 # template instantiation
12579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12580 $RM out/* && rmdir out
12581 cd ..
12582 $RM -r conftest
12583 $RM conftest*
12584
12585fi
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12587$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12588
12589
12590
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012593if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012594 $as_echo_n "(cached) " >&6
12595else
12596 lt_cv_prog_compiler_c_o_D=no
12597 $RM -r conftest 2>/dev/null
12598 mkdir conftest
12599 cd conftest
12600 mkdir out
12601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12602
12603 lt_compiler_flag="-o out/conftest2.$ac_objext"
12604 # Insert the option either (1) after the last *FLAGS variable, or
12605 # (2) before a word containing "conftest.", or (3) at the end.
12606 # Note that $ac_compile itself does not contain backslashes and begins
12607 # with a dollar sign (not a hyphen), so the echo should work correctly.
12608 lt_compile=`echo "$ac_compile" | $SED \
12609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12611 -e 's:$: $lt_compiler_flag:'`
12612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12613 (eval "$lt_compile" 2>out/conftest.err)
12614 ac_status=$?
12615 cat out/conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12618 then
12619 # The compiler can only warn and ignore the option if not recognized
12620 # So say no if there are warnings
12621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12624 lt_cv_prog_compiler_c_o_D=yes
12625 fi
12626 fi
12627 chmod u+w . 2>&5
12628 $RM conftest*
12629 # SGI C++ compiler will create directory out/ii_files/ for
12630 # template instantiation
12631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12632 $RM out/* && rmdir out
12633 cd ..
12634 $RM -r conftest
12635 $RM conftest*
12636
12637fi
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12639$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12640
12641
12642
12643
12644hard_links="nottested"
12645if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12646 # do not overwrite the value of need_locks provided by the user
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12648$as_echo_n "checking if we can lock with hard links... " >&6; }
12649 hard_links=yes
12650 $RM conftest*
12651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12652 touch conftest.a
12653 ln conftest.a conftest.b 2>&5 || hard_links=no
12654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12656$as_echo "$hard_links" >&6; }
12657 if test "$hard_links" = no; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12659$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12660 need_locks=warn
12661 fi
12662else
12663 need_locks=no
12664fi
12665
12666
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12669$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12670
12671 runpath_var=
12672 allow_undefined_flag_D=
12673 always_export_symbols_D=no
12674 archive_cmds_D=
12675 archive_expsym_cmds_D=
12676 compiler_needs_object_D=no
12677 enable_shared_with_static_runtimes_D=no
12678 export_dynamic_flag_spec_D=
12679 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12680 hardcode_automatic_D=no
12681 hardcode_direct_D=no
12682 hardcode_direct_absolute_D=no
12683 hardcode_libdir_flag_spec_D=
12684 hardcode_libdir_flag_spec_ld_D=
12685 hardcode_libdir_separator_D=
12686 hardcode_minus_L_D=no
12687 hardcode_shlibpath_var_D=unsupported
12688 inherit_rpath_D=no
12689 link_all_deplibs_D=unknown
12690 module_cmds_D=
12691 module_expsym_cmds_D=
12692 old_archive_from_new_cmds_D=
12693 old_archive_from_expsyms_cmds_D=
12694 thread_safe_flag_spec_D=
12695 whole_archive_flag_spec_D=
12696 # include_expsyms should be a list of space-separated symbols to be *always*
12697 # included in the symbol list
12698 include_expsyms_D=
12699 # exclude_expsyms can be an extended regexp of symbols to exclude
12700 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12702 # as well as any symbol that contains `d'.
12703 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12705 # platforms (ab)use it in PIC code, but their linkers get confused if
12706 # the symbol is explicitly referenced. Since portable code cannot
12707 # rely on this symbol name, it's probably fine to never include it in
12708 # preloaded symbol tables.
12709 # Exclude shared library initialization/finalization symbols.
12710 extract_expsyms_cmds=
12711
12712 case $host_os in
12713 cygwin* | mingw* | pw32* | cegcc*)
12714 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12715 # When not using gcc, we currently assume that we are using
12716 # Microsoft Visual C++.
12717 if test "$GCC" != yes; then
12718 with_gnu_ld=no
12719 fi
12720 ;;
12721 interix*)
12722 # we just hope/assume this is gcc and not c89 (= MSVC++)
12723 with_gnu_ld=yes
12724 ;;
12725 openbsd*)
12726 with_gnu_ld=no
12727 ;;
12728 esac
12729
12730 ld_shlibs_D=yes
12731
12732 # On some targets, GNU ld is compatible enough with the native linker
12733 # that we're better off using the native interface for both.
12734 lt_use_gnu_ld_interface=no
12735 if test "$with_gnu_ld" = yes; then
12736 case $host_os in
12737 aix*)
12738 # The AIX port of GNU ld has always aspired to compatibility
12739 # with the native linker. However, as the warning in the GNU ld
12740 # block says, versions before 2.19.5* couldn't really create working
12741 # shared libraries, regardless of the interface used.
12742 case `$LD -v 2>&1` in
12743 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12744 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12745 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12746 *)
12747 lt_use_gnu_ld_interface=yes
12748 ;;
12749 esac
12750 ;;
12751 *)
12752 lt_use_gnu_ld_interface=yes
12753 ;;
12754 esac
12755 fi
12756
12757 if test "$lt_use_gnu_ld_interface" = yes; then
12758 # If archive_cmds runs LD, not CC, wlarc should be empty
12759 wlarc='${wl}'
12760
12761 # Set some defaults for GNU ld with shared library support. These
12762 # are reset later if shared libraries are not supported. Putting them
12763 # here allows them to be overridden if necessary.
12764 runpath_var=LD_RUN_PATH
12765 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12766 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12767 # ancient GNU ld didn't support --whole-archive et. al.
12768 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12769 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12770 else
12771 whole_archive_flag_spec_D=
12772 fi
12773 supports_anon_versioning=no
12774 case `$LD -v 2>&1` in
12775 *GNU\ gold*) supports_anon_versioning=yes ;;
12776 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12777 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12778 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12779 *\ 2.11.*) ;; # other 2.11 versions
12780 *) supports_anon_versioning=yes ;;
12781 esac
12782
12783 # See if GNU ld supports shared libraries.
12784 case $host_os in
12785 aix[3-9]*)
12786 # On AIX/PPC, the GNU linker is very broken
12787 if test "$host_cpu" != ia64; then
12788 ld_shlibs_D=no
12789 cat <<_LT_EOF 1>&2
12790
12791*** Warning: the GNU linker, at least up to release 2.19, is reported
12792*** to be unable to reliably create shared libraries on AIX.
12793*** Therefore, libtool is disabling shared libraries support. If you
12794*** really care for shared libraries, you may want to install binutils
12795*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12796*** You will then need to restart the configuration process.
12797
12798_LT_EOF
12799 fi
12800 ;;
12801
12802 amigaos*)
12803 case $host_cpu in
12804 powerpc)
12805 # see comment about AmigaOS4 .so support
12806 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12807 archive_expsym_cmds_D=''
12808 ;;
12809 m68k)
12810 archive_cmds_D='$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)'
12811 hardcode_libdir_flag_spec_D='-L$libdir'
12812 hardcode_minus_L_D=yes
12813 ;;
12814 esac
12815 ;;
12816
12817 beos*)
12818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12819 allow_undefined_flag_D=unsupported
12820 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12821 # support --undefined. This deserves some investigation. FIXME
12822 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 else
12824 ld_shlibs_D=no
12825 fi
12826 ;;
12827
12828 cygwin* | mingw* | pw32* | cegcc*)
12829 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12830 # as there is no search path for DLLs.
12831 hardcode_libdir_flag_spec_D='-L$libdir'
12832 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12833 allow_undefined_flag_D=unsupported
12834 always_export_symbols_D=no
12835 enable_shared_with_static_runtimes_D=yes
12836 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12837
12838 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12839 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12840 # If the export-symbols file already is a .def file (1st line
12841 # is EXPORTS), use it as is; otherwise, prepend...
12842 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12843 cp $export_symbols $output_objdir/$soname.def;
12844 else
12845 echo EXPORTS > $output_objdir/$soname.def;
12846 cat $export_symbols >> $output_objdir/$soname.def;
12847 fi~
12848 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12849 else
12850 ld_shlibs_D=no
12851 fi
12852 ;;
12853
12854 haiku*)
12855 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12856 link_all_deplibs_D=yes
12857 ;;
12858
12859 interix[3-9]*)
12860 hardcode_direct_D=no
12861 hardcode_shlibpath_var_D=no
12862 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12863 export_dynamic_flag_spec_D='${wl}-E'
12864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12865 # Instead, shared libraries are loaded at an image base (0x10000000 by
12866 # default) and relocated if they conflict, which is a slow very memory
12867 # consuming and fragmenting process. To avoid this, we pick a random,
12868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12870 archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12871 archive_expsym_cmds_D='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'
12872 ;;
12873
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000012874 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000012875 tmp_diet=no
12876 if test "$host_os" = linux-dietlibc; then
12877 case $cc_basename in
12878 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12879 esac
12880 fi
12881 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12882 && test "$tmp_diet" = no
12883 then
12884 tmp_addflag=' $pic_flag'
12885 tmp_sharedflag='-shared'
12886 case $cc_basename,$host_cpu in
12887 pgcc*) # Portland Group C compiler
12888 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12889 tmp_addflag=' $pic_flag'
12890 ;;
12891 pgf77* | pgf90* | pgf95* | pgfortran*)
12892 # Portland Group f77 and f90 compilers
12893 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12894 tmp_addflag=' $pic_flag -Mnomain' ;;
12895 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12896 tmp_addflag=' -i_dynamic' ;;
12897 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12898 tmp_addflag=' -i_dynamic -nofor_main' ;;
12899 ifc* | ifort*) # Intel Fortran compiler
12900 tmp_addflag=' -nofor_main' ;;
12901 lf95*) # Lahey Fortran 8.1
12902 whole_archive_flag_spec_D=
12903 tmp_sharedflag='--shared' ;;
12904 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12905 tmp_sharedflag='-qmkshrobj'
12906 tmp_addflag= ;;
12907 nvcc*) # Cuda Compiler Driver 2.2
12908 whole_archive_flag_spec_D='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12909 compiler_needs_object_D=yes
12910 ;;
12911 esac
12912 case `$CC -V 2>&1 | sed 5q` in
12913 *Sun\ C*) # Sun C 5.9
12914 whole_archive_flag_spec_D='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12915 compiler_needs_object_D=yes
12916 tmp_sharedflag='-G' ;;
12917 *Sun\ F*) # Sun Fortran 8.3
12918 tmp_sharedflag='-G' ;;
12919 esac
12920 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921
12922 if test "x$supports_anon_versioning" = xyes; then
12923 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12925 echo "local: *; };" >> $output_objdir/$libname.ver~
12926 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12927 fi
12928
12929 case $cc_basename in
12930 xlf* | bgf* | bgxlf* | mpixlf*)
12931 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12932 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12933 hardcode_libdir_flag_spec_D=
12934 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12935 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12936 if test "x$supports_anon_versioning" = xyes; then
12937 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12939 echo "local: *; };" >> $output_objdir/$libname.ver~
12940 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12941 fi
12942 ;;
12943 esac
12944 else
12945 ld_shlibs_D=no
12946 fi
12947 ;;
12948
12949 netbsd*)
12950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12951 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12952 wlarc=
12953 else
12954 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12955 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956 fi
12957 ;;
12958
12959 solaris*)
12960 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12961 ld_shlibs_D=no
12962 cat <<_LT_EOF 1>&2
12963
12964*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12965*** create shared libraries on Solaris systems. Therefore, libtool
12966*** is disabling shared libraries support. We urge you to upgrade GNU
12967*** binutils to release 2.9.1 or newer. Another option is to modify
12968*** your PATH or compiler configuration so that the native linker is
12969*** used, and then restart.
12970
12971_LT_EOF
12972 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12973 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975 else
12976 ld_shlibs_D=no
12977 fi
12978 ;;
12979
12980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12981 case `$LD -v 2>&1` in
12982 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12983 ld_shlibs_D=no
12984 cat <<_LT_EOF 1>&2
12985
12986*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12987*** reliably create shared libraries on SCO systems. Therefore, libtool
12988*** is disabling shared libraries support. We urge you to upgrade GNU
12989*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12990*** your PATH or compiler configuration so that the native linker is
12991*** used, and then restart.
12992
12993_LT_EOF
12994 ;;
12995 *)
12996 # For security reasons, it is highly recommended that you always
12997 # use absolute paths for naming shared libraries, and exclude the
12998 # DT_RUNPATH tag from executables and libraries. But doing so
12999 # requires that you compile everything twice, which is a pain.
13000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13001 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13002 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13003 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13004 else
13005 ld_shlibs_D=no
13006 fi
13007 ;;
13008 esac
13009 ;;
13010
13011 sunos4*)
13012 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013 wlarc=
13014 hardcode_direct_D=yes
13015 hardcode_shlibpath_var_D=no
13016 ;;
13017
13018 *)
13019 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13020 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13022 else
13023 ld_shlibs_D=no
13024 fi
13025 ;;
13026 esac
13027
13028 if test "$ld_shlibs_D" = no; then
13029 runpath_var=
13030 hardcode_libdir_flag_spec_D=
13031 export_dynamic_flag_spec_D=
13032 whole_archive_flag_spec_D=
13033 fi
13034 else
13035 # PORTME fill in a description of your system's linker (not GNU ld)
13036 case $host_os in
13037 aix3*)
13038 allow_undefined_flag_D=unsupported
13039 always_export_symbols_D=yes
13040 archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13041 # Note: this linker hardcodes the directories in LIBPATH if there
13042 # are no directories specified by -L.
13043 hardcode_minus_L_D=yes
13044 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13045 # Neither direct hardcoding nor static linking is supported with a
13046 # broken collect2.
13047 hardcode_direct_D=unsupported
13048 fi
13049 ;;
13050
13051 aix[4-9]*)
13052 if test "$host_cpu" = ia64; then
13053 # On IA64, the linker does run time linking by default, so we don't
13054 # have to do anything special.
13055 aix_use_runtimelinking=no
13056 exp_sym_flag='-Bexport'
13057 no_entry_flag=""
13058 else
13059 # If we're using GNU nm, then we don't want the "-C" option.
13060 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13061 # Also, AIX nm treats weak defined symbols like other global
13062 # defined symbols, whereas GNU nm marks them as "W".
13063 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13064 export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13065 else
13066 export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13067 fi
13068 aix_use_runtimelinking=no
13069
13070 # Test if we are trying to use run time linking or normal
13071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13072 # need to do runtime linking.
13073 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13074 for ld_flag in $LDFLAGS; do
13075 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13076 aix_use_runtimelinking=yes
13077 break
13078 fi
13079 done
13080 ;;
13081 esac
13082
13083 exp_sym_flag='-bexport'
13084 no_entry_flag='-bnoentry'
13085 fi
13086
13087 # When large executables or shared objects are built, AIX ld can
13088 # have problems creating the table of contents. If linking a library
13089 # or program results in "error TOC overflow" add -mminimal-toc to
13090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13092
13093 archive_cmds_D=''
13094 hardcode_direct_D=yes
13095 hardcode_direct_absolute_D=yes
13096 hardcode_libdir_separator_D=':'
13097 link_all_deplibs_D=yes
13098 file_list_spec_D='${wl}-f,'
13099
13100 if test "$GCC" = yes; then
13101 case $host_os in aix4.[012]|aix4.[012].*)
13102 # We only want to do this on AIX 4.2 and lower, the check
13103 # below for broken collect2 doesn't work under 4.3+
13104 collect2name=`${CC} -print-prog-name=collect2`
13105 if test -f "$collect2name" &&
13106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13107 then
13108 # We have reworked collect2
13109 :
13110 else
13111 # We have old collect2
13112 hardcode_direct_D=unsupported
13113 # It fails to find uninstalled libraries when the uninstalled
13114 # path is not listed in the libpath. Setting hardcode_minus_L
13115 # to unsupported forces relinking
13116 hardcode_minus_L_D=yes
13117 hardcode_libdir_flag_spec_D='-L$libdir'
13118 hardcode_libdir_separator_D=
13119 fi
13120 ;;
13121 esac
13122 shared_flag='-shared'
13123 if test "$aix_use_runtimelinking" = yes; then
13124 shared_flag="$shared_flag "'${wl}-G'
13125 fi
13126 else
13127 # not using gcc
13128 if test "$host_cpu" = ia64; then
13129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13130 # chokes on -Wl,-G. The following line is correct:
13131 shared_flag='-G'
13132 else
13133 if test "$aix_use_runtimelinking" = yes; then
13134 shared_flag='${wl}-G'
13135 else
13136 shared_flag='${wl}-bM:SRE'
13137 fi
13138 fi
13139 fi
13140
13141 export_dynamic_flag_spec_D='${wl}-bexpall'
13142 # It seems that -bexpall does not export symbols beginning with
13143 # underscore (_), so it is better to generate a list of symbols to export.
13144 always_export_symbols_D=yes
13145 if test "$aix_use_runtimelinking" = yes; then
13146 # Warning - without using the other runtime loading flags (-brtl),
13147 # -berok will link without error, but may produce a broken library.
13148 allow_undefined_flag_D='-berok'
13149 # Determine the default libpath from the value encoded in an
13150 # empty executable.
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h. */
13153
13154int
13155main ()
13156{
13157
13158 ;
13159 return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_link "$LINENO"; then :
13163
13164lt_aix_libpath_sed='
13165 /Import File Strings/,/^$/ {
13166 /^0/ {
13167 s/^0 *\(.*\)$/\1/
13168 p
13169 }
13170 }'
13171aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172# Check for a 64-bit object if we didn't find anything.
13173if test -z "$aix_libpath"; then
13174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13175fi
13176fi
13177rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13180
13181 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13182 archive_expsym_cmds_D='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13183 else
13184 if test "$host_cpu" = ia64; then
13185 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13186 allow_undefined_flag_D="-z nodefs"
13187 archive_expsym_cmds_D="\$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"
13188 else
13189 # Determine the default libpath from the value encoded in an
13190 # empty executable.
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h. */
13193
13194int
13195main ()
13196{
13197
13198 ;
13199 return 0;
13200}
13201_ACEOF
13202if ac_fn_c_try_link "$LINENO"; then :
13203
13204lt_aix_libpath_sed='
13205 /Import File Strings/,/^$/ {
13206 /^0/ {
13207 s/^0 *\(.*\)$/\1/
13208 p
13209 }
13210 }'
13211aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212# Check for a 64-bit object if we didn't find anything.
13213if test -z "$aix_libpath"; then
13214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215fi
13216fi
13217rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13220
13221 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13222 # Warning - without using the other run time loading flags,
13223 # -berok will link without error, but may produce a broken library.
13224 no_undefined_flag_D=' ${wl}-bernotok'
13225 allow_undefined_flag_D=' ${wl}-berok'
13226 if test "$with_gnu_ld" = yes; then
13227 # We only use this code for GNU lds that support --whole-archive.
13228 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13229 else
13230 # Exported symbols can be pulled into shared objects from archives
13231 whole_archive_flag_spec_D='$convenience'
13232 fi
13233 archive_cmds_need_lc_D=yes
13234 # This is similar to how AIX traditionally builds its shared libraries.
13235 archive_expsym_cmds_D="\$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'
13236 fi
13237 fi
13238 ;;
13239
13240 amigaos*)
13241 case $host_cpu in
13242 powerpc)
13243 # see comment about AmigaOS4 .so support
13244 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13245 archive_expsym_cmds_D=''
13246 ;;
13247 m68k)
13248 archive_cmds_D='$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)'
13249 hardcode_libdir_flag_spec_D='-L$libdir'
13250 hardcode_minus_L_D=yes
13251 ;;
13252 esac
13253 ;;
13254
13255 bsdi[45]*)
13256 export_dynamic_flag_spec_D=-rdynamic
13257 ;;
13258
13259 cygwin* | mingw* | pw32* | cegcc*)
13260 # When not using gcc, we currently assume that we are using
13261 # Microsoft Visual C++.
13262 # hardcode_libdir_flag_spec is actually meaningless, as there is
13263 # no search path for DLLs.
13264 hardcode_libdir_flag_spec_D=' '
13265 allow_undefined_flag_D=unsupported
13266 # Tell ltmain to make .lib files, not .a files.
13267 libext=lib
13268 # Tell ltmain to make .dll files, not .so files.
13269 shrext_cmds=".dll"
13270 # FIXME: Setting linknames here is a bad hack.
13271 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13272 # The linker will automatically build a .lib file if we build a DLL.
13273 old_archive_from_new_cmds_D='true'
13274 # FIXME: Should let the user specify the lib program.
13275 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13276 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13277 enable_shared_with_static_runtimes_D=yes
13278 ;;
13279
13280 darwin* | rhapsody*)
13281
13282
13283 archive_cmds_need_lc_D=no
13284 hardcode_direct_D=no
13285 hardcode_automatic_D=yes
13286 hardcode_shlibpath_var_D=unsupported
13287 if test "$lt_cv_ld_force_load" = "yes"; then
13288 whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13289 else
13290 whole_archive_flag_spec_D=''
13291 fi
13292 link_all_deplibs_D=yes
13293 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13294 case $cc_basename in
13295 ifort*) _lt_dar_can_shared=yes ;;
13296 *) _lt_dar_can_shared=$GCC ;;
13297 esac
13298 if test "$_lt_dar_can_shared" = "yes"; then
13299 output_verbose_link_cmd=func_echo_all
13300 archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13301 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13302 archive_expsym_cmds_D="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}"
13303 module_expsym_cmds_D="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}"
13304
13305 else
13306 ld_shlibs_D=no
13307 fi
13308
13309 ;;
13310
13311 dgux*)
13312 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13313 hardcode_libdir_flag_spec_D='-L$libdir'
13314 hardcode_shlibpath_var_D=no
13315 ;;
13316
13317 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13318 # support. Future versions do this automatically, but an explicit c++rt0.o
13319 # does not break anything, and helps significantly (at the cost of a little
13320 # extra space).
13321 freebsd2.2*)
13322 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13323 hardcode_libdir_flag_spec_D='-R$libdir'
13324 hardcode_direct_D=yes
13325 hardcode_shlibpath_var_D=no
13326 ;;
13327
13328 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13329 freebsd2.*)
13330 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13331 hardcode_direct_D=yes
13332 hardcode_minus_L_D=yes
13333 hardcode_shlibpath_var_D=no
13334 ;;
13335
13336 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13337 freebsd* | dragonfly*)
13338 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13339 hardcode_libdir_flag_spec_D='-R$libdir'
13340 hardcode_direct_D=yes
13341 hardcode_shlibpath_var_D=no
13342 ;;
13343
13344 hpux9*)
13345 if test "$GCC" = yes; then
13346 archive_cmds_D='$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'
13347 else
13348 archive_cmds_D='$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'
13349 fi
13350 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13351 hardcode_libdir_separator_D=:
13352 hardcode_direct_D=yes
13353
13354 # hardcode_minus_L: Not really in the search PATH,
13355 # but as the default location of the library.
13356 hardcode_minus_L_D=yes
13357 export_dynamic_flag_spec_D='${wl}-E'
13358 ;;
13359
13360 hpux10*)
13361 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13362 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13363 else
13364 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13365 fi
13366 if test "$with_gnu_ld" = no; then
13367 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13368 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13369 hardcode_libdir_separator_D=:
13370 hardcode_direct_D=yes
13371 hardcode_direct_absolute_D=yes
13372 export_dynamic_flag_spec_D='${wl}-E'
13373 # hardcode_minus_L: Not really in the search PATH,
13374 # but as the default location of the library.
13375 hardcode_minus_L_D=yes
13376 fi
13377 ;;
13378
13379 hpux11*)
13380 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13381 case $host_cpu in
13382 hppa*64*)
13383 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 ;;
13385 ia64*)
13386 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 *)
13389 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13390 ;;
13391 esac
13392 else
13393 case $host_cpu in
13394 hppa*64*)
13395 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 ;;
13397 ia64*)
13398 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13399 ;;
13400 *)
13401 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13402 ;;
13403 esac
13404 fi
13405 if test "$with_gnu_ld" = no; then
13406 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13407 hardcode_libdir_separator_D=:
13408
13409 case $host_cpu in
13410 hppa*64*|ia64*)
13411 hardcode_direct_D=no
13412 hardcode_shlibpath_var_D=no
13413 ;;
13414 *)
13415 hardcode_direct_D=yes
13416 hardcode_direct_absolute_D=yes
13417 export_dynamic_flag_spec_D='${wl}-E'
13418
13419 # hardcode_minus_L: Not really in the search PATH,
13420 # but as the default location of the library.
13421 hardcode_minus_L_D=yes
13422 ;;
13423 esac
13424 fi
13425 ;;
13426
13427 irix5* | irix6* | nonstopux*)
13428 if test "$GCC" = yes; then
13429 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13430 # Try to use the -exported_symbol ld option, if it does not
13431 # work, assume that -exports_file does not work either and
13432 # implicitly export all symbols.
13433 save_LDFLAGS="$LDFLAGS"
13434 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h. */
13437int foo(void) {}
13438_ACEOF
13439if ac_fn_c_try_link "$LINENO"; then :
13440 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13441
13442fi
13443rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LDFLAGS="$save_LDFLAGS"
13446 else
13447 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13448 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13449 fi
13450 archive_cmds_need_lc_D='no'
13451 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13452 hardcode_libdir_separator_D=:
13453 inherit_rpath_D=yes
13454 link_all_deplibs_D=yes
13455 ;;
13456
13457 netbsd*)
13458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13459 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13460 else
13461 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13462 fi
13463 hardcode_libdir_flag_spec_D='-R$libdir'
13464 hardcode_direct_D=yes
13465 hardcode_shlibpath_var_D=no
13466 ;;
13467
13468 newsos6)
13469 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 hardcode_direct_D=yes
13471 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13472 hardcode_libdir_separator_D=:
13473 hardcode_shlibpath_var_D=no
13474 ;;
13475
13476 *nto* | *qnx*)
13477 ;;
13478
13479 openbsd*)
13480 if test -f /usr/libexec/ld.so; then
13481 hardcode_direct_D=yes
13482 hardcode_shlibpath_var_D=no
13483 hardcode_direct_absolute_D=yes
13484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13485 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13487 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13488 export_dynamic_flag_spec_D='${wl}-E'
13489 else
13490 case $host_os in
13491 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13492 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13493 hardcode_libdir_flag_spec_D='-R$libdir'
13494 ;;
13495 *)
13496 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13497 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13498 ;;
13499 esac
13500 fi
13501 else
13502 ld_shlibs_D=no
13503 fi
13504 ;;
13505
13506 os2*)
13507 hardcode_libdir_flag_spec_D='-L$libdir'
13508 hardcode_minus_L_D=yes
13509 allow_undefined_flag_D=unsupported
13510 archive_cmds_D='$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'
13511 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13512 ;;
13513
13514 osf3*)
13515 if test "$GCC" = yes; then
13516 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13517 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13518 else
13519 allow_undefined_flag_D=' -expect_unresolved \*'
13520 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13521 fi
13522 archive_cmds_need_lc_D='no'
13523 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13524 hardcode_libdir_separator_D=:
13525 ;;
13526
13527 osf4* | osf5*) # as osf3* with the addition of -msym flag
13528 if test "$GCC" = yes; then
13529 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13530 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13531 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13532 else
13533 allow_undefined_flag_D=' -expect_unresolved \*'
13534 archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13535 archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13536 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13537
13538 # Both c and cxx compiler support -rpath directly
13539 hardcode_libdir_flag_spec_D='-rpath $libdir'
13540 fi
13541 archive_cmds_need_lc_D='no'
13542 hardcode_libdir_separator_D=:
13543 ;;
13544
13545 solaris*)
13546 no_undefined_flag_D=' -z defs'
13547 if test "$GCC" = yes; then
13548 wlarc='${wl}'
13549 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13551 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13552 else
13553 case `$CC -V 2>&1` in
13554 *"Compilers 5.0"*)
13555 wlarc=''
13556 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13557 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13559 ;;
13560 *)
13561 wlarc='${wl}'
13562 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13564 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13565 ;;
13566 esac
13567 fi
13568 hardcode_libdir_flag_spec_D='-R$libdir'
13569 hardcode_shlibpath_var_D=no
13570 case $host_os in
13571 solaris2.[0-5] | solaris2.[0-5].*) ;;
13572 *)
13573 # The compiler driver will combine and reorder linker options,
13574 # but understands `-z linker_flag'. GCC discards it without `$wl',
13575 # but is careful enough not to reorder.
13576 # Supported since Solaris 2.6 (maybe 2.5.1?)
13577 if test "$GCC" = yes; then
13578 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13579 else
13580 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13581 fi
13582 ;;
13583 esac
13584 link_all_deplibs_D=yes
13585 ;;
13586
13587 sunos4*)
13588 if test "x$host_vendor" = xsequent; then
13589 # Use $CC to link under sequent, because it throws in some extra .o
13590 # files that make .init and .fini sections work.
13591 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13592 else
13593 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13594 fi
13595 hardcode_libdir_flag_spec_D='-L$libdir'
13596 hardcode_direct_D=yes
13597 hardcode_minus_L_D=yes
13598 hardcode_shlibpath_var_D=no
13599 ;;
13600
13601 sysv4)
13602 case $host_vendor in
13603 sni)
13604 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13605 hardcode_direct_D=yes # is this really true???
13606 ;;
13607 siemens)
13608 ## LD is ld it makes a PLAMLIB
13609 ## CC just makes a GrossModule.
13610 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13611 reload_cmds_D='$CC -r -o $output$reload_objs'
13612 hardcode_direct_D=no
13613 ;;
13614 motorola)
13615 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13616 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13617 ;;
13618 esac
13619 runpath_var='LD_RUN_PATH'
13620 hardcode_shlibpath_var_D=no
13621 ;;
13622
13623 sysv4.3*)
13624 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_shlibpath_var_D=no
13626 export_dynamic_flag_spec_D='-Bexport'
13627 ;;
13628
13629 sysv4*MP*)
13630 if test -d /usr/nec; then
13631 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13632 hardcode_shlibpath_var_D=no
13633 runpath_var=LD_RUN_PATH
13634 hardcode_runpath_var=yes
13635 ld_shlibs_D=yes
13636 fi
13637 ;;
13638
13639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13640 no_undefined_flag_D='${wl}-z,text'
13641 archive_cmds_need_lc_D=no
13642 hardcode_shlibpath_var_D=no
13643 runpath_var='LD_RUN_PATH'
13644
13645 if test "$GCC" = yes; then
13646 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 else
13649 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 fi
13652 ;;
13653
13654 sysv5* | sco3.2v5* | sco5v6*)
13655 # Note: We can NOT use -z defs as we might desire, because we do not
13656 # link with -lc, and that would cause any symbols used from libc to
13657 # always be unresolved, which means just about no library would
13658 # ever link correctly. If we're not using GNU ld we use -z text
13659 # though, which does catch some bad symbols but isn't as heavy-handed
13660 # as -z defs.
13661 no_undefined_flag_D='${wl}-z,text'
13662 allow_undefined_flag_D='${wl}-z,nodefs'
13663 archive_cmds_need_lc_D=no
13664 hardcode_shlibpath_var_D=no
13665 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13666 hardcode_libdir_separator_D=':'
13667 link_all_deplibs_D=yes
13668 export_dynamic_flag_spec_D='${wl}-Bexport'
13669 runpath_var='LD_RUN_PATH'
13670
13671 if test "$GCC" = yes; then
13672 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 else
13675 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 fi
13678 ;;
13679
13680 uts4*)
13681 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13682 hardcode_libdir_flag_spec_D='-L$libdir'
13683 hardcode_shlibpath_var_D=no
13684 ;;
13685
13686 *)
13687 ld_shlibs_D=no
13688 ;;
13689 esac
13690
13691 if test x$host_vendor = xsni; then
13692 case $host in
13693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13694 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13695 ;;
13696 esac
13697 fi
13698 fi
13699
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13701$as_echo "$ld_shlibs_D" >&6; }
13702test "$ld_shlibs_D" = no && can_build_shared=no
13703
13704with_gnu_ld_D=$with_gnu_ld
13705
13706
13707
13708
13709
13710
13711#
13712# Do we need to explicitly link libc?
13713#
13714case "x$archive_cmds_need_lc_D" in
13715x|xyes)
13716 # Assume -lc should be added
13717 archive_cmds_need_lc_D=yes
13718
13719 if test "$enable_shared" = yes && test "$GCC" = yes; then
13720 case $archive_cmds_D in
13721 *'~'*)
13722 # FIXME: we may have to deal with multi-command sequences.
13723 ;;
13724 '$CC '*)
13725 # Test whether the compiler implicitly links with -lc since on some
13726 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13727 # to ld, don't add -lc before -lgcc.
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013730if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013731 $as_echo_n "(cached) " >&6
13732else
13733 $RM conftest*
13734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13735
13736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13737 (eval $ac_compile) 2>&5
13738 ac_status=$?
13739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13740 test $ac_status = 0; } 2>conftest.err; then
13741 soname=conftest
13742 lib=conftest
13743 libobjs=conftest.$ac_objext
13744 deplibs=
13745 wl=$lt_prog_compiler_wl_D
13746 pic_flag=$lt_prog_compiler_pic_D
13747 compiler_flags=-v
13748 linker_flags=-v
13749 verstring=
13750 output_objdir=.
13751 libname=conftest
13752 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13753 allow_undefined_flag_D=
13754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13755 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13756 ac_status=$?
13757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758 test $ac_status = 0; }
13759 then
13760 lt_cv_archive_cmds_need_lc_D=no
13761 else
13762 lt_cv_archive_cmds_need_lc_D=yes
13763 fi
13764 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13765 else
13766 cat conftest.err 1>&5
13767 fi
13768 $RM conftest*
13769
13770fi
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13772$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13773 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13774 ;;
13775 esac
13776 fi
13777 ;;
13778esac
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13844$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13845hardcode_action_D=
13846if test -n "$hardcode_libdir_flag_spec_D" ||
13847 test -n "$runpath_var_D" ||
13848 test "X$hardcode_automatic_D" = "Xyes" ; then
13849
13850 # We can hardcode non-existent directories.
13851 if test "$hardcode_direct_D" != no &&
13852 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13853 # have to relink, otherwise we might link with an installed library
13854 # when we should be linking with a yet-to-be-installed one
13855 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13856 test "$hardcode_minus_L_D" != no; then
13857 # Linking always hardcodes the temporary library directory.
13858 hardcode_action_D=relink
13859 else
13860 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13861 hardcode_action_D=immediate
13862 fi
13863else
13864 # We cannot hardcode anything, or else we can only hardcode existing
13865 # directories.
13866 hardcode_action_D=unsupported
13867fi
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13869$as_echo "$hardcode_action_D" >&6; }
13870
13871if test "$hardcode_action_D" = relink ||
13872 test "$inherit_rpath_D" = yes; then
13873 # Fast installation is not supported
13874 enable_fast_install=no
13875elif test "$shlibpath_overrides_runpath" = yes ||
13876 test "$enable_shared" = no; then
13877 # Fast installation is not necessary
13878 enable_fast_install=needless
13879fi
13880
13881
13882
13883
13884
13885
13886
13887fi
13888
13889ac_ext=c
13890ac_cpp='$CPP $CPPFLAGS'
13891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13893ac_compiler_gnu=$ac_cv_c_compiler_gnu
13894
13895
13896GCC=$lt_save_GCC
13897CC=$lt_save_CC
13898CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013899
13900 GDCFLAGS=$gdc_save_DFLAGS
13901
Iain Buclawb4c522f2018-10-28 19:51:47 +000013902
13903# libtool variables for Phobos shared and position-independent compiles.
13904#
13905# Use phobos_compiler_shared_flag to designate the compile-time flags for
13906# creating shared objects. Default: -fversion=Shared.
13907#
13908# Use phobos_compiler_pic_flag to designate the compile-time flags for
13909# creating position-independent objects. This varies with the target
13910# hardware and operating system, but is often: -fPIC.
13911#
13912# The distinction between pic and shared compilation flags is not present in
13913# libtool, and so we make it here. How it is handled is that in shared
13914# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13915# ensure that conditional compilation of shared runtime code is compiled in.
13916# The original PIC flags are then used in the compilation of every object.
13917#
13918# Why are objects destined for libgphobos.a compiled with -fPIC?
13919# Because -fPIC is not harmful to use for objects destined for static
13920# libraries. In addition, using -fPIC will allow the use of static
13921# libgphobos.a in the creation of other D shared libraries.
13922if test "$enable_shared" = yes; then
13923 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13924 phobos_compiler_shared_flag="-fversion=Shared"
13925else
13926 phobos_compiler_pic_flag=
13927 phobos_compiler_shared_flag=
13928fi
13929
13930
13931
13932# Override the libtool's pic_flag and pic_mode.
13933# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13934# NB: this impacts --with-pic and --without-pic.
13935lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13936pic_mode='default'
13937
13938# Determine what GCC version number to use in filesystem paths.
13939
13940 get_gcc_base_ver="cat"
13941
13942# Check whether --with-gcc-major-version-only was given.
13943if test "${with_gcc_major_version_only+set}" = set; then :
13944 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13945 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13946 fi
13947
13948fi
13949
13950
13951
13952
13953# libphobos/libdruntime specific options and feature detection
13954
13955 # These need to be absolute paths, yet at the same time need to
13956 # canonicalize only relative paths, because then amd will not unmount
13957 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13958 libphobos_builddir=`${PWDCMD-pwd}`
13959 case $srcdir in
13960 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13961 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13962 esac
13963
13964
13965
13966
13967 if test ${multilib} = yes; then
13968 multilib_arg="--enable-multilib"
13969 else
13970 multilib_arg=
13971 fi
13972
13973
13974 # Check whether --enable-werror was given.
13975if test "${enable_werror+set}" = set; then :
13976 enableval=$enable_werror;
13977fi
13978
13979 WERROR_FLAG=""
13980 if test "x$enable_werror" = "xyes"; then
13981 WERROR_FLAG="-Werror"
13982 fi
13983
Iain Buclawb4c522f2018-10-28 19:51:47 +000013984
Iain Buclaw2493e712019-04-24 22:46:59 +000013985 druntime_target_cpu_parsed=""
13986 case "$target_cpu" in
13987 aarch64*)
13988 druntime_target_cpu_parsed="aarch64"
13989 ;;
13990 arm*) druntime_target_cpu_parsed="arm"
13991 ;;
13992 mips*) druntime_target_cpu_parsed="mips"
13993 ;;
Iain Buclaw1b0cbe02020-04-26 11:32:57 +020013994 powerpc|powerpcle)
13995 druntime_target_cpu_parsed="powerpc"
Iain Buclaw2493e712019-04-24 22:46:59 +000013996 ;;
Iain Buclaw1b0cbe02020-04-26 11:32:57 +020013997 powerpc64|powerpc64le)
Iain Buclaw2493e712019-04-24 22:46:59 +000013998 druntime_target_cpu_parsed="powerpc64"
13999 ;;
Rainer Orthb16f2142019-04-25 12:39:33 +000014000 i[34567]86|x86_64)
Iain Buclaw2493e712019-04-24 22:46:59 +000014001 druntime_target_cpu_parsed="x86"
14002 ;;
Robin Dapp88e508f2020-04-07 21:05:38 +020014003 s390x)
14004 druntime_target_cpu_parsed="s390x"
14005 ;;
14006 s390)
14007 druntime_target_cpu_parsed="s390"
14008 ;;
Iain Buclaw2493e712019-04-24 22:46:59 +000014009 esac
14010 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14011 DRUNTIME_CPU_AARCH64_TRUE=
14012 DRUNTIME_CPU_AARCH64_FALSE='#'
14013else
14014 DRUNTIME_CPU_AARCH64_TRUE='#'
14015 DRUNTIME_CPU_AARCH64_FALSE=
14016fi
14017
14018 if test "$druntime_target_cpu_parsed" = "arm"; then
14019 DRUNTIME_CPU_ARM_TRUE=
14020 DRUNTIME_CPU_ARM_FALSE='#'
14021else
14022 DRUNTIME_CPU_ARM_TRUE='#'
14023 DRUNTIME_CPU_ARM_FALSE=
14024fi
14025
14026 if test "$druntime_target_cpu_parsed" = "mips"; then
14027 DRUNTIME_CPU_MIPS_TRUE=
14028 DRUNTIME_CPU_MIPS_FALSE='#'
14029else
14030 DRUNTIME_CPU_MIPS_TRUE='#'
14031 DRUNTIME_CPU_MIPS_FALSE=
14032fi
14033
14034 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14035 DRUNTIME_CPU_POWERPC_TRUE=
14036 DRUNTIME_CPU_POWERPC_FALSE='#'
14037else
14038 DRUNTIME_CPU_POWERPC_TRUE='#'
14039 DRUNTIME_CPU_POWERPC_FALSE=
14040fi
14041
14042 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14043 DRUNTIME_CPU_POWERPC64_TRUE=
14044 DRUNTIME_CPU_POWERPC64_FALSE='#'
14045else
14046 DRUNTIME_CPU_POWERPC64_TRUE='#'
14047 DRUNTIME_CPU_POWERPC64_FALSE=
14048fi
14049
14050 if test "$druntime_target_cpu_parsed" = "x86"; then
14051 DRUNTIME_CPU_X86_TRUE=
14052 DRUNTIME_CPU_X86_FALSE='#'
14053else
14054 DRUNTIME_CPU_X86_TRUE='#'
14055 DRUNTIME_CPU_X86_FALSE=
14056fi
14057
Robin Dapp88e508f2020-04-07 21:05:38 +020014058 if test "$druntime_target_cpu_parsed" = "s390x"; then
14059 DRUNTIME_CPU_SYSTEMZ_TRUE=
14060 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14061else
14062 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14063 DRUNTIME_CPU_SYSTEMZ_FALSE=
14064fi
14065
14066 if test "$druntime_target_cpu_parsed" = "s390"; then
14067 DRUNTIME_CPU_S390_TRUE=
14068 DRUNTIME_CPU_S390_FALSE='#'
14069else
14070 DRUNTIME_CPU_S390_TRUE='#'
14071 DRUNTIME_CPU_S390_FALSE=
14072fi
14073
Iain Buclaw2493e712019-04-24 22:46:59 +000014074
14075
Iain Buclawb4c522f2018-10-28 19:51:47 +000014076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14077$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014078if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014079 $as_echo_n "(cached) " >&6
14080else
14081 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14082fi
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14084$as_echo "$druntime_cv_target_os" >&6; }
14085 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014086 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014087fi
14088
14089
14090
Iain Buclawb4c522f2018-10-28 19:51:47 +000014091
14092 druntime_target_os_parsed=""
14093 case "$druntime_cv_target_os" in
14094 aix*) druntime_target_os_parsed="aix"
14095 ;;
14096 *android*)
14097 druntime_target_os_parsed="android"
14098 ;;
14099 darwin*) druntime_target_os_parsed="darwin"
14100 ;;
14101 dragonfly*)
14102 druntime_target_os_parsed="dragonflybsd"
14103 ;;
14104 freebsd*|k*bsd*-gnu)
14105 druntime_target_os_parsed="freebsd"
14106 ;;
14107 openbsd*)
14108 druntime_target_os_parsed="openbsd"
14109 ;;
14110 netbsd*)
14111 druntime_target_os_parsed="netbsd"
14112 ;;
14113 linux*) druntime_target_os_parsed="linux"
14114 ;;
14115 mingw*) druntime_target_os_parsed="mingw"
14116 ;;
14117 *solaris*) druntime_target_os_parsed="solaris"
14118 esac
14119 if test "$druntime_target_os_parsed" = "aix"; then
14120 DRUNTIME_OS_AIX_TRUE=
14121 DRUNTIME_OS_AIX_FALSE='#'
14122else
14123 DRUNTIME_OS_AIX_TRUE='#'
14124 DRUNTIME_OS_AIX_FALSE=
14125fi
14126
14127 if test "$druntime_target_os_parsed" = "android"; then
14128 DRUNTIME_OS_ANDROID_TRUE=
14129 DRUNTIME_OS_ANDROID_FALSE='#'
14130else
14131 DRUNTIME_OS_ANDROID_TRUE='#'
14132 DRUNTIME_OS_ANDROID_FALSE=
14133fi
14134
14135 if test "$druntime_target_os_parsed" = "darwin"; then
14136 DRUNTIME_OS_DARWIN_TRUE=
14137 DRUNTIME_OS_DARWIN_FALSE='#'
14138else
14139 DRUNTIME_OS_DARWIN_TRUE='#'
14140 DRUNTIME_OS_DARWIN_FALSE=
14141fi
14142
14143 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14144 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14145 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14146else
14147 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14148 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14149fi
14150
14151 if test "$druntime_target_os_parsed" = "freebsd"; then
14152 DRUNTIME_OS_FREEBSD_TRUE=
14153 DRUNTIME_OS_FREEBSD_FALSE='#'
14154else
14155 DRUNTIME_OS_FREEBSD_TRUE='#'
14156 DRUNTIME_OS_FREEBSD_FALSE=
14157fi
14158
14159 if test "$druntime_target_os_parsed" = "netbsd"; then
14160 DRUNTIME_OS_NETBSD_TRUE=
14161 DRUNTIME_OS_NETBSD_FALSE='#'
14162else
14163 DRUNTIME_OS_NETBSD_TRUE='#'
14164 DRUNTIME_OS_NETBSD_FALSE=
14165fi
14166
14167 if test "$druntime_target_os_parsed" = "openbsd"; then
14168 DRUNTIME_OS_OPENBSD_TRUE=
14169 DRUNTIME_OS_OPENBSD_FALSE='#'
14170else
14171 DRUNTIME_OS_OPENBSD_TRUE='#'
14172 DRUNTIME_OS_OPENBSD_FALSE=
14173fi
14174
14175 if test "$druntime_target_os_parsed" = "linux"; then
14176 DRUNTIME_OS_LINUX_TRUE=
14177 DRUNTIME_OS_LINUX_FALSE='#'
14178else
14179 DRUNTIME_OS_LINUX_TRUE='#'
14180 DRUNTIME_OS_LINUX_FALSE=
14181fi
14182
14183 if test "$druntime_target_os_parsed" = "mingw"; then
14184 DRUNTIME_OS_MINGW_TRUE=
14185 DRUNTIME_OS_MINGW_FALSE='#'
14186else
14187 DRUNTIME_OS_MINGW_TRUE='#'
14188 DRUNTIME_OS_MINGW_FALSE=
14189fi
14190
14191 if test "$druntime_target_os_parsed" = "solaris"; then
14192 DRUNTIME_OS_SOLARIS_TRUE=
14193 DRUNTIME_OS_SOLARIS_FALSE='#'
14194else
14195 DRUNTIME_OS_SOLARIS_TRUE='#'
14196 DRUNTIME_OS_SOLARIS_FALSE=
14197fi
14198
14199
Iain Buclaw72c136c2020-04-08 22:52:05 +020014200 druntime_target_posix="no"
14201 case "$druntime_cv_target_os" in
14202 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14203 druntime_target_posix="yes"
14204 ;;
14205 esac
14206 if test "$druntime_target_posix" = "yes"; then
14207 DRUNTIME_OS_POSIX_TRUE=
14208 DRUNTIME_OS_POSIX_FALSE='#'
14209else
14210 DRUNTIME_OS_POSIX_TRUE='#'
14211 DRUNTIME_OS_POSIX_FALSE=
14212fi
14213
14214
Iain Buclawb4c522f2018-10-28 19:51:47 +000014215
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14218$as_echo_n "checking for thread model used by GDC... " >&6; }
14219 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14221$as_echo "$d_thread_model" >&6; }
14222
14223 # Map from thread model to thread interface.
14224
14225case $d_thread_model in
14226 aix) DCFG_THREAD_MODEL="Posix" ;;
14227 lynx) DCFG_THREAD_MODEL="Posix" ;;
14228 posix) DCFG_THREAD_MODEL="Posix" ;;
14229 single) DCFG_THREAD_MODEL="Single" ;;
14230 win32) DCFG_THREAD_MODEL="Win32" ;;
14231 # TODO: These targets need porting.
14232 dce|mipssde|rtems|tpf|vxworks)
14233 DCFG_THREAD_MODEL="Single" ;;
14234 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14235esac
14236
14237
14238
14239
14240 ac_ext=c
14241ac_cpp='$CPP $CPPFLAGS'
14242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14244ac_compiler_gnu=$ac_cv_c_compiler_gnu
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14247$as_echo_n "checking for ARM unwinder... " >&6; }
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h. */
14250#include <unwind.h>
14251int
14252main ()
14253{
14254
14255 #if __ARM_EABI_UNWINDER__
14256 #error Yes, it is.
14257 #endif
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_compile "$LINENO"; then :
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265$as_echo "no" >&6; }
14266 DCFG_ARM_EABI_UNWINDER=false
14267else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14269$as_echo "yes" >&6; }
14270 DCFG_ARM_EABI_UNWINDER=true
14271fi
14272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273
14274 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14276 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14277else
14278 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14279 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14280fi
14281
14282 ac_ext=c
14283ac_cpp='$CPP $CPPFLAGS'
14284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288
14289
14290 ac_ext=c
14291ac_cpp='$CPP $CPPFLAGS'
14292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294ac_compiler_gnu=$ac_cv_c_compiler_gnu
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14297$as_echo_n "checking for minfo section bracketing... " >&6; }
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299/* end confdefs.h. */
14300
14301 void* module_info_ptr __attribute__((section ("minfo")));
14302 extern void* __start_minfo __attribute__((visibility ("hidden")));
14303 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14304
14305 int main()
14306 {
14307 // Never run, just to prevent compiler from optimizing access
14308 return &__start_minfo == &__stop_minfo;
14309 }
14310
14311_ACEOF
14312if ac_fn_c_try_link "$LINENO"; then :
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314$as_echo "yes" >&6; }
14315 DCFG_MINFO_BRACKETING=true
14316else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318$as_echo "no" >&6; }
14319 DCFG_MINFO_BRACKETING=false
14320fi
14321rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323
Rainer Orth0b6e3122019-02-14 17:47:49 +000014324 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14325 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14326 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14327else
14328 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14329 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14330fi
14331
Iain Buclawb4c522f2018-10-28 19:51:47 +000014332 ac_ext=c
14333ac_cpp='$CPP $CPPFLAGS'
14334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338
14339
Rainer Orth235d1c42019-04-14 09:30:42 +000014340 ac_ext=c
14341ac_cpp='$CPP $CPPFLAGS'
14342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345
14346 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14347"
14348if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14349 DCFG_DLPI_TLS_MODID=true
14350else
14351 DCFG_DLPI_TLS_MODID=false
14352fi
14353
14354
14355 ac_ext=c
14356ac_cpp='$CPP $CPPFLAGS'
14357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360
14361
14362
Rainer Orthba838aa2019-04-14 09:24:26 +000014363 case $target in
14364 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14365 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14366 # relocs. Work around by disabling TLS transitions. Not necessary
14367 # on 32-bit x86, but cannot be distinguished reliably in specs.
14368 druntime_ld_prog=`$CC -print-prog-name=ld`
Rainer Orthbca0a322019-05-07 10:38:45 +000014369 druntime_ld_gld=no
14370 druntime_ld_relax_transtls=no
Rainer Orthba838aa2019-04-14 09:24:26 +000014371 if test -n "$druntime_ld_prog" \
14372 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
Rainer Orthbca0a322019-05-07 10:38:45 +000014373 druntime_ld_gld=yes
Rainer Orthba838aa2019-04-14 09:24:26 +000014374 else
Rainer Orthbca0a322019-05-07 10:38:45 +000014375 echo 'int main (void) { return 0; }' > conftest.c
14376 save_LDFLAGS="$LDFLAGS"
14377 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14378 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14379 druntime_ld_relax_transtls=yes
14380 fi
14381 LDFLAGS="$save_LDFLAGS"
14382 rm -f conftest.c conftest
14383 fi
14384 if test "$druntime_ld_relax_transtls" = "yes"; then
Rainer Orthba838aa2019-04-14 09:24:26 +000014385 OS_LINK_SPEC='-z relax=transtls'
14386 fi
14387 ;;
14388 esac
14389
14390
14391
Johannes Pfau36d7f152019-02-18 23:29:39 +000014392 ac_ext=c
14393ac_cpp='$CPP $CPPFLAGS'
14394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
14398 DCFG_HAVE_QSORT_R=false
14399 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14400if test "x$ac_cv_func_qsort_r" = xyes; then :
14401 DCFG_HAVE_QSORT_R=true
14402fi
14403
14404
14405 ac_ext=c
14406ac_cpp='$CPP $CPPFLAGS'
14407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411
14412
Iain Buclawb4c522f2018-10-28 19:51:47 +000014413
14414
14415 gdc_save_DFLAGS=$GDCFLAGS
14416 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14417
14418 ac_ext=d
14419ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14420ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421ac_compiler_gnu=yes
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14424$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014425if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014426 $as_echo_n "(cached) " >&6
14427else
14428 ac_func_search_save_LIBS=$LIBS
14429cat > conftest.$ac_ext <<_ACEOF
14430module mod;
14431 extern(C) int malloc();
14432
14433extern(C) int main() {
14434 malloc(); return 0;
14435}
14436_ACEOF
14437for ac_lib in '' c; do
14438 if test -z "$ac_lib"; then
14439 ac_res="none required"
14440 else
14441 ac_res=-l$ac_lib
14442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14443 fi
14444 if ac_fn_d_try_link "$LINENO"; then :
14445 ac_cv_search_malloc=$ac_res
14446fi
14447rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014449 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014450 break
14451fi
14452done
Joseph Myers22e05272018-10-31 17:03:16 +000014453if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014454
14455else
14456 ac_cv_search_malloc=no
14457fi
14458rm conftest.$ac_ext
14459LIBS=$ac_func_search_save_LIBS
14460fi
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14462$as_echo "$ac_cv_search_malloc" >&6; }
14463ac_res=$ac_cv_search_malloc
14464if test "$ac_res" != no; then :
14465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466
14467fi
14468
Iain Buclaw6e286c82020-04-09 00:16:57 +020014469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014470$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014471if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014472 $as_echo_n "(cached) " >&6
14473else
14474 ac_func_search_save_LIBS=$LIBS
14475cat > conftest.$ac_ext <<_ACEOF
14476module mod;
14477 extern(C) int pthread_create();
14478
14479extern(C) int main() {
14480 pthread_create(); return 0;
14481}
14482_ACEOF
14483for ac_lib in '' pthread; do
14484 if test -z "$ac_lib"; then
14485 ac_res="none required"
14486 else
14487 ac_res=-l$ac_lib
14488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14489 fi
14490 if ac_fn_d_try_link "$LINENO"; then :
14491 ac_cv_search_pthread_create=$ac_res
14492fi
14493rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014495 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014496 break
14497fi
14498done
Joseph Myers22e05272018-10-31 17:03:16 +000014499if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014500
14501else
14502 ac_cv_search_pthread_create=no
14503fi
14504rm conftest.$ac_ext
14505LIBS=$ac_func_search_save_LIBS
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14508$as_echo "$ac_cv_search_pthread_create" >&6; }
14509ac_res=$ac_cv_search_pthread_create
14510if test "$ac_res" != no; then :
14511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14512
14513fi
14514
Iain Buclawb4c522f2018-10-28 19:51:47 +000014515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14516$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014517if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014518 $as_echo_n "(cached) " >&6
14519else
14520 ac_func_search_save_LIBS=$LIBS
14521cat > conftest.$ac_ext <<_ACEOF
14522module mod;
14523 extern(C) int cosf();
14524
14525extern(C) int main() {
14526 cosf(); return 0;
14527}
14528_ACEOF
14529for ac_lib in '' m; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14532 else
14533 ac_res=-l$ac_lib
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14535 fi
14536 if ac_fn_d_try_link "$LINENO"; then :
14537 ac_cv_search_cosf=$ac_res
14538fi
14539rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014541 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014542 break
14543fi
14544done
Joseph Myers22e05272018-10-31 17:03:16 +000014545if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014546
14547else
14548 ac_cv_search_cosf=no
14549fi
14550rm conftest.$ac_ext
14551LIBS=$ac_func_search_save_LIBS
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14554$as_echo "$ac_cv_search_cosf" >&6; }
14555ac_res=$ac_cv_search_cosf
14556if test "$ac_res" != no; then :
14557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558
14559fi
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14562$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014563if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014564 $as_echo_n "(cached) " >&6
14565else
14566 ac_func_search_save_LIBS=$LIBS
14567cat > conftest.$ac_ext <<_ACEOF
14568module mod;
14569 extern(C) int clock_gettime();
14570
14571extern(C) int main() {
14572 clock_gettime(); return 0;
14573}
14574_ACEOF
14575for ac_lib in '' rt; do
14576 if test -z "$ac_lib"; then
14577 ac_res="none required"
14578 else
14579 ac_res=-l$ac_lib
14580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14581 fi
14582 if ac_fn_d_try_link "$LINENO"; then :
14583 ac_cv_search_clock_gettime=$ac_res
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014587 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014588 break
14589fi
14590done
Joseph Myers22e05272018-10-31 17:03:16 +000014591if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014592
14593else
14594 ac_cv_search_clock_gettime=no
14595fi
14596rm conftest.$ac_ext
14597LIBS=$ac_func_search_save_LIBS
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14600$as_echo "$ac_cv_search_clock_gettime" >&6; }
14601ac_res=$ac_cv_search_clock_gettime
14602if test "$ac_res" != no; then :
14603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14604
14605fi
14606
14607
14608 # This checks to see if the host supports the compiler-generated builtins
14609 # for atomic operations for various integral sizes. Note, this is intended
14610 # to be an all-or-nothing switch, so all the atomic operations that are
14611 # used should be checked.
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14613$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014614 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014615 $as_echo_n "(cached) " >&6
14616else
14617
14618 cat > conftest.$ac_ext <<_ACEOF
14619module mod;
14620import gcc.builtins;
14621
14622extern(C) int main() {
14623
14624 shared(byte) c1;
14625 byte c2, c3;
14626 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14627 __atomic_load_1(&c1, 5);
14628 __atomic_store_1(&c1, c2, 5);
14629 return 0;
14630
14631}
14632_ACEOF
14633if ac_fn_d_try_link "$LINENO"; then :
14634 druntime_cv_atomic_byte=yes
14635else
14636 druntime_cv_atomic_byte=no
14637fi
14638rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640
14641fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14644$as_echo "$druntime_cv_atomic_byte" >&6; }
14645
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14647$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014648 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014649 $as_echo_n "(cached) " >&6
14650else
14651
14652 cat > conftest.$ac_ext <<_ACEOF
14653module mod;
14654import gcc.builtins;
14655
14656extern(C) int main() {
14657
14658 shared(short) c1;
14659 short c2, c3;
14660 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14661 __atomic_load_2(&c1, 5);
14662 __atomic_store_2(&c1, c2, 5);
14663 return 0;
14664
14665}
14666_ACEOF
14667if ac_fn_d_try_link "$LINENO"; then :
14668 druntime_cv_atomic_short=yes
14669else
14670 druntime_cv_atomic_short=no
14671fi
14672rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674
14675fi
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14678$as_echo "$druntime_cv_atomic_short" >&6; }
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14681$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014682 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014683 $as_echo_n "(cached) " >&6
14684else
14685
14686 cat > conftest.$ac_ext <<_ACEOF
14687module mod;
14688import gcc.builtins;
14689
14690extern(C) int main() {
14691
14692 shared(int) c1;
14693 int c2, c3;
14694 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14695 __atomic_load_4(&c1, 5);
14696 __atomic_store_4(&c1, c2, 5);
14697 return 0;
14698
14699}
14700_ACEOF
14701if ac_fn_d_try_link "$LINENO"; then :
14702 druntime_cv_atomic_int=yes
14703else
14704 druntime_cv_atomic_int=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708
14709fi
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14712$as_echo "$druntime_cv_atomic_int" >&6; }
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14715$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014716 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014717 $as_echo_n "(cached) " >&6
14718else
14719
14720 cat > conftest.$ac_ext <<_ACEOF
14721module mod;
14722import gcc.builtins;
14723
14724extern(C) int main() {
14725
14726 shared(long) c1;
14727 long c2, c3;
14728 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14729 __atomic_load_8(&c1, 5);
14730 __atomic_store_8(&c1, c2, 5);
14731 return 0;
14732
14733}
14734_ACEOF
14735if ac_fn_d_try_link "$LINENO"; then :
14736 druntime_cv_atomic_long=yes
14737else
14738 druntime_cv_atomic_long=no
14739fi
14740rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742
14743fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14746$as_echo "$druntime_cv_atomic_long" >&6; }
14747
14748 # Have atomic builtin support if all but the long test above passes.
14749 DCFG_HAVE_ATOMIC_BUILTINS=false
14750 if test "$druntime_cv_atomic_byte" = yes \
14751 && test "$druntime_cv_atomic_short" = yes \
14752 && test "$druntime_cv_atomic_int" = yes; then \
14753 DCFG_HAVE_ATOMIC_BUILTINS=true
14754 fi
14755
14756 # Have 64-bit atomic support if the long test above passes.
14757 DCFG_HAVE_64BIT_ATOMICS=false
14758 if test "$druntime_cv_atomic_long" = yes; then
14759 DCFG_HAVE_64BIT_ATOMICS=true
14760 fi
14761
14762
14763
14764
14765 ac_ext=c
14766ac_cpp='$CPP $CPPFLAGS'
14767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769ac_compiler_gnu=$ac_cv_c_compiler_gnu
14770
14771
14772 GDCFLAGS=$gdc_save_DFLAGS
14773
14774
14775
14776
14777# Check whether --with-libatomic was given.
14778if test "${with_libatomic+set}" = set; then :
14779 withval=$with_libatomic;
14780fi
14781
14782
14783 DCFG_HAVE_LIBATOMIC=false
14784 LIBATOMIC=
14785 if test "x$with_libatomic" != "xno"; then :
14786
14787 DCFG_HAVE_LIBATOMIC=true
14788 LIBATOMIC=../../libatomic/libatomic_convenience.la
14789
14790else
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14793$as_echo_n "checking for libatomic... " >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14795$as_echo "disabled" >&6; }
14796
14797fi
14798
14799
14800
14801
14802
14803 ac_ext=c
14804ac_cpp='$CPP $CPPFLAGS'
14805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808
14809 BACKTRACE_SUPPORTED=false
14810 BACKTRACE_USES_MALLOC=false
14811 BACKTRACE_SUPPORTS_THREADS=false
14812 LIBBACKTRACE=""
14813
14814
14815# Check whether --with-libbacktrace was given.
14816if test "${with_libbacktrace+set}" = set; then :
14817 withval=$with_libbacktrace;
14818fi
14819
14820
14821 if test "x$with_libbacktrace" != "xno"; then :
14822
14823 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14824
14825 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014826 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014827
14828 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000014829if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014830 have_libbacktrace_h=true
14831else
14832 have_libbacktrace_h=false
14833fi
14834
14835
14836
14837 if $have_libbacktrace_h; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14839$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841/* end confdefs.h. */
14842
14843 #include <backtrace-supported.h>
14844 #if BACKTRACE_SUPPORTED
14845 FOUND_LIBBACKTRACE_RESULT_GDC
14846 #endif
14847
14848_ACEOF
14849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14850 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14851 BACKTRACE_SUPPORTED=true
14852else
14853 BACKTRACE_SUPPORTED=false
14854fi
14855rm -f conftest*
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14858$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14861$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h. */
14864
14865 #include <backtrace-supported.h>
14866 #if BACKTRACE_USES_MALLOC
14867 FOUND_LIBBACKTRACE_RESULT_GDC
14868 #endif
14869
14870_ACEOF
14871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14873 BACKTRACE_USES_MALLOC=true
14874else
14875 BACKTRACE_USES_MALLOC=false
14876fi
14877rm -f conftest*
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14880$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14883$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h. */
14886
14887 #include <backtrace-supported.h>
14888 #if BACKTRACE_SUPPORTS_THREADS
14889 FOUND_LIBBACKTRACE_RESULT_GDC
14890 #endif
14891
14892_ACEOF
14893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14894 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14895 BACKTRACE_SUPPORTS_THREADS=true
14896else
14897 BACKTRACE_SUPPORTS_THREADS=false
14898fi
14899rm -f conftest*
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14902$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14903 fi
14904 CPPFLAGS=$gdc_save_CPPFLAGS
14905
14906else
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14909$as_echo_n "checking for libbacktrace... " >&6; }
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14911$as_echo "disabled" >&6; }
14912
14913fi
14914
14915
14916
14917
14918
14919 ac_ext=c
14920ac_cpp='$CPP $CPPFLAGS'
14921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924
14925
14926
14927 # Libtool has already checked this, so re-use the inferred dlopen lib.
14928 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14929
14930 LIBS="$LIBS $lt_cv_dlopen_libs"
14931
14932fi
14933
14934
Rainer Orth1d679132019-02-19 09:24:50 +000014935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14936$as_echo_n "checking for socket libraries... " >&6; }
14937if ${druntime_cv_lib_sockets+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939else
14940 druntime_cv_lib_sockets=
14941 druntime_check_both=no
14942 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14943if test "x$ac_cv_func_connect" = xyes; then :
14944 druntime_check_socket=no
14945else
14946 druntime_check_socket=yes
14947fi
14948
14949 if test "$druntime_check_socket" = "yes"; then
14950 unset ac_cv_func_connect
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14952$as_echo_n "checking for main in -lsocket... " >&6; }
14953if ${ac_cv_lib_socket_main+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955else
14956 ac_check_lib_save_LIBS=$LIBS
14957LIBS="-lsocket $LIBS"
14958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959/* end confdefs.h. */
14960
14961
14962int
14963main ()
14964{
14965return main ();
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970if ac_fn_c_try_link "$LINENO"; then :
14971 ac_cv_lib_socket_main=yes
14972else
14973 ac_cv_lib_socket_main=no
14974fi
14975rm -f core conftest.err conftest.$ac_objext \
14976 conftest$ac_exeext conftest.$ac_ext
14977LIBS=$ac_check_lib_save_LIBS
14978fi
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14980$as_echo "$ac_cv_lib_socket_main" >&6; }
14981if test "x$ac_cv_lib_socket_main" = xyes; then :
14982 druntime_cv_lib_sockets="-lsocket"
14983else
14984 druntime_check_both=yes
14985fi
14986
14987 fi
14988 if test "$druntime_check_both" = "yes"; then
14989 druntime_old_libs=$LIBS
14990 LIBS="$LIBS -lsocket -lnsl"
14991 unset ac_cv_func_accept
14992 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14993if test "x$ac_cv_func_accept" = xyes; then :
14994 druntime_check_nsl=no
14995 druntime_cv_lib_sockets="-lsocket -lnsl"
14996fi
14997
14998 unset ac_cv_func_accept
14999 LIBS=$druntime_old_libs
15000 fi
15001 unset ac_cv_func_gethostbyname
15002 druntime_old_libs="$LIBS"
15003 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15004if test "x$ac_cv_func_gethostbyname" = xyes; then :
15005
15006else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15008$as_echo_n "checking for main in -lnsl... " >&6; }
15009if ${ac_cv_lib_nsl_main+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011else
15012 ac_check_lib_save_LIBS=$LIBS
15013LIBS="-lnsl $LIBS"
15014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015/* end confdefs.h. */
15016
15017
15018int
15019main ()
15020{
15021return main ();
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026if ac_fn_c_try_link "$LINENO"; then :
15027 ac_cv_lib_nsl_main=yes
15028else
15029 ac_cv_lib_nsl_main=no
15030fi
15031rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033LIBS=$ac_check_lib_save_LIBS
15034fi
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15036$as_echo "$ac_cv_lib_nsl_main" >&6; }
15037if test "x$ac_cv_lib_nsl_main" = xyes; then :
15038 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15039fi
15040
15041fi
15042
15043
15044fi
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15046$as_echo "$druntime_cv_lib_sockets" >&6; }
15047 LIBS="$LIBS $druntime_cv_lib_sockets"
15048
15049
Iain Buclawac1a0a32020-04-20 18:20:12 +020015050 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15051 # "yes" for targets that have 'version = AsmExternal'.
15052 druntime_fiber_asm_external=no
15053 case "$target_cpu" in
15054 aarch64* | \
15055 arm* | \
15056 i[34567]86|x86_64 | \
15057 powerpc)
15058 druntime_fiber_asm_external=yes
15059 ;;
15060 esac
15061 if test "$druntime_fiber_asm_external" = no; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15063$as_echo_n "checking for library containing swapcontext... " >&6; }
15064if ${ac_cv_search_swapcontext+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066else
15067 ac_func_search_save_LIBS=$LIBS
15068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069/* end confdefs.h. */
15070
15071/* Override any GCC internal prototype to avoid an error.
15072 Use char because int might match the return type of a GCC
15073 builtin and then its argument prototype would still apply. */
15074#ifdef __cplusplus
15075extern "C"
15076#endif
15077char swapcontext ();
15078int
15079main ()
15080{
15081return swapcontext ();
15082 ;
15083 return 0;
15084}
15085_ACEOF
15086for ac_lib in '' c ucontext; do
15087 if test -z "$ac_lib"; then
15088 ac_res="none required"
15089 else
15090 ac_res=-l$ac_lib
15091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15092 fi
15093 if ac_fn_c_try_link "$LINENO"; then :
15094 ac_cv_search_swapcontext=$ac_res
15095fi
15096rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext
15098 if ${ac_cv_search_swapcontext+:} false; then :
15099 break
15100fi
15101done
15102if ${ac_cv_search_swapcontext+:} false; then :
15103
15104else
15105 ac_cv_search_swapcontext=no
15106fi
15107rm conftest.$ac_ext
15108LIBS=$ac_func_search_save_LIBS
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15111$as_echo "$ac_cv_search_swapcontext" >&6; }
15112ac_res=$ac_cv_search_swapcontext
15113if test "$ac_res" != no; then :
15114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15115
15116else
15117 as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15118fi
15119
15120 fi
15121
15122
Iain Buclawbb503122019-04-12 20:13:34 +000015123 ac_ext=c
15124ac_cpp='$CPP $CPPFLAGS'
15125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15127ac_compiler_gnu=$ac_cv_c_compiler_gnu
15128
15129 LIBZ=""
15130
Iain Buclawb4c522f2018-10-28 19:51:47 +000015131
15132# Check whether --with-target-system-zlib was given.
15133if test "${with_target_system_zlib+set}" = set; then :
15134 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015135else
15136 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015137fi
15138
15139
Iain Buclawbb503122019-04-12 20:13:34 +000015140 case "$with_target_system_zlib" in
15141 yes|no|auto) ;;
15142 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15143 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015144
Iain Buclawbb503122019-04-12 20:13:34 +000015145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15146$as_echo_n "checking for system zlib... " >&6; }
15147 save_LIBS=$LIBS
15148 LIBS="$LIBS -lz"
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015150/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015151#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015152int
15153main ()
15154{
Iain Buclawbb503122019-04-12 20:13:34 +000015155gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015156 ;
15157 return 0;
15158}
15159_ACEOF
15160if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015161
15162 if test "$cross_compiling" = yes; then :
15163 system_zlib_found=no
15164
Iain Buclawb4c522f2018-10-28 19:51:47 +000015165else
Iain Buclawbb503122019-04-12 20:13:34 +000015166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167/* end confdefs.h. */
15168
15169 #include <zlib.h>
15170 int main() {
15171 gzFile file = gzopen("none", "rb");
15172 return 0;
15173 }
15174
15175_ACEOF
15176if ac_fn_c_try_run "$LINENO"; then :
15177 system_zlib_found=yes
15178else
15179 system_zlib_found=no
15180fi
15181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15182 conftest.$ac_objext conftest.beam conftest.$ac_ext
15183fi
15184
15185
15186else
15187 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015188fi
15189rm -f core conftest.err conftest.$ac_objext \
15190 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015191 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015192
Iain Buclawbb503122019-04-12 20:13:34 +000015193 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15195$as_echo "found" >&6; }
15196 LIBS="$LIBS -lz"
15197 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15198 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15199 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15201$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015202 LIBZ=../../zlib/libz_convenience.la
15203 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015204
Iain Buclawb4c522f2018-10-28 19:51:47 +000015205
Iain Buclawbb503122019-04-12 20:13:34 +000015206 ac_ext=c
15207ac_cpp='$CPP $CPPFLAGS'
15208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15210ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015211
15212
15213
15214
15215
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15217$as_echo_n "checking D GCC version... " >&6; }
15218 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15220$as_echo "$gcc_version" >&6; }
15221
15222
15223
15224# Check whether --with-cross-host was given.
15225if test "${with_cross_host+set}" = set; then :
15226 withval=$with_cross_host;
15227fi
15228
15229
Iain Buclawac677522018-11-02 08:29:50 +000015230 libphobos_toolexecdir=no
15231 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015232
Iain Buclawac677522018-11-02 08:29:50 +000015233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15234$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15235 # Check whether --enable-version-specific-runtime-libs was given.
15236if test "${enable_version_specific_runtime_libs+set}" = set; then :
15237 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15238 yes) version_specific_libs=yes ;;
15239 no) version_specific_libs=no ;;
15240 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15241 esac
15242else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015243 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015244fi
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15247$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015248
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015249
15250# Check whether --with-toolexeclibdir was given.
15251if test "${with_toolexeclibdir+set}" = set; then :
15252 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15253 /)
15254 ;;
15255 */)
15256 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15257 ;;
15258esac
15259else
15260 with_toolexeclibdir=no
15261fi
15262
15263
15264
Iain Buclawb4c522f2018-10-28 19:51:47 +000015265 # Version-specific runtime libs processing.
15266 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015267 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15268 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015269 else
Iain Buclawac677522018-11-02 08:29:50 +000015270 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15271 # Install a library built with a cross compiler in tooldir, not libdir.
15272 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15273 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015274 case ${with_toolexeclibdir} in
15275 no)
15276 libphobos_toolexeclibdir='${toolexecdir}/lib'
15277 ;;
15278 *)
15279 libphobos_toolexeclibdir=${with_toolexeclibdir}
15280 ;;
15281 esac
Iain Buclawac677522018-11-02 08:29:50 +000015282 else
15283 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15284 libphobos_toolexeclibdir='${libdir}'
15285 fi
15286 multi_os_directory=`$GDC -print-multi-os-directory`
15287 case $multi_os_directory in
15288 .) ;; # Avoid trailing /.
15289 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15290 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015291 fi
15292
15293
15294
15295 # Default case for install directory for D sources files.
15296 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15297
15298
15299
Rainer Orthbca0a322019-05-07 10:38:45 +000015300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15301$as_echo_n "checking for --enable-libphobos... " >&6; }
15302# Check whether --enable-libphobos was given.
15303if test "${enable_libphobos+set}" = set; then :
15304 enableval=$enable_libphobos;
15305fi
15306
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15308$as_echo "$enable_libphobos" >&6; }
15309
Iain Buclaw261bd782020-03-25 09:38:58 +010015310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15311$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15312
Iain Buclaw371d1012020-04-20 18:50:36 +020015313# Check whether --with-libphobos-druntime-only was given.
15314if test "${with_libphobos_druntime_only+set}" = set; then :
15315 withval=$with_libphobos_druntime_only;
Iain Buclaw261bd782020-03-25 09:38:58 +010015316else
Iain Buclaw371d1012020-04-20 18:50:36 +020015317 with_libphobos_druntime_only=auto
Iain Buclaw261bd782020-03-25 09:38:58 +010015318fi
15319
Iain Buclaw371d1012020-04-20 18:50:36 +020015320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15321$as_echo "$with_libphobos_druntime_only" >&6; }
Iain Buclaw261bd782020-03-25 09:38:58 +010015322
Iain Buclaw371d1012020-04-20 18:50:36 +020015323case "$with_libphobos_druntime_only" in
Iain Buclaw261bd782020-03-25 09:38:58 +010015324 yes|no|auto) ;;
15325 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15326esac
15327
Rainer Orthbca0a322019-05-07 10:38:45 +000015328# See if supported.
15329unset LIBPHOBOS_SUPPORTED
Iain Buclaw261bd782020-03-25 09:38:58 +010015330unset LIBDRUNTIME_ONLY
Rainer Orthbca0a322019-05-07 10:38:45 +000015331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15332$as_echo_n "checking for host support for libphobos... " >&6; }
15333. ${srcdir}/configure.tgt
15334case ${host} in
15335 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15336 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15337 # relatively low linelength limit.
15338 as_prog=`$CC -print-prog-name=as`
15339 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15340 druntime_cv_use_gas=yes;
15341 else
15342 druntime_cv_use_gas=no;
15343 fi
15344 rm -f a.out
15345 if test x$druntime_cv_use_gas = xno; then
15346 LIBPHOBOS_SUPPORTED=no
15347 fi
15348 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15349 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15350 LIBPHOBOS_SUPPORTED=no
15351 fi
15352 ;;
15353esac
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15355$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15356
15357# Decide if it's usable.
15358case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15359*:no) use_libphobos=no ;;
15360*:yes) use_libphobos=yes ;;
15361yes:*) use_libphobos=yes ;;
15362*:*) use_libphobos=no ;;
15363esac
15364 if test x$use_libphobos = xyes; then
15365 ENABLE_LIBPHOBOS_TRUE=
15366 ENABLE_LIBPHOBOS_FALSE='#'
15367else
15368 ENABLE_LIBPHOBOS_TRUE='#'
15369 ENABLE_LIBPHOBOS_FALSE=
15370fi
15371
15372
Iain Buclaw261bd782020-03-25 09:38:58 +010015373# Decide if only libdruntime should be built.
Iain Buclaw371d1012020-04-20 18:50:36 +020015374case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
Iain Buclaw261bd782020-03-25 09:38:58 +010015375*:no) only_libdruntime=no ;;
15376*:yes) only_libdruntime=yes ;;
15377yes:*) only_libdruntime=yes ;;
15378*:*) only_libdruntime=no ;;
15379esac
15380 if test x$only_libdruntime = xyes; then
15381 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15382 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15383else
15384 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15385 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15386fi
15387
15388
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015389# Enable expensive internal checks
15390# Check whether --enable-libphobos-checking was given.
15391if test "${enable_libphobos_checking+set}" = set; then :
15392 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15393else
15394 ac_checking_flags=release
15395fi
15396
15397IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15398for check in release $ac_checking_flags
15399do
15400 case $check in
15401 # These set all the flags to specific states
15402 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15403 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15404 # These enable particular checks
15405 assert) ASSERT_FLAG="-fassert" ;;
15406 # Accept
15407 *) ;;
15408 esac
15409done
15410IFS="$ac_save_IFS"
15411CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15412
15413
Rainer Orth0b6e3122019-02-14 17:47:49 +000015414# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15415if test "$DCFG_MINFO_BRACKETING" = "false"; then
15416 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15417else
15418 DRTSTUFF_SPEC=/dev/null
15419fi
15420
15421
Iain Buclawb4c522f2018-10-28 19:51:47 +000015422# Add dependencies for libgphobos.spec file
15423SPEC_PHOBOS_DEPS="$LIBS"
15424
15425
15426# Libdruntime / phobos soname version
Iain Buclawbc093502020-03-16 17:00:07 +010015427libtool_VERSION=1:0:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015428
15429
15430# Set default flags (after DRUNTIME_WERROR!)
15431if test -z "$GDCFLAGS"; then
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015432 GDCFLAGS="-g -O2"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015433fi
15434
15435
Iain Buclaw38c30172020-03-29 23:54:01 +020015436WARN_DFLAGS="-Wall $WERROR_FLAG"
15437
15438
Iain Buclawb4c522f2018-10-28 19:51:47 +000015439# Sanity check for the cross-compilation case:
15440ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015441if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015442 :
15443else
Joseph Myers22e05272018-10-31 17:03:16 +000015444 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015445fi
15446
15447
15448
Iain Buclawac677522018-11-02 08:29:50 +000015449ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015450
15451
15452ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15453
15454ac_config_files="$ac_config_files src/libgphobos.spec"
15455
15456ac_config_files="$ac_config_files testsuite/testsuite_flags"
15457
15458
Iain Buclawac677522018-11-02 08:29:50 +000015459# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15460# that multilib installs will end up installed in the correct place.
15461# The testsuite needs it for multilib-aware ABI baseline files.
15462# To work around this not being passed down from config-ml.in ->
15463# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15464# append it here. Only modify Makefiles that have just been created.
15465#
15466# Also, get rid of this simulated-VPATH thing that automake does.
15467ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015468
15469
15470cat >confcache <<\_ACEOF
15471# This file is a shell script that caches the results of configure
15472# tests run on this system so they can be shared between configure
15473# scripts and configure runs, see configure's option --config-cache.
15474# It is not useful on other systems. If it contains results you don't
15475# want to keep, you may remove or edit it.
15476#
15477# config.status only pays attention to the cache file if you give it
15478# the --recheck option to rerun configure.
15479#
15480# `ac_cv_env_foo' variables (set or unset) will be overridden when
15481# loading this file, other *unset* `ac_cv_foo' will be assigned the
15482# following values.
15483
15484_ACEOF
15485
15486# The following way of writing the cache mishandles newlines in values,
15487# but we know of no workaround that is simple, portable, and efficient.
15488# So, we kill variables containing newlines.
15489# Ultrix sh set writes to stderr and can't be redirected directly,
15490# and sets the high bit in the cache file unless we assign to the vars.
15491(
15492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15493 eval ac_val=\$$ac_var
15494 case $ac_val in #(
15495 *${as_nl}*)
15496 case $ac_var in #(
15497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15498$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15499 esac
15500 case $ac_var in #(
15501 _ | IFS | as_nl) ;; #(
15502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15503 *) { eval $ac_var=; unset $ac_var;} ;;
15504 esac ;;
15505 esac
15506 done
15507
15508 (set) 2>&1 |
15509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15510 *${as_nl}ac_space=\ *)
15511 # `set' does not quote correctly, so add quotes: double-quote
15512 # substitution turns \\\\ into \\, and sed turns \\ into \.
15513 sed -n \
15514 "s/'/'\\\\''/g;
15515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15516 ;; #(
15517 *)
15518 # `set' quotes correctly as required by POSIX, so do not add quotes.
15519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15520 ;;
15521 esac |
15522 sort
15523) |
15524 sed '
15525 /^ac_cv_env_/b end
15526 t clear
15527 :clear
15528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15529 t end
15530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15531 :end' >>confcache
15532if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15533 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015534 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15536$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015537 if test ! -f "$cache_file" || test -h "$cache_file"; then
15538 cat confcache >"$cache_file"
15539 else
15540 case $cache_file in #(
15541 */* | ?:*)
15542 mv -f confcache "$cache_file"$$ &&
15543 mv -f "$cache_file"$$ "$cache_file" ;; #(
15544 *)
15545 mv -f confcache "$cache_file" ;;
15546 esac
15547 fi
15548 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015549 else
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15551$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15552 fi
15553fi
15554rm -f confcache
15555
15556test "x$prefix" = xNONE && prefix=$ac_default_prefix
15557# Let make expand exec_prefix.
15558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15559
15560DEFS=-DHAVE_CONFIG_H
15561
15562ac_libobjs=
15563ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015564U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15566 # 1. Remove the extension, and $U if already installed.
15567 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15568 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15569 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15570 # will be set to the directory where LIBOBJS objects are built.
15571 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15572 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15573done
15574LIBOBJS=$ac_libobjs
15575
15576LTLIBOBJS=$ac_ltlibobjs
15577
15578
Joseph Myers22e05272018-10-31 17:03:16 +000015579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15580$as_echo_n "checking that generated files are newer than configure... " >&6; }
15581 if test -n "$am_sleep_pid"; then
15582 # Hide warnings about reused PIDs.
15583 wait $am_sleep_pid 2>/dev/null
15584 fi
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15586$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015587 if test -n "$EXEEXT"; then
15588 am__EXEEXT_TRUE=
15589 am__EXEEXT_FALSE='#'
15590else
15591 am__EXEEXT_TRUE='#'
15592 am__EXEEXT_FALSE=
15593fi
15594
15595if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015596 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015597Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015599if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15600 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15601Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602fi
15603if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15604 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15605Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606fi
15607if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15608 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15609Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610fi
15611if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15612 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15613Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614fi
15615if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15616 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15617Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618fi
15619if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15620 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15621Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622fi
Robin Dapp88e508f2020-04-07 21:05:38 +020015623if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15624 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15625Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626fi
15627if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15628 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15629Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015631if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015632 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015633Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634fi
15635if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015636 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015637Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638fi
15639if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015640 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015641Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642fi
15643if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015644 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015645Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646fi
15647if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015648 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015649Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650fi
15651if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015652 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015653Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654fi
15655if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015656 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015657Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658fi
15659if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015660 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015661Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662fi
15663if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015664 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015665Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666fi
15667if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015668 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015669Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670fi
Iain Buclaw72c136c2020-04-08 22:52:05 +020015671if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15672 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15673Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015675if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015676 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015677Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015679if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15680 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15681Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682fi
Rainer Orthbca0a322019-05-07 10:38:45 +000015683if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15684 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15685Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686fi
Iain Buclaw261bd782020-03-25 09:38:58 +010015687if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15688 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15689Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015691
Joseph Myers22e05272018-10-31 17:03:16 +000015692: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015693ac_write_fail=0
15694ac_clean_files_save=$ac_clean_files
15695ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15696{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15697$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15698as_write_fail=0
15699cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15700#! $SHELL
15701# Generated by $as_me.
15702# Run this file to recreate the current configuration.
15703# Compiler output produced by configure, useful for debugging
15704# configure, is in config.log if it exists.
15705
15706debug=false
15707ac_cs_recheck=false
15708ac_cs_silent=false
15709
15710SHELL=\${CONFIG_SHELL-$SHELL}
15711export SHELL
15712_ASEOF
15713cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15714## -------------------- ##
15715## M4sh Initialization. ##
15716## -------------------- ##
15717
15718# Be more Bourne compatible
15719DUALCASE=1; export DUALCASE # for MKS sh
15720if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15721 emulate sh
15722 NULLCMD=:
15723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15724 # is contrary to our usage. Disable this feature.
15725 alias -g '${1+"$@"}'='"$@"'
15726 setopt NO_GLOB_SUBST
15727else
15728 case `(set -o) 2>/dev/null` in #(
15729 *posix*) :
15730 set -o posix ;; #(
15731 *) :
15732 ;;
15733esac
15734fi
15735
15736
15737as_nl='
15738'
15739export as_nl
15740# Printing a long string crashes Solaris 7 /usr/bin/printf.
15741as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15742as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15743as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15744# Prefer a ksh shell builtin over an external printf program on Solaris,
15745# but without wasting forks for bash or zsh.
15746if test -z "$BASH_VERSION$ZSH_VERSION" \
15747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15748 as_echo='print -r --'
15749 as_echo_n='print -rn --'
15750elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15751 as_echo='printf %s\n'
15752 as_echo_n='printf %s'
15753else
15754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15755 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15756 as_echo_n='/usr/ucb/echo -n'
15757 else
15758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15759 as_echo_n_body='eval
15760 arg=$1;
15761 case $arg in #(
15762 *"$as_nl"*)
15763 expr "X$arg" : "X\\(.*\\)$as_nl";
15764 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15765 esac;
15766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15767 '
15768 export as_echo_n_body
15769 as_echo_n='sh -c $as_echo_n_body as_echo'
15770 fi
15771 export as_echo_body
15772 as_echo='sh -c $as_echo_body as_echo'
15773fi
15774
15775# The user is always right.
15776if test "${PATH_SEPARATOR+set}" != set; then
15777 PATH_SEPARATOR=:
15778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15780 PATH_SEPARATOR=';'
15781 }
15782fi
15783
15784
15785# IFS
15786# We need space, tab and new line, in precisely that order. Quoting is
15787# there to prevent editors from complaining about space-tab.
15788# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15789# splitting by setting IFS to empty value.)
15790IFS=" "" $as_nl"
15791
15792# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015793as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015794case $0 in #((
15795 *[\\/]* ) as_myself=$0 ;;
15796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797for as_dir in $PATH
15798do
15799 IFS=$as_save_IFS
15800 test -z "$as_dir" && as_dir=.
15801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15802 done
15803IFS=$as_save_IFS
15804
15805 ;;
15806esac
15807# We did not find ourselves, most probably we were run as `sh COMMAND'
15808# in which case we are not to be found in the path.
15809if test "x$as_myself" = x; then
15810 as_myself=$0
15811fi
15812if test ! -f "$as_myself"; then
15813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15814 exit 1
15815fi
15816
15817# Unset variables that we do not need and which cause bugs (e.g. in
15818# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15819# suppresses any "Segmentation fault" message there. '((' could
15820# trigger a bug in pdksh 5.2.14.
15821for as_var in BASH_ENV ENV MAIL MAILPATH
15822do eval test x\${$as_var+set} = xset \
15823 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15824done
15825PS1='$ '
15826PS2='> '
15827PS4='+ '
15828
15829# NLS nuisances.
15830LC_ALL=C
15831export LC_ALL
15832LANGUAGE=C
15833export LANGUAGE
15834
15835# CDPATH.
15836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15837
15838
Joseph Myers22e05272018-10-31 17:03:16 +000015839# as_fn_error STATUS ERROR [LINENO LOG_FD]
15840# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015841# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15842# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015843# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015844as_fn_error ()
15845{
Joseph Myers22e05272018-10-31 17:03:16 +000015846 as_status=$1; test $as_status -eq 0 && as_status=1
15847 if test "$4"; then
15848 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015850 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015851 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015852 as_fn_exit $as_status
15853} # as_fn_error
15854
15855
15856# as_fn_set_status STATUS
15857# -----------------------
15858# Set $? to STATUS, without forking.
15859as_fn_set_status ()
15860{
15861 return $1
15862} # as_fn_set_status
15863
15864# as_fn_exit STATUS
15865# -----------------
15866# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15867as_fn_exit ()
15868{
15869 set +e
15870 as_fn_set_status $1
15871 exit $1
15872} # as_fn_exit
15873
15874# as_fn_unset VAR
15875# ---------------
15876# Portably unset VAR.
15877as_fn_unset ()
15878{
15879 { eval $1=; unset $1;}
15880}
15881as_unset=as_fn_unset
15882# as_fn_append VAR VALUE
15883# ----------------------
15884# Append the text in VALUE to the end of the definition contained in VAR. Take
15885# advantage of any shell optimizations that allow amortized linear growth over
15886# repeated appends, instead of the typical quadratic growth present in naive
15887# implementations.
15888if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15889 eval 'as_fn_append ()
15890 {
15891 eval $1+=\$2
15892 }'
15893else
15894 as_fn_append ()
15895 {
15896 eval $1=\$$1\$2
15897 }
15898fi # as_fn_append
15899
15900# as_fn_arith ARG...
15901# ------------------
15902# Perform arithmetic evaluation on the ARGs, and store the result in the
15903# global $as_val. Take advantage of shells that can avoid forks. The arguments
15904# must be portable across $(()) and expr.
15905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15906 eval 'as_fn_arith ()
15907 {
15908 as_val=$(( $* ))
15909 }'
15910else
15911 as_fn_arith ()
15912 {
15913 as_val=`expr "$@" || test $? -eq 1`
15914 }
15915fi # as_fn_arith
15916
15917
15918if expr a : '\(a\)' >/dev/null 2>&1 &&
15919 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15920 as_expr=expr
15921else
15922 as_expr=false
15923fi
15924
15925if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15926 as_basename=basename
15927else
15928 as_basename=false
15929fi
15930
15931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15932 as_dirname=dirname
15933else
15934 as_dirname=false
15935fi
15936
15937as_me=`$as_basename -- "$0" ||
15938$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15939 X"$0" : 'X\(//\)$' \| \
15940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15941$as_echo X/"$0" |
15942 sed '/^.*\/\([^/][^/]*\)\/*$/{
15943 s//\1/
15944 q
15945 }
15946 /^X\/\(\/\/\)$/{
15947 s//\1/
15948 q
15949 }
15950 /^X\/\(\/\).*/{
15951 s//\1/
15952 q
15953 }
15954 s/.*/./; q'`
15955
15956# Avoid depending upon Character Ranges.
15957as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15959as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15960as_cr_digits='0123456789'
15961as_cr_alnum=$as_cr_Letters$as_cr_digits
15962
15963ECHO_C= ECHO_N= ECHO_T=
15964case `echo -n x` in #(((((
15965-n*)
15966 case `echo 'xy\c'` in
15967 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15968 xy) ECHO_C='\c';;
15969 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15970 ECHO_T=' ';;
15971 esac;;
15972*)
15973 ECHO_N='-n';;
15974esac
15975
15976rm -f conf$$ conf$$.exe conf$$.file
15977if test -d conf$$.dir; then
15978 rm -f conf$$.dir/conf$$.file
15979else
15980 rm -f conf$$.dir
15981 mkdir conf$$.dir 2>/dev/null
15982fi
15983if (echo >conf$$.file) 2>/dev/null; then
15984 if ln -s conf$$.file conf$$ 2>/dev/null; then
15985 as_ln_s='ln -s'
15986 # ... but there are two gotchas:
15987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015989 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015990 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015991 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015992 elif ln conf$$.file conf$$ 2>/dev/null; then
15993 as_ln_s=ln
15994 else
Joseph Myers22e05272018-10-31 17:03:16 +000015995 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015996 fi
15997else
Joseph Myers22e05272018-10-31 17:03:16 +000015998 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015999fi
16000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16001rmdir conf$$.dir 2>/dev/null
16002
16003
16004# as_fn_mkdir_p
16005# -------------
16006# Create "$as_dir" as a directory, including parents if necessary.
16007as_fn_mkdir_p ()
16008{
16009
16010 case $as_dir in #(
16011 -*) as_dir=./$as_dir;;
16012 esac
16013 test -d "$as_dir" || eval $as_mkdir_p || {
16014 as_dirs=
16015 while :; do
16016 case $as_dir in #(
16017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16018 *) as_qdir=$as_dir;;
16019 esac
16020 as_dirs="'$as_qdir' $as_dirs"
16021 as_dir=`$as_dirname -- "$as_dir" ||
16022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16023 X"$as_dir" : 'X\(//\)[^/]' \| \
16024 X"$as_dir" : 'X\(//\)$' \| \
16025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16026$as_echo X"$as_dir" |
16027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16028 s//\1/
16029 q
16030 }
16031 /^X\(\/\/\)[^/].*/{
16032 s//\1/
16033 q
16034 }
16035 /^X\(\/\/\)$/{
16036 s//\1/
16037 q
16038 }
16039 /^X\(\/\).*/{
16040 s//\1/
16041 q
16042 }
16043 s/.*/./; q'`
16044 test -d "$as_dir" && break
16045 done
16046 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000016047 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016048
16049
16050} # as_fn_mkdir_p
16051if mkdir -p . 2>/dev/null; then
16052 as_mkdir_p='mkdir -p "$as_dir"'
16053else
16054 test -d ./-p && rmdir ./-p
16055 as_mkdir_p=false
16056fi
16057
Joseph Myers22e05272018-10-31 17:03:16 +000016058
16059# as_fn_executable_p FILE
16060# -----------------------
16061# Test if FILE is an executable regular file.
16062as_fn_executable_p ()
16063{
16064 test -f "$1" && test -x "$1"
16065} # as_fn_executable_p
16066as_test_x='test -x'
16067as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000016068
16069# Sed expression to map a string onto a valid CPP name.
16070as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16071
16072# Sed expression to map a string onto a valid variable name.
16073as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16074
16075
16076exec 6>&1
16077## ----------------------------------- ##
16078## Main body of $CONFIG_STATUS script. ##
16079## ----------------------------------- ##
16080_ASEOF
16081test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16082
16083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16084# Save the log message, to keep $0 and so on meaningful, and to
16085# report actual input values of CONFIG_FILES etc. instead of their
16086# values after options handling.
16087ac_log="
16088This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000016089generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000016090
16091 CONFIG_FILES = $CONFIG_FILES
16092 CONFIG_HEADERS = $CONFIG_HEADERS
16093 CONFIG_LINKS = $CONFIG_LINKS
16094 CONFIG_COMMANDS = $CONFIG_COMMANDS
16095 $ $0 $@
16096
16097on `(hostname || uname -n) 2>/dev/null | sed 1q`
16098"
16099
16100_ACEOF
16101
16102case $ac_config_files in *"
16103"*) set x $ac_config_files; shift; ac_config_files=$*;;
16104esac
16105
16106case $ac_config_headers in *"
16107"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16108esac
16109
16110
16111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112# Files that config.status was made for.
16113config_files="$ac_config_files"
16114config_headers="$ac_config_headers"
16115config_commands="$ac_config_commands"
16116
16117_ACEOF
16118
16119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16120ac_cs_usage="\
16121\`$as_me' instantiates files and other configuration actions
16122from templates according to the current configuration. Unless the files
16123and actions are specified as TAGs, all are instantiated by default.
16124
16125Usage: $0 [OPTION]... [TAG]...
16126
16127 -h, --help print this help, then exit
16128 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000016129 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000016130 -q, --quiet, --silent
16131 do not print progress messages
16132 -d, --debug don't remove temporary files
16133 --recheck update $as_me by reconfiguring in the same conditions
16134 --file=FILE[:TEMPLATE]
16135 instantiate the configuration file FILE
16136 --header=FILE[:TEMPLATE]
16137 instantiate the configuration header FILE
16138
16139Configuration files:
16140$config_files
16141
16142Configuration headers:
16143$config_headers
16144
16145Configuration commands:
16146$config_commands
16147
16148Report bugs to the package provider."
16149
16150_ACEOF
16151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016152ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016153ac_cs_version="\\
16154package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000016155configured by $0, generated by GNU Autoconf 2.69,
16156 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016157
Rainer Orth0b6e3122019-02-14 17:47:49 +000016158Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016159This config.status script is free software; the Free Software Foundation
16160gives unlimited permission to copy, distribute and modify it."
16161
16162ac_pwd='$ac_pwd'
16163srcdir='$srcdir'
16164INSTALL='$INSTALL'
16165MKDIR_P='$MKDIR_P'
16166AWK='$AWK'
16167test -n "\$AWK" || AWK=awk
16168_ACEOF
16169
16170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171# The default lists apply if the user does not specify any file.
16172ac_need_defaults=:
16173while test $# != 0
16174do
16175 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000016176 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000016177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16179 ac_shift=:
16180 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016181 --*=)
16182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16183 ac_optarg=
16184 ac_shift=:
16185 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016186 *)
16187 ac_option=$1
16188 ac_optarg=$2
16189 ac_shift=shift
16190 ;;
16191 esac
16192
16193 case $ac_option in
16194 # Handling of the options.
16195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16196 ac_cs_recheck=: ;;
16197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16198 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016199 --config | --confi | --conf | --con | --co | --c )
16200 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016201 --debug | --debu | --deb | --de | --d | -d )
16202 debug=: ;;
16203 --file | --fil | --fi | --f )
16204 $ac_shift
16205 case $ac_optarg in
16206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016207 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016208 esac
16209 as_fn_append CONFIG_FILES " '$ac_optarg'"
16210 ac_need_defaults=false;;
16211 --header | --heade | --head | --hea )
16212 $ac_shift
16213 case $ac_optarg in
16214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16215 esac
16216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16217 ac_need_defaults=false;;
16218 --he | --h)
16219 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000016220 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016221Try \`$0 --help' for more information.";;
16222 --help | --hel | -h )
16223 $as_echo "$ac_cs_usage"; exit ;;
16224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16226 ac_cs_silent=: ;;
16227
16228 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016229 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016230Try \`$0 --help' for more information." ;;
16231
16232 *) as_fn_append ac_config_targets " $1"
16233 ac_need_defaults=false ;;
16234
16235 esac
16236 shift
16237done
16238
16239ac_configure_extra_args=
16240
16241if $ac_cs_silent; then
16242 exec 6>/dev/null
16243 ac_configure_extra_args="$ac_configure_extra_args --silent"
16244fi
16245
16246_ACEOF
16247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016249 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016250 shift
16251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16252 CONFIG_SHELL='$SHELL'
16253 export CONFIG_SHELL
16254 exec "\$@"
16255fi
16256
16257_ACEOF
16258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259exec 5>>config.log
16260{
16261 echo
16262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16263## Running $as_me. ##
16264_ASBOX
16265 $as_echo "$ac_log"
16266} >&5
16267
16268_ACEOF
16269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270#
16271# INIT-COMMANDS
16272#
16273
16274srcdir="$srcdir"
16275host="$host"
16276target="$target"
16277with_multisubdir="$with_multisubdir"
16278with_multisrctop="$with_multisrctop"
16279with_target_subdir="$with_target_subdir"
16280ac_configure_args="${multilib_arg} ${ac_configure_args}"
16281multi_basedir="$multi_basedir"
16282CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16283CC="$CC"
16284CXX="$CXX"
16285GFORTRAN="$GFORTRAN"
16286GDC="$GDC"
16287
16288
16289# The HP-UX ksh and POSIX shell print the target directory to stdout
16290# if CDPATH is set.
16291(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16292
16293sed_quote_subst='$sed_quote_subst'
16294double_quote_subst='$double_quote_subst'
16295delay_variable_subst='$delay_variable_subst'
16296macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16297macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16298enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16299enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16300pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16301enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16302SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16303ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16304host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16305host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16306host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16307build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16308build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16309build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16310SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16311Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16312GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16313EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16314FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16315LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16316NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16317LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16318max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16319ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16320exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16321lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16322lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16323lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16324reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16325reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16326OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16327deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16328file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16329AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16330AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16331STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16332RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16333old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16334old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16335old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16336lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16337CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16338CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16339compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16340GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16341lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16342lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16343lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16344lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16345objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16346MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16347lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16348lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16349lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16350lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16351lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16352need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16353DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16354NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16355LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16356OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16357OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16358libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16359shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16360extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16361archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16362enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16363export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16364whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16365compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16366old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16367old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16368archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16369archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16370module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16371module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16372with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16373allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16374no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16375hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16376hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16377hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16378hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16379hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16380hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16381hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16382hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16383inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16384link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16385fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16386always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16387export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16388exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16389include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16390prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16391file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16392variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16393need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16394need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16395version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16396runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16397shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16398shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16399libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16400library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16401soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16402install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16403postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16404postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16405finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16406finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16407hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16408sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16409sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16410hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16411enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16412enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16413enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16414old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16415striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16416LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16417reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16418reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16419old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16420compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16421GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16422lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16423lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16424lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16425lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16426lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16427archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16428enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16429export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16430whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16431compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16432old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16433old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16434archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16435archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16436module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16437module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16438with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16439allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16440no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16441hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16442hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16443hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16444hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16445hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16446hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16447hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16448hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16449inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16450link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16451fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16452always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16453export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16454exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16455include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16456prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16457file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16458hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16459
16460LTCC='$LTCC'
16461LTCFLAGS='$LTCFLAGS'
16462compiler='$compiler_DEFAULT'
16463
16464# A function that is used when there is no print builtin or printf.
16465func_fallback_echo ()
16466{
16467 eval 'cat <<_LTECHO_EOF
16468\$1
16469_LTECHO_EOF'
16470}
16471
16472# Quote evaled strings.
16473for var in SHELL \
16474ECHO \
16475SED \
16476GREP \
16477EGREP \
16478FGREP \
16479LD \
16480NM \
16481LN_S \
16482lt_SP2NL \
16483lt_NL2SP \
16484reload_flag \
16485OBJDUMP \
16486deplibs_check_method \
16487file_magic_cmd \
16488AR \
16489AR_FLAGS \
16490STRIP \
16491RANLIB \
16492CC \
16493CFLAGS \
16494compiler \
16495lt_cv_sys_global_symbol_pipe \
16496lt_cv_sys_global_symbol_to_cdecl \
16497lt_cv_sys_global_symbol_to_c_name_address \
16498lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16499lt_prog_compiler_no_builtin_flag \
16500lt_prog_compiler_wl \
16501lt_prog_compiler_pic \
16502lt_prog_compiler_static \
16503lt_cv_prog_compiler_c_o \
16504need_locks \
16505DSYMUTIL \
16506NMEDIT \
16507LIPO \
16508OTOOL \
16509OTOOL64 \
16510shrext_cmds \
16511export_dynamic_flag_spec \
16512whole_archive_flag_spec \
16513compiler_needs_object \
16514with_gnu_ld \
16515allow_undefined_flag \
16516no_undefined_flag \
16517hardcode_libdir_flag_spec \
16518hardcode_libdir_flag_spec_ld \
16519hardcode_libdir_separator \
16520fix_srcfile_path \
16521exclude_expsyms \
16522include_expsyms \
16523file_list_spec \
16524variables_saved_for_relink \
16525libname_spec \
16526library_names_spec \
16527soname_spec \
16528install_override_mode \
16529finish_eval \
16530old_striplib \
16531striplib \
16532LD_D \
16533reload_flag_D \
16534compiler_D \
16535lt_prog_compiler_no_builtin_flag_D \
16536lt_prog_compiler_wl_D \
16537lt_prog_compiler_pic_D \
16538lt_prog_compiler_static_D \
16539lt_cv_prog_compiler_c_o_D \
16540export_dynamic_flag_spec_D \
16541whole_archive_flag_spec_D \
16542compiler_needs_object_D \
16543with_gnu_ld_D \
16544allow_undefined_flag_D \
16545no_undefined_flag_D \
16546hardcode_libdir_flag_spec_D \
16547hardcode_libdir_flag_spec_ld_D \
16548hardcode_libdir_separator_D \
16549fix_srcfile_path_D \
16550exclude_expsyms_D \
16551include_expsyms_D \
16552file_list_spec_D; do
16553 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16554 *[\\\\\\\`\\"\\\$]*)
16555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16556 ;;
16557 *)
16558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16559 ;;
16560 esac
16561done
16562
16563# Double-quote double-evaled strings.
16564for var in reload_cmds \
16565old_postinstall_cmds \
16566old_postuninstall_cmds \
16567old_archive_cmds \
16568extract_expsyms_cmds \
16569old_archive_from_new_cmds \
16570old_archive_from_expsyms_cmds \
16571archive_cmds \
16572archive_expsym_cmds \
16573module_cmds \
16574module_expsym_cmds \
16575export_symbols_cmds \
16576prelink_cmds \
16577postinstall_cmds \
16578postuninstall_cmds \
16579finish_cmds \
16580sys_lib_search_path_spec \
16581sys_lib_dlsearch_path_spec \
16582reload_cmds_D \
16583old_archive_cmds_D \
16584old_archive_from_new_cmds_D \
16585old_archive_from_expsyms_cmds_D \
16586archive_cmds_D \
16587archive_expsym_cmds_D \
16588module_cmds_D \
16589module_expsym_cmds_D \
16590export_symbols_cmds_D \
16591prelink_cmds_D; do
16592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16593 *[\\\\\\\`\\"\\\$]*)
16594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16595 ;;
16596 *)
16597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16598 ;;
16599 esac
16600done
16601
16602ac_aux_dir='$ac_aux_dir'
16603xsi_shell='$xsi_shell'
16604lt_shell_append='$lt_shell_append'
16605
16606# See if we are running on zsh, and set the options which allow our
16607# commands through without removal of \ escapes INIT.
16608if test -n "\${ZSH_VERSION+set}" ; then
16609 setopt NO_GLOB_SUBST
16610fi
16611
16612
16613 PACKAGE='$PACKAGE'
16614 VERSION='$VERSION'
16615 TIMESTAMP='$TIMESTAMP'
16616 RM='$RM'
16617 ofile='$ofile'
16618
16619
16620
16621
16622
16623
Iain Buclawb4c522f2018-10-28 19:51:47 +000016624_ACEOF
16625
16626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627
16628# Handling of arguments.
16629for ac_config_target in $ac_config_targets
16630do
16631 case $ac_config_target in
16632 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16633 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16634 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16635 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016636 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16637 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16638 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16639 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016640 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16641 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16642 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016643
Joseph Myers22e05272018-10-31 17:03:16 +000016644 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016645 esac
16646done
16647
16648
16649# If the user did not use the arguments to specify the items to instantiate,
16650# then the envvar interface is used. Set only those that are not.
16651# We use the long form for the default assignment because of an extremely
16652# bizarre bug on SunOS 4.1.3.
16653if $ac_need_defaults; then
16654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16657fi
16658
16659# Have a temporary directory for convenience. Make it in the build tree
16660# simply because there is no reason against having it here, and in addition,
16661# creating and moving files from /tmp can sometimes cause problems.
16662# Hook for its removal unless debugging.
16663# Note that there is a small window in which the directory will not be cleaned:
16664# after its creation but before its name has been assigned to `$tmp'.
16665$debug ||
16666{
Joseph Myers22e05272018-10-31 17:03:16 +000016667 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016668 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016669 : "${ac_tmp:=$tmp}"
16670 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016671' 0
16672 trap 'as_fn_exit 1' 1 2 13 15
16673}
16674# Create a (secure) tmp directory for tmp files.
16675
16676{
16677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016678 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016679} ||
16680{
16681 tmp=./conf$$-$RANDOM
16682 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016683} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16684ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016685
16686# Set up the scripts for CONFIG_FILES section.
16687# No need to generate them if there are no CONFIG_FILES.
16688# This happens for instance with `./config.status config.h'.
16689if test -n "$CONFIG_FILES"; then
16690
Rainer Orth0b6e3122019-02-14 17:47:49 +000016691if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16692 ac_cs_awk_getline=:
16693 ac_cs_awk_pipe_init=
16694 ac_cs_awk_read_file='
16695 while ((getline aline < (F[key])) > 0)
16696 print(aline)
16697 close(F[key])'
16698 ac_cs_awk_pipe_fini=
16699else
16700 ac_cs_awk_getline=false
16701 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16702 ac_cs_awk_read_file='
16703 print "|#_!!_#|"
16704 print "cat " F[key] " &&"
16705 '$ac_cs_awk_pipe_init
16706 # The final `:' finishes the AND list.
16707 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16708fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016709ac_cr=`echo X | tr X '\015'`
16710# On cygwin, bash can eat \r inside `` if the user requested igncr.
16711# But we know of no other shell where ac_cr would be empty at this
16712# point, so we can use a bashism as a fallback.
16713if test "x$ac_cr" = x; then
16714 eval ac_cr=\$\'\\r\'
16715fi
16716ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16717if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016718 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016719else
16720 ac_cs_awk_cr=$ac_cr
16721fi
16722
Joseph Myers22e05272018-10-31 17:03:16 +000016723echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016724_ACEOF
16725
Rainer Orth0b6e3122019-02-14 17:47:49 +000016726# Create commands to substitute file output variables.
16727{
16728 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16729 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16730 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16731 echo "_ACAWK" &&
16732 echo "_ACEOF"
16733} >conf$$files.sh &&
16734. ./conf$$files.sh ||
16735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16736rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016737
16738{
16739 echo "cat >conf$$subs.awk <<_ACEOF" &&
16740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16741 echo "_ACEOF"
16742} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16744ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016745ac_delim='%!_!# '
16746for ac_last_try in false false false false false :; do
16747 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016749
16750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16751 if test $ac_delim_n = $ac_delim_num; then
16752 break
16753 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016755 else
16756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16757 fi
16758done
16759rm -f conf$$subs.sh
16760
16761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016762cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016763_ACEOF
16764sed -n '
16765h
16766s/^/S["/; s/!.*/"]=/
16767p
16768g
16769s/^[^!]*!//
16770:repl
16771t repl
16772s/'"$ac_delim"'$//
16773t delim
16774:nl
16775h
Joseph Myers22e05272018-10-31 17:03:16 +000016776s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016777t more1
16778s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16779p
16780n
16781b repl
16782:more1
16783s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16784p
16785g
16786s/.\{148\}//
16787t nl
16788:delim
16789h
Joseph Myers22e05272018-10-31 17:03:16 +000016790s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016791t more2
16792s/["\\]/\\&/g; s/^/"/; s/$/"/
16793p
16794b
16795:more2
16796s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16797p
16798g
16799s/.\{148\}//
16800t delim
16801' <conf$$subs.awk | sed '
16802/^[^""]/{
16803 N
16804 s/\n//
16805}
16806' >>$CONFIG_STATUS || ac_write_fail=1
16807rm -f conf$$subs.awk
16808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16809_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016810cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016811 for (key in S) S_is_set[key] = 1
16812 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016813 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016814}
16815{
16816 line = $ 0
16817 nfields = split(line, field, "@")
16818 substed = 0
16819 len = length(field[1])
16820 for (i = 2; i < nfields; i++) {
16821 key = field[i]
16822 keylen = length(key)
16823 if (S_is_set[key]) {
16824 value = S[key]
16825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16826 len += length(value) + length(field[++i])
16827 substed = 1
16828 } else
16829 len += 1 + keylen
16830 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016831 if (nfields == 3 && !substed) {
16832 key = field[2]
16833 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16834 \$ac_cs_awk_read_file
16835 next
16836 }
16837 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016838 print line
16839}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016840\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016841_ACAWK
16842_ACEOF
16843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16844if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16846else
16847 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016848fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016850_ACEOF
16851
Joseph Myers22e05272018-10-31 17:03:16 +000016852# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16853# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016854# trailing colons and then remove the whole line if VPATH becomes empty
16855# (actually we leave an empty line to preserve line numbers).
16856if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16858h
16859s///
16860s/^/:/
16861s/[ ]*$/:/
16862s/:\$(srcdir):/:/g
16863s/:\${srcdir}:/:/g
16864s/:@srcdir@:/:/g
16865s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016866s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016867x
16868s/\(=[ ]*\).*/\1/
16869G
16870s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016871s/^[^=]*=[ ]*$//
16872}'
16873fi
16874
16875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16876fi # test -n "$CONFIG_FILES"
16877
16878# Set up the scripts for CONFIG_HEADERS section.
16879# No need to generate them if there are no CONFIG_HEADERS.
16880# This happens for instance with `./config.status Makefile'.
16881if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016882cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016883BEGIN {
16884_ACEOF
16885
16886# Transform confdefs.h into an awk script `defines.awk', embedded as
16887# here-document in config.status, that substitutes the proper values into
16888# config.h.in to produce config.h.
16889
16890# Create a delimiter string that does not exist in confdefs.h, to ease
16891# handling of long lines.
16892ac_delim='%!_!# '
16893for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016894 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16895 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016896 break
16897 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016898 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016899 else
16900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16901 fi
16902done
16903
16904# For the awk script, D is an array of macro values keyed by name,
16905# likewise P contains macro parameters if any. Preserve backslash
16906# newline sequences.
16907
16908ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16909sed -n '
16910s/.\{148\}/&'"$ac_delim"'/g
16911t rset
16912:rset
16913s/^[ ]*#[ ]*define[ ][ ]*/ /
16914t def
16915d
16916:def
16917s/\\$//
16918t bsnl
16919s/["\\]/\\&/g
16920s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16921D["\1"]=" \3"/p
16922s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16923d
16924:bsnl
16925s/["\\]/\\&/g
16926s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16927D["\1"]=" \3\\\\\\n"\\/p
16928t cont
16929s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16930t cont
16931d
16932:cont
16933n
16934s/.\{148\}/&'"$ac_delim"'/g
16935t clear
16936:clear
16937s/\\$//
16938t bsnlc
16939s/["\\]/\\&/g; s/^/"/; s/$/"/p
16940d
16941:bsnlc
16942s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16943b cont
16944' <confdefs.h | sed '
16945s/'"$ac_delim"'/"\\\
16946"/g' >>$CONFIG_STATUS || ac_write_fail=1
16947
16948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16949 for (key in D) D_is_set[key] = 1
16950 FS = ""
16951}
16952/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16953 line = \$ 0
16954 split(line, arg, " ")
16955 if (arg[1] == "#") {
16956 defundef = arg[2]
16957 mac1 = arg[3]
16958 } else {
16959 defundef = substr(arg[1], 2)
16960 mac1 = arg[2]
16961 }
16962 split(mac1, mac2, "(") #)
16963 macro = mac2[1]
16964 prefix = substr(line, 1, index(line, defundef) - 1)
16965 if (D_is_set[macro]) {
16966 # Preserve the white space surrounding the "#".
16967 print prefix "define", macro P[macro] D[macro]
16968 next
16969 } else {
16970 # Replace #undef with comments. This is necessary, for example,
16971 # in the case of _POSIX_SOURCE, which is predefined and required
16972 # on some systems where configure will not decide to define it.
16973 if (defundef == "undef") {
16974 print "/*", prefix defundef, macro, "*/"
16975 next
16976 }
16977 }
16978}
16979{ print }
16980_ACAWK
16981_ACEOF
16982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016983 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016984fi # test -n "$CONFIG_HEADERS"
16985
16986
16987eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16988shift
16989for ac_tag
16990do
16991 case $ac_tag in
16992 :[FHLC]) ac_mode=$ac_tag; continue;;
16993 esac
16994 case $ac_mode$ac_tag in
16995 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016996 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016997 :[FH]-) ac_tag=-:-;;
16998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16999 esac
17000 ac_save_IFS=$IFS
17001 IFS=:
17002 set x $ac_tag
17003 IFS=$ac_save_IFS
17004 shift
17005 ac_file=$1
17006 shift
17007
17008 case $ac_mode in
17009 :L) ac_source=$1;;
17010 :[FH])
17011 ac_file_inputs=
17012 for ac_f
17013 do
17014 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000017015 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017016 *) # Look for the file first in the build tree, then in the source tree
17017 # (if the path is not absolute). The absolute path cannot be DOS-style,
17018 # because $ac_f cannot contain `:'.
17019 test -f "$ac_f" ||
17020 case $ac_f in
17021 [\\/$]*) false;;
17022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17023 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000017024 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017025 esac
17026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17027 as_fn_append ac_file_inputs " '$ac_f'"
17028 done
17029
17030 # Let's still pretend it is `configure' which instantiates (i.e., don't
17031 # use $as_me), people would be surprised to read:
17032 # /* config.h. Generated by config.status. */
17033 configure_input='Generated from '`
17034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17035 `' by configure.'
17036 if test x"$ac_file" != x-; then
17037 configure_input="$ac_file. $configure_input"
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17039$as_echo "$as_me: creating $ac_file" >&6;}
17040 fi
17041 # Neutralize special characters interpreted by sed in replacement strings.
17042 case $configure_input in #(
17043 *\&* | *\|* | *\\* )
17044 ac_sed_conf_input=`$as_echo "$configure_input" |
17045 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17046 *) ac_sed_conf_input=$configure_input;;
17047 esac
17048
17049 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000017050 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017052 esac
17053 ;;
17054 esac
17055
17056 ac_dir=`$as_dirname -- "$ac_file" ||
17057$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17058 X"$ac_file" : 'X\(//\)[^/]' \| \
17059 X"$ac_file" : 'X\(//\)$' \| \
17060 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17061$as_echo X"$ac_file" |
17062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17063 s//\1/
17064 q
17065 }
17066 /^X\(\/\/\)[^/].*/{
17067 s//\1/
17068 q
17069 }
17070 /^X\(\/\/\)$/{
17071 s//\1/
17072 q
17073 }
17074 /^X\(\/\).*/{
17075 s//\1/
17076 q
17077 }
17078 s/.*/./; q'`
17079 as_dir="$ac_dir"; as_fn_mkdir_p
17080 ac_builddir=.
17081
17082case "$ac_dir" in
17083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17084*)
17085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17086 # A ".." for each directory in $ac_dir_suffix.
17087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17088 case $ac_top_builddir_sub in
17089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17091 esac ;;
17092esac
17093ac_abs_top_builddir=$ac_pwd
17094ac_abs_builddir=$ac_pwd$ac_dir_suffix
17095# for backward compatibility:
17096ac_top_builddir=$ac_top_build_prefix
17097
17098case $srcdir in
17099 .) # We are building in place.
17100 ac_srcdir=.
17101 ac_top_srcdir=$ac_top_builddir_sub
17102 ac_abs_top_srcdir=$ac_pwd ;;
17103 [\\/]* | ?:[\\/]* ) # Absolute name.
17104 ac_srcdir=$srcdir$ac_dir_suffix;
17105 ac_top_srcdir=$srcdir
17106 ac_abs_top_srcdir=$srcdir ;;
17107 *) # Relative name.
17108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17109 ac_top_srcdir=$ac_top_build_prefix$srcdir
17110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17111esac
17112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17113
17114
17115 case $ac_mode in
17116 :F)
17117 #
17118 # CONFIG_FILE
17119 #
17120
17121 case $INSTALL in
17122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17124 esac
17125 ac_MKDIR_P=$MKDIR_P
17126 case $MKDIR_P in
17127 [\\/$]* | ?:[\\/]* ) ;;
17128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17129 esac
17130_ACEOF
17131
17132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17133# If the template does not know about datarootdir, expand it.
17134# FIXME: This hack should be removed a few years after 2.60.
17135ac_datarootdir_hack=; ac_datarootdir_seen=
17136ac_sed_dataroot='
17137/datarootdir/ {
17138 p
17139 q
17140}
17141/@datadir@/p
17142/@docdir@/p
17143/@infodir@/p
17144/@localedir@/p
17145/@mandir@/p'
17146case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17147*datarootdir*) ac_datarootdir_seen=yes;;
17148*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17150$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17151_ACEOF
17152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17153 ac_datarootdir_hack='
17154 s&@datadir@&$datadir&g
17155 s&@docdir@&$docdir&g
17156 s&@infodir@&$infodir&g
17157 s&@localedir@&$localedir&g
17158 s&@mandir@&$mandir&g
17159 s&\\\${datarootdir}&$datarootdir&g' ;;
17160esac
17161_ACEOF
17162
17163# Neutralize VPATH when `$srcdir' = `.'.
17164# Shell code in configure.ac might set extrasub.
17165# FIXME: do we really want to maintain this feature?
17166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17167ac_sed_extra="$ac_vpsub
17168$extrasub
17169_ACEOF
17170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171:t
17172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17173s|@configure_input@|$ac_sed_conf_input|;t t
17174s&@top_builddir@&$ac_top_builddir_sub&;t t
17175s&@top_build_prefix@&$ac_top_build_prefix&;t t
17176s&@srcdir@&$ac_srcdir&;t t
17177s&@abs_srcdir@&$ac_abs_srcdir&;t t
17178s&@top_srcdir@&$ac_top_srcdir&;t t
17179s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17180s&@builddir@&$ac_builddir&;t t
17181s&@abs_builddir@&$ac_abs_builddir&;t t
17182s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17183s&@INSTALL@&$ac_INSTALL&;t t
17184s&@MKDIR_P@&$ac_MKDIR_P&;t t
17185$ac_datarootdir_hack
17186"
Rainer Orth0b6e3122019-02-14 17:47:49 +000017187eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17188if $ac_cs_awk_getline; then
17189 $AWK -f "$ac_tmp/subs.awk"
17190else
17191 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17192fi \
Joseph Myers22e05272018-10-31 17:03:16 +000017193 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017194
17195test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000017196 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17198 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000017199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017200which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017201$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017202which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017203
Joseph Myers22e05272018-10-31 17:03:16 +000017204 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000017205 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000017206 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17207 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017208 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000017209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017210 ;;
17211 :H)
17212 #
17213 # CONFIG_HEADER
17214 #
17215 if test x"$ac_file" != x-; then
17216 {
17217 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17219 } >"$ac_tmp/config.h" \
17220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17221 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000017222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17223$as_echo "$as_me: $ac_file is unchanged" >&6;}
17224 else
17225 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017226 mv "$ac_tmp/config.h" "$ac_file" \
17227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017228 fi
17229 else
17230 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17232 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017233 fi
17234# Compute "$ac_file"'s index in $config_headers.
17235_am_arg="$ac_file"
17236_am_stamp_count=1
17237for _am_header in $config_headers :; do
17238 case $_am_header in
17239 $_am_arg | $_am_arg:* )
17240 break ;;
17241 * )
17242 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17243 esac
17244done
17245echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17246$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17247 X"$_am_arg" : 'X\(//\)[^/]' \| \
17248 X"$_am_arg" : 'X\(//\)$' \| \
17249 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17250$as_echo X"$_am_arg" |
17251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17252 s//\1/
17253 q
17254 }
17255 /^X\(\/\/\)[^/].*/{
17256 s//\1/
17257 q
17258 }
17259 /^X\(\/\/\)$/{
17260 s//\1/
17261 q
17262 }
17263 /^X\(\/\).*/{
17264 s//\1/
17265 q
17266 }
17267 s/.*/./; q'`/stamp-h$_am_stamp_count
17268 ;;
17269
17270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17271$as_echo "$as_me: executing $ac_file commands" >&6;}
17272 ;;
17273 esac
17274
17275
17276 case $ac_file$ac_mode in
17277 "default-1":C)
17278# Only add multilib support code if we just rebuilt the top-level
17279# Makefile.
17280case " $CONFIG_FILES " in
17281 *" Makefile "*)
17282 ac_file=Makefile . ${multi_basedir}/config-ml.in
17283 ;;
17284esac ;;
17285 "libtool":C)
17286
17287 # See if we are running on zsh, and set the options which allow our
17288 # commands through without removal of \ escapes.
17289 if test -n "${ZSH_VERSION+set}" ; then
17290 setopt NO_GLOB_SUBST
17291 fi
17292
17293 cfgfile="${ofile}T"
17294 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17295 $RM "$cfgfile"
17296
17297 cat <<_LT_EOF >> "$cfgfile"
17298#! $SHELL
17299
17300# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17301# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17302# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17303# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17304#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017305# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17306# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017307# Written by Gordon Matzigkeit, 1996
17308#
17309# This file is part of GNU Libtool.
17310#
17311# GNU Libtool is free software; you can redistribute it and/or
17312# modify it under the terms of the GNU General Public License as
17313# published by the Free Software Foundation; either version 2 of
17314# the License, or (at your option) any later version.
17315#
17316# As a special exception to the GNU General Public License,
17317# if you distribute this file as part of a program or library that
17318# is built using GNU Libtool, you may include this file under the
17319# same distribution terms that you use for the rest of that program.
17320#
17321# GNU Libtool is distributed in the hope that it will be useful,
17322# but WITHOUT ANY WARRANTY; without even the implied warranty of
17323# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17324# GNU General Public License for more details.
17325#
17326# You should have received a copy of the GNU General Public License
17327# along with GNU Libtool; see the file COPYING. If not, a copy
17328# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17329# obtained by writing to the Free Software Foundation, Inc.,
17330# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17331
17332
17333# The names of the tagged configurations supported by this script.
17334available_tags="D "
17335
17336# ### BEGIN LIBTOOL CONFIG
17337
17338# Which release of libtool.m4 was used?
17339macro_version=$macro_version
17340macro_revision=$macro_revision
17341
17342# Whether or not to build shared libraries.
17343build_libtool_libs=$enable_shared
17344
17345# Whether or not to build static libraries.
17346build_old_libs=$enable_static
17347
17348# What type of objects to build.
17349pic_mode=$pic_mode
17350
17351# Whether or not to optimize for fast installation.
17352fast_install=$enable_fast_install
17353
17354# Shell to use when invoking shell scripts.
17355SHELL=$lt_SHELL
17356
17357# An echo program that protects backslashes.
17358ECHO=$lt_ECHO
17359
17360# The host system.
17361host_alias=$host_alias
17362host=$host
17363host_os=$host_os
17364
17365# The build system.
17366build_alias=$build_alias
17367build=$build
17368build_os=$build_os
17369
17370# A sed program that does not truncate output.
17371SED=$lt_SED
17372
17373# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17374Xsed="\$SED -e 1s/^X//"
17375
17376# A grep program that handles long lines.
17377GREP=$lt_GREP
17378
17379# An ERE matcher.
17380EGREP=$lt_EGREP
17381
17382# A literal string matcher.
17383FGREP=$lt_FGREP
17384
17385# A BSD- or MS-compatible name lister.
17386NM=$lt_NM
17387
17388# Whether we need soft or hard links.
17389LN_S=$lt_LN_S
17390
17391# What is the maximum length of a command?
17392max_cmd_len=$max_cmd_len
17393
17394# Object file suffix (normally "o").
17395objext=$ac_objext
17396
17397# Executable file suffix (normally "").
17398exeext=$exeext
17399
17400# whether the shell understands "unset".
17401lt_unset=$lt_unset
17402
17403# turn spaces into newlines.
17404SP2NL=$lt_lt_SP2NL
17405
17406# turn newlines into spaces.
17407NL2SP=$lt_lt_NL2SP
17408
17409# An object symbol dumper.
17410OBJDUMP=$lt_OBJDUMP
17411
17412# Method to check whether dependent libraries are shared objects.
17413deplibs_check_method=$lt_deplibs_check_method
17414
17415# Command to use when deplibs_check_method == "file_magic".
17416file_magic_cmd=$lt_file_magic_cmd
17417
17418# The archiver.
17419AR=$lt_AR
17420AR_FLAGS=$lt_AR_FLAGS
17421
17422# A symbol stripping program.
17423STRIP=$lt_STRIP
17424
17425# Commands used to install an old-style archive.
17426RANLIB=$lt_RANLIB
17427old_postinstall_cmds=$lt_old_postinstall_cmds
17428old_postuninstall_cmds=$lt_old_postuninstall_cmds
17429
17430# Whether to use a lock for old archive extraction.
17431lock_old_archive_extraction=$lock_old_archive_extraction
17432
17433# A C compiler.
17434LTCC=$lt_CC
17435
17436# LTCC compiler flags.
17437LTCFLAGS=$lt_CFLAGS
17438
17439# Take the output of nm and produce a listing of raw symbols and C names.
17440global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17441
17442# Transform the output of nm in a proper C declaration.
17443global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17444
17445# Transform the output of nm in a C name address pair.
17446global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17447
17448# Transform the output of nm in a C name address pair when lib prefix is needed.
17449global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17450
17451# The name of the directory that contains temporary libtool files.
17452objdir=$objdir
17453
17454# Used to examine libraries when file_magic_cmd begins with "file".
17455MAGIC_CMD=$MAGIC_CMD
17456
17457# Must we lock files when doing compilation?
17458need_locks=$lt_need_locks
17459
17460# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17461DSYMUTIL=$lt_DSYMUTIL
17462
17463# Tool to change global to local symbols on Mac OS X.
17464NMEDIT=$lt_NMEDIT
17465
17466# Tool to manipulate fat objects and archives on Mac OS X.
17467LIPO=$lt_LIPO
17468
17469# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17470OTOOL=$lt_OTOOL
17471
17472# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17473OTOOL64=$lt_OTOOL64
17474
17475# Old archive suffix (normally "a").
17476libext=$libext
17477
17478# Shared library suffix (normally ".so").
17479shrext_cmds=$lt_shrext_cmds
17480
17481# The commands to extract the exported symbol list from a shared archive.
17482extract_expsyms_cmds=$lt_extract_expsyms_cmds
17483
17484# Variables whose values should be saved in libtool wrapper scripts and
17485# restored at link time.
17486variables_saved_for_relink=$lt_variables_saved_for_relink
17487
17488# Do we need the "lib" prefix for modules?
17489need_lib_prefix=$need_lib_prefix
17490
17491# Do we need a version for libraries?
17492need_version=$need_version
17493
17494# Library versioning type.
17495version_type=$version_type
17496
17497# Shared library runtime path variable.
17498runpath_var=$runpath_var
17499
17500# Shared library path variable.
17501shlibpath_var=$shlibpath_var
17502
17503# Is shlibpath searched before the hard-coded library search path?
17504shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17505
17506# Format of library name prefix.
17507libname_spec=$lt_libname_spec
17508
17509# List of archive names. First name is the real one, the rest are links.
17510# The last name is the one that the linker finds with -lNAME
17511library_names_spec=$lt_library_names_spec
17512
17513# The coded name of the library, if different from the real name.
17514soname_spec=$lt_soname_spec
17515
17516# Permission mode override for installation of shared libraries.
17517install_override_mode=$lt_install_override_mode
17518
17519# Command to use after installation of a shared archive.
17520postinstall_cmds=$lt_postinstall_cmds
17521
17522# Command to use after uninstallation of a shared archive.
17523postuninstall_cmds=$lt_postuninstall_cmds
17524
17525# Commands used to finish a libtool library installation in a directory.
17526finish_cmds=$lt_finish_cmds
17527
17528# As "finish_cmds", except a single script fragment to be evaled but
17529# not shown.
17530finish_eval=$lt_finish_eval
17531
17532# Whether we should hardcode library paths into libraries.
17533hardcode_into_libs=$hardcode_into_libs
17534
17535# Compile-time system search path for libraries.
17536sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17537
17538# Run-time system search path for libraries.
17539sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17540
17541# Whether dlopen is supported.
17542dlopen_support=$enable_dlopen
17543
17544# Whether dlopen of programs is supported.
17545dlopen_self=$enable_dlopen_self
17546
17547# Whether dlopen of statically linked programs is supported.
17548dlopen_self_static=$enable_dlopen_self_static
17549
17550# Commands to strip libraries.
17551old_striplib=$lt_old_striplib
17552striplib=$lt_striplib
17553
17554
17555# The linker used to build libraries.
17556LD=$lt_LD
17557
17558# How to create reloadable object files.
17559reload_flag=$lt_reload_flag
17560reload_cmds=$lt_reload_cmds
17561
17562# Commands used to build an old-style archive.
17563old_archive_cmds=$lt_old_archive_cmds
17564
17565# A language specific compiler.
17566CC=$lt_compiler
17567
17568# Is the compiler the GNU compiler?
17569with_gcc=$GCC
17570
17571# Compiler flag to turn off builtin functions.
17572no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17573
17574# How to pass a linker flag through the compiler.
17575wl=$lt_lt_prog_compiler_wl
17576
17577# Additional compiler flags for building library objects.
17578pic_flag=$lt_lt_prog_compiler_pic
17579
17580# Compiler flag to prevent dynamic linking.
17581link_static_flag=$lt_lt_prog_compiler_static
17582
17583# Does compiler simultaneously support -c and -o options?
17584compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17585
17586# Whether or not to add -lc for building shared libraries.
17587build_libtool_need_lc=$archive_cmds_need_lc
17588
17589# Whether or not to disallow shared libs when runtime libs are static.
17590allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17591
17592# Compiler flag to allow reflexive dlopens.
17593export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17594
17595# Compiler flag to generate shared objects directly from archives.
17596whole_archive_flag_spec=$lt_whole_archive_flag_spec
17597
17598# Whether the compiler copes with passing no objects directly.
17599compiler_needs_object=$lt_compiler_needs_object
17600
17601# Create an old-style archive from a shared archive.
17602old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17603
17604# Create a temporary old-style archive to link instead of a shared archive.
17605old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17606
17607# Commands used to build a shared archive.
17608archive_cmds=$lt_archive_cmds
17609archive_expsym_cmds=$lt_archive_expsym_cmds
17610
17611# Commands used to build a loadable module if different from building
17612# a shared archive.
17613module_cmds=$lt_module_cmds
17614module_expsym_cmds=$lt_module_expsym_cmds
17615
17616# Whether we are building with GNU ld or not.
17617with_gnu_ld=$lt_with_gnu_ld
17618
17619# Flag that allows shared libraries with undefined symbols to be built.
17620allow_undefined_flag=$lt_allow_undefined_flag
17621
17622# Flag that enforces no undefined symbols.
17623no_undefined_flag=$lt_no_undefined_flag
17624
17625# Flag to hardcode \$libdir into a binary during linking.
17626# This must work even if \$libdir does not exist
17627hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17628
17629# If ld is used when linking, flag to hardcode \$libdir into a binary
17630# during linking. This must work even if \$libdir does not exist.
17631hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17632
17633# Whether we need a single "-rpath" flag with a separated argument.
17634hardcode_libdir_separator=$lt_hardcode_libdir_separator
17635
17636# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17637# DIR into the resulting binary.
17638hardcode_direct=$hardcode_direct
17639
17640# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17641# DIR into the resulting binary and the resulting library dependency is
17642# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17643# library is relocated.
17644hardcode_direct_absolute=$hardcode_direct_absolute
17645
17646# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17647# into the resulting binary.
17648hardcode_minus_L=$hardcode_minus_L
17649
17650# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17651# into the resulting binary.
17652hardcode_shlibpath_var=$hardcode_shlibpath_var
17653
17654# Set to "yes" if building a shared library automatically hardcodes DIR
17655# into the library and all subsequent libraries and executables linked
17656# against it.
17657hardcode_automatic=$hardcode_automatic
17658
17659# Set to yes if linker adds runtime paths of dependent libraries
17660# to runtime path list.
17661inherit_rpath=$inherit_rpath
17662
17663# Whether libtool must link a program against all its dependency libraries.
17664link_all_deplibs=$link_all_deplibs
17665
17666# Fix the shell variable \$srcfile for the compiler.
17667fix_srcfile_path=$lt_fix_srcfile_path
17668
17669# Set to "yes" if exported symbols are required.
17670always_export_symbols=$always_export_symbols
17671
17672# The commands to list exported symbols.
17673export_symbols_cmds=$lt_export_symbols_cmds
17674
17675# Symbols that should not be listed in the preloaded symbols.
17676exclude_expsyms=$lt_exclude_expsyms
17677
17678# Symbols that must always be exported.
17679include_expsyms=$lt_include_expsyms
17680
17681# Commands necessary for linking programs (against libraries) with templates.
17682prelink_cmds=$lt_prelink_cmds
17683
17684# Specify filename containing input files.
17685file_list_spec=$lt_file_list_spec
17686
17687# How to hardcode a shared library path into an executable.
17688hardcode_action=$hardcode_action
17689
17690# ### END LIBTOOL CONFIG
17691
17692_LT_EOF
17693
17694 case $host_os in
17695 aix3*)
17696 cat <<\_LT_EOF >> "$cfgfile"
17697# AIX sometimes has problems with the GCC collect2 program. For some
17698# reason, if we set the COLLECT_NAMES environment variable, the problems
17699# vanish in a puff of smoke.
17700if test "X${COLLECT_NAMES+set}" != Xset; then
17701 COLLECT_NAMES=
17702 export COLLECT_NAMES
17703fi
17704_LT_EOF
17705 ;;
17706 esac
17707
17708
17709ltmain="$ac_aux_dir/ltmain.sh"
17710
17711
17712 # We use sed instead of cat because bash on DJGPP gets confused if
17713 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17714 # text mode, it properly converts lines to CR/LF. This bash problem
17715 # is reportedly fixed, but why not run on old versions too?
17716 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17717 || (rm -f "$cfgfile"; exit 1)
17718
17719 case $xsi_shell in
17720 yes)
17721 cat << \_LT_EOF >> "$cfgfile"
17722
17723# func_dirname file append nondir_replacement
17724# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17725# otherwise set result to NONDIR_REPLACEMENT.
17726func_dirname ()
17727{
17728 case ${1} in
17729 */*) func_dirname_result="${1%/*}${2}" ;;
17730 * ) func_dirname_result="${3}" ;;
17731 esac
17732}
17733
17734# func_basename file
17735func_basename ()
17736{
17737 func_basename_result="${1##*/}"
17738}
17739
17740# func_dirname_and_basename file append nondir_replacement
17741# perform func_basename and func_dirname in a single function
17742# call:
17743# dirname: Compute the dirname of FILE. If nonempty,
17744# add APPEND to the result, otherwise set result
17745# to NONDIR_REPLACEMENT.
17746# value returned in "$func_dirname_result"
17747# basename: Compute filename of FILE.
17748# value retuned in "$func_basename_result"
17749# Implementation must be kept synchronized with func_dirname
17750# and func_basename. For efficiency, we do not delegate to
17751# those functions but instead duplicate the functionality here.
17752func_dirname_and_basename ()
17753{
17754 case ${1} in
17755 */*) func_dirname_result="${1%/*}${2}" ;;
17756 * ) func_dirname_result="${3}" ;;
17757 esac
17758 func_basename_result="${1##*/}"
17759}
17760
17761# func_stripname prefix suffix name
17762# strip PREFIX and SUFFIX off of NAME.
17763# PREFIX and SUFFIX must not contain globbing or regex special
17764# characters, hashes, percent signs, but SUFFIX may contain a leading
17765# dot (in which case that matches only a dot).
17766func_stripname ()
17767{
17768 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17769 # positional parameters, so assign one to ordinary parameter first.
17770 func_stripname_result=${3}
17771 func_stripname_result=${func_stripname_result#"${1}"}
17772 func_stripname_result=${func_stripname_result%"${2}"}
17773}
17774
17775# func_opt_split
17776func_opt_split ()
17777{
17778 func_opt_split_opt=${1%%=*}
17779 func_opt_split_arg=${1#*=}
17780}
17781
17782# func_lo2o object
17783func_lo2o ()
17784{
17785 case ${1} in
17786 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17787 *) func_lo2o_result=${1} ;;
17788 esac
17789}
17790
17791# func_xform libobj-or-source
17792func_xform ()
17793{
17794 func_xform_result=${1%.*}.lo
17795}
17796
17797# func_arith arithmetic-term...
17798func_arith ()
17799{
17800 func_arith_result=$(( $* ))
17801}
17802
17803# func_len string
17804# STRING may not start with a hyphen.
17805func_len ()
17806{
17807 func_len_result=${#1}
17808}
17809
17810_LT_EOF
17811 ;;
17812 *) # Bourne compatible functions.
17813 cat << \_LT_EOF >> "$cfgfile"
17814
17815# func_dirname file append nondir_replacement
17816# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17817# otherwise set result to NONDIR_REPLACEMENT.
17818func_dirname ()
17819{
17820 # Extract subdirectory from the argument.
17821 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17822 if test "X$func_dirname_result" = "X${1}"; then
17823 func_dirname_result="${3}"
17824 else
17825 func_dirname_result="$func_dirname_result${2}"
17826 fi
17827}
17828
17829# func_basename file
17830func_basename ()
17831{
17832 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17833}
17834
17835
17836# func_stripname prefix suffix name
17837# strip PREFIX and SUFFIX off of NAME.
17838# PREFIX and SUFFIX must not contain globbing or regex special
17839# characters, hashes, percent signs, but SUFFIX may contain a leading
17840# dot (in which case that matches only a dot).
17841# func_strip_suffix prefix name
17842func_stripname ()
17843{
17844 case ${2} in
17845 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17846 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17847 esac
17848}
17849
17850# sed scripts:
17851my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17852my_sed_long_arg='1s/^-[^=]*=//'
17853
17854# func_opt_split
17855func_opt_split ()
17856{
17857 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17858 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17859}
17860
17861# func_lo2o object
17862func_lo2o ()
17863{
17864 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17865}
17866
17867# func_xform libobj-or-source
17868func_xform ()
17869{
17870 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17871}
17872
17873# func_arith arithmetic-term...
17874func_arith ()
17875{
17876 func_arith_result=`expr "$@"`
17877}
17878
17879# func_len string
17880# STRING may not start with a hyphen.
17881func_len ()
17882{
17883 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17884}
17885
17886_LT_EOF
17887esac
17888
17889case $lt_shell_append in
17890 yes)
17891 cat << \_LT_EOF >> "$cfgfile"
17892
17893# func_append var value
17894# Append VALUE to the end of shell variable VAR.
17895func_append ()
17896{
17897 eval "$1+=\$2"
17898}
17899_LT_EOF
17900 ;;
17901 *)
17902 cat << \_LT_EOF >> "$cfgfile"
17903
17904# func_append var value
17905# Append VALUE to the end of shell variable VAR.
17906func_append ()
17907{
17908 eval "$1=\$$1\$2"
17909}
17910
17911_LT_EOF
17912 ;;
17913 esac
17914
17915
17916 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17917 || (rm -f "$cfgfile"; exit 1)
17918
17919 mv -f "$cfgfile" "$ofile" ||
17920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17921 chmod +x "$ofile"
17922
17923
17924 cat <<_LT_EOF >> "$ofile"
17925
17926# ### BEGIN LIBTOOL TAG CONFIG: D
17927
17928# The linker used to build libraries.
17929LD=$lt_LD_D
17930
17931# How to create reloadable object files.
17932reload_flag=$lt_reload_flag_D
17933reload_cmds=$lt_reload_cmds_D
17934
17935# Commands used to build an old-style archive.
17936old_archive_cmds=$lt_old_archive_cmds_D
17937
17938# A language specific compiler.
17939CC=$lt_compiler_D
17940
17941# Is the compiler the GNU compiler?
17942with_gcc=$GCC_D
17943
17944# Compiler flag to turn off builtin functions.
17945no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17946
17947# How to pass a linker flag through the compiler.
17948wl=$lt_lt_prog_compiler_wl_D
17949
17950# Additional compiler flags for building library objects.
17951pic_flag=$lt_lt_prog_compiler_pic_D
17952
17953# Compiler flag to prevent dynamic linking.
17954link_static_flag=$lt_lt_prog_compiler_static_D
17955
17956# Does compiler simultaneously support -c and -o options?
17957compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17958
17959# Whether or not to add -lc for building shared libraries.
17960build_libtool_need_lc=$archive_cmds_need_lc_D
17961
17962# Whether or not to disallow shared libs when runtime libs are static.
17963allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17964
17965# Compiler flag to allow reflexive dlopens.
17966export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17967
17968# Compiler flag to generate shared objects directly from archives.
17969whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17970
17971# Whether the compiler copes with passing no objects directly.
17972compiler_needs_object=$lt_compiler_needs_object_D
17973
17974# Create an old-style archive from a shared archive.
17975old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17976
17977# Create a temporary old-style archive to link instead of a shared archive.
17978old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17979
17980# Commands used to build a shared archive.
17981archive_cmds=$lt_archive_cmds_D
17982archive_expsym_cmds=$lt_archive_expsym_cmds_D
17983
17984# Commands used to build a loadable module if different from building
17985# a shared archive.
17986module_cmds=$lt_module_cmds_D
17987module_expsym_cmds=$lt_module_expsym_cmds_D
17988
17989# Whether we are building with GNU ld or not.
17990with_gnu_ld=$lt_with_gnu_ld_D
17991
17992# Flag that allows shared libraries with undefined symbols to be built.
17993allow_undefined_flag=$lt_allow_undefined_flag_D
17994
17995# Flag that enforces no undefined symbols.
17996no_undefined_flag=$lt_no_undefined_flag_D
17997
17998# Flag to hardcode \$libdir into a binary during linking.
17999# This must work even if \$libdir does not exist
18000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18001
18002# If ld is used when linking, flag to hardcode \$libdir into a binary
18003# during linking. This must work even if \$libdir does not exist.
18004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18005
18006# Whether we need a single "-rpath" flag with a separated argument.
18007hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18008
18009# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18010# DIR into the resulting binary.
18011hardcode_direct=$hardcode_direct_D
18012
18013# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18014# DIR into the resulting binary and the resulting library dependency is
18015# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18016# library is relocated.
18017hardcode_direct_absolute=$hardcode_direct_absolute_D
18018
18019# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18020# into the resulting binary.
18021hardcode_minus_L=$hardcode_minus_L_D
18022
18023# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18024# into the resulting binary.
18025hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18026
18027# Set to "yes" if building a shared library automatically hardcodes DIR
18028# into the library and all subsequent libraries and executables linked
18029# against it.
18030hardcode_automatic=$hardcode_automatic_D
18031
18032# Set to yes if linker adds runtime paths of dependent libraries
18033# to runtime path list.
18034inherit_rpath=$inherit_rpath_D
18035
18036# Whether libtool must link a program against all its dependency libraries.
18037link_all_deplibs=$link_all_deplibs_D
18038
18039# Fix the shell variable \$srcfile for the compiler.
18040fix_srcfile_path=$lt_fix_srcfile_path_D
18041
18042# Set to "yes" if exported symbols are required.
18043always_export_symbols=$always_export_symbols_D
18044
18045# The commands to list exported symbols.
18046export_symbols_cmds=$lt_export_symbols_cmds_D
18047
18048# Symbols that should not be listed in the preloaded symbols.
18049exclude_expsyms=$lt_exclude_expsyms_D
18050
18051# Symbols that must always be exported.
18052include_expsyms=$lt_include_expsyms_D
18053
18054# Commands necessary for linking programs (against libraries) with templates.
18055prelink_cmds=$lt_prelink_cmds_D
18056
18057# Specify filename containing input files.
18058file_list_spec=$lt_file_list_spec_D
18059
18060# How to hardcode a shared library path into an executable.
18061hardcode_action=$hardcode_action_D
18062
18063# ### END LIBTOOL TAG CONFIG: D
18064_LT_EOF
18065
18066 ;;
18067 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000018068 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18069s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000018070_EOF
Iain Buclawac677522018-11-02 08:29:50 +000018071 sed -f vpsed$$ $ac_file > tmp$$
18072 mv tmp$$ $ac_file
18073 rm vpsed$$
18074 echo 'MULTISUBDIR =' >> $ac_file
18075 ml_norecursion=yes
18076 . ${multi_basedir}/config-ml.in
18077 { ml_norecursion=; unset ml_norecursion;}
18078 ;;
18079 "src/Makefile":F) cat > vpsed$$ << \_EOF
18080s!`test -f '$<' || echo '$(srcdir)/'`!!
18081_EOF
18082 sed -f vpsed$$ $ac_file > tmp$$
18083 mv tmp$$ $ac_file
18084 rm vpsed$$
18085 echo 'MULTISUBDIR =' >> $ac_file
18086 ml_norecursion=yes
18087 . ${multi_basedir}/config-ml.in
18088 { ml_norecursion=; unset ml_norecursion;}
18089 ;;
18090 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18091s!`test -f '$<' || echo '$(srcdir)/'`!!
18092_EOF
18093 sed -f vpsed$$ $ac_file > tmp$$
18094 mv tmp$$ $ac_file
18095 rm vpsed$$
18096 echo 'MULTISUBDIR =' >> $ac_file
18097 ml_norecursion=yes
18098 . ${multi_basedir}/config-ml.in
18099 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000018100 ;;
18101
18102 esac
18103done # for ac_tag
18104
18105
18106as_fn_exit 0
18107_ACEOF
18108ac_clean_files=$ac_clean_files_save
18109
18110test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000018111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000018112
18113
18114# configure is writing to config.log, and then calls config.status.
18115# config.status does its own redirection, appending to config.log.
18116# Unfortunately, on DOS this fails, as config.log is still kept open
18117# by configure, so config.status won't be able to write to it; its
18118# output is simply discarded. So we exec the FD to /dev/null,
18119# effectively closing config.log, so it can be properly (re)opened and
18120# appended to by config.status. When coming back to configure, we
18121# need to make the FD available again.
18122if test "$no_create" != yes; then
18123 ac_cs_success=:
18124 ac_config_status_args=
18125 test "$silent" = yes &&
18126 ac_config_status_args="$ac_config_status_args --quiet"
18127 exec 5>/dev/null
18128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18129 exec 5>>config.log
18130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18131 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000018132 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000018133fi
18134if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18136$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18137fi
18138