blob: f458ad3b086104aa011d8e3abb8197e1ee4c8472 [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 Buclawb4c522f2018-10-28 19:51:47 +0000637GDCFLAGSX
Iain Buclaw85041a52018-11-28 17:54:07 +0000638libtool_VERSION
Iain Buclawb4c522f2018-10-28 19:51:47 +0000639SPEC_PHOBOS_DEPS
Rainer Orthbca0a322019-05-07 10:38:45 +0000640ENABLE_LIBPHOBOS_FALSE
641ENABLE_LIBPHOBOS_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000642gdc_include_dir
Iain Buclawac677522018-11-02 08:29:50 +0000643libphobos_toolexeclibdir
644libphobos_toolexecdir
Iain Buclawb4c522f2018-10-28 19:51:47 +0000645gcc_version
Iain Buclawbb503122019-04-12 20:13:34 +0000646LIBZ
Iain Buclawb4c522f2018-10-28 19:51:47 +0000647BACKTRACE_SUPPORTS_THREADS
648BACKTRACE_USES_MALLOC
649BACKTRACE_SUPPORTED
650LIBBACKTRACE
651LIBATOMIC
652DCFG_HAVE_LIBATOMIC
653DCFG_HAVE_64BIT_ATOMICS
654DCFG_HAVE_ATOMIC_BUILTINS
Johannes Pfau36d7f152019-02-18 23:29:39 +0000655DCFG_HAVE_QSORT_R
Rainer Orthba838aa2019-04-14 09:24:26 +0000656OS_LINK_SPEC
Rainer Orth235d1c42019-04-14 09:30:42 +0000657DCFG_DLPI_TLS_MODID
Rainer Orth0b6e3122019-02-14 17:47:49 +0000658DRUNTIME_OS_MINFO_BRACKETING_FALSE
659DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000660DCFG_MINFO_BRACKETING
661DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
662DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
663DCFG_ARM_EABI_UNWINDER
664DCFG_THREAD_MODEL
Iain Buclaw72c136c2020-04-08 22:52:05 +0200665DRUNTIME_OS_POSIX_FALSE
666DRUNTIME_OS_POSIX_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000667DRUNTIME_OS_SOLARIS_FALSE
668DRUNTIME_OS_SOLARIS_TRUE
669DRUNTIME_OS_MINGW_FALSE
670DRUNTIME_OS_MINGW_TRUE
671DRUNTIME_OS_LINUX_FALSE
672DRUNTIME_OS_LINUX_TRUE
673DRUNTIME_OS_OPENBSD_FALSE
674DRUNTIME_OS_OPENBSD_TRUE
675DRUNTIME_OS_NETBSD_FALSE
676DRUNTIME_OS_NETBSD_TRUE
677DRUNTIME_OS_FREEBSD_FALSE
678DRUNTIME_OS_FREEBSD_TRUE
679DRUNTIME_OS_DRAGONFLYBSD_FALSE
680DRUNTIME_OS_DRAGONFLYBSD_TRUE
681DRUNTIME_OS_DARWIN_FALSE
682DRUNTIME_OS_DARWIN_TRUE
683DRUNTIME_OS_ANDROID_FALSE
684DRUNTIME_OS_ANDROID_TRUE
685DRUNTIME_OS_AIX_FALSE
686DRUNTIME_OS_AIX_TRUE
Robin Dapp88e508f2020-04-07 21:05:38 +0200687DRUNTIME_CPU_S390_FALSE
688DRUNTIME_CPU_S390_TRUE
689DRUNTIME_CPU_SYSTEMZ_FALSE
690DRUNTIME_CPU_SYSTEMZ_TRUE
Iain Buclaw2493e712019-04-24 22:46:59 +0000691DRUNTIME_CPU_X86_FALSE
692DRUNTIME_CPU_X86_TRUE
693DRUNTIME_CPU_POWERPC64_FALSE
694DRUNTIME_CPU_POWERPC64_TRUE
695DRUNTIME_CPU_POWERPC_FALSE
696DRUNTIME_CPU_POWERPC_TRUE
697DRUNTIME_CPU_MIPS_FALSE
698DRUNTIME_CPU_MIPS_TRUE
699DRUNTIME_CPU_ARM_FALSE
700DRUNTIME_CPU_ARM_TRUE
701DRUNTIME_CPU_AARCH64_FALSE
702DRUNTIME_CPU_AARCH64_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000703DRUNTIME_GC_ENABLE_FALSE
704DRUNTIME_GC_ENABLE_TRUE
705libphobos_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
837enable_druntime_gc
Iain Buclawb4c522f2018-10-28 19:51:47 +0000838with_libatomic
839with_libbacktrace
840with_target_system_zlib
841with_cross_host
Iain Buclawac677522018-11-02 08:29:50 +0000842enable_version_specific_runtime_libs
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +0000843with_toolexeclibdir
Rainer Orthbca0a322019-05-07 10:38:45 +0000844enable_libphobos
Iain Buclawb4c522f2018-10-28 19:51:47 +0000845'
846 ac_precious_vars='build_alias
847host_alias
848target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000855
856
857# Initialize some variables set by options.
858ac_init_help=
859ac_init_version=false
860ac_unrecognized_opts=
861ac_unrecognized_sep=
862# The variables have the same names as the options, with
863# dashes changed to underlines.
864cache_file=/dev/null
865exec_prefix=NONE
866no_create=
867no_recursion=
868prefix=NONE
869program_prefix=NONE
870program_suffix=NONE
871program_transform_name=s,x,x,
872silent=
873site=
874srcdir=
875verbose=
876x_includes=NONE
877x_libraries=NONE
878
879# Installation directory options.
880# These are left unexpanded so users can "make install exec_prefix=/foo"
881# and all the variables that are supposed to be based on exec_prefix
882# by default will actually change.
883# Use braces instead of parens because sh, perl, etc. also accept them.
884# (The list follows the same order as the GNU Coding Standards.)
885bindir='${exec_prefix}/bin'
886sbindir='${exec_prefix}/sbin'
887libexecdir='${exec_prefix}/libexec'
888datarootdir='${prefix}/share'
889datadir='${datarootdir}'
890sysconfdir='${prefix}/etc'
891sharedstatedir='${prefix}/com'
892localstatedir='${prefix}/var'
893includedir='${prefix}/include'
894oldincludedir='/usr/include'
895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896infodir='${datarootdir}/info'
897htmldir='${docdir}'
898dvidir='${docdir}'
899pdfdir='${docdir}'
900psdir='${docdir}'
901libdir='${exec_prefix}/lib'
902localedir='${datarootdir}/locale'
903mandir='${datarootdir}/man'
904
905ac_prev=
906ac_dashdash=
907for ac_option
908do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000920 esac
921
922 # Accept the important Cygnus configure options, so we can diagnose typos.
923
924 case $ac_dashdash$ac_option in
925 --)
926 ac_dashdash=yes ;;
927
928 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 ac_prev=bindir ;;
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 bindir=$ac_optarg ;;
932
933 -build | --build | --buil | --bui | --bu)
934 ac_prev=build_alias ;;
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936 build_alias=$ac_optarg ;;
937
938 -cache-file | --cache-file | --cache-fil | --cache-fi \
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940 ac_prev=cache_file ;;
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943 cache_file=$ac_optarg ;;
944
945 --config-cache | -C)
946 cache_file=config.cache ;;
947
948 -datadir | --datadir | --datadi | --datad)
949 ac_prev=datadir ;;
950 -datadir=* | --datadir=* | --datadi=* | --datad=*)
951 datadir=$ac_optarg ;;
952
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954 | --dataroo | --dataro | --datar)
955 ac_prev=datarootdir ;;
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958 datarootdir=$ac_optarg ;;
959
960 -disable-* | --disable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000964 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=no ;;
975
976 -docdir | --docdir | --docdi | --doc | --do)
977 ac_prev=docdir ;;
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 docdir=$ac_optarg ;;
980
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 ac_prev=dvidir ;;
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 dvidir=$ac_optarg ;;
985
986 -enable-* | --enable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000990 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995"enable_$ac_useropt"
996"*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1010
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1014
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1021
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1026
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1032
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1039
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1044
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1049
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1056
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1061
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1068
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1073
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1077
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1081
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1085
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1094
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1099
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1106
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1113
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1130
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1135
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1140
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1144
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1150
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1161
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1166
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1171
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1178
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1183
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1186
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1189
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001194 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199"with_$ac_useropt"
1200"*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001210 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1214 *"
1215"with_$ac_useropt"
1216"*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=no ;;
1221
1222 --x)
1223 # Obsolete; use --with-x.
1224 with_x=yes ;;
1225
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227 | --x-incl | --x-inc | --x-in | --x-i)
1228 ac_prev=x_includes ;;
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231 x_includes=$ac_optarg ;;
1232
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;;
1239
Joseph Myers22e05272018-10-31 17:03:16 +00001240 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1241Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001242 ;;
1243
1244 *=*)
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246 # Reject names that are not valid shell variable names.
1247 case $ac_envvar in #(
1248 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001250 esac
1251 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;;
1253
1254 *)
1255 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001260 ;;
1261
1262 esac
1263done
1264
1265if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001267 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001268fi
1269
1270if test -n "$ac_unrecognized_opts"; then
1271 case $enable_option_checking in
1272 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 esac
1276fi
1277
1278# Check all directory arguments for consistency.
1279for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001282 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001283do
1284 eval ac_val=\$$ac_var
1285 # Remove trailing slashes.
1286 case $ac_val in
1287 */ )
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289 eval $ac_var=\$ac_val;;
1290 esac
1291 # Be sure to have absolute directory names.
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001297done
1298
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1312 fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001324 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001325test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001326 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338$as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001366fi
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001370 pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001409 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of package-unused version-unused:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --enable-werror turns on -Werror [default=no]
1486 --enable-druntime-gc enable D runtime garbage collector (default: yes)
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 Buclawb4c522f2018-10-28 19:51:47 +00001491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-gcc-major-version-only
1499 use only GCC major number in filesystem paths
1500 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1501 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1502 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001503 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001504 use installed libz (default: no)
1505 --with-cross-host=HOST configuring with a cross compiler
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +00001506 --with-toolexeclibdir=DIR
1507 install libraries built with a cross compiler within
1508 DIR
Iain Buclawb4c522f2018-10-28 19:51:47 +00001509
1510Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001517 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001518 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001519 CCAS assembler compiler command (defaults to CC)
1520 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1521 GDC D compiler command
1522 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
1527Report bugs to the package provider.
1528_ACEOF
1529ac_status=$?
1530fi
1531
1532if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1539
1540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
1555
1556case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569esac
1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585fi
1586
1587test -n "$ac_init_help" && exit $ac_status
1588if $ac_init_version; then
1589 cat <<\_ACEOF
1590package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001591generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001592
Rainer Orth0b6e3122019-02-14 17:47:49 +00001593Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
1596_ACEOF
1597 exit
1598fi
1599
1600## ------------------------ ##
1601## Autoconf initialization. ##
1602## ------------------------ ##
1603
1604# ac_fn_c_try_compile LINENO
1605# --------------------------
1606# Try to compile conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_compile ()
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631else
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636fi
Joseph Myers22e05272018-10-31 17:03:16 +00001637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001639
1640} # ac_fn_c_try_compile
1641
Iain Buclawb4c522f2018-10-28 19:51:47 +00001642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001663 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668else
1669 $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673fi
Joseph Myers22e05272018-10-31 17:03:16 +00001674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001676
1677} # ac_fn_c_try_cpp
1678
Iain Buclawb4c522f2018-10-28 19:51:47 +00001679# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1680# -------------------------------------------------------
1681# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1682# the include files in INCLUDES and setting the cache variable VAR
1683# accordingly.
1684ac_fn_c_check_header_mongrel ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001687 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001690if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001691 $as_echo_n "(cached) " >&6
1692fi
1693eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695$as_echo "$ac_res" >&6; }
1696else
1697 # Is the header compilable?
1698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1699$as_echo_n "checking $2 usability... " >&6; }
1700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701/* end confdefs.h. */
1702$4
1703#include <$2>
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706 ac_header_compiler=yes
1707else
1708 ac_header_compiler=no
1709fi
1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1712$as_echo "$ac_header_compiler" >&6; }
1713
1714# Is the header present?
1715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1716$as_echo_n "checking $2 presence... " >&6; }
1717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h. */
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_cpp "$LINENO"; then :
1722 ac_header_preproc=yes
1723else
1724 ac_header_preproc=no
1725fi
Joseph Myers22e05272018-10-31 17:03:16 +00001726rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1728$as_echo "$ac_header_preproc" >&6; }
1729
1730# So? What about this header?
1731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1732 yes:no: )
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1734$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ;;
1738 no:yes:* )
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1740$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1742$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1744$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1746$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 ;;
1750esac
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001753if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001754 $as_echo_n "(cached) " >&6
1755else
1756 eval "$3=\$ac_header_compiler"
1757fi
1758eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760$as_echo "$ac_res" >&6; }
1761fi
Joseph Myers22e05272018-10-31 17:03:16 +00001762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001763
1764} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001765
1766# ac_fn_c_try_run LINENO
1767# ----------------------
1768# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769# that executables *can* be run.
1770ac_fn_c_try_run ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_link"
1774case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784 { { case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787esac
1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789$as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_try") 2>&5
1791 ac_status=$?
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; }; }; then :
1794 ac_retval=0
1795else
1796 $as_echo "$as_me: program exited with status $ac_status" >&5
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=$ac_status
1801fi
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_run
1807
1808# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809# -------------------------------------------------------
1810# Tests whether HEADER exists and can be compiled using the include files in
1811# INCLUDES, setting the cache variable VAR accordingly.
1812ac_fn_c_check_header_compile ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h. */
1822$4
1823#include <$2>
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"; then :
1826 eval "$3=yes"
1827else
1828 eval "$3=no"
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831fi
1832eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837} # ac_fn_c_check_header_compile
1838
1839# ac_fn_d_try_compile LINENO
1840# --------------------------
1841# Try to compile conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_d_try_compile ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_d_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866else
1867 $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875} # ac_fn_d_try_compile
1876
1877# ac_fn_c_try_link LINENO
1878# -----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded.
1880ac_fn_c_try_link ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 test -x conftest$ac_exeext
1905 }; then :
1906 ac_retval=0
1907else
1908 $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912fi
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921} # ac_fn_c_try_link
1922
1923# ac_fn_c_check_func LINENO FUNC VAR
1924# ----------------------------------
1925# Tests whether FUNC exists, setting the cache variable VAR accordingly
1926ac_fn_c_check_func ()
1927{
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1938#define $2 innocuous_$2
1939
1940/* System header to define __stub macros and hopefully few prototypes,
1941 which can conflict with char $2 (); below.
1942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1943 <limits.h> exists even on freestanding compilers. */
1944
1945#ifdef __STDC__
1946# include <limits.h>
1947#else
1948# include <assert.h>
1949#endif
1950
1951#undef $2
1952
1953/* Override any GCC internal prototype to avoid an error.
1954 Use char because int might match the return type of a GCC
1955 builtin and then its argument prototype would still apply. */
1956#ifdef __cplusplus
1957extern "C"
1958#endif
1959char $2 ();
1960/* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963#if defined __stub_$2 || defined __stub___$2
1964choke me
1965#endif
1966
1967int
1968main ()
1969{
1970return $2 ();
1971 ;
1972 return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_link "$LINENO"; then :
1976 eval "$3=yes"
1977else
1978 eval "$3=no"
1979fi
1980rm -f core conftest.err conftest.$ac_objext \
1981 conftest$ac_exeext conftest.$ac_ext
1982fi
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_func
1989
1990# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991# ----------------------------------------------------
1992# Tries to find if the field MEMBER exists in type AGGR, after including
1993# INCLUDES, setting cache variable VAR accordingly.
1994ac_fn_c_check_member ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998$as_echo_n "checking for $2.$3... " >&6; }
1999if eval \${$4+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$5
2005int
2006main ()
2007{
2008static $2 ac_aggr;
2009if (ac_aggr.$3)
2010return 0;
2011 ;
2012 return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$5
2021int
2022main ()
2023{
2024static $2 ac_aggr;
2025if (sizeof ac_aggr.$3)
2026return 0;
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033else
2034 eval "$4=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040eval ac_res=\$$4
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045} # ac_fn_c_check_member
2046
2047# ac_fn_d_try_link LINENO
2048# -----------------------
2049# Try to link conftest.$ac_ext, and return whether this succeeded.
2050ac_fn_d_try_link ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 rm -f conftest.$ac_objext conftest$ac_exeext
2054 if { { ac_try="$ac_link"
2055case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058esac
2059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060$as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_link") 2>conftest.err
2062 ac_status=$?
2063 if test -s conftest.err; then
2064 grep -v '^ *+' conftest.err >conftest.er1
2065 cat conftest.er1 >&5
2066 mv -f conftest.er1 conftest.err
2067 fi
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && {
2070 test -z "$ac_d_werror_flag" ||
2071 test ! -s conftest.err
2072 } && test -s conftest$ac_exeext && {
2073 test "$cross_compiling" = yes ||
2074 test -x conftest$ac_exeext
2075 }; then :
2076 ac_retval=0
2077else
2078 $as_echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 ac_retval=1
2082fi
2083 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2084 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2085 # interfere with the next link command; also delete a directory that is
2086 # left behind by Apple's compiler. We do this before executing the actions.
2087 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status $ac_retval
2090
2091} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002092cat >config.log <<_ACEOF
2093This file contains any messages produced by compilers while
2094running configure, to aid debugging if configure makes a mistake.
2095
2096It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002097generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002098
2099 $ $0 $@
2100
2101_ACEOF
2102exec 5>>config.log
2103{
2104cat <<_ASUNAME
2105## --------- ##
2106## Platform. ##
2107## --------- ##
2108
2109hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114
2115/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117
2118/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125
2126_ASUNAME
2127
2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135IFS=$as_save_IFS
2136
2137} >&5
2138
2139cat >&5 <<_ACEOF
2140
2141
2142## ----------- ##
2143## Core tests. ##
2144## ----------- ##
2145
2146_ACEOF
2147
2148
2149# Keep a trace of the command line.
2150# Strip out --no-create and --no-recursion so they do not pile up.
2151# Strip out --silent because we don't want to record it for future runs.
2152# Also quote any args containing shell meta-characters.
2153# Make two passes to allow for proper duplicate-argument suppression.
2154ac_configure_args=
2155ac_configure_args0=
2156ac_configure_args1=
2157ac_must_keep_next=false
2158for ac_pass in 1 2
2159do
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 2)
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2185 ;;
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2188 fi
2189 as_fn_append ac_configure_args " '$ac_arg'"
2190 ;;
2191 esac
2192 done
2193done
2194{ ac_configure_args0=; unset ac_configure_args0;}
2195{ ac_configure_args1=; unset ac_configure_args1;}
2196
2197# When interrupted or exit'd, cleanup temporary files, and complete
2198# config.log. We remove comments because anyway the quotes in there
2199# would cause problems or look ugly.
2200# WARNING: Use '\'' to represent an apostrophe within the trap.
2201# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2204 {
2205 echo
2206
Joseph Myers22e05272018-10-31 17:03:16 +00002207 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002208## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002209## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002210 echo
2211 # The following way of writing the cache mishandles newlines in values,
2212(
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in #(
2216 *${as_nl}*)
2217 case $ac_var in #(
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 esac
2221 case $ac_var in #(
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2225 esac ;;
2226 esac
2227 done
2228 (set) 2>&1 |
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2231 sed -n \
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 ;; #(
2235 *)
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 ;;
2238 esac |
2239 sort
2240)
2241 echo
2242
Joseph Myers22e05272018-10-31 17:03:16 +00002243 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002244## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002245## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002246 echo
2247 for ac_var in $ac_subst_vars
2248 do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2256
2257 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002258 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002259## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002260## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002261 echo
2262 for ac_var in $ac_subst_files
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271 fi
2272
2273 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002274 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002275## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002276## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002277 echo
2278 cat confdefs.h
2279 echo
2280 fi
2281 test "$ac_signal" != 0 &&
2282 $as_echo "$as_me: caught signal $ac_signal"
2283 $as_echo "$as_me: exit $exit_status"
2284 } >&5
2285 rm -f core *.core core.conftest.* &&
2286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 exit $exit_status
2288' 0
2289for ac_signal in 1 2 13 15; do
2290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291done
2292ac_signal=0
2293
2294# confdefs.h avoids OS command line length limits that DEFS can exceed.
2295rm -f -r conftest* confdefs.h
2296
2297$as_echo "/* confdefs.h */" > confdefs.h
2298
2299# Predefined preprocessor variables.
2300
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_NAME "$PACKAGE_NAME"
2303_ACEOF
2304
2305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307_ACEOF
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_VERSION "$PACKAGE_VERSION"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_STRING "$PACKAGE_STRING"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_URL "$PACKAGE_URL"
2323_ACEOF
2324
2325
2326# Let the site file select an alternate cache file if it wants to.
2327# Prefer an explicitly selected file to automatically selected ones.
2328ac_site_file1=NONE
2329ac_site_file2=NONE
2330if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002331 # We do not want a PATH search for config.site.
2332 case $CONFIG_SITE in #((
2333 -*) ac_site_file1=./$CONFIG_SITE;;
2334 */*) ac_site_file1=$CONFIG_SITE;;
2335 *) ac_site_file1=./$CONFIG_SITE;;
2336 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002337elif test "x$prefix" != xNONE; then
2338 ac_site_file1=$prefix/share/config.site
2339 ac_site_file2=$prefix/etc/config.site
2340else
2341 ac_site_file1=$ac_default_prefix/share/config.site
2342 ac_site_file2=$ac_default_prefix/etc/config.site
2343fi
2344for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345do
2346 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002347 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002351 . "$ac_site_file" \
2352 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354as_fn_error $? "failed to load site script $ac_site_file
2355See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002356 fi
2357done
2358
2359if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364$as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372$as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374fi
2375
2376# Check that the precious variables saved in the cache have kept the same
2377# value.
2378ac_cache_corrupted=false
2379for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2385 set,)
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,set)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,);;
2394 *)
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 esac
2424 fi
2425done
2426if $ac_cache_corrupted; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002431 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002432fi
2433## -------------------- ##
2434## Main body of script. ##
2435## -------------------- ##
2436
2437ac_ext=c
2438ac_cpp='$CPP $CPPFLAGS'
2439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442
2443
2444
2445
2446
2447
2448ac_config_headers="$ac_config_headers config.h"
2449
2450
2451# Default to --enable-multilib
2452# Check whether --enable-multilib was given.
2453if test "${enable_multilib+set}" = set; then :
2454 enableval=$enable_multilib; case "$enableval" in
2455 yes) multilib=yes ;;
2456 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002457 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002458 esac
2459else
2460 multilib=yes
2461fi
2462
2463
2464# We may get other options which we leave undocumented:
2465# --with-target-subdir, --with-multisrctop, --with-multisubdir
2466# See config-ml.in if you want the gory details.
2467
2468if test "$srcdir" = "."; then
2469 if test "$with_target_subdir" != "."; then
2470 multi_basedir="$srcdir/$with_multisrctop../.."
2471 else
2472 multi_basedir="$srcdir/$with_multisrctop.."
2473 fi
2474else
2475 multi_basedir="$srcdir/.."
2476fi
2477
2478
2479# Even if the default multilib is not a cross compilation,
2480# it may be that some of the other multilibs are.
2481if test $cross_compiling = no && test $multilib = yes \
2482 && test "x${with_multisubdir}" != x ; then
2483 cross_compiling=maybe
2484fi
2485
2486ac_config_commands="$ac_config_commands default-1"
2487
2488ac_aux_dir=
2489for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002490 if test -f "$ac_dir/install-sh"; then
2491 ac_aux_dir=$ac_dir
2492 ac_install_sh="$ac_aux_dir/install-sh -c"
2493 break
2494 elif test -f "$ac_dir/install.sh"; then
2495 ac_aux_dir=$ac_dir
2496 ac_install_sh="$ac_aux_dir/install.sh -c"
2497 break
2498 elif test -f "$ac_dir/shtool"; then
2499 ac_aux_dir=$ac_dir
2500 ac_install_sh="$ac_aux_dir/shtool install -c"
2501 break
2502 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002503done
2504if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002505 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002506fi
2507
2508# These three variables are undocumented and unsupported,
2509# and are intended to be withdrawn in a future Autoconf release.
2510# They can cause serious problems if a builder's source tree is in a directory
2511# whose full name contains unusual characters.
2512ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2513ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2514ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515
2516
2517# Make sure we can run config.sub.
2518$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002519 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2522$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002523if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002524 $as_echo_n "(cached) " >&6
2525else
2526 ac_build_alias=$build_alias
2527test "x$ac_build_alias" = x &&
2528 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2529test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002530 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002531ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002533
2534fi
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2536$as_echo "$ac_cv_build" >&6; }
2537case $ac_cv_build in
2538*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002539*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002540esac
2541build=$ac_cv_build
2542ac_save_IFS=$IFS; IFS='-'
2543set x $ac_cv_build
2544shift
2545build_cpu=$1
2546build_vendor=$2
2547shift; shift
2548# Remember, the first character of IFS is used to create $*,
2549# except with old shells:
2550build_os=$*
2551IFS=$ac_save_IFS
2552case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553
2554
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2556$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002557if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002558 $as_echo_n "(cached) " >&6
2559else
2560 if test "x$host_alias" = x; then
2561 ac_cv_host=$ac_cv_build
2562else
2563 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002565fi
2566
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2569$as_echo "$ac_cv_host" >&6; }
2570case $ac_cv_host in
2571*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002572*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002573esac
2574host=$ac_cv_host
2575ac_save_IFS=$IFS; IFS='-'
2576set x $ac_cv_host
2577shift
2578host_cpu=$1
2579host_vendor=$2
2580shift; shift
2581# Remember, the first character of IFS is used to create $*,
2582# except with old shells:
2583host_os=$*
2584IFS=$ac_save_IFS
2585case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586
2587
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2589$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002590if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002591 $as_echo_n "(cached) " >&6
2592else
2593 if test "x$target_alias" = x; then
2594 ac_cv_target=$ac_cv_host
2595else
2596 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002598fi
2599
2600fi
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2602$as_echo "$ac_cv_target" >&6; }
2603case $ac_cv_target in
2604*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002605*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002606esac
2607target=$ac_cv_target
2608ac_save_IFS=$IFS; IFS='-'
2609set x $ac_cv_target
2610shift
2611target_cpu=$1
2612target_vendor=$2
2613shift; shift
2614# Remember, the first character of IFS is used to create $*,
2615# except with old shells:
2616target_os=$*
2617IFS=$ac_save_IFS
2618case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2619
2620
2621# The aliases save the names the user supplied, while $host etc.
2622# will get canonicalized.
2623test -n "$target_alias" &&
2624 test "$program_prefix$program_suffix$program_transform_name" = \
2625 NONENONEs,x,x, &&
2626 program_prefix=${target_alias}-
2627
Joseph Myers22e05272018-10-31 17:03:16 +00002628# Expand $ac_aux_dir to an absolute path.
2629am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002630
Iain Buclawb4c522f2018-10-28 19:51:47 +00002631ac_ext=c
2632ac_cpp='$CPP $CPPFLAGS'
2633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638set dummy ${ac_tool_prefix}gcc; ac_word=$2
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002641if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002642 $as_echo_n "(cached) " >&6
2643else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659 done
2660IFS=$as_save_IFS
2661
2662fi
2663fi
2664CC=$ac_cv_prog_CC
2665if test -n "$CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667$as_echo "$CC" >&6; }
2668else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670$as_echo "no" >&6; }
2671fi
2672
2673
2674fi
2675if test -z "$ac_cv_prog_CC"; then
2676 ac_ct_CC=$CC
2677 # Extract the first word of "gcc", so it can be a program name with args.
2678set dummy gcc; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002681if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002682 $as_echo_n "(cached) " >&6
2683else
2684 if test -n "$ac_ct_CC"; then
2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002694 ac_cv_prog_ac_ct_CC="gcc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699 done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705if test -n "$ac_ct_CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2707$as_echo "$ac_ct_CC" >&6; }
2708else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713 if test "x$ac_ct_CC" = x; then
2714 CC=""
2715 else
2716 case $cross_compiling:$ac_tool_warned in
2717yes:)
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2720ac_tool_warned=yes ;;
2721esac
2722 CC=$ac_ct_CC
2723 fi
2724else
2725 CC="$ac_cv_prog_CC"
2726fi
2727
2728if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
2730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2731set dummy ${ac_tool_prefix}cc; ac_word=$2
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002734if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002735 $as_echo_n "(cached) " >&6
2736else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002747 ac_cv_prog_CC="${ac_tool_prefix}cc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752 done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757CC=$ac_cv_prog_CC
2758if test -n "$CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2760$as_echo "$CC" >&6; }
2761else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764fi
2765
2766
2767 fi
2768fi
2769if test -z "$CC"; then
2770 # Extract the first word of "cc", so it can be a program name with args.
2771set dummy cc; ac_word=$2
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002774if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002775 $as_echo_n "(cached) " >&6
2776else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779else
2780 ac_prog_rejected=no
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2789 ac_prog_rejected=yes
2790 continue
2791 fi
2792 ac_cv_prog_CC="cc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796done
2797 done
2798IFS=$as_save_IFS
2799
2800if test $ac_prog_rejected = yes; then
2801 # We found a bogon in the path, so make sure we never use it.
2802 set dummy $ac_cv_prog_CC
2803 shift
2804 if test $# != 0; then
2805 # We chose a different compiler from the bogus one.
2806 # However, it has the same basename, so the bogon will be chosen
2807 # first if we set CC to just the basename; use the full file name.
2808 shift
2809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2810 fi
2811fi
2812fi
2813fi
2814CC=$ac_cv_prog_CC
2815if test -n "$CC"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817$as_echo "$CC" >&6; }
2818else
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820$as_echo "no" >&6; }
2821fi
2822
2823
2824fi
2825if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 for ac_prog in cl.exe
2828 do
2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002833if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002834 $as_echo_n "(cached) " >&6
2835else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850done
2851 done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2859$as_echo "$CC" >&6; }
2860else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866 test -n "$CC" && break
2867 done
2868fi
2869if test -z "$CC"; then
2870 ac_ct_CC=$CC
2871 for ac_prog in cl.exe
2872do
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874set dummy $ac_prog; ac_word=$2
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002877if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002878 $as_echo_n "(cached) " >&6
2879else
2880 if test -n "$ac_ct_CC"; then
2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002890 ac_cv_prog_ac_ct_CC="$ac_prog"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894done
2895 done
2896IFS=$as_save_IFS
2897
2898fi
2899fi
2900ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901if test -n "$ac_ct_CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2903$as_echo "$ac_ct_CC" >&6; }
2904else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906$as_echo "no" >&6; }
2907fi
2908
2909
2910 test -n "$ac_ct_CC" && break
2911done
2912
2913 if test "x$ac_ct_CC" = x; then
2914 CC=""
2915 else
2916 case $cross_compiling:$ac_tool_warned in
2917yes:)
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920ac_tool_warned=yes ;;
2921esac
2922 CC=$ac_ct_CC
2923 fi
2924fi
2925
2926fi
2927
2928
2929test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002931as_fn_error $? "no acceptable C compiler found in \$PATH
2932See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002933
2934# Provide some information about the compiler.
2935$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2936set X $ac_compile
2937ac_compiler=$2
2938for ac_option in --version -v -V -qversion; do
2939 { { ac_try="$ac_compiler $ac_option >&5"
2940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
2944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2945$as_echo "$ac_try_echo"; } >&5
2946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2947 ac_status=$?
2948 if test -s conftest.err; then
2949 sed '10a\
2950... rest of stderr output deleted ...
2951 10q' conftest.err >conftest.er1
2952 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002953 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002954 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2956 test $ac_status = 0; }
2957done
2958
2959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002971ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002972# Try to create an executable without -o first, disregard a.out.
2973# It will help us diagnose broken compilers, and finding out an intuition
2974# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2976$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002977ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2978
2979# The possible output files:
2980ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2981
2982ac_rmfiles=
2983for ac_file in $ac_files
2984do
2985 case $ac_file in
2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2987 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2988 esac
2989done
2990rm -f $ac_rmfiles
2991
2992if { { ac_try="$ac_link_default"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996esac
2997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998$as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_link_default") 2>&5
3000 ac_status=$?
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3004# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3005# in a Makefile. We should not override ac_cv_exeext if it was cached,
3006# so that the user can short-circuit this test for compilers unknown to
3007# Autoconf.
3008for ac_file in $ac_files ''
3009do
3010 test -f "$ac_file" || continue
3011 case $ac_file in
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3013 ;;
3014 [ab].out )
3015 # We found the default executable, but exeext='' is most
3016 # certainly right.
3017 break;;
3018 *.* )
3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3020 then :; else
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 fi
3023 # We set ac_cv_exeext here because the later test for it is not
3024 # safe: cross compilers may not add the suffix if given an `-o'
3025 # argument, so we may need to know it at that point already.
3026 # Even if this section looks crufty: it has the advantage of
3027 # actually working.
3028 break;;
3029 * )
3030 break;;
3031 esac
3032done
3033test "$ac_cv_exeext" = no && ac_cv_exeext=
3034
3035else
3036 ac_file=''
3037fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003038if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003046as_fn_error 77 "C compiler cannot create executables
3047See \`config.log' for more details" "$LINENO" 5; }
3048else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003051fi
Joseph Myers22e05272018-10-31 17:03:16 +00003052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3053$as_echo_n "checking for C compiler default output file name... " >&6; }
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3055$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003056ac_exeext=$ac_cv_exeext
3057
Joseph Myers22e05272018-10-31 17:03:16 +00003058rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003059ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3061$as_echo_n "checking for suffix of executables... " >&6; }
3062if { { ac_try="$ac_link"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068$as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_link") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; then :
3073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3074# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3075# work properly (i.e., refer to `conftest.exe'), while it won't with
3076# `rm'.
3077for ac_file in conftest.exe conftest conftest.*; do
3078 test -f "$ac_file" || continue
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 break;;
3083 * ) break;;
3084 esac
3085done
3086else
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003089as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3090See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003091fi
Joseph Myers22e05272018-10-31 17:03:16 +00003092rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3094$as_echo "$ac_cv_exeext" >&6; }
3095
3096rm -f conftest.$ac_ext
3097EXEEXT=$ac_cv_exeext
3098ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h. */
3101#include <stdio.h>
3102int
3103main ()
3104{
3105FILE *f = fopen ("conftest.out", "w");
3106 return ferror (f) || fclose (f) != 0;
3107
3108 ;
3109 return 0;
3110}
3111_ACEOF
3112ac_clean_files="$ac_clean_files conftest.out"
3113# Check that the compiler produces executables we can run. If not, either
3114# the compiler is broken, or we cross compile.
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3116$as_echo_n "checking whether we are cross compiling... " >&6; }
3117if test "$cross_compiling" != yes; then
3118 { { ac_try="$ac_link"
3119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124$as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_link") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }
3129 if { ac_try='./conftest$ac_cv_exeext'
3130 { { case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135$as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }; }; then
3140 cross_compiling=no
3141 else
3142 if test "$cross_compiling" = maybe; then
3143 cross_compiling=yes
3144 else
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "cannot run C compiled programs.
3148If you meant to cross compile, use \`--host'.
3149See \`config.log' for more details" "$LINENO" 5; }
3150 fi
3151 fi
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3154$as_echo "$cross_compiling" >&6; }
3155
3156rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3157ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3159$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003160if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003161 $as_echo_n "(cached) " >&6
3162else
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174rm -f conftest.o conftest.obj
3175if { { ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_compile") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 for ac_file in conftest.o conftest.obj conftest.*; do
3187 test -f "$ac_file" || continue;
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3191 break;;
3192 esac
3193done
3194else
3195 $as_echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003200as_fn_error $? "cannot compute suffix of object files: cannot compile
3201See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003202fi
3203rm -f conftest.$ac_cv_objext conftest.$ac_ext
3204fi
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3206$as_echo "$ac_cv_objext" >&6; }
3207OBJEXT=$ac_cv_objext
3208ac_objext=$OBJEXT
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3210$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003211if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003212 $as_echo_n "(cached) " >&6
3213else
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220#ifndef __GNUC__
3221 choke me
3222#endif
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
3228if ac_fn_c_try_compile "$LINENO"; then :
3229 ac_compiler_gnu=yes
3230else
3231 ac_compiler_gnu=no
3232fi
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235
3236fi
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3238$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3239if test $ac_compiler_gnu = yes; then
3240 GCC=yes
3241else
3242 GCC=
3243fi
3244ac_test_CFLAGS=${CFLAGS+set}
3245ac_save_CFLAGS=$CFLAGS
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3247$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003248if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003249 $as_echo_n "(cached) " >&6
3250else
3251 ac_save_c_werror_flag=$ac_c_werror_flag
3252 ac_c_werror_flag=yes
3253 ac_cv_prog_cc_g=no
3254 CFLAGS="-g"
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h. */
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266if ac_fn_c_try_compile "$LINENO"; then :
3267 ac_cv_prog_cc_g=yes
3268else
3269 CFLAGS=""
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h. */
3272
3273int
3274main ()
3275{
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281if ac_fn_c_try_compile "$LINENO"; then :
3282
3283else
3284 ac_c_werror_flag=$ac_save_c_werror_flag
3285 CFLAGS="-g"
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288
3289int
3290main ()
3291{
3292
3293 ;
3294 return 0;
3295}
3296_ACEOF
3297if ac_fn_c_try_compile "$LINENO"; then :
3298 ac_cv_prog_cc_g=yes
3299fi
3300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301fi
3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303fi
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_c_werror_flag=$ac_save_c_werror_flag
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3308$as_echo "$ac_cv_prog_cc_g" >&6; }
3309if test "$ac_test_CFLAGS" = set; then
3310 CFLAGS=$ac_save_CFLAGS
3311elif test $ac_cv_prog_cc_g = yes; then
3312 if test "$GCC" = yes; then
3313 CFLAGS="-g -O2"
3314 else
3315 CFLAGS="-g"
3316 fi
3317else
3318 if test "$GCC" = yes; then
3319 CFLAGS="-O2"
3320 else
3321 CFLAGS=
3322 fi
3323fi
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3325$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003326if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003327 $as_echo_n "(cached) " >&6
3328else
3329 ac_cv_prog_cc_c89=no
3330ac_save_CC=$CC
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h. */
3333#include <stdarg.h>
3334#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003335struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003336/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3337struct buf { int x; };
3338FILE * (*rcsopen) (struct buf *, struct stat *, int);
3339static char *e (p, i)
3340 char **p;
3341 int i;
3342{
3343 return p[i];
3344}
3345static char *f (char * (*g) (char **, int), char **p, ...)
3346{
3347 char *s;
3348 va_list v;
3349 va_start (v,p);
3350 s = g (p, va_arg (v,int));
3351 va_end (v);
3352 return s;
3353}
3354
3355/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3356 function prototypes and stuff, but not '\xHH' hex character constants.
3357 These don't provoke an error unfortunately, instead are silently treated
3358 as 'x'. The following induces an error, until -std is added to get
3359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3360 array size at least. It's necessary to write '\x00'==0 to get something
3361 that's true only with -std. */
3362int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3363
3364/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3365 inside strings and character constants. */
3366#define FOO(x) 'x'
3367int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3368
3369int test (int i, double x);
3370struct s1 {int (*f) (int a);};
3371struct s2 {int (*f) (double a);};
3372int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3373int argc;
3374char **argv;
3375int
3376main ()
3377{
3378return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3385do
3386 CC="$ac_save_CC $ac_arg"
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_cv_prog_cc_c89=$ac_arg
3389fi
3390rm -f core conftest.err conftest.$ac_objext
3391 test "x$ac_cv_prog_cc_c89" != "xno" && break
3392done
3393rm -f conftest.$ac_ext
3394CC=$ac_save_CC
3395
3396fi
3397# AC_CACHE_VAL
3398case "x$ac_cv_prog_cc_c89" in
3399 x)
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3401$as_echo "none needed" >&6; } ;;
3402 xno)
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3404$as_echo "unsupported" >&6; } ;;
3405 *)
3406 CC="$CC $ac_cv_prog_cc_c89"
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3408$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3409esac
3410if test "x$ac_cv_prog_cc_c89" != xno; then :
3411
3412fi
3413
3414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
Joseph Myers22e05272018-10-31 17:03:16 +00003420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3426$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3427if ${am_cv_prog_cc_c_o+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429else
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432
3433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441 # Make sure it works both with $CC and with simple cc.
3442 # Following AC_PROG_CC_C_O, we do the test twice because some
3443 # compilers refuse to overwrite an existing .o file with -o,
3444 # though they will create one.
3445 am_cv_prog_cc_c_o=yes
3446 for am_i in 1 2; do
3447 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3448 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } \
3452 && test -f conftest2.$ac_objext; then
3453 : OK
3454 else
3455 am_cv_prog_cc_c_o=no
3456 break
3457 fi
3458 done
3459 rm -f core conftest*
3460 unset am_i
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3463$as_echo "$am_cv_prog_cc_c_o" >&6; }
3464if test "$am_cv_prog_cc_c_o" != yes; then
3465 # Losing compiler, so override with the script.
3466 # FIXME: It is wrong to rewrite CC.
3467 # But if we don't then we get into trouble of one sort or another.
3468 # A longer-term fix would be to have automake use am__CC in this case,
3469 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3470 CC="$am_aux_dir/compile $CC"
3471fi
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
3478
Rainer Orth235d1c42019-04-14 09:30:42 +00003479
3480ac_ext=c
3481ac_cpp='$CPP $CPPFLAGS'
3482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3486$as_echo_n "checking how to run the C preprocessor... " >&6; }
3487# On Suns, sometimes $CPP names a directory.
3488if test -n "$CPP" && test -d "$CPP"; then
3489 CPP=
3490fi
3491if test -z "$CPP"; then
3492 if ${ac_cv_prog_CPP+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494else
3495 # Double quotes because CPP needs to be expanded
3496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3497 do
3498 ac_preproc_ok=false
3499for ac_c_preproc_warn_flag in '' yes
3500do
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h. */
3509#ifdef __STDC__
3510# include <limits.h>
3511#else
3512# include <assert.h>
3513#endif
3514 Syntax error
3515_ACEOF
3516if ac_fn_c_try_cpp "$LINENO"; then :
3517
3518else
3519 # Broken: fails on valid input.
3520continue
3521fi
3522rm -f conftest.err conftest.i conftest.$ac_ext
3523
3524 # OK, works on sane cases. Now check whether nonexistent headers
3525 # can be detected and how.
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h. */
3528#include <ac_nonexistent.h>
3529_ACEOF
3530if ac_fn_c_try_cpp "$LINENO"; then :
3531 # Broken: success on invalid input.
3532continue
3533else
3534 # Passes both tests.
3535ac_preproc_ok=:
3536break
3537fi
3538rm -f conftest.err conftest.i conftest.$ac_ext
3539
3540done
3541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3542rm -f conftest.i conftest.err conftest.$ac_ext
3543if $ac_preproc_ok; then :
3544 break
3545fi
3546
3547 done
3548 ac_cv_prog_CPP=$CPP
3549
3550fi
3551 CPP=$ac_cv_prog_CPP
3552else
3553 ac_cv_prog_CPP=$CPP
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3556$as_echo "$CPP" >&6; }
3557ac_preproc_ok=false
3558for ac_c_preproc_warn_flag in '' yes
3559do
3560 # Use a header file that comes with gcc, so configuring glibc
3561 # with a fresh cross-compiler works.
3562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563 # <limits.h> exists even on freestanding compilers.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h. */
3568#ifdef __STDC__
3569# include <limits.h>
3570#else
3571# include <assert.h>
3572#endif
3573 Syntax error
3574_ACEOF
3575if ac_fn_c_try_cpp "$LINENO"; then :
3576
3577else
3578 # Broken: fails on valid input.
3579continue
3580fi
3581rm -f conftest.err conftest.i conftest.$ac_ext
3582
3583 # OK, works on sane cases. Now check whether nonexistent headers
3584 # can be detected and how.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h. */
3587#include <ac_nonexistent.h>
3588_ACEOF
3589if ac_fn_c_try_cpp "$LINENO"; then :
3590 # Broken: success on invalid input.
3591continue
3592else
3593 # Passes both tests.
3594ac_preproc_ok=:
3595break
3596fi
3597rm -f conftest.err conftest.i conftest.$ac_ext
3598
3599done
3600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601rm -f conftest.i conftest.err conftest.$ac_ext
3602if $ac_preproc_ok; then :
3603
3604else
3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3608See \`config.log' for more details" "$LINENO" 5; }
3609fi
3610
3611ac_ext=c
3612ac_cpp='$CPP $CPPFLAGS'
3613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
3617
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3619$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3620if ${ac_cv_path_GREP+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622else
3623 if test -z "$GREP"; then
3624 ac_path_GREP_found=false
3625 # Loop through the user's path and test for each of PROGNAME-LIST
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_prog in grep ggrep; do
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3634 as_fn_executable_p "$ac_path_GREP" || continue
3635# Check for GNU ac_path_GREP and select it if it is found.
3636 # Check for GNU $ac_path_GREP
3637case `"$ac_path_GREP" --version 2>&1` in
3638*GNU*)
3639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3640*)
3641 ac_count=0
3642 $as_echo_n 0123456789 >"conftest.in"
3643 while :
3644 do
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 $as_echo 'GREP' >> "conftest.nl"
3649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651 as_fn_arith $ac_count + 1 && ac_count=$as_val
3652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_GREP="$ac_path_GREP"
3655 ac_path_GREP_max=$ac_count
3656 fi
3657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3659 done
3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3661esac
3662
3663 $ac_path_GREP_found && break 3
3664 done
3665 done
3666 done
3667IFS=$as_save_IFS
3668 if test -z "$ac_cv_path_GREP"; then
3669 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670 fi
3671else
3672 ac_cv_path_GREP=$GREP
3673fi
3674
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3677$as_echo "$ac_cv_path_GREP" >&6; }
3678 GREP="$ac_cv_path_GREP"
3679
3680
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3682$as_echo_n "checking for egrep... " >&6; }
3683if ${ac_cv_path_EGREP+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685else
3686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3687 then ac_cv_path_EGREP="$GREP -E"
3688 else
3689 if test -z "$EGREP"; then
3690 ac_path_EGREP_found=false
3691 # Loop through the user's path and test for each of PROGNAME-LIST
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3694do
3695 IFS=$as_save_IFS
3696 test -z "$as_dir" && as_dir=.
3697 for ac_prog in egrep; do
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3700 as_fn_executable_p "$ac_path_EGREP" || continue
3701# Check for GNU ac_path_EGREP and select it if it is found.
3702 # Check for GNU $ac_path_EGREP
3703case `"$ac_path_EGREP" --version 2>&1` in
3704*GNU*)
3705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3706*)
3707 ac_count=0
3708 $as_echo_n 0123456789 >"conftest.in"
3709 while :
3710 do
3711 cat "conftest.in" "conftest.in" >"conftest.tmp"
3712 mv "conftest.tmp" "conftest.in"
3713 cp "conftest.in" "conftest.nl"
3714 $as_echo 'EGREP' >> "conftest.nl"
3715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3717 as_fn_arith $ac_count + 1 && ac_count=$as_val
3718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3719 # Best one so far, save it but keep looking for a better one
3720 ac_cv_path_EGREP="$ac_path_EGREP"
3721 ac_path_EGREP_max=$ac_count
3722 fi
3723 # 10*(2^10) chars as input seems more than enough
3724 test $ac_count -gt 10 && break
3725 done
3726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3727esac
3728
3729 $ac_path_EGREP_found && break 3
3730 done
3731 done
3732 done
3733IFS=$as_save_IFS
3734 if test -z "$ac_cv_path_EGREP"; then
3735 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3736 fi
3737else
3738 ac_cv_path_EGREP=$EGREP
3739fi
3740
3741 fi
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3744$as_echo "$ac_cv_path_EGREP" >&6; }
3745 EGREP="$ac_cv_path_EGREP"
3746
3747
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3749$as_echo_n "checking for ANSI C header files... " >&6; }
3750if ${ac_cv_header_stdc+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h. */
3755#include <stdlib.h>
3756#include <stdarg.h>
3757#include <string.h>
3758#include <float.h>
3759
3760int
3761main ()
3762{
3763
3764 ;
3765 return 0;
3766}
3767_ACEOF
3768if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_header_stdc=yes
3770else
3771 ac_cv_header_stdc=no
3772fi
3773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774
3775if test $ac_cv_header_stdc = yes; then
3776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h. */
3779#include <string.h>
3780
3781_ACEOF
3782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 $EGREP "memchr" >/dev/null 2>&1; then :
3784
3785else
3786 ac_cv_header_stdc=no
3787fi
3788rm -f conftest*
3789
3790fi
3791
3792if test $ac_cv_header_stdc = yes; then
3793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h. */
3796#include <stdlib.h>
3797
3798_ACEOF
3799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 $EGREP "free" >/dev/null 2>&1; then :
3801
3802else
3803 ac_cv_header_stdc=no
3804fi
3805rm -f conftest*
3806
3807fi
3808
3809if test $ac_cv_header_stdc = yes; then
3810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3811 if test "$cross_compiling" = yes; then :
3812 :
3813else
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */
3816#include <ctype.h>
3817#include <stdlib.h>
3818#if ((' ' & 0x0FF) == 0x020)
3819# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3820# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3821#else
3822# define ISLOWER(c) \
3823 (('a' <= (c) && (c) <= 'i') \
3824 || ('j' <= (c) && (c) <= 'r') \
3825 || ('s' <= (c) && (c) <= 'z'))
3826# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3827#endif
3828
3829#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3830int
3831main ()
3832{
3833 int i;
3834 for (i = 0; i < 256; i++)
3835 if (XOR (islower (i), ISLOWER (i))
3836 || toupper (i) != TOUPPER (i))
3837 return 2;
3838 return 0;
3839}
3840_ACEOF
3841if ac_fn_c_try_run "$LINENO"; then :
3842
3843else
3844 ac_cv_header_stdc=no
3845fi
3846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3847 conftest.$ac_objext conftest.beam conftest.$ac_ext
3848fi
3849
3850fi
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3853$as_echo "$ac_cv_header_stdc" >&6; }
3854if test $ac_cv_header_stdc = yes; then
3855
3856$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3857
3858fi
3859
3860# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3861for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3862 inttypes.h stdint.h unistd.h
3863do :
3864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3865ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3866"
3867if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3868 cat >>confdefs.h <<_ACEOF
3869#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3870_ACEOF
3871
3872fi
3873
3874done
3875
3876
3877
3878 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3879if test "x$ac_cv_header_minix_config_h" = xyes; then :
3880 MINIX=yes
3881else
3882 MINIX=
3883fi
3884
3885
3886 if test "$MINIX" = yes; then
3887
3888$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3889
3890
3891$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3892
3893
3894$as_echo "#define _MINIX 1" >>confdefs.h
3895
3896 fi
3897
3898
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3900$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3901if ${ac_cv_safe_to_define___extensions__+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h. */
3906
3907# define __EXTENSIONS__ 1
3908 $ac_includes_default
3909int
3910main ()
3911{
3912
3913 ;
3914 return 0;
3915}
3916_ACEOF
3917if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_safe_to_define___extensions__=yes
3919else
3920 ac_cv_safe_to_define___extensions__=no
3921fi
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3925$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3926 test $ac_cv_safe_to_define___extensions__ = yes &&
3927 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3928
3929 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3930
3931 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3932
3933 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3934
3935 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3936
3937
3938
3939target_alias=${target_alias-$target}
3940
3941
3942# 1.11.1: Require that version of automake.
3943# foreign: Don't require README, INSTALL, NEWS, etc.
3944# no-define: Don't define PACKAGE and VERSION.
3945# no-dependencies: Don't generate automatic dependencies.
3946# (because it breaks when using bootstrap-lean, since some of the
3947# headers are gone at "make install" time).
3948# subdir-objects: Build objects in sub-directories.
3949# -Wall: Issue all automake warnings.
3950# -Wno-portability: Don't warn about constructs supported by GNU make.
3951# (because GCC requires GNU make anyhow).
3952# -Wno-override: Overrides used in testsuite.
3953am__api_version='1.15'
3954
3955# Find a good install program. We prefer a C program (faster),
3956# so one script is as good as another. But avoid the broken or
3957# incompatible versions:
3958# SysV /etc/install, /usr/sbin/install
3959# SunOS /usr/etc/install
3960# IRIX /sbin/install
3961# AIX /bin/install
3962# AmigaOS /C/install, which installs bootblocks on floppy discs
3963# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3964# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3965# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3966# OS/2's system install, which has a completely different semantic
3967# ./install, which can be erroneously created by make from ./install.sh.
3968# Reject install programs that cannot install multiple files.
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3970$as_echo_n "checking for a BSD-compatible install... " >&6; }
3971if test -z "$INSTALL"; then
3972if ${ac_cv_path_install+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976for as_dir in $PATH
3977do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 # Account for people who put trailing slashes in PATH elements.
3981case $as_dir/ in #((
3982 ./ | .// | /[cC]/* | \
3983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3984 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3985 /usr/ucb/* ) ;;
3986 *)
3987 # OSF1 and SCO ODT 3.0 have their own names for install.
3988 # Don't use installbsd from OSF since it installs stuff as root
3989 # by default.
3990 for ac_prog in ginstall scoinst install; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3993 if test $ac_prog = install &&
3994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3995 # AIX install. It has an incompatible calling convention.
3996 :
3997 elif test $ac_prog = install &&
3998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3999 # program-specific install script used by HP pwplus--don't use.
4000 :
4001 else
4002 rm -rf conftest.one conftest.two conftest.dir
4003 echo one > conftest.one
4004 echo two > conftest.two
4005 mkdir conftest.dir
4006 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4007 test -s conftest.one && test -s conftest.two &&
4008 test -s conftest.dir/conftest.one &&
4009 test -s conftest.dir/conftest.two
4010 then
4011 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4012 break 3
4013 fi
4014 fi
4015 fi
4016 done
4017 done
4018 ;;
4019esac
4020
4021 done
4022IFS=$as_save_IFS
4023
4024rm -rf conftest.one conftest.two conftest.dir
4025
4026fi
4027 if test "${ac_cv_path_install+set}" = set; then
4028 INSTALL=$ac_cv_path_install
4029 else
4030 # As a last resort, use the slow shell script. Don't cache a
4031 # value for INSTALL within a source directory, because that will
4032 # break other packages using the cache if that directory is
4033 # removed, or if the value is a relative name.
4034 INSTALL=$ac_install_sh
4035 fi
4036fi
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4038$as_echo "$INSTALL" >&6; }
4039
4040# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4041# It thinks the first close brace ends the variable substitution.
4042test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4043
4044test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4045
4046test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4047
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4049$as_echo_n "checking whether build environment is sane... " >&6; }
4050# Reject unsafe characters in $srcdir or the absolute working directory
4051# name. Accept space and tab only in the latter.
4052am_lf='
4053'
4054case `pwd` in
4055 *[\\\"\#\$\&\'\`$am_lf]*)
4056 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4057esac
4058case $srcdir in
4059 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4060 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4061esac
4062
4063# Do 'set' in a subshell so we don't clobber the current shell's
4064# arguments. Must try -L first in case configure is actually a
4065# symlink; some systems play weird games with the mod time of symlinks
4066# (eg FreeBSD returns the mod time of the symlink's containing
4067# directory).
4068if (
4069 am_has_slept=no
4070 for am_try in 1 2; do
4071 echo "timestamp, slept: $am_has_slept" > conftest.file
4072 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4073 if test "$*" = "X"; then
4074 # -L didn't work.
4075 set X `ls -t "$srcdir/configure" conftest.file`
4076 fi
4077 if test "$*" != "X $srcdir/configure conftest.file" \
4078 && test "$*" != "X conftest.file $srcdir/configure"; then
4079
4080 # If neither matched, then we have a broken ls. This can happen
4081 # if, for instance, CONFIG_SHELL is bash and it inherits a
4082 # broken ls alias from the environment. This has actually
4083 # happened. Such a system could not be considered "sane".
4084 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4085 alias in your environment" "$LINENO" 5
4086 fi
4087 if test "$2" = conftest.file || test $am_try -eq 2; then
4088 break
4089 fi
4090 # Just in case.
4091 sleep 1
4092 am_has_slept=yes
4093 done
4094 test "$2" = conftest.file
4095 )
4096then
4097 # Ok.
4098 :
4099else
4100 as_fn_error $? "newly created file is older than distributed files!
4101Check your system clock" "$LINENO" 5
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4104$as_echo "yes" >&6; }
4105# If we didn't sleep, we still need to ensure time stamps of config.status and
4106# generated files are strictly newer.
4107am_sleep_pid=
4108if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4109 ( sleep 1 ) &
4110 am_sleep_pid=$!
4111fi
4112
4113rm -f conftest.file
4114
4115test "$program_prefix" != NONE &&
4116 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4117# Use a double $ so make ignores it.
4118test "$program_suffix" != NONE &&
4119 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4120# Double any \ or $.
4121# By default was `s,x,x', remove it if useless.
4122ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4123program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4124
4125if test x"${MISSING+set}" != xset; then
4126 case $am_aux_dir in
4127 *\ * | *\ *)
4128 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4129 *)
4130 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4131 esac
4132fi
4133# Use eval to expand $SHELL
4134if eval "$MISSING --is-lightweight"; then
4135 am_missing_run="$MISSING "
4136else
4137 am_missing_run=
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4139$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4140fi
4141
4142if test x"${install_sh+set}" != xset; then
4143 case $am_aux_dir in
4144 *\ * | *\ *)
4145 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4146 *)
4147 install_sh="\${SHELL} $am_aux_dir/install-sh"
4148 esac
4149fi
4150
4151# Installed binaries are usually stripped using 'strip' when the user
4152# run "make install-strip". However 'strip' might not be the right
4153# tool to use in cross-compilation environments, therefore Automake
4154# will honor the 'STRIP' environment variable to overrule this program.
4155if test "$cross_compiling" != no; then
4156 if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4158set dummy ${ac_tool_prefix}strip; ac_word=$2
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160$as_echo_n "checking for $ac_word... " >&6; }
4161if ${ac_cv_prog_STRIP+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163else
4164 if test -n "$STRIP"; then
4165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178done
4179 done
4180IFS=$as_save_IFS
4181
4182fi
4183fi
4184STRIP=$ac_cv_prog_STRIP
4185if test -n "$STRIP"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4187$as_echo "$STRIP" >&6; }
4188else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190$as_echo "no" >&6; }
4191fi
4192
4193
4194fi
4195if test -z "$ac_cv_prog_STRIP"; then
4196 ac_ct_STRIP=$STRIP
4197 # Extract the first word of "strip", so it can be a program name with args.
4198set dummy strip; ac_word=$2
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200$as_echo_n "checking for $ac_word... " >&6; }
4201if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203else
4204 if test -n "$ac_ct_STRIP"; then
4205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4206else
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_STRIP="strip"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218done
4219 done
4220IFS=$as_save_IFS
4221
4222fi
4223fi
4224ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4225if test -n "$ac_ct_STRIP"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4227$as_echo "$ac_ct_STRIP" >&6; }
4228else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230$as_echo "no" >&6; }
4231fi
4232
4233 if test "x$ac_ct_STRIP" = x; then
4234 STRIP=":"
4235 else
4236 case $cross_compiling:$ac_tool_warned in
4237yes:)
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240ac_tool_warned=yes ;;
4241esac
4242 STRIP=$ac_ct_STRIP
4243 fi
4244else
4245 STRIP="$ac_cv_prog_STRIP"
4246fi
4247
4248fi
4249INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4252$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4253if test -z "$MKDIR_P"; then
4254 if ${ac_cv_path_mkdir+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4259do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in mkdir gmkdir; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4265 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4266 'mkdir (GNU coreutils) '* | \
4267 'mkdir (coreutils) '* | \
4268 'mkdir (fileutils) '4.1*)
4269 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4270 break 3;;
4271 esac
4272 done
4273 done
4274 done
4275IFS=$as_save_IFS
4276
4277fi
4278
4279 test -d ./--version && rmdir ./--version
4280 if test "${ac_cv_path_mkdir+set}" = set; then
4281 MKDIR_P="$ac_cv_path_mkdir -p"
4282 else
4283 # As a last resort, use the slow shell script. Don't cache a
4284 # value for MKDIR_P within a source directory, because that will
4285 # break other packages using the cache if that directory is
4286 # removed, or if the value is a relative name.
4287 MKDIR_P="$ac_install_sh -d"
4288 fi
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4291$as_echo "$MKDIR_P" >&6; }
4292
4293for ac_prog in gawk mawk nawk awk
4294do
4295 # Extract the first word of "$ac_prog", so it can be a program name with args.
4296set dummy $ac_prog; ac_word=$2
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298$as_echo_n "checking for $ac_word... " >&6; }
4299if ${ac_cv_prog_AWK+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301else
4302 if test -n "$AWK"; then
4303 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_AWK="$ac_prog"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316done
4317 done
4318IFS=$as_save_IFS
4319
4320fi
4321fi
4322AWK=$ac_cv_prog_AWK
4323if test -n "$AWK"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4325$as_echo "$AWK" >&6; }
4326else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328$as_echo "no" >&6; }
4329fi
4330
4331
4332 test -n "$AWK" && break
4333done
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4336$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4337set x ${MAKE-make}
4338ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4339if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341else
4342 cat >conftest.make <<\_ACEOF
4343SHELL = /bin/sh
4344all:
4345 @echo '@@@%%%=$(MAKE)=@@@%%%'
4346_ACEOF
4347# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4348case `${MAKE-make} -f conftest.make 2>/dev/null` in
4349 *@@@%%%=?*=@@@%%%*)
4350 eval ac_cv_prog_make_${ac_make}_set=yes;;
4351 *)
4352 eval ac_cv_prog_make_${ac_make}_set=no;;
4353esac
4354rm -f conftest.make
4355fi
4356if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358$as_echo "yes" >&6; }
4359 SET_MAKE=
4360else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362$as_echo "no" >&6; }
4363 SET_MAKE="MAKE=${MAKE-make}"
4364fi
4365
4366rm -rf .tst 2>/dev/null
4367mkdir .tst 2>/dev/null
4368if test -d .tst; then
4369 am__leading_dot=.
4370else
4371 am__leading_dot=_
4372fi
4373rmdir .tst 2>/dev/null
4374
4375# Check whether --enable-silent-rules was given.
4376if test "${enable_silent_rules+set}" = set; then :
4377 enableval=$enable_silent_rules;
4378fi
4379
4380case $enable_silent_rules in # (((
4381 yes) AM_DEFAULT_VERBOSITY=0;;
4382 no) AM_DEFAULT_VERBOSITY=1;;
4383 *) AM_DEFAULT_VERBOSITY=1;;
4384esac
4385am_make=${MAKE-make}
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4387$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4388if ${am_cv_make_support_nested_variables+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390else
4391 if $as_echo 'TRUE=$(BAR$(V))
4392BAR0=false
4393BAR1=true
4394V=1
4395am__doit:
4396 @$(TRUE)
4397.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4398 am_cv_make_support_nested_variables=yes
4399else
4400 am_cv_make_support_nested_variables=no
4401fi
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4404$as_echo "$am_cv_make_support_nested_variables" >&6; }
4405if test $am_cv_make_support_nested_variables = yes; then
4406 AM_V='$(V)'
4407 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4408else
4409 AM_V=$AM_DEFAULT_VERBOSITY
4410 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4411fi
4412AM_BACKSLASH='\'
4413
4414if test "`cd $srcdir && pwd`" != "`pwd`"; then
4415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4416 # is not polluted with repeated "-I."
4417 am__isrc=' -I$(srcdir)'
4418 # test to see if srcdir already configured
4419 if test -f $srcdir/config.status; then
4420 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4421 fi
4422fi
4423
4424# test whether we have cygpath
4425if test -z "$CYGPATH_W"; then
4426 if (cygpath --version) >/dev/null 2>/dev/null; then
4427 CYGPATH_W='cygpath -w'
4428 else
4429 CYGPATH_W=echo
4430 fi
4431fi
4432
4433
4434# Define the identity of the package.
4435 PACKAGE='libphobos'
4436 VERSION='version-unused'
4437
4438
4439# Some tools Automake needs.
4440
4441ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4442
4443
4444AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4445
4446
4447AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4448
4449
4450AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4451
4452
4453MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4454
4455# For better backward compatibility. To be removed once Automake 1.9.x
4456# dies out for good. For more background, see:
4457# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4458# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4459mkdir_p='$(MKDIR_P)'
4460
4461# We need awk for the "check" target (and possibly the TAP driver). The
4462# system "awk" is bad on some platforms.
4463# Always define AMTAR for backward compatibility. Yes, it's still used
4464# in the wild :-( We should find a proper way to deprecate it ...
4465AMTAR='$${TAR-tar}'
4466
4467
4468# We'll loop over all known methods to create a tar archive until one works.
4469_am_tools='gnutar pax cpio none'
4470
4471am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4472
4473
4474
4475
4476
4477
4478# POSIX will say in a future version that running "rm -f" with no argument
4479# is OK; and we want to be able to make that assumption in our Makefile
4480# recipes. So use an aggressive probe to check that the usage we want is
4481# actually supported "in the wild" to an acceptable degree.
4482# See automake bug#10828.
4483# To make any issue more visible, cause the running configure to be aborted
4484# by default if the 'rm' program in use doesn't match our expectations; the
4485# user can still override this though.
4486if rm -f && rm -fr && rm -rf; then : OK; else
4487 cat >&2 <<'END'
4488Oops!
4489
4490Your 'rm' program seems unable to run without file operands specified
4491on the command line, even when the '-f' option is present. This is contrary
4492to the behaviour of most rm programs out there, and not conforming with
4493the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4494
4495Please tell bug-automake@gnu.org about your system, including the value
4496of your $PATH and any error possibly output before this message. This
4497can help us improve future automake versions.
4498
4499END
4500 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4501 echo 'Configuration will proceed anyway, since you have set the' >&2
4502 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4503 echo >&2
4504 else
4505 cat >&2 <<'END'
4506Aborting the configuration process, to ensure you take notice of the issue.
4507
4508You can download and install GNU coreutils to get an 'rm' implementation
4509that behaves properly: <http://www.gnu.org/software/coreutils/>.
4510
4511If you want to complete the configuration process using your problematic
4512'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4513to "yes", and re-run configure.
4514
4515END
4516 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4517 fi
4518fi
4519
4520
4521
4522
Iain Buclawb4c522f2018-10-28 19:51:47 +00004523# By default we simply use the C compiler to build assembly code.
4524
4525test "${CCAS+set}" = set || CCAS=$CC
4526test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4527
4528
4529
4530ac_ext=c
4531ac_cpp='$CPP $CPPFLAGS'
4532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535if test -n "$ac_tool_prefix"; then
4536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4537set dummy ${ac_tool_prefix}gcc; ac_word=$2
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004540if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004541 $as_echo_n "(cached) " >&6
4542else
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
4558 done
4559IFS=$as_save_IFS
4560
4561fi
4562fi
4563CC=$ac_cv_prog_CC
4564if test -n "$CC"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4566$as_echo "$CC" >&6; }
4567else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570fi
4571
4572
4573fi
4574if test -z "$ac_cv_prog_CC"; then
4575 ac_ct_CC=$CC
4576 # Extract the first word of "gcc", so it can be a program name with args.
4577set dummy gcc; ac_word=$2
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004580if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004581 $as_echo_n "(cached) " >&6
4582else
4583 if test -n "$ac_ct_CC"; then
4584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004593 ac_cv_prog_ac_ct_CC="gcc"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598 done
4599IFS=$as_save_IFS
4600
4601fi
4602fi
4603ac_ct_CC=$ac_cv_prog_ac_ct_CC
4604if test -n "$ac_ct_CC"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4606$as_echo "$ac_ct_CC" >&6; }
4607else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609$as_echo "no" >&6; }
4610fi
4611
4612 if test "x$ac_ct_CC" = x; then
4613 CC=""
4614 else
4615 case $cross_compiling:$ac_tool_warned in
4616yes:)
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619ac_tool_warned=yes ;;
4620esac
4621 CC=$ac_ct_CC
4622 fi
4623else
4624 CC="$ac_cv_prog_CC"
4625fi
4626
4627if test -z "$CC"; then
4628 if test -n "$ac_tool_prefix"; then
4629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4630set dummy ${ac_tool_prefix}cc; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004633if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004646 ac_cv_prog_CC="${ac_tool_prefix}cc"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650done
4651 done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656CC=$ac_cv_prog_CC
4657if test -n "$CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4659$as_echo "$CC" >&6; }
4660else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663fi
4664
4665
4666 fi
4667fi
4668if test -z "$CC"; then
4669 # Extract the first word of "cc", so it can be a program name with args.
4670set dummy cc; ac_word=$2
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004673if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004674 $as_echo_n "(cached) " >&6
4675else
4676 if test -n "$CC"; then
4677 ac_cv_prog_CC="$CC" # Let the user override the test.
4678else
4679 ac_prog_rejected=no
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4688 ac_prog_rejected=yes
4689 continue
4690 fi
4691 ac_cv_prog_CC="cc"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696 done
4697IFS=$as_save_IFS
4698
4699if test $ac_prog_rejected = yes; then
4700 # We found a bogon in the path, so make sure we never use it.
4701 set dummy $ac_cv_prog_CC
4702 shift
4703 if test $# != 0; then
4704 # We chose a different compiler from the bogus one.
4705 # However, it has the same basename, so the bogon will be chosen
4706 # first if we set CC to just the basename; use the full file name.
4707 shift
4708 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4709 fi
4710fi
4711fi
4712fi
4713CC=$ac_cv_prog_CC
4714if test -n "$CC"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4716$as_echo "$CC" >&6; }
4717else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719$as_echo "no" >&6; }
4720fi
4721
4722
4723fi
4724if test -z "$CC"; then
4725 if test -n "$ac_tool_prefix"; then
4726 for ac_prog in cl.exe
4727 do
4728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004732if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004733 $as_echo_n "(cached) " >&6
4734else
4735 if test -n "$CC"; then
4736 ac_cv_prog_CC="$CC" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749done
4750 done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755CC=$ac_cv_prog_CC
4756if test -n "$CC"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758$as_echo "$CC" >&6; }
4759else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764
4765 test -n "$CC" && break
4766 done
4767fi
4768if test -z "$CC"; then
4769 ac_ct_CC=$CC
4770 for ac_prog in cl.exe
4771do
4772 # Extract the first word of "$ac_prog", so it can be a program name with args.
4773set dummy $ac_prog; ac_word=$2
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004776if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004777 $as_echo_n "(cached) " >&6
4778else
4779 if test -n "$ac_ct_CC"; then
4780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004789 ac_cv_prog_ac_ct_CC="$ac_prog"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794 done
4795IFS=$as_save_IFS
4796
4797fi
4798fi
4799ac_ct_CC=$ac_cv_prog_ac_ct_CC
4800if test -n "$ac_ct_CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4802$as_echo "$ac_ct_CC" >&6; }
4803else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806fi
4807
4808
4809 test -n "$ac_ct_CC" && break
4810done
4811
4812 if test "x$ac_ct_CC" = x; then
4813 CC=""
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816yes:)
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819ac_tool_warned=yes ;;
4820esac
4821 CC=$ac_ct_CC
4822 fi
4823fi
4824
4825fi
4826
4827
4828test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004830as_fn_error $? "no acceptable C compiler found in \$PATH
4831See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004832
4833# Provide some information about the compiler.
4834$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4835set X $ac_compile
4836ac_compiler=$2
4837for ac_option in --version -v -V -qversion; do
4838 { { ac_try="$ac_compiler $ac_option >&5"
4839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
4843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4844$as_echo "$ac_try_echo"; } >&5
4845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4846 ac_status=$?
4847 if test -s conftest.err; then
4848 sed '10a\
4849... rest of stderr output deleted ...
4850 10q' conftest.err >conftest.er1
4851 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004852 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004853 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4855 test $ac_status = 0; }
4856done
4857
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4859$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004860if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004861 $as_echo_n "(cached) " >&6
4862else
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h. */
4865
4866int
4867main ()
4868{
4869#ifndef __GNUC__
4870 choke me
4871#endif
4872
4873 ;
4874 return 0;
4875}
4876_ACEOF
4877if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_compiler_gnu=yes
4879else
4880 ac_compiler_gnu=no
4881fi
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883ac_cv_c_compiler_gnu=$ac_compiler_gnu
4884
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4887$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4888if test $ac_compiler_gnu = yes; then
4889 GCC=yes
4890else
4891 GCC=
4892fi
4893ac_test_CFLAGS=${CFLAGS+set}
4894ac_save_CFLAGS=$CFLAGS
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4896$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004897if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004898 $as_echo_n "(cached) " >&6
4899else
4900 ac_save_c_werror_flag=$ac_c_werror_flag
4901 ac_c_werror_flag=yes
4902 ac_cv_prog_cc_g=no
4903 CFLAGS="-g"
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h. */
4906
4907int
4908main ()
4909{
4910
4911 ;
4912 return 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
4916 ac_cv_prog_cc_g=yes
4917else
4918 CFLAGS=""
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h. */
4921
4922int
4923main ()
4924{
4925
4926 ;
4927 return 0;
4928}
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931
4932else
4933 ac_c_werror_flag=$ac_save_c_werror_flag
4934 CFLAGS="-g"
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936/* end confdefs.h. */
4937
4938int
4939main ()
4940{
4941
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"; then :
4947 ac_cv_prog_cc_g=yes
4948fi
4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ac_c_werror_flag=$ac_save_c_werror_flag
4955fi
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4957$as_echo "$ac_cv_prog_cc_g" >&6; }
4958if test "$ac_test_CFLAGS" = set; then
4959 CFLAGS=$ac_save_CFLAGS
4960elif test $ac_cv_prog_cc_g = yes; then
4961 if test "$GCC" = yes; then
4962 CFLAGS="-g -O2"
4963 else
4964 CFLAGS="-g"
4965 fi
4966else
4967 if test "$GCC" = yes; then
4968 CFLAGS="-O2"
4969 else
4970 CFLAGS=
4971 fi
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4974$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004975if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004976 $as_echo_n "(cached) " >&6
4977else
4978 ac_cv_prog_cc_c89=no
4979ac_save_CC=$CC
4980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h. */
4982#include <stdarg.h>
4983#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004984struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004985/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4986struct buf { int x; };
4987FILE * (*rcsopen) (struct buf *, struct stat *, int);
4988static char *e (p, i)
4989 char **p;
4990 int i;
4991{
4992 return p[i];
4993}
4994static char *f (char * (*g) (char **, int), char **p, ...)
4995{
4996 char *s;
4997 va_list v;
4998 va_start (v,p);
4999 s = g (p, va_arg (v,int));
5000 va_end (v);
5001 return s;
5002}
5003
5004/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5005 function prototypes and stuff, but not '\xHH' hex character constants.
5006 These don't provoke an error unfortunately, instead are silently treated
5007 as 'x'. The following induces an error, until -std is added to get
5008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5009 array size at least. It's necessary to write '\x00'==0 to get something
5010 that's true only with -std. */
5011int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5012
5013/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5014 inside strings and character constants. */
5015#define FOO(x) 'x'
5016int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5017
5018int test (int i, double x);
5019struct s1 {int (*f) (int a);};
5020struct s2 {int (*f) (double a);};
5021int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5022int argc;
5023char **argv;
5024int
5025main ()
5026{
5027return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5034do
5035 CC="$ac_save_CC $ac_arg"
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037 ac_cv_prog_cc_c89=$ac_arg
5038fi
5039rm -f core conftest.err conftest.$ac_objext
5040 test "x$ac_cv_prog_cc_c89" != "xno" && break
5041done
5042rm -f conftest.$ac_ext
5043CC=$ac_save_CC
5044
5045fi
5046# AC_CACHE_VAL
5047case "x$ac_cv_prog_cc_c89" in
5048 x)
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5050$as_echo "none needed" >&6; } ;;
5051 xno)
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5053$as_echo "unsupported" >&6; } ;;
5054 *)
5055 CC="$CC $ac_cv_prog_cc_c89"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5057$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5058esac
5059if test "x$ac_cv_prog_cc_c89" != xno; then :
5060
5061fi
5062
5063ac_ext=c
5064ac_cpp='$CPP $CPPFLAGS'
5065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068
Joseph Myers22e05272018-10-31 17:03:16 +00005069ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5075$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5076if ${am_cv_prog_cc_c_o+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h. */
5081
5082int
5083main ()
5084{
5085
5086 ;
5087 return 0;
5088}
5089_ACEOF
5090 # Make sure it works both with $CC and with simple cc.
5091 # Following AC_PROG_CC_C_O, we do the test twice because some
5092 # compilers refuse to overwrite an existing .o file with -o,
5093 # though they will create one.
5094 am_cv_prog_cc_c_o=yes
5095 for am_i in 1 2; do
5096 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5097 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } \
5101 && test -f conftest2.$ac_objext; then
5102 : OK
5103 else
5104 am_cv_prog_cc_c_o=no
5105 break
5106 fi
5107 done
5108 rm -f core conftest*
5109 unset am_i
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5112$as_echo "$am_cv_prog_cc_c_o" >&6; }
5113if test "$am_cv_prog_cc_c_o" != yes; then
5114 # Losing compiler, so override with the script.
5115 # FIXME: It is wrong to rewrite CC.
5116 # But if we don't then we get into trouble of one sort or another.
5117 # A longer-term fix would be to have automake use am__CC in this case,
5118 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5119 CC="$am_aux_dir/compile $CC"
5120fi
5121ac_ext=c
5122ac_cpp='$CPP $CPPFLAGS'
5123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126
5127
Iain Buclawb4c522f2018-10-28 19:51:47 +00005128ac_ext=d
5129ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5130ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131ac_compiler_gnu=yes
5132if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5134set dummy ${ac_tool_prefix}gdc; ac_word=$2
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005137if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005138 $as_echo_n "(cached) " >&6
5139else
5140 if test -n "$GDC"; then
5141 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005150 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154done
5155 done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160GDC=$ac_cv_prog_GDC
5161if test -n "$GDC"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5163$as_echo "$GDC" >&6; }
5164else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169
5170fi
5171if test -z "$ac_cv_prog_GDC"; then
5172 ac_ct_GDC=$GDC
5173 # Extract the first word of "gdc", so it can be a program name with args.
5174set dummy gdc; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005177if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005178 $as_echo_n "(cached) " >&6
5179else
5180 if test -n "$ac_ct_GDC"; then
5181 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005190 ac_cv_prog_ac_ct_GDC="gdc"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194done
5195 done
5196IFS=$as_save_IFS
5197
5198fi
5199fi
5200ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5201if test -n "$ac_ct_GDC"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5203$as_echo "$ac_ct_GDC" >&6; }
5204else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
5207fi
5208
5209 if test "x$ac_ct_GDC" = x; then
5210 GDC=""
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216ac_tool_warned=yes ;;
5217esac
5218 GDC=$ac_ct_GDC
5219 fi
5220else
5221 GDC="$ac_cv_prog_GDC"
5222fi
5223
5224if test -z "$GDC"; then
5225 if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5227set dummy ${ac_tool_prefix}gdc; ac_word=$2
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005230if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005231 $as_echo_n "(cached) " >&6
5232else
5233 if test -n "$GDC"; then
5234 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005243 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247done
5248 done
5249IFS=$as_save_IFS
5250
5251fi
5252fi
5253GDC=$ac_cv_prog_GDC
5254if test -n "$GDC"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5256$as_echo "$GDC" >&6; }
5257else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259$as_echo "no" >&6; }
5260fi
5261
5262
5263 fi
5264fi
5265if test -z "$GDC"; then
5266 # Extract the first word of "gdc", so it can be a program name with args.
5267set dummy gdc; ac_word=$2
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005270if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005271 $as_echo_n "(cached) " >&6
5272else
5273 if test -n "$GDC"; then
5274 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5275else
5276 ac_prog_rejected=no
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005284 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5285 ac_prog_rejected=yes
5286 continue
5287 fi
5288 ac_cv_prog_GDC="gdc"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292done
5293 done
5294IFS=$as_save_IFS
5295
5296if test $ac_prog_rejected = yes; then
5297 # We found a bogon in the path, so make sure we never use it.
5298 set dummy $ac_cv_prog_GDC
5299 shift
5300 if test $# != 0; then
5301 # We chose a different compiler from the bogus one.
5302 # However, it has the same basename, so the bogon will be chosen
5303 # first if we set GDC to just the basename; use the full file name.
5304 shift
5305 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5306 fi
5307fi
5308fi
5309fi
5310GDC=$ac_cv_prog_GDC
5311if test -n "$GDC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5313$as_echo "$GDC" >&6; }
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319
5320fi
5321
5322
5323# Provide some information about the compiler.
5324$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5325set X $ac_compile
5326ac_compiler=$2
5327{ { ac_try="$ac_compiler --version >&5"
5328case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331esac
5332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5333$as_echo "$ac_try_echo"; } >&5
5334 (eval "$ac_compiler --version >&5") 2>conftest.err
5335 ac_status=$?
5336 if test -s conftest.err; then
5337 sed '10a\
5338... rest of stderr output deleted ...
5339 10q' conftest.err >conftest.er1
5340 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005341 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005342 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5344 test $ac_status = 0; }
5345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5353$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005354if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005355 $as_echo_n "(cached) " >&6
5356else
5357 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5360$as_echo "$phobos_cv_abs_srcdir" >&6; }
5361 if test -d "$phobos_cv_abs_srcdir"; then :
5362
5363else
Joseph Myers22e05272018-10-31 17:03:16 +00005364 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005365fi
5366
5367
5368
5369
5370 gdc_save_DFLAGS=$GDCFLAGS
5371 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5372
5373 ac_ext=d
5374ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5375ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376ac_compiler_gnu=yes
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5379$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5380 cat > conftest.$ac_ext <<_ACEOF
5381module mod;
5382
5383
5384extern(C) int main() {
5385 return 0;
5386}
5387_ACEOF
5388if ac_fn_d_try_compile "$LINENO"; then :
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390$as_echo "yes" >&6; }
5391else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005394 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 ac_ext=c
5398ac_cpp='$CPP $CPPFLAGS'
5399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402
5403
5404 GDCFLAGS=$gdc_save_DFLAGS
5405
5406
5407
5408
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5412$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5413 # Check whether --enable-maintainer-mode was given.
5414if test "${enable_maintainer_mode+set}" = set; then :
5415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5416else
5417 USE_MAINTAINER_MODE=no
5418fi
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5421$as_echo "$USE_MAINTAINER_MODE" >&6; }
5422 if test $USE_MAINTAINER_MODE = yes; then
5423 MAINTAINER_MODE_TRUE=
5424 MAINTAINER_MODE_FALSE='#'
5425else
5426 MAINTAINER_MODE_TRUE='#'
5427 MAINTAINER_MODE_FALSE=
5428fi
5429
5430 MAINT=$MAINTAINER_MODE_TRUE
5431
5432
5433if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005438if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005439 $as_echo_n "(cached) " >&6
5440else
5441 if test -n "$RANLIB"; then
5442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456 done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461RANLIB=$ac_cv_prog_RANLIB
5462if test -n "$RANLIB"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5464$as_echo "$RANLIB" >&6; }
5465else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468fi
5469
5470
5471fi
5472if test -z "$ac_cv_prog_RANLIB"; then
5473 ac_ct_RANLIB=$RANLIB
5474 # Extract the first word of "ranlib", so it can be a program name with args.
5475set dummy ranlib; ac_word=$2
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005478if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005479 $as_echo_n "(cached) " >&6
5480else
5481 if test -n "$ac_ct_RANLIB"; then
5482 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5483else
5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005491 ac_cv_prog_ac_ct_RANLIB="ranlib"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495done
5496 done
5497IFS=$as_save_IFS
5498
5499fi
5500fi
5501ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5502if test -n "$ac_ct_RANLIB"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5504$as_echo "$ac_ct_RANLIB" >&6; }
5505else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
5508fi
5509
5510 if test "x$ac_ct_RANLIB" = x; then
5511 RANLIB=":"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514yes:)
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517ac_tool_warned=yes ;;
5518esac
5519 RANLIB=$ac_ct_RANLIB
5520 fi
5521else
5522 RANLIB="$ac_cv_prog_RANLIB"
5523fi
5524
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5527$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5528set x ${MAKE-make}
5529ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005530if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005531 $as_echo_n "(cached) " >&6
5532else
5533 cat >conftest.make <<\_ACEOF
5534SHELL = /bin/sh
5535all:
5536 @echo '@@@%%%=$(MAKE)=@@@%%%'
5537_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005538# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005539case `${MAKE-make} -f conftest.make 2>/dev/null` in
5540 *@@@%%%=?*=@@@%%%*)
5541 eval ac_cv_prog_make_${ac_make}_set=yes;;
5542 *)
5543 eval ac_cv_prog_make_${ac_make}_set=no;;
5544esac
5545rm -f conftest.make
5546fi
5547if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5549$as_echo "yes" >&6; }
5550 SET_MAKE=
5551else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554 SET_MAKE="MAKE=${MAKE-make}"
5555fi
5556
5557
5558# This should be inherited in the recursive make, but ensure it is defined.
5559test "$AR" || AR=ar
5560
5561
5562CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5563
5564
5565
5566# Enable libtool
5567case `pwd` in
5568 *\ * | *\ *)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5570$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5571esac
5572
5573
5574
5575macro_version='2.2.7a'
5576macro_revision='1.3134'
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590ltmain="$ac_aux_dir/ltmain.sh"
5591
5592# Backslashify metacharacters that are still active within
5593# double-quoted strings.
5594sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5595
5596# Same as above, but do not quote variable references.
5597double_quote_subst='s/\(["`\\]\)/\\\1/g'
5598
5599# Sed substitution to delay expansion of an escaped shell variable in a
5600# double_quote_subst'ed string.
5601delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5602
5603# Sed substitution to delay expansion of an escaped single quote.
5604delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5605
5606# Sed substitution to avoid accidental globbing in evaled expressions
5607no_glob_subst='s/\*/\\\*/g'
5608
5609ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5610ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5611ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5614$as_echo_n "checking how to print strings... " >&6; }
5615# Test print first, because it will be a builtin if present.
5616if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5617 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5618 ECHO='print -r --'
5619elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5620 ECHO='printf %s\n'
5621else
5622 # Use this function as a fallback that always works.
5623 func_fallback_echo ()
5624 {
5625 eval 'cat <<_LTECHO_EOF
5626$1
5627_LTECHO_EOF'
5628 }
5629 ECHO='func_fallback_echo'
5630fi
5631
5632# func_echo_all arg...
5633# Invoke $ECHO with all args, space-separated.
5634func_echo_all ()
5635{
5636 $ECHO ""
5637}
5638
5639case "$ECHO" in
5640 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5641$as_echo "printf" >&6; } ;;
5642 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5643$as_echo "print -r" >&6; } ;;
5644 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5645$as_echo "cat" >&6; } ;;
5646esac
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5662$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005663if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005664 $as_echo_n "(cached) " >&6
5665else
5666 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5667 for ac_i in 1 2 3 4 5 6 7; do
5668 ac_script="$ac_script$as_nl$ac_script"
5669 done
5670 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5671 { ac_script=; unset ac_script;}
5672 if test -z "$SED"; then
5673 ac_path_SED_found=false
5674 # Loop through the user's path and test for each of PROGNAME-LIST
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_prog in sed gsed; do
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005683 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005684# Check for GNU ac_path_SED and select it if it is found.
5685 # Check for GNU $ac_path_SED
5686case `"$ac_path_SED" --version 2>&1` in
5687*GNU*)
5688 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5689*)
5690 ac_count=0
5691 $as_echo_n 0123456789 >"conftest.in"
5692 while :
5693 do
5694 cat "conftest.in" "conftest.in" >"conftest.tmp"
5695 mv "conftest.tmp" "conftest.in"
5696 cp "conftest.in" "conftest.nl"
5697 $as_echo '' >> "conftest.nl"
5698 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5700 as_fn_arith $ac_count + 1 && ac_count=$as_val
5701 if test $ac_count -gt ${ac_path_SED_max-0}; then
5702 # Best one so far, save it but keep looking for a better one
5703 ac_cv_path_SED="$ac_path_SED"
5704 ac_path_SED_max=$ac_count
5705 fi
5706 # 10*(2^10) chars as input seems more than enough
5707 test $ac_count -gt 10 && break
5708 done
5709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5710esac
5711
5712 $ac_path_SED_found && break 3
5713 done
5714 done
5715 done
5716IFS=$as_save_IFS
5717 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005718 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005719 fi
5720else
5721 ac_cv_path_SED=$SED
5722fi
5723
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5726$as_echo "$ac_cv_path_SED" >&6; }
5727 SED="$ac_cv_path_SED"
5728 rm -f conftest.sed
5729
5730test -z "$SED" && SED=sed
5731Xsed="$SED -e 1s/^X//"
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
Iain Buclawb4c522f2018-10-28 19:51:47 +00005743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5744$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005745if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005746 $as_echo_n "(cached) " >&6
5747else
5748 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5749 then ac_cv_path_FGREP="$GREP -F"
5750 else
5751 if test -z "$FGREP"; then
5752 ac_path_FGREP_found=false
5753 # Loop through the user's path and test for each of PROGNAME-LIST
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_prog in fgrep; do
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005762 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005763# Check for GNU ac_path_FGREP and select it if it is found.
5764 # Check for GNU $ac_path_FGREP
5765case `"$ac_path_FGREP" --version 2>&1` in
5766*GNU*)
5767 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5768*)
5769 ac_count=0
5770 $as_echo_n 0123456789 >"conftest.in"
5771 while :
5772 do
5773 cat "conftest.in" "conftest.in" >"conftest.tmp"
5774 mv "conftest.tmp" "conftest.in"
5775 cp "conftest.in" "conftest.nl"
5776 $as_echo 'FGREP' >> "conftest.nl"
5777 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5779 as_fn_arith $ac_count + 1 && ac_count=$as_val
5780 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5781 # Best one so far, save it but keep looking for a better one
5782 ac_cv_path_FGREP="$ac_path_FGREP"
5783 ac_path_FGREP_max=$ac_count
5784 fi
5785 # 10*(2^10) chars as input seems more than enough
5786 test $ac_count -gt 10 && break
5787 done
5788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5789esac
5790
5791 $ac_path_FGREP_found && break 3
5792 done
5793 done
5794 done
5795IFS=$as_save_IFS
5796 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005797 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 +00005798 fi
5799else
5800 ac_cv_path_FGREP=$FGREP
5801fi
5802
5803 fi
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5806$as_echo "$ac_cv_path_FGREP" >&6; }
5807 FGREP="$ac_cv_path_FGREP"
5808
5809
5810test -z "$GREP" && GREP=grep
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830# Check whether --with-gnu-ld was given.
5831if test "${with_gnu_ld+set}" = set; then :
5832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5833else
5834 with_gnu_ld=no
5835fi
5836
5837ac_prog=ld
5838if test "$GCC" = yes; then
5839 # Check if gcc -print-prog-name=ld gives a path.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5841$as_echo_n "checking for ld used by $CC... " >&6; }
5842 case $host in
5843 *-*-mingw*)
5844 # gcc leaves a trailing carriage return which upsets mingw
5845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5846 *)
5847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5848 esac
5849 case $ac_prog in
5850 # Accept absolute paths.
5851 [\\/]* | ?:[\\/]*)
5852 re_direlt='/[^/][^/]*/\.\./'
5853 # Canonicalize the pathname of ld
5854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5857 done
5858 test -z "$LD" && LD="$ac_prog"
5859 ;;
5860 "")
5861 # If it fails, then pretend we aren't using GCC.
5862 ac_prog=ld
5863 ;;
5864 *)
5865 # If it is relative, then search for the first ld in PATH.
5866 with_gnu_ld=unknown
5867 ;;
5868 esac
5869elif test "$with_gnu_ld" = yes; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5871$as_echo_n "checking for GNU ld... " >&6; }
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5874$as_echo_n "checking for non-GNU ld... " >&6; }
5875fi
Joseph Myers22e05272018-10-31 17:03:16 +00005876if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005877 $as_echo_n "(cached) " >&6
5878else
5879 if test -z "$LD"; then
5880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5881 for ac_dir in $PATH; do
5882 IFS="$lt_save_ifs"
5883 test -z "$ac_dir" && ac_dir=.
5884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5885 lt_cv_path_LD="$ac_dir/$ac_prog"
5886 # Check to see if the program is GNU ld. I'd rather use --version,
5887 # but apparently some variants of GNU ld only accept -v.
5888 # Break only if it was the GNU/non-GNU ld that we prefer.
5889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5890 *GNU* | *'with BFD'*)
5891 test "$with_gnu_ld" != no && break
5892 ;;
5893 *)
5894 test "$with_gnu_ld" != yes && break
5895 ;;
5896 esac
5897 fi
5898 done
5899 IFS="$lt_save_ifs"
5900else
5901 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5902fi
5903fi
5904
5905LD="$lt_cv_path_LD"
5906if test -n "$LD"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5908$as_echo "$LD" >&6; }
5909else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
Joseph Myers22e05272018-10-31 17:03:16 +00005913test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5915$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005916if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005917 $as_echo_n "(cached) " >&6
5918else
5919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5920case `$LD -v 2>&1 </dev/null` in
5921*GNU* | *'with BFD'*)
5922 lt_cv_prog_gnu_ld=yes
5923 ;;
5924*)
5925 lt_cv_prog_gnu_ld=no
5926 ;;
5927esac
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5930$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5931with_gnu_ld=$lt_cv_prog_gnu_ld
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5942$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005943if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005944 $as_echo_n "(cached) " >&6
5945else
5946 if test -n "$NM"; then
5947 # Let the user override the test.
5948 lt_cv_path_NM="$NM"
5949else
5950 lt_nm_to_check="${ac_tool_prefix}nm"
5951 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5952 lt_nm_to_check="$lt_nm_to_check nm"
5953 fi
5954 for lt_tmp_nm in $lt_nm_to_check; do
5955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5956 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5957 IFS="$lt_save_ifs"
5958 test -z "$ac_dir" && ac_dir=.
5959 tmp_nm="$ac_dir/$lt_tmp_nm"
5960 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5961 # Check to see if the nm accepts a BSD-compat flag.
5962 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5963 # nm: unknown option "B" ignored
5964 # Tru64's nm complains that /dev/null is an invalid object file
5965 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5966 */dev/null* | *'Invalid file or object type'*)
5967 lt_cv_path_NM="$tmp_nm -B"
5968 break
5969 ;;
5970 *)
5971 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5972 */dev/null*)
5973 lt_cv_path_NM="$tmp_nm -p"
5974 break
5975 ;;
5976 *)
5977 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5978 continue # so that we can try to find one that supports BSD flags
5979 ;;
5980 esac
5981 ;;
5982 esac
5983 fi
5984 done
5985 IFS="$lt_save_ifs"
5986 done
5987 : ${lt_cv_path_NM=no}
5988fi
5989fi
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5991$as_echo "$lt_cv_path_NM" >&6; }
5992if test "$lt_cv_path_NM" != "no"; then
5993 NM="$lt_cv_path_NM"
5994else
5995 # Didn't find any BSD compatible name lister, look for dumpbin.
5996 if test -n "$DUMPBIN"; then :
5997 # Let the user override the test.
5998 else
5999 if test -n "$ac_tool_prefix"; then
6000 for ac_prog in dumpbin "link -dump"
6001 do
6002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006006if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006007 $as_echo_n "(cached) " >&6
6008else
6009 if test -n "$DUMPBIN"; then
6010 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6011else
6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013for as_dir in $PATH
6014do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006019 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023done
6024 done
6025IFS=$as_save_IFS
6026
6027fi
6028fi
6029DUMPBIN=$ac_cv_prog_DUMPBIN
6030if test -n "$DUMPBIN"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6032$as_echo "$DUMPBIN" >&6; }
6033else
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035$as_echo "no" >&6; }
6036fi
6037
6038
6039 test -n "$DUMPBIN" && break
6040 done
6041fi
6042if test -z "$DUMPBIN"; then
6043 ac_ct_DUMPBIN=$DUMPBIN
6044 for ac_prog in dumpbin "link -dump"
6045do
6046 # Extract the first word of "$ac_prog", so it can be a program name with args.
6047set dummy $ac_prog; ac_word=$2
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006050if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006051 $as_echo_n "(cached) " >&6
6052else
6053 if test -n "$ac_ct_DUMPBIN"; then
6054 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006063 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068 done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6074if test -n "$ac_ct_DUMPBIN"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6076$as_echo "$ac_ct_DUMPBIN" >&6; }
6077else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080fi
6081
6082
6083 test -n "$ac_ct_DUMPBIN" && break
6084done
6085
6086 if test "x$ac_ct_DUMPBIN" = x; then
6087 DUMPBIN=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090yes:)
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093ac_tool_warned=yes ;;
6094esac
6095 DUMPBIN=$ac_ct_DUMPBIN
6096 fi
6097fi
6098
6099 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6100 *COFF*)
6101 DUMPBIN="$DUMPBIN -symbols"
6102 ;;
6103 *)
6104 DUMPBIN=:
6105 ;;
6106 esac
6107 fi
6108
6109 if test "$DUMPBIN" != ":"; then
6110 NM="$DUMPBIN"
6111 fi
6112fi
6113test -z "$NM" && NM=nm
6114
6115
6116
6117
6118
6119
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6121$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006122if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006123 $as_echo_n "(cached) " >&6
6124else
6125 lt_cv_nm_interface="BSD nm"
6126 echo "int some_variable = 0;" > conftest.$ac_ext
6127 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6128 (eval "$ac_compile" 2>conftest.err)
6129 cat conftest.err >&5
6130 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6131 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6132 cat conftest.err >&5
6133 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6134 cat conftest.out >&5
6135 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6136 lt_cv_nm_interface="MS dumpbin"
6137 fi
6138 rm -f conftest*
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6141$as_echo "$lt_cv_nm_interface" >&6; }
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6144$as_echo_n "checking whether ln -s works... " >&6; }
6145LN_S=$as_ln_s
6146if test "$LN_S" = "ln -s"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6148$as_echo "yes" >&6; }
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6151$as_echo "no, using $LN_S" >&6; }
6152fi
6153
6154# find the maximum length of command line arguments
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6156$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006157if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006158 $as_echo_n "(cached) " >&6
6159else
6160 i=0
6161 teststring="ABCD"
6162
6163 case $build_os in
6164 msdosdjgpp*)
6165 # On DJGPP, this test can blow up pretty badly due to problems in libc
6166 # (any single argument exceeding 2000 bytes causes a buffer overrun
6167 # during glob expansion). Even if it were fixed, the result of this
6168 # check would be larger than it should be.
6169 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6170 ;;
6171
6172 gnu*)
6173 # Under GNU Hurd, this test is not required because there is
6174 # no limit to the length of command line arguments.
6175 # Libtool will interpret -1 as no limit whatsoever
6176 lt_cv_sys_max_cmd_len=-1;
6177 ;;
6178
6179 cygwin* | mingw* | cegcc*)
6180 # On Win9x/ME, this test blows up -- it succeeds, but takes
6181 # about 5 minutes as the teststring grows exponentially.
6182 # Worse, since 9x/ME are not pre-emptively multitasking,
6183 # you end up with a "frozen" computer, even though with patience
6184 # the test eventually succeeds (with a max line length of 256k).
6185 # Instead, let's just punt: use the minimum linelength reported by
6186 # all of the supported platforms: 8192 (on NT/2K/XP).
6187 lt_cv_sys_max_cmd_len=8192;
6188 ;;
6189
6190 mint*)
6191 # On MiNT this can take a long time and run out of memory.
6192 lt_cv_sys_max_cmd_len=8192;
6193 ;;
6194
6195 amigaos*)
6196 # On AmigaOS with pdksh, this test takes hours, literally.
6197 # So we just punt and use a minimum line length of 8192.
6198 lt_cv_sys_max_cmd_len=8192;
6199 ;;
6200
6201 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6202 # This has been around since 386BSD, at least. Likely further.
6203 if test -x /sbin/sysctl; then
6204 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6205 elif test -x /usr/sbin/sysctl; then
6206 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6207 else
6208 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6209 fi
6210 # And add a safety zone
6211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6213 ;;
6214
6215 interix*)
6216 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6217 lt_cv_sys_max_cmd_len=196608
6218 ;;
6219
6220 osf*)
6221 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6222 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6223 # nice to cause kernel panics so lets avoid the loop below.
6224 # First set a reasonable default.
6225 lt_cv_sys_max_cmd_len=16384
6226 #
6227 if test -x /sbin/sysconfig; then
6228 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6229 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6230 esac
6231 fi
6232 ;;
6233 sco3.2v5*)
6234 lt_cv_sys_max_cmd_len=102400
6235 ;;
6236 sysv5* | sco5v6* | sysv4.2uw2*)
6237 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6238 if test -n "$kargmax"; then
6239 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6240 else
6241 lt_cv_sys_max_cmd_len=32768
6242 fi
6243 ;;
6244 *)
6245 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6246 if test -n "$lt_cv_sys_max_cmd_len"; then
6247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6249 else
6250 # Make teststring a little bigger before we do anything with it.
6251 # a 1K string should be a reasonable start.
6252 for i in 1 2 3 4 5 6 7 8 ; do
6253 teststring=$teststring$teststring
6254 done
6255 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6256 # If test is not a shell built-in, we'll probably end up computing a
6257 # maximum length that is only half of the actual maximum length, but
6258 # we can't tell.
6259 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6260 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6261 test $i != 17 # 1/2 MB should be enough
6262 do
6263 i=`expr $i + 1`
6264 teststring=$teststring$teststring
6265 done
6266 # Only check the string length outside the loop.
6267 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6268 teststring=
6269 # Add a significant safety factor because C++ compilers can tack on
6270 # massive amounts of additional arguments before passing them to the
6271 # linker. It appears as though 1/2 is a usable value.
6272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6273 fi
6274 ;;
6275 esac
6276
6277fi
6278
6279if test -n $lt_cv_sys_max_cmd_len ; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6281$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6282else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6284$as_echo "none" >&6; }
6285fi
6286max_cmd_len=$lt_cv_sys_max_cmd_len
6287
6288
6289
6290
6291
6292
6293: ${CP="cp -f"}
6294: ${MV="mv -f"}
6295: ${RM="rm -f"}
6296
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6298$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6299# Try some XSI features
6300xsi_shell=no
6301( _lt_dummy="a/b/c"
6302 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6303 = c,a/b,, \
6304 && eval 'test $(( 1 + 1 )) -eq 2 \
6305 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6306 && xsi_shell=yes
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6308$as_echo "$xsi_shell" >&6; }
6309
6310
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6312$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6313lt_shell_append=no
6314( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6315 >/dev/null 2>&1 \
6316 && lt_shell_append=yes
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6318$as_echo "$lt_shell_append" >&6; }
6319
6320
6321if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6322 lt_unset=unset
6323else
6324 lt_unset=false
6325fi
6326
6327
6328
6329
6330
6331# test EBCDIC or ASCII
6332case `echo X|tr X '\101'` in
6333 A) # ASCII based system
6334 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6335 lt_SP2NL='tr \040 \012'
6336 lt_NL2SP='tr \015\012 \040\040'
6337 ;;
6338 *) # EBCDIC based system
6339 lt_SP2NL='tr \100 \n'
6340 lt_NL2SP='tr \r\n \100\100'
6341 ;;
6342esac
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6353$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006354if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006355 $as_echo_n "(cached) " >&6
6356else
6357 lt_cv_ld_reload_flag='-r'
6358fi
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6360$as_echo "$lt_cv_ld_reload_flag" >&6; }
6361reload_flag=$lt_cv_ld_reload_flag
6362case $reload_flag in
6363"" | " "*) ;;
6364*) reload_flag=" $reload_flag" ;;
6365esac
6366reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367case $host_os in
6368 darwin*)
6369 if test "$GCC" = yes; then
6370 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6371 else
6372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6373 fi
6374 ;;
6375esac
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6387set dummy ${ac_tool_prefix}objdump; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006390if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006391 $as_echo_n "(cached) " >&6
6392else
6393 if test -n "$OBJDUMP"; then
6394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408 done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413OBJDUMP=$ac_cv_prog_OBJDUMP
6414if test -n "$OBJDUMP"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6416$as_echo "$OBJDUMP" >&6; }
6417else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422
6423fi
6424if test -z "$ac_cv_prog_OBJDUMP"; then
6425 ac_ct_OBJDUMP=$OBJDUMP
6426 # Extract the first word of "objdump", so it can be a program name with args.
6427set dummy objdump; ac_word=$2
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006430if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006431 $as_echo_n "(cached) " >&6
6432else
6433 if test -n "$ac_ct_OBJDUMP"; then
6434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447done
6448 done
6449IFS=$as_save_IFS
6450
6451fi
6452fi
6453ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6454if test -n "$ac_ct_OBJDUMP"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6456$as_echo "$ac_ct_OBJDUMP" >&6; }
6457else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459$as_echo "no" >&6; }
6460fi
6461
6462 if test "x$ac_ct_OBJDUMP" = x; then
6463 OBJDUMP="false"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466yes:)
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469ac_tool_warned=yes ;;
6470esac
6471 OBJDUMP=$ac_ct_OBJDUMP
6472 fi
6473else
6474 OBJDUMP="$ac_cv_prog_OBJDUMP"
6475fi
6476
6477test -z "$OBJDUMP" && OBJDUMP=objdump
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6488$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006489if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006490 $as_echo_n "(cached) " >&6
6491else
6492 lt_cv_file_magic_cmd='$MAGIC_CMD'
6493lt_cv_file_magic_test_file=
6494lt_cv_deplibs_check_method='unknown'
6495# Need to set the preceding variable on all platforms that support
6496# interlibrary dependencies.
6497# 'none' -- dependencies not supported.
6498# `unknown' -- same as none, but documents that we really don't know.
6499# 'pass_all' -- all dependencies passed with no checks.
6500# 'test_compile' -- check by making test program.
6501# 'file_magic [[regex]]' -- check by looking for files in library path
6502# which responds to the $file_magic_cmd with a given extended regex.
6503# If you have `file' or equivalent on your system and you're not sure
6504# whether `pass_all' will *always* work, you probably want this one.
6505
6506case $host_os in
6507aix[4-9]*)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510
6511beos*)
6512 lt_cv_deplibs_check_method=pass_all
6513 ;;
6514
6515bsdi[45]*)
6516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6517 lt_cv_file_magic_cmd='/usr/bin/file -L'
6518 lt_cv_file_magic_test_file=/shlib/libc.so
6519 ;;
6520
6521cygwin*)
6522 # func_win32_libid is a shell function defined in ltmain.sh
6523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524 lt_cv_file_magic_cmd='func_win32_libid'
6525 ;;
6526
6527mingw* | pw32*)
6528 # Base MSYS/MinGW do not provide the 'file' command needed by
6529 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6530 # unless we find 'file', for example because we are cross-compiling.
6531 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6532 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6533 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6534 lt_cv_file_magic_cmd='func_win32_libid'
6535 else
6536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6537 lt_cv_file_magic_cmd='$OBJDUMP -f'
6538 fi
6539 ;;
6540
6541cegcc*)
6542 # use the weaker test based on 'objdump'. See mingw*.
6543 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6544 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 ;;
6546
6547darwin* | rhapsody*)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550
6551freebsd* | dragonfly*)
6552 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6553 case $host_cpu in
6554 i*86 )
6555 # Not sure whether the presence of OpenBSD here was a mistake.
6556 # Let's accept both of them until this is cleared up.
6557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6558 lt_cv_file_magic_cmd=/usr/bin/file
6559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6560 ;;
6561 esac
6562 else
6563 lt_cv_deplibs_check_method=pass_all
6564 fi
6565 ;;
6566
6567gnu*)
6568 lt_cv_deplibs_check_method=pass_all
6569 ;;
6570
6571haiku*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574
6575hpux10.20* | hpux11*)
6576 lt_cv_file_magic_cmd=/usr/bin/file
6577 case $host_cpu in
6578 ia64*)
6579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6581 ;;
6582 hppa*64*)
6583 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]'
6584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6585 ;;
6586 *)
6587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6589 ;;
6590 esac
6591 ;;
6592
6593interix[3-9]*)
6594 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6596 ;;
6597
6598irix5* | irix6* | nonstopux*)
6599 case $LD in
6600 *-32|*"-32 ") libmagic=32-bit;;
6601 *-n32|*"-n32 ") libmagic=N32;;
6602 *-64|*"-64 ") libmagic=64-bit;;
6603 *) libmagic=never-match;;
6604 esac
6605 lt_cv_deplibs_check_method=pass_all
6606 ;;
6607
6608# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00006609linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00006610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612
6613netbsd*)
6614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6616 else
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6618 fi
6619 ;;
6620
6621newos6*)
6622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6623 lt_cv_file_magic_cmd=/usr/bin/file
6624 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6625 ;;
6626
6627*nto* | *qnx*)
6628 lt_cv_deplibs_check_method=pass_all
6629 ;;
6630
6631openbsd*)
6632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6634 else
6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6636 fi
6637 ;;
6638
6639osf3* | osf4* | osf5*)
6640 lt_cv_deplibs_check_method=pass_all
6641 ;;
6642
6643rdos*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647solaris*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655sysv4 | sysv4.3*)
6656 case $host_vendor in
6657 motorola)
6658 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]'
6659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6660 ;;
6661 ncr)
6662 lt_cv_deplibs_check_method=pass_all
6663 ;;
6664 sequent)
6665 lt_cv_file_magic_cmd='/bin/file'
6666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6667 ;;
6668 sni)
6669 lt_cv_file_magic_cmd='/bin/file'
6670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6671 lt_cv_file_magic_test_file=/lib/libc.so
6672 ;;
6673 siemens)
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676 pc)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679 esac
6680 ;;
6681
6682tpf*)
6683 lt_cv_deplibs_check_method=pass_all
6684 ;;
6685esac
6686
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6689$as_echo "$lt_cv_deplibs_check_method" >&6; }
6690file_magic_cmd=$lt_cv_file_magic_cmd
6691deplibs_check_method=$lt_cv_deplibs_check_method
6692test -z "$deplibs_check_method" && deplibs_check_method=unknown
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6707set dummy ${ac_tool_prefix}ar; ac_word=$2
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006710if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006711 $as_echo_n "(cached) " >&6
6712else
6713 if test -n "$AR"; then
6714 ac_cv_prog_AR="$AR" # Let the user override the test.
6715else
6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006723 ac_cv_prog_AR="${ac_tool_prefix}ar"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728 done
6729IFS=$as_save_IFS
6730
6731fi
6732fi
6733AR=$ac_cv_prog_AR
6734if test -n "$AR"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6736$as_echo "$AR" >&6; }
6737else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739$as_echo "no" >&6; }
6740fi
6741
6742
6743fi
6744if test -z "$ac_cv_prog_AR"; then
6745 ac_ct_AR=$AR
6746 # Extract the first word of "ar", so it can be a program name with args.
6747set dummy ar; ac_word=$2
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006750if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006751 $as_echo_n "(cached) " >&6
6752else
6753 if test -n "$ac_ct_AR"; then
6754 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006763 ac_cv_prog_ac_ct_AR="ar"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
6768 done
6769IFS=$as_save_IFS
6770
6771fi
6772fi
6773ac_ct_AR=$ac_cv_prog_ac_ct_AR
6774if test -n "$ac_ct_AR"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6776$as_echo "$ac_ct_AR" >&6; }
6777else
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779$as_echo "no" >&6; }
6780fi
6781
6782 if test "x$ac_ct_AR" = x; then
6783 AR="false"
6784 else
6785 case $cross_compiling:$ac_tool_warned in
6786yes:)
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789ac_tool_warned=yes ;;
6790esac
6791 AR=$ac_ct_AR
6792 fi
6793else
6794 AR="$ac_cv_prog_AR"
6795fi
6796
6797test -z "$AR" && AR=ar
6798test -z "$AR_FLAGS" && AR_FLAGS=cru
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}strip; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006815if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006816 $as_echo_n "(cached) " >&6
6817else
6818 if test -n "$STRIP"; then
6819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833 done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838STRIP=$ac_cv_prog_STRIP
6839if test -n "$STRIP"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6841$as_echo "$STRIP" >&6; }
6842else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_STRIP"; then
6850 ac_ct_STRIP=$STRIP
6851 # Extract the first word of "strip", so it can be a program name with args.
6852set dummy strip; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006855if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$ac_ct_STRIP"; then
6859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006868 ac_cv_prog_ac_ct_STRIP="strip"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6879if test -n "$ac_ct_STRIP"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6881$as_echo "$ac_ct_STRIP" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887 if test "x$ac_ct_STRIP" = x; then
6888 STRIP=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896 STRIP=$ac_ct_STRIP
6897 fi
6898else
6899 STRIP="$ac_cv_prog_STRIP"
6900fi
6901
6902test -z "$STRIP" && STRIP=:
6903
6904
6905
6906
6907
6908
6909if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6911set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006914if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006915 $as_echo_n "(cached) " >&6
6916else
6917 if test -n "$RANLIB"; then
6918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931done
6932 done
6933IFS=$as_save_IFS
6934
6935fi
6936fi
6937RANLIB=$ac_cv_prog_RANLIB
6938if test -n "$RANLIB"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6940$as_echo "$RANLIB" >&6; }
6941else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
6944fi
6945
6946
6947fi
6948if test -z "$ac_cv_prog_RANLIB"; then
6949 ac_ct_RANLIB=$RANLIB
6950 # Extract the first word of "ranlib", so it can be a program name with args.
6951set dummy ranlib; ac_word=$2
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006954if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006955 $as_echo_n "(cached) " >&6
6956else
6957 if test -n "$ac_ct_RANLIB"; then
6958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006967 ac_cv_prog_ac_ct_RANLIB="ranlib"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972 done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6978if test -n "$ac_ct_RANLIB"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6980$as_echo "$ac_ct_RANLIB" >&6; }
6981else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983$as_echo "no" >&6; }
6984fi
6985
6986 if test "x$ac_ct_RANLIB" = x; then
6987 RANLIB=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990yes:)
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993ac_tool_warned=yes ;;
6994esac
6995 RANLIB=$ac_ct_RANLIB
6996 fi
6997else
6998 RANLIB="$ac_cv_prog_RANLIB"
6999fi
7000
7001test -z "$RANLIB" && RANLIB=:
7002
7003
7004
7005
7006
7007
7008# Determine commands to create old-style static archives.
7009old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7010old_postinstall_cmds='chmod 644 $oldlib'
7011old_postuninstall_cmds=
7012
7013if test -n "$RANLIB"; then
7014 case $host_os in
7015 openbsd*)
7016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7017 ;;
7018 *)
7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7020 ;;
7021 esac
7022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7023fi
7024
7025case $host_os in
7026 darwin*)
7027 lock_old_archive_extraction=yes ;;
7028 *)
7029 lock_old_archive_extraction=no ;;
7030esac
7031
7032
7033
7034
7035
7036
7037
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# If no C compiler was specified, use CC.
7071LTCC=${LTCC-"$CC"}
7072
7073# If no C compiler flags were specified, use CFLAGS.
7074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7075
7076# Allow CC to be a program name with arguments.
7077compiler=$CC
7078
7079
7080# Check for command to grab the raw symbol name followed by C symbol from nm.
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7082$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007083if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007084 $as_echo_n "(cached) " >&6
7085else
7086
7087# These are sane defaults that work on at least a few old systems.
7088# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7089
7090# Character class describing NM global symbol codes.
7091symcode='[BCDEGRST]'
7092
7093# Regexp to match symbols that can be accessed directly from C.
7094sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7095
7096# Define system-specific variables.
7097case $host_os in
7098aix*)
7099 symcode='[BCDT]'
7100 ;;
7101cygwin* | mingw* | pw32* | cegcc*)
7102 symcode='[ABCDGISTW]'
7103 ;;
7104hpux*)
7105 if test "$host_cpu" = ia64; then
7106 symcode='[ABCDEGRST]'
7107 fi
7108 ;;
7109irix* | nonstopux*)
7110 symcode='[BCDEGRST]'
7111 ;;
7112osf*)
7113 symcode='[BCDEGQRST]'
7114 ;;
7115solaris*)
7116 symcode='[BDRT]'
7117 ;;
7118sco3.2v5*)
7119 symcode='[DT]'
7120 ;;
7121sysv4.2uw2*)
7122 symcode='[DT]'
7123 ;;
7124sysv5* | sco5v6* | unixware* | OpenUNIX*)
7125 symcode='[ABDT]'
7126 ;;
7127sysv4)
7128 symcode='[DFNSTU]'
7129 ;;
7130esac
7131
7132# If we're using GNU nm, then use its standard symbol codes.
7133case `$NM -V 2>&1` in
7134*GNU* | *'with BFD'*)
7135 symcode='[ABCDGIRSTW]' ;;
7136esac
7137
7138# Transform an extracted symbol line into a proper C declaration.
7139# Some systems (esp. on ia64) link data and code symbols differently,
7140# so use this general approach.
7141lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7142
7143# Transform an extracted symbol line into symbol name and symbol address
7144lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7145lt_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'"
7146
7147# Handle CRLF in mingw tool chain
7148opt_cr=
7149case $build_os in
7150mingw*)
7151 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7152 ;;
7153esac
7154
7155# Try without a prefix underscore, then with it.
7156for ac_symprfx in "" "_"; do
7157
7158 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7159 symxfrm="\\1 $ac_symprfx\\2 \\2"
7160
7161 # Write the raw and C identifiers.
7162 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7163 # Fake it for dumpbin and say T for any non-static function
7164 # and D for any global variable.
7165 # Also find C++ and __fastcall symbols from MSVC++,
7166 # which start with @ or ?.
7167 lt_cv_sys_global_symbol_pipe="$AWK '"\
7168" {last_section=section; section=\$ 3};"\
7169" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7170" \$ 0!~/External *\|/{next};"\
7171" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7172" {if(hide[section]) next};"\
7173" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7174" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7175" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7176" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7177" ' prfx=^$ac_symprfx"
7178 else
7179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7180 fi
7181
7182 # Check to see that the pipe works correctly.
7183 pipe_works=no
7184
7185 rm -f conftest*
7186 cat > conftest.$ac_ext <<_LT_EOF
7187#ifdef __cplusplus
7188extern "C" {
7189#endif
7190char nm_test_var;
7191void nm_test_func(void);
7192void nm_test_func(void){}
7193#ifdef __cplusplus
7194}
7195#endif
7196int main(){nm_test_var='a';nm_test_func();return(0);}
7197_LT_EOF
7198
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 # Now try to grab the symbols.
7205 nlist=conftest.nm
7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7207 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7208 ac_status=$?
7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; } && test -s "$nlist"; then
7211 # Try sorting and uniquifying the output.
7212 if sort "$nlist" | uniq > "$nlist"T; then
7213 mv -f "$nlist"T "$nlist"
7214 else
7215 rm -f "$nlist"T
7216 fi
7217
7218 # Make sure that we snagged all the symbols we need.
7219 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7220 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7221 cat <<_LT_EOF > conftest.$ac_ext
7222#ifdef __cplusplus
7223extern "C" {
7224#endif
7225
7226_LT_EOF
7227 # Now generate the symbol file.
7228 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7229
7230 cat <<_LT_EOF >> conftest.$ac_ext
7231
7232/* The mapping between symbol names and symbols. */
7233const struct {
7234 const char *name;
7235 void *address;
7236}
7237lt__PROGRAM__LTX_preloaded_symbols[] =
7238{
7239 { "@PROGRAM@", (void *) 0 },
7240_LT_EOF
7241 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7242 cat <<\_LT_EOF >> conftest.$ac_ext
7243 {0, (void *) 0}
7244};
7245
7246/* This works around a problem in FreeBSD linker */
7247#ifdef FREEBSD_WORKAROUND
7248static const void *lt_preloaded_setup() {
7249 return lt__PROGRAM__LTX_preloaded_symbols;
7250}
7251#endif
7252
7253#ifdef __cplusplus
7254}
7255#endif
7256_LT_EOF
7257 # Now try linking the two files.
7258 mv conftest.$ac_objext conftstm.$ac_objext
7259 lt_save_LIBS="$LIBS"
7260 lt_save_CFLAGS="$CFLAGS"
7261 LIBS="conftstm.$ac_objext"
7262 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7264 (eval $ac_link) 2>&5
7265 ac_status=$?
7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7268 pipe_works=yes
7269 fi
7270 LIBS="$lt_save_LIBS"
7271 CFLAGS="$lt_save_CFLAGS"
7272 else
7273 echo "cannot find nm_test_func in $nlist" >&5
7274 fi
7275 else
7276 echo "cannot find nm_test_var in $nlist" >&5
7277 fi
7278 else
7279 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7280 fi
7281 else
7282 echo "$progname: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7284 fi
7285 rm -rf conftest* conftst*
7286
7287 # Do not use the global_symbol_pipe unless it works.
7288 if test "$pipe_works" = yes; then
7289 break
7290 else
7291 lt_cv_sys_global_symbol_pipe=
7292 fi
7293done
7294
7295fi
7296
7297if test -z "$lt_cv_sys_global_symbol_pipe"; then
7298 lt_cv_sys_global_symbol_to_cdecl=
7299fi
7300if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7302$as_echo "failed" >&6; }
7303else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7305$as_echo "ok" >&6; }
7306fi
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
Iain Buclawb4c522f2018-10-28 19:51:47 +00007329# Check whether --enable-libtool-lock was given.
7330if test "${enable_libtool_lock+set}" = set; then :
7331 enableval=$enable_libtool_lock;
7332fi
7333
7334test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7335
7336# Some flags need to be propagated to the compiler or linker for good
7337# libtool support.
7338case $host in
7339ia64-*-hpux*)
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346 test $ac_status = 0; }; then
7347 case `/usr/bin/file conftest.$ac_objext` in
7348 *ELF-32*)
7349 HPUX_IA64_MODE="32"
7350 ;;
7351 *ELF-64*)
7352 HPUX_IA64_MODE="64"
7353 ;;
7354 esac
7355 fi
7356 rm -rf conftest*
7357 ;;
7358*-*-irix6*)
7359 # Find out which ABI we are using.
7360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7362 (eval $ac_compile) 2>&5
7363 ac_status=$?
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; then
7366 if test "$lt_cv_prog_gnu_ld" = yes; then
7367 case `/usr/bin/file conftest.$ac_objext` in
7368 *32-bit*)
7369 LD="${LD-ld} -melf32bsmip"
7370 ;;
7371 *N32*)
7372 LD="${LD-ld} -melf32bmipn32"
7373 ;;
7374 *64-bit*)
7375 LD="${LD-ld} -melf64bmip"
7376 ;;
7377 esac
7378 else
7379 case `/usr/bin/file conftest.$ac_objext` in
7380 *32-bit*)
7381 LD="${LD-ld} -32"
7382 ;;
7383 *N32*)
7384 LD="${LD-ld} -n32"
7385 ;;
7386 *64-bit*)
7387 LD="${LD-ld} -64"
7388 ;;
7389 esac
7390 fi
7391 fi
7392 rm -rf conftest*
7393 ;;
7394
7395x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7396s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7397 # Find out which ABI we are using.
7398 echo 'int i;' > conftest.$ac_ext
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7400 (eval $ac_compile) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }; then
7404 case `/usr/bin/file conftest.o` in
7405 *32-bit*)
7406 case $host in
7407 x86_64-*kfreebsd*-gnu)
7408 LD="${LD-ld} -m elf_i386_fbsd"
7409 ;;
7410 x86_64-*linux*)
7411 case `/usr/bin/file conftest.o` in
7412 *x86-64*)
7413 LD="${LD-ld} -m elf32_x86_64"
7414 ;;
7415 *)
7416 LD="${LD-ld} -m elf_i386"
7417 ;;
7418 esac
7419 ;;
7420 powerpc64le-*linux*)
7421 LD="${LD-ld} -m elf32lppclinux"
7422 ;;
7423 powerpc64-*linux*)
7424 LD="${LD-ld} -m elf32ppclinux"
7425 ;;
7426 s390x-*linux*)
7427 LD="${LD-ld} -m elf_s390"
7428 ;;
7429 sparc64-*linux*)
7430 LD="${LD-ld} -m elf32_sparc"
7431 ;;
7432 esac
7433 ;;
7434 *64-bit*)
7435 case $host in
7436 x86_64-*kfreebsd*-gnu)
7437 LD="${LD-ld} -m elf_x86_64_fbsd"
7438 ;;
7439 x86_64-*linux*)
7440 LD="${LD-ld} -m elf_x86_64"
7441 ;;
7442 powerpcle-*linux*)
7443 LD="${LD-ld} -m elf64lppc"
7444 ;;
7445 powerpc-*linux*)
7446 LD="${LD-ld} -m elf64ppc"
7447 ;;
7448 s390*-*linux*|s390*-*tpf*)
7449 LD="${LD-ld} -m elf64_s390"
7450 ;;
7451 sparc*-*linux*)
7452 LD="${LD-ld} -m elf64_sparc"
7453 ;;
7454 esac
7455 ;;
7456 esac
7457 fi
7458 rm -rf conftest*
7459 ;;
7460
7461*-*-sco3.2v5*)
7462 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7463 SAVE_CFLAGS="$CFLAGS"
7464 CFLAGS="$CFLAGS -belf"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7466$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007467if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007468 $as_echo_n "(cached) " >&6
7469else
7470 ac_ext=c
7471ac_cpp='$CPP $CPPFLAGS'
7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477/* end confdefs.h. */
7478
7479int
7480main ()
7481{
7482
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487if ac_fn_c_try_link "$LINENO"; then :
7488 lt_cv_cc_needs_belf=yes
7489else
7490 lt_cv_cc_needs_belf=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494 ac_ext=c
7495ac_cpp='$CPP $CPPFLAGS'
7496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7502$as_echo "$lt_cv_cc_needs_belf" >&6; }
7503 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7504 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7505 CFLAGS="$SAVE_CFLAGS"
7506 fi
7507 ;;
7508sparc*-*solaris*)
7509 # Find out which ABI we are using.
7510 echo 'int i;' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 case `/usr/bin/file conftest.o` in
7517 *64-bit*)
7518 case $lt_cv_prog_gnu_ld in
7519 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7520 *)
7521 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7522 LD="${LD-ld} -64"
7523 fi
7524 ;;
7525 esac
7526 ;;
7527 esac
7528 fi
7529 rm -rf conftest*
7530 ;;
7531esac
7532
7533need_locks="$enable_libtool_lock"
7534
7535
7536 case $host_os in
7537 rhapsody* | darwin*)
7538 if test -n "$ac_tool_prefix"; then
7539 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7540set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007543if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007544 $as_echo_n "(cached) " >&6
7545else
7546 if test -n "$DSYMUTIL"; then
7547 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7548else
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007556 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560done
7561 done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566DSYMUTIL=$ac_cv_prog_DSYMUTIL
7567if test -n "$DSYMUTIL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7569$as_echo "$DSYMUTIL" >&6; }
7570else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
7574
7575
7576fi
7577if test -z "$ac_cv_prog_DSYMUTIL"; then
7578 ac_ct_DSYMUTIL=$DSYMUTIL
7579 # Extract the first word of "dsymutil", so it can be a program name with args.
7580set dummy dsymutil; ac_word=$2
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007583if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007584 $as_echo_n "(cached) " >&6
7585else
7586 if test -n "$ac_ct_DSYMUTIL"; then
7587 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007596 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600done
7601 done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7607if test -n "$ac_ct_DSYMUTIL"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7609$as_echo "$ac_ct_DSYMUTIL" >&6; }
7610else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614
7615 if test "x$ac_ct_DSYMUTIL" = x; then
7616 DSYMUTIL=":"
7617 else
7618 case $cross_compiling:$ac_tool_warned in
7619yes:)
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622ac_tool_warned=yes ;;
7623esac
7624 DSYMUTIL=$ac_ct_DSYMUTIL
7625 fi
7626else
7627 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7628fi
7629
7630 if test -n "$ac_tool_prefix"; then
7631 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7632set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007635if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007636 $as_echo_n "(cached) " >&6
7637else
7638 if test -n "$NMEDIT"; then
7639 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007648 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652done
7653 done
7654IFS=$as_save_IFS
7655
7656fi
7657fi
7658NMEDIT=$ac_cv_prog_NMEDIT
7659if test -n "$NMEDIT"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7661$as_echo "$NMEDIT" >&6; }
7662else
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667
7668fi
7669if test -z "$ac_cv_prog_NMEDIT"; then
7670 ac_ct_NMEDIT=$NMEDIT
7671 # Extract the first word of "nmedit", so it can be a program name with args.
7672set dummy nmedit; ac_word=$2
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007675if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007676 $as_echo_n "(cached) " >&6
7677else
7678 if test -n "$ac_ct_NMEDIT"; then
7679 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007688 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692done
7693 done
7694IFS=$as_save_IFS
7695
7696fi
7697fi
7698ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7699if test -n "$ac_ct_NMEDIT"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7701$as_echo "$ac_ct_NMEDIT" >&6; }
7702else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705fi
7706
7707 if test "x$ac_ct_NMEDIT" = x; then
7708 NMEDIT=":"
7709 else
7710 case $cross_compiling:$ac_tool_warned in
7711yes:)
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714ac_tool_warned=yes ;;
7715esac
7716 NMEDIT=$ac_ct_NMEDIT
7717 fi
7718else
7719 NMEDIT="$ac_cv_prog_NMEDIT"
7720fi
7721
7722 if test -n "$ac_tool_prefix"; then
7723 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7724set dummy ${ac_tool_prefix}lipo; ac_word=$2
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007727if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007728 $as_echo_n "(cached) " >&6
7729else
7730 if test -n "$LIPO"; then
7731 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7732else
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007740 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745 done
7746IFS=$as_save_IFS
7747
7748fi
7749fi
7750LIPO=$ac_cv_prog_LIPO
7751if test -n "$LIPO"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7753$as_echo "$LIPO" >&6; }
7754else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757fi
7758
7759
7760fi
7761if test -z "$ac_cv_prog_LIPO"; then
7762 ac_ct_LIPO=$LIPO
7763 # Extract the first word of "lipo", so it can be a program name with args.
7764set dummy lipo; ac_word=$2
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007767if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007768 $as_echo_n "(cached) " >&6
7769else
7770 if test -n "$ac_ct_LIPO"; then
7771 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7772else
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007780 ac_cv_prog_ac_ct_LIPO="lipo"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785 done
7786IFS=$as_save_IFS
7787
7788fi
7789fi
7790ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7791if test -n "$ac_ct_LIPO"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7793$as_echo "$ac_ct_LIPO" >&6; }
7794else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
7797fi
7798
7799 if test "x$ac_ct_LIPO" = x; then
7800 LIPO=":"
7801 else
7802 case $cross_compiling:$ac_tool_warned in
7803yes:)
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7806ac_tool_warned=yes ;;
7807esac
7808 LIPO=$ac_ct_LIPO
7809 fi
7810else
7811 LIPO="$ac_cv_prog_LIPO"
7812fi
7813
7814 if test -n "$ac_tool_prefix"; then
7815 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7816set dummy ${ac_tool_prefix}otool; ac_word=$2
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007819if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007820 $as_echo_n "(cached) " >&6
7821else
7822 if test -n "$OTOOL"; then
7823 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7824else
7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007832 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836done
7837 done
7838IFS=$as_save_IFS
7839
7840fi
7841fi
7842OTOOL=$ac_cv_prog_OTOOL
7843if test -n "$OTOOL"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7845$as_echo "$OTOOL" >&6; }
7846else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848$as_echo "no" >&6; }
7849fi
7850
7851
7852fi
7853if test -z "$ac_cv_prog_OTOOL"; then
7854 ac_ct_OTOOL=$OTOOL
7855 # Extract the first word of "otool", so it can be a program name with args.
7856set dummy otool; ac_word=$2
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007859if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 if test -n "$ac_ct_OTOOL"; then
7863 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7864else
7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007872 ac_cv_prog_ac_ct_OTOOL="otool"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876done
7877 done
7878IFS=$as_save_IFS
7879
7880fi
7881fi
7882ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7883if test -n "$ac_ct_OTOOL"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7885$as_echo "$ac_ct_OTOOL" >&6; }
7886else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889fi
7890
7891 if test "x$ac_ct_OTOOL" = x; then
7892 OTOOL=":"
7893 else
7894 case $cross_compiling:$ac_tool_warned in
7895yes:)
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898ac_tool_warned=yes ;;
7899esac
7900 OTOOL=$ac_ct_OTOOL
7901 fi
7902else
7903 OTOOL="$ac_cv_prog_OTOOL"
7904fi
7905
7906 if test -n "$ac_tool_prefix"; then
7907 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7908set dummy ${ac_tool_prefix}otool64; ac_word=$2
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007911if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007912 $as_echo_n "(cached) " >&6
7913else
7914 if test -n "$OTOOL64"; then
7915 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7916else
7917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007924 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928done
7929 done
7930IFS=$as_save_IFS
7931
7932fi
7933fi
7934OTOOL64=$ac_cv_prog_OTOOL64
7935if test -n "$OTOOL64"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7937$as_echo "$OTOOL64" >&6; }
7938else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940$as_echo "no" >&6; }
7941fi
7942
7943
7944fi
7945if test -z "$ac_cv_prog_OTOOL64"; then
7946 ac_ct_OTOOL64=$OTOOL64
7947 # Extract the first word of "otool64", so it can be a program name with args.
7948set dummy otool64; ac_word=$2
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007951if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007952 $as_echo_n "(cached) " >&6
7953else
7954 if test -n "$ac_ct_OTOOL64"; then
7955 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007964 ac_cv_prog_ac_ct_OTOOL64="otool64"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968done
7969 done
7970IFS=$as_save_IFS
7971
7972fi
7973fi
7974ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7975if test -n "$ac_ct_OTOOL64"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7977$as_echo "$ac_ct_OTOOL64" >&6; }
7978else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983 if test "x$ac_ct_OTOOL64" = x; then
7984 OTOOL64=":"
7985 else
7986 case $cross_compiling:$ac_tool_warned in
7987yes:)
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7990ac_tool_warned=yes ;;
7991esac
7992 OTOOL64=$ac_ct_OTOOL64
7993 fi
7994else
7995 OTOOL64="$ac_cv_prog_OTOOL64"
7996fi
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8025$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008026if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008027 $as_echo_n "(cached) " >&6
8028else
8029 lt_cv_apple_cc_single_mod=no
8030 if test -z "${LT_MULTI_MODULE}"; then
8031 # By default we will add the -single_module flag. You can override
8032 # by either setting the environment variable LT_MULTI_MODULE
8033 # non-empty at configure time, or by adding -multi_module to the
8034 # link flags.
8035 rm -rf libconftest.dylib*
8036 echo "int foo(void){return 1;}" > conftest.c
8037 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8038-dynamiclib -Wl,-single_module conftest.c" >&5
8039 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8040 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8041 _lt_result=$?
8042 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8043 lt_cv_apple_cc_single_mod=yes
8044 else
8045 cat conftest.err >&5
8046 fi
8047 rm -rf libconftest.dylib*
8048 rm -f conftest.*
8049 fi
8050fi
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8052$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8054$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008055if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008056 $as_echo_n "(cached) " >&6
8057else
8058 lt_cv_ld_exported_symbols_list=no
8059 save_LDFLAGS=$LDFLAGS
8060 echo "_main" > conftest.sym
8061 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h. */
8064
8065int
8066main ()
8067{
8068
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073if ac_fn_c_try_link "$LINENO"; then :
8074 lt_cv_ld_exported_symbols_list=yes
8075else
8076 lt_cv_ld_exported_symbols_list=no
8077fi
8078rm -f core conftest.err conftest.$ac_objext \
8079 conftest$ac_exeext conftest.$ac_ext
8080 LDFLAGS="$save_LDFLAGS"
8081
8082fi
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8084$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8086$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008087if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008088 $as_echo_n "(cached) " >&6
8089else
8090 lt_cv_ld_force_load=no
8091 cat > conftest.c << _LT_EOF
8092int forced_loaded() { return 2;}
8093_LT_EOF
8094 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8095 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8096 echo "$AR cru libconftest.a conftest.o" >&5
8097 $AR cru libconftest.a conftest.o 2>&5
8098 cat > conftest.c << _LT_EOF
8099int main() { return 0;}
8100_LT_EOF
8101 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8102 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8103 _lt_result=$?
8104 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8105 lt_cv_ld_force_load=yes
8106 else
8107 cat conftest.err >&5
8108 fi
8109 rm -f conftest.err libconftest.a conftest conftest.c
8110 rm -rf conftest.dSYM
8111
8112fi
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8114$as_echo "$lt_cv_ld_force_load" >&6; }
8115 case $host_os in
8116 rhapsody* | darwin1.[012])
8117 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8118 darwin1.*)
8119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8120 darwin*) # darwin 5.x on
8121 # if running on 10.5 or later, the deployment target defaults
8122 # to the OS version, if on x86, and 10.4, the deployment
8123 # target defaults to 10.4. Don't you love it?
8124 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8125 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8127 10.[012][,.]*)
8128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8129 10.*)
8130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8131 esac
8132 ;;
8133 esac
8134 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8135 _lt_dar_single_mod='$single_module'
8136 fi
8137 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8138 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8139 else
8140 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8141 fi
8142 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8143 _lt_dsymutil='~$DSYMUTIL $lib || :'
8144 else
8145 _lt_dsymutil=
8146 fi
8147 ;;
8148 esac
8149
Iain Buclawb4c522f2018-10-28 19:51:47 +00008150for ac_header in dlfcn.h
8151do :
8152 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8153"
Joseph Myers22e05272018-10-31 17:03:16 +00008154if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008155 cat >>confdefs.h <<_ACEOF
8156#define HAVE_DLFCN_H 1
8157_ACEOF
8158
8159fi
8160
8161done
8162
8163
8164
8165
8166
8167# Set options
8168enable_dlopen=yes
8169
8170
8171
8172
8173 enable_win32_dll=no
8174
8175
8176 # Check whether --enable-shared was given.
8177if test "${enable_shared+set}" = set; then :
8178 enableval=$enable_shared; p=${PACKAGE-default}
8179 case $enableval in
8180 yes) enable_shared=yes ;;
8181 no) enable_shared=no ;;
8182 *)
8183 enable_shared=no
8184 # Look at the argument we got. We use all the common list separators.
8185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8186 for pkg in $enableval; do
8187 IFS="$lt_save_ifs"
8188 if test "X$pkg" = "X$p"; then
8189 enable_shared=yes
8190 fi
8191 done
8192 IFS="$lt_save_ifs"
8193 ;;
8194 esac
8195else
8196 enable_shared=yes
8197fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 # Check whether --enable-static was given.
8208if test "${enable_static+set}" = set; then :
8209 enableval=$enable_static; p=${PACKAGE-default}
8210 case $enableval in
8211 yes) enable_static=yes ;;
8212 no) enable_static=no ;;
8213 *)
8214 enable_static=no
8215 # Look at the argument we got. We use all the common list separators.
8216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8217 for pkg in $enableval; do
8218 IFS="$lt_save_ifs"
8219 if test "X$pkg" = "X$p"; then
8220 enable_static=yes
8221 fi
8222 done
8223 IFS="$lt_save_ifs"
8224 ;;
8225 esac
8226else
8227 enable_static=yes
8228fi
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239# Check whether --with-pic was given.
8240if test "${with_pic+set}" = set; then :
8241 withval=$with_pic; pic_mode="$withval"
8242else
8243 pic_mode=default
8244fi
8245
8246
8247test -z "$pic_mode" && pic_mode=default
8248
8249
8250
8251
8252
8253
8254
8255 # Check whether --enable-fast-install was given.
8256if test "${enable_fast_install+set}" = set; then :
8257 enableval=$enable_fast_install; p=${PACKAGE-default}
8258 case $enableval in
8259 yes) enable_fast_install=yes ;;
8260 no) enable_fast_install=no ;;
8261 *)
8262 enable_fast_install=no
8263 # Look at the argument we got. We use all the common list separators.
8264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8265 for pkg in $enableval; do
8266 IFS="$lt_save_ifs"
8267 if test "X$pkg" = "X$p"; then
8268 enable_fast_install=yes
8269 fi
8270 done
8271 IFS="$lt_save_ifs"
8272 ;;
8273 esac
8274else
8275 enable_fast_install=yes
8276fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288# This can be used to rebuild libtool when needed
8289LIBTOOL_DEPS="$ltmain"
8290
8291# Always use our own libtool.
8292LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319test -z "$LN_S" && LN_S="ln -s"
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334if test -n "${ZSH_VERSION+set}" ; then
8335 setopt NO_GLOB_SUBST
8336fi
8337
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8339$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008340if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008341 $as_echo_n "(cached) " >&6
8342else
8343 rm -f .libs 2>/dev/null
8344mkdir .libs 2>/dev/null
8345if test -d .libs; then
8346 lt_cv_objdir=.libs
8347else
8348 # MS-DOS does not allow filenames that begin with a dot.
8349 lt_cv_objdir=_libs
8350fi
8351rmdir .libs 2>/dev/null
8352fi
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8354$as_echo "$lt_cv_objdir" >&6; }
8355objdir=$lt_cv_objdir
8356
8357
8358
8359
8360
8361cat >>confdefs.h <<_ACEOF
8362#define LT_OBJDIR "$lt_cv_objdir/"
8363_ACEOF
8364
8365
8366
8367
8368case $host_os in
8369aix3*)
8370 # AIX sometimes has problems with the GCC collect2 program. For some
8371 # reason, if we set the COLLECT_NAMES environment variable, the problems
8372 # vanish in a puff of smoke.
8373 if test "X${COLLECT_NAMES+set}" != Xset; then
8374 COLLECT_NAMES=
8375 export COLLECT_NAMES
8376 fi
8377 ;;
8378esac
8379
8380# Global variables:
8381ofile=libtool
8382can_build_shared=yes
8383
8384# All known linkers require a `.a' archive for static linking (except MSVC,
8385# which needs '.lib').
8386libext=a
8387
8388with_gnu_ld="$lt_cv_prog_gnu_ld"
8389
8390old_CC="$CC"
8391old_CFLAGS="$CFLAGS"
8392
8393# Set sane defaults for various variables
8394test -z "$CC" && CC=cc
8395test -z "$LTCC" && LTCC=$CC
8396test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8397test -z "$LD" && LD=ld
8398test -z "$ac_objext" && ac_objext=o
8399
8400for cc_temp in $compiler""; do
8401 case $cc_temp in
8402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8404 \-*) ;;
8405 *) break;;
8406 esac
8407done
8408cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8409
8410
8411# Only perform the check for file, if the check method requires it
8412test -z "$MAGIC_CMD" && MAGIC_CMD=file
8413case $deplibs_check_method in
8414file_magic*)
8415 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8417$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008418if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008419 $as_echo_n "(cached) " >&6
8420else
8421 case $MAGIC_CMD in
8422[\\/*] | ?:[\\/]*)
8423 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8424 ;;
8425*)
8426 lt_save_MAGIC_CMD="$MAGIC_CMD"
8427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8429 for ac_dir in $ac_dummy; do
8430 IFS="$lt_save_ifs"
8431 test -z "$ac_dir" && ac_dir=.
8432 if test -f $ac_dir/${ac_tool_prefix}file; then
8433 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8434 if test -n "$file_magic_test_file"; then
8435 case $deplibs_check_method in
8436 "file_magic "*)
8437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8440 $EGREP "$file_magic_regex" > /dev/null; then
8441 :
8442 else
8443 cat <<_LT_EOF 1>&2
8444
8445*** Warning: the command libtool uses to detect shared libraries,
8446*** $file_magic_cmd, produces output that libtool cannot recognize.
8447*** The result is that libtool may fail to recognize shared libraries
8448*** as such. This will affect the creation of libtool libraries that
8449*** depend on shared libraries, but programs linked with such libtool
8450*** libraries will work regardless of this problem. Nevertheless, you
8451*** may want to report the problem to your system manager and/or to
8452*** bug-libtool@gnu.org
8453
8454_LT_EOF
8455 fi ;;
8456 esac
8457 fi
8458 break
8459 fi
8460 done
8461 IFS="$lt_save_ifs"
8462 MAGIC_CMD="$lt_save_MAGIC_CMD"
8463 ;;
8464esac
8465fi
8466
8467MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8468if test -n "$MAGIC_CMD"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8470$as_echo "$MAGIC_CMD" >&6; }
8471else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473$as_echo "no" >&6; }
8474fi
8475
8476
8477
8478
8479
8480if test -z "$lt_cv_path_MAGIC_CMD"; then
8481 if test -n "$ac_tool_prefix"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8483$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008484if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008485 $as_echo_n "(cached) " >&6
8486else
8487 case $MAGIC_CMD in
8488[\\/*] | ?:[\\/]*)
8489 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8490 ;;
8491*)
8492 lt_save_MAGIC_CMD="$MAGIC_CMD"
8493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8495 for ac_dir in $ac_dummy; do
8496 IFS="$lt_save_ifs"
8497 test -z "$ac_dir" && ac_dir=.
8498 if test -f $ac_dir/file; then
8499 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8500 if test -n "$file_magic_test_file"; then
8501 case $deplibs_check_method in
8502 "file_magic "*)
8503 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8506 $EGREP "$file_magic_regex" > /dev/null; then
8507 :
8508 else
8509 cat <<_LT_EOF 1>&2
8510
8511*** Warning: the command libtool uses to detect shared libraries,
8512*** $file_magic_cmd, produces output that libtool cannot recognize.
8513*** The result is that libtool may fail to recognize shared libraries
8514*** as such. This will affect the creation of libtool libraries that
8515*** depend on shared libraries, but programs linked with such libtool
8516*** libraries will work regardless of this problem. Nevertheless, you
8517*** may want to report the problem to your system manager and/or to
8518*** bug-libtool@gnu.org
8519
8520_LT_EOF
8521 fi ;;
8522 esac
8523 fi
8524 break
8525 fi
8526 done
8527 IFS="$lt_save_ifs"
8528 MAGIC_CMD="$lt_save_MAGIC_CMD"
8529 ;;
8530esac
8531fi
8532
8533MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8534if test -n "$MAGIC_CMD"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8536$as_echo "$MAGIC_CMD" >&6; }
8537else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539$as_echo "no" >&6; }
8540fi
8541
8542
8543 else
8544 MAGIC_CMD=:
8545 fi
8546fi
8547
8548 fi
8549 ;;
8550esac
8551
8552# Use C for the default configuration in the libtool script
8553
8554lt_save_CC="$CC"
8555ac_ext=c
8556ac_cpp='$CPP $CPPFLAGS'
8557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560
8561
8562# Source file extension for C test sources.
8563ac_ext=c
8564
8565# Object file extension for compiled C test sources.
8566objext=o
8567objext=$objext
8568
8569# Code to be used in simple compile tests
8570lt_simple_compile_test_code="int some_variable = 0;"
8571
8572# Code to be used in simple link tests
8573lt_simple_link_test_code='int main(){return(0);}'
8574
8575
8576
8577
8578
8579
8580
8581# If no C compiler was specified, use CC.
8582LTCC=${LTCC-"$CC"}
8583
8584# If no C compiler flags were specified, use CFLAGS.
8585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8586
8587# Allow CC to be a program name with arguments.
8588compiler=$CC
8589
8590# Save the default compiler, since it gets overwritten when the other
8591# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8592compiler_DEFAULT=$CC
8593
8594# save warnings/boilerplate of simple test code
8595ac_outfile=conftest.$ac_objext
8596echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8597eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8598_lt_compiler_boilerplate=`cat conftest.err`
8599$RM conftest*
8600
8601ac_outfile=conftest.$ac_objext
8602echo "$lt_simple_link_test_code" >conftest.$ac_ext
8603eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8604_lt_linker_boilerplate=`cat conftest.err`
8605$RM -r conftest*
8606
8607
8608## CAVEAT EMPTOR:
8609## There is no encapsulation within the following macros, do not change
8610## the running order or otherwise move them around unless you know exactly
8611## what you are doing...
8612if test -n "$compiler"; then
8613
8614lt_prog_compiler_no_builtin_flag=
8615
8616if test "$GCC" = yes; then
8617 case $cc_basename in
8618 nvcc*)
8619 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8620 *)
8621 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8622 esac
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8625$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008626if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008627 $as_echo_n "(cached) " >&6
8628else
8629 lt_cv_prog_compiler_rtti_exceptions=no
8630 ac_outfile=conftest.$ac_objext
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8632 lt_compiler_flag="-fno-rtti -fno-exceptions"
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 # The option is referenced via a variable to avoid confusing sed.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8643 (eval "$lt_compile" 2>conftest.err)
8644 ac_status=$?
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 if (exit $ac_status) && test -s "$ac_outfile"; then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings other than the usual output.
8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_rtti_exceptions=yes
8654 fi
8655 fi
8656 $RM conftest*
8657
8658fi
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8660$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8661
8662if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8664else
8665 :
8666fi
8667
8668fi
8669
8670
8671
8672
8673
8674
8675 lt_prog_compiler_wl=
8676lt_prog_compiler_pic=
8677lt_prog_compiler_static=
8678
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8680$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8681
8682 if test "$GCC" = yes; then
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_static='-static'
8685
8686 case $host_os in
8687 aix*)
8688 # All AIX code is PIC.
8689 if test "$host_cpu" = ia64; then
8690 # AIX 5 now supports IA64 processor
8691 lt_prog_compiler_static='-Bstatic'
8692 fi
8693 lt_prog_compiler_pic='-fPIC'
8694 ;;
8695
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 lt_prog_compiler_pic='-fPIC'
8701 ;;
8702 m68k)
8703 # FIXME: we need at least 68020 code to build shared libraries, but
8704 # adding the `-m68020' flag to GCC prevents building anything better,
8705 # like `-m68040'.
8706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8707 ;;
8708 esac
8709 ;;
8710
8711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8712 # PIC is the default for these OSes.
8713 ;;
8714
8715 mingw* | cygwin* | pw32* | os2* | cegcc*)
8716 # This hack is so that the source file can tell whether it is being
8717 # built for inclusion in a dll (and should export symbols for example).
8718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8719 # (--disable-auto-import) libraries
8720 lt_prog_compiler_pic='-DDLL_EXPORT'
8721 ;;
8722
8723 darwin* | rhapsody*)
8724 # PIC is the default on this platform
8725 # Common symbols not allowed in MH_DYLIB files
8726 lt_prog_compiler_pic='-fno-common'
8727 ;;
8728
8729 haiku*)
8730 # PIC is the default for Haiku.
8731 # The "-static" flag exists, but is broken.
8732 lt_prog_compiler_static=
8733 ;;
8734
8735 hpux*)
8736 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8737 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8738 # sets the default TLS model and affects inlining.
8739 case $host_cpu in
8740 hppa*64*)
8741 # +Z the default
8742 ;;
8743 *)
8744 lt_prog_compiler_pic='-fPIC'
8745 ;;
8746 esac
8747 ;;
8748
8749 interix[3-9]*)
8750 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8751 # Instead, we relocate shared libraries at runtime.
8752 ;;
8753
8754 msdosdjgpp*)
8755 # Just because we use GCC doesn't mean we suddenly get shared libraries
8756 # on systems that don't support them.
8757 lt_prog_compiler_can_build_shared=no
8758 enable_shared=no
8759 ;;
8760
8761 *nto* | *qnx*)
8762 # QNX uses GNU C++, but need to define -shared option too, otherwise
8763 # it will coredump.
8764 lt_prog_compiler_pic='-fPIC -shared'
8765 ;;
8766
8767 sysv4*MP*)
8768 if test -d /usr/nec; then
8769 lt_prog_compiler_pic=-Kconform_pic
8770 fi
8771 ;;
8772
8773 *)
8774 lt_prog_compiler_pic='-fPIC'
8775 ;;
8776 esac
8777
8778 case $cc_basename in
8779 nvcc*) # Cuda Compiler Driver 2.2
8780 lt_prog_compiler_wl='-Xlinker '
8781 lt_prog_compiler_pic='-Xcompiler -fPIC'
8782 ;;
8783 esac
8784 else
8785 # PORTME Check for flag to pass linker flags through the system compiler.
8786 case $host_os in
8787 aix*)
8788 lt_prog_compiler_wl='-Wl,'
8789 if test "$host_cpu" = ia64; then
8790 # AIX 5 now supports IA64 processor
8791 lt_prog_compiler_static='-Bstatic'
8792 else
8793 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8794 fi
8795 ;;
8796
8797 mingw* | cygwin* | pw32* | os2* | cegcc*)
8798 # This hack is so that the source file can tell whether it is being
8799 # built for inclusion in a dll (and should export symbols for example).
8800 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 ;;
8802
8803 hpux9* | hpux10* | hpux11*)
8804 lt_prog_compiler_wl='-Wl,'
8805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8806 # not for PA HP-UX.
8807 case $host_cpu in
8808 hppa*64*|ia64*)
8809 # +Z the default
8810 ;;
8811 *)
8812 lt_prog_compiler_pic='+Z'
8813 ;;
8814 esac
8815 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8816 lt_prog_compiler_static='${wl}-a ${wl}archive'
8817 ;;
8818
8819 irix5* | irix6* | nonstopux*)
8820 lt_prog_compiler_wl='-Wl,'
8821 # PIC (with -KPIC) is the default.
8822 lt_prog_compiler_static='-non_shared'
8823 ;;
8824
8825 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8826 case $cc_basename in
8827 # old Intel for x86_64 which still supported -KPIC.
8828 ecc*)
8829 lt_prog_compiler_wl='-Wl,'
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-static'
8832 ;;
8833 # icc used to be incompatible with GCC.
8834 # ICC 10 doesn't accept -KPIC any more.
8835 icc* | ifort*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-fPIC'
8838 lt_prog_compiler_static='-static'
8839 ;;
8840 # Lahey Fortran 8.1.
8841 lf95*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='--shared'
8844 lt_prog_compiler_static='--static'
8845 ;;
8846 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8847 # Portland Group compilers (*not* the Pentium gcc compiler,
8848 # which looks to be a dead project)
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='-fpic'
8851 lt_prog_compiler_static='-Bstatic'
8852 ;;
8853 ccc*)
8854 lt_prog_compiler_wl='-Wl,'
8855 # All Alpha code is PIC.
8856 lt_prog_compiler_static='-non_shared'
8857 ;;
8858 xl* | bgxl* | bgf* | mpixl*)
8859 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-qpic'
8862 lt_prog_compiler_static='-qstaticlink'
8863 ;;
8864 *)
8865 case `$CC -V 2>&1 | sed 5q` in
8866 *Sun\ F* | *Sun*Fortran*)
8867 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8870 lt_prog_compiler_wl=''
8871 ;;
8872 *Sun\ C*)
8873 # Sun C 5.9
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Wl,'
8877 ;;
8878 esac
8879 ;;
8880 esac
8881 ;;
8882
8883 newsos6)
8884 lt_prog_compiler_pic='-KPIC'
8885 lt_prog_compiler_static='-Bstatic'
8886 ;;
8887
8888 *nto* | *qnx*)
8889 # QNX uses GNU C++, but need to define -shared option too, otherwise
8890 # it will coredump.
8891 lt_prog_compiler_pic='-fPIC -shared'
8892 ;;
8893
8894 osf3* | osf4* | osf5*)
8895 lt_prog_compiler_wl='-Wl,'
8896 # All OSF/1 code is PIC.
8897 lt_prog_compiler_static='-non_shared'
8898 ;;
8899
8900 rdos*)
8901 lt_prog_compiler_static='-non_shared'
8902 ;;
8903
8904 solaris*)
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 case $cc_basename in
8908 f77* | f90* | f95*)
8909 lt_prog_compiler_wl='-Qoption ld ';;
8910 *)
8911 lt_prog_compiler_wl='-Wl,';;
8912 esac
8913 ;;
8914
8915 sunos4*)
8916 lt_prog_compiler_wl='-Qoption ld '
8917 lt_prog_compiler_pic='-PIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 ;;
8920
8921 sysv4 | sysv4.2uw2* | sysv4.3*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 ;;
8926
8927 sysv4*MP*)
8928 if test -d /usr/nec ;then
8929 lt_prog_compiler_pic='-Kconform_pic'
8930 lt_prog_compiler_static='-Bstatic'
8931 fi
8932 ;;
8933
8934 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939
8940 unicos*)
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_can_build_shared=no
8943 ;;
8944
8945 uts4*)
8946 lt_prog_compiler_pic='-pic'
8947 lt_prog_compiler_static='-Bstatic'
8948 ;;
8949
8950 *)
8951 lt_prog_compiler_can_build_shared=no
8952 ;;
8953 esac
8954 fi
8955
8956case $host_os in
8957 # For platforms which do not support PIC, -DPIC is meaningless:
8958 *djgpp*)
8959 lt_prog_compiler_pic=
8960 ;;
8961 *)
8962 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8963 ;;
8964esac
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8966$as_echo "$lt_prog_compiler_pic" >&6; }
8967
8968
8969
8970
8971
8972
8973#
8974# Check to make sure the PIC flag actually works.
8975#
8976if test -n "$lt_prog_compiler_pic"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8978$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008979if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008980 $as_echo_n "(cached) " >&6
8981else
8982 lt_cv_prog_compiler_pic_works=no
8983 ac_outfile=conftest.$ac_objext
8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8986 # Insert the option either (1) after the last *FLAGS variable, or
8987 # (2) before a word containing "conftest.", or (3) at the end.
8988 # Note that $ac_compile itself does not contain backslashes and begins
8989 # with a dollar sign (not a hyphen), so the echo should work correctly.
8990 # The option is referenced via a variable to avoid confusing sed.
8991 lt_compile=`echo "$ac_compile" | $SED \
8992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994 -e 's:$: $lt_compiler_flag:'`
8995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8996 (eval "$lt_compile" 2>conftest.err)
8997 ac_status=$?
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 if (exit $ac_status) && test -s "$ac_outfile"; then
9001 # The compiler can only warn and ignore the option if not recognized
9002 # So say no if there are warnings other than the usual output.
9003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9006 lt_cv_prog_compiler_pic_works=yes
9007 fi
9008 fi
9009 $RM conftest*
9010
9011fi
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9013$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9014
9015if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9016 case $lt_prog_compiler_pic in
9017 "" | " "*) ;;
9018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9019 esac
9020else
9021 lt_prog_compiler_pic=
9022 lt_prog_compiler_can_build_shared=no
9023fi
9024
9025fi
9026
9027
9028
9029
9030
9031
9032#
9033# Check to make sure the static flag actually works.
9034#
9035wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9037$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009038if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009039 $as_echo_n "(cached) " >&6
9040else
9041 lt_cv_prog_compiler_static_works=no
9042 save_LDFLAGS="$LDFLAGS"
9043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9046 # The linker can only warn and ignore the option if not recognized
9047 # So say no if there are warnings
9048 if test -s conftest.err; then
9049 # Append any errors to the config.log.
9050 cat conftest.err 1>&5
9051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9053 if diff conftest.exp conftest.er2 >/dev/null; then
9054 lt_cv_prog_compiler_static_works=yes
9055 fi
9056 else
9057 lt_cv_prog_compiler_static_works=yes
9058 fi
9059 fi
9060 $RM -r conftest*
9061 LDFLAGS="$save_LDFLAGS"
9062
9063fi
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9065$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9066
9067if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9068 :
9069else
9070 lt_prog_compiler_static=
9071fi
9072
9073
9074
9075
9076
9077
9078
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009081if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009082 $as_echo_n "(cached) " >&6
9083else
9084 lt_cv_prog_compiler_c_o=no
9085 $RM -r conftest 2>/dev/null
9086 mkdir conftest
9087 cd conftest
9088 mkdir out
9089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090
9091 lt_compiler_flag="-o out/conftest2.$ac_objext"
9092 # Insert the option either (1) after the last *FLAGS variable, or
9093 # (2) before a word containing "conftest.", or (3) at the end.
9094 # Note that $ac_compile itself does not contain backslashes and begins
9095 # with a dollar sign (not a hyphen), so the echo should work correctly.
9096 lt_compile=`echo "$ac_compile" | $SED \
9097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099 -e 's:$: $lt_compiler_flag:'`
9100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101 (eval "$lt_compile" 2>out/conftest.err)
9102 ac_status=$?
9103 cat out/conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9106 then
9107 # The compiler can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_c_o=yes
9113 fi
9114 fi
9115 chmod u+w . 2>&5
9116 $RM conftest*
9117 # SGI C++ compiler will create directory out/ii_files/ for
9118 # template instantiation
9119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9120 $RM out/* && rmdir out
9121 cd ..
9122 $RM -r conftest
9123 $RM conftest*
9124
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128
9129
9130
9131
9132
9133
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9135$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009136if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009137 $as_echo_n "(cached) " >&6
9138else
9139 lt_cv_prog_compiler_c_o=no
9140 $RM -r conftest 2>/dev/null
9141 mkdir conftest
9142 cd conftest
9143 mkdir out
9144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145
9146 lt_compiler_flag="-o out/conftest2.$ac_objext"
9147 # Insert the option either (1) after the last *FLAGS variable, or
9148 # (2) before a word containing "conftest.", or (3) at the end.
9149 # Note that $ac_compile itself does not contain backslashes and begins
9150 # with a dollar sign (not a hyphen), so the echo should work correctly.
9151 lt_compile=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>out/conftest.err)
9157 ac_status=$?
9158 cat out/conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9161 then
9162 # The compiler can only warn and ignore the option if not recognized
9163 # So say no if there are warnings
9164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9167 lt_cv_prog_compiler_c_o=yes
9168 fi
9169 fi
9170 chmod u+w . 2>&5
9171 $RM conftest*
9172 # SGI C++ compiler will create directory out/ii_files/ for
9173 # template instantiation
9174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9175 $RM out/* && rmdir out
9176 cd ..
9177 $RM -r conftest
9178 $RM conftest*
9179
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9182$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9183
9184
9185
9186
9187hard_links="nottested"
9188if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9189 # do not overwrite the value of need_locks provided by the user
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9191$as_echo_n "checking if we can lock with hard links... " >&6; }
9192 hard_links=yes
9193 $RM conftest*
9194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9195 touch conftest.a
9196 ln conftest.a conftest.b 2>&5 || hard_links=no
9197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9199$as_echo "$hard_links" >&6; }
9200 if test "$hard_links" = no; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9202$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9203 need_locks=warn
9204 fi
9205else
9206 need_locks=no
9207fi
9208
9209
9210
9211
9212
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9215$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9216
9217 runpath_var=
9218 allow_undefined_flag=
9219 always_export_symbols=no
9220 archive_cmds=
9221 archive_expsym_cmds=
9222 compiler_needs_object=no
9223 enable_shared_with_static_runtimes=no
9224 export_dynamic_flag_spec=
9225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9226 hardcode_automatic=no
9227 hardcode_direct=no
9228 hardcode_direct_absolute=no
9229 hardcode_libdir_flag_spec=
9230 hardcode_libdir_flag_spec_ld=
9231 hardcode_libdir_separator=
9232 hardcode_minus_L=no
9233 hardcode_shlibpath_var=unsupported
9234 inherit_rpath=no
9235 link_all_deplibs=unknown
9236 module_cmds=
9237 module_expsym_cmds=
9238 old_archive_from_new_cmds=
9239 old_archive_from_expsyms_cmds=
9240 thread_safe_flag_spec=
9241 whole_archive_flag_spec=
9242 # include_expsyms should be a list of space-separated symbols to be *always*
9243 # included in the symbol list
9244 include_expsyms=
9245 # exclude_expsyms can be an extended regexp of symbols to exclude
9246 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9247 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9248 # as well as any symbol that contains `d'.
9249 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9250 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9251 # platforms (ab)use it in PIC code, but their linkers get confused if
9252 # the symbol is explicitly referenced. Since portable code cannot
9253 # rely on this symbol name, it's probably fine to never include it in
9254 # preloaded symbol tables.
9255 # Exclude shared library initialization/finalization symbols.
9256 extract_expsyms_cmds=
9257
9258 case $host_os in
9259 cygwin* | mingw* | pw32* | cegcc*)
9260 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9261 # When not using gcc, we currently assume that we are using
9262 # Microsoft Visual C++.
9263 if test "$GCC" != yes; then
9264 with_gnu_ld=no
9265 fi
9266 ;;
9267 interix*)
9268 # we just hope/assume this is gcc and not c89 (= MSVC++)
9269 with_gnu_ld=yes
9270 ;;
9271 openbsd*)
9272 with_gnu_ld=no
9273 ;;
9274 esac
9275
9276 ld_shlibs=yes
9277
9278 # On some targets, GNU ld is compatible enough with the native linker
9279 # that we're better off using the native interface for both.
9280 lt_use_gnu_ld_interface=no
9281 if test "$with_gnu_ld" = yes; then
9282 case $host_os in
9283 aix*)
9284 # The AIX port of GNU ld has always aspired to compatibility
9285 # with the native linker. However, as the warning in the GNU ld
9286 # block says, versions before 2.19.5* couldn't really create working
9287 # shared libraries, regardless of the interface used.
9288 case `$LD -v 2>&1` in
9289 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9290 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9291 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9292 *)
9293 lt_use_gnu_ld_interface=yes
9294 ;;
9295 esac
9296 ;;
9297 *)
9298 lt_use_gnu_ld_interface=yes
9299 ;;
9300 esac
9301 fi
9302
9303 if test "$lt_use_gnu_ld_interface" = yes; then
9304 # If archive_cmds runs LD, not CC, wlarc should be empty
9305 wlarc='${wl}'
9306
9307 # Set some defaults for GNU ld with shared library support. These
9308 # are reset later if shared libraries are not supported. Putting them
9309 # here allows them to be overridden if necessary.
9310 runpath_var=LD_RUN_PATH
9311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312 export_dynamic_flag_spec='${wl}--export-dynamic'
9313 # ancient GNU ld didn't support --whole-archive et. al.
9314 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9316 else
9317 whole_archive_flag_spec=
9318 fi
9319 supports_anon_versioning=no
9320 case `$LD -v 2>&1` in
9321 *GNU\ gold*) supports_anon_versioning=yes ;;
9322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9325 *\ 2.11.*) ;; # other 2.11 versions
9326 *) supports_anon_versioning=yes ;;
9327 esac
9328
9329 # See if GNU ld supports shared libraries.
9330 case $host_os in
9331 aix[3-9]*)
9332 # On AIX/PPC, the GNU linker is very broken
9333 if test "$host_cpu" != ia64; then
9334 ld_shlibs=no
9335 cat <<_LT_EOF 1>&2
9336
9337*** Warning: the GNU linker, at least up to release 2.19, is reported
9338*** to be unable to reliably create shared libraries on AIX.
9339*** Therefore, libtool is disabling shared libraries support. If you
9340*** really care for shared libraries, you may want to install binutils
9341*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9342*** You will then need to restart the configuration process.
9343
9344_LT_EOF
9345 fi
9346 ;;
9347
9348 amigaos*)
9349 case $host_cpu in
9350 powerpc)
9351 # see comment about AmigaOS4 .so support
9352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353 archive_expsym_cmds=''
9354 ;;
9355 m68k)
9356 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)'
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_minus_L=yes
9359 ;;
9360 esac
9361 ;;
9362
9363 beos*)
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365 allow_undefined_flag=unsupported
9366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9367 # support --undefined. This deserves some investigation. FIXME
9368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 else
9370 ld_shlibs=no
9371 fi
9372 ;;
9373
9374 cygwin* | mingw* | pw32* | cegcc*)
9375 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9376 # as there is no search path for DLLs.
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 export_dynamic_flag_spec='${wl}--export-all-symbols'
9379 allow_undefined_flag=unsupported
9380 always_export_symbols=no
9381 enable_shared_with_static_runtimes=yes
9382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9383
9384 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9386 # If the export-symbols file already is a .def file (1st line
9387 # is EXPORTS), use it as is; otherwise, prepend...
9388 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9389 cp $export_symbols $output_objdir/$soname.def;
9390 else
9391 echo EXPORTS > $output_objdir/$soname.def;
9392 cat $export_symbols >> $output_objdir/$soname.def;
9393 fi~
9394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9395 else
9396 ld_shlibs=no
9397 fi
9398 ;;
9399
9400 haiku*)
9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 link_all_deplibs=yes
9403 ;;
9404
9405 interix[3-9]*)
9406 hardcode_direct=no
9407 hardcode_shlibpath_var=no
9408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9409 export_dynamic_flag_spec='${wl}-E'
9410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9411 # Instead, shared libraries are loaded at an image base (0x10000000 by
9412 # default) and relocated if they conflict, which is a slow very memory
9413 # consuming and fragmenting process. To avoid this, we pick a random,
9414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9417 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'
9418 ;;
9419
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00009420 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00009421 tmp_diet=no
9422 if test "$host_os" = linux-dietlibc; then
9423 case $cc_basename in
9424 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9425 esac
9426 fi
9427 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9428 && test "$tmp_diet" = no
9429 then
9430 tmp_addflag=' $pic_flag'
9431 tmp_sharedflag='-shared'
9432 case $cc_basename,$host_cpu in
9433 pgcc*) # Portland Group C compiler
9434 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'
9435 tmp_addflag=' $pic_flag'
9436 ;;
9437 pgf77* | pgf90* | pgf95* | pgfortran*)
9438 # Portland Group f77 and f90 compilers
9439 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'
9440 tmp_addflag=' $pic_flag -Mnomain' ;;
9441 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9442 tmp_addflag=' -i_dynamic' ;;
9443 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9444 tmp_addflag=' -i_dynamic -nofor_main' ;;
9445 ifc* | ifort*) # Intel Fortran compiler
9446 tmp_addflag=' -nofor_main' ;;
9447 lf95*) # Lahey Fortran 8.1
9448 whole_archive_flag_spec=
9449 tmp_sharedflag='--shared' ;;
9450 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9451 tmp_sharedflag='-qmkshrobj'
9452 tmp_addflag= ;;
9453 nvcc*) # Cuda Compiler Driver 2.2
9454 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'
9455 compiler_needs_object=yes
9456 ;;
9457 esac
9458 case `$CC -V 2>&1 | sed 5q` in
9459 *Sun\ C*) # Sun C 5.9
9460 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'
9461 compiler_needs_object=yes
9462 tmp_sharedflag='-G' ;;
9463 *Sun\ F*) # Sun Fortran 8.3
9464 tmp_sharedflag='-G' ;;
9465 esac
9466 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467
9468 if test "x$supports_anon_versioning" = xyes; then
9469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9471 echo "local: *; };" >> $output_objdir/$libname.ver~
9472 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9473 fi
9474
9475 case $cc_basename in
9476 xlf* | bgf* | bgxlf* | mpixlf*)
9477 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9478 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9479 hardcode_libdir_flag_spec=
9480 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9481 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9482 if test "x$supports_anon_versioning" = xyes; then
9483 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9485 echo "local: *; };" >> $output_objdir/$libname.ver~
9486 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9487 fi
9488 ;;
9489 esac
9490 else
9491 ld_shlibs=no
9492 fi
9493 ;;
9494
9495 netbsd*)
9496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9497 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9498 wlarc=
9499 else
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502 fi
9503 ;;
9504
9505 solaris*)
9506 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9507 ld_shlibs=no
9508 cat <<_LT_EOF 1>&2
9509
9510*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9511*** create shared libraries on Solaris systems. Therefore, libtool
9512*** is disabling shared libraries support. We urge you to upgrade GNU
9513*** binutils to release 2.9.1 or newer. Another option is to modify
9514*** your PATH or compiler configuration so that the native linker is
9515*** used, and then restart.
9516
9517_LT_EOF
9518 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9521 else
9522 ld_shlibs=no
9523 fi
9524 ;;
9525
9526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9527 case `$LD -v 2>&1` in
9528 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9529 ld_shlibs=no
9530 cat <<_LT_EOF 1>&2
9531
9532*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9533*** reliably create shared libraries on SCO systems. Therefore, libtool
9534*** is disabling shared libraries support. We urge you to upgrade GNU
9535*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9536*** your PATH or compiler configuration so that the native linker is
9537*** used, and then restart.
9538
9539_LT_EOF
9540 ;;
9541 *)
9542 # For security reasons, it is highly recommended that you always
9543 # use absolute paths for naming shared libraries, and exclude the
9544 # DT_RUNPATH tag from executables and libraries. But doing so
9545 # requires that you compile everything twice, which is a pain.
9546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9550 else
9551 ld_shlibs=no
9552 fi
9553 ;;
9554 esac
9555 ;;
9556
9557 sunos4*)
9558 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 wlarc=
9560 hardcode_direct=yes
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *)
9565 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9568 else
9569 ld_shlibs=no
9570 fi
9571 ;;
9572 esac
9573
9574 if test "$ld_shlibs" = no; then
9575 runpath_var=
9576 hardcode_libdir_flag_spec=
9577 export_dynamic_flag_spec=
9578 whole_archive_flag_spec=
9579 fi
9580 else
9581 # PORTME fill in a description of your system's linker (not GNU ld)
9582 case $host_os in
9583 aix3*)
9584 allow_undefined_flag=unsupported
9585 always_export_symbols=yes
9586 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'
9587 # Note: this linker hardcodes the directories in LIBPATH if there
9588 # are no directories specified by -L.
9589 hardcode_minus_L=yes
9590 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9591 # Neither direct hardcoding nor static linking is supported with a
9592 # broken collect2.
9593 hardcode_direct=unsupported
9594 fi
9595 ;;
9596
9597 aix[4-9]*)
9598 if test "$host_cpu" = ia64; then
9599 # On IA64, the linker does run time linking by default, so we don't
9600 # have to do anything special.
9601 aix_use_runtimelinking=no
9602 exp_sym_flag='-Bexport'
9603 no_entry_flag=""
9604 else
9605 # If we're using GNU nm, then we don't want the "-C" option.
9606 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9607 # Also, AIX nm treats weak defined symbols like other global
9608 # defined symbols, whereas GNU nm marks them as "W".
9609 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9610 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'
9611 else
9612 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'
9613 fi
9614 aix_use_runtimelinking=no
9615
9616 # Test if we are trying to use run time linking or normal
9617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9618 # need to do runtime linking.
9619 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9620 for ld_flag in $LDFLAGS; do
9621 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9622 aix_use_runtimelinking=yes
9623 break
9624 fi
9625 done
9626 ;;
9627 esac
9628
9629 exp_sym_flag='-bexport'
9630 no_entry_flag='-bnoentry'
9631 fi
9632
9633 # When large executables or shared objects are built, AIX ld can
9634 # have problems creating the table of contents. If linking a library
9635 # or program results in "error TOC overflow" add -mminimal-toc to
9636 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9637 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9638
9639 archive_cmds=''
9640 hardcode_direct=yes
9641 hardcode_direct_absolute=yes
9642 hardcode_libdir_separator=':'
9643 link_all_deplibs=yes
9644 file_list_spec='${wl}-f,'
9645
9646 if test "$GCC" = yes; then
9647 case $host_os in aix4.[012]|aix4.[012].*)
9648 # We only want to do this on AIX 4.2 and lower, the check
9649 # below for broken collect2 doesn't work under 4.3+
9650 collect2name=`${CC} -print-prog-name=collect2`
9651 if test -f "$collect2name" &&
9652 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9653 then
9654 # We have reworked collect2
9655 :
9656 else
9657 # We have old collect2
9658 hardcode_direct=unsupported
9659 # It fails to find uninstalled libraries when the uninstalled
9660 # path is not listed in the libpath. Setting hardcode_minus_L
9661 # to unsupported forces relinking
9662 hardcode_minus_L=yes
9663 hardcode_libdir_flag_spec='-L$libdir'
9664 hardcode_libdir_separator=
9665 fi
9666 ;;
9667 esac
9668 shared_flag='-shared'
9669 if test "$aix_use_runtimelinking" = yes; then
9670 shared_flag="$shared_flag "'${wl}-G'
9671 fi
9672 else
9673 # not using gcc
9674 if test "$host_cpu" = ia64; then
9675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9676 # chokes on -Wl,-G. The following line is correct:
9677 shared_flag='-G'
9678 else
9679 if test "$aix_use_runtimelinking" = yes; then
9680 shared_flag='${wl}-G'
9681 else
9682 shared_flag='${wl}-bM:SRE'
9683 fi
9684 fi
9685 fi
9686
9687 export_dynamic_flag_spec='${wl}-bexpall'
9688 # It seems that -bexpall does not export symbols beginning with
9689 # underscore (_), so it is better to generate a list of symbols to export.
9690 always_export_symbols=yes
9691 if test "$aix_use_runtimelinking" = yes; then
9692 # Warning - without using the other runtime loading flags (-brtl),
9693 # -berok will link without error, but may produce a broken library.
9694 allow_undefined_flag='-berok'
9695 # Determine the default libpath from the value encoded in an
9696 # empty executable.
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h. */
9699
9700int
9701main ()
9702{
9703
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"; then :
9709
9710lt_aix_libpath_sed='
9711 /Import File Strings/,/^$/ {
9712 /^0/ {
9713 s/^0 *\(.*\)$/\1/
9714 p
9715 }
9716 }'
9717aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9718# Check for a 64-bit object if we didn't find anything.
9719if test -z "$aix_libpath"; then
9720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721fi
9722fi
9723rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
9725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9726
9727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9728 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"
9729 else
9730 if test "$host_cpu" = ia64; then
9731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9732 allow_undefined_flag="-z nodefs"
9733 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"
9734 else
9735 # Determine the default libpath from the value encoded in an
9736 # empty executable.
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738/* end confdefs.h. */
9739
9740int
9741main ()
9742{
9743
9744 ;
9745 return 0;
9746}
9747_ACEOF
9748if ac_fn_c_try_link "$LINENO"; then :
9749
9750lt_aix_libpath_sed='
9751 /Import File Strings/,/^$/ {
9752 /^0/ {
9753 s/^0 *\(.*\)$/\1/
9754 p
9755 }
9756 }'
9757aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758# Check for a 64-bit object if we didn't find anything.
9759if test -z "$aix_libpath"; then
9760 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761fi
9762fi
9763rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9766
9767 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9768 # Warning - without using the other run time loading flags,
9769 # -berok will link without error, but may produce a broken library.
9770 no_undefined_flag=' ${wl}-bernotok'
9771 allow_undefined_flag=' ${wl}-berok'
9772 if test "$with_gnu_ld" = yes; then
9773 # We only use this code for GNU lds that support --whole-archive.
9774 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9775 else
9776 # Exported symbols can be pulled into shared objects from archives
9777 whole_archive_flag_spec='$convenience'
9778 fi
9779 archive_cmds_need_lc=yes
9780 # This is similar to how AIX traditionally builds its shared libraries.
9781 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'
9782 fi
9783 fi
9784 ;;
9785
9786 amigaos*)
9787 case $host_cpu in
9788 powerpc)
9789 # see comment about AmigaOS4 .so support
9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9791 archive_expsym_cmds=''
9792 ;;
9793 m68k)
9794 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)'
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_minus_L=yes
9797 ;;
9798 esac
9799 ;;
9800
9801 bsdi[45]*)
9802 export_dynamic_flag_spec=-rdynamic
9803 ;;
9804
9805 cygwin* | mingw* | pw32* | cegcc*)
9806 # When not using gcc, we currently assume that we are using
9807 # Microsoft Visual C++.
9808 # hardcode_libdir_flag_spec is actually meaningless, as there is
9809 # no search path for DLLs.
9810 hardcode_libdir_flag_spec=' '
9811 allow_undefined_flag=unsupported
9812 # Tell ltmain to make .lib files, not .a files.
9813 libext=lib
9814 # Tell ltmain to make .dll files, not .so files.
9815 shrext_cmds=".dll"
9816 # FIXME: Setting linknames here is a bad hack.
9817 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9818 # The linker will automatically build a .lib file if we build a DLL.
9819 old_archive_from_new_cmds='true'
9820 # FIXME: Should let the user specify the lib program.
9821 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9822 fix_srcfile_path='`cygpath -w "$srcfile"`'
9823 enable_shared_with_static_runtimes=yes
9824 ;;
9825
9826 darwin* | rhapsody*)
9827
9828
9829 archive_cmds_need_lc=no
9830 hardcode_direct=no
9831 hardcode_automatic=yes
9832 hardcode_shlibpath_var=unsupported
9833 if test "$lt_cv_ld_force_load" = "yes"; then
9834 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\"`'
9835 else
9836 whole_archive_flag_spec=''
9837 fi
9838 link_all_deplibs=yes
9839 allow_undefined_flag="$_lt_dar_allow_undefined"
9840 case $cc_basename in
9841 ifort*) _lt_dar_can_shared=yes ;;
9842 *) _lt_dar_can_shared=$GCC ;;
9843 esac
9844 if test "$_lt_dar_can_shared" = "yes"; then
9845 output_verbose_link_cmd=func_echo_all
9846 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9847 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9848 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}"
9849 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}"
9850
9851 else
9852 ld_shlibs=no
9853 fi
9854
9855 ;;
9856
9857 dgux*)
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_libdir_flag_spec='-L$libdir'
9860 hardcode_shlibpath_var=no
9861 ;;
9862
9863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9864 # support. Future versions do this automatically, but an explicit c++rt0.o
9865 # does not break anything, and helps significantly (at the cost of a little
9866 # extra space).
9867 freebsd2.2*)
9868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9869 hardcode_libdir_flag_spec='-R$libdir'
9870 hardcode_direct=yes
9871 hardcode_shlibpath_var=no
9872 ;;
9873
9874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9875 freebsd2.*)
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_direct=yes
9878 hardcode_minus_L=yes
9879 hardcode_shlibpath_var=no
9880 ;;
9881
9882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9883 freebsd* | dragonfly*)
9884 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9885 hardcode_libdir_flag_spec='-R$libdir'
9886 hardcode_direct=yes
9887 hardcode_shlibpath_var=no
9888 ;;
9889
9890 hpux9*)
9891 if test "$GCC" = yes; then
9892 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'
9893 else
9894 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'
9895 fi
9896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 hardcode_direct=yes
9899
9900 # hardcode_minus_L: Not really in the search PATH,
9901 # but as the default location of the library.
9902 hardcode_minus_L=yes
9903 export_dynamic_flag_spec='${wl}-E'
9904 ;;
9905
9906 hpux10*)
9907 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9908 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9909 else
9910 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9911 fi
9912 if test "$with_gnu_ld" = no; then
9913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9914 hardcode_libdir_flag_spec_ld='+b $libdir'
9915 hardcode_libdir_separator=:
9916 hardcode_direct=yes
9917 hardcode_direct_absolute=yes
9918 export_dynamic_flag_spec='${wl}-E'
9919 # hardcode_minus_L: Not really in the search PATH,
9920 # but as the default location of the library.
9921 hardcode_minus_L=yes
9922 fi
9923 ;;
9924
9925 hpux11*)
9926 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9927 case $host_cpu in
9928 hppa*64*)
9929 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 ;;
9931 ia64*)
9932 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933 ;;
9934 *)
9935 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9936 ;;
9937 esac
9938 else
9939 case $host_cpu in
9940 hppa*64*)
9941 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 ;;
9943 ia64*)
9944 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945 ;;
9946 *)
9947
9948 # Older versions of the 11.00 compiler do not understand -b yet
9949 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9951$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009952if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009953 $as_echo_n "(cached) " >&6
9954else
9955 lt_cv_prog_compiler__b=no
9956 save_LDFLAGS="$LDFLAGS"
9957 LDFLAGS="$LDFLAGS -b"
9958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9960 # The linker can only warn and ignore the option if not recognized
9961 # So say no if there are warnings
9962 if test -s conftest.err; then
9963 # Append any errors to the config.log.
9964 cat conftest.err 1>&5
9965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9967 if diff conftest.exp conftest.er2 >/dev/null; then
9968 lt_cv_prog_compiler__b=yes
9969 fi
9970 else
9971 lt_cv_prog_compiler__b=yes
9972 fi
9973 fi
9974 $RM -r conftest*
9975 LDFLAGS="$save_LDFLAGS"
9976
9977fi
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9979$as_echo "$lt_cv_prog_compiler__b" >&6; }
9980
9981if test x"$lt_cv_prog_compiler__b" = xyes; then
9982 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9983else
9984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9985fi
9986
9987 ;;
9988 esac
9989 fi
9990 if test "$with_gnu_ld" = no; then
9991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992 hardcode_libdir_separator=:
9993
9994 case $host_cpu in
9995 hppa*64*|ia64*)
9996 hardcode_direct=no
9997 hardcode_shlibpath_var=no
9998 ;;
9999 *)
10000 hardcode_direct=yes
10001 hardcode_direct_absolute=yes
10002 export_dynamic_flag_spec='${wl}-E'
10003
10004 # hardcode_minus_L: Not really in the search PATH,
10005 # but as the default location of the library.
10006 hardcode_minus_L=yes
10007 ;;
10008 esac
10009 fi
10010 ;;
10011
10012 irix5* | irix6* | nonstopux*)
10013 if test "$GCC" = yes; then
10014 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'
10015 # Try to use the -exported_symbol ld option, if it does not
10016 # work, assume that -exports_file does not work either and
10017 # implicitly export all symbols.
10018 save_LDFLAGS="$LDFLAGS"
10019 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h. */
10022int foo(void) {}
10023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
10025 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'
10026
10027fi
10028rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LDFLAGS="$save_LDFLAGS"
10031 else
10032 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'
10033 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'
10034 fi
10035 archive_cmds_need_lc='no'
10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037 hardcode_libdir_separator=:
10038 inherit_rpath=yes
10039 link_all_deplibs=yes
10040 ;;
10041
10042 netbsd*)
10043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10045 else
10046 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10047 fi
10048 hardcode_libdir_flag_spec='-R$libdir'
10049 hardcode_direct=yes
10050 hardcode_shlibpath_var=no
10051 ;;
10052
10053 newsos6)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_direct=yes
10056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057 hardcode_libdir_separator=:
10058 hardcode_shlibpath_var=no
10059 ;;
10060
10061 *nto* | *qnx*)
10062 ;;
10063
10064 openbsd*)
10065 if test -f /usr/libexec/ld.so; then
10066 hardcode_direct=yes
10067 hardcode_shlibpath_var=no
10068 hardcode_direct_absolute=yes
10069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10070 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10073 export_dynamic_flag_spec='${wl}-E'
10074 else
10075 case $host_os in
10076 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_libdir_flag_spec='-R$libdir'
10079 ;;
10080 *)
10081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10083 ;;
10084 esac
10085 fi
10086 else
10087 ld_shlibs=no
10088 fi
10089 ;;
10090
10091 os2*)
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_minus_L=yes
10094 allow_undefined_flag=unsupported
10095 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'
10096 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10097 ;;
10098
10099 osf3*)
10100 if test "$GCC" = yes; then
10101 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10102 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'
10103 else
10104 allow_undefined_flag=' -expect_unresolved \*'
10105 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'
10106 fi
10107 archive_cmds_need_lc='no'
10108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10109 hardcode_libdir_separator=:
10110 ;;
10111
10112 osf4* | osf5*) # as osf3* with the addition of -msym flag
10113 if test "$GCC" = yes; then
10114 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115 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'
10116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 else
10118 allow_undefined_flag=' -expect_unresolved \*'
10119 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'
10120 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~
10121 $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'
10122
10123 # Both c and cxx compiler support -rpath directly
10124 hardcode_libdir_flag_spec='-rpath $libdir'
10125 fi
10126 archive_cmds_need_lc='no'
10127 hardcode_libdir_separator=:
10128 ;;
10129
10130 solaris*)
10131 no_undefined_flag=' -z defs'
10132 if test "$GCC" = yes; then
10133 wlarc='${wl}'
10134 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10136 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10137 else
10138 case `$CC -V 2>&1` in
10139 *"Compilers 5.0"*)
10140 wlarc=''
10141 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10144 ;;
10145 *)
10146 wlarc='${wl}'
10147 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10150 ;;
10151 esac
10152 fi
10153 hardcode_libdir_flag_spec='-R$libdir'
10154 hardcode_shlibpath_var=no
10155 case $host_os in
10156 solaris2.[0-5] | solaris2.[0-5].*) ;;
10157 *)
10158 # The compiler driver will combine and reorder linker options,
10159 # but understands `-z linker_flag'. GCC discards it without `$wl',
10160 # but is careful enough not to reorder.
10161 # Supported since Solaris 2.6 (maybe 2.5.1?)
10162 if test "$GCC" = yes; then
10163 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10164 else
10165 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10166 fi
10167 ;;
10168 esac
10169 link_all_deplibs=yes
10170 ;;
10171
10172 sunos4*)
10173 if test "x$host_vendor" = xsequent; then
10174 # Use $CC to link under sequent, because it throws in some extra .o
10175 # files that make .init and .fini sections work.
10176 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10177 else
10178 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10179 fi
10180 hardcode_libdir_flag_spec='-L$libdir'
10181 hardcode_direct=yes
10182 hardcode_minus_L=yes
10183 hardcode_shlibpath_var=no
10184 ;;
10185
10186 sysv4)
10187 case $host_vendor in
10188 sni)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_direct=yes # is this really true???
10191 ;;
10192 siemens)
10193 ## LD is ld it makes a PLAMLIB
10194 ## CC just makes a GrossModule.
10195 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10196 reload_cmds='$CC -r -o $output$reload_objs'
10197 hardcode_direct=no
10198 ;;
10199 motorola)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10202 ;;
10203 esac
10204 runpath_var='LD_RUN_PATH'
10205 hardcode_shlibpath_var=no
10206 ;;
10207
10208 sysv4.3*)
10209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210 hardcode_shlibpath_var=no
10211 export_dynamic_flag_spec='-Bexport'
10212 ;;
10213
10214 sysv4*MP*)
10215 if test -d /usr/nec; then
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_shlibpath_var=no
10218 runpath_var=LD_RUN_PATH
10219 hardcode_runpath_var=yes
10220 ld_shlibs=yes
10221 fi
10222 ;;
10223
10224 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10225 no_undefined_flag='${wl}-z,text'
10226 archive_cmds_need_lc=no
10227 hardcode_shlibpath_var=no
10228 runpath_var='LD_RUN_PATH'
10229
10230 if test "$GCC" = yes; then
10231 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 else
10234 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 fi
10237 ;;
10238
10239 sysv5* | sco3.2v5* | sco5v6*)
10240 # Note: We can NOT use -z defs as we might desire, because we do not
10241 # link with -lc, and that would cause any symbols used from libc to
10242 # always be unresolved, which means just about no library would
10243 # ever link correctly. If we're not using GNU ld we use -z text
10244 # though, which does catch some bad symbols but isn't as heavy-handed
10245 # as -z defs.
10246 no_undefined_flag='${wl}-z,text'
10247 allow_undefined_flag='${wl}-z,nodefs'
10248 archive_cmds_need_lc=no
10249 hardcode_shlibpath_var=no
10250 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10251 hardcode_libdir_separator=':'
10252 link_all_deplibs=yes
10253 export_dynamic_flag_spec='${wl}-Bexport'
10254 runpath_var='LD_RUN_PATH'
10255
10256 if test "$GCC" = yes; then
10257 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 else
10260 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 fi
10263 ;;
10264
10265 uts4*)
10266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267 hardcode_libdir_flag_spec='-L$libdir'
10268 hardcode_shlibpath_var=no
10269 ;;
10270
10271 *)
10272 ld_shlibs=no
10273 ;;
10274 esac
10275
10276 if test x$host_vendor = xsni; then
10277 case $host in
10278 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10279 export_dynamic_flag_spec='${wl}-Blargedynsym'
10280 ;;
10281 esac
10282 fi
10283 fi
10284
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10286$as_echo "$ld_shlibs" >&6; }
10287test "$ld_shlibs" = no && can_build_shared=no
10288
10289with_gnu_ld=$with_gnu_ld
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305#
10306# Do we need to explicitly link libc?
10307#
10308case "x$archive_cmds_need_lc" in
10309x|xyes)
10310 # Assume -lc should be added
10311 archive_cmds_need_lc=yes
10312
10313 if test "$enable_shared" = yes && test "$GCC" = yes; then
10314 case $archive_cmds in
10315 *'~'*)
10316 # FIXME: we may have to deal with multi-command sequences.
10317 ;;
10318 '$CC '*)
10319 # Test whether the compiler implicitly links with -lc since on some
10320 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10321 # to ld, don't add -lc before -lgcc.
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10323$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010324if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010325 $as_echo_n "(cached) " >&6
10326else
10327 $RM conftest*
10328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10329
10330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10331 (eval $ac_compile) 2>&5
10332 ac_status=$?
10333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334 test $ac_status = 0; } 2>conftest.err; then
10335 soname=conftest
10336 lib=conftest
10337 libobjs=conftest.$ac_objext
10338 deplibs=
10339 wl=$lt_prog_compiler_wl
10340 pic_flag=$lt_prog_compiler_pic
10341 compiler_flags=-v
10342 linker_flags=-v
10343 verstring=
10344 output_objdir=.
10345 libname=conftest
10346 lt_save_allow_undefined_flag=$allow_undefined_flag
10347 allow_undefined_flag=
10348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10349 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10350 ac_status=$?
10351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352 test $ac_status = 0; }
10353 then
10354 lt_cv_archive_cmds_need_lc=no
10355 else
10356 lt_cv_archive_cmds_need_lc=yes
10357 fi
10358 allow_undefined_flag=$lt_save_allow_undefined_flag
10359 else
10360 cat conftest.err 1>&5
10361 fi
10362 $RM conftest*
10363
10364fi
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10366$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10367 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10368 ;;
10369 esac
10370 fi
10371 ;;
10372esac
10373
10374
10375
10376
10377
10378
10379
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10531$as_echo_n "checking dynamic linker characteristics... " >&6; }
10532
10533if test "$GCC" = yes; then
10534 case $host_os in
10535 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10536 *) lt_awk_arg="/^libraries:/" ;;
10537 esac
10538 case $host_os in
10539 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10540 *) lt_sed_strip_eq="s,=/,/,g" ;;
10541 esac
10542 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10543 case $lt_search_path_spec in
10544 *\;*)
10545 # if the path contains ";" then we assume it to be the separator
10546 # otherwise default to the standard path separator (i.e. ":") - it is
10547 # assumed that no part of a normal pathname contains ";" but that should
10548 # okay in the real world where ";" in dirpaths is itself problematic.
10549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10550 ;;
10551 *)
10552 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10553 ;;
10554 esac
10555 # Ok, now we have the path, separated by spaces, we can step through it
10556 # and add multilib dir if necessary.
10557 lt_tmp_lt_search_path_spec=
10558 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10559 for lt_sys_path in $lt_search_path_spec; do
10560 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10561 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10562 else
10563 test -d "$lt_sys_path" && \
10564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10565 fi
10566 done
10567 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10568BEGIN {RS=" "; FS="/|\n";} {
10569 lt_foo="";
10570 lt_count=0;
10571 for (lt_i = NF; lt_i > 0; lt_i--) {
10572 if ($lt_i != "" && $lt_i != ".") {
10573 if ($lt_i == "..") {
10574 lt_count++;
10575 } else {
10576 if (lt_count == 0) {
10577 lt_foo="/" $lt_i lt_foo;
10578 } else {
10579 lt_count--;
10580 }
10581 }
10582 }
10583 }
10584 if (lt_foo != "") { lt_freq[lt_foo]++; }
10585 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10586}'`
10587 # AWK program above erroneously prepends '/' to C:/dos/paths
10588 # for these hosts.
10589 case $host_os in
10590 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10591 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10592 esac
10593 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10594else
10595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10596fi
10597library_names_spec=
10598libname_spec='lib$name'
10599soname_spec=
10600shrext_cmds=".so"
10601postinstall_cmds=
10602postuninstall_cmds=
10603finish_cmds=
10604finish_eval=
10605shlibpath_var=
10606shlibpath_overrides_runpath=unknown
10607version_type=none
10608dynamic_linker="$host_os ld.so"
10609sys_lib_dlsearch_path_spec="/lib /usr/lib"
10610need_lib_prefix=unknown
10611hardcode_into_libs=no
10612
10613# when you set need_version to no, make sure it does not cause -set_version
10614# flags to be left without arguments
10615need_version=unknown
10616
10617case $host_os in
10618aix3*)
10619 version_type=linux
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10621 shlibpath_var=LIBPATH
10622
10623 # AIX 3 has no versioning support, so we append a major version to the name.
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 ;;
10626
10627aix[4-9]*)
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 hardcode_into_libs=yes
10632 if test "$host_cpu" = ia64; then
10633 # AIX 5 supports IA64
10634 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 else
10637 # With GCC up to 2.95.x, collect2 would create an import file
10638 # for dependence libraries. The import file would start with
10639 # the line `#! .'. This would cause the generated library to
10640 # depend on `.', always an invalid library. This was fixed in
10641 # development snapshots of GCC prior to 3.0.
10642 case $host_os in
10643 aix4 | aix4.[01] | aix4.[01].*)
10644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10645 echo ' yes '
10646 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10647 :
10648 else
10649 can_build_shared=no
10650 fi
10651 ;;
10652 esac
10653 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10654 # soname into executable. Probably we can add versioning support to
10655 # collect2, so additional links can be useful in future.
10656 if test "$aix_use_runtimelinking" = yes; then
10657 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10658 # instead of lib<name>.a to let people know that these are not
10659 # typical AIX shared libraries.
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 else
10662 # We preserve .a as extension for shared libraries through AIX4.2
10663 # and later when we are not doing run time linking.
10664 library_names_spec='${libname}${release}.a $libname.a'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 fi
10667 shlibpath_var=LIBPATH
10668 fi
10669 ;;
10670
10671amigaos*)
10672 case $host_cpu in
10673 powerpc)
10674 # Since July 2007 AmigaOS4 officially supports .so libraries.
10675 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 ;;
10678 m68k)
10679 library_names_spec='$libname.ixlibrary $libname.a'
10680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10681 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'
10682 ;;
10683 esac
10684 ;;
10685
10686beos*)
10687 library_names_spec='${libname}${shared_ext}'
10688 dynamic_linker="$host_os ld.so"
10689 shlibpath_var=LIBRARY_PATH
10690 ;;
10691
10692bsdi[45]*)
10693 version_type=linux
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10701 # the default ld.so.conf also contains /usr/contrib/lib and
10702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10703 # libtool to hard-code these into programs
10704 ;;
10705
10706cygwin* | mingw* | pw32* | cegcc*)
10707 version_type=windows
10708 shrext_cmds=".dll"
10709 need_version=no
10710 need_lib_prefix=no
10711
10712 case $GCC,$host_os in
10713 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10714 library_names_spec='$libname.dll.a'
10715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 postinstall_cmds='base_file=`basename \${file}`~
10717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718 dldir=$destdir/`dirname \$dlpath`~
10719 test -d \$dldir || mkdir -p \$dldir~
10720 $install_prog $dir/$dlname \$dldir/$dlname~
10721 chmod a+x \$dldir/$dlname~
10722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10724 fi'
10725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10726 dlpath=$dir/\$dldll~
10727 $RM \$dlpath'
10728 shlibpath_overrides_runpath=yes
10729
10730 case $host_os in
10731 cygwin*)
10732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10734
10735 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10736 ;;
10737 mingw* | cegcc*)
10738 # MinGW DLLs use traditional 'lib' prefix
10739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740 ;;
10741 pw32*)
10742 # pw32 DLLs use 'pw' prefix rather than 'lib'
10743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10744 ;;
10745 esac
10746 ;;
10747
10748 *)
10749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10750 ;;
10751 esac
10752 dynamic_linker='Win32 ld.exe'
10753 # FIXME: first we should search . and the directory the executable is in
10754 shlibpath_var=PATH
10755 ;;
10756
10757darwin* | rhapsody*)
10758 dynamic_linker="$host_os dyld"
10759 version_type=darwin
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10763 soname_spec='${libname}${release}${major}$shared_ext'
10764 shlibpath_overrides_runpath=yes
10765 shlibpath_var=DYLD_LIBRARY_PATH
10766 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10767
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10769 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10770 ;;
10771
10772dgux*)
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 ;;
10780
10781freebsd* | dragonfly*)
10782 # DragonFly does not have aout. When/if they implement a new
10783 # versioning mechanism, adjust this.
10784 if test -x /usr/bin/objformat; then
10785 objformat=`/usr/bin/objformat`
10786 else
10787 case $host_os in
10788 freebsd[23].*) objformat=aout ;;
10789 *) objformat=elf ;;
10790 esac
10791 fi
10792 version_type=freebsd-$objformat
10793 case $version_type in
10794 freebsd-elf*)
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10796 need_version=no
10797 need_lib_prefix=no
10798 ;;
10799 freebsd-*)
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10801 need_version=yes
10802 ;;
10803 esac
10804 shlibpath_var=LD_LIBRARY_PATH
10805 case $host_os in
10806 freebsd2.*)
10807 shlibpath_overrides_runpath=yes
10808 ;;
10809 freebsd3.[01]* | freebsdelf3.[01]*)
10810 shlibpath_overrides_runpath=yes
10811 hardcode_into_libs=yes
10812 ;;
10813 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10814 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10815 shlibpath_overrides_runpath=no
10816 hardcode_into_libs=yes
10817 ;;
10818 *) # from 4.6 on, and DragonFly
10819 shlibpath_overrides_runpath=yes
10820 hardcode_into_libs=yes
10821 ;;
10822 esac
10823 ;;
10824
10825gnu*)
10826 version_type=linux
10827 need_lib_prefix=no
10828 need_version=no
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 hardcode_into_libs=yes
10833 ;;
10834
10835haiku*)
10836 version_type=linux
10837 need_lib_prefix=no
10838 need_version=no
10839 dynamic_linker="$host_os runtime_loader"
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 shlibpath_var=LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes
10844 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10845 hardcode_into_libs=yes
10846 ;;
10847
10848hpux9* | hpux10* | hpux11*)
10849 # Give a soname corresponding to the major version so that dld.sl refuses to
10850 # link against other versions.
10851 version_type=sunos
10852 need_lib_prefix=no
10853 need_version=no
10854 case $host_cpu in
10855 ia64*)
10856 shrext_cmds='.so'
10857 hardcode_into_libs=yes
10858 dynamic_linker="$host_os dld.so"
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 if test "X$HPUX_IA64_MODE" = X32; then
10864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10865 else
10866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10867 fi
10868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869 ;;
10870 hppa*64*)
10871 shrext_cmds='.sl'
10872 hardcode_into_libs=yes
10873 dynamic_linker="$host_os dld.sl"
10874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10880 ;;
10881 *)
10882 shrext_cmds='.sl'
10883 dynamic_linker="$host_os dld.sl"
10884 shlibpath_var=SHLIB_PATH
10885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 ;;
10889 esac
10890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10891 postinstall_cmds='chmod 555 $lib'
10892 # or fails outright, so override atomically:
10893 install_override_mode=555
10894 ;;
10895
10896interix[3-9]*)
10897 version_type=linux
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=no
10905 hardcode_into_libs=yes
10906 ;;
10907
10908irix5* | irix6* | nonstopux*)
10909 case $host_os in
10910 nonstopux*) version_type=nonstopux ;;
10911 *)
10912 if test "$lt_cv_prog_gnu_ld" = yes; then
10913 version_type=linux
10914 else
10915 version_type=irix
10916 fi ;;
10917 esac
10918 need_lib_prefix=no
10919 need_version=no
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10922 case $host_os in
10923 irix5* | nonstopux*)
10924 libsuff= shlibsuff=
10925 ;;
10926 *)
10927 case $LD in # libtool.m4 will add one of these switches to LD
10928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10929 libsuff= shlibsuff= libmagic=32-bit;;
10930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10931 libsuff=32 shlibsuff=N32 libmagic=N32;;
10932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10934 *) libsuff= shlibsuff= libmagic=never-match;;
10935 esac
10936 ;;
10937 esac
10938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10939 shlibpath_overrides_runpath=no
10940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10942 hardcode_into_libs=yes
10943 ;;
10944
10945# No shared lib support for Linux oldld, aout, or coff.
10946linux*oldld* | linux*aout* | linux*coff*)
10947 dynamic_linker=no
10948 ;;
10949
10950# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000010951
10952# uclinux* changes (here and below) have been submitted to the libtool
10953# project, but have not yet been accepted: they are GCC-local changes
10954# for the time being. (See
10955# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10956linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000010957 version_type=linux
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=no
10965
10966 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010967 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010968 $as_echo_n "(cached) " >&6
10969else
10970 lt_cv_shlibpath_overrides_runpath=no
10971 save_LDFLAGS=$LDFLAGS
10972 save_libdir=$libdir
10973 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10974 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976/* end confdefs.h. */
10977
10978int
10979main ()
10980{
10981
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986if ac_fn_c_try_link "$LINENO"; then :
10987 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10988 lt_cv_shlibpath_overrides_runpath=yes
10989fi
10990fi
10991rm -f core conftest.err conftest.$ac_objext \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LDFLAGS=$save_LDFLAGS
10994 libdir=$save_libdir
10995
10996fi
10997
10998 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10999
11000 # This implies no fast_install, which is unacceptable.
11001 # Some rework will be needed to allow for fast_install
11002 # before this can be enabled.
11003 hardcode_into_libs=yes
11004
11005 # Append ld.so.conf contents to the search path
11006 if test -f /etc/ld.so.conf; then
11007 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' ' '`
11008 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11009 fi
11010
11011 # We used to test for /lib/ld.so.1 and disable shared libraries on
11012 # powerpc, because MkLinux only supported shared libraries with the
11013 # GNU dynamic linker. Since this was broken with cross compilers,
11014 # most powerpc-linux boxes support dynamic linking these days and
11015 # people can always --disable-shared, the test was removed, and we
11016 # assume the GNU/Linux dynamic linker is in use.
11017 dynamic_linker='GNU/Linux ld.so'
11018 ;;
11019
11020netbsd*)
11021 version_type=sunos
11022 need_lib_prefix=no
11023 need_version=no
11024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11027 dynamic_linker='NetBSD (a.out) ld.so'
11028 else
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 dynamic_linker='NetBSD ld.elf_so'
11032 fi
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11036 ;;
11037
11038newsos6)
11039 version_type=linux
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043 ;;
11044
11045*nto* | *qnx*)
11046 version_type=qnx
11047 need_lib_prefix=no
11048 need_version=no
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 shlibpath_overrides_runpath=no
11053 hardcode_into_libs=yes
11054 dynamic_linker='ldqnx.so'
11055 ;;
11056
11057openbsd*)
11058 version_type=sunos
11059 sys_lib_dlsearch_path_spec="/usr/lib"
11060 need_lib_prefix=no
11061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11062 case $host_os in
11063 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11064 *) need_version=no ;;
11065 esac
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11070 case $host_os in
11071 openbsd2.[89] | openbsd2.[89].*)
11072 shlibpath_overrides_runpath=no
11073 ;;
11074 *)
11075 shlibpath_overrides_runpath=yes
11076 ;;
11077 esac
11078 else
11079 shlibpath_overrides_runpath=yes
11080 fi
11081 ;;
11082
11083os2*)
11084 libname_spec='$name'
11085 shrext_cmds=".dll"
11086 need_lib_prefix=no
11087 library_names_spec='$libname${shared_ext} $libname.a'
11088 dynamic_linker='OS/2 ld.exe'
11089 shlibpath_var=LIBPATH
11090 ;;
11091
11092osf3* | osf4* | osf5*)
11093 version_type=osf
11094 need_lib_prefix=no
11095 need_version=no
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11101 ;;
11102
11103rdos*)
11104 dynamic_linker=no
11105 ;;
11106
11107solaris*)
11108 version_type=linux
11109 need_lib_prefix=no
11110 need_version=no
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=yes
11115 hardcode_into_libs=yes
11116 # ldd complains unless libraries are executable
11117 postinstall_cmds='chmod +x $lib'
11118 ;;
11119
11120sunos4*)
11121 version_type=sunos
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11126 if test "$with_gnu_ld" = yes; then
11127 need_lib_prefix=no
11128 fi
11129 need_version=yes
11130 ;;
11131
11132sysv4 | sysv4.3*)
11133 version_type=linux
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 case $host_vendor in
11138 sni)
11139 shlibpath_overrides_runpath=no
11140 need_lib_prefix=no
11141 runpath_var=LD_RUN_PATH
11142 ;;
11143 siemens)
11144 need_lib_prefix=no
11145 ;;
11146 motorola)
11147 need_lib_prefix=no
11148 need_version=no
11149 shlibpath_overrides_runpath=no
11150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11151 ;;
11152 esac
11153 ;;
11154
11155sysv4*MP*)
11156 if test -d /usr/nec ;then
11157 version_type=linux
11158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11159 soname_spec='$libname${shared_ext}.$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 fi
11162 ;;
11163
11164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11165 version_type=freebsd-elf
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 if test "$with_gnu_ld" = yes; then
11174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11175 else
11176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11177 case $host_os in
11178 sco3.2v5*)
11179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11180 ;;
11181 esac
11182 fi
11183 sys_lib_dlsearch_path_spec='/usr/lib'
11184 ;;
11185
11186tpf*)
11187 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11188 version_type=linux
11189 need_lib_prefix=no
11190 need_version=no
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=no
11194 hardcode_into_libs=yes
11195 ;;
11196
11197uts4*)
11198 version_type=linux
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 ;;
11203
11204*)
11205 dynamic_linker=no
11206 ;;
11207esac
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11209$as_echo "$dynamic_linker" >&6; }
11210test "$dynamic_linker" = no && can_build_shared=no
11211
11212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11213if test "$GCC" = yes; then
11214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11215fi
11216
11217if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11219fi
11220if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11221 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11222fi
11223
11224
11225
11226
11227
11228
11229
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11316$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11317hardcode_action=
11318if test -n "$hardcode_libdir_flag_spec" ||
11319 test -n "$runpath_var" ||
11320 test "X$hardcode_automatic" = "Xyes" ; then
11321
11322 # We can hardcode non-existent directories.
11323 if test "$hardcode_direct" != no &&
11324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11325 # have to relink, otherwise we might link with an installed library
11326 # when we should be linking with a yet-to-be-installed one
11327 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11328 test "$hardcode_minus_L" != no; then
11329 # Linking always hardcodes the temporary library directory.
11330 hardcode_action=relink
11331 else
11332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11333 hardcode_action=immediate
11334 fi
11335else
11336 # We cannot hardcode anything, or else we can only hardcode existing
11337 # directories.
11338 hardcode_action=unsupported
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11341$as_echo "$hardcode_action" >&6; }
11342
11343if test "$hardcode_action" = relink ||
11344 test "$inherit_rpath" = yes; then
11345 # Fast installation is not supported
11346 enable_fast_install=no
11347elif test "$shlibpath_overrides_runpath" = yes ||
11348 test "$enable_shared" = no; then
11349 # Fast installation is not necessary
11350 enable_fast_install=needless
11351fi
11352
11353
11354
11355
11356
11357
11358 if test "x$enable_dlopen" != xyes; then
11359 enable_dlopen=unknown
11360 enable_dlopen_self=unknown
11361 enable_dlopen_self_static=unknown
11362else
11363 lt_cv_dlopen=no
11364 lt_cv_dlopen_libs=
11365
11366 case $host_os in
11367 beos*)
11368 lt_cv_dlopen="load_add_on"
11369 lt_cv_dlopen_libs=
11370 lt_cv_dlopen_self=yes
11371 ;;
11372
11373 mingw* | pw32* | cegcc*)
11374 lt_cv_dlopen="LoadLibrary"
11375 lt_cv_dlopen_libs=
11376 ;;
11377
11378 cygwin*)
11379 lt_cv_dlopen="dlopen"
11380 lt_cv_dlopen_libs=
11381 ;;
11382
11383 darwin*)
11384 # if libdl is installed we need to link against it
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11386$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011387if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011388 $as_echo_n "(cached) " >&6
11389else
11390 ac_check_lib_save_LIBS=$LIBS
11391LIBS="-ldl $LIBS"
11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h. */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char dlopen ();
11402int
11403main ()
11404{
11405return dlopen ();
11406 ;
11407 return 0;
11408}
11409_ACEOF
11410if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_dl_dlopen=yes
11412else
11413 ac_cv_lib_dl_dlopen=no
11414fi
11415rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417LIBS=$ac_check_lib_save_LIBS
11418fi
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11420$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011421if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11423else
11424
11425 lt_cv_dlopen="dyld"
11426 lt_cv_dlopen_libs=
11427 lt_cv_dlopen_self=yes
11428
11429fi
11430
11431 ;;
11432
11433 *)
11434 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011435if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011436 lt_cv_dlopen="shl_load"
11437else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11439$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011440if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011441 $as_echo_n "(cached) " >&6
11442else
11443 ac_check_lib_save_LIBS=$LIBS
11444LIBS="-ldld $LIBS"
11445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446/* end confdefs.h. */
11447
11448/* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451#ifdef __cplusplus
11452extern "C"
11453#endif
11454char shl_load ();
11455int
11456main ()
11457{
11458return shl_load ();
11459 ;
11460 return 0;
11461}
11462_ACEOF
11463if ac_fn_c_try_link "$LINENO"; then :
11464 ac_cv_lib_dld_shl_load=yes
11465else
11466 ac_cv_lib_dld_shl_load=no
11467fi
11468rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470LIBS=$ac_check_lib_save_LIBS
11471fi
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11473$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011474if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11476else
11477 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011478if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011479 lt_cv_dlopen="dlopen"
11480else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11482$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011483if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011484 $as_echo_n "(cached) " >&6
11485else
11486 ac_check_lib_save_LIBS=$LIBS
11487LIBS="-ldl $LIBS"
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char dlopen ();
11498int
11499main ()
11500{
11501return dlopen ();
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506if ac_fn_c_try_link "$LINENO"; then :
11507 ac_cv_lib_dl_dlopen=yes
11508else
11509 ac_cv_lib_dl_dlopen=no
11510fi
11511rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513LIBS=$ac_check_lib_save_LIBS
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11516$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011517if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11519else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11521$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011522if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011523 $as_echo_n "(cached) " >&6
11524else
11525 ac_check_lib_save_LIBS=$LIBS
11526LIBS="-lsvld $LIBS"
11527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528/* end confdefs.h. */
11529
11530/* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533#ifdef __cplusplus
11534extern "C"
11535#endif
11536char dlopen ();
11537int
11538main ()
11539{
11540return dlopen ();
11541 ;
11542 return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_svld_dlopen=yes
11547else
11548 ac_cv_lib_svld_dlopen=no
11549fi
11550rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552LIBS=$ac_check_lib_save_LIBS
11553fi
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11555$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011556if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11558else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11560$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011561if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011562 $as_echo_n "(cached) " >&6
11563else
11564 ac_check_lib_save_LIBS=$LIBS
11565LIBS="-ldld $LIBS"
11566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567/* end confdefs.h. */
11568
11569/* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572#ifdef __cplusplus
11573extern "C"
11574#endif
11575char dld_link ();
11576int
11577main ()
11578{
11579return dld_link ();
11580 ;
11581 return 0;
11582}
11583_ACEOF
11584if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_dld_dld_link=yes
11586else
11587 ac_cv_lib_dld_dld_link=no
11588fi
11589rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591LIBS=$ac_check_lib_save_LIBS
11592fi
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11594$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011595if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011596 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11597fi
11598
11599
11600fi
11601
11602
11603fi
11604
11605
11606fi
11607
11608
11609fi
11610
11611
11612fi
11613
11614 ;;
11615 esac
11616
11617 if test "x$lt_cv_dlopen" != xno; then
11618 enable_dlopen=yes
11619 else
11620 enable_dlopen=no
11621 fi
11622
11623 case $lt_cv_dlopen in
11624 dlopen)
11625 save_CPPFLAGS="$CPPFLAGS"
11626 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11627
11628 save_LDFLAGS="$LDFLAGS"
11629 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11630
11631 save_LIBS="$LIBS"
11632 LIBS="$lt_cv_dlopen_libs $LIBS"
11633
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11635$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011636if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011637 $as_echo_n "(cached) " >&6
11638else
11639 if test "$cross_compiling" = yes; then :
11640 lt_cv_dlopen_self=cross
11641else
11642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11643 lt_status=$lt_dlunknown
11644 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw6e286c82020-04-09 00:16:57 +020011645#line 11645 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011646#include "confdefs.h"
11647
11648#if HAVE_DLFCN_H
11649#include <dlfcn.h>
11650#endif
11651
11652#include <stdio.h>
11653
11654#ifdef RTLD_GLOBAL
11655# define LT_DLGLOBAL RTLD_GLOBAL
11656#else
11657# ifdef DL_GLOBAL
11658# define LT_DLGLOBAL DL_GLOBAL
11659# else
11660# define LT_DLGLOBAL 0
11661# endif
11662#endif
11663
11664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11665 find out it does not work in some platform. */
11666#ifndef LT_DLLAZY_OR_NOW
11667# ifdef RTLD_LAZY
11668# define LT_DLLAZY_OR_NOW RTLD_LAZY
11669# else
11670# ifdef DL_LAZY
11671# define LT_DLLAZY_OR_NOW DL_LAZY
11672# else
11673# ifdef RTLD_NOW
11674# define LT_DLLAZY_OR_NOW RTLD_NOW
11675# else
11676# ifdef DL_NOW
11677# define LT_DLLAZY_OR_NOW DL_NOW
11678# else
11679# define LT_DLLAZY_OR_NOW 0
11680# endif
11681# endif
11682# endif
11683# endif
11684#endif
11685
11686/* When -fvisbility=hidden is used, assume the code has been annotated
11687 correspondingly for the symbols needed. */
11688#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11689void fnord () __attribute__((visibility("default")));
11690#endif
11691
11692void fnord () { int i=42; }
11693int main ()
11694{
11695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11696 int status = $lt_dlunknown;
11697
11698 if (self)
11699 {
11700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11701 else
11702 {
11703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11704 else puts (dlerror ());
11705 }
11706 /* dlclose (self); */
11707 }
11708 else
11709 puts (dlerror ());
11710
11711 return status;
11712}
11713_LT_EOF
11714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11715 (eval $ac_link) 2>&5
11716 ac_status=$?
11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11719 (./conftest; exit; ) >&5 2>/dev/null
11720 lt_status=$?
11721 case x$lt_status in
11722 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11723 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11724 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11725 esac
11726 else :
11727 # compilation failed
11728 lt_cv_dlopen_self=no
11729 fi
11730fi
11731rm -fr conftest*
11732
11733
11734fi
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11736$as_echo "$lt_cv_dlopen_self" >&6; }
11737
11738 if test "x$lt_cv_dlopen_self" = xyes; then
11739 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11741$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011742if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011743 $as_echo_n "(cached) " >&6
11744else
11745 if test "$cross_compiling" = yes; then :
11746 lt_cv_dlopen_self_static=cross
11747else
11748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11749 lt_status=$lt_dlunknown
11750 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw6e286c82020-04-09 00:16:57 +020011751#line 11751 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011752#include "confdefs.h"
11753
11754#if HAVE_DLFCN_H
11755#include <dlfcn.h>
11756#endif
11757
11758#include <stdio.h>
11759
11760#ifdef RTLD_GLOBAL
11761# define LT_DLGLOBAL RTLD_GLOBAL
11762#else
11763# ifdef DL_GLOBAL
11764# define LT_DLGLOBAL DL_GLOBAL
11765# else
11766# define LT_DLGLOBAL 0
11767# endif
11768#endif
11769
11770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11771 find out it does not work in some platform. */
11772#ifndef LT_DLLAZY_OR_NOW
11773# ifdef RTLD_LAZY
11774# define LT_DLLAZY_OR_NOW RTLD_LAZY
11775# else
11776# ifdef DL_LAZY
11777# define LT_DLLAZY_OR_NOW DL_LAZY
11778# else
11779# ifdef RTLD_NOW
11780# define LT_DLLAZY_OR_NOW RTLD_NOW
11781# else
11782# ifdef DL_NOW
11783# define LT_DLLAZY_OR_NOW DL_NOW
11784# else
11785# define LT_DLLAZY_OR_NOW 0
11786# endif
11787# endif
11788# endif
11789# endif
11790#endif
11791
11792/* When -fvisbility=hidden is used, assume the code has been annotated
11793 correspondingly for the symbols needed. */
11794#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11795void fnord () __attribute__((visibility("default")));
11796#endif
11797
11798void fnord () { int i=42; }
11799int main ()
11800{
11801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11802 int status = $lt_dlunknown;
11803
11804 if (self)
11805 {
11806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11807 else
11808 {
11809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11810 else puts (dlerror ());
11811 }
11812 /* dlclose (self); */
11813 }
11814 else
11815 puts (dlerror ());
11816
11817 return status;
11818}
11819_LT_EOF
11820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11821 (eval $ac_link) 2>&5
11822 ac_status=$?
11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11825 (./conftest; exit; ) >&5 2>/dev/null
11826 lt_status=$?
11827 case x$lt_status in
11828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11830 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11831 esac
11832 else :
11833 # compilation failed
11834 lt_cv_dlopen_self_static=no
11835 fi
11836fi
11837rm -fr conftest*
11838
11839
11840fi
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11842$as_echo "$lt_cv_dlopen_self_static" >&6; }
11843 fi
11844
11845 CPPFLAGS="$save_CPPFLAGS"
11846 LDFLAGS="$save_LDFLAGS"
11847 LIBS="$save_LIBS"
11848 ;;
11849 esac
11850
11851 case $lt_cv_dlopen_self in
11852 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11853 *) enable_dlopen_self=unknown ;;
11854 esac
11855
11856 case $lt_cv_dlopen_self_static in
11857 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11858 *) enable_dlopen_self_static=unknown ;;
11859 esac
11860fi
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878striplib=
11879old_striplib=
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11881$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11882if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886$as_echo "yes" >&6; }
11887else
11888# FIXME - insert some real tests, host_os isn't really good enough
11889 case $host_os in
11890 darwin*)
11891 if test -n "$STRIP" ; then
11892 striplib="$STRIP -x"
11893 old_striplib="$STRIP -S"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11895$as_echo "yes" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898$as_echo "no" >&6; }
11899 fi
11900 ;;
11901 *)
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
11904 ;;
11905 esac
11906fi
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919 # Report which library types will actually be built
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11921$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11923$as_echo "$can_build_shared" >&6; }
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11926$as_echo_n "checking whether to build shared libraries... " >&6; }
11927 test "$can_build_shared" = "no" && enable_shared=no
11928
11929 # On AIX, shared libraries and static libraries use the same namespace, and
11930 # are all built from PIC.
11931 case $host_os in
11932 aix3*)
11933 test "$enable_shared" = yes && enable_static=no
11934 if test -n "$RANLIB"; then
11935 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11936 postinstall_cmds='$RANLIB $lib'
11937 fi
11938 ;;
11939
11940 aix[4-9]*)
11941 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11942 test "$enable_shared" = yes && enable_static=no
11943 fi
11944 ;;
11945 esac
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11947$as_echo "$enable_shared" >&6; }
11948
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11950$as_echo_n "checking whether to build static libraries... " >&6; }
11951 # Make sure either enable_shared or enable_static is yes.
11952 test "$enable_shared" = yes || enable_static=yes
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11954$as_echo "$enable_static" >&6; }
11955
11956
11957
11958
11959fi
11960ac_ext=c
11961ac_cpp='$CPP $CPPFLAGS'
11962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11964ac_compiler_gnu=$ac_cv_c_compiler_gnu
11965
11966CC="$lt_save_CC"
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980 ac_config_commands="$ac_config_commands libtool"
11981
11982
11983
11984
11985# Only expand once:
11986
11987
11988
11989
11990
11991 gdc_save_DFLAGS=$GDCFLAGS
11992 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11993
11994
11995# Source file extension for D test sources.
11996ac_ext=d
11997
11998# Object file extension for compiled D test sources.
11999objext=o
12000objext_D=$objext
12001
12002# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012003lt_simple_compile_test_code="\
12004 module object;
12005 shared int some_variable = 0;
12006"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012007
12008# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012009lt_simple_link_test_code="\
12010 module object;
12011 extern(C) int main() { return 0; }
12012"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012013
12014# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12015
12016
12017
12018
12019
12020
12021# If no C compiler was specified, use CC.
12022LTCC=${LTCC-"$CC"}
12023
12024# If no C compiler flags were specified, use CFLAGS.
12025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12026
12027# Allow CC to be a program name with arguments.
12028compiler=$CC
12029
12030
12031# save warnings/boilerplate of simple test code
12032ac_outfile=conftest.$ac_objext
12033echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12035_lt_compiler_boilerplate=`cat conftest.err`
12036$RM conftest*
12037
12038ac_outfile=conftest.$ac_objext
12039echo "$lt_simple_link_test_code" >conftest.$ac_ext
12040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12041_lt_linker_boilerplate=`cat conftest.err`
12042$RM -r conftest*
12043
12044
12045# Allow CC to be a program name with arguments.
12046lt_save_CC=$CC
12047lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012048lt_save_GCC=$GCC
12049GCC=yes
12050CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012051CFLAGS=$GDCFLAGS
12052compiler=$CC
12053compiler_D=$CC
12054LD_D=$CC
12055for cc_temp in $compiler""; do
12056 case $cc_temp in
12057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12059 \-*) ;;
12060 *) break;;
12061 esac
12062done
12063cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12064
12065
12066# GDC did not exist at the time GCC didn't implicitly link libc in.
12067archive_cmds_need_lc_D=no
12068
12069old_archive_cmds_D=$old_archive_cmds
12070reload_flag_D=$reload_flag
12071reload_cmds_D=$reload_cmds
12072
12073## CAVEAT EMPTOR:
12074## There is no encapsulation within the following macros, do not change
12075## the running order or otherwise move them around unless you know exactly
12076## what you are doing...
12077if test -n "$compiler"; then
12078
12079lt_prog_compiler_no_builtin_flag_D=
12080
12081if test "$GCC" = yes; then
12082 case $cc_basename in
12083 nvcc*)
12084 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12085 *)
12086 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12087 esac
12088
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12090$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012091if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012092 $as_echo_n "(cached) " >&6
12093else
12094 lt_cv_prog_compiler_rtti_exceptions=no
12095 ac_outfile=conftest.$ac_objext
12096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12097 lt_compiler_flag="-fno-rtti -fno-exceptions"
12098 # Insert the option either (1) after the last *FLAGS variable, or
12099 # (2) before a word containing "conftest.", or (3) at the end.
12100 # Note that $ac_compile itself does not contain backslashes and begins
12101 # with a dollar sign (not a hyphen), so the echo should work correctly.
12102 # The option is referenced via a variable to avoid confusing sed.
12103 lt_compile=`echo "$ac_compile" | $SED \
12104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12106 -e 's:$: $lt_compiler_flag:'`
12107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12108 (eval "$lt_compile" 2>conftest.err)
12109 ac_status=$?
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 if (exit $ac_status) && test -s "$ac_outfile"; then
12113 # The compiler can only warn and ignore the option if not recognized
12114 # So say no if there are warnings other than the usual output.
12115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12118 lt_cv_prog_compiler_rtti_exceptions=yes
12119 fi
12120 fi
12121 $RM conftest*
12122
12123fi
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12125$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12126
12127if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12128 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12129else
12130 :
12131fi
12132
12133fi
12134
12135
12136
12137 lt_prog_compiler_wl_D=
12138lt_prog_compiler_pic_D=
12139lt_prog_compiler_static_D=
12140
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12142$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12143
12144 if test "$GCC" = yes; then
12145 lt_prog_compiler_wl_D='-Wl,'
12146 lt_prog_compiler_static_D='-static'
12147
12148 case $host_os in
12149 aix*)
12150 # All AIX code is PIC.
12151 if test "$host_cpu" = ia64; then
12152 # AIX 5 now supports IA64 processor
12153 lt_prog_compiler_static_D='-Bstatic'
12154 fi
12155 lt_prog_compiler_pic_D='-fPIC'
12156 ;;
12157
12158 amigaos*)
12159 case $host_cpu in
12160 powerpc)
12161 # see comment about AmigaOS4 .so support
12162 lt_prog_compiler_pic_D='-fPIC'
12163 ;;
12164 m68k)
12165 # FIXME: we need at least 68020 code to build shared libraries, but
12166 # adding the `-m68020' flag to GCC prevents building anything better,
12167 # like `-m68040'.
12168 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12169 ;;
12170 esac
12171 ;;
12172
12173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12174 # PIC is the default for these OSes.
12175 ;;
12176
12177 mingw* | cygwin* | pw32* | os2* | cegcc*)
12178 # This hack is so that the source file can tell whether it is being
12179 # built for inclusion in a dll (and should export symbols for example).
12180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12181 # (--disable-auto-import) libraries
12182 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12183 ;;
12184
12185 darwin* | rhapsody*)
12186 # PIC is the default on this platform
12187 # Common symbols not allowed in MH_DYLIB files
12188 lt_prog_compiler_pic_D='-fno-common'
12189 ;;
12190
12191 haiku*)
12192 # PIC is the default for Haiku.
12193 # The "-static" flag exists, but is broken.
12194 lt_prog_compiler_static_D=
12195 ;;
12196
12197 hpux*)
12198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12200 # sets the default TLS model and affects inlining.
12201 case $host_cpu in
12202 hppa*64*)
12203 # +Z the default
12204 ;;
12205 *)
12206 lt_prog_compiler_pic_D='-fPIC'
12207 ;;
12208 esac
12209 ;;
12210
12211 interix[3-9]*)
12212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12213 # Instead, we relocate shared libraries at runtime.
12214 ;;
12215
12216 msdosdjgpp*)
12217 # Just because we use GCC doesn't mean we suddenly get shared libraries
12218 # on systems that don't support them.
12219 lt_prog_compiler_can_build_shared_D=no
12220 enable_shared=no
12221 ;;
12222
12223 *nto* | *qnx*)
12224 # QNX uses GNU C++, but need to define -shared option too, otherwise
12225 # it will coredump.
12226 lt_prog_compiler_pic_D='-fPIC -shared'
12227 ;;
12228
12229 sysv4*MP*)
12230 if test -d /usr/nec; then
12231 lt_prog_compiler_pic_D=-Kconform_pic
12232 fi
12233 ;;
12234
12235 *)
12236 lt_prog_compiler_pic_D='-fPIC'
12237 ;;
12238 esac
12239
12240 case $cc_basename in
12241 nvcc*) # Cuda Compiler Driver 2.2
12242 lt_prog_compiler_wl_D='-Xlinker '
12243 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12244 ;;
12245 esac
12246 else
12247 # PORTME Check for flag to pass linker flags through the system compiler.
12248 case $host_os in
12249 aix*)
12250 lt_prog_compiler_wl_D='-Wl,'
12251 if test "$host_cpu" = ia64; then
12252 # AIX 5 now supports IA64 processor
12253 lt_prog_compiler_static_D='-Bstatic'
12254 else
12255 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12256 fi
12257 ;;
12258
12259 mingw* | cygwin* | pw32* | os2* | cegcc*)
12260 # This hack is so that the source file can tell whether it is being
12261 # built for inclusion in a dll (and should export symbols for example).
12262 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12263 ;;
12264
12265 hpux9* | hpux10* | hpux11*)
12266 lt_prog_compiler_wl_D='-Wl,'
12267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12268 # not for PA HP-UX.
12269 case $host_cpu in
12270 hppa*64*|ia64*)
12271 # +Z the default
12272 ;;
12273 *)
12274 lt_prog_compiler_pic_D='+Z'
12275 ;;
12276 esac
12277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12278 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12279 ;;
12280
12281 irix5* | irix6* | nonstopux*)
12282 lt_prog_compiler_wl_D='-Wl,'
12283 # PIC (with -KPIC) is the default.
12284 lt_prog_compiler_static_D='-non_shared'
12285 ;;
12286
12287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12288 case $cc_basename in
12289 # old Intel for x86_64 which still supported -KPIC.
12290 ecc*)
12291 lt_prog_compiler_wl_D='-Wl,'
12292 lt_prog_compiler_pic_D='-KPIC'
12293 lt_prog_compiler_static_D='-static'
12294 ;;
12295 # icc used to be incompatible with GCC.
12296 # ICC 10 doesn't accept -KPIC any more.
12297 icc* | ifort*)
12298 lt_prog_compiler_wl_D='-Wl,'
12299 lt_prog_compiler_pic_D='-fPIC'
12300 lt_prog_compiler_static_D='-static'
12301 ;;
12302 # Lahey Fortran 8.1.
12303 lf95*)
12304 lt_prog_compiler_wl_D='-Wl,'
12305 lt_prog_compiler_pic_D='--shared'
12306 lt_prog_compiler_static_D='--static'
12307 ;;
12308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12309 # Portland Group compilers (*not* the Pentium gcc compiler,
12310 # which looks to be a dead project)
12311 lt_prog_compiler_wl_D='-Wl,'
12312 lt_prog_compiler_pic_D='-fpic'
12313 lt_prog_compiler_static_D='-Bstatic'
12314 ;;
12315 ccc*)
12316 lt_prog_compiler_wl_D='-Wl,'
12317 # All Alpha code is PIC.
12318 lt_prog_compiler_static_D='-non_shared'
12319 ;;
12320 xl* | bgxl* | bgf* | mpixl*)
12321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12322 lt_prog_compiler_wl_D='-Wl,'
12323 lt_prog_compiler_pic_D='-qpic'
12324 lt_prog_compiler_static_D='-qstaticlink'
12325 ;;
12326 *)
12327 case `$CC -V 2>&1 | sed 5q` in
12328 *Sun\ F* | *Sun*Fortran*)
12329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12330 lt_prog_compiler_pic_D='-KPIC'
12331 lt_prog_compiler_static_D='-Bstatic'
12332 lt_prog_compiler_wl_D=''
12333 ;;
12334 *Sun\ C*)
12335 # Sun C 5.9
12336 lt_prog_compiler_pic_D='-KPIC'
12337 lt_prog_compiler_static_D='-Bstatic'
12338 lt_prog_compiler_wl_D='-Wl,'
12339 ;;
12340 esac
12341 ;;
12342 esac
12343 ;;
12344
12345 newsos6)
12346 lt_prog_compiler_pic_D='-KPIC'
12347 lt_prog_compiler_static_D='-Bstatic'
12348 ;;
12349
12350 *nto* | *qnx*)
12351 # QNX uses GNU C++, but need to define -shared option too, otherwise
12352 # it will coredump.
12353 lt_prog_compiler_pic_D='-fPIC -shared'
12354 ;;
12355
12356 osf3* | osf4* | osf5*)
12357 lt_prog_compiler_wl_D='-Wl,'
12358 # All OSF/1 code is PIC.
12359 lt_prog_compiler_static_D='-non_shared'
12360 ;;
12361
12362 rdos*)
12363 lt_prog_compiler_static_D='-non_shared'
12364 ;;
12365
12366 solaris*)
12367 lt_prog_compiler_pic_D='-KPIC'
12368 lt_prog_compiler_static_D='-Bstatic'
12369 case $cc_basename in
12370 f77* | f90* | f95*)
12371 lt_prog_compiler_wl_D='-Qoption ld ';;
12372 *)
12373 lt_prog_compiler_wl_D='-Wl,';;
12374 esac
12375 ;;
12376
12377 sunos4*)
12378 lt_prog_compiler_wl_D='-Qoption ld '
12379 lt_prog_compiler_pic_D='-PIC'
12380 lt_prog_compiler_static_D='-Bstatic'
12381 ;;
12382
12383 sysv4 | sysv4.2uw2* | sysv4.3*)
12384 lt_prog_compiler_wl_D='-Wl,'
12385 lt_prog_compiler_pic_D='-KPIC'
12386 lt_prog_compiler_static_D='-Bstatic'
12387 ;;
12388
12389 sysv4*MP*)
12390 if test -d /usr/nec ;then
12391 lt_prog_compiler_pic_D='-Kconform_pic'
12392 lt_prog_compiler_static_D='-Bstatic'
12393 fi
12394 ;;
12395
12396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12397 lt_prog_compiler_wl_D='-Wl,'
12398 lt_prog_compiler_pic_D='-KPIC'
12399 lt_prog_compiler_static_D='-Bstatic'
12400 ;;
12401
12402 unicos*)
12403 lt_prog_compiler_wl_D='-Wl,'
12404 lt_prog_compiler_can_build_shared_D=no
12405 ;;
12406
12407 uts4*)
12408 lt_prog_compiler_pic_D='-pic'
12409 lt_prog_compiler_static_D='-Bstatic'
12410 ;;
12411
12412 *)
12413 lt_prog_compiler_can_build_shared_D=no
12414 ;;
12415 esac
12416 fi
12417
12418case $host_os in
12419 # For platforms which do not support PIC, -DPIC is meaningless:
12420 *djgpp*)
12421 lt_prog_compiler_pic_D=
12422 ;;
12423 *)
12424 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12425 ;;
12426esac
12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12428$as_echo "$lt_prog_compiler_pic_D" >&6; }
12429
12430
12431
12432#
12433# Check to make sure the PIC flag actually works.
12434#
12435if test -n "$lt_prog_compiler_pic_D"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12437$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012438if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012439 $as_echo_n "(cached) " >&6
12440else
12441 lt_cv_prog_compiler_pic_works_D=no
12442 ac_outfile=conftest.$ac_objext
12443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12444 lt_compiler_flag="$lt_prog_compiler_pic_D"
12445 # Insert the option either (1) after the last *FLAGS variable, or
12446 # (2) before a word containing "conftest.", or (3) at the end.
12447 # Note that $ac_compile itself does not contain backslashes and begins
12448 # with a dollar sign (not a hyphen), so the echo should work correctly.
12449 # The option is referenced via a variable to avoid confusing sed.
12450 lt_compile=`echo "$ac_compile" | $SED \
12451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12453 -e 's:$: $lt_compiler_flag:'`
12454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12455 (eval "$lt_compile" 2>conftest.err)
12456 ac_status=$?
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 if (exit $ac_status) && test -s "$ac_outfile"; then
12460 # The compiler can only warn and ignore the option if not recognized
12461 # So say no if there are warnings other than the usual output.
12462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12465 lt_cv_prog_compiler_pic_works_D=yes
12466 fi
12467 fi
12468 $RM conftest*
12469
12470fi
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12472$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12473
12474if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12475 case $lt_prog_compiler_pic_D in
12476 "" | " "*) ;;
12477 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12478 esac
12479else
12480 lt_prog_compiler_pic_D=
12481 lt_prog_compiler_can_build_shared_D=no
12482fi
12483
12484fi
12485
12486
12487
12488#
12489# Check to make sure the static flag actually works.
12490#
12491wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12493$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012494if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012495 $as_echo_n "(cached) " >&6
12496else
12497 lt_cv_prog_compiler_static_works_D=no
12498 save_LDFLAGS="$LDFLAGS"
12499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12500 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12502 # The linker can only warn and ignore the option if not recognized
12503 # So say no if there are warnings
12504 if test -s conftest.err; then
12505 # Append any errors to the config.log.
12506 cat conftest.err 1>&5
12507 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12509 if diff conftest.exp conftest.er2 >/dev/null; then
12510 lt_cv_prog_compiler_static_works_D=yes
12511 fi
12512 else
12513 lt_cv_prog_compiler_static_works_D=yes
12514 fi
12515 fi
12516 $RM -r conftest*
12517 LDFLAGS="$save_LDFLAGS"
12518
12519fi
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12521$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12522
12523if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12524 :
12525else
12526 lt_prog_compiler_static_D=
12527fi
12528
12529
12530
12531
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012534if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012535 $as_echo_n "(cached) " >&6
12536else
12537 lt_cv_prog_compiler_c_o_D=no
12538 $RM -r conftest 2>/dev/null
12539 mkdir conftest
12540 cd conftest
12541 mkdir out
12542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12543
12544 lt_compiler_flag="-o out/conftest2.$ac_objext"
12545 # Insert the option either (1) after the last *FLAGS variable, or
12546 # (2) before a word containing "conftest.", or (3) at the end.
12547 # Note that $ac_compile itself does not contain backslashes and begins
12548 # with a dollar sign (not a hyphen), so the echo should work correctly.
12549 lt_compile=`echo "$ac_compile" | $SED \
12550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12552 -e 's:$: $lt_compiler_flag:'`
12553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12554 (eval "$lt_compile" 2>out/conftest.err)
12555 ac_status=$?
12556 cat out/conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12559 then
12560 # The compiler can only warn and ignore the option if not recognized
12561 # So say no if there are warnings
12562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12565 lt_cv_prog_compiler_c_o_D=yes
12566 fi
12567 fi
12568 chmod u+w . 2>&5
12569 $RM conftest*
12570 # SGI C++ compiler will create directory out/ii_files/ for
12571 # template instantiation
12572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12573 $RM out/* && rmdir out
12574 cd ..
12575 $RM -r conftest
12576 $RM conftest*
12577
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12580$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12581
12582
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12585$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012586if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012587 $as_echo_n "(cached) " >&6
12588else
12589 lt_cv_prog_compiler_c_o_D=no
12590 $RM -r conftest 2>/dev/null
12591 mkdir conftest
12592 cd conftest
12593 mkdir out
12594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12595
12596 lt_compiler_flag="-o out/conftest2.$ac_objext"
12597 # Insert the option either (1) after the last *FLAGS variable, or
12598 # (2) before a word containing "conftest.", or (3) at the end.
12599 # Note that $ac_compile itself does not contain backslashes and begins
12600 # with a dollar sign (not a hyphen), so the echo should work correctly.
12601 lt_compile=`echo "$ac_compile" | $SED \
12602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12604 -e 's:$: $lt_compiler_flag:'`
12605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12606 (eval "$lt_compile" 2>out/conftest.err)
12607 ac_status=$?
12608 cat out/conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12611 then
12612 # The compiler can only warn and ignore the option if not recognized
12613 # So say no if there are warnings
12614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12617 lt_cv_prog_compiler_c_o_D=yes
12618 fi
12619 fi
12620 chmod u+w . 2>&5
12621 $RM conftest*
12622 # SGI C++ compiler will create directory out/ii_files/ for
12623 # template instantiation
12624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12625 $RM out/* && rmdir out
12626 cd ..
12627 $RM -r conftest
12628 $RM conftest*
12629
12630fi
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12632$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12633
12634
12635
12636
12637hard_links="nottested"
12638if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12639 # do not overwrite the value of need_locks provided by the user
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12641$as_echo_n "checking if we can lock with hard links... " >&6; }
12642 hard_links=yes
12643 $RM conftest*
12644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12645 touch conftest.a
12646 ln conftest.a conftest.b 2>&5 || hard_links=no
12647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12649$as_echo "$hard_links" >&6; }
12650 if test "$hard_links" = no; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12652$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12653 need_locks=warn
12654 fi
12655else
12656 need_locks=no
12657fi
12658
12659
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12662$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12663
12664 runpath_var=
12665 allow_undefined_flag_D=
12666 always_export_symbols_D=no
12667 archive_cmds_D=
12668 archive_expsym_cmds_D=
12669 compiler_needs_object_D=no
12670 enable_shared_with_static_runtimes_D=no
12671 export_dynamic_flag_spec_D=
12672 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12673 hardcode_automatic_D=no
12674 hardcode_direct_D=no
12675 hardcode_direct_absolute_D=no
12676 hardcode_libdir_flag_spec_D=
12677 hardcode_libdir_flag_spec_ld_D=
12678 hardcode_libdir_separator_D=
12679 hardcode_minus_L_D=no
12680 hardcode_shlibpath_var_D=unsupported
12681 inherit_rpath_D=no
12682 link_all_deplibs_D=unknown
12683 module_cmds_D=
12684 module_expsym_cmds_D=
12685 old_archive_from_new_cmds_D=
12686 old_archive_from_expsyms_cmds_D=
12687 thread_safe_flag_spec_D=
12688 whole_archive_flag_spec_D=
12689 # include_expsyms should be a list of space-separated symbols to be *always*
12690 # included in the symbol list
12691 include_expsyms_D=
12692 # exclude_expsyms can be an extended regexp of symbols to exclude
12693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12695 # as well as any symbol that contains `d'.
12696 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12698 # platforms (ab)use it in PIC code, but their linkers get confused if
12699 # the symbol is explicitly referenced. Since portable code cannot
12700 # rely on this symbol name, it's probably fine to never include it in
12701 # preloaded symbol tables.
12702 # Exclude shared library initialization/finalization symbols.
12703 extract_expsyms_cmds=
12704
12705 case $host_os in
12706 cygwin* | mingw* | pw32* | cegcc*)
12707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12708 # When not using gcc, we currently assume that we are using
12709 # Microsoft Visual C++.
12710 if test "$GCC" != yes; then
12711 with_gnu_ld=no
12712 fi
12713 ;;
12714 interix*)
12715 # we just hope/assume this is gcc and not c89 (= MSVC++)
12716 with_gnu_ld=yes
12717 ;;
12718 openbsd*)
12719 with_gnu_ld=no
12720 ;;
12721 esac
12722
12723 ld_shlibs_D=yes
12724
12725 # On some targets, GNU ld is compatible enough with the native linker
12726 # that we're better off using the native interface for both.
12727 lt_use_gnu_ld_interface=no
12728 if test "$with_gnu_ld" = yes; then
12729 case $host_os in
12730 aix*)
12731 # The AIX port of GNU ld has always aspired to compatibility
12732 # with the native linker. However, as the warning in the GNU ld
12733 # block says, versions before 2.19.5* couldn't really create working
12734 # shared libraries, regardless of the interface used.
12735 case `$LD -v 2>&1` in
12736 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12737 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12738 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12739 *)
12740 lt_use_gnu_ld_interface=yes
12741 ;;
12742 esac
12743 ;;
12744 *)
12745 lt_use_gnu_ld_interface=yes
12746 ;;
12747 esac
12748 fi
12749
12750 if test "$lt_use_gnu_ld_interface" = yes; then
12751 # If archive_cmds runs LD, not CC, wlarc should be empty
12752 wlarc='${wl}'
12753
12754 # Set some defaults for GNU ld with shared library support. These
12755 # are reset later if shared libraries are not supported. Putting them
12756 # here allows them to be overridden if necessary.
12757 runpath_var=LD_RUN_PATH
12758 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12759 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12760 # ancient GNU ld didn't support --whole-archive et. al.
12761 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12762 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12763 else
12764 whole_archive_flag_spec_D=
12765 fi
12766 supports_anon_versioning=no
12767 case `$LD -v 2>&1` in
12768 *GNU\ gold*) supports_anon_versioning=yes ;;
12769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12772 *\ 2.11.*) ;; # other 2.11 versions
12773 *) supports_anon_versioning=yes ;;
12774 esac
12775
12776 # See if GNU ld supports shared libraries.
12777 case $host_os in
12778 aix[3-9]*)
12779 # On AIX/PPC, the GNU linker is very broken
12780 if test "$host_cpu" != ia64; then
12781 ld_shlibs_D=no
12782 cat <<_LT_EOF 1>&2
12783
12784*** Warning: the GNU linker, at least up to release 2.19, is reported
12785*** to be unable to reliably create shared libraries on AIX.
12786*** Therefore, libtool is disabling shared libraries support. If you
12787*** really care for shared libraries, you may want to install binutils
12788*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12789*** You will then need to restart the configuration process.
12790
12791_LT_EOF
12792 fi
12793 ;;
12794
12795 amigaos*)
12796 case $host_cpu in
12797 powerpc)
12798 # see comment about AmigaOS4 .so support
12799 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12800 archive_expsym_cmds_D=''
12801 ;;
12802 m68k)
12803 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)'
12804 hardcode_libdir_flag_spec_D='-L$libdir'
12805 hardcode_minus_L_D=yes
12806 ;;
12807 esac
12808 ;;
12809
12810 beos*)
12811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12812 allow_undefined_flag_D=unsupported
12813 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12814 # support --undefined. This deserves some investigation. FIXME
12815 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816 else
12817 ld_shlibs_D=no
12818 fi
12819 ;;
12820
12821 cygwin* | mingw* | pw32* | cegcc*)
12822 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12823 # as there is no search path for DLLs.
12824 hardcode_libdir_flag_spec_D='-L$libdir'
12825 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12826 allow_undefined_flag_D=unsupported
12827 always_export_symbols_D=no
12828 enable_shared_with_static_runtimes_D=yes
12829 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12830
12831 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12832 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12833 # If the export-symbols file already is a .def file (1st line
12834 # is EXPORTS), use it as is; otherwise, prepend...
12835 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12836 cp $export_symbols $output_objdir/$soname.def;
12837 else
12838 echo EXPORTS > $output_objdir/$soname.def;
12839 cat $export_symbols >> $output_objdir/$soname.def;
12840 fi~
12841 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12842 else
12843 ld_shlibs_D=no
12844 fi
12845 ;;
12846
12847 haiku*)
12848 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12849 link_all_deplibs_D=yes
12850 ;;
12851
12852 interix[3-9]*)
12853 hardcode_direct_D=no
12854 hardcode_shlibpath_var_D=no
12855 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12856 export_dynamic_flag_spec_D='${wl}-E'
12857 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12858 # Instead, shared libraries are loaded at an image base (0x10000000 by
12859 # default) and relocated if they conflict, which is a slow very memory
12860 # consuming and fragmenting process. To avoid this, we pick a random,
12861 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12862 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12863 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'
12864 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'
12865 ;;
12866
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000012867 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000012868 tmp_diet=no
12869 if test "$host_os" = linux-dietlibc; then
12870 case $cc_basename in
12871 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12872 esac
12873 fi
12874 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12875 && test "$tmp_diet" = no
12876 then
12877 tmp_addflag=' $pic_flag'
12878 tmp_sharedflag='-shared'
12879 case $cc_basename,$host_cpu in
12880 pgcc*) # Portland Group C compiler
12881 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'
12882 tmp_addflag=' $pic_flag'
12883 ;;
12884 pgf77* | pgf90* | pgf95* | pgfortran*)
12885 # Portland Group f77 and f90 compilers
12886 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'
12887 tmp_addflag=' $pic_flag -Mnomain' ;;
12888 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12889 tmp_addflag=' -i_dynamic' ;;
12890 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12891 tmp_addflag=' -i_dynamic -nofor_main' ;;
12892 ifc* | ifort*) # Intel Fortran compiler
12893 tmp_addflag=' -nofor_main' ;;
12894 lf95*) # Lahey Fortran 8.1
12895 whole_archive_flag_spec_D=
12896 tmp_sharedflag='--shared' ;;
12897 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12898 tmp_sharedflag='-qmkshrobj'
12899 tmp_addflag= ;;
12900 nvcc*) # Cuda Compiler Driver 2.2
12901 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'
12902 compiler_needs_object_D=yes
12903 ;;
12904 esac
12905 case `$CC -V 2>&1 | sed 5q` in
12906 *Sun\ C*) # Sun C 5.9
12907 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'
12908 compiler_needs_object_D=yes
12909 tmp_sharedflag='-G' ;;
12910 *Sun\ F*) # Sun Fortran 8.3
12911 tmp_sharedflag='-G' ;;
12912 esac
12913 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12914
12915 if test "x$supports_anon_versioning" = xyes; then
12916 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12918 echo "local: *; };" >> $output_objdir/$libname.ver~
12919 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12920 fi
12921
12922 case $cc_basename in
12923 xlf* | bgf* | bgxlf* | mpixlf*)
12924 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12925 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12926 hardcode_libdir_flag_spec_D=
12927 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12928 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12929 if test "x$supports_anon_versioning" = xyes; then
12930 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12931 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12932 echo "local: *; };" >> $output_objdir/$libname.ver~
12933 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12934 fi
12935 ;;
12936 esac
12937 else
12938 ld_shlibs_D=no
12939 fi
12940 ;;
12941
12942 netbsd*)
12943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12944 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12945 wlarc=
12946 else
12947 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949 fi
12950 ;;
12951
12952 solaris*)
12953 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12954 ld_shlibs_D=no
12955 cat <<_LT_EOF 1>&2
12956
12957*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12958*** create shared libraries on Solaris systems. Therefore, libtool
12959*** is disabling shared libraries support. We urge you to upgrade GNU
12960*** binutils to release 2.9.1 or newer. Another option is to modify
12961*** your PATH or compiler configuration so that the native linker is
12962*** used, and then restart.
12963
12964_LT_EOF
12965 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12966 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12968 else
12969 ld_shlibs_D=no
12970 fi
12971 ;;
12972
12973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12974 case `$LD -v 2>&1` in
12975 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12976 ld_shlibs_D=no
12977 cat <<_LT_EOF 1>&2
12978
12979*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12980*** reliably create shared libraries on SCO systems. Therefore, libtool
12981*** is disabling shared libraries support. We urge you to upgrade GNU
12982*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12983*** your PATH or compiler configuration so that the native linker is
12984*** used, and then restart.
12985
12986_LT_EOF
12987 ;;
12988 *)
12989 # For security reasons, it is highly recommended that you always
12990 # use absolute paths for naming shared libraries, and exclude the
12991 # DT_RUNPATH tag from executables and libraries. But doing so
12992 # requires that you compile everything twice, which is a pain.
12993 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12994 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12995 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12997 else
12998 ld_shlibs_D=no
12999 fi
13000 ;;
13001 esac
13002 ;;
13003
13004 sunos4*)
13005 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13006 wlarc=
13007 hardcode_direct_D=yes
13008 hardcode_shlibpath_var_D=no
13009 ;;
13010
13011 *)
13012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13013 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13014 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13015 else
13016 ld_shlibs_D=no
13017 fi
13018 ;;
13019 esac
13020
13021 if test "$ld_shlibs_D" = no; then
13022 runpath_var=
13023 hardcode_libdir_flag_spec_D=
13024 export_dynamic_flag_spec_D=
13025 whole_archive_flag_spec_D=
13026 fi
13027 else
13028 # PORTME fill in a description of your system's linker (not GNU ld)
13029 case $host_os in
13030 aix3*)
13031 allow_undefined_flag_D=unsupported
13032 always_export_symbols_D=yes
13033 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'
13034 # Note: this linker hardcodes the directories in LIBPATH if there
13035 # are no directories specified by -L.
13036 hardcode_minus_L_D=yes
13037 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13038 # Neither direct hardcoding nor static linking is supported with a
13039 # broken collect2.
13040 hardcode_direct_D=unsupported
13041 fi
13042 ;;
13043
13044 aix[4-9]*)
13045 if test "$host_cpu" = ia64; then
13046 # On IA64, the linker does run time linking by default, so we don't
13047 # have to do anything special.
13048 aix_use_runtimelinking=no
13049 exp_sym_flag='-Bexport'
13050 no_entry_flag=""
13051 else
13052 # If we're using GNU nm, then we don't want the "-C" option.
13053 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13054 # Also, AIX nm treats weak defined symbols like other global
13055 # defined symbols, whereas GNU nm marks them as "W".
13056 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13057 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'
13058 else
13059 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'
13060 fi
13061 aix_use_runtimelinking=no
13062
13063 # Test if we are trying to use run time linking or normal
13064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13065 # need to do runtime linking.
13066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13067 for ld_flag in $LDFLAGS; do
13068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13069 aix_use_runtimelinking=yes
13070 break
13071 fi
13072 done
13073 ;;
13074 esac
13075
13076 exp_sym_flag='-bexport'
13077 no_entry_flag='-bnoentry'
13078 fi
13079
13080 # When large executables or shared objects are built, AIX ld can
13081 # have problems creating the table of contents. If linking a library
13082 # or program results in "error TOC overflow" add -mminimal-toc to
13083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13085
13086 archive_cmds_D=''
13087 hardcode_direct_D=yes
13088 hardcode_direct_absolute_D=yes
13089 hardcode_libdir_separator_D=':'
13090 link_all_deplibs_D=yes
13091 file_list_spec_D='${wl}-f,'
13092
13093 if test "$GCC" = yes; then
13094 case $host_os in aix4.[012]|aix4.[012].*)
13095 # We only want to do this on AIX 4.2 and lower, the check
13096 # below for broken collect2 doesn't work under 4.3+
13097 collect2name=`${CC} -print-prog-name=collect2`
13098 if test -f "$collect2name" &&
13099 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13100 then
13101 # We have reworked collect2
13102 :
13103 else
13104 # We have old collect2
13105 hardcode_direct_D=unsupported
13106 # It fails to find uninstalled libraries when the uninstalled
13107 # path is not listed in the libpath. Setting hardcode_minus_L
13108 # to unsupported forces relinking
13109 hardcode_minus_L_D=yes
13110 hardcode_libdir_flag_spec_D='-L$libdir'
13111 hardcode_libdir_separator_D=
13112 fi
13113 ;;
13114 esac
13115 shared_flag='-shared'
13116 if test "$aix_use_runtimelinking" = yes; then
13117 shared_flag="$shared_flag "'${wl}-G'
13118 fi
13119 else
13120 # not using gcc
13121 if test "$host_cpu" = ia64; then
13122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13123 # chokes on -Wl,-G. The following line is correct:
13124 shared_flag='-G'
13125 else
13126 if test "$aix_use_runtimelinking" = yes; then
13127 shared_flag='${wl}-G'
13128 else
13129 shared_flag='${wl}-bM:SRE'
13130 fi
13131 fi
13132 fi
13133
13134 export_dynamic_flag_spec_D='${wl}-bexpall'
13135 # It seems that -bexpall does not export symbols beginning with
13136 # underscore (_), so it is better to generate a list of symbols to export.
13137 always_export_symbols_D=yes
13138 if test "$aix_use_runtimelinking" = yes; then
13139 # Warning - without using the other runtime loading flags (-brtl),
13140 # -berok will link without error, but may produce a broken library.
13141 allow_undefined_flag_D='-berok'
13142 # Determine the default libpath from the value encoded in an
13143 # empty executable.
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h. */
13146
13147int
13148main ()
13149{
13150
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155if ac_fn_c_try_link "$LINENO"; then :
13156
13157lt_aix_libpath_sed='
13158 /Import File Strings/,/^$/ {
13159 /^0/ {
13160 s/^0 *\(.*\)$/\1/
13161 p
13162 }
13163 }'
13164aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13165# Check for a 64-bit object if we didn't find anything.
13166if test -z "$aix_libpath"; then
13167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13168fi
13169fi
13170rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13173
13174 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13175 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"
13176 else
13177 if test "$host_cpu" = ia64; then
13178 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13179 allow_undefined_flag_D="-z nodefs"
13180 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"
13181 else
13182 # Determine the default libpath from the value encoded in an
13183 # empty executable.
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h. */
13186
13187int
13188main ()
13189{
13190
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_link "$LINENO"; then :
13196
13197lt_aix_libpath_sed='
13198 /Import File Strings/,/^$/ {
13199 /^0/ {
13200 s/^0 *\(.*\)$/\1/
13201 p
13202 }
13203 }'
13204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13205# Check for a 64-bit object if we didn't find anything.
13206if test -z "$aix_libpath"; then
13207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208fi
13209fi
13210rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13213
13214 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13215 # Warning - without using the other run time loading flags,
13216 # -berok will link without error, but may produce a broken library.
13217 no_undefined_flag_D=' ${wl}-bernotok'
13218 allow_undefined_flag_D=' ${wl}-berok'
13219 if test "$with_gnu_ld" = yes; then
13220 # We only use this code for GNU lds that support --whole-archive.
13221 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13222 else
13223 # Exported symbols can be pulled into shared objects from archives
13224 whole_archive_flag_spec_D='$convenience'
13225 fi
13226 archive_cmds_need_lc_D=yes
13227 # This is similar to how AIX traditionally builds its shared libraries.
13228 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'
13229 fi
13230 fi
13231 ;;
13232
13233 amigaos*)
13234 case $host_cpu in
13235 powerpc)
13236 # see comment about AmigaOS4 .so support
13237 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 archive_expsym_cmds_D=''
13239 ;;
13240 m68k)
13241 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)'
13242 hardcode_libdir_flag_spec_D='-L$libdir'
13243 hardcode_minus_L_D=yes
13244 ;;
13245 esac
13246 ;;
13247
13248 bsdi[45]*)
13249 export_dynamic_flag_spec_D=-rdynamic
13250 ;;
13251
13252 cygwin* | mingw* | pw32* | cegcc*)
13253 # When not using gcc, we currently assume that we are using
13254 # Microsoft Visual C++.
13255 # hardcode_libdir_flag_spec is actually meaningless, as there is
13256 # no search path for DLLs.
13257 hardcode_libdir_flag_spec_D=' '
13258 allow_undefined_flag_D=unsupported
13259 # Tell ltmain to make .lib files, not .a files.
13260 libext=lib
13261 # Tell ltmain to make .dll files, not .so files.
13262 shrext_cmds=".dll"
13263 # FIXME: Setting linknames here is a bad hack.
13264 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13265 # The linker will automatically build a .lib file if we build a DLL.
13266 old_archive_from_new_cmds_D='true'
13267 # FIXME: Should let the user specify the lib program.
13268 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13269 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13270 enable_shared_with_static_runtimes_D=yes
13271 ;;
13272
13273 darwin* | rhapsody*)
13274
13275
13276 archive_cmds_need_lc_D=no
13277 hardcode_direct_D=no
13278 hardcode_automatic_D=yes
13279 hardcode_shlibpath_var_D=unsupported
13280 if test "$lt_cv_ld_force_load" = "yes"; then
13281 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\"`'
13282 else
13283 whole_archive_flag_spec_D=''
13284 fi
13285 link_all_deplibs_D=yes
13286 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13287 case $cc_basename in
13288 ifort*) _lt_dar_can_shared=yes ;;
13289 *) _lt_dar_can_shared=$GCC ;;
13290 esac
13291 if test "$_lt_dar_can_shared" = "yes"; then
13292 output_verbose_link_cmd=func_echo_all
13293 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}"
13294 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13295 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}"
13296 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}"
13297
13298 else
13299 ld_shlibs_D=no
13300 fi
13301
13302 ;;
13303
13304 dgux*)
13305 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13306 hardcode_libdir_flag_spec_D='-L$libdir'
13307 hardcode_shlibpath_var_D=no
13308 ;;
13309
13310 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13311 # support. Future versions do this automatically, but an explicit c++rt0.o
13312 # does not break anything, and helps significantly (at the cost of a little
13313 # extra space).
13314 freebsd2.2*)
13315 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13316 hardcode_libdir_flag_spec_D='-R$libdir'
13317 hardcode_direct_D=yes
13318 hardcode_shlibpath_var_D=no
13319 ;;
13320
13321 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13322 freebsd2.*)
13323 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13324 hardcode_direct_D=yes
13325 hardcode_minus_L_D=yes
13326 hardcode_shlibpath_var_D=no
13327 ;;
13328
13329 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13330 freebsd* | dragonfly*)
13331 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13332 hardcode_libdir_flag_spec_D='-R$libdir'
13333 hardcode_direct_D=yes
13334 hardcode_shlibpath_var_D=no
13335 ;;
13336
13337 hpux9*)
13338 if test "$GCC" = yes; then
13339 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'
13340 else
13341 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'
13342 fi
13343 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13344 hardcode_libdir_separator_D=:
13345 hardcode_direct_D=yes
13346
13347 # hardcode_minus_L: Not really in the search PATH,
13348 # but as the default location of the library.
13349 hardcode_minus_L_D=yes
13350 export_dynamic_flag_spec_D='${wl}-E'
13351 ;;
13352
13353 hpux10*)
13354 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13355 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13356 else
13357 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13358 fi
13359 if test "$with_gnu_ld" = no; then
13360 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13361 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13362 hardcode_libdir_separator_D=:
13363 hardcode_direct_D=yes
13364 hardcode_direct_absolute_D=yes
13365 export_dynamic_flag_spec_D='${wl}-E'
13366 # hardcode_minus_L: Not really in the search PATH,
13367 # but as the default location of the library.
13368 hardcode_minus_L_D=yes
13369 fi
13370 ;;
13371
13372 hpux11*)
13373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13374 case $host_cpu in
13375 hppa*64*)
13376 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13377 ;;
13378 ia64*)
13379 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13380 ;;
13381 *)
13382 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13383 ;;
13384 esac
13385 else
13386 case $host_cpu in
13387 hppa*64*)
13388 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13389 ;;
13390 ia64*)
13391 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13392 ;;
13393 *)
13394 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13395 ;;
13396 esac
13397 fi
13398 if test "$with_gnu_ld" = no; then
13399 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13400 hardcode_libdir_separator_D=:
13401
13402 case $host_cpu in
13403 hppa*64*|ia64*)
13404 hardcode_direct_D=no
13405 hardcode_shlibpath_var_D=no
13406 ;;
13407 *)
13408 hardcode_direct_D=yes
13409 hardcode_direct_absolute_D=yes
13410 export_dynamic_flag_spec_D='${wl}-E'
13411
13412 # hardcode_minus_L: Not really in the search PATH,
13413 # but as the default location of the library.
13414 hardcode_minus_L_D=yes
13415 ;;
13416 esac
13417 fi
13418 ;;
13419
13420 irix5* | irix6* | nonstopux*)
13421 if test "$GCC" = yes; then
13422 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'
13423 # Try to use the -exported_symbol ld option, if it does not
13424 # work, assume that -exports_file does not work either and
13425 # implicitly export all symbols.
13426 save_LDFLAGS="$LDFLAGS"
13427 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h. */
13430int foo(void) {}
13431_ACEOF
13432if ac_fn_c_try_link "$LINENO"; then :
13433 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'
13434
13435fi
13436rm -f core conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
13438 LDFLAGS="$save_LDFLAGS"
13439 else
13440 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'
13441 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'
13442 fi
13443 archive_cmds_need_lc_D='no'
13444 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13445 hardcode_libdir_separator_D=:
13446 inherit_rpath_D=yes
13447 link_all_deplibs_D=yes
13448 ;;
13449
13450 netbsd*)
13451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13452 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13453 else
13454 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13455 fi
13456 hardcode_libdir_flag_spec_D='-R$libdir'
13457 hardcode_direct_D=yes
13458 hardcode_shlibpath_var_D=no
13459 ;;
13460
13461 newsos6)
13462 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13463 hardcode_direct_D=yes
13464 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13465 hardcode_libdir_separator_D=:
13466 hardcode_shlibpath_var_D=no
13467 ;;
13468
13469 *nto* | *qnx*)
13470 ;;
13471
13472 openbsd*)
13473 if test -f /usr/libexec/ld.so; then
13474 hardcode_direct_D=yes
13475 hardcode_shlibpath_var_D=no
13476 hardcode_direct_absolute_D=yes
13477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13478 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13480 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13481 export_dynamic_flag_spec_D='${wl}-E'
13482 else
13483 case $host_os in
13484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13485 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_libdir_flag_spec_D='-R$libdir'
13487 ;;
13488 *)
13489 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13490 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13491 ;;
13492 esac
13493 fi
13494 else
13495 ld_shlibs_D=no
13496 fi
13497 ;;
13498
13499 os2*)
13500 hardcode_libdir_flag_spec_D='-L$libdir'
13501 hardcode_minus_L_D=yes
13502 allow_undefined_flag_D=unsupported
13503 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'
13504 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13505 ;;
13506
13507 osf3*)
13508 if test "$GCC" = yes; then
13509 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13510 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'
13511 else
13512 allow_undefined_flag_D=' -expect_unresolved \*'
13513 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'
13514 fi
13515 archive_cmds_need_lc_D='no'
13516 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13517 hardcode_libdir_separator_D=:
13518 ;;
13519
13520 osf4* | osf5*) # as osf3* with the addition of -msym flag
13521 if test "$GCC" = yes; then
13522 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13523 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'
13524 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13525 else
13526 allow_undefined_flag_D=' -expect_unresolved \*'
13527 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'
13528 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~
13529 $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'
13530
13531 # Both c and cxx compiler support -rpath directly
13532 hardcode_libdir_flag_spec_D='-rpath $libdir'
13533 fi
13534 archive_cmds_need_lc_D='no'
13535 hardcode_libdir_separator_D=:
13536 ;;
13537
13538 solaris*)
13539 no_undefined_flag_D=' -z defs'
13540 if test "$GCC" = yes; then
13541 wlarc='${wl}'
13542 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13544 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13545 else
13546 case `$CC -V 2>&1` in
13547 *"Compilers 5.0"*)
13548 wlarc=''
13549 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13550 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13552 ;;
13553 *)
13554 wlarc='${wl}'
13555 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13556 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13558 ;;
13559 esac
13560 fi
13561 hardcode_libdir_flag_spec_D='-R$libdir'
13562 hardcode_shlibpath_var_D=no
13563 case $host_os in
13564 solaris2.[0-5] | solaris2.[0-5].*) ;;
13565 *)
13566 # The compiler driver will combine and reorder linker options,
13567 # but understands `-z linker_flag'. GCC discards it without `$wl',
13568 # but is careful enough not to reorder.
13569 # Supported since Solaris 2.6 (maybe 2.5.1?)
13570 if test "$GCC" = yes; then
13571 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13572 else
13573 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13574 fi
13575 ;;
13576 esac
13577 link_all_deplibs_D=yes
13578 ;;
13579
13580 sunos4*)
13581 if test "x$host_vendor" = xsequent; then
13582 # Use $CC to link under sequent, because it throws in some extra .o
13583 # files that make .init and .fini sections work.
13584 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13585 else
13586 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13587 fi
13588 hardcode_libdir_flag_spec_D='-L$libdir'
13589 hardcode_direct_D=yes
13590 hardcode_minus_L_D=yes
13591 hardcode_shlibpath_var_D=no
13592 ;;
13593
13594 sysv4)
13595 case $host_vendor in
13596 sni)
13597 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13598 hardcode_direct_D=yes # is this really true???
13599 ;;
13600 siemens)
13601 ## LD is ld it makes a PLAMLIB
13602 ## CC just makes a GrossModule.
13603 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13604 reload_cmds_D='$CC -r -o $output$reload_objs'
13605 hardcode_direct_D=no
13606 ;;
13607 motorola)
13608 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13609 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13610 ;;
13611 esac
13612 runpath_var='LD_RUN_PATH'
13613 hardcode_shlibpath_var_D=no
13614 ;;
13615
13616 sysv4.3*)
13617 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_shlibpath_var_D=no
13619 export_dynamic_flag_spec_D='-Bexport'
13620 ;;
13621
13622 sysv4*MP*)
13623 if test -d /usr/nec; then
13624 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_shlibpath_var_D=no
13626 runpath_var=LD_RUN_PATH
13627 hardcode_runpath_var=yes
13628 ld_shlibs_D=yes
13629 fi
13630 ;;
13631
13632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13633 no_undefined_flag_D='${wl}-z,text'
13634 archive_cmds_need_lc_D=no
13635 hardcode_shlibpath_var_D=no
13636 runpath_var='LD_RUN_PATH'
13637
13638 if test "$GCC" = yes; then
13639 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641 else
13642 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 fi
13645 ;;
13646
13647 sysv5* | sco3.2v5* | sco5v6*)
13648 # Note: We can NOT use -z defs as we might desire, because we do not
13649 # link with -lc, and that would cause any symbols used from libc to
13650 # always be unresolved, which means just about no library would
13651 # ever link correctly. If we're not using GNU ld we use -z text
13652 # though, which does catch some bad symbols but isn't as heavy-handed
13653 # as -z defs.
13654 no_undefined_flag_D='${wl}-z,text'
13655 allow_undefined_flag_D='${wl}-z,nodefs'
13656 archive_cmds_need_lc_D=no
13657 hardcode_shlibpath_var_D=no
13658 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13659 hardcode_libdir_separator_D=':'
13660 link_all_deplibs_D=yes
13661 export_dynamic_flag_spec_D='${wl}-Bexport'
13662 runpath_var='LD_RUN_PATH'
13663
13664 if test "$GCC" = yes; then
13665 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13666 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 else
13668 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 fi
13671 ;;
13672
13673 uts4*)
13674 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13675 hardcode_libdir_flag_spec_D='-L$libdir'
13676 hardcode_shlibpath_var_D=no
13677 ;;
13678
13679 *)
13680 ld_shlibs_D=no
13681 ;;
13682 esac
13683
13684 if test x$host_vendor = xsni; then
13685 case $host in
13686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13687 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13688 ;;
13689 esac
13690 fi
13691 fi
13692
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13694$as_echo "$ld_shlibs_D" >&6; }
13695test "$ld_shlibs_D" = no && can_build_shared=no
13696
13697with_gnu_ld_D=$with_gnu_ld
13698
13699
13700
13701
13702
13703
13704#
13705# Do we need to explicitly link libc?
13706#
13707case "x$archive_cmds_need_lc_D" in
13708x|xyes)
13709 # Assume -lc should be added
13710 archive_cmds_need_lc_D=yes
13711
13712 if test "$enable_shared" = yes && test "$GCC" = yes; then
13713 case $archive_cmds_D in
13714 *'~'*)
13715 # FIXME: we may have to deal with multi-command sequences.
13716 ;;
13717 '$CC '*)
13718 # Test whether the compiler implicitly links with -lc since on some
13719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13720 # to ld, don't add -lc before -lgcc.
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13722$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013723if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013724 $as_echo_n "(cached) " >&6
13725else
13726 $RM conftest*
13727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13728
13729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13730 (eval $ac_compile) 2>&5
13731 ac_status=$?
13732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733 test $ac_status = 0; } 2>conftest.err; then
13734 soname=conftest
13735 lib=conftest
13736 libobjs=conftest.$ac_objext
13737 deplibs=
13738 wl=$lt_prog_compiler_wl_D
13739 pic_flag=$lt_prog_compiler_pic_D
13740 compiler_flags=-v
13741 linker_flags=-v
13742 verstring=
13743 output_objdir=.
13744 libname=conftest
13745 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13746 allow_undefined_flag_D=
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13748 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13749 ac_status=$?
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }
13752 then
13753 lt_cv_archive_cmds_need_lc_D=no
13754 else
13755 lt_cv_archive_cmds_need_lc_D=yes
13756 fi
13757 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13758 else
13759 cat conftest.err 1>&5
13760 fi
13761 $RM conftest*
13762
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13765$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13766 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13767 ;;
13768 esac
13769 fi
13770 ;;
13771esac
13772
13773
13774
13775
13776
13777
13778
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13837$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13838hardcode_action_D=
13839if test -n "$hardcode_libdir_flag_spec_D" ||
13840 test -n "$runpath_var_D" ||
13841 test "X$hardcode_automatic_D" = "Xyes" ; then
13842
13843 # We can hardcode non-existent directories.
13844 if test "$hardcode_direct_D" != no &&
13845 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13846 # have to relink, otherwise we might link with an installed library
13847 # when we should be linking with a yet-to-be-installed one
13848 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13849 test "$hardcode_minus_L_D" != no; then
13850 # Linking always hardcodes the temporary library directory.
13851 hardcode_action_D=relink
13852 else
13853 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13854 hardcode_action_D=immediate
13855 fi
13856else
13857 # We cannot hardcode anything, or else we can only hardcode existing
13858 # directories.
13859 hardcode_action_D=unsupported
13860fi
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13862$as_echo "$hardcode_action_D" >&6; }
13863
13864if test "$hardcode_action_D" = relink ||
13865 test "$inherit_rpath_D" = yes; then
13866 # Fast installation is not supported
13867 enable_fast_install=no
13868elif test "$shlibpath_overrides_runpath" = yes ||
13869 test "$enable_shared" = no; then
13870 # Fast installation is not necessary
13871 enable_fast_install=needless
13872fi
13873
13874
13875
13876
13877
13878
13879
13880fi
13881
13882ac_ext=c
13883ac_cpp='$CPP $CPPFLAGS'
13884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13886ac_compiler_gnu=$ac_cv_c_compiler_gnu
13887
13888
13889GCC=$lt_save_GCC
13890CC=$lt_save_CC
13891CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013892
13893 GDCFLAGS=$gdc_save_DFLAGS
13894
Iain Buclawb4c522f2018-10-28 19:51:47 +000013895
13896# libtool variables for Phobos shared and position-independent compiles.
13897#
13898# Use phobos_compiler_shared_flag to designate the compile-time flags for
13899# creating shared objects. Default: -fversion=Shared.
13900#
13901# Use phobos_compiler_pic_flag to designate the compile-time flags for
13902# creating position-independent objects. This varies with the target
13903# hardware and operating system, but is often: -fPIC.
13904#
13905# The distinction between pic and shared compilation flags is not present in
13906# libtool, and so we make it here. How it is handled is that in shared
13907# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13908# ensure that conditional compilation of shared runtime code is compiled in.
13909# The original PIC flags are then used in the compilation of every object.
13910#
13911# Why are objects destined for libgphobos.a compiled with -fPIC?
13912# Because -fPIC is not harmful to use for objects destined for static
13913# libraries. In addition, using -fPIC will allow the use of static
13914# libgphobos.a in the creation of other D shared libraries.
13915if test "$enable_shared" = yes; then
13916 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13917 phobos_compiler_shared_flag="-fversion=Shared"
13918else
13919 phobos_compiler_pic_flag=
13920 phobos_compiler_shared_flag=
13921fi
13922
13923
13924
13925# Override the libtool's pic_flag and pic_mode.
13926# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13927# NB: this impacts --with-pic and --without-pic.
13928lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13929pic_mode='default'
13930
13931# Determine what GCC version number to use in filesystem paths.
13932
13933 get_gcc_base_ver="cat"
13934
13935# Check whether --with-gcc-major-version-only was given.
13936if test "${with_gcc_major_version_only+set}" = set; then :
13937 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13938 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13939 fi
13940
13941fi
13942
13943
13944
13945
13946# libphobos/libdruntime specific options and feature detection
13947
13948 # These need to be absolute paths, yet at the same time need to
13949 # canonicalize only relative paths, because then amd will not unmount
13950 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13951 libphobos_builddir=`${PWDCMD-pwd}`
13952 case $srcdir in
13953 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13954 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13955 esac
13956
13957
13958
13959
13960 if test ${multilib} = yes; then
13961 multilib_arg="--enable-multilib"
13962 else
13963 multilib_arg=
13964 fi
13965
13966
13967 # Check whether --enable-werror was given.
13968if test "${enable_werror+set}" = set; then :
13969 enableval=$enable_werror;
13970fi
13971
13972 WERROR_FLAG=""
13973 if test "x$enable_werror" = "xyes"; then
13974 WERROR_FLAG="-Werror"
13975 fi
13976
13977
13978 # Check whether --enable-druntime-gc was given.
13979if test "${enable_druntime_gc+set}" = set; then :
13980 enableval=$enable_druntime_gc; enable_druntime_gc=no
13981else
13982 enable_druntime_gc=yes
13983fi
13984
13985
13986 if test "$enable_druntime_gc" = "yes"; then
13987 DRUNTIME_GC_ENABLE_TRUE=
13988 DRUNTIME_GC_ENABLE_FALSE='#'
13989else
13990 DRUNTIME_GC_ENABLE_TRUE='#'
13991 DRUNTIME_GC_ENABLE_FALSE=
13992fi
13993
13994
13995
Iain Buclaw2493e712019-04-24 22:46:59 +000013996 druntime_target_cpu_parsed=""
13997 case "$target_cpu" in
13998 aarch64*)
13999 druntime_target_cpu_parsed="aarch64"
14000 ;;
14001 arm*) druntime_target_cpu_parsed="arm"
14002 ;;
14003 mips*) druntime_target_cpu_parsed="mips"
14004 ;;
14005 powerpc) druntime_target_cpu_parsed="powerpc"
14006 ;;
14007 powerpc64)
14008 druntime_target_cpu_parsed="powerpc64"
14009 ;;
Rainer Orthb16f2142019-04-25 12:39:33 +000014010 i[34567]86|x86_64)
Iain Buclaw2493e712019-04-24 22:46:59 +000014011 druntime_target_cpu_parsed="x86"
14012 ;;
Robin Dapp88e508f2020-04-07 21:05:38 +020014013 s390x)
14014 druntime_target_cpu_parsed="s390x"
14015 ;;
14016 s390)
14017 druntime_target_cpu_parsed="s390"
14018 ;;
Iain Buclaw2493e712019-04-24 22:46:59 +000014019 esac
14020 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14021 DRUNTIME_CPU_AARCH64_TRUE=
14022 DRUNTIME_CPU_AARCH64_FALSE='#'
14023else
14024 DRUNTIME_CPU_AARCH64_TRUE='#'
14025 DRUNTIME_CPU_AARCH64_FALSE=
14026fi
14027
14028 if test "$druntime_target_cpu_parsed" = "arm"; then
14029 DRUNTIME_CPU_ARM_TRUE=
14030 DRUNTIME_CPU_ARM_FALSE='#'
14031else
14032 DRUNTIME_CPU_ARM_TRUE='#'
14033 DRUNTIME_CPU_ARM_FALSE=
14034fi
14035
14036 if test "$druntime_target_cpu_parsed" = "mips"; then
14037 DRUNTIME_CPU_MIPS_TRUE=
14038 DRUNTIME_CPU_MIPS_FALSE='#'
14039else
14040 DRUNTIME_CPU_MIPS_TRUE='#'
14041 DRUNTIME_CPU_MIPS_FALSE=
14042fi
14043
14044 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14045 DRUNTIME_CPU_POWERPC_TRUE=
14046 DRUNTIME_CPU_POWERPC_FALSE='#'
14047else
14048 DRUNTIME_CPU_POWERPC_TRUE='#'
14049 DRUNTIME_CPU_POWERPC_FALSE=
14050fi
14051
14052 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14053 DRUNTIME_CPU_POWERPC64_TRUE=
14054 DRUNTIME_CPU_POWERPC64_FALSE='#'
14055else
14056 DRUNTIME_CPU_POWERPC64_TRUE='#'
14057 DRUNTIME_CPU_POWERPC64_FALSE=
14058fi
14059
14060 if test "$druntime_target_cpu_parsed" = "x86"; then
14061 DRUNTIME_CPU_X86_TRUE=
14062 DRUNTIME_CPU_X86_FALSE='#'
14063else
14064 DRUNTIME_CPU_X86_TRUE='#'
14065 DRUNTIME_CPU_X86_FALSE=
14066fi
14067
Robin Dapp88e508f2020-04-07 21:05:38 +020014068 if test "$druntime_target_cpu_parsed" = "s390x"; then
14069 DRUNTIME_CPU_SYSTEMZ_TRUE=
14070 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14071else
14072 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14073 DRUNTIME_CPU_SYSTEMZ_FALSE=
14074fi
14075
14076 if test "$druntime_target_cpu_parsed" = "s390"; then
14077 DRUNTIME_CPU_S390_TRUE=
14078 DRUNTIME_CPU_S390_FALSE='#'
14079else
14080 DRUNTIME_CPU_S390_TRUE='#'
14081 DRUNTIME_CPU_S390_FALSE=
14082fi
14083
Iain Buclaw2493e712019-04-24 22:46:59 +000014084
14085
Iain Buclawb4c522f2018-10-28 19:51:47 +000014086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14087$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014088if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014089 $as_echo_n "(cached) " >&6
14090else
14091 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14092fi
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14094$as_echo "$druntime_cv_target_os" >&6; }
14095 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014096 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014097fi
14098
14099
14100
Iain Buclawb4c522f2018-10-28 19:51:47 +000014101
14102 druntime_target_os_parsed=""
14103 case "$druntime_cv_target_os" in
14104 aix*) druntime_target_os_parsed="aix"
14105 ;;
14106 *android*)
14107 druntime_target_os_parsed="android"
14108 ;;
14109 darwin*) druntime_target_os_parsed="darwin"
14110 ;;
14111 dragonfly*)
14112 druntime_target_os_parsed="dragonflybsd"
14113 ;;
14114 freebsd*|k*bsd*-gnu)
14115 druntime_target_os_parsed="freebsd"
14116 ;;
14117 openbsd*)
14118 druntime_target_os_parsed="openbsd"
14119 ;;
14120 netbsd*)
14121 druntime_target_os_parsed="netbsd"
14122 ;;
14123 linux*) druntime_target_os_parsed="linux"
14124 ;;
14125 mingw*) druntime_target_os_parsed="mingw"
14126 ;;
14127 *solaris*) druntime_target_os_parsed="solaris"
14128 esac
14129 if test "$druntime_target_os_parsed" = "aix"; then
14130 DRUNTIME_OS_AIX_TRUE=
14131 DRUNTIME_OS_AIX_FALSE='#'
14132else
14133 DRUNTIME_OS_AIX_TRUE='#'
14134 DRUNTIME_OS_AIX_FALSE=
14135fi
14136
14137 if test "$druntime_target_os_parsed" = "android"; then
14138 DRUNTIME_OS_ANDROID_TRUE=
14139 DRUNTIME_OS_ANDROID_FALSE='#'
14140else
14141 DRUNTIME_OS_ANDROID_TRUE='#'
14142 DRUNTIME_OS_ANDROID_FALSE=
14143fi
14144
14145 if test "$druntime_target_os_parsed" = "darwin"; then
14146 DRUNTIME_OS_DARWIN_TRUE=
14147 DRUNTIME_OS_DARWIN_FALSE='#'
14148else
14149 DRUNTIME_OS_DARWIN_TRUE='#'
14150 DRUNTIME_OS_DARWIN_FALSE=
14151fi
14152
14153 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14154 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14155 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14156else
14157 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14158 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14159fi
14160
14161 if test "$druntime_target_os_parsed" = "freebsd"; then
14162 DRUNTIME_OS_FREEBSD_TRUE=
14163 DRUNTIME_OS_FREEBSD_FALSE='#'
14164else
14165 DRUNTIME_OS_FREEBSD_TRUE='#'
14166 DRUNTIME_OS_FREEBSD_FALSE=
14167fi
14168
14169 if test "$druntime_target_os_parsed" = "netbsd"; then
14170 DRUNTIME_OS_NETBSD_TRUE=
14171 DRUNTIME_OS_NETBSD_FALSE='#'
14172else
14173 DRUNTIME_OS_NETBSD_TRUE='#'
14174 DRUNTIME_OS_NETBSD_FALSE=
14175fi
14176
14177 if test "$druntime_target_os_parsed" = "openbsd"; then
14178 DRUNTIME_OS_OPENBSD_TRUE=
14179 DRUNTIME_OS_OPENBSD_FALSE='#'
14180else
14181 DRUNTIME_OS_OPENBSD_TRUE='#'
14182 DRUNTIME_OS_OPENBSD_FALSE=
14183fi
14184
14185 if test "$druntime_target_os_parsed" = "linux"; then
14186 DRUNTIME_OS_LINUX_TRUE=
14187 DRUNTIME_OS_LINUX_FALSE='#'
14188else
14189 DRUNTIME_OS_LINUX_TRUE='#'
14190 DRUNTIME_OS_LINUX_FALSE=
14191fi
14192
14193 if test "$druntime_target_os_parsed" = "mingw"; then
14194 DRUNTIME_OS_MINGW_TRUE=
14195 DRUNTIME_OS_MINGW_FALSE='#'
14196else
14197 DRUNTIME_OS_MINGW_TRUE='#'
14198 DRUNTIME_OS_MINGW_FALSE=
14199fi
14200
14201 if test "$druntime_target_os_parsed" = "solaris"; then
14202 DRUNTIME_OS_SOLARIS_TRUE=
14203 DRUNTIME_OS_SOLARIS_FALSE='#'
14204else
14205 DRUNTIME_OS_SOLARIS_TRUE='#'
14206 DRUNTIME_OS_SOLARIS_FALSE=
14207fi
14208
14209
Iain Buclaw72c136c2020-04-08 22:52:05 +020014210 druntime_target_posix="no"
14211 case "$druntime_cv_target_os" in
14212 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14213 druntime_target_posix="yes"
14214 ;;
14215 esac
14216 if test "$druntime_target_posix" = "yes"; then
14217 DRUNTIME_OS_POSIX_TRUE=
14218 DRUNTIME_OS_POSIX_FALSE='#'
14219else
14220 DRUNTIME_OS_POSIX_TRUE='#'
14221 DRUNTIME_OS_POSIX_FALSE=
14222fi
14223
14224
Iain Buclawb4c522f2018-10-28 19:51:47 +000014225
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14228$as_echo_n "checking for thread model used by GDC... " >&6; }
14229 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14231$as_echo "$d_thread_model" >&6; }
14232
14233 # Map from thread model to thread interface.
14234
14235case $d_thread_model in
14236 aix) DCFG_THREAD_MODEL="Posix" ;;
14237 lynx) DCFG_THREAD_MODEL="Posix" ;;
14238 posix) DCFG_THREAD_MODEL="Posix" ;;
14239 single) DCFG_THREAD_MODEL="Single" ;;
14240 win32) DCFG_THREAD_MODEL="Win32" ;;
14241 # TODO: These targets need porting.
14242 dce|mipssde|rtems|tpf|vxworks)
14243 DCFG_THREAD_MODEL="Single" ;;
14244 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14245esac
14246
14247
14248
14249
14250 ac_ext=c
14251ac_cpp='$CPP $CPPFLAGS'
14252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254ac_compiler_gnu=$ac_cv_c_compiler_gnu
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14257$as_echo_n "checking for ARM unwinder... " >&6; }
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259/* end confdefs.h. */
14260#include <unwind.h>
14261int
14262main ()
14263{
14264
14265 #if __ARM_EABI_UNWINDER__
14266 #error Yes, it is.
14267 #endif
14268
14269 ;
14270 return 0;
14271}
14272_ACEOF
14273if ac_fn_c_try_compile "$LINENO"; then :
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275$as_echo "no" >&6; }
14276 DCFG_ARM_EABI_UNWINDER=false
14277else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14279$as_echo "yes" >&6; }
14280 DCFG_ARM_EABI_UNWINDER=true
14281fi
14282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283
14284 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14285 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14286 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14287else
14288 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14289 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14290fi
14291
14292 ac_ext=c
14293ac_cpp='$CPP $CPPFLAGS'
14294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297
14298
14299
14300 ac_ext=c
14301ac_cpp='$CPP $CPPFLAGS'
14302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14304ac_compiler_gnu=$ac_cv_c_compiler_gnu
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14307$as_echo_n "checking for minfo section bracketing... " >&6; }
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h. */
14310
14311 void* module_info_ptr __attribute__((section ("minfo")));
14312 extern void* __start_minfo __attribute__((visibility ("hidden")));
14313 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14314
14315 int main()
14316 {
14317 // Never run, just to prevent compiler from optimizing access
14318 return &__start_minfo == &__stop_minfo;
14319 }
14320
14321_ACEOF
14322if ac_fn_c_try_link "$LINENO"; then :
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14324$as_echo "yes" >&6; }
14325 DCFG_MINFO_BRACKETING=true
14326else
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328$as_echo "no" >&6; }
14329 DCFG_MINFO_BRACKETING=false
14330fi
14331rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14333
Rainer Orth0b6e3122019-02-14 17:47:49 +000014334 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14335 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14336 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14337else
14338 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14339 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14340fi
14341
Iain Buclawb4c522f2018-10-28 19:51:47 +000014342 ac_ext=c
14343ac_cpp='$CPP $CPPFLAGS'
14344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14346ac_compiler_gnu=$ac_cv_c_compiler_gnu
14347
14348
14349
Rainer Orth235d1c42019-04-14 09:30:42 +000014350 ac_ext=c
14351ac_cpp='$CPP $CPPFLAGS'
14352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14354ac_compiler_gnu=$ac_cv_c_compiler_gnu
14355
14356 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>
14357"
14358if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14359 DCFG_DLPI_TLS_MODID=true
14360else
14361 DCFG_DLPI_TLS_MODID=false
14362fi
14363
14364
14365 ac_ext=c
14366ac_cpp='$CPP $CPPFLAGS'
14367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369ac_compiler_gnu=$ac_cv_c_compiler_gnu
14370
14371
14372
Rainer Orthba838aa2019-04-14 09:24:26 +000014373 case $target in
14374 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14375 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14376 # relocs. Work around by disabling TLS transitions. Not necessary
14377 # on 32-bit x86, but cannot be distinguished reliably in specs.
14378 druntime_ld_prog=`$CC -print-prog-name=ld`
Rainer Orthbca0a322019-05-07 10:38:45 +000014379 druntime_ld_gld=no
14380 druntime_ld_relax_transtls=no
Rainer Orthba838aa2019-04-14 09:24:26 +000014381 if test -n "$druntime_ld_prog" \
14382 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
Rainer Orthbca0a322019-05-07 10:38:45 +000014383 druntime_ld_gld=yes
Rainer Orthba838aa2019-04-14 09:24:26 +000014384 else
Rainer Orthbca0a322019-05-07 10:38:45 +000014385 echo 'int main (void) { return 0; }' > conftest.c
14386 save_LDFLAGS="$LDFLAGS"
14387 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14388 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14389 druntime_ld_relax_transtls=yes
14390 fi
14391 LDFLAGS="$save_LDFLAGS"
14392 rm -f conftest.c conftest
14393 fi
14394 if test "$druntime_ld_relax_transtls" = "yes"; then
Rainer Orthba838aa2019-04-14 09:24:26 +000014395 OS_LINK_SPEC='-z relax=transtls'
14396 fi
14397 ;;
14398 esac
14399
14400
14401
Johannes Pfau36d7f152019-02-18 23:29:39 +000014402 ac_ext=c
14403ac_cpp='$CPP $CPPFLAGS'
14404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407
14408 DCFG_HAVE_QSORT_R=false
14409 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14410if test "x$ac_cv_func_qsort_r" = xyes; then :
14411 DCFG_HAVE_QSORT_R=true
14412fi
14413
14414
14415 ac_ext=c
14416ac_cpp='$CPP $CPPFLAGS'
14417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14419ac_compiler_gnu=$ac_cv_c_compiler_gnu
14420
14421
14422
Iain Buclawb4c522f2018-10-28 19:51:47 +000014423
14424
14425 gdc_save_DFLAGS=$GDCFLAGS
14426 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14427
14428 ac_ext=d
14429ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14430ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14431ac_compiler_gnu=yes
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14434$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014435if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014436 $as_echo_n "(cached) " >&6
14437else
14438 ac_func_search_save_LIBS=$LIBS
14439cat > conftest.$ac_ext <<_ACEOF
14440module mod;
14441 extern(C) int malloc();
14442
14443extern(C) int main() {
14444 malloc(); return 0;
14445}
14446_ACEOF
14447for ac_lib in '' c; do
14448 if test -z "$ac_lib"; then
14449 ac_res="none required"
14450 else
14451 ac_res=-l$ac_lib
14452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14453 fi
14454 if ac_fn_d_try_link "$LINENO"; then :
14455 ac_cv_search_malloc=$ac_res
14456fi
14457rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014459 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014460 break
14461fi
14462done
Joseph Myers22e05272018-10-31 17:03:16 +000014463if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014464
14465else
14466 ac_cv_search_malloc=no
14467fi
14468rm conftest.$ac_ext
14469LIBS=$ac_func_search_save_LIBS
14470fi
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14472$as_echo "$ac_cv_search_malloc" >&6; }
14473ac_res=$ac_cv_search_malloc
14474if test "$ac_res" != no; then :
14475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14476
14477fi
14478
Iain Buclaw6e286c82020-04-09 00:16:57 +020014479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014480$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014481if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014482 $as_echo_n "(cached) " >&6
14483else
14484 ac_func_search_save_LIBS=$LIBS
14485cat > conftest.$ac_ext <<_ACEOF
14486module mod;
14487 extern(C) int pthread_create();
14488
14489extern(C) int main() {
14490 pthread_create(); return 0;
14491}
14492_ACEOF
14493for ac_lib in '' pthread; do
14494 if test -z "$ac_lib"; then
14495 ac_res="none required"
14496 else
14497 ac_res=-l$ac_lib
14498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 fi
14500 if ac_fn_d_try_link "$LINENO"; then :
14501 ac_cv_search_pthread_create=$ac_res
14502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014505 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014506 break
14507fi
14508done
Joseph Myers22e05272018-10-31 17:03:16 +000014509if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014510
14511else
14512 ac_cv_search_pthread_create=no
14513fi
14514rm conftest.$ac_ext
14515LIBS=$ac_func_search_save_LIBS
14516fi
14517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14518$as_echo "$ac_cv_search_pthread_create" >&6; }
14519ac_res=$ac_cv_search_pthread_create
14520if test "$ac_res" != no; then :
14521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14522
14523fi
14524
Iain Buclawb4c522f2018-10-28 19:51:47 +000014525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14526$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014527if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014528 $as_echo_n "(cached) " >&6
14529else
14530 ac_func_search_save_LIBS=$LIBS
14531cat > conftest.$ac_ext <<_ACEOF
14532module mod;
14533 extern(C) int cosf();
14534
14535extern(C) int main() {
14536 cosf(); return 0;
14537}
14538_ACEOF
14539for ac_lib in '' m; do
14540 if test -z "$ac_lib"; then
14541 ac_res="none required"
14542 else
14543 ac_res=-l$ac_lib
14544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14545 fi
14546 if ac_fn_d_try_link "$LINENO"; then :
14547 ac_cv_search_cosf=$ac_res
14548fi
14549rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014551 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014552 break
14553fi
14554done
Joseph Myers22e05272018-10-31 17:03:16 +000014555if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014556
14557else
14558 ac_cv_search_cosf=no
14559fi
14560rm conftest.$ac_ext
14561LIBS=$ac_func_search_save_LIBS
14562fi
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14564$as_echo "$ac_cv_search_cosf" >&6; }
14565ac_res=$ac_cv_search_cosf
14566if test "$ac_res" != no; then :
14567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14568
14569fi
14570
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14572$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014573if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014574 $as_echo_n "(cached) " >&6
14575else
14576 ac_func_search_save_LIBS=$LIBS
14577cat > conftest.$ac_ext <<_ACEOF
14578module mod;
14579 extern(C) int clock_gettime();
14580
14581extern(C) int main() {
14582 clock_gettime(); return 0;
14583}
14584_ACEOF
14585for ac_lib in '' rt; do
14586 if test -z "$ac_lib"; then
14587 ac_res="none required"
14588 else
14589 ac_res=-l$ac_lib
14590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14591 fi
14592 if ac_fn_d_try_link "$LINENO"; then :
14593 ac_cv_search_clock_gettime=$ac_res
14594fi
14595rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014597 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014598 break
14599fi
14600done
Joseph Myers22e05272018-10-31 17:03:16 +000014601if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014602
14603else
14604 ac_cv_search_clock_gettime=no
14605fi
14606rm conftest.$ac_ext
14607LIBS=$ac_func_search_save_LIBS
14608fi
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14610$as_echo "$ac_cv_search_clock_gettime" >&6; }
14611ac_res=$ac_cv_search_clock_gettime
14612if test "$ac_res" != no; then :
14613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14614
14615fi
14616
14617
14618 # This checks to see if the host supports the compiler-generated builtins
14619 # for atomic operations for various integral sizes. Note, this is intended
14620 # to be an all-or-nothing switch, so all the atomic operations that are
14621 # used should be checked.
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14623$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014624 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014625 $as_echo_n "(cached) " >&6
14626else
14627
14628 cat > conftest.$ac_ext <<_ACEOF
14629module mod;
14630import gcc.builtins;
14631
14632extern(C) int main() {
14633
14634 shared(byte) c1;
14635 byte c2, c3;
14636 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14637 __atomic_load_1(&c1, 5);
14638 __atomic_store_1(&c1, c2, 5);
14639 return 0;
14640
14641}
14642_ACEOF
14643if ac_fn_d_try_link "$LINENO"; then :
14644 druntime_cv_atomic_byte=yes
14645else
14646 druntime_cv_atomic_byte=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14650
14651fi
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14654$as_echo "$druntime_cv_atomic_byte" >&6; }
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14657$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014658 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014659 $as_echo_n "(cached) " >&6
14660else
14661
14662 cat > conftest.$ac_ext <<_ACEOF
14663module mod;
14664import gcc.builtins;
14665
14666extern(C) int main() {
14667
14668 shared(short) c1;
14669 short c2, c3;
14670 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14671 __atomic_load_2(&c1, 5);
14672 __atomic_store_2(&c1, c2, 5);
14673 return 0;
14674
14675}
14676_ACEOF
14677if ac_fn_d_try_link "$LINENO"; then :
14678 druntime_cv_atomic_short=yes
14679else
14680 druntime_cv_atomic_short=no
14681fi
14682rm -f core conftest.err conftest.$ac_objext \
14683 conftest$ac_exeext conftest.$ac_ext
14684
14685fi
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14688$as_echo "$druntime_cv_atomic_short" >&6; }
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14691$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014692 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014693 $as_echo_n "(cached) " >&6
14694else
14695
14696 cat > conftest.$ac_ext <<_ACEOF
14697module mod;
14698import gcc.builtins;
14699
14700extern(C) int main() {
14701
14702 shared(int) c1;
14703 int c2, c3;
14704 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14705 __atomic_load_4(&c1, 5);
14706 __atomic_store_4(&c1, c2, 5);
14707 return 0;
14708
14709}
14710_ACEOF
14711if ac_fn_d_try_link "$LINENO"; then :
14712 druntime_cv_atomic_int=yes
14713else
14714 druntime_cv_atomic_int=no
14715fi
14716rm -f core conftest.err conftest.$ac_objext \
14717 conftest$ac_exeext conftest.$ac_ext
14718
14719fi
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14722$as_echo "$druntime_cv_atomic_int" >&6; }
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14725$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014726 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014727 $as_echo_n "(cached) " >&6
14728else
14729
14730 cat > conftest.$ac_ext <<_ACEOF
14731module mod;
14732import gcc.builtins;
14733
14734extern(C) int main() {
14735
14736 shared(long) c1;
14737 long c2, c3;
14738 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14739 __atomic_load_8(&c1, 5);
14740 __atomic_store_8(&c1, c2, 5);
14741 return 0;
14742
14743}
14744_ACEOF
14745if ac_fn_d_try_link "$LINENO"; then :
14746 druntime_cv_atomic_long=yes
14747else
14748 druntime_cv_atomic_long=no
14749fi
14750rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14752
14753fi
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14756$as_echo "$druntime_cv_atomic_long" >&6; }
14757
14758 # Have atomic builtin support if all but the long test above passes.
14759 DCFG_HAVE_ATOMIC_BUILTINS=false
14760 if test "$druntime_cv_atomic_byte" = yes \
14761 && test "$druntime_cv_atomic_short" = yes \
14762 && test "$druntime_cv_atomic_int" = yes; then \
14763 DCFG_HAVE_ATOMIC_BUILTINS=true
14764 fi
14765
14766 # Have 64-bit atomic support if the long test above passes.
14767 DCFG_HAVE_64BIT_ATOMICS=false
14768 if test "$druntime_cv_atomic_long" = yes; then
14769 DCFG_HAVE_64BIT_ATOMICS=true
14770 fi
14771
14772
14773
14774
14775 ac_ext=c
14776ac_cpp='$CPP $CPPFLAGS'
14777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14779ac_compiler_gnu=$ac_cv_c_compiler_gnu
14780
14781
14782 GDCFLAGS=$gdc_save_DFLAGS
14783
14784
14785
14786
14787# Check whether --with-libatomic was given.
14788if test "${with_libatomic+set}" = set; then :
14789 withval=$with_libatomic;
14790fi
14791
14792
14793 DCFG_HAVE_LIBATOMIC=false
14794 LIBATOMIC=
14795 if test "x$with_libatomic" != "xno"; then :
14796
14797 DCFG_HAVE_LIBATOMIC=true
14798 LIBATOMIC=../../libatomic/libatomic_convenience.la
14799
14800else
14801
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14803$as_echo_n "checking for libatomic... " >&6; }
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14805$as_echo "disabled" >&6; }
14806
14807fi
14808
14809
14810
14811
14812
14813 ac_ext=c
14814ac_cpp='$CPP $CPPFLAGS'
14815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818
14819 BACKTRACE_SUPPORTED=false
14820 BACKTRACE_USES_MALLOC=false
14821 BACKTRACE_SUPPORTS_THREADS=false
14822 LIBBACKTRACE=""
14823
14824
14825# Check whether --with-libbacktrace was given.
14826if test "${with_libbacktrace+set}" = set; then :
14827 withval=$with_libbacktrace;
14828fi
14829
14830
14831 if test "x$with_libbacktrace" != "xno"; then :
14832
14833 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14834
14835 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014836 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014837
14838 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 +000014839if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014840 have_libbacktrace_h=true
14841else
14842 have_libbacktrace_h=false
14843fi
14844
14845
14846
14847 if $have_libbacktrace_h; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14849$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851/* end confdefs.h. */
14852
14853 #include <backtrace-supported.h>
14854 #if BACKTRACE_SUPPORTED
14855 FOUND_LIBBACKTRACE_RESULT_GDC
14856 #endif
14857
14858_ACEOF
14859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14860 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14861 BACKTRACE_SUPPORTED=true
14862else
14863 BACKTRACE_SUPPORTED=false
14864fi
14865rm -f conftest*
14866
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14868$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14871$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873/* end confdefs.h. */
14874
14875 #include <backtrace-supported.h>
14876 #if BACKTRACE_USES_MALLOC
14877 FOUND_LIBBACKTRACE_RESULT_GDC
14878 #endif
14879
14880_ACEOF
14881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14882 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14883 BACKTRACE_USES_MALLOC=true
14884else
14885 BACKTRACE_USES_MALLOC=false
14886fi
14887rm -f conftest*
14888
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14890$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14891
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14893$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895/* end confdefs.h. */
14896
14897 #include <backtrace-supported.h>
14898 #if BACKTRACE_SUPPORTS_THREADS
14899 FOUND_LIBBACKTRACE_RESULT_GDC
14900 #endif
14901
14902_ACEOF
14903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14904 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14905 BACKTRACE_SUPPORTS_THREADS=true
14906else
14907 BACKTRACE_SUPPORTS_THREADS=false
14908fi
14909rm -f conftest*
14910
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14912$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14913 fi
14914 CPPFLAGS=$gdc_save_CPPFLAGS
14915
14916else
14917
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14919$as_echo_n "checking for libbacktrace... " >&6; }
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14921$as_echo "disabled" >&6; }
14922
14923fi
14924
14925
14926
14927
14928
14929 ac_ext=c
14930ac_cpp='$CPP $CPPFLAGS'
14931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14933ac_compiler_gnu=$ac_cv_c_compiler_gnu
14934
14935
14936
14937 # Libtool has already checked this, so re-use the inferred dlopen lib.
14938 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14939
14940 LIBS="$LIBS $lt_cv_dlopen_libs"
14941
14942fi
14943
14944
Rainer Orth1d679132019-02-19 09:24:50 +000014945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14946$as_echo_n "checking for socket libraries... " >&6; }
14947if ${druntime_cv_lib_sockets+:} false; then :
14948 $as_echo_n "(cached) " >&6
14949else
14950 druntime_cv_lib_sockets=
14951 druntime_check_both=no
14952 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14953if test "x$ac_cv_func_connect" = xyes; then :
14954 druntime_check_socket=no
14955else
14956 druntime_check_socket=yes
14957fi
14958
14959 if test "$druntime_check_socket" = "yes"; then
14960 unset ac_cv_func_connect
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14962$as_echo_n "checking for main in -lsocket... " >&6; }
14963if ${ac_cv_lib_socket_main+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965else
14966 ac_check_lib_save_LIBS=$LIBS
14967LIBS="-lsocket $LIBS"
14968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969/* end confdefs.h. */
14970
14971
14972int
14973main ()
14974{
14975return main ();
14976 ;
14977 return 0;
14978}
14979_ACEOF
14980if ac_fn_c_try_link "$LINENO"; then :
14981 ac_cv_lib_socket_main=yes
14982else
14983 ac_cv_lib_socket_main=no
14984fi
14985rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14987LIBS=$ac_check_lib_save_LIBS
14988fi
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14990$as_echo "$ac_cv_lib_socket_main" >&6; }
14991if test "x$ac_cv_lib_socket_main" = xyes; then :
14992 druntime_cv_lib_sockets="-lsocket"
14993else
14994 druntime_check_both=yes
14995fi
14996
14997 fi
14998 if test "$druntime_check_both" = "yes"; then
14999 druntime_old_libs=$LIBS
15000 LIBS="$LIBS -lsocket -lnsl"
15001 unset ac_cv_func_accept
15002 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15003if test "x$ac_cv_func_accept" = xyes; then :
15004 druntime_check_nsl=no
15005 druntime_cv_lib_sockets="-lsocket -lnsl"
15006fi
15007
15008 unset ac_cv_func_accept
15009 LIBS=$druntime_old_libs
15010 fi
15011 unset ac_cv_func_gethostbyname
15012 druntime_old_libs="$LIBS"
15013 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15014if test "x$ac_cv_func_gethostbyname" = xyes; then :
15015
15016else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15018$as_echo_n "checking for main in -lnsl... " >&6; }
15019if ${ac_cv_lib_nsl_main+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021else
15022 ac_check_lib_save_LIBS=$LIBS
15023LIBS="-lnsl $LIBS"
15024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025/* end confdefs.h. */
15026
15027
15028int
15029main ()
15030{
15031return main ();
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036if ac_fn_c_try_link "$LINENO"; then :
15037 ac_cv_lib_nsl_main=yes
15038else
15039 ac_cv_lib_nsl_main=no
15040fi
15041rm -f core conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043LIBS=$ac_check_lib_save_LIBS
15044fi
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15046$as_echo "$ac_cv_lib_nsl_main" >&6; }
15047if test "x$ac_cv_lib_nsl_main" = xyes; then :
15048 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15049fi
15050
15051fi
15052
15053
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15056$as_echo "$druntime_cv_lib_sockets" >&6; }
15057 LIBS="$LIBS $druntime_cv_lib_sockets"
15058
15059
Iain Buclawbb503122019-04-12 20:13:34 +000015060 ac_ext=c
15061ac_cpp='$CPP $CPPFLAGS'
15062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15064ac_compiler_gnu=$ac_cv_c_compiler_gnu
15065
15066 LIBZ=""
15067
Iain Buclawb4c522f2018-10-28 19:51:47 +000015068
15069# Check whether --with-target-system-zlib was given.
15070if test "${with_target_system_zlib+set}" = set; then :
15071 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015072else
15073 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015074fi
15075
15076
Iain Buclawbb503122019-04-12 20:13:34 +000015077 case "$with_target_system_zlib" in
15078 yes|no|auto) ;;
15079 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15080 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015081
Iain Buclawbb503122019-04-12 20:13:34 +000015082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15083$as_echo_n "checking for system zlib... " >&6; }
15084 save_LIBS=$LIBS
15085 LIBS="$LIBS -lz"
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015087/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015088#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015089int
15090main ()
15091{
Iain Buclawbb503122019-04-12 20:13:34 +000015092gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015093 ;
15094 return 0;
15095}
15096_ACEOF
15097if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015098
15099 if test "$cross_compiling" = yes; then :
15100 system_zlib_found=no
15101
Iain Buclawb4c522f2018-10-28 19:51:47 +000015102else
Iain Buclawbb503122019-04-12 20:13:34 +000015103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h. */
15105
15106 #include <zlib.h>
15107 int main() {
15108 gzFile file = gzopen("none", "rb");
15109 return 0;
15110 }
15111
15112_ACEOF
15113if ac_fn_c_try_run "$LINENO"; then :
15114 system_zlib_found=yes
15115else
15116 system_zlib_found=no
15117fi
15118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119 conftest.$ac_objext conftest.beam conftest.$ac_ext
15120fi
15121
15122
15123else
15124 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015125fi
15126rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015128 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015129
Iain Buclawbb503122019-04-12 20:13:34 +000015130 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15132$as_echo "found" >&6; }
15133 LIBS="$LIBS -lz"
15134 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15135 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15136 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15138$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015139 LIBZ=../../zlib/libz_convenience.la
15140 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015141
Iain Buclawb4c522f2018-10-28 19:51:47 +000015142
Iain Buclawbb503122019-04-12 20:13:34 +000015143 ac_ext=c
15144ac_cpp='$CPP $CPPFLAGS'
15145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015148
15149
15150
15151
15152
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15154$as_echo_n "checking D GCC version... " >&6; }
15155 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15157$as_echo "$gcc_version" >&6; }
15158
15159
15160
15161# Check whether --with-cross-host was given.
15162if test "${with_cross_host+set}" = set; then :
15163 withval=$with_cross_host;
15164fi
15165
15166
Iain Buclawac677522018-11-02 08:29:50 +000015167 libphobos_toolexecdir=no
15168 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015169
Iain Buclawac677522018-11-02 08:29:50 +000015170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15171$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15172 # Check whether --enable-version-specific-runtime-libs was given.
15173if test "${enable_version_specific_runtime_libs+set}" = set; then :
15174 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15175 yes) version_specific_libs=yes ;;
15176 no) version_specific_libs=no ;;
15177 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15178 esac
15179else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015180 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015181fi
15182
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15184$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015185
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015186
15187# Check whether --with-toolexeclibdir was given.
15188if test "${with_toolexeclibdir+set}" = set; then :
15189 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15190 /)
15191 ;;
15192 */)
15193 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15194 ;;
15195esac
15196else
15197 with_toolexeclibdir=no
15198fi
15199
15200
15201
Iain Buclawb4c522f2018-10-28 19:51:47 +000015202 # Version-specific runtime libs processing.
15203 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015204 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15205 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015206 else
Iain Buclawac677522018-11-02 08:29:50 +000015207 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15208 # Install a library built with a cross compiler in tooldir, not libdir.
15209 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15210 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015211 case ${with_toolexeclibdir} in
15212 no)
15213 libphobos_toolexeclibdir='${toolexecdir}/lib'
15214 ;;
15215 *)
15216 libphobos_toolexeclibdir=${with_toolexeclibdir}
15217 ;;
15218 esac
Iain Buclawac677522018-11-02 08:29:50 +000015219 else
15220 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15221 libphobos_toolexeclibdir='${libdir}'
15222 fi
15223 multi_os_directory=`$GDC -print-multi-os-directory`
15224 case $multi_os_directory in
15225 .) ;; # Avoid trailing /.
15226 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15227 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015228 fi
15229
15230
15231
15232 # Default case for install directory for D sources files.
15233 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15234
15235
15236
Rainer Orthbca0a322019-05-07 10:38:45 +000015237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15238$as_echo_n "checking for --enable-libphobos... " >&6; }
15239# Check whether --enable-libphobos was given.
15240if test "${enable_libphobos+set}" = set; then :
15241 enableval=$enable_libphobos;
15242fi
15243
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15245$as_echo "$enable_libphobos" >&6; }
15246
15247# See if supported.
15248unset LIBPHOBOS_SUPPORTED
15249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15250$as_echo_n "checking for host support for libphobos... " >&6; }
15251. ${srcdir}/configure.tgt
15252case ${host} in
15253 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15254 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15255 # relatively low linelength limit.
15256 as_prog=`$CC -print-prog-name=as`
15257 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15258 druntime_cv_use_gas=yes;
15259 else
15260 druntime_cv_use_gas=no;
15261 fi
15262 rm -f a.out
15263 if test x$druntime_cv_use_gas = xno; then
15264 LIBPHOBOS_SUPPORTED=no
15265 fi
15266 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15267 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15268 LIBPHOBOS_SUPPORTED=no
15269 fi
15270 ;;
15271esac
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15273$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15274
15275# Decide if it's usable.
15276case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15277*:no) use_libphobos=no ;;
15278*:yes) use_libphobos=yes ;;
15279yes:*) use_libphobos=yes ;;
15280*:*) use_libphobos=no ;;
15281esac
15282 if test x$use_libphobos = xyes; then
15283 ENABLE_LIBPHOBOS_TRUE=
15284 ENABLE_LIBPHOBOS_FALSE='#'
15285else
15286 ENABLE_LIBPHOBOS_TRUE='#'
15287 ENABLE_LIBPHOBOS_FALSE=
15288fi
15289
15290
Rainer Orth0b6e3122019-02-14 17:47:49 +000015291# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15292if test "$DCFG_MINFO_BRACKETING" = "false"; then
15293 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15294else
15295 DRTSTUFF_SPEC=/dev/null
15296fi
15297
15298
Iain Buclawb4c522f2018-10-28 19:51:47 +000015299# Add dependencies for libgphobos.spec file
15300SPEC_PHOBOS_DEPS="$LIBS"
15301
15302
15303# Libdruntime / phobos soname version
Iain Buclawbc093502020-03-16 17:00:07 +010015304libtool_VERSION=1:0:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015305
15306
15307# Set default flags (after DRUNTIME_WERROR!)
15308if test -z "$GDCFLAGS"; then
Iain Buclaw38c30172020-03-29 23:54:01 +020015309 GDCFLAGS="-g -frelease -O2"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015310fi
15311
15312
15313if test -z "$GDCFLAGSX"; then
Iain Buclaw38c30172020-03-29 23:54:01 +020015314 GDCFLAGSX="-g -fno-release -funittest"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015315fi
15316
15317
Iain Buclaw38c30172020-03-29 23:54:01 +020015318WARN_DFLAGS="-Wall $WERROR_FLAG"
15319
15320
Iain Buclawb4c522f2018-10-28 19:51:47 +000015321# Sanity check for the cross-compilation case:
15322ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015323if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015324 :
15325else
Joseph Myers22e05272018-10-31 17:03:16 +000015326 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015327fi
15328
15329
15330
Iain Buclawac677522018-11-02 08:29:50 +000015331ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015332
15333
15334ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15335
15336ac_config_files="$ac_config_files src/libgphobos.spec"
15337
15338ac_config_files="$ac_config_files testsuite/testsuite_flags"
15339
15340
Iain Buclawac677522018-11-02 08:29:50 +000015341# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15342# that multilib installs will end up installed in the correct place.
15343# The testsuite needs it for multilib-aware ABI baseline files.
15344# To work around this not being passed down from config-ml.in ->
15345# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15346# append it here. Only modify Makefiles that have just been created.
15347#
15348# Also, get rid of this simulated-VPATH thing that automake does.
15349ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015350
15351
15352cat >confcache <<\_ACEOF
15353# This file is a shell script that caches the results of configure
15354# tests run on this system so they can be shared between configure
15355# scripts and configure runs, see configure's option --config-cache.
15356# It is not useful on other systems. If it contains results you don't
15357# want to keep, you may remove or edit it.
15358#
15359# config.status only pays attention to the cache file if you give it
15360# the --recheck option to rerun configure.
15361#
15362# `ac_cv_env_foo' variables (set or unset) will be overridden when
15363# loading this file, other *unset* `ac_cv_foo' will be assigned the
15364# following values.
15365
15366_ACEOF
15367
15368# The following way of writing the cache mishandles newlines in values,
15369# but we know of no workaround that is simple, portable, and efficient.
15370# So, we kill variables containing newlines.
15371# Ultrix sh set writes to stderr and can't be redirected directly,
15372# and sets the high bit in the cache file unless we assign to the vars.
15373(
15374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15375 eval ac_val=\$$ac_var
15376 case $ac_val in #(
15377 *${as_nl}*)
15378 case $ac_var in #(
15379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15380$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15381 esac
15382 case $ac_var in #(
15383 _ | IFS | as_nl) ;; #(
15384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15385 *) { eval $ac_var=; unset $ac_var;} ;;
15386 esac ;;
15387 esac
15388 done
15389
15390 (set) 2>&1 |
15391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15392 *${as_nl}ac_space=\ *)
15393 # `set' does not quote correctly, so add quotes: double-quote
15394 # substitution turns \\\\ into \\, and sed turns \\ into \.
15395 sed -n \
15396 "s/'/'\\\\''/g;
15397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15398 ;; #(
15399 *)
15400 # `set' quotes correctly as required by POSIX, so do not add quotes.
15401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15402 ;;
15403 esac |
15404 sort
15405) |
15406 sed '
15407 /^ac_cv_env_/b end
15408 t clear
15409 :clear
15410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15411 t end
15412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15413 :end' >>confcache
15414if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15415 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015416 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015417 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15418$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015419 if test ! -f "$cache_file" || test -h "$cache_file"; then
15420 cat confcache >"$cache_file"
15421 else
15422 case $cache_file in #(
15423 */* | ?:*)
15424 mv -f confcache "$cache_file"$$ &&
15425 mv -f "$cache_file"$$ "$cache_file" ;; #(
15426 *)
15427 mv -f confcache "$cache_file" ;;
15428 esac
15429 fi
15430 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15433$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15434 fi
15435fi
15436rm -f confcache
15437
15438test "x$prefix" = xNONE && prefix=$ac_default_prefix
15439# Let make expand exec_prefix.
15440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15441
15442DEFS=-DHAVE_CONFIG_H
15443
15444ac_libobjs=
15445ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015446U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015447for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15448 # 1. Remove the extension, and $U if already installed.
15449 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15450 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15452 # will be set to the directory where LIBOBJS objects are built.
15453 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15454 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15455done
15456LIBOBJS=$ac_libobjs
15457
15458LTLIBOBJS=$ac_ltlibobjs
15459
15460
Joseph Myers22e05272018-10-31 17:03:16 +000015461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15462$as_echo_n "checking that generated files are newer than configure... " >&6; }
15463 if test -n "$am_sleep_pid"; then
15464 # Hide warnings about reused PIDs.
15465 wait $am_sleep_pid 2>/dev/null
15466 fi
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15468$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015469 if test -n "$EXEEXT"; then
15470 am__EXEEXT_TRUE=
15471 am__EXEEXT_FALSE='#'
15472else
15473 am__EXEEXT_TRUE='#'
15474 am__EXEEXT_FALSE=
15475fi
15476
15477if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015478 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015479Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015481if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015482 as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015483Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015485if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15486 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15487Usually this means the macro was only invoked conditionally." "$LINENO" 5
15488fi
15489if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15490 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15491Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492fi
15493if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15494 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15495Usually this means the macro was only invoked conditionally." "$LINENO" 5
15496fi
15497if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15498 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15499Usually this means the macro was only invoked conditionally." "$LINENO" 5
15500fi
15501if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15502 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15503Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504fi
15505if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15506 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15507Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508fi
Robin Dapp88e508f2020-04-07 21:05:38 +020015509if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15510 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15511Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512fi
15513if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15514 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15515Usually this means the macro was only invoked conditionally." "$LINENO" 5
15516fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015517if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015518 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015519Usually this means the macro was only invoked conditionally." "$LINENO" 5
15520fi
15521if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015522 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015523Usually this means the macro was only invoked conditionally." "$LINENO" 5
15524fi
15525if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015526 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015527Usually this means the macro was only invoked conditionally." "$LINENO" 5
15528fi
15529if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015530 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015531Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532fi
15533if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015534 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015535Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536fi
15537if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015538 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015539Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540fi
15541if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015542 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015543Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544fi
15545if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015546 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015547Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548fi
15549if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015550 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015551Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552fi
15553if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015554 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015555Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556fi
Iain Buclaw72c136c2020-04-08 22:52:05 +020015557if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15558 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15559Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015561if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015562 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015563Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015565if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15566 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15567Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568fi
Rainer Orthbca0a322019-05-07 10:38:45 +000015569if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15570 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15571Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015573
Joseph Myers22e05272018-10-31 17:03:16 +000015574: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015575ac_write_fail=0
15576ac_clean_files_save=$ac_clean_files
15577ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15579$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15580as_write_fail=0
15581cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15582#! $SHELL
15583# Generated by $as_me.
15584# Run this file to recreate the current configuration.
15585# Compiler output produced by configure, useful for debugging
15586# configure, is in config.log if it exists.
15587
15588debug=false
15589ac_cs_recheck=false
15590ac_cs_silent=false
15591
15592SHELL=\${CONFIG_SHELL-$SHELL}
15593export SHELL
15594_ASEOF
15595cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15596## -------------------- ##
15597## M4sh Initialization. ##
15598## -------------------- ##
15599
15600# Be more Bourne compatible
15601DUALCASE=1; export DUALCASE # for MKS sh
15602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15603 emulate sh
15604 NULLCMD=:
15605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15606 # is contrary to our usage. Disable this feature.
15607 alias -g '${1+"$@"}'='"$@"'
15608 setopt NO_GLOB_SUBST
15609else
15610 case `(set -o) 2>/dev/null` in #(
15611 *posix*) :
15612 set -o posix ;; #(
15613 *) :
15614 ;;
15615esac
15616fi
15617
15618
15619as_nl='
15620'
15621export as_nl
15622# Printing a long string crashes Solaris 7 /usr/bin/printf.
15623as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15626# Prefer a ksh shell builtin over an external printf program on Solaris,
15627# but without wasting forks for bash or zsh.
15628if test -z "$BASH_VERSION$ZSH_VERSION" \
15629 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15630 as_echo='print -r --'
15631 as_echo_n='print -rn --'
15632elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15633 as_echo='printf %s\n'
15634 as_echo_n='printf %s'
15635else
15636 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15637 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15638 as_echo_n='/usr/ucb/echo -n'
15639 else
15640 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15641 as_echo_n_body='eval
15642 arg=$1;
15643 case $arg in #(
15644 *"$as_nl"*)
15645 expr "X$arg" : "X\\(.*\\)$as_nl";
15646 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15647 esac;
15648 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15649 '
15650 export as_echo_n_body
15651 as_echo_n='sh -c $as_echo_n_body as_echo'
15652 fi
15653 export as_echo_body
15654 as_echo='sh -c $as_echo_body as_echo'
15655fi
15656
15657# The user is always right.
15658if test "${PATH_SEPARATOR+set}" != set; then
15659 PATH_SEPARATOR=:
15660 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15661 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15662 PATH_SEPARATOR=';'
15663 }
15664fi
15665
15666
15667# IFS
15668# We need space, tab and new line, in precisely that order. Quoting is
15669# there to prevent editors from complaining about space-tab.
15670# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15671# splitting by setting IFS to empty value.)
15672IFS=" "" $as_nl"
15673
15674# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015675as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015676case $0 in #((
15677 *[\\/]* ) as_myself=$0 ;;
15678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15679for as_dir in $PATH
15680do
15681 IFS=$as_save_IFS
15682 test -z "$as_dir" && as_dir=.
15683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15684 done
15685IFS=$as_save_IFS
15686
15687 ;;
15688esac
15689# We did not find ourselves, most probably we were run as `sh COMMAND'
15690# in which case we are not to be found in the path.
15691if test "x$as_myself" = x; then
15692 as_myself=$0
15693fi
15694if test ! -f "$as_myself"; then
15695 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15696 exit 1
15697fi
15698
15699# Unset variables that we do not need and which cause bugs (e.g. in
15700# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15701# suppresses any "Segmentation fault" message there. '((' could
15702# trigger a bug in pdksh 5.2.14.
15703for as_var in BASH_ENV ENV MAIL MAILPATH
15704do eval test x\${$as_var+set} = xset \
15705 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15706done
15707PS1='$ '
15708PS2='> '
15709PS4='+ '
15710
15711# NLS nuisances.
15712LC_ALL=C
15713export LC_ALL
15714LANGUAGE=C
15715export LANGUAGE
15716
15717# CDPATH.
15718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15719
15720
Joseph Myers22e05272018-10-31 17:03:16 +000015721# as_fn_error STATUS ERROR [LINENO LOG_FD]
15722# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015723# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15724# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015725# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015726as_fn_error ()
15727{
Joseph Myers22e05272018-10-31 17:03:16 +000015728 as_status=$1; test $as_status -eq 0 && as_status=1
15729 if test "$4"; then
15730 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15731 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015732 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015733 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015734 as_fn_exit $as_status
15735} # as_fn_error
15736
15737
15738# as_fn_set_status STATUS
15739# -----------------------
15740# Set $? to STATUS, without forking.
15741as_fn_set_status ()
15742{
15743 return $1
15744} # as_fn_set_status
15745
15746# as_fn_exit STATUS
15747# -----------------
15748# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15749as_fn_exit ()
15750{
15751 set +e
15752 as_fn_set_status $1
15753 exit $1
15754} # as_fn_exit
15755
15756# as_fn_unset VAR
15757# ---------------
15758# Portably unset VAR.
15759as_fn_unset ()
15760{
15761 { eval $1=; unset $1;}
15762}
15763as_unset=as_fn_unset
15764# as_fn_append VAR VALUE
15765# ----------------------
15766# Append the text in VALUE to the end of the definition contained in VAR. Take
15767# advantage of any shell optimizations that allow amortized linear growth over
15768# repeated appends, instead of the typical quadratic growth present in naive
15769# implementations.
15770if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15771 eval 'as_fn_append ()
15772 {
15773 eval $1+=\$2
15774 }'
15775else
15776 as_fn_append ()
15777 {
15778 eval $1=\$$1\$2
15779 }
15780fi # as_fn_append
15781
15782# as_fn_arith ARG...
15783# ------------------
15784# Perform arithmetic evaluation on the ARGs, and store the result in the
15785# global $as_val. Take advantage of shells that can avoid forks. The arguments
15786# must be portable across $(()) and expr.
15787if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15788 eval 'as_fn_arith ()
15789 {
15790 as_val=$(( $* ))
15791 }'
15792else
15793 as_fn_arith ()
15794 {
15795 as_val=`expr "$@" || test $? -eq 1`
15796 }
15797fi # as_fn_arith
15798
15799
15800if expr a : '\(a\)' >/dev/null 2>&1 &&
15801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15802 as_expr=expr
15803else
15804 as_expr=false
15805fi
15806
15807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15808 as_basename=basename
15809else
15810 as_basename=false
15811fi
15812
15813if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15814 as_dirname=dirname
15815else
15816 as_dirname=false
15817fi
15818
15819as_me=`$as_basename -- "$0" ||
15820$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15821 X"$0" : 'X\(//\)$' \| \
15822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15823$as_echo X/"$0" |
15824 sed '/^.*\/\([^/][^/]*\)\/*$/{
15825 s//\1/
15826 q
15827 }
15828 /^X\/\(\/\/\)$/{
15829 s//\1/
15830 q
15831 }
15832 /^X\/\(\/\).*/{
15833 s//\1/
15834 q
15835 }
15836 s/.*/./; q'`
15837
15838# Avoid depending upon Character Ranges.
15839as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15840as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15841as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15842as_cr_digits='0123456789'
15843as_cr_alnum=$as_cr_Letters$as_cr_digits
15844
15845ECHO_C= ECHO_N= ECHO_T=
15846case `echo -n x` in #(((((
15847-n*)
15848 case `echo 'xy\c'` in
15849 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15850 xy) ECHO_C='\c';;
15851 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15852 ECHO_T=' ';;
15853 esac;;
15854*)
15855 ECHO_N='-n';;
15856esac
15857
15858rm -f conf$$ conf$$.exe conf$$.file
15859if test -d conf$$.dir; then
15860 rm -f conf$$.dir/conf$$.file
15861else
15862 rm -f conf$$.dir
15863 mkdir conf$$.dir 2>/dev/null
15864fi
15865if (echo >conf$$.file) 2>/dev/null; then
15866 if ln -s conf$$.file conf$$ 2>/dev/null; then
15867 as_ln_s='ln -s'
15868 # ... but there are two gotchas:
15869 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15870 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015871 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015872 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015873 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015874 elif ln conf$$.file conf$$ 2>/dev/null; then
15875 as_ln_s=ln
15876 else
Joseph Myers22e05272018-10-31 17:03:16 +000015877 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015878 fi
15879else
Joseph Myers22e05272018-10-31 17:03:16 +000015880 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015881fi
15882rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15883rmdir conf$$.dir 2>/dev/null
15884
15885
15886# as_fn_mkdir_p
15887# -------------
15888# Create "$as_dir" as a directory, including parents if necessary.
15889as_fn_mkdir_p ()
15890{
15891
15892 case $as_dir in #(
15893 -*) as_dir=./$as_dir;;
15894 esac
15895 test -d "$as_dir" || eval $as_mkdir_p || {
15896 as_dirs=
15897 while :; do
15898 case $as_dir in #(
15899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15900 *) as_qdir=$as_dir;;
15901 esac
15902 as_dirs="'$as_qdir' $as_dirs"
15903 as_dir=`$as_dirname -- "$as_dir" ||
15904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15905 X"$as_dir" : 'X\(//\)[^/]' \| \
15906 X"$as_dir" : 'X\(//\)$' \| \
15907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15908$as_echo X"$as_dir" |
15909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15910 s//\1/
15911 q
15912 }
15913 /^X\(\/\/\)[^/].*/{
15914 s//\1/
15915 q
15916 }
15917 /^X\(\/\/\)$/{
15918 s//\1/
15919 q
15920 }
15921 /^X\(\/\).*/{
15922 s//\1/
15923 q
15924 }
15925 s/.*/./; q'`
15926 test -d "$as_dir" && break
15927 done
15928 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000015929 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015930
15931
15932} # as_fn_mkdir_p
15933if mkdir -p . 2>/dev/null; then
15934 as_mkdir_p='mkdir -p "$as_dir"'
15935else
15936 test -d ./-p && rmdir ./-p
15937 as_mkdir_p=false
15938fi
15939
Joseph Myers22e05272018-10-31 17:03:16 +000015940
15941# as_fn_executable_p FILE
15942# -----------------------
15943# Test if FILE is an executable regular file.
15944as_fn_executable_p ()
15945{
15946 test -f "$1" && test -x "$1"
15947} # as_fn_executable_p
15948as_test_x='test -x'
15949as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000015950
15951# Sed expression to map a string onto a valid CPP name.
15952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15953
15954# Sed expression to map a string onto a valid variable name.
15955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15956
15957
15958exec 6>&1
15959## ----------------------------------- ##
15960## Main body of $CONFIG_STATUS script. ##
15961## ----------------------------------- ##
15962_ASEOF
15963test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15964
15965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15966# Save the log message, to keep $0 and so on meaningful, and to
15967# report actual input values of CONFIG_FILES etc. instead of their
15968# values after options handling.
15969ac_log="
15970This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000015971generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000015972
15973 CONFIG_FILES = $CONFIG_FILES
15974 CONFIG_HEADERS = $CONFIG_HEADERS
15975 CONFIG_LINKS = $CONFIG_LINKS
15976 CONFIG_COMMANDS = $CONFIG_COMMANDS
15977 $ $0 $@
15978
15979on `(hostname || uname -n) 2>/dev/null | sed 1q`
15980"
15981
15982_ACEOF
15983
15984case $ac_config_files in *"
15985"*) set x $ac_config_files; shift; ac_config_files=$*;;
15986esac
15987
15988case $ac_config_headers in *"
15989"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15990esac
15991
15992
15993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15994# Files that config.status was made for.
15995config_files="$ac_config_files"
15996config_headers="$ac_config_headers"
15997config_commands="$ac_config_commands"
15998
15999_ACEOF
16000
16001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002ac_cs_usage="\
16003\`$as_me' instantiates files and other configuration actions
16004from templates according to the current configuration. Unless the files
16005and actions are specified as TAGs, all are instantiated by default.
16006
16007Usage: $0 [OPTION]... [TAG]...
16008
16009 -h, --help print this help, then exit
16010 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000016011 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000016012 -q, --quiet, --silent
16013 do not print progress messages
16014 -d, --debug don't remove temporary files
16015 --recheck update $as_me by reconfiguring in the same conditions
16016 --file=FILE[:TEMPLATE]
16017 instantiate the configuration file FILE
16018 --header=FILE[:TEMPLATE]
16019 instantiate the configuration header FILE
16020
16021Configuration files:
16022$config_files
16023
16024Configuration headers:
16025$config_headers
16026
16027Configuration commands:
16028$config_commands
16029
16030Report bugs to the package provider."
16031
16032_ACEOF
16033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016034ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016035ac_cs_version="\\
16036package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000016037configured by $0, generated by GNU Autoconf 2.69,
16038 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016039
Rainer Orth0b6e3122019-02-14 17:47:49 +000016040Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016041This config.status script is free software; the Free Software Foundation
16042gives unlimited permission to copy, distribute and modify it."
16043
16044ac_pwd='$ac_pwd'
16045srcdir='$srcdir'
16046INSTALL='$INSTALL'
16047MKDIR_P='$MKDIR_P'
16048AWK='$AWK'
16049test -n "\$AWK" || AWK=awk
16050_ACEOF
16051
16052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16053# The default lists apply if the user does not specify any file.
16054ac_need_defaults=:
16055while test $# != 0
16056do
16057 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000016058 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000016059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16061 ac_shift=:
16062 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016063 --*=)
16064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16065 ac_optarg=
16066 ac_shift=:
16067 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016068 *)
16069 ac_option=$1
16070 ac_optarg=$2
16071 ac_shift=shift
16072 ;;
16073 esac
16074
16075 case $ac_option in
16076 # Handling of the options.
16077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16078 ac_cs_recheck=: ;;
16079 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16080 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016081 --config | --confi | --conf | --con | --co | --c )
16082 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016083 --debug | --debu | --deb | --de | --d | -d )
16084 debug=: ;;
16085 --file | --fil | --fi | --f )
16086 $ac_shift
16087 case $ac_optarg in
16088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016089 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016090 esac
16091 as_fn_append CONFIG_FILES " '$ac_optarg'"
16092 ac_need_defaults=false;;
16093 --header | --heade | --head | --hea )
16094 $ac_shift
16095 case $ac_optarg in
16096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16097 esac
16098 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16099 ac_need_defaults=false;;
16100 --he | --h)
16101 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000016102 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016103Try \`$0 --help' for more information.";;
16104 --help | --hel | -h )
16105 $as_echo "$ac_cs_usage"; exit ;;
16106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16108 ac_cs_silent=: ;;
16109
16110 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016111 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016112Try \`$0 --help' for more information." ;;
16113
16114 *) as_fn_append ac_config_targets " $1"
16115 ac_need_defaults=false ;;
16116
16117 esac
16118 shift
16119done
16120
16121ac_configure_extra_args=
16122
16123if $ac_cs_silent; then
16124 exec 6>/dev/null
16125 ac_configure_extra_args="$ac_configure_extra_args --silent"
16126fi
16127
16128_ACEOF
16129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016131 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016132 shift
16133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16134 CONFIG_SHELL='$SHELL'
16135 export CONFIG_SHELL
16136 exec "\$@"
16137fi
16138
16139_ACEOF
16140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16141exec 5>>config.log
16142{
16143 echo
16144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16145## Running $as_me. ##
16146_ASBOX
16147 $as_echo "$ac_log"
16148} >&5
16149
16150_ACEOF
16151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16152#
16153# INIT-COMMANDS
16154#
16155
16156srcdir="$srcdir"
16157host="$host"
16158target="$target"
16159with_multisubdir="$with_multisubdir"
16160with_multisrctop="$with_multisrctop"
16161with_target_subdir="$with_target_subdir"
16162ac_configure_args="${multilib_arg} ${ac_configure_args}"
16163multi_basedir="$multi_basedir"
16164CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16165CC="$CC"
16166CXX="$CXX"
16167GFORTRAN="$GFORTRAN"
16168GDC="$GDC"
16169
16170
16171# The HP-UX ksh and POSIX shell print the target directory to stdout
16172# if CDPATH is set.
16173(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16174
16175sed_quote_subst='$sed_quote_subst'
16176double_quote_subst='$double_quote_subst'
16177delay_variable_subst='$delay_variable_subst'
16178macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16179macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16180enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16181enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16182pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16183enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16184SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16185ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16186host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16187host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16188host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16189build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16190build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16191build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16192SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16193Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16194GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16195EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16196FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16197LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16198NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16199LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16200max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16201ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16202exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16203lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16204lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16205lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16206reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16207reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16208OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16209deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16210file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16211AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16212AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16213STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16214RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16215old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16216old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16217old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16218lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16219CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16220CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16221compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16222GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16223lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16224lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16225lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16226lt_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"`'
16227objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16228MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16229lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16230lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16231lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16232lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16233lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16234need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16235DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16236NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16237LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16238OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16239OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16240libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16241shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16242extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16243archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16244enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16245export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16246whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16247compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16248old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16249old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16250archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16251archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16252module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16253module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16254with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16255allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16256no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16257hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16258hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16259hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16260hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16261hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16262hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16263hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16264hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16265inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16266link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16267fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16268always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16269export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16270exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16271include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16272prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16273file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16274variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16275need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16276need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16277version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16278runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16279shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16280shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16281libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16282library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16283soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16284install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16285postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16286postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16287finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16288finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16289hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16290sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16291sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16292hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16293enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16294enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16295enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16296old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16297striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16298LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16299reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16300reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16301old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16302compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16303GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16304lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16305lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16306lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16307lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16308lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16309archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16310enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16311export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16312whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16313compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16314old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16315old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16316archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16317archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16318module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16319module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16320with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16321allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16322no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16323hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16324hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16325hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16326hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16327hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16328hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16329hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16330hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16331inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16332link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16333fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16334always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16335export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16336exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16337include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16338prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16339file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16340hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16341
16342LTCC='$LTCC'
16343LTCFLAGS='$LTCFLAGS'
16344compiler='$compiler_DEFAULT'
16345
16346# A function that is used when there is no print builtin or printf.
16347func_fallback_echo ()
16348{
16349 eval 'cat <<_LTECHO_EOF
16350\$1
16351_LTECHO_EOF'
16352}
16353
16354# Quote evaled strings.
16355for var in SHELL \
16356ECHO \
16357SED \
16358GREP \
16359EGREP \
16360FGREP \
16361LD \
16362NM \
16363LN_S \
16364lt_SP2NL \
16365lt_NL2SP \
16366reload_flag \
16367OBJDUMP \
16368deplibs_check_method \
16369file_magic_cmd \
16370AR \
16371AR_FLAGS \
16372STRIP \
16373RANLIB \
16374CC \
16375CFLAGS \
16376compiler \
16377lt_cv_sys_global_symbol_pipe \
16378lt_cv_sys_global_symbol_to_cdecl \
16379lt_cv_sys_global_symbol_to_c_name_address \
16380lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16381lt_prog_compiler_no_builtin_flag \
16382lt_prog_compiler_wl \
16383lt_prog_compiler_pic \
16384lt_prog_compiler_static \
16385lt_cv_prog_compiler_c_o \
16386need_locks \
16387DSYMUTIL \
16388NMEDIT \
16389LIPO \
16390OTOOL \
16391OTOOL64 \
16392shrext_cmds \
16393export_dynamic_flag_spec \
16394whole_archive_flag_spec \
16395compiler_needs_object \
16396with_gnu_ld \
16397allow_undefined_flag \
16398no_undefined_flag \
16399hardcode_libdir_flag_spec \
16400hardcode_libdir_flag_spec_ld \
16401hardcode_libdir_separator \
16402fix_srcfile_path \
16403exclude_expsyms \
16404include_expsyms \
16405file_list_spec \
16406variables_saved_for_relink \
16407libname_spec \
16408library_names_spec \
16409soname_spec \
16410install_override_mode \
16411finish_eval \
16412old_striplib \
16413striplib \
16414LD_D \
16415reload_flag_D \
16416compiler_D \
16417lt_prog_compiler_no_builtin_flag_D \
16418lt_prog_compiler_wl_D \
16419lt_prog_compiler_pic_D \
16420lt_prog_compiler_static_D \
16421lt_cv_prog_compiler_c_o_D \
16422export_dynamic_flag_spec_D \
16423whole_archive_flag_spec_D \
16424compiler_needs_object_D \
16425with_gnu_ld_D \
16426allow_undefined_flag_D \
16427no_undefined_flag_D \
16428hardcode_libdir_flag_spec_D \
16429hardcode_libdir_flag_spec_ld_D \
16430hardcode_libdir_separator_D \
16431fix_srcfile_path_D \
16432exclude_expsyms_D \
16433include_expsyms_D \
16434file_list_spec_D; do
16435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16436 *[\\\\\\\`\\"\\\$]*)
16437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16438 ;;
16439 *)
16440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16441 ;;
16442 esac
16443done
16444
16445# Double-quote double-evaled strings.
16446for var in reload_cmds \
16447old_postinstall_cmds \
16448old_postuninstall_cmds \
16449old_archive_cmds \
16450extract_expsyms_cmds \
16451old_archive_from_new_cmds \
16452old_archive_from_expsyms_cmds \
16453archive_cmds \
16454archive_expsym_cmds \
16455module_cmds \
16456module_expsym_cmds \
16457export_symbols_cmds \
16458prelink_cmds \
16459postinstall_cmds \
16460postuninstall_cmds \
16461finish_cmds \
16462sys_lib_search_path_spec \
16463sys_lib_dlsearch_path_spec \
16464reload_cmds_D \
16465old_archive_cmds_D \
16466old_archive_from_new_cmds_D \
16467old_archive_from_expsyms_cmds_D \
16468archive_cmds_D \
16469archive_expsym_cmds_D \
16470module_cmds_D \
16471module_expsym_cmds_D \
16472export_symbols_cmds_D \
16473prelink_cmds_D; do
16474 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16475 *[\\\\\\\`\\"\\\$]*)
16476 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16477 ;;
16478 *)
16479 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16480 ;;
16481 esac
16482done
16483
16484ac_aux_dir='$ac_aux_dir'
16485xsi_shell='$xsi_shell'
16486lt_shell_append='$lt_shell_append'
16487
16488# See if we are running on zsh, and set the options which allow our
16489# commands through without removal of \ escapes INIT.
16490if test -n "\${ZSH_VERSION+set}" ; then
16491 setopt NO_GLOB_SUBST
16492fi
16493
16494
16495 PACKAGE='$PACKAGE'
16496 VERSION='$VERSION'
16497 TIMESTAMP='$TIMESTAMP'
16498 RM='$RM'
16499 ofile='$ofile'
16500
16501
16502
16503
16504
16505
Iain Buclawb4c522f2018-10-28 19:51:47 +000016506_ACEOF
16507
16508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509
16510# Handling of arguments.
16511for ac_config_target in $ac_config_targets
16512do
16513 case $ac_config_target in
16514 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16515 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16516 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16517 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016518 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16519 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16520 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16521 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016522 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16523 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16524 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016525
Joseph Myers22e05272018-10-31 17:03:16 +000016526 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016527 esac
16528done
16529
16530
16531# If the user did not use the arguments to specify the items to instantiate,
16532# then the envvar interface is used. Set only those that are not.
16533# We use the long form for the default assignment because of an extremely
16534# bizarre bug on SunOS 4.1.3.
16535if $ac_need_defaults; then
16536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16539fi
16540
16541# Have a temporary directory for convenience. Make it in the build tree
16542# simply because there is no reason against having it here, and in addition,
16543# creating and moving files from /tmp can sometimes cause problems.
16544# Hook for its removal unless debugging.
16545# Note that there is a small window in which the directory will not be cleaned:
16546# after its creation but before its name has been assigned to `$tmp'.
16547$debug ||
16548{
Joseph Myers22e05272018-10-31 17:03:16 +000016549 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016550 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016551 : "${ac_tmp:=$tmp}"
16552 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016553' 0
16554 trap 'as_fn_exit 1' 1 2 13 15
16555}
16556# Create a (secure) tmp directory for tmp files.
16557
16558{
16559 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016560 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016561} ||
16562{
16563 tmp=./conf$$-$RANDOM
16564 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016565} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16566ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016567
16568# Set up the scripts for CONFIG_FILES section.
16569# No need to generate them if there are no CONFIG_FILES.
16570# This happens for instance with `./config.status config.h'.
16571if test -n "$CONFIG_FILES"; then
16572
Rainer Orth0b6e3122019-02-14 17:47:49 +000016573if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16574 ac_cs_awk_getline=:
16575 ac_cs_awk_pipe_init=
16576 ac_cs_awk_read_file='
16577 while ((getline aline < (F[key])) > 0)
16578 print(aline)
16579 close(F[key])'
16580 ac_cs_awk_pipe_fini=
16581else
16582 ac_cs_awk_getline=false
16583 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16584 ac_cs_awk_read_file='
16585 print "|#_!!_#|"
16586 print "cat " F[key] " &&"
16587 '$ac_cs_awk_pipe_init
16588 # The final `:' finishes the AND list.
16589 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16590fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016591ac_cr=`echo X | tr X '\015'`
16592# On cygwin, bash can eat \r inside `` if the user requested igncr.
16593# But we know of no other shell where ac_cr would be empty at this
16594# point, so we can use a bashism as a fallback.
16595if test "x$ac_cr" = x; then
16596 eval ac_cr=\$\'\\r\'
16597fi
16598ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16599if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016600 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016601else
16602 ac_cs_awk_cr=$ac_cr
16603fi
16604
Joseph Myers22e05272018-10-31 17:03:16 +000016605echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016606_ACEOF
16607
Rainer Orth0b6e3122019-02-14 17:47:49 +000016608# Create commands to substitute file output variables.
16609{
16610 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16611 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16612 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16613 echo "_ACAWK" &&
16614 echo "_ACEOF"
16615} >conf$$files.sh &&
16616. ./conf$$files.sh ||
16617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16618rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016619
16620{
16621 echo "cat >conf$$subs.awk <<_ACEOF" &&
16622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16623 echo "_ACEOF"
16624} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16626ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016627ac_delim='%!_!# '
16628for ac_last_try in false false false false false :; do
16629 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016631
16632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16633 if test $ac_delim_n = $ac_delim_num; then
16634 break
16635 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016637 else
16638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16639 fi
16640done
16641rm -f conf$$subs.sh
16642
16643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016644cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016645_ACEOF
16646sed -n '
16647h
16648s/^/S["/; s/!.*/"]=/
16649p
16650g
16651s/^[^!]*!//
16652:repl
16653t repl
16654s/'"$ac_delim"'$//
16655t delim
16656:nl
16657h
Joseph Myers22e05272018-10-31 17:03:16 +000016658s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016659t more1
16660s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16661p
16662n
16663b repl
16664:more1
16665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16666p
16667g
16668s/.\{148\}//
16669t nl
16670:delim
16671h
Joseph Myers22e05272018-10-31 17:03:16 +000016672s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016673t more2
16674s/["\\]/\\&/g; s/^/"/; s/$/"/
16675p
16676b
16677:more2
16678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16679p
16680g
16681s/.\{148\}//
16682t delim
16683' <conf$$subs.awk | sed '
16684/^[^""]/{
16685 N
16686 s/\n//
16687}
16688' >>$CONFIG_STATUS || ac_write_fail=1
16689rm -f conf$$subs.awk
16690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16691_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016692cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016693 for (key in S) S_is_set[key] = 1
16694 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016695 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016696}
16697{
16698 line = $ 0
16699 nfields = split(line, field, "@")
16700 substed = 0
16701 len = length(field[1])
16702 for (i = 2; i < nfields; i++) {
16703 key = field[i]
16704 keylen = length(key)
16705 if (S_is_set[key]) {
16706 value = S[key]
16707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16708 len += length(value) + length(field[++i])
16709 substed = 1
16710 } else
16711 len += 1 + keylen
16712 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016713 if (nfields == 3 && !substed) {
16714 key = field[2]
16715 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16716 \$ac_cs_awk_read_file
16717 next
16718 }
16719 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016720 print line
16721}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016722\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016723_ACAWK
16724_ACEOF
16725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16727 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16728else
16729 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016730fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16731 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016732_ACEOF
16733
Joseph Myers22e05272018-10-31 17:03:16 +000016734# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16735# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016736# trailing colons and then remove the whole line if VPATH becomes empty
16737# (actually we leave an empty line to preserve line numbers).
16738if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016739 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16740h
16741s///
16742s/^/:/
16743s/[ ]*$/:/
16744s/:\$(srcdir):/:/g
16745s/:\${srcdir}:/:/g
16746s/:@srcdir@:/:/g
16747s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016748s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016749x
16750s/\(=[ ]*\).*/\1/
16751G
16752s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016753s/^[^=]*=[ ]*$//
16754}'
16755fi
16756
16757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16758fi # test -n "$CONFIG_FILES"
16759
16760# Set up the scripts for CONFIG_HEADERS section.
16761# No need to generate them if there are no CONFIG_HEADERS.
16762# This happens for instance with `./config.status Makefile'.
16763if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016764cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016765BEGIN {
16766_ACEOF
16767
16768# Transform confdefs.h into an awk script `defines.awk', embedded as
16769# here-document in config.status, that substitutes the proper values into
16770# config.h.in to produce config.h.
16771
16772# Create a delimiter string that does not exist in confdefs.h, to ease
16773# handling of long lines.
16774ac_delim='%!_!# '
16775for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016776 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16777 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016778 break
16779 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016780 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016781 else
16782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16783 fi
16784done
16785
16786# For the awk script, D is an array of macro values keyed by name,
16787# likewise P contains macro parameters if any. Preserve backslash
16788# newline sequences.
16789
16790ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16791sed -n '
16792s/.\{148\}/&'"$ac_delim"'/g
16793t rset
16794:rset
16795s/^[ ]*#[ ]*define[ ][ ]*/ /
16796t def
16797d
16798:def
16799s/\\$//
16800t bsnl
16801s/["\\]/\\&/g
16802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16803D["\1"]=" \3"/p
16804s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16805d
16806:bsnl
16807s/["\\]/\\&/g
16808s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16809D["\1"]=" \3\\\\\\n"\\/p
16810t cont
16811s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16812t cont
16813d
16814:cont
16815n
16816s/.\{148\}/&'"$ac_delim"'/g
16817t clear
16818:clear
16819s/\\$//
16820t bsnlc
16821s/["\\]/\\&/g; s/^/"/; s/$/"/p
16822d
16823:bsnlc
16824s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16825b cont
16826' <confdefs.h | sed '
16827s/'"$ac_delim"'/"\\\
16828"/g' >>$CONFIG_STATUS || ac_write_fail=1
16829
16830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 for (key in D) D_is_set[key] = 1
16832 FS = ""
16833}
16834/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16835 line = \$ 0
16836 split(line, arg, " ")
16837 if (arg[1] == "#") {
16838 defundef = arg[2]
16839 mac1 = arg[3]
16840 } else {
16841 defundef = substr(arg[1], 2)
16842 mac1 = arg[2]
16843 }
16844 split(mac1, mac2, "(") #)
16845 macro = mac2[1]
16846 prefix = substr(line, 1, index(line, defundef) - 1)
16847 if (D_is_set[macro]) {
16848 # Preserve the white space surrounding the "#".
16849 print prefix "define", macro P[macro] D[macro]
16850 next
16851 } else {
16852 # Replace #undef with comments. This is necessary, for example,
16853 # in the case of _POSIX_SOURCE, which is predefined and required
16854 # on some systems where configure will not decide to define it.
16855 if (defundef == "undef") {
16856 print "/*", prefix defundef, macro, "*/"
16857 next
16858 }
16859 }
16860}
16861{ print }
16862_ACAWK
16863_ACEOF
16864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016865 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016866fi # test -n "$CONFIG_HEADERS"
16867
16868
16869eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16870shift
16871for ac_tag
16872do
16873 case $ac_tag in
16874 :[FHLC]) ac_mode=$ac_tag; continue;;
16875 esac
16876 case $ac_mode$ac_tag in
16877 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016878 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016879 :[FH]-) ac_tag=-:-;;
16880 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16881 esac
16882 ac_save_IFS=$IFS
16883 IFS=:
16884 set x $ac_tag
16885 IFS=$ac_save_IFS
16886 shift
16887 ac_file=$1
16888 shift
16889
16890 case $ac_mode in
16891 :L) ac_source=$1;;
16892 :[FH])
16893 ac_file_inputs=
16894 for ac_f
16895 do
16896 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000016897 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016898 *) # Look for the file first in the build tree, then in the source tree
16899 # (if the path is not absolute). The absolute path cannot be DOS-style,
16900 # because $ac_f cannot contain `:'.
16901 test -f "$ac_f" ||
16902 case $ac_f in
16903 [\\/$]*) false;;
16904 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16905 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000016906 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016907 esac
16908 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16909 as_fn_append ac_file_inputs " '$ac_f'"
16910 done
16911
16912 # Let's still pretend it is `configure' which instantiates (i.e., don't
16913 # use $as_me), people would be surprised to read:
16914 # /* config.h. Generated by config.status. */
16915 configure_input='Generated from '`
16916 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16917 `' by configure.'
16918 if test x"$ac_file" != x-; then
16919 configure_input="$ac_file. $configure_input"
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16921$as_echo "$as_me: creating $ac_file" >&6;}
16922 fi
16923 # Neutralize special characters interpreted by sed in replacement strings.
16924 case $configure_input in #(
16925 *\&* | *\|* | *\\* )
16926 ac_sed_conf_input=`$as_echo "$configure_input" |
16927 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16928 *) ac_sed_conf_input=$configure_input;;
16929 esac
16930
16931 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000016932 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016934 esac
16935 ;;
16936 esac
16937
16938 ac_dir=`$as_dirname -- "$ac_file" ||
16939$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16940 X"$ac_file" : 'X\(//\)[^/]' \| \
16941 X"$ac_file" : 'X\(//\)$' \| \
16942 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16943$as_echo X"$ac_file" |
16944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16945 s//\1/
16946 q
16947 }
16948 /^X\(\/\/\)[^/].*/{
16949 s//\1/
16950 q
16951 }
16952 /^X\(\/\/\)$/{
16953 s//\1/
16954 q
16955 }
16956 /^X\(\/\).*/{
16957 s//\1/
16958 q
16959 }
16960 s/.*/./; q'`
16961 as_dir="$ac_dir"; as_fn_mkdir_p
16962 ac_builddir=.
16963
16964case "$ac_dir" in
16965.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16966*)
16967 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16968 # A ".." for each directory in $ac_dir_suffix.
16969 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16970 case $ac_top_builddir_sub in
16971 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16972 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16973 esac ;;
16974esac
16975ac_abs_top_builddir=$ac_pwd
16976ac_abs_builddir=$ac_pwd$ac_dir_suffix
16977# for backward compatibility:
16978ac_top_builddir=$ac_top_build_prefix
16979
16980case $srcdir in
16981 .) # We are building in place.
16982 ac_srcdir=.
16983 ac_top_srcdir=$ac_top_builddir_sub
16984 ac_abs_top_srcdir=$ac_pwd ;;
16985 [\\/]* | ?:[\\/]* ) # Absolute name.
16986 ac_srcdir=$srcdir$ac_dir_suffix;
16987 ac_top_srcdir=$srcdir
16988 ac_abs_top_srcdir=$srcdir ;;
16989 *) # Relative name.
16990 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16991 ac_top_srcdir=$ac_top_build_prefix$srcdir
16992 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16993esac
16994ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16995
16996
16997 case $ac_mode in
16998 :F)
16999 #
17000 # CONFIG_FILE
17001 #
17002
17003 case $INSTALL in
17004 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17005 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17006 esac
17007 ac_MKDIR_P=$MKDIR_P
17008 case $MKDIR_P in
17009 [\\/$]* | ?:[\\/]* ) ;;
17010 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17011 esac
17012_ACEOF
17013
17014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17015# If the template does not know about datarootdir, expand it.
17016# FIXME: This hack should be removed a few years after 2.60.
17017ac_datarootdir_hack=; ac_datarootdir_seen=
17018ac_sed_dataroot='
17019/datarootdir/ {
17020 p
17021 q
17022}
17023/@datadir@/p
17024/@docdir@/p
17025/@infodir@/p
17026/@localedir@/p
17027/@mandir@/p'
17028case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17029*datarootdir*) ac_datarootdir_seen=yes;;
17030*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17032$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17033_ACEOF
17034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17035 ac_datarootdir_hack='
17036 s&@datadir@&$datadir&g
17037 s&@docdir@&$docdir&g
17038 s&@infodir@&$infodir&g
17039 s&@localedir@&$localedir&g
17040 s&@mandir@&$mandir&g
17041 s&\\\${datarootdir}&$datarootdir&g' ;;
17042esac
17043_ACEOF
17044
17045# Neutralize VPATH when `$srcdir' = `.'.
17046# Shell code in configure.ac might set extrasub.
17047# FIXME: do we really want to maintain this feature?
17048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049ac_sed_extra="$ac_vpsub
17050$extrasub
17051_ACEOF
17052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17053:t
17054/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17055s|@configure_input@|$ac_sed_conf_input|;t t
17056s&@top_builddir@&$ac_top_builddir_sub&;t t
17057s&@top_build_prefix@&$ac_top_build_prefix&;t t
17058s&@srcdir@&$ac_srcdir&;t t
17059s&@abs_srcdir@&$ac_abs_srcdir&;t t
17060s&@top_srcdir@&$ac_top_srcdir&;t t
17061s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17062s&@builddir@&$ac_builddir&;t t
17063s&@abs_builddir@&$ac_abs_builddir&;t t
17064s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17065s&@INSTALL@&$ac_INSTALL&;t t
17066s&@MKDIR_P@&$ac_MKDIR_P&;t t
17067$ac_datarootdir_hack
17068"
Rainer Orth0b6e3122019-02-14 17:47:49 +000017069eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17070if $ac_cs_awk_getline; then
17071 $AWK -f "$ac_tmp/subs.awk"
17072else
17073 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17074fi \
Joseph Myers22e05272018-10-31 17:03:16 +000017075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017076
17077test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000017078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000017081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017082which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017083$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017084which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017085
Joseph Myers22e05272018-10-31 17:03:16 +000017086 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000017087 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000017088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017090 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000017091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017092 ;;
17093 :H)
17094 #
17095 # CONFIG_HEADER
17096 #
17097 if test x"$ac_file" != x-; then
17098 {
17099 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17101 } >"$ac_tmp/config.h" \
17102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000017104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17105$as_echo "$as_me: $ac_file is unchanged" >&6;}
17106 else
17107 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017108 mv "$ac_tmp/config.h" "$ac_file" \
17109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017110 fi
17111 else
17112 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17114 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017115 fi
17116# Compute "$ac_file"'s index in $config_headers.
17117_am_arg="$ac_file"
17118_am_stamp_count=1
17119for _am_header in $config_headers :; do
17120 case $_am_header in
17121 $_am_arg | $_am_arg:* )
17122 break ;;
17123 * )
17124 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17125 esac
17126done
17127echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17128$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17129 X"$_am_arg" : 'X\(//\)[^/]' \| \
17130 X"$_am_arg" : 'X\(//\)$' \| \
17131 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17132$as_echo X"$_am_arg" |
17133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17134 s//\1/
17135 q
17136 }
17137 /^X\(\/\/\)[^/].*/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\/\)$/{
17142 s//\1/
17143 q
17144 }
17145 /^X\(\/\).*/{
17146 s//\1/
17147 q
17148 }
17149 s/.*/./; q'`/stamp-h$_am_stamp_count
17150 ;;
17151
17152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17153$as_echo "$as_me: executing $ac_file commands" >&6;}
17154 ;;
17155 esac
17156
17157
17158 case $ac_file$ac_mode in
17159 "default-1":C)
17160# Only add multilib support code if we just rebuilt the top-level
17161# Makefile.
17162case " $CONFIG_FILES " in
17163 *" Makefile "*)
17164 ac_file=Makefile . ${multi_basedir}/config-ml.in
17165 ;;
17166esac ;;
17167 "libtool":C)
17168
17169 # See if we are running on zsh, and set the options which allow our
17170 # commands through without removal of \ escapes.
17171 if test -n "${ZSH_VERSION+set}" ; then
17172 setopt NO_GLOB_SUBST
17173 fi
17174
17175 cfgfile="${ofile}T"
17176 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17177 $RM "$cfgfile"
17178
17179 cat <<_LT_EOF >> "$cfgfile"
17180#! $SHELL
17181
17182# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17183# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17185# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17186#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017187# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17188# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017189# Written by Gordon Matzigkeit, 1996
17190#
17191# This file is part of GNU Libtool.
17192#
17193# GNU Libtool is free software; you can redistribute it and/or
17194# modify it under the terms of the GNU General Public License as
17195# published by the Free Software Foundation; either version 2 of
17196# the License, or (at your option) any later version.
17197#
17198# As a special exception to the GNU General Public License,
17199# if you distribute this file as part of a program or library that
17200# is built using GNU Libtool, you may include this file under the
17201# same distribution terms that you use for the rest of that program.
17202#
17203# GNU Libtool is distributed in the hope that it will be useful,
17204# but WITHOUT ANY WARRANTY; without even the implied warranty of
17205# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17206# GNU General Public License for more details.
17207#
17208# You should have received a copy of the GNU General Public License
17209# along with GNU Libtool; see the file COPYING. If not, a copy
17210# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17211# obtained by writing to the Free Software Foundation, Inc.,
17212# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17213
17214
17215# The names of the tagged configurations supported by this script.
17216available_tags="D "
17217
17218# ### BEGIN LIBTOOL CONFIG
17219
17220# Which release of libtool.m4 was used?
17221macro_version=$macro_version
17222macro_revision=$macro_revision
17223
17224# Whether or not to build shared libraries.
17225build_libtool_libs=$enable_shared
17226
17227# Whether or not to build static libraries.
17228build_old_libs=$enable_static
17229
17230# What type of objects to build.
17231pic_mode=$pic_mode
17232
17233# Whether or not to optimize for fast installation.
17234fast_install=$enable_fast_install
17235
17236# Shell to use when invoking shell scripts.
17237SHELL=$lt_SHELL
17238
17239# An echo program that protects backslashes.
17240ECHO=$lt_ECHO
17241
17242# The host system.
17243host_alias=$host_alias
17244host=$host
17245host_os=$host_os
17246
17247# The build system.
17248build_alias=$build_alias
17249build=$build
17250build_os=$build_os
17251
17252# A sed program that does not truncate output.
17253SED=$lt_SED
17254
17255# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17256Xsed="\$SED -e 1s/^X//"
17257
17258# A grep program that handles long lines.
17259GREP=$lt_GREP
17260
17261# An ERE matcher.
17262EGREP=$lt_EGREP
17263
17264# A literal string matcher.
17265FGREP=$lt_FGREP
17266
17267# A BSD- or MS-compatible name lister.
17268NM=$lt_NM
17269
17270# Whether we need soft or hard links.
17271LN_S=$lt_LN_S
17272
17273# What is the maximum length of a command?
17274max_cmd_len=$max_cmd_len
17275
17276# Object file suffix (normally "o").
17277objext=$ac_objext
17278
17279# Executable file suffix (normally "").
17280exeext=$exeext
17281
17282# whether the shell understands "unset".
17283lt_unset=$lt_unset
17284
17285# turn spaces into newlines.
17286SP2NL=$lt_lt_SP2NL
17287
17288# turn newlines into spaces.
17289NL2SP=$lt_lt_NL2SP
17290
17291# An object symbol dumper.
17292OBJDUMP=$lt_OBJDUMP
17293
17294# Method to check whether dependent libraries are shared objects.
17295deplibs_check_method=$lt_deplibs_check_method
17296
17297# Command to use when deplibs_check_method == "file_magic".
17298file_magic_cmd=$lt_file_magic_cmd
17299
17300# The archiver.
17301AR=$lt_AR
17302AR_FLAGS=$lt_AR_FLAGS
17303
17304# A symbol stripping program.
17305STRIP=$lt_STRIP
17306
17307# Commands used to install an old-style archive.
17308RANLIB=$lt_RANLIB
17309old_postinstall_cmds=$lt_old_postinstall_cmds
17310old_postuninstall_cmds=$lt_old_postuninstall_cmds
17311
17312# Whether to use a lock for old archive extraction.
17313lock_old_archive_extraction=$lock_old_archive_extraction
17314
17315# A C compiler.
17316LTCC=$lt_CC
17317
17318# LTCC compiler flags.
17319LTCFLAGS=$lt_CFLAGS
17320
17321# Take the output of nm and produce a listing of raw symbols and C names.
17322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17323
17324# Transform the output of nm in a proper C declaration.
17325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17326
17327# Transform the output of nm in a C name address pair.
17328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17329
17330# Transform the output of nm in a C name address pair when lib prefix is needed.
17331global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17332
17333# The name of the directory that contains temporary libtool files.
17334objdir=$objdir
17335
17336# Used to examine libraries when file_magic_cmd begins with "file".
17337MAGIC_CMD=$MAGIC_CMD
17338
17339# Must we lock files when doing compilation?
17340need_locks=$lt_need_locks
17341
17342# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17343DSYMUTIL=$lt_DSYMUTIL
17344
17345# Tool to change global to local symbols on Mac OS X.
17346NMEDIT=$lt_NMEDIT
17347
17348# Tool to manipulate fat objects and archives on Mac OS X.
17349LIPO=$lt_LIPO
17350
17351# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17352OTOOL=$lt_OTOOL
17353
17354# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17355OTOOL64=$lt_OTOOL64
17356
17357# Old archive suffix (normally "a").
17358libext=$libext
17359
17360# Shared library suffix (normally ".so").
17361shrext_cmds=$lt_shrext_cmds
17362
17363# The commands to extract the exported symbol list from a shared archive.
17364extract_expsyms_cmds=$lt_extract_expsyms_cmds
17365
17366# Variables whose values should be saved in libtool wrapper scripts and
17367# restored at link time.
17368variables_saved_for_relink=$lt_variables_saved_for_relink
17369
17370# Do we need the "lib" prefix for modules?
17371need_lib_prefix=$need_lib_prefix
17372
17373# Do we need a version for libraries?
17374need_version=$need_version
17375
17376# Library versioning type.
17377version_type=$version_type
17378
17379# Shared library runtime path variable.
17380runpath_var=$runpath_var
17381
17382# Shared library path variable.
17383shlibpath_var=$shlibpath_var
17384
17385# Is shlibpath searched before the hard-coded library search path?
17386shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17387
17388# Format of library name prefix.
17389libname_spec=$lt_libname_spec
17390
17391# List of archive names. First name is the real one, the rest are links.
17392# The last name is the one that the linker finds with -lNAME
17393library_names_spec=$lt_library_names_spec
17394
17395# The coded name of the library, if different from the real name.
17396soname_spec=$lt_soname_spec
17397
17398# Permission mode override for installation of shared libraries.
17399install_override_mode=$lt_install_override_mode
17400
17401# Command to use after installation of a shared archive.
17402postinstall_cmds=$lt_postinstall_cmds
17403
17404# Command to use after uninstallation of a shared archive.
17405postuninstall_cmds=$lt_postuninstall_cmds
17406
17407# Commands used to finish a libtool library installation in a directory.
17408finish_cmds=$lt_finish_cmds
17409
17410# As "finish_cmds", except a single script fragment to be evaled but
17411# not shown.
17412finish_eval=$lt_finish_eval
17413
17414# Whether we should hardcode library paths into libraries.
17415hardcode_into_libs=$hardcode_into_libs
17416
17417# Compile-time system search path for libraries.
17418sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17419
17420# Run-time system search path for libraries.
17421sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17422
17423# Whether dlopen is supported.
17424dlopen_support=$enable_dlopen
17425
17426# Whether dlopen of programs is supported.
17427dlopen_self=$enable_dlopen_self
17428
17429# Whether dlopen of statically linked programs is supported.
17430dlopen_self_static=$enable_dlopen_self_static
17431
17432# Commands to strip libraries.
17433old_striplib=$lt_old_striplib
17434striplib=$lt_striplib
17435
17436
17437# The linker used to build libraries.
17438LD=$lt_LD
17439
17440# How to create reloadable object files.
17441reload_flag=$lt_reload_flag
17442reload_cmds=$lt_reload_cmds
17443
17444# Commands used to build an old-style archive.
17445old_archive_cmds=$lt_old_archive_cmds
17446
17447# A language specific compiler.
17448CC=$lt_compiler
17449
17450# Is the compiler the GNU compiler?
17451with_gcc=$GCC
17452
17453# Compiler flag to turn off builtin functions.
17454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17455
17456# How to pass a linker flag through the compiler.
17457wl=$lt_lt_prog_compiler_wl
17458
17459# Additional compiler flags for building library objects.
17460pic_flag=$lt_lt_prog_compiler_pic
17461
17462# Compiler flag to prevent dynamic linking.
17463link_static_flag=$lt_lt_prog_compiler_static
17464
17465# Does compiler simultaneously support -c and -o options?
17466compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17467
17468# Whether or not to add -lc for building shared libraries.
17469build_libtool_need_lc=$archive_cmds_need_lc
17470
17471# Whether or not to disallow shared libs when runtime libs are static.
17472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17473
17474# Compiler flag to allow reflexive dlopens.
17475export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17476
17477# Compiler flag to generate shared objects directly from archives.
17478whole_archive_flag_spec=$lt_whole_archive_flag_spec
17479
17480# Whether the compiler copes with passing no objects directly.
17481compiler_needs_object=$lt_compiler_needs_object
17482
17483# Create an old-style archive from a shared archive.
17484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17485
17486# Create a temporary old-style archive to link instead of a shared archive.
17487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17488
17489# Commands used to build a shared archive.
17490archive_cmds=$lt_archive_cmds
17491archive_expsym_cmds=$lt_archive_expsym_cmds
17492
17493# Commands used to build a loadable module if different from building
17494# a shared archive.
17495module_cmds=$lt_module_cmds
17496module_expsym_cmds=$lt_module_expsym_cmds
17497
17498# Whether we are building with GNU ld or not.
17499with_gnu_ld=$lt_with_gnu_ld
17500
17501# Flag that allows shared libraries with undefined symbols to be built.
17502allow_undefined_flag=$lt_allow_undefined_flag
17503
17504# Flag that enforces no undefined symbols.
17505no_undefined_flag=$lt_no_undefined_flag
17506
17507# Flag to hardcode \$libdir into a binary during linking.
17508# This must work even if \$libdir does not exist
17509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17510
17511# If ld is used when linking, flag to hardcode \$libdir into a binary
17512# during linking. This must work even if \$libdir does not exist.
17513hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17514
17515# Whether we need a single "-rpath" flag with a separated argument.
17516hardcode_libdir_separator=$lt_hardcode_libdir_separator
17517
17518# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17519# DIR into the resulting binary.
17520hardcode_direct=$hardcode_direct
17521
17522# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17523# DIR into the resulting binary and the resulting library dependency is
17524# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17525# library is relocated.
17526hardcode_direct_absolute=$hardcode_direct_absolute
17527
17528# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17529# into the resulting binary.
17530hardcode_minus_L=$hardcode_minus_L
17531
17532# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17533# into the resulting binary.
17534hardcode_shlibpath_var=$hardcode_shlibpath_var
17535
17536# Set to "yes" if building a shared library automatically hardcodes DIR
17537# into the library and all subsequent libraries and executables linked
17538# against it.
17539hardcode_automatic=$hardcode_automatic
17540
17541# Set to yes if linker adds runtime paths of dependent libraries
17542# to runtime path list.
17543inherit_rpath=$inherit_rpath
17544
17545# Whether libtool must link a program against all its dependency libraries.
17546link_all_deplibs=$link_all_deplibs
17547
17548# Fix the shell variable \$srcfile for the compiler.
17549fix_srcfile_path=$lt_fix_srcfile_path
17550
17551# Set to "yes" if exported symbols are required.
17552always_export_symbols=$always_export_symbols
17553
17554# The commands to list exported symbols.
17555export_symbols_cmds=$lt_export_symbols_cmds
17556
17557# Symbols that should not be listed in the preloaded symbols.
17558exclude_expsyms=$lt_exclude_expsyms
17559
17560# Symbols that must always be exported.
17561include_expsyms=$lt_include_expsyms
17562
17563# Commands necessary for linking programs (against libraries) with templates.
17564prelink_cmds=$lt_prelink_cmds
17565
17566# Specify filename containing input files.
17567file_list_spec=$lt_file_list_spec
17568
17569# How to hardcode a shared library path into an executable.
17570hardcode_action=$hardcode_action
17571
17572# ### END LIBTOOL CONFIG
17573
17574_LT_EOF
17575
17576 case $host_os in
17577 aix3*)
17578 cat <<\_LT_EOF >> "$cfgfile"
17579# AIX sometimes has problems with the GCC collect2 program. For some
17580# reason, if we set the COLLECT_NAMES environment variable, the problems
17581# vanish in a puff of smoke.
17582if test "X${COLLECT_NAMES+set}" != Xset; then
17583 COLLECT_NAMES=
17584 export COLLECT_NAMES
17585fi
17586_LT_EOF
17587 ;;
17588 esac
17589
17590
17591ltmain="$ac_aux_dir/ltmain.sh"
17592
17593
17594 # We use sed instead of cat because bash on DJGPP gets confused if
17595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17596 # text mode, it properly converts lines to CR/LF. This bash problem
17597 # is reportedly fixed, but why not run on old versions too?
17598 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17599 || (rm -f "$cfgfile"; exit 1)
17600
17601 case $xsi_shell in
17602 yes)
17603 cat << \_LT_EOF >> "$cfgfile"
17604
17605# func_dirname file append nondir_replacement
17606# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17607# otherwise set result to NONDIR_REPLACEMENT.
17608func_dirname ()
17609{
17610 case ${1} in
17611 */*) func_dirname_result="${1%/*}${2}" ;;
17612 * ) func_dirname_result="${3}" ;;
17613 esac
17614}
17615
17616# func_basename file
17617func_basename ()
17618{
17619 func_basename_result="${1##*/}"
17620}
17621
17622# func_dirname_and_basename file append nondir_replacement
17623# perform func_basename and func_dirname in a single function
17624# call:
17625# dirname: Compute the dirname of FILE. If nonempty,
17626# add APPEND to the result, otherwise set result
17627# to NONDIR_REPLACEMENT.
17628# value returned in "$func_dirname_result"
17629# basename: Compute filename of FILE.
17630# value retuned in "$func_basename_result"
17631# Implementation must be kept synchronized with func_dirname
17632# and func_basename. For efficiency, we do not delegate to
17633# those functions but instead duplicate the functionality here.
17634func_dirname_and_basename ()
17635{
17636 case ${1} in
17637 */*) func_dirname_result="${1%/*}${2}" ;;
17638 * ) func_dirname_result="${3}" ;;
17639 esac
17640 func_basename_result="${1##*/}"
17641}
17642
17643# func_stripname prefix suffix name
17644# strip PREFIX and SUFFIX off of NAME.
17645# PREFIX and SUFFIX must not contain globbing or regex special
17646# characters, hashes, percent signs, but SUFFIX may contain a leading
17647# dot (in which case that matches only a dot).
17648func_stripname ()
17649{
17650 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17651 # positional parameters, so assign one to ordinary parameter first.
17652 func_stripname_result=${3}
17653 func_stripname_result=${func_stripname_result#"${1}"}
17654 func_stripname_result=${func_stripname_result%"${2}"}
17655}
17656
17657# func_opt_split
17658func_opt_split ()
17659{
17660 func_opt_split_opt=${1%%=*}
17661 func_opt_split_arg=${1#*=}
17662}
17663
17664# func_lo2o object
17665func_lo2o ()
17666{
17667 case ${1} in
17668 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17669 *) func_lo2o_result=${1} ;;
17670 esac
17671}
17672
17673# func_xform libobj-or-source
17674func_xform ()
17675{
17676 func_xform_result=${1%.*}.lo
17677}
17678
17679# func_arith arithmetic-term...
17680func_arith ()
17681{
17682 func_arith_result=$(( $* ))
17683}
17684
17685# func_len string
17686# STRING may not start with a hyphen.
17687func_len ()
17688{
17689 func_len_result=${#1}
17690}
17691
17692_LT_EOF
17693 ;;
17694 *) # Bourne compatible functions.
17695 cat << \_LT_EOF >> "$cfgfile"
17696
17697# func_dirname file append nondir_replacement
17698# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17699# otherwise set result to NONDIR_REPLACEMENT.
17700func_dirname ()
17701{
17702 # Extract subdirectory from the argument.
17703 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17704 if test "X$func_dirname_result" = "X${1}"; then
17705 func_dirname_result="${3}"
17706 else
17707 func_dirname_result="$func_dirname_result${2}"
17708 fi
17709}
17710
17711# func_basename file
17712func_basename ()
17713{
17714 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17715}
17716
17717
17718# func_stripname prefix suffix name
17719# strip PREFIX and SUFFIX off of NAME.
17720# PREFIX and SUFFIX must not contain globbing or regex special
17721# characters, hashes, percent signs, but SUFFIX may contain a leading
17722# dot (in which case that matches only a dot).
17723# func_strip_suffix prefix name
17724func_stripname ()
17725{
17726 case ${2} in
17727 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17728 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17729 esac
17730}
17731
17732# sed scripts:
17733my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17734my_sed_long_arg='1s/^-[^=]*=//'
17735
17736# func_opt_split
17737func_opt_split ()
17738{
17739 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17740 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17741}
17742
17743# func_lo2o object
17744func_lo2o ()
17745{
17746 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17747}
17748
17749# func_xform libobj-or-source
17750func_xform ()
17751{
17752 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17753}
17754
17755# func_arith arithmetic-term...
17756func_arith ()
17757{
17758 func_arith_result=`expr "$@"`
17759}
17760
17761# func_len string
17762# STRING may not start with a hyphen.
17763func_len ()
17764{
17765 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17766}
17767
17768_LT_EOF
17769esac
17770
17771case $lt_shell_append in
17772 yes)
17773 cat << \_LT_EOF >> "$cfgfile"
17774
17775# func_append var value
17776# Append VALUE to the end of shell variable VAR.
17777func_append ()
17778{
17779 eval "$1+=\$2"
17780}
17781_LT_EOF
17782 ;;
17783 *)
17784 cat << \_LT_EOF >> "$cfgfile"
17785
17786# func_append var value
17787# Append VALUE to the end of shell variable VAR.
17788func_append ()
17789{
17790 eval "$1=\$$1\$2"
17791}
17792
17793_LT_EOF
17794 ;;
17795 esac
17796
17797
17798 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17799 || (rm -f "$cfgfile"; exit 1)
17800
17801 mv -f "$cfgfile" "$ofile" ||
17802 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17803 chmod +x "$ofile"
17804
17805
17806 cat <<_LT_EOF >> "$ofile"
17807
17808# ### BEGIN LIBTOOL TAG CONFIG: D
17809
17810# The linker used to build libraries.
17811LD=$lt_LD_D
17812
17813# How to create reloadable object files.
17814reload_flag=$lt_reload_flag_D
17815reload_cmds=$lt_reload_cmds_D
17816
17817# Commands used to build an old-style archive.
17818old_archive_cmds=$lt_old_archive_cmds_D
17819
17820# A language specific compiler.
17821CC=$lt_compiler_D
17822
17823# Is the compiler the GNU compiler?
17824with_gcc=$GCC_D
17825
17826# Compiler flag to turn off builtin functions.
17827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17828
17829# How to pass a linker flag through the compiler.
17830wl=$lt_lt_prog_compiler_wl_D
17831
17832# Additional compiler flags for building library objects.
17833pic_flag=$lt_lt_prog_compiler_pic_D
17834
17835# Compiler flag to prevent dynamic linking.
17836link_static_flag=$lt_lt_prog_compiler_static_D
17837
17838# Does compiler simultaneously support -c and -o options?
17839compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17840
17841# Whether or not to add -lc for building shared libraries.
17842build_libtool_need_lc=$archive_cmds_need_lc_D
17843
17844# Whether or not to disallow shared libs when runtime libs are static.
17845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17846
17847# Compiler flag to allow reflexive dlopens.
17848export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17849
17850# Compiler flag to generate shared objects directly from archives.
17851whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17852
17853# Whether the compiler copes with passing no objects directly.
17854compiler_needs_object=$lt_compiler_needs_object_D
17855
17856# Create an old-style archive from a shared archive.
17857old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17858
17859# Create a temporary old-style archive to link instead of a shared archive.
17860old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17861
17862# Commands used to build a shared archive.
17863archive_cmds=$lt_archive_cmds_D
17864archive_expsym_cmds=$lt_archive_expsym_cmds_D
17865
17866# Commands used to build a loadable module if different from building
17867# a shared archive.
17868module_cmds=$lt_module_cmds_D
17869module_expsym_cmds=$lt_module_expsym_cmds_D
17870
17871# Whether we are building with GNU ld or not.
17872with_gnu_ld=$lt_with_gnu_ld_D
17873
17874# Flag that allows shared libraries with undefined symbols to be built.
17875allow_undefined_flag=$lt_allow_undefined_flag_D
17876
17877# Flag that enforces no undefined symbols.
17878no_undefined_flag=$lt_no_undefined_flag_D
17879
17880# Flag to hardcode \$libdir into a binary during linking.
17881# This must work even if \$libdir does not exist
17882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17883
17884# If ld is used when linking, flag to hardcode \$libdir into a binary
17885# during linking. This must work even if \$libdir does not exist.
17886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17887
17888# Whether we need a single "-rpath" flag with a separated argument.
17889hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17890
17891# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17892# DIR into the resulting binary.
17893hardcode_direct=$hardcode_direct_D
17894
17895# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17896# DIR into the resulting binary and the resulting library dependency is
17897# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17898# library is relocated.
17899hardcode_direct_absolute=$hardcode_direct_absolute_D
17900
17901# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17902# into the resulting binary.
17903hardcode_minus_L=$hardcode_minus_L_D
17904
17905# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17906# into the resulting binary.
17907hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17908
17909# Set to "yes" if building a shared library automatically hardcodes DIR
17910# into the library and all subsequent libraries and executables linked
17911# against it.
17912hardcode_automatic=$hardcode_automatic_D
17913
17914# Set to yes if linker adds runtime paths of dependent libraries
17915# to runtime path list.
17916inherit_rpath=$inherit_rpath_D
17917
17918# Whether libtool must link a program against all its dependency libraries.
17919link_all_deplibs=$link_all_deplibs_D
17920
17921# Fix the shell variable \$srcfile for the compiler.
17922fix_srcfile_path=$lt_fix_srcfile_path_D
17923
17924# Set to "yes" if exported symbols are required.
17925always_export_symbols=$always_export_symbols_D
17926
17927# The commands to list exported symbols.
17928export_symbols_cmds=$lt_export_symbols_cmds_D
17929
17930# Symbols that should not be listed in the preloaded symbols.
17931exclude_expsyms=$lt_exclude_expsyms_D
17932
17933# Symbols that must always be exported.
17934include_expsyms=$lt_include_expsyms_D
17935
17936# Commands necessary for linking programs (against libraries) with templates.
17937prelink_cmds=$lt_prelink_cmds_D
17938
17939# Specify filename containing input files.
17940file_list_spec=$lt_file_list_spec_D
17941
17942# How to hardcode a shared library path into an executable.
17943hardcode_action=$hardcode_action_D
17944
17945# ### END LIBTOOL TAG CONFIG: D
17946_LT_EOF
17947
17948 ;;
17949 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000017950 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17951s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000017952_EOF
Iain Buclawac677522018-11-02 08:29:50 +000017953 sed -f vpsed$$ $ac_file > tmp$$
17954 mv tmp$$ $ac_file
17955 rm vpsed$$
17956 echo 'MULTISUBDIR =' >> $ac_file
17957 ml_norecursion=yes
17958 . ${multi_basedir}/config-ml.in
17959 { ml_norecursion=; unset ml_norecursion;}
17960 ;;
17961 "src/Makefile":F) cat > vpsed$$ << \_EOF
17962s!`test -f '$<' || echo '$(srcdir)/'`!!
17963_EOF
17964 sed -f vpsed$$ $ac_file > tmp$$
17965 mv tmp$$ $ac_file
17966 rm vpsed$$
17967 echo 'MULTISUBDIR =' >> $ac_file
17968 ml_norecursion=yes
17969 . ${multi_basedir}/config-ml.in
17970 { ml_norecursion=; unset ml_norecursion;}
17971 ;;
17972 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17973s!`test -f '$<' || echo '$(srcdir)/'`!!
17974_EOF
17975 sed -f vpsed$$ $ac_file > tmp$$
17976 mv tmp$$ $ac_file
17977 rm vpsed$$
17978 echo 'MULTISUBDIR =' >> $ac_file
17979 ml_norecursion=yes
17980 . ${multi_basedir}/config-ml.in
17981 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017982 ;;
17983
17984 esac
17985done # for ac_tag
17986
17987
17988as_fn_exit 0
17989_ACEOF
17990ac_clean_files=$ac_clean_files_save
17991
17992test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000017993 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017994
17995
17996# configure is writing to config.log, and then calls config.status.
17997# config.status does its own redirection, appending to config.log.
17998# Unfortunately, on DOS this fails, as config.log is still kept open
17999# by configure, so config.status won't be able to write to it; its
18000# output is simply discarded. So we exec the FD to /dev/null,
18001# effectively closing config.log, so it can be properly (re)opened and
18002# appended to by config.status. When coming back to configure, we
18003# need to make the FD available again.
18004if test "$no_create" != yes; then
18005 ac_cs_success=:
18006 ac_config_status_args=
18007 test "$silent" = yes &&
18008 ac_config_status_args="$ac_config_status_args --quiet"
18009 exec 5>/dev/null
18010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18011 exec 5>>config.log
18012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18013 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000018014 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000018015fi
18016if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18018$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18019fi
18020