blob: 06b5d0047c5f7e50dd35e036596a5f2d38d4ce29 [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
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200640CHECKING_DFLAGS
Iain Buclaw261bd782020-03-25 09:38:58 +0100641ENABLE_LIBDRUNTIME_ONLY_FALSE
642ENABLE_LIBDRUNTIME_ONLY_TRUE
Rainer Orthbca0a322019-05-07 10:38:45 +0000643ENABLE_LIBPHOBOS_FALSE
644ENABLE_LIBPHOBOS_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000645gdc_include_dir
Iain Buclawac677522018-11-02 08:29:50 +0000646libphobos_toolexeclibdir
647libphobos_toolexecdir
Iain Buclawb4c522f2018-10-28 19:51:47 +0000648gcc_version
Iain Buclawbb503122019-04-12 20:13:34 +0000649LIBZ
Iain Buclawb4c522f2018-10-28 19:51:47 +0000650BACKTRACE_SUPPORTS_THREADS
651BACKTRACE_USES_MALLOC
652BACKTRACE_SUPPORTED
653LIBBACKTRACE
654LIBATOMIC
655DCFG_HAVE_LIBATOMIC
656DCFG_HAVE_64BIT_ATOMICS
657DCFG_HAVE_ATOMIC_BUILTINS
Johannes Pfau36d7f152019-02-18 23:29:39 +0000658DCFG_HAVE_QSORT_R
Rainer Orthba838aa2019-04-14 09:24:26 +0000659OS_LINK_SPEC
Rainer Orth235d1c42019-04-14 09:30:42 +0000660DCFG_DLPI_TLS_MODID
Rainer Orth0b6e3122019-02-14 17:47:49 +0000661DRUNTIME_OS_MINFO_BRACKETING_FALSE
662DRUNTIME_OS_MINFO_BRACKETING_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000663DCFG_MINFO_BRACKETING
664DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
665DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
666DCFG_ARM_EABI_UNWINDER
667DCFG_THREAD_MODEL
Iain Buclaw72c136c2020-04-08 22:52:05 +0200668DRUNTIME_OS_POSIX_FALSE
669DRUNTIME_OS_POSIX_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000670DRUNTIME_OS_SOLARIS_FALSE
671DRUNTIME_OS_SOLARIS_TRUE
672DRUNTIME_OS_MINGW_FALSE
673DRUNTIME_OS_MINGW_TRUE
674DRUNTIME_OS_LINUX_FALSE
675DRUNTIME_OS_LINUX_TRUE
676DRUNTIME_OS_OPENBSD_FALSE
677DRUNTIME_OS_OPENBSD_TRUE
678DRUNTIME_OS_NETBSD_FALSE
679DRUNTIME_OS_NETBSD_TRUE
680DRUNTIME_OS_FREEBSD_FALSE
681DRUNTIME_OS_FREEBSD_TRUE
682DRUNTIME_OS_DRAGONFLYBSD_FALSE
683DRUNTIME_OS_DRAGONFLYBSD_TRUE
684DRUNTIME_OS_DARWIN_FALSE
685DRUNTIME_OS_DARWIN_TRUE
686DRUNTIME_OS_ANDROID_FALSE
687DRUNTIME_OS_ANDROID_TRUE
688DRUNTIME_OS_AIX_FALSE
689DRUNTIME_OS_AIX_TRUE
Robin Dapp88e508f2020-04-07 21:05:38 +0200690DRUNTIME_CPU_S390_FALSE
691DRUNTIME_CPU_S390_TRUE
692DRUNTIME_CPU_SYSTEMZ_FALSE
693DRUNTIME_CPU_SYSTEMZ_TRUE
Iain Buclaw2493e712019-04-24 22:46:59 +0000694DRUNTIME_CPU_X86_FALSE
695DRUNTIME_CPU_X86_TRUE
696DRUNTIME_CPU_POWERPC64_FALSE
697DRUNTIME_CPU_POWERPC64_TRUE
698DRUNTIME_CPU_POWERPC_FALSE
699DRUNTIME_CPU_POWERPC_TRUE
700DRUNTIME_CPU_MIPS_FALSE
701DRUNTIME_CPU_MIPS_TRUE
702DRUNTIME_CPU_ARM_FALSE
703DRUNTIME_CPU_ARM_TRUE
704DRUNTIME_CPU_AARCH64_FALSE
705DRUNTIME_CPU_AARCH64_TRUE
Iain Buclawb4c522f2018-10-28 19:51:47 +0000706libphobos_srcdir
707libphobos_builddir
708get_gcc_base_ver
709phobos_compiler_shared_flag
710phobos_compiler_pic_flag
Iain Buclawb4c522f2018-10-28 19:51:47 +0000711OTOOL64
712OTOOL
713LIPO
714NMEDIT
715DSYMUTIL
716OBJDUMP
717LN_S
718NM
719ac_ct_DUMPBIN
720DUMPBIN
721LD
722FGREP
Iain Buclawb4c522f2018-10-28 19:51:47 +0000723SED
724LIBTOOL
725CFLAGS_FOR_BUILD
726CC_FOR_BUILD
727AR
728RANLIB
729MAINT
730MAINTAINER_MODE_FALSE
731MAINTAINER_MODE_TRUE
732GDCFLAGS
733GDC
734CCASFLAGS
735CCAS
Joseph Myers22e05272018-10-31 17:03:16 +0000736AM_BACKSLASH
737AM_DEFAULT_VERBOSITY
738AM_DEFAULT_V
739AM_V
Iain Buclawb4c522f2018-10-28 19:51:47 +0000740am__untar
741am__tar
742AMTAR
743am__leading_dot
744SET_MAKE
745AWK
746mkdir_p
747MKDIR_P
748INSTALL_STRIP_PROGRAM
749STRIP
750install_sh
751MAKEINFO
752AUTOHEADER
753AUTOMAKE
754AUTOCONF
755ACLOCAL
756VERSION
757PACKAGE
758CYGPATH_W
759am__isrc
760INSTALL_DATA
761INSTALL_SCRIPT
762INSTALL_PROGRAM
Rainer Orth235d1c42019-04-14 09:30:42 +0000763EGREP
764GREP
765CPP
766OBJEXT
767EXEEXT
768ac_ct_CC
769CPPFLAGS
770LDFLAGS
771CFLAGS
772CC
Iain Buclawb4c522f2018-10-28 19:51:47 +0000773target_os
774target_vendor
775target_cpu
776target
777host_os
778host_vendor
779host_cpu
780host
781build_os
782build_vendor
783build_cpu
784build
785multi_basedir
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805localstatedir
806sharedstatedir
807sysconfdir
808datadir
809datarootdir
810libexecdir
811sbindir
812bindir
813program_transform_name
814prefix
815exec_prefix
816PACKAGE_URL
817PACKAGE_BUGREPORT
818PACKAGE_STRING
819PACKAGE_VERSION
820PACKAGE_TARNAME
821PACKAGE_NAME
822PATH_SEPARATOR
823SHELL'
Rainer Orth0b6e3122019-02-14 17:47:49 +0000824ac_subst_files='DRTSTUFF_SPEC'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000825ac_user_opts='
826enable_option_checking
827enable_multilib
Joseph Myers22e05272018-10-31 17:03:16 +0000828enable_silent_rules
Iain Buclawb4c522f2018-10-28 19:51:47 +0000829enable_maintainer_mode
830enable_shared
831enable_static
832with_pic
833enable_fast_install
834with_gnu_ld
835enable_libtool_lock
836with_gcc_major_version_only
837enable_werror
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 Buclaw371d1012020-04-20 18:50:36 +0200845with_libphobos_druntime_only
Iain Buclawc0dbfbd2020-04-09 00:41:14 +0200846enable_libphobos_checking
Iain Buclawb4c522f2018-10-28 19:51:47 +0000847'
848 ac_precious_vars='build_alias
849host_alias
850target_alias
Rainer Orth235d1c42019-04-14 09:30:42 +0000851CC
852CFLAGS
853LDFLAGS
854LIBS
855CPPFLAGS
856CPP'
Iain Buclawb4c522f2018-10-28 19:51:47 +0000857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
Joseph Myers22e05272018-10-31 17:03:16 +0000919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +0000922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000966 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +0000992 as_fn_error $? "invalid feature name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +0000993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001196 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Joseph Myers22e05272018-10-31 17:03:16 +00001212 as_fn_error $? "invalid package name: $ac_useropt"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
Joseph Myers22e05272018-10-31 17:03:16 +00001242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
Joseph Myers22e05272018-10-31 17:03:16 +00001251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Joseph Myers22e05272018-10-31 17:03:16 +00001261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00001269 as_fn_error $? "missing argument to $ac_option"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00001275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00001276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Iain Buclawd8b1f492019-02-10 22:10:22 +00001284 libdir localedir mandir
Iain Buclawb4c522f2018-10-28 19:51:47 +00001285do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
Joseph Myers22e05272018-10-31 17:03:16 +00001298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
Iain Buclawb4c522f2018-10-28 19:51:47 +00001312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Joseph Myers22e05272018-10-31 17:03:16 +00001326 as_fn_error $? "working directory cannot be determined"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Joseph Myers22e05272018-10-31 17:03:16 +00001328 as_fn_error $? "pwd does not report name of working directory"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Joseph Myers22e05272018-10-31 17:03:16 +00001367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
Joseph Myers22e05272018-10-31 17:03:16 +00001371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Iain Buclawb4c522f2018-10-28 19:51:47 +00001372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
Joseph Myers22e05272018-10-31 17:03:16 +00001411 -q, --quiet, --silent do not print \`checking ...' messages
Iain Buclawb4c522f2018-10-28 19:51:47 +00001412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of package-unused version-unused:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-multilib build many library versions (default)
Joseph Myers22e05272018-10-31 17:03:16 +00001477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
Iain Buclawb4c522f2018-10-28 19:51:47 +00001482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-werror turns on -Werror [default=no]
Iain Buclawac677522018-11-02 08:29:50 +00001488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
Rainer Orthbca0a322019-05-07 10:38:45 +00001491 --enable-libphobos Enable libphobos
Iain Buclawc0dbfbd2020-04-09 00:41:14 +02001492 --enable-libphobos-checking[=LIST]
1493 enable expensive run-time checks. With LIST, enable
1494 only specific categories of checks. Categories are:
1495 yes,no,all,none,release. Flags are: assert or other
1496 strings
Iain Buclawb4c522f2018-10-28 19:51:47 +00001497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-gcc-major-version-only
1505 use only GCC major number in filesystem paths
1506 --without-libatomic Do not use libatomic in core.atomic (default: auto)
1507 --without-libbacktrace Do not use libbacktrace in core.runtime (default:
1508 auto)
Iain Buclawbb503122019-04-12 20:13:34 +00001509 --with-target-system-zlib={yes,no,auto}
Iain Buclawb4c522f2018-10-28 19:51:47 +00001510 use installed libz (default: no)
1511 --with-cross-host=HOST configuring with a cross compiler
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +00001512 --with-toolexeclibdir=DIR
1513 install libraries built with a cross compiler within
1514 DIR
Iain Buclaw261bd782020-03-25 09:38:58 +01001515 --with-libphobos-druntime-only={yes,no,auto}
1516 build only the druntime library (default: auto)
Iain Buclawb4c522f2018-10-28 19:51:47 +00001517
1518Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
Joseph Myers22e05272018-10-31 17:03:16 +00001524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Iain Buclawb4c522f2018-10-28 19:51:47 +00001525 you have headers in a nonstandard directory <include dir>
Rainer Orth235d1c42019-04-14 09:30:42 +00001526 CPP C preprocessor
Iain Buclawb4c522f2018-10-28 19:51:47 +00001527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 GDC D compiler command
1530 GDCFLAGS D compiler flags
Iain Buclawb4c522f2018-10-28 19:51:47 +00001531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
1535Report bugs to the package provider.
1536_ACEOF
1537ac_status=$?
1538fi
1539
1540if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1547
1548case "$ac_dir" in
1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550*)
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558esac
1559ac_abs_top_builddir=$ac_pwd
1560ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561# for backward compatibility:
1562ac_top_builddir=$ac_top_build_prefix
1563
1564case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577esac
1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1593fi
1594
1595test -n "$ac_init_help" && exit $ac_status
1596if $ac_init_version; then
1597 cat <<\_ACEOF
1598package-unused configure version-unused
Joseph Myers22e05272018-10-31 17:03:16 +00001599generated by GNU Autoconf 2.69
Iain Buclawb4c522f2018-10-28 19:51:47 +00001600
Rainer Orth0b6e3122019-02-14 17:47:49 +00001601Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +00001602This configure script is free software; the Free Software Foundation
1603gives unlimited permission to copy, distribute and modify it.
1604_ACEOF
1605 exit
1606fi
1607
1608## ------------------------ ##
1609## Autoconf initialization. ##
1610## ------------------------ ##
1611
1612# ac_fn_c_try_compile LINENO
1613# --------------------------
1614# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_compile ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639else
1640 $as_echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644fi
Joseph Myers22e05272018-10-31 17:03:16 +00001645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001647
1648} # ac_fn_c_try_compile
1649
Iain Buclawb4c522f2018-10-28 19:51:47 +00001650# ac_fn_c_try_cpp LINENO
1651# ----------------------
1652# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_cpp ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00001671 test $ac_status = 0; } > conftest.i && {
Iain Buclawb4c522f2018-10-28 19:51:47 +00001672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 }; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681fi
Joseph Myers22e05272018-10-31 17:03:16 +00001682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
Iain Buclawb4c522f2018-10-28 19:51:47 +00001684
1685} # ac_fn_c_try_cpp
1686
Iain Buclawb4c522f2018-10-28 19:51:47 +00001687# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1688# -------------------------------------------------------
1689# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690# the include files in INCLUDES and setting the cache variable VAR
1691# accordingly.
1692ac_fn_c_check_header_mongrel ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Joseph Myers22e05272018-10-31 17:03:16 +00001695 if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001698if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001699 $as_echo_n "(cached) " >&6
1700fi
1701eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704else
1705 # Is the header compilable?
1706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707$as_echo_n "checking $2 usability... " >&6; }
1708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h. */
1710$4
1711#include <$2>
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_header_compiler=yes
1715else
1716 ac_header_compiler=no
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720$as_echo "$ac_header_compiler" >&6; }
1721
1722# Is the header present?
1723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724$as_echo_n "checking $2 presence... " >&6; }
1725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726/* end confdefs.h. */
1727#include <$2>
1728_ACEOF
1729if ac_fn_c_try_cpp "$LINENO"; then :
1730 ac_header_preproc=yes
1731else
1732 ac_header_preproc=no
1733fi
Joseph Myers22e05272018-10-31 17:03:16 +00001734rm -f conftest.err conftest.i conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +00001735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736$as_echo "$ac_header_preproc" >&6; }
1737
1738# So? What about this header?
1739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1740 yes:no: )
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 ;;
1746 no:yes:* )
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1750$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1754$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 ;;
1758esac
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00001761if eval \${$3+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00001762 $as_echo_n "(cached) " >&6
1763else
1764 eval "$3=\$ac_header_compiler"
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769fi
Joseph Myers22e05272018-10-31 17:03:16 +00001770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Iain Buclawb4c522f2018-10-28 19:51:47 +00001771
1772} # ac_fn_c_check_header_mongrel
Rainer Orth235d1c42019-04-14 09:30:42 +00001773
1774# ac_fn_c_try_run LINENO
1775# ----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777# that executables *can* be run.
1778ac_fn_c_try_run ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=$ac_status
1809fi
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814} # ac_fn_c_try_run
1815
1816# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817# -------------------------------------------------------
1818# Tests whether HEADER exists and can be compiled using the include files in
1819# INCLUDES, setting the cache variable VAR accordingly.
1820ac_fn_c_check_header_compile ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
1825if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827else
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830$4
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834 eval "$3=yes"
1835else
1836 eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_check_header_compile
1846
1847# ac_fn_d_try_compile LINENO
1848# --------------------------
1849# Try to compile conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_d_try_compile ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_d_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1
1879fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883} # ac_fn_d_try_compile
1884
1885# ac_fn_c_try_link LINENO
1886# -----------------------
1887# Try to link conftest.$ac_ext, and return whether this succeeded.
1888ac_fn_c_try_link ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1893case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1913 }; then :
1914 ac_retval=0
1915else
1916 $as_echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=1
1920fi
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_link
1930
1931# ac_fn_c_check_func LINENO FUNC VAR
1932# ----------------------------------
1933# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934ac_fn_c_check_func ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946#define $2 innocuous_$2
1947
1948/* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1952
1953#ifdef __STDC__
1954# include <limits.h>
1955#else
1956# include <assert.h>
1957#endif
1958
1959#undef $2
1960
1961/* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1964#ifdef __cplusplus
1965extern "C"
1966#endif
1967char $2 ();
1968/* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971#if defined __stub_$2 || defined __stub___$2
1972choke me
1973#endif
1974
1975int
1976main ()
1977{
1978return $2 ();
1979 ;
1980 return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_link "$LINENO"; then :
1984 eval "$3=yes"
1985else
1986 eval "$3=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1990fi
1991eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_func
1997
1998# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999# ----------------------------------------------------
2000# Tries to find if the field MEMBER exists in type AGGR, after including
2001# INCLUDES, setting cache variable VAR accordingly.
2002ac_fn_c_check_member ()
2003{
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006$as_echo_n "checking for $2.$3... " >&6; }
2007if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$5
2013int
2014main ()
2015{
2016static $2 ac_aggr;
2017if (ac_aggr.$3)
2018return 0;
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$5
2029int
2030main ()
2031{
2032static $2 ac_aggr;
2033if (sizeof ac_aggr.$3)
2034return 0;
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041else
2042 eval "$4=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053} # ac_fn_c_check_member
2054
2055# ac_fn_d_try_link LINENO
2056# -----------------------
2057# Try to link conftest.$ac_ext, and return whether this succeeded.
2058ac_fn_d_try_link ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2063case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_d_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest$ac_exeext && {
2081 test "$cross_compiling" = yes ||
2082 test -x conftest$ac_exeext
2083 }; then :
2084 ac_retval=0
2085else
2086 $as_echo "$as_me: failed program was:" >&5
2087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 ac_retval=1
2090fi
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2098
2099} # ac_fn_d_try_link
Iain Buclawb4c522f2018-10-28 19:51:47 +00002100cat >config.log <<_ACEOF
2101This file contains any messages produced by compilers while
2102running configure, to aid debugging if configure makes a mistake.
2103
2104It was created by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +00002105generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +00002106
2107 $ $0 $@
2108
2109_ACEOF
2110exec 5>>config.log
2111{
2112cat <<_ASUNAME
2113## --------- ##
2114## Platform. ##
2115## --------- ##
2116
2117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134_ASUNAME
2135
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2142 done
2143IFS=$as_save_IFS
2144
2145} >&5
2146
2147cat >&5 <<_ACEOF
2148
2149
2150## ----------- ##
2151## Core tests. ##
2152## ----------- ##
2153
2154_ACEOF
2155
2156
2157# Keep a trace of the command line.
2158# Strip out --no-create and --no-recursion so they do not pile up.
2159# Strip out --silent because we don't want to record it for future runs.
2160# Also quote any args containing shell meta-characters.
2161# Make two passes to allow for proper duplicate-argument suppression.
2162ac_configure_args=
2163ac_configure_args0=
2164ac_configure_args1=
2165ac_must_keep_next=false
2166for ac_pass in 1 2
2167do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201done
2202{ ac_configure_args0=; unset ac_configure_args0;}
2203{ ac_configure_args1=; unset ac_configure_args1;}
2204
2205# When interrupted or exit'd, cleanup temporary files, and complete
2206# config.log. We remove comments because anyway the quotes in there
2207# would cause problems or look ugly.
2208# WARNING: Use '\'' to represent an apostrophe within the trap.
2209# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2212 {
2213 echo
2214
Joseph Myers22e05272018-10-31 17:03:16 +00002215 $as_echo "## ---------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002216## Cache variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002217## ---------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2220(
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2243 *)
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248)
2249 echo
2250
Joseph Myers22e05272018-10-31 17:03:16 +00002251 $as_echo "## ----------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002252## Output variables. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002253## ----------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002266 $as_echo "## ------------------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002267## File substitutions. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002268## ------------------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002269 echo
2270 for ac_var in $ac_subst_files
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279 fi
2280
2281 if test -s confdefs.h; then
Joseph Myers22e05272018-10-31 17:03:16 +00002282 $as_echo "## ----------- ##
Iain Buclawb4c522f2018-10-28 19:51:47 +00002283## confdefs.h. ##
Joseph Myers22e05272018-10-31 17:03:16 +00002284## ----------- ##"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296' 0
2297for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299done
2300ac_signal=0
2301
2302# confdefs.h avoids OS command line length limits that DEFS can exceed.
2303rm -f -r conftest* confdefs.h
2304
2305$as_echo "/* confdefs.h */" > confdefs.h
2306
2307# Predefined preprocessor variables.
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_NAME "$PACKAGE_NAME"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_VERSION "$PACKAGE_VERSION"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_STRING "$PACKAGE_STRING"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_URL "$PACKAGE_URL"
2331_ACEOF
2332
2333
2334# Let the site file select an alternate cache file if it wants to.
2335# Prefer an explicitly selected file to automatically selected ones.
2336ac_site_file1=NONE
2337ac_site_file2=NONE
2338if test -n "$CONFIG_SITE"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1=./$CONFIG_SITE;;
2342 */*) ac_site_file1=$CONFIG_SITE;;
2343 *) ac_site_file1=./$CONFIG_SITE;;
2344 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +00002345elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351fi
2352for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353do
2354 test "x$ac_site_file" = xNONE && continue
Joseph Myers22e05272018-10-31 17:03:16 +00002355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
Joseph Myers22e05272018-10-31 17:03:16 +00002359 . "$ac_site_file" \
2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362as_fn_error $? "failed to load site script $ac_site_file
2363See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002364 fi
2365done
2366
2367if test -r "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372$as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2377 fi
2378else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380$as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2382fi
2383
2384# Check that the precious variables saved in the cache have kept the same
2385# value.
2386ac_cache_corrupted=false
2387for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2402 *)
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2415 fi
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2432 fi
2433done
2434if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002440fi
2441## -------------------- ##
2442## Main body of script. ##
2443## -------------------- ##
2444
2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451
2452
2453
2454
2455
2456ac_config_headers="$ac_config_headers config.h"
2457
2458
2459# Default to --enable-multilib
2460# Check whether --enable-multilib was given.
2461if test "${enable_multilib+set}" = set; then :
2462 enableval=$enable_multilib; case "$enableval" in
2463 yes) multilib=yes ;;
2464 no) multilib=no ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002465 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002466 esac
2467else
2468 multilib=yes
2469fi
2470
2471
2472# We may get other options which we leave undocumented:
2473# --with-target-subdir, --with-multisrctop, --with-multisubdir
2474# See config-ml.in if you want the gory details.
2475
2476if test "$srcdir" = "."; then
2477 if test "$with_target_subdir" != "."; then
2478 multi_basedir="$srcdir/$with_multisrctop../.."
2479 else
2480 multi_basedir="$srcdir/$with_multisrctop.."
2481 fi
2482else
2483 multi_basedir="$srcdir/.."
2484fi
2485
2486
2487# Even if the default multilib is not a cross compilation,
2488# it may be that some of the other multilibs are.
2489if test $cross_compiling = no && test $multilib = yes \
2490 && test "x${with_multisubdir}" != x ; then
2491 cross_compiling=maybe
2492fi
2493
2494ac_config_commands="$ac_config_commands default-1"
2495
2496ac_aux_dir=
2497for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Joseph Myers22e05272018-10-31 17:03:16 +00002498 if test -f "$ac_dir/install-sh"; then
2499 ac_aux_dir=$ac_dir
2500 ac_install_sh="$ac_aux_dir/install-sh -c"
2501 break
2502 elif test -f "$ac_dir/install.sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install.sh -c"
2505 break
2506 elif test -f "$ac_dir/shtool"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/shtool install -c"
2509 break
2510 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00002511done
2512if test -z "$ac_aux_dir"; then
Joseph Myers22e05272018-10-31 17:03:16 +00002513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002514fi
2515
2516# These three variables are undocumented and unsupported,
2517# and are intended to be withdrawn in a future Autoconf release.
2518# They can cause serious problems if a builder's source tree is in a directory
2519# whose full name contains unusual characters.
2520ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2523
2524
2525# Make sure we can run config.sub.
2526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Joseph Myers22e05272018-10-31 17:03:16 +00002527 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530$as_echo_n "checking build system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002531if ${ac_cv_build+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002532 $as_echo_n "(cached) " >&6
2533else
2534 ac_build_alias=$build_alias
2535test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537test "x$ac_build_alias" = x &&
Joseph Myers22e05272018-10-31 17:03:16 +00002538 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002541
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544$as_echo "$ac_cv_build" >&6; }
2545case $ac_cv_build in
2546*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002547*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002548esac
2549build=$ac_cv_build
2550ac_save_IFS=$IFS; IFS='-'
2551set x $ac_cv_build
2552shift
2553build_cpu=$1
2554build_vendor=$2
2555shift; shift
2556# Remember, the first character of IFS is used to create $*,
2557# except with old shells:
2558build_os=$*
2559IFS=$ac_save_IFS
2560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2561
2562
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564$as_echo_n "checking host system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002565if ${ac_cv_host+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002566 $as_echo_n "(cached) " >&6
2567else
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2570else
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002573fi
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577$as_echo "$ac_cv_host" >&6; }
2578case $ac_cv_host in
2579*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002580*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002581esac
2582host=$ac_cv_host
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_host
2585shift
2586host_cpu=$1
2587host_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591host_os=$*
2592IFS=$ac_save_IFS
2593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2594
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597$as_echo_n "checking target system type... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002598if ${ac_cv_target+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002599 $as_echo_n "(cached) " >&6
2600else
2601 if test "x$target_alias" = x; then
2602 ac_cv_target=$ac_cv_host
2603else
2604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Joseph Myers22e05272018-10-31 17:03:16 +00002605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002606fi
2607
2608fi
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610$as_echo "$ac_cv_target" >&6; }
2611case $ac_cv_target in
2612*-*-*) ;;
Joseph Myers22e05272018-10-31 17:03:16 +00002613*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +00002614esac
2615target=$ac_cv_target
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_target
2618shift
2619target_cpu=$1
2620target_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624target_os=$*
2625IFS=$ac_save_IFS
2626case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2627
2628
2629# The aliases save the names the user supplied, while $host etc.
2630# will get canonicalized.
2631test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2633 NONENONEs,x,x, &&
2634 program_prefix=${target_alias}-
2635
Joseph Myers22e05272018-10-31 17:03:16 +00002636# Expand $ac_aux_dir to an absolute path.
2637am_aux_dir=`cd "$ac_aux_dir" && pwd`
Iain Buclawb4c522f2018-10-28 19:51:47 +00002638
Iain Buclawb4c522f2018-10-28 19:51:47 +00002639ac_ext=c
2640ac_cpp='$CPP $CPPFLAGS'
2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646set dummy ${ac_tool_prefix}gcc; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002649if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002650 $as_echo_n "(cached) " >&6
2651else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667 done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675$as_echo "$CC" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682fi
2683if test -z "$ac_cv_prog_CC"; then
2684 ac_ct_CC=$CC
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686set dummy gcc; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002689if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002690 $as_echo_n "(cached) " >&6
2691else
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002702 ac_cv_prog_ac_ct_CC="gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706done
2707 done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712ac_ct_CC=$ac_cv_prog_ac_ct_CC
2713if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715$as_echo "$ac_ct_CC" >&6; }
2716else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721 if test "x$ac_ct_CC" = x; then
2722 CC=""
2723 else
2724 case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728ac_tool_warned=yes ;;
2729esac
2730 CC=$ac_ct_CC
2731 fi
2732else
2733 CC="$ac_cv_prog_CC"
2734fi
2735
2736if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739set dummy ${ac_tool_prefix}cc; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002742if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002743 $as_echo_n "(cached) " >&6
2744else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002755 ac_cv_prog_CC="${ac_tool_prefix}cc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760 done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775 fi
2776fi
2777if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779set dummy cc; ac_word=$2
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002782if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002783 $as_echo_n "(cached) " >&6
2784else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
2788 ac_prog_rejected=no
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected=yes
2798 continue
2799 fi
2800 ac_cv_prog_CC="cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805 done
2806IFS=$as_save_IFS
2807
2808if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2818 fi
2819fi
2820fi
2821fi
2822CC=$ac_cv_prog_CC
2823if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825$as_echo "$CC" >&6; }
2826else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog in cl.exe
2836 do
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002841if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002842 $as_echo_n "(cached) " >&6
2843else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859 done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867$as_echo "$CC" >&6; }
2868else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
2874 test -n "$CC" && break
2875 done
2876fi
2877if test -z "$CC"; then
2878 ac_ct_CC=$CC
2879 for ac_prog in cl.exe
2880do
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882set dummy $ac_prog; ac_word=$2
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00002885if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00002886 $as_echo_n "(cached) " >&6
2887else
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00002897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00002898 ac_cv_prog_ac_ct_CC="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902done
2903 done
2904IFS=$as_save_IFS
2905
2906fi
2907fi
2908ac_ct_CC=$ac_cv_prog_ac_ct_CC
2909if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911$as_echo "$ac_ct_CC" >&6; }
2912else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915fi
2916
2917
2918 test -n "$ac_ct_CC" && break
2919done
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925yes:)
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928ac_tool_warned=yes ;;
2929esac
2930 CC=$ac_ct_CC
2931 fi
2932fi
2933
2934fi
2935
2936
2937test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00002939as_fn_error $? "no acceptable C compiler found in \$PATH
2940See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002941
2942# Provide some information about the compiler.
2943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2944set X $ac_compile
2945ac_compiler=$2
2946for ac_option in --version -v -V -qversion; do
2947 { { ac_try="$ac_compiler $ac_option >&5"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 ac_status=$?
2956 if test -s conftest.err; then
2957 sed '10a\
2958... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00002961 fi
Joseph Myers22e05272018-10-31 17:03:16 +00002962 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00002963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2965done
2966
2967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978ac_clean_files_save=$ac_clean_files
Joseph Myers22e05272018-10-31 17:03:16 +00002979ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Iain Buclawb4c522f2018-10-28 19:51:47 +00002980# Try to create an executable without -o first, disregard a.out.
2981# It will help us diagnose broken compilers, and finding out an intuition
2982# of exeext.
Joseph Myers22e05272018-10-31 17:03:16 +00002983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984$as_echo_n "checking whether the C compiler works... " >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00002985ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986
2987# The possible output files:
2988ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989
2990ac_rmfiles=
2991for ac_file in $ac_files
2992do
2993 case $ac_file in
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2996 esac
2997done
2998rm -f $ac_rmfiles
2999
3000if { { ac_try="$ac_link_default"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006$as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013# in a Makefile. We should not override ac_cv_exeext if it was cached,
3014# so that the user can short-circuit this test for compilers unknown to
3015# Autoconf.
3016for ac_file in $ac_files ''
3017do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 ;;
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 fi
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3037 * )
3038 break;;
3039 esac
3040done
3041test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043else
3044 ac_file=''
3045fi
Iain Buclawb4c522f2018-10-28 19:51:47 +00003046if test -z "$ac_file"; then :
Joseph Myers22e05272018-10-31 17:03:16 +00003047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049$as_echo "$as_me: failed program was:" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00003050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003054as_fn_error 77 "C compiler cannot create executables
3055See \`config.log' for more details" "$LINENO" 5; }
3056else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058$as_echo "yes" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003059fi
Joseph Myers22e05272018-10-31 17:03:16 +00003060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061$as_echo_n "checking for C compiler default output file name... " >&6; }
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063$as_echo "$ac_file" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003064ac_exeext=$ac_cv_exeext
3065
Joseph Myers22e05272018-10-31 17:03:16 +00003066rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Iain Buclawb4c522f2018-10-28 19:51:47 +00003067ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069$as_echo_n "checking for suffix of executables... " >&6; }
3070if { { ac_try="$ac_link"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076$as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083# work properly (i.e., refer to `conftest.exe'), while it won't with
3084# `rm'.
3085for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 break;;
3091 * ) break;;
3092 esac
3093done
3094else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003097as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3098See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003099fi
Joseph Myers22e05272018-10-31 17:03:16 +00003100rm -f conftest conftest$ac_cv_exeext
Iain Buclawb4c522f2018-10-28 19:51:47 +00003101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102$as_echo "$ac_cv_exeext" >&6; }
3103
3104rm -f conftest.$ac_ext
3105EXEEXT=$ac_cv_exeext
3106ac_exeext=$EXEEXT
Joseph Myers22e05272018-10-31 17:03:16 +00003107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108/* end confdefs.h. */
3109#include <stdio.h>
3110int
3111main ()
3112{
3113FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120ac_clean_files="$ac_clean_files conftest.out"
3121# Check that the compiler produces executables we can run. If not, either
3122# the compiler is broken, or we cross compile.
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124$as_echo_n "checking whether we are cross compiling... " >&6; }
3125if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3134 ac_status=$?
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3148 cross_compiling=no
3149 else
3150 if test "$cross_compiling" = maybe; then
3151 cross_compiling=yes
3152 else
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155as_fn_error $? "cannot run C compiled programs.
3156If you meant to cross compile, use \`--host'.
3157See \`config.log' for more details" "$LINENO" 5; }
3158 fi
3159 fi
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162$as_echo "$cross_compiling" >&6; }
3163
3164rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165ac_clean_files=$ac_clean_files_save
Iain Buclawb4c522f2018-10-28 19:51:47 +00003166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167$as_echo_n "checking for suffix of object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003168if ${ac_cv_objext+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003169 $as_echo_n "(cached) " >&6
3170else
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h. */
3173
3174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182rm -f conftest.o conftest.obj
3183if { { ac_try="$ac_compile"
3184case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189$as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3199 break;;
3200 esac
3201done
3202else
3203 $as_echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00003208as_fn_error $? "cannot compute suffix of object files: cannot compile
3209See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00003210fi
3211rm -f conftest.$ac_cv_objext conftest.$ac_ext
3212fi
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214$as_echo "$ac_cv_objext" >&6; }
3215OBJEXT=$ac_cv_objext
3216ac_objext=$OBJEXT
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003219if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003220 $as_echo_n "(cached) " >&6
3221else
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223/* end confdefs.h. */
3224
3225int
3226main ()
3227{
3228#ifndef __GNUC__
3229 choke me
3230#endif
3231
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_compiler_gnu=yes
3238else
3239 ac_compiler_gnu=no
3240fi
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242ac_cv_c_compiler_gnu=$ac_compiler_gnu
3243
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247if test $ac_compiler_gnu = yes; then
3248 GCC=yes
3249else
3250 GCC=
3251fi
3252ac_test_CFLAGS=${CFLAGS+set}
3253ac_save_CFLAGS=$CFLAGS
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003256if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003257 $as_echo_n "(cached) " >&6
3258else
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3261 ac_cv_prog_cc_g=no
3262 CFLAGS="-g"
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h. */
3265
3266int
3267main ()
3268{
3269
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_g=yes
3276else
3277 CFLAGS=""
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289if ac_fn_c_try_compile "$LINENO"; then :
3290
3291else
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3293 CFLAGS="-g"
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h. */
3296
3297int
3298main ()
3299{
3300
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_cv_prog_cc_g=yes
3307fi
3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3309fi
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311fi
3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316$as_echo "$ac_cv_prog_cc_g" >&6; }
3317if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3321 CFLAGS="-g -O2"
3322 else
3323 CFLAGS="-g"
3324 fi
3325else
3326 if test "$GCC" = yes; then
3327 CFLAGS="-O2"
3328 else
3329 CFLAGS=
3330 fi
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00003334if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00003335 $as_echo_n "(cached) " >&6
3336else
3337 ac_cv_prog_cc_c89=no
3338ac_save_CC=$CC
3339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h. */
3341#include <stdarg.h>
3342#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00003343struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00003344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345struct buf { int x; };
3346FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347static char *e (p, i)
3348 char **p;
3349 int i;
3350{
3351 return p[i];
3352}
3353static char *f (char * (*g) (char **, int), char **p, ...)
3354{
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361}
3362
3363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371
3372/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3374#define FOO(x) 'x'
3375int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3376
3377int test (int i, double x);
3378struct s1 {int (*f) (int a);};
3379struct s2 {int (*f) (double a);};
3380int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3381int argc;
3382char **argv;
3383int
3384main ()
3385{
3386return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3393do
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3397fi
3398rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3400done
3401rm -f conftest.$ac_ext
3402CC=$ac_save_CC
3403
3404fi
3405# AC_CACHE_VAL
3406case "x$ac_cv_prog_cc_c89" in
3407 x)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409$as_echo "none needed" >&6; } ;;
3410 xno)
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412$as_echo "unsupported" >&6; } ;;
3413 *)
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3417esac
3418if test "x$ac_cv_prog_cc_c89" != xno; then :
3419
3420fi
3421
3422ac_ext=c
3423ac_cpp='$CPP $CPPFLAGS'
3424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427
Joseph Myers22e05272018-10-31 17:03:16 +00003428ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437else
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h. */
3440
3441int
3442main ()
3443{
3444
3445 ;
3446 return 0;
3447}
3448_ACEOF
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3454 for am_i in 1 2; do
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3461 : OK
3462 else
3463 am_cv_prog_cc_c_o=no
3464 break
3465 fi
3466 done
3467 rm -f core conftest*
3468 unset am_i
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471$as_echo "$am_cv_prog_cc_c_o" >&6; }
3472if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3479fi
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
3486
Rainer Orth235d1c42019-04-14 09:30:42 +00003487
3488ac_ext=c
3489ac_cpp='$CPP $CPPFLAGS'
3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3494$as_echo_n "checking how to run the C preprocessor... " >&6; }
3495# On Suns, sometimes $CPP names a directory.
3496if test -n "$CPP" && test -d "$CPP"; then
3497 CPP=
3498fi
3499if test -z "$CPP"; then
3500 if ${ac_cv_prog_CPP+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502else
3503 # Double quotes because CPP needs to be expanded
3504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3505 do
3506 ac_preproc_ok=false
3507for ac_c_preproc_warn_flag in '' yes
3508do
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h. */
3517#ifdef __STDC__
3518# include <limits.h>
3519#else
3520# include <assert.h>
3521#endif
3522 Syntax error
3523_ACEOF
3524if ac_fn_c_try_cpp "$LINENO"; then :
3525
3526else
3527 # Broken: fails on valid input.
3528continue
3529fi
3530rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h. */
3536#include <ac_nonexistent.h>
3537_ACEOF
3538if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3540continue
3541else
3542 # Passes both tests.
3543ac_preproc_ok=:
3544break
3545fi
3546rm -f conftest.err conftest.i conftest.$ac_ext
3547
3548done
3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550rm -f conftest.i conftest.err conftest.$ac_ext
3551if $ac_preproc_ok; then :
3552 break
3553fi
3554
3555 done
3556 ac_cv_prog_CPP=$CPP
3557
3558fi
3559 CPP=$ac_cv_prog_CPP
3560else
3561 ac_cv_prog_CPP=$CPP
3562fi
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3564$as_echo "$CPP" >&6; }
3565ac_preproc_ok=false
3566for ac_c_preproc_warn_flag in '' yes
3567do
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h. */
3576#ifdef __STDC__
3577# include <limits.h>
3578#else
3579# include <assert.h>
3580#endif
3581 Syntax error
3582_ACEOF
3583if ac_fn_c_try_cpp "$LINENO"; then :
3584
3585else
3586 # Broken: fails on valid input.
3587continue
3588fi
3589rm -f conftest.err conftest.i conftest.$ac_ext
3590
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h. */
3595#include <ac_nonexistent.h>
3596_ACEOF
3597if ac_fn_c_try_cpp "$LINENO"; then :
3598 # Broken: success on invalid input.
3599continue
3600else
3601 # Passes both tests.
3602ac_preproc_ok=:
3603break
3604fi
3605rm -f conftest.err conftest.i conftest.$ac_ext
3606
3607done
3608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609rm -f conftest.i conftest.err conftest.$ac_ext
3610if $ac_preproc_ok; then :
3611
3612else
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3616See \`config.log' for more details" "$LINENO" 5; }
3617fi
3618
3619ac_ext=c
3620ac_cpp='$CPP $CPPFLAGS'
3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3627$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628if ${ac_cv_path_GREP+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630else
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p "$ac_path_GREP" || continue
3643# Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645case `"$ac_path_GREP" --version 2>&1` in
3646*GNU*)
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648*)
3649 ac_count=0
3650 $as_echo_n 0123456789 >"conftest.in"
3651 while :
3652 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3664 fi
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3667 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac
3670
3671 $ac_path_GREP_found && break 3
3672 done
3673 done
3674 done
3675IFS=$as_save_IFS
3676 if test -z "$ac_cv_path_GREP"; then
3677 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3678 fi
3679else
3680 ac_cv_path_GREP=$GREP
3681fi
3682
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3685$as_echo "$ac_cv_path_GREP" >&6; }
3686 GREP="$ac_cv_path_GREP"
3687
3688
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3690$as_echo_n "checking for egrep... " >&6; }
3691if ${ac_cv_path_EGREP+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693else
3694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3695 then ac_cv_path_EGREP="$GREP -E"
3696 else
3697 if test -z "$EGREP"; then
3698 ac_path_EGREP_found=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_prog in egrep; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3708 as_fn_executable_p "$ac_path_EGREP" || continue
3709# Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711case `"$ac_path_EGREP" --version 2>&1` in
3712*GNU*)
3713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3714*)
3715 ac_count=0
3716 $as_echo_n 0123456789 >"conftest.in"
3717 while :
3718 do
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 $as_echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3725 as_fn_arith $ac_count + 1 && ac_count=$as_val
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP="$ac_path_EGREP"
3729 ac_path_EGREP_max=$ac_count
3730 fi
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3733 done
3734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735esac
3736
3737 $ac_path_EGREP_found && break 3
3738 done
3739 done
3740 done
3741IFS=$as_save_IFS
3742 if test -z "$ac_cv_path_EGREP"; then
3743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3744 fi
3745else
3746 ac_cv_path_EGREP=$EGREP
3747fi
3748
3749 fi
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3752$as_echo "$ac_cv_path_EGREP" >&6; }
3753 EGREP="$ac_cv_path_EGREP"
3754
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3757$as_echo_n "checking for ANSI C header files... " >&6; }
3758if ${ac_cv_header_stdc+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760else
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h. */
3763#include <stdlib.h>
3764#include <stdarg.h>
3765#include <string.h>
3766#include <float.h>
3767
3768int
3769main ()
3770{
3771
3772 ;
3773 return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_header_stdc=yes
3778else
3779 ac_cv_header_stdc=no
3780fi
3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782
3783if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787#include <string.h>
3788
3789_ACEOF
3790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev/null 2>&1; then :
3792
3793else
3794 ac_cv_header_stdc=no
3795fi
3796rm -f conftest*
3797
3798fi
3799
3800if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804#include <stdlib.h>
3805
3806_ACEOF
3807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev/null 2>&1; then :
3809
3810else
3811 ac_cv_header_stdc=no
3812fi
3813rm -f conftest*
3814
3815fi
3816
3817if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then :
3820 :
3821else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h. */
3824#include <ctype.h>
3825#include <stdlib.h>
3826#if ((' ' & 0x0FF) == 0x020)
3827# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3828# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3829#else
3830# define ISLOWER(c) \
3831 (('a' <= (c) && (c) <= 'i') \
3832 || ('j' <= (c) && (c) <= 'r') \
3833 || ('s' <= (c) && (c) <= 'z'))
3834# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3835#endif
3836
3837#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3838int
3839main ()
3840{
3841 int i;
3842 for (i = 0; i < 256; i++)
3843 if (XOR (islower (i), ISLOWER (i))
3844 || toupper (i) != TOUPPER (i))
3845 return 2;
3846 return 0;
3847}
3848_ACEOF
3849if ac_fn_c_try_run "$LINENO"; then :
3850
3851else
3852 ac_cv_header_stdc=no
3853fi
3854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3855 conftest.$ac_objext conftest.beam conftest.$ac_ext
3856fi
3857
3858fi
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3861$as_echo "$ac_cv_header_stdc" >&6; }
3862if test $ac_cv_header_stdc = yes; then
3863
3864$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3865
3866fi
3867
3868# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3870 inttypes.h stdint.h unistd.h
3871do :
3872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3874"
3875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3876 cat >>confdefs.h <<_ACEOF
3877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3878_ACEOF
3879
3880fi
3881
3882done
3883
3884
3885
3886 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3887if test "x$ac_cv_header_minix_config_h" = xyes; then :
3888 MINIX=yes
3889else
3890 MINIX=
3891fi
3892
3893
3894 if test "$MINIX" = yes; then
3895
3896$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3897
3898
3899$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3900
3901
3902$as_echo "#define _MINIX 1" >>confdefs.h
3903
3904 fi
3905
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909if ${ac_cv_safe_to_define___extensions__+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914
3915# define __EXTENSIONS__ 1
3916 $ac_includes_default
3917int
3918main ()
3919{
3920
3921 ;
3922 return 0;
3923}
3924_ACEOF
3925if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_safe_to_define___extensions__=yes
3927else
3928 ac_cv_safe_to_define___extensions__=no
3929fi
3930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3933$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3934 test $ac_cv_safe_to_define___extensions__ = yes &&
3935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3936
3937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3938
3939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3940
3941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3942
3943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3944
3945
3946
3947target_alias=${target_alias-$target}
3948
3949
3950# 1.11.1: Require that version of automake.
3951# foreign: Don't require README, INSTALL, NEWS, etc.
3952# no-define: Don't define PACKAGE and VERSION.
3953# no-dependencies: Don't generate automatic dependencies.
3954# (because it breaks when using bootstrap-lean, since some of the
3955# headers are gone at "make install" time).
3956# subdir-objects: Build objects in sub-directories.
3957# -Wall: Issue all automake warnings.
3958# -Wno-portability: Don't warn about constructs supported by GNU make.
3959# (because GCC requires GNU make anyhow).
3960# -Wno-override: Overrides used in testsuite.
3961am__api_version='1.15'
3962
3963# Find a good install program. We prefer a C program (faster),
3964# so one script is as good as another. But avoid the broken or
3965# incompatible versions:
3966# SysV /etc/install, /usr/sbin/install
3967# SunOS /usr/etc/install
3968# IRIX /sbin/install
3969# AIX /bin/install
3970# AmigaOS /C/install, which installs bootblocks on floppy discs
3971# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3972# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3973# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3974# OS/2's system install, which has a completely different semantic
3975# ./install, which can be erroneously created by make from ./install.sh.
3976# Reject install programs that cannot install multiple files.
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3978$as_echo_n "checking for a BSD-compatible install... " >&6; }
3979if test -z "$INSTALL"; then
3980if ${ac_cv_path_install+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 # Account for people who put trailing slashes in PATH elements.
3989case $as_dir/ in #((
3990 ./ | .// | /[cC]/* | \
3991 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3992 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3993 /usr/ucb/* ) ;;
3994 *)
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3997 # by default.
3998 for ac_prog in ginstall scoinst install; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4004 :
4005 elif test $ac_prog = install &&
4006 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4008 :
4009 else
4010 rm -rf conftest.one conftest.two conftest.dir
4011 echo one > conftest.one
4012 echo two > conftest.two
4013 mkdir conftest.dir
4014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4015 test -s conftest.one && test -s conftest.two &&
4016 test -s conftest.dir/conftest.one &&
4017 test -s conftest.dir/conftest.two
4018 then
4019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4020 break 3
4021 fi
4022 fi
4023 fi
4024 done
4025 done
4026 ;;
4027esac
4028
4029 done
4030IFS=$as_save_IFS
4031
4032rm -rf conftest.one conftest.two conftest.dir
4033
4034fi
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL=$ac_cv_path_install
4037 else
4038 # As a last resort, use the slow shell script. Don't cache a
4039 # value for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the value is a relative name.
4042 INSTALL=$ac_install_sh
4043 fi
4044fi
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4046$as_echo "$INSTALL" >&6; }
4047
4048# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049# It thinks the first close brace ends the variable substitution.
4050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4051
4052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4053
4054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4057$as_echo_n "checking whether build environment is sane... " >&6; }
4058# Reject unsafe characters in $srcdir or the absolute working directory
4059# name. Accept space and tab only in the latter.
4060am_lf='
4061'
4062case `pwd` in
4063 *[\\\"\#\$\&\'\`$am_lf]*)
4064 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4065esac
4066case $srcdir in
4067 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4068 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4069esac
4070
4071# Do 'set' in a subshell so we don't clobber the current shell's
4072# arguments. Must try -L first in case configure is actually a
4073# symlink; some systems play weird games with the mod time of symlinks
4074# (eg FreeBSD returns the mod time of the symlink's containing
4075# directory).
4076if (
4077 am_has_slept=no
4078 for am_try in 1 2; do
4079 echo "timestamp, slept: $am_has_slept" > conftest.file
4080 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4081 if test "$*" = "X"; then
4082 # -L didn't work.
4083 set X `ls -t "$srcdir/configure" conftest.file`
4084 fi
4085 if test "$*" != "X $srcdir/configure conftest.file" \
4086 && test "$*" != "X conftest.file $srcdir/configure"; then
4087
4088 # If neither matched, then we have a broken ls. This can happen
4089 # if, for instance, CONFIG_SHELL is bash and it inherits a
4090 # broken ls alias from the environment. This has actually
4091 # happened. Such a system could not be considered "sane".
4092 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4093 alias in your environment" "$LINENO" 5
4094 fi
4095 if test "$2" = conftest.file || test $am_try -eq 2; then
4096 break
4097 fi
4098 # Just in case.
4099 sleep 1
4100 am_has_slept=yes
4101 done
4102 test "$2" = conftest.file
4103 )
4104then
4105 # Ok.
4106 :
4107else
4108 as_fn_error $? "newly created file is older than distributed files!
4109Check your system clock" "$LINENO" 5
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112$as_echo "yes" >&6; }
4113# If we didn't sleep, we still need to ensure time stamps of config.status and
4114# generated files are strictly newer.
4115am_sleep_pid=
4116if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4117 ( sleep 1 ) &
4118 am_sleep_pid=$!
4119fi
4120
4121rm -f conftest.file
4122
4123test "$program_prefix" != NONE &&
4124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4125# Use a double $ so make ignores it.
4126test "$program_suffix" != NONE &&
4127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4128# Double any \ or $.
4129# By default was `s,x,x', remove it if useless.
4130ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4131program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4132
4133if test x"${MISSING+set}" != xset; then
4134 case $am_aux_dir in
4135 *\ * | *\ *)
4136 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4137 *)
4138 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4139 esac
4140fi
4141# Use eval to expand $SHELL
4142if eval "$MISSING --is-lightweight"; then
4143 am_missing_run="$MISSING "
4144else
4145 am_missing_run=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4147$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4148fi
4149
4150if test x"${install_sh+set}" != xset; then
4151 case $am_aux_dir in
4152 *\ * | *\ *)
4153 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4154 *)
4155 install_sh="\${SHELL} $am_aux_dir/install-sh"
4156 esac
4157fi
4158
4159# Installed binaries are usually stripped using 'strip' when the user
4160# run "make install-strip". However 'strip' might not be the right
4161# tool to use in cross-compilation environments, therefore Automake
4162# will honor the 'STRIP' environment variable to overrule this program.
4163if test "$cross_compiling" != no; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166set dummy ${ac_tool_prefix}strip; ac_word=$2
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
4169if ${ac_cv_prog_STRIP+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171else
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4174else
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186done
4187 done
4188IFS=$as_save_IFS
4189
4190fi
4191fi
4192STRIP=$ac_cv_prog_STRIP
4193if test -n "$STRIP"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4195$as_echo "$STRIP" >&6; }
4196else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198$as_echo "no" >&6; }
4199fi
4200
4201
4202fi
4203if test -z "$ac_cv_prog_STRIP"; then
4204 ac_ct_STRIP=$STRIP
4205 # Extract the first word of "strip", so it can be a program name with args.
4206set dummy strip; ac_word=$2
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
4209if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 if test -n "$ac_ct_STRIP"; then
4213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_STRIP="strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226done
4227 done
4228IFS=$as_save_IFS
4229
4230fi
4231fi
4232ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4233if test -n "$ac_ct_STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4235$as_echo "$ac_ct_STRIP" >&6; }
4236else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238$as_echo "no" >&6; }
4239fi
4240
4241 if test "x$ac_ct_STRIP" = x; then
4242 STRIP=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245yes:)
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248ac_tool_warned=yes ;;
4249esac
4250 STRIP=$ac_ct_STRIP
4251 fi
4252else
4253 STRIP="$ac_cv_prog_STRIP"
4254fi
4255
4256fi
4257INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4258
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4260$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4261if test -z "$MKDIR_P"; then
4262 if ${ac_cv_path_mkdir+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in mkdir gmkdir; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4274 'mkdir (GNU coreutils) '* | \
4275 'mkdir (coreutils) '* | \
4276 'mkdir (fileutils) '4.1*)
4277 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4278 break 3;;
4279 esac
4280 done
4281 done
4282 done
4283IFS=$as_save_IFS
4284
4285fi
4286
4287 test -d ./--version && rmdir ./--version
4288 if test "${ac_cv_path_mkdir+set}" = set; then
4289 MKDIR_P="$ac_cv_path_mkdir -p"
4290 else
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for MKDIR_P within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 MKDIR_P="$ac_install_sh -d"
4296 fi
4297fi
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4299$as_echo "$MKDIR_P" >&6; }
4300
4301for ac_prog in gawk mawk nawk awk
4302do
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304set dummy $ac_prog; ac_word=$2
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306$as_echo_n "checking for $ac_word... " >&6; }
4307if ${ac_cv_prog_AWK+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309else
4310 if test -n "$AWK"; then
4311 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4312else
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_AWK="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328fi
4329fi
4330AWK=$ac_cv_prog_AWK
4331if test -n "$AWK"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4333$as_echo "$AWK" >&6; }
4334else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337fi
4338
4339
4340 test -n "$AWK" && break
4341done
4342
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4345set x ${MAKE-make}
4346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4347if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349else
4350 cat >conftest.make <<\_ACEOF
4351SHELL = /bin/sh
4352all:
4353 @echo '@@@%%%=$(MAKE)=@@@%%%'
4354_ACEOF
4355# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4356case `${MAKE-make} -f conftest.make 2>/dev/null` in
4357 *@@@%%%=?*=@@@%%%*)
4358 eval ac_cv_prog_make_${ac_make}_set=yes;;
4359 *)
4360 eval ac_cv_prog_make_${ac_make}_set=no;;
4361esac
4362rm -f conftest.make
4363fi
4364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366$as_echo "yes" >&6; }
4367 SET_MAKE=
4368else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370$as_echo "no" >&6; }
4371 SET_MAKE="MAKE=${MAKE-make}"
4372fi
4373
4374rm -rf .tst 2>/dev/null
4375mkdir .tst 2>/dev/null
4376if test -d .tst; then
4377 am__leading_dot=.
4378else
4379 am__leading_dot=_
4380fi
4381rmdir .tst 2>/dev/null
4382
4383# Check whether --enable-silent-rules was given.
4384if test "${enable_silent_rules+set}" = set; then :
4385 enableval=$enable_silent_rules;
4386fi
4387
4388case $enable_silent_rules in # (((
4389 yes) AM_DEFAULT_VERBOSITY=0;;
4390 no) AM_DEFAULT_VERBOSITY=1;;
4391 *) AM_DEFAULT_VERBOSITY=1;;
4392esac
4393am_make=${MAKE-make}
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4395$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4396if ${am_cv_make_support_nested_variables+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398else
4399 if $as_echo 'TRUE=$(BAR$(V))
4400BAR0=false
4401BAR1=true
4402V=1
4403am__doit:
4404 @$(TRUE)
4405.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4406 am_cv_make_support_nested_variables=yes
4407else
4408 am_cv_make_support_nested_variables=no
4409fi
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4412$as_echo "$am_cv_make_support_nested_variables" >&6; }
4413if test $am_cv_make_support_nested_variables = yes; then
4414 AM_V='$(V)'
4415 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4416else
4417 AM_V=$AM_DEFAULT_VERBOSITY
4418 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4419fi
4420AM_BACKSLASH='\'
4421
4422if test "`cd $srcdir && pwd`" != "`pwd`"; then
4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4424 # is not polluted with repeated "-I."
4425 am__isrc=' -I$(srcdir)'
4426 # test to see if srcdir already configured
4427 if test -f $srcdir/config.status; then
4428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4429 fi
4430fi
4431
4432# test whether we have cygpath
4433if test -z "$CYGPATH_W"; then
4434 if (cygpath --version) >/dev/null 2>/dev/null; then
4435 CYGPATH_W='cygpath -w'
4436 else
4437 CYGPATH_W=echo
4438 fi
4439fi
4440
4441
4442# Define the identity of the package.
4443 PACKAGE='libphobos'
4444 VERSION='version-unused'
4445
4446
4447# Some tools Automake needs.
4448
4449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4450
4451
4452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4453
4454
4455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4456
4457
4458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4459
4460
4461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4462
4463# For better backward compatibility. To be removed once Automake 1.9.x
4464# dies out for good. For more background, see:
4465# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4466# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4467mkdir_p='$(MKDIR_P)'
4468
4469# We need awk for the "check" target (and possibly the TAP driver). The
4470# system "awk" is bad on some platforms.
4471# Always define AMTAR for backward compatibility. Yes, it's still used
4472# in the wild :-( We should find a proper way to deprecate it ...
4473AMTAR='$${TAR-tar}'
4474
4475
4476# We'll loop over all known methods to create a tar archive until one works.
4477_am_tools='gnutar pax cpio none'
4478
4479am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4480
4481
4482
4483
4484
4485
4486# POSIX will say in a future version that running "rm -f" with no argument
4487# is OK; and we want to be able to make that assumption in our Makefile
4488# recipes. So use an aggressive probe to check that the usage we want is
4489# actually supported "in the wild" to an acceptable degree.
4490# See automake bug#10828.
4491# To make any issue more visible, cause the running configure to be aborted
4492# by default if the 'rm' program in use doesn't match our expectations; the
4493# user can still override this though.
4494if rm -f && rm -fr && rm -rf; then : OK; else
4495 cat >&2 <<'END'
4496Oops!
4497
4498Your 'rm' program seems unable to run without file operands specified
4499on the command line, even when the '-f' option is present. This is contrary
4500to the behaviour of most rm programs out there, and not conforming with
4501the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4502
4503Please tell bug-automake@gnu.org about your system, including the value
4504of your $PATH and any error possibly output before this message. This
4505can help us improve future automake versions.
4506
4507END
4508 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4509 echo 'Configuration will proceed anyway, since you have set the' >&2
4510 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4511 echo >&2
4512 else
4513 cat >&2 <<'END'
4514Aborting the configuration process, to ensure you take notice of the issue.
4515
4516You can download and install GNU coreutils to get an 'rm' implementation
4517that behaves properly: <http://www.gnu.org/software/coreutils/>.
4518
4519If you want to complete the configuration process using your problematic
4520'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4521to "yes", and re-run configure.
4522
4523END
4524 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4525 fi
4526fi
4527
4528
4529
4530
Iain Buclawb4c522f2018-10-28 19:51:47 +00004531# By default we simply use the C compiler to build assembly code.
4532
4533test "${CCAS+set}" = set || CCAS=$CC
4534test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4535
4536
4537
4538ac_ext=c
4539ac_cpp='$CPP $CPPFLAGS'
4540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4545set dummy ${ac_tool_prefix}gcc; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004548if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574$as_echo "$CC" >&6; }
4575else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581fi
4582if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585set dummy gcc; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004588if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004589 $as_echo_n "(cached) " >&6
4590else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593else
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004601 ac_cv_prog_ac_ct_CC="gcc"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605done
4606 done
4607IFS=$as_save_IFS
4608
4609fi
4610fi
4611ac_ct_CC=$ac_cv_prog_ac_ct_CC
4612if test -n "$ac_ct_CC"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4614$as_echo "$ac_ct_CC" >&6; }
4615else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617$as_echo "no" >&6; }
4618fi
4619
4620 if test "x$ac_ct_CC" = x; then
4621 CC=""
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624yes:)
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627ac_tool_warned=yes ;;
4628esac
4629 CC=$ac_ct_CC
4630 fi
4631else
4632 CC="$ac_cv_prog_CC"
4633fi
4634
4635if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638set dummy ${ac_tool_prefix}cc; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004641if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004642 $as_echo_n "(cached) " >&6
4643else
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC="$CC" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004654 ac_cv_prog_CC="${ac_tool_prefix}cc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
4659 done
4660IFS=$as_save_IFS
4661
4662fi
4663fi
4664CC=$ac_cv_prog_CC
4665if test -n "$CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667$as_echo "$CC" >&6; }
4668else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673
4674 fi
4675fi
4676if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678set dummy cc; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004681if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004682 $as_echo_n "(cached) " >&6
4683else
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686else
4687 ac_prog_rejected=no
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_CC="cc"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
4704 done
4705IFS=$as_save_IFS
4706
4707if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4717 fi
4718fi
4719fi
4720fi
4721CC=$ac_cv_prog_CC
4722if test -n "$CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724$as_echo "$CC" >&6; }
4725else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
4729
4730
4731fi
4732if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog in cl.exe
4735 do
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004740if ${ac_cv_prog_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004741 $as_echo_n "(cached) " >&6
4742else
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757done
4758 done
4759IFS=$as_save_IFS
4760
4761fi
4762fi
4763CC=$ac_cv_prog_CC
4764if test -n "$CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766$as_echo "$CC" >&6; }
4767else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
4770fi
4771
4772
4773 test -n "$CC" && break
4774 done
4775fi
4776if test -z "$CC"; then
4777 ac_ct_CC=$CC
4778 for ac_prog in cl.exe
4779do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781set dummy $ac_prog; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004784if ${ac_cv_prog_ac_ct_CC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004785 $as_echo_n "(cached) " >&6
4786else
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00004796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00004797 ac_cv_prog_ac_ct_CC="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805fi
4806fi
4807ac_ct_CC=$ac_cv_prog_ac_ct_CC
4808if test -n "$ac_ct_CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4810$as_echo "$ac_ct_CC" >&6; }
4811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
4815
4816
4817 test -n "$ac_ct_CC" && break
4818done
4819
4820 if test "x$ac_ct_CC" = x; then
4821 CC=""
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824yes:)
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827ac_tool_warned=yes ;;
4828esac
4829 CC=$ac_ct_CC
4830 fi
4831fi
4832
4833fi
4834
4835
4836test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Joseph Myers22e05272018-10-31 17:03:16 +00004838as_fn_error $? "no acceptable C compiler found in \$PATH
4839See \`config.log' for more details" "$LINENO" 5; }
Iain Buclawb4c522f2018-10-28 19:51:47 +00004840
4841# Provide some information about the compiler.
4842$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4843set X $ac_compile
4844ac_compiler=$2
4845for ac_option in --version -v -V -qversion; do
4846 { { ac_try="$ac_compiler $ac_option >&5"
4847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4854 ac_status=$?
4855 if test -s conftest.err; then
4856 sed '10a\
4857... rest of stderr output deleted ...
4858 10q' conftest.err >conftest.er1
4859 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00004860 fi
Joseph Myers22e05272018-10-31 17:03:16 +00004861 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00004862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }
4864done
4865
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004868if ${ac_cv_c_compiler_gnu+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004869 $as_echo_n "(cached) " >&6
4870else
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h. */
4873
4874int
4875main ()
4876{
4877#ifndef __GNUC__
4878 choke me
4879#endif
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_compiler_gnu=yes
4887else
4888 ac_compiler_gnu=no
4889fi
4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891ac_cv_c_compiler_gnu=$ac_compiler_gnu
4892
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4895$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896if test $ac_compiler_gnu = yes; then
4897 GCC=yes
4898else
4899 GCC=
4900fi
4901ac_test_CFLAGS=${CFLAGS+set}
4902ac_save_CFLAGS=$CFLAGS
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904$as_echo_n "checking whether $CC accepts -g... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004905if ${ac_cv_prog_cc_g+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004906 $as_echo_n "(cached) " >&6
4907else
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4910 ac_cv_prog_cc_g=no
4911 CFLAGS="-g"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h. */
4914
4915int
4916main ()
4917{
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_prog_cc_g=yes
4925else
4926 CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933
4934 ;
4935 return 0;
4936}
4937_ACEOF
4938if ac_fn_c_try_compile "$LINENO"; then :
4939
4940else
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4942 CFLAGS="-g"
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h. */
4945
4946int
4947main ()
4948{
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955 ac_cv_prog_cc_g=yes
4956fi
4957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4965$as_echo "$ac_cv_prog_cc_g" >&6; }
4966if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4970 CFLAGS="-g -O2"
4971 else
4972 CFLAGS="-g"
4973 fi
4974else
4975 if test "$GCC" = yes; then
4976 CFLAGS="-O2"
4977 else
4978 CFLAGS=
4979 fi
4980fi
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00004983if ${ac_cv_prog_cc_c89+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00004984 $as_echo_n "(cached) " >&6
4985else
4986 ac_cv_prog_cc_c89=no
4987ac_save_CC=$CC
4988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h. */
4990#include <stdarg.h>
4991#include <stdio.h>
Joseph Myers22e05272018-10-31 17:03:16 +00004992struct stat;
Iain Buclawb4c522f2018-10-28 19:51:47 +00004993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994struct buf { int x; };
4995FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996static char *e (p, i)
4997 char **p;
4998 int i;
4999{
5000 return p[i];
5001}
5002static char *f (char * (*g) (char **, int), char **p, ...)
5003{
5004 char *s;
5005 va_list v;
5006 va_start (v,p);
5007 s = g (p, va_arg (v,int));
5008 va_end (v);
5009 return s;
5010}
5011
5012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5020
5021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5023#define FOO(x) 'x'
5024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5025
5026int test (int i, double x);
5027struct s1 {int (*f) (int a);};
5028struct s2 {int (*f) (double a);};
5029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5030int argc;
5031char **argv;
5032int
5033main ()
5034{
5035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5036 ;
5037 return 0;
5038}
5039_ACEOF
5040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5042do
5043 CC="$ac_save_CC $ac_arg"
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_c89=$ac_arg
5046fi
5047rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5049done
5050rm -f conftest.$ac_ext
5051CC=$ac_save_CC
5052
5053fi
5054# AC_CACHE_VAL
5055case "x$ac_cv_prog_cc_c89" in
5056 x)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5058$as_echo "none needed" >&6; } ;;
5059 xno)
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061$as_echo "unsupported" >&6; } ;;
5062 *)
5063 CC="$CC $ac_cv_prog_cc_c89"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5066esac
5067if test "x$ac_cv_prog_cc_c89" != xno; then :
5068
5069fi
5070
5071ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
Joseph Myers22e05272018-10-31 17:03:16 +00005077ac_ext=c
5078ac_cpp='$CPP $CPPFLAGS'
5079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5083$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5084if ${am_cv_prog_cc_c_o+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086else
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h. */
5089
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098 # Make sure it works both with $CC and with simple cc.
5099 # Following AC_PROG_CC_C_O, we do the test twice because some
5100 # compilers refuse to overwrite an existing .o file with -o,
5101 # though they will create one.
5102 am_cv_prog_cc_c_o=yes
5103 for am_i in 1 2; do
5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } \
5109 && test -f conftest2.$ac_objext; then
5110 : OK
5111 else
5112 am_cv_prog_cc_c_o=no
5113 break
5114 fi
5115 done
5116 rm -f core conftest*
5117 unset am_i
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5120$as_echo "$am_cv_prog_cc_c_o" >&6; }
5121if test "$am_cv_prog_cc_c_o" != yes; then
5122 # Losing compiler, so override with the script.
5123 # FIXME: It is wrong to rewrite CC.
5124 # But if we don't then we get into trouble of one sort or another.
5125 # A longer-term fix would be to have automake use am__CC in this case,
5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5127 CC="$am_aux_dir/compile $CC"
5128fi
5129ac_ext=c
5130ac_cpp='$CPP $CPPFLAGS'
5131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134
5135
Iain Buclawb4c522f2018-10-28 19:51:47 +00005136ac_ext=d
5137ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5138ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=yes
5140if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5142set dummy ${ac_tool_prefix}gdc; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005145if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005146 $as_echo_n "(cached) " >&6
5147else
5148 if test -n "$GDC"; then
5149 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005158 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163 done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168GDC=$ac_cv_prog_GDC
5169if test -n "$GDC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5171$as_echo "$GDC" >&6; }
5172else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177
5178fi
5179if test -z "$ac_cv_prog_GDC"; then
5180 ac_ct_GDC=$GDC
5181 # Extract the first word of "gdc", so it can be a program name with args.
5182set dummy gdc; ac_word=$2
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005185if ${ac_cv_prog_ac_ct_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005186 $as_echo_n "(cached) " >&6
5187else
5188 if test -n "$ac_ct_GDC"; then
5189 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005198 ac_cv_prog_ac_ct_GDC="gdc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203 done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5209if test -n "$ac_ct_GDC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5211$as_echo "$ac_ct_GDC" >&6; }
5212else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
5216
5217 if test "x$ac_ct_GDC" = x; then
5218 GDC=""
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221yes:)
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224ac_tool_warned=yes ;;
5225esac
5226 GDC=$ac_ct_GDC
5227 fi
5228else
5229 GDC="$ac_cv_prog_GDC"
5230fi
5231
5232if test -z "$GDC"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5235set dummy ${ac_tool_prefix}gdc; ac_word=$2
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005238if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005239 $as_echo_n "(cached) " >&6
5240else
5241 if test -n "$GDC"; then
5242 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005251 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256 done
5257IFS=$as_save_IFS
5258
5259fi
5260fi
5261GDC=$ac_cv_prog_GDC
5262if test -n "$GDC"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5264$as_echo "$GDC" >&6; }
5265else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267$as_echo "no" >&6; }
5268fi
5269
5270
5271 fi
5272fi
5273if test -z "$GDC"; then
5274 # Extract the first word of "gdc", so it can be a program name with args.
5275set dummy gdc; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005278if ${ac_cv_prog_GDC+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005279 $as_echo_n "(cached) " >&6
5280else
5281 if test -n "$GDC"; then
5282 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5283else
5284 ac_prog_rejected=no
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005292 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5293 ac_prog_rejected=yes
5294 continue
5295 fi
5296 ac_cv_prog_GDC="gdc"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
5301 done
5302IFS=$as_save_IFS
5303
5304if test $ac_prog_rejected = yes; then
5305 # We found a bogon in the path, so make sure we never use it.
5306 set dummy $ac_cv_prog_GDC
5307 shift
5308 if test $# != 0; then
5309 # We chose a different compiler from the bogus one.
5310 # However, it has the same basename, so the bogon will be chosen
5311 # first if we set GDC to just the basename; use the full file name.
5312 shift
5313 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5314 fi
5315fi
5316fi
5317fi
5318GDC=$ac_cv_prog_GDC
5319if test -n "$GDC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5321$as_echo "$GDC" >&6; }
5322else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324$as_echo "no" >&6; }
5325fi
5326
5327
5328fi
5329
5330
5331# Provide some information about the compiler.
5332$as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5333set X $ac_compile
5334ac_compiler=$2
5335{ { ac_try="$ac_compiler --version >&5"
5336case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339esac
5340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341$as_echo "$ac_try_echo"; } >&5
5342 (eval "$ac_compiler --version >&5") 2>conftest.err
5343 ac_status=$?
5344 if test -s conftest.err; then
5345 sed '10a\
5346... rest of stderr output deleted ...
5347 10q' conftest.err >conftest.er1
5348 cat conftest.er1 >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005349 fi
Joseph Myers22e05272018-10-31 17:03:16 +00005350 rm -f conftest.er1 conftest.err
Iain Buclawb4c522f2018-10-28 19:51:47 +00005351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }
5353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5361$as_echo_n "checking for absolute libphobos source path... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005362if ${phobos_cv_abs_srcdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005363 $as_echo_n "(cached) " >&6
5364else
5365 phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5368$as_echo "$phobos_cv_abs_srcdir" >&6; }
5369 if test -d "$phobos_cv_abs_srcdir"; then :
5370
5371else
Joseph Myers22e05272018-10-31 17:03:16 +00005372 as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005373fi
5374
5375
5376
5377
5378 gdc_save_DFLAGS=$GDCFLAGS
5379 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5380
5381 ac_ext=d
5382ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5383ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384ac_compiler_gnu=yes
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5387$as_echo_n "checking If $GDC can compile D sources... " >&6; }
5388 cat > conftest.$ac_ext <<_ACEOF
5389module mod;
5390
5391
5392extern(C) int main() {
5393 return 0;
5394}
5395_ACEOF
5396if ac_fn_d_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398$as_echo "yes" >&6; }
5399else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005402 as_fn_error $? "can't compile D sources!" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_ext=c
5406ac_cpp='$CPP $CPPFLAGS'
5407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412 GDCFLAGS=$gdc_save_DFLAGS
5413
5414
5415
5416
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5420$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5421 # Check whether --enable-maintainer-mode was given.
5422if test "${enable_maintainer_mode+set}" = set; then :
5423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5424else
5425 USE_MAINTAINER_MODE=no
5426fi
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5429$as_echo "$USE_MAINTAINER_MODE" >&6; }
5430 if test $USE_MAINTAINER_MODE = yes; then
5431 MAINTAINER_MODE_TRUE=
5432 MAINTAINER_MODE_FALSE='#'
5433else
5434 MAINTAINER_MODE_TRUE='#'
5435 MAINTAINER_MODE_FALSE=
5436fi
5437
5438 MAINT=$MAINTAINER_MODE_TRUE
5439
5440
5441if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005446if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005447 $as_echo_n "(cached) " >&6
5448else
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463done
5464 done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469RANLIB=$ac_cv_prog_RANLIB
5470if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472$as_echo "$RANLIB" >&6; }
5473else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
5477
5478
5479fi
5480if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483set dummy ranlib; ac_word=$2
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005486if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005487 $as_echo_n "(cached) " >&6
5488else
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00005498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00005499 ac_cv_prog_ac_ct_RANLIB="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503done
5504 done
5505IFS=$as_save_IFS
5506
5507fi
5508fi
5509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5510if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512$as_echo "$ac_ct_RANLIB" >&6; }
5513else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515$as_echo "no" >&6; }
5516fi
5517
5518 if test "x$ac_ct_RANLIB" = x; then
5519 RANLIB=":"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522yes:)
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525ac_tool_warned=yes ;;
5526esac
5527 RANLIB=$ac_ct_RANLIB
5528 fi
5529else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531fi
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5535$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5536set x ${MAKE-make}
5537ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Joseph Myers22e05272018-10-31 17:03:16 +00005538if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005539 $as_echo_n "(cached) " >&6
5540else
5541 cat >conftest.make <<\_ACEOF
5542SHELL = /bin/sh
5543all:
5544 @echo '@@@%%%=$(MAKE)=@@@%%%'
5545_ACEOF
Joseph Myers22e05272018-10-31 17:03:16 +00005546# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Iain Buclawb4c522f2018-10-28 19:51:47 +00005547case `${MAKE-make} -f conftest.make 2>/dev/null` in
5548 *@@@%%%=?*=@@@%%%*)
5549 eval ac_cv_prog_make_${ac_make}_set=yes;;
5550 *)
5551 eval ac_cv_prog_make_${ac_make}_set=no;;
5552esac
5553rm -f conftest.make
5554fi
5555if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557$as_echo "yes" >&6; }
5558 SET_MAKE=
5559else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561$as_echo "no" >&6; }
5562 SET_MAKE="MAKE=${MAKE-make}"
5563fi
5564
5565
5566# This should be inherited in the recursive make, but ensure it is defined.
5567test "$AR" || AR=ar
5568
5569
5570CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5571
5572
5573
5574# Enable libtool
5575case `pwd` in
5576 *\ * | *\ *)
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5578$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5579esac
5580
5581
5582
5583macro_version='2.2.7a'
5584macro_revision='1.3134'
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598ltmain="$ac_aux_dir/ltmain.sh"
5599
5600# Backslashify metacharacters that are still active within
5601# double-quoted strings.
5602sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5603
5604# Same as above, but do not quote variable references.
5605double_quote_subst='s/\(["`\\]\)/\\\1/g'
5606
5607# Sed substitution to delay expansion of an escaped shell variable in a
5608# double_quote_subst'ed string.
5609delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5610
5611# Sed substitution to delay expansion of an escaped single quote.
5612delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5613
5614# Sed substitution to avoid accidental globbing in evaled expressions
5615no_glob_subst='s/\*/\\\*/g'
5616
5617ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5618ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5619ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5622$as_echo_n "checking how to print strings... " >&6; }
5623# Test print first, because it will be a builtin if present.
5624if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5625 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5626 ECHO='print -r --'
5627elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5628 ECHO='printf %s\n'
5629else
5630 # Use this function as a fallback that always works.
5631 func_fallback_echo ()
5632 {
5633 eval 'cat <<_LTECHO_EOF
5634$1
5635_LTECHO_EOF'
5636 }
5637 ECHO='func_fallback_echo'
5638fi
5639
5640# func_echo_all arg...
5641# Invoke $ECHO with all args, space-separated.
5642func_echo_all ()
5643{
5644 $ECHO ""
5645}
5646
5647case "$ECHO" in
5648 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5649$as_echo "printf" >&6; } ;;
5650 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5651$as_echo "print -r" >&6; } ;;
5652 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5653$as_echo "cat" >&6; } ;;
5654esac
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5670$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005671if ${ac_cv_path_SED+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005672 $as_echo_n "(cached) " >&6
5673else
5674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5675 for ac_i in 1 2 3 4 5 6 7; do
5676 ac_script="$ac_script$as_nl$ac_script"
5677 done
5678 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5679 { ac_script=; unset ac_script;}
5680 if test -z "$SED"; then
5681 ac_path_SED_found=false
5682 # Loop through the user's path and test for each of PROGNAME-LIST
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_prog in sed gsed; do
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005691 as_fn_executable_p "$ac_path_SED" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005692# Check for GNU ac_path_SED and select it if it is found.
5693 # Check for GNU $ac_path_SED
5694case `"$ac_path_SED" --version 2>&1` in
5695*GNU*)
5696 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5697*)
5698 ac_count=0
5699 $as_echo_n 0123456789 >"conftest.in"
5700 while :
5701 do
5702 cat "conftest.in" "conftest.in" >"conftest.tmp"
5703 mv "conftest.tmp" "conftest.in"
5704 cp "conftest.in" "conftest.nl"
5705 $as_echo '' >> "conftest.nl"
5706 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5708 as_fn_arith $ac_count + 1 && ac_count=$as_val
5709 if test $ac_count -gt ${ac_path_SED_max-0}; then
5710 # Best one so far, save it but keep looking for a better one
5711 ac_cv_path_SED="$ac_path_SED"
5712 ac_path_SED_max=$ac_count
5713 fi
5714 # 10*(2^10) chars as input seems more than enough
5715 test $ac_count -gt 10 && break
5716 done
5717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5718esac
5719
5720 $ac_path_SED_found && break 3
5721 done
5722 done
5723 done
5724IFS=$as_save_IFS
5725 if test -z "$ac_cv_path_SED"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005726 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005727 fi
5728else
5729 ac_cv_path_SED=$SED
5730fi
5731
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5734$as_echo "$ac_cv_path_SED" >&6; }
5735 SED="$ac_cv_path_SED"
5736 rm -f conftest.sed
5737
5738test -z "$SED" && SED=sed
5739Xsed="$SED -e 1s/^X//"
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
Iain Buclawb4c522f2018-10-28 19:51:47 +00005751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5752$as_echo_n "checking for fgrep... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005753if ${ac_cv_path_FGREP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005754 $as_echo_n "(cached) " >&6
5755else
5756 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5757 then ac_cv_path_FGREP="$GREP -F"
5758 else
5759 if test -z "$FGREP"; then
5760 ac_path_FGREP_found=false
5761 # Loop through the user's path and test for each of PROGNAME-LIST
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_prog in fgrep; do
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Joseph Myers22e05272018-10-31 17:03:16 +00005770 as_fn_executable_p "$ac_path_FGREP" || continue
Iain Buclawb4c522f2018-10-28 19:51:47 +00005771# Check for GNU ac_path_FGREP and select it if it is found.
5772 # Check for GNU $ac_path_FGREP
5773case `"$ac_path_FGREP" --version 2>&1` in
5774*GNU*)
5775 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5776*)
5777 ac_count=0
5778 $as_echo_n 0123456789 >"conftest.in"
5779 while :
5780 do
5781 cat "conftest.in" "conftest.in" >"conftest.tmp"
5782 mv "conftest.tmp" "conftest.in"
5783 cp "conftest.in" "conftest.nl"
5784 $as_echo 'FGREP' >> "conftest.nl"
5785 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5787 as_fn_arith $ac_count + 1 && ac_count=$as_val
5788 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5789 # Best one so far, save it but keep looking for a better one
5790 ac_cv_path_FGREP="$ac_path_FGREP"
5791 ac_path_FGREP_max=$ac_count
5792 fi
5793 # 10*(2^10) chars as input seems more than enough
5794 test $ac_count -gt 10 && break
5795 done
5796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5797esac
5798
5799 $ac_path_FGREP_found && break 3
5800 done
5801 done
5802 done
5803IFS=$as_save_IFS
5804 if test -z "$ac_cv_path_FGREP"; then
Joseph Myers22e05272018-10-31 17:03:16 +00005805 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 +00005806 fi
5807else
5808 ac_cv_path_FGREP=$FGREP
5809fi
5810
5811 fi
5812fi
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5814$as_echo "$ac_cv_path_FGREP" >&6; }
5815 FGREP="$ac_cv_path_FGREP"
5816
5817
5818test -z "$GREP" && GREP=grep
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838# Check whether --with-gnu-ld was given.
5839if test "${with_gnu_ld+set}" = set; then :
5840 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5841else
5842 with_gnu_ld=no
5843fi
5844
5845ac_prog=ld
5846if test "$GCC" = yes; then
5847 # Check if gcc -print-prog-name=ld gives a path.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5849$as_echo_n "checking for ld used by $CC... " >&6; }
5850 case $host in
5851 *-*-mingw*)
5852 # gcc leaves a trailing carriage return which upsets mingw
5853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5854 *)
5855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5856 esac
5857 case $ac_prog in
5858 # Accept absolute paths.
5859 [\\/]* | ?:[\\/]*)
5860 re_direlt='/[^/][^/]*/\.\./'
5861 # Canonicalize the pathname of ld
5862 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5863 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5864 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5865 done
5866 test -z "$LD" && LD="$ac_prog"
5867 ;;
5868 "")
5869 # If it fails, then pretend we aren't using GCC.
5870 ac_prog=ld
5871 ;;
5872 *)
5873 # If it is relative, then search for the first ld in PATH.
5874 with_gnu_ld=unknown
5875 ;;
5876 esac
5877elif test "$with_gnu_ld" = yes; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5879$as_echo_n "checking for GNU ld... " >&6; }
5880else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5882$as_echo_n "checking for non-GNU ld... " >&6; }
5883fi
Joseph Myers22e05272018-10-31 17:03:16 +00005884if ${lt_cv_path_LD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005885 $as_echo_n "(cached) " >&6
5886else
5887 if test -z "$LD"; then
5888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5889 for ac_dir in $PATH; do
5890 IFS="$lt_save_ifs"
5891 test -z "$ac_dir" && ac_dir=.
5892 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5893 lt_cv_path_LD="$ac_dir/$ac_prog"
5894 # Check to see if the program is GNU ld. I'd rather use --version,
5895 # but apparently some variants of GNU ld only accept -v.
5896 # Break only if it was the GNU/non-GNU ld that we prefer.
5897 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5898 *GNU* | *'with BFD'*)
5899 test "$with_gnu_ld" != no && break
5900 ;;
5901 *)
5902 test "$with_gnu_ld" != yes && break
5903 ;;
5904 esac
5905 fi
5906 done
5907 IFS="$lt_save_ifs"
5908else
5909 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5910fi
5911fi
5912
5913LD="$lt_cv_path_LD"
5914if test -n "$LD"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5916$as_echo "$LD" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
Joseph Myers22e05272018-10-31 17:03:16 +00005921test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +00005922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5923$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005924if ${lt_cv_prog_gnu_ld+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005925 $as_echo_n "(cached) " >&6
5926else
5927 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5928case `$LD -v 2>&1 </dev/null` in
5929*GNU* | *'with BFD'*)
5930 lt_cv_prog_gnu_ld=yes
5931 ;;
5932*)
5933 lt_cv_prog_gnu_ld=no
5934 ;;
5935esac
5936fi
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5938$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5939with_gnu_ld=$lt_cv_prog_gnu_ld
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5950$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00005951if ${lt_cv_path_NM+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00005952 $as_echo_n "(cached) " >&6
5953else
5954 if test -n "$NM"; then
5955 # Let the user override the test.
5956 lt_cv_path_NM="$NM"
5957else
5958 lt_nm_to_check="${ac_tool_prefix}nm"
5959 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5960 lt_nm_to_check="$lt_nm_to_check nm"
5961 fi
5962 for lt_tmp_nm in $lt_nm_to_check; do
5963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5964 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5965 IFS="$lt_save_ifs"
5966 test -z "$ac_dir" && ac_dir=.
5967 tmp_nm="$ac_dir/$lt_tmp_nm"
5968 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5969 # Check to see if the nm accepts a BSD-compat flag.
5970 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5971 # nm: unknown option "B" ignored
5972 # Tru64's nm complains that /dev/null is an invalid object file
5973 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5974 */dev/null* | *'Invalid file or object type'*)
5975 lt_cv_path_NM="$tmp_nm -B"
5976 break
5977 ;;
5978 *)
5979 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5980 */dev/null*)
5981 lt_cv_path_NM="$tmp_nm -p"
5982 break
5983 ;;
5984 *)
5985 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5986 continue # so that we can try to find one that supports BSD flags
5987 ;;
5988 esac
5989 ;;
5990 esac
5991 fi
5992 done
5993 IFS="$lt_save_ifs"
5994 done
5995 : ${lt_cv_path_NM=no}
5996fi
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5999$as_echo "$lt_cv_path_NM" >&6; }
6000if test "$lt_cv_path_NM" != "no"; then
6001 NM="$lt_cv_path_NM"
6002else
6003 # Didn't find any BSD compatible name lister, look for dumpbin.
6004 if test -n "$DUMPBIN"; then :
6005 # Let the user override the test.
6006 else
6007 if test -n "$ac_tool_prefix"; then
6008 for ac_prog in dumpbin "link -dump"
6009 do
6010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006014if ${ac_cv_prog_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006015 $as_echo_n "(cached) " >&6
6016else
6017 if test -n "$DUMPBIN"; then
6018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032 done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037DUMPBIN=$ac_cv_prog_DUMPBIN
6038if test -n "$DUMPBIN"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6040$as_echo "$DUMPBIN" >&6; }
6041else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046
6047 test -n "$DUMPBIN" && break
6048 done
6049fi
6050if test -z "$DUMPBIN"; then
6051 ac_ct_DUMPBIN=$DUMPBIN
6052 for ac_prog in dumpbin "link -dump"
6053do
6054 # Extract the first word of "$ac_prog", so it can be a program name with args.
6055set dummy $ac_prog; ac_word=$2
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006058if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006059 $as_echo_n "(cached) " >&6
6060else
6061 if test -n "$ac_ct_DUMPBIN"; then
6062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075done
6076 done
6077IFS=$as_save_IFS
6078
6079fi
6080fi
6081ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6082if test -n "$ac_ct_DUMPBIN"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6084$as_echo "$ac_ct_DUMPBIN" >&6; }
6085else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087$as_echo "no" >&6; }
6088fi
6089
6090
6091 test -n "$ac_ct_DUMPBIN" && break
6092done
6093
6094 if test "x$ac_ct_DUMPBIN" = x; then
6095 DUMPBIN=":"
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098yes:)
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101ac_tool_warned=yes ;;
6102esac
6103 DUMPBIN=$ac_ct_DUMPBIN
6104 fi
6105fi
6106
6107 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6108 *COFF*)
6109 DUMPBIN="$DUMPBIN -symbols"
6110 ;;
6111 *)
6112 DUMPBIN=:
6113 ;;
6114 esac
6115 fi
6116
6117 if test "$DUMPBIN" != ":"; then
6118 NM="$DUMPBIN"
6119 fi
6120fi
6121test -z "$NM" && NM=nm
6122
6123
6124
6125
6126
6127
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6129$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006130if ${lt_cv_nm_interface+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006131 $as_echo_n "(cached) " >&6
6132else
6133 lt_cv_nm_interface="BSD nm"
6134 echo "int some_variable = 0;" > conftest.$ac_ext
6135 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6136 (eval "$ac_compile" 2>conftest.err)
6137 cat conftest.err >&5
6138 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6139 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6140 cat conftest.err >&5
6141 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6142 cat conftest.out >&5
6143 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6144 lt_cv_nm_interface="MS dumpbin"
6145 fi
6146 rm -f conftest*
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6149$as_echo "$lt_cv_nm_interface" >&6; }
6150
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6152$as_echo_n "checking whether ln -s works... " >&6; }
6153LN_S=$as_ln_s
6154if test "$LN_S" = "ln -s"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6156$as_echo "yes" >&6; }
6157else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6159$as_echo "no, using $LN_S" >&6; }
6160fi
6161
6162# find the maximum length of command line arguments
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6164$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006165if ${lt_cv_sys_max_cmd_len+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006166 $as_echo_n "(cached) " >&6
6167else
6168 i=0
6169 teststring="ABCD"
6170
6171 case $build_os in
6172 msdosdjgpp*)
6173 # On DJGPP, this test can blow up pretty badly due to problems in libc
6174 # (any single argument exceeding 2000 bytes causes a buffer overrun
6175 # during glob expansion). Even if it were fixed, the result of this
6176 # check would be larger than it should be.
6177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6178 ;;
6179
6180 gnu*)
6181 # Under GNU Hurd, this test is not required because there is
6182 # no limit to the length of command line arguments.
6183 # Libtool will interpret -1 as no limit whatsoever
6184 lt_cv_sys_max_cmd_len=-1;
6185 ;;
6186
6187 cygwin* | mingw* | cegcc*)
6188 # On Win9x/ME, this test blows up -- it succeeds, but takes
6189 # about 5 minutes as the teststring grows exponentially.
6190 # Worse, since 9x/ME are not pre-emptively multitasking,
6191 # you end up with a "frozen" computer, even though with patience
6192 # the test eventually succeeds (with a max line length of 256k).
6193 # Instead, let's just punt: use the minimum linelength reported by
6194 # all of the supported platforms: 8192 (on NT/2K/XP).
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
6198 mint*)
6199 # On MiNT this can take a long time and run out of memory.
6200 lt_cv_sys_max_cmd_len=8192;
6201 ;;
6202
6203 amigaos*)
6204 # On AmigaOS with pdksh, this test takes hours, literally.
6205 # So we just punt and use a minimum line length of 8192.
6206 lt_cv_sys_max_cmd_len=8192;
6207 ;;
6208
6209 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6210 # This has been around since 386BSD, at least. Likely further.
6211 if test -x /sbin/sysctl; then
6212 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6213 elif test -x /usr/sbin/sysctl; then
6214 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6215 else
6216 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6217 fi
6218 # And add a safety zone
6219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6221 ;;
6222
6223 interix*)
6224 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6225 lt_cv_sys_max_cmd_len=196608
6226 ;;
6227
6228 osf*)
6229 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6230 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6231 # nice to cause kernel panics so lets avoid the loop below.
6232 # First set a reasonable default.
6233 lt_cv_sys_max_cmd_len=16384
6234 #
6235 if test -x /sbin/sysconfig; then
6236 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6237 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6238 esac
6239 fi
6240 ;;
6241 sco3.2v5*)
6242 lt_cv_sys_max_cmd_len=102400
6243 ;;
6244 sysv5* | sco5v6* | sysv4.2uw2*)
6245 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6246 if test -n "$kargmax"; then
6247 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6248 else
6249 lt_cv_sys_max_cmd_len=32768
6250 fi
6251 ;;
6252 *)
6253 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6254 if test -n "$lt_cv_sys_max_cmd_len"; then
6255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6257 else
6258 # Make teststring a little bigger before we do anything with it.
6259 # a 1K string should be a reasonable start.
6260 for i in 1 2 3 4 5 6 7 8 ; do
6261 teststring=$teststring$teststring
6262 done
6263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6264 # If test is not a shell built-in, we'll probably end up computing a
6265 # maximum length that is only half of the actual maximum length, but
6266 # we can't tell.
6267 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6268 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6269 test $i != 17 # 1/2 MB should be enough
6270 do
6271 i=`expr $i + 1`
6272 teststring=$teststring$teststring
6273 done
6274 # Only check the string length outside the loop.
6275 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6276 teststring=
6277 # Add a significant safety factor because C++ compilers can tack on
6278 # massive amounts of additional arguments before passing them to the
6279 # linker. It appears as though 1/2 is a usable value.
6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6281 fi
6282 ;;
6283 esac
6284
6285fi
6286
6287if test -n $lt_cv_sys_max_cmd_len ; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6289$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6290else
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6292$as_echo "none" >&6; }
6293fi
6294max_cmd_len=$lt_cv_sys_max_cmd_len
6295
6296
6297
6298
6299
6300
6301: ${CP="cp -f"}
6302: ${MV="mv -f"}
6303: ${RM="rm -f"}
6304
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6306$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6307# Try some XSI features
6308xsi_shell=no
6309( _lt_dummy="a/b/c"
6310 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6311 = c,a/b,, \
6312 && eval 'test $(( 1 + 1 )) -eq 2 \
6313 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6314 && xsi_shell=yes
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6316$as_echo "$xsi_shell" >&6; }
6317
6318
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6320$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6321lt_shell_append=no
6322( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6323 >/dev/null 2>&1 \
6324 && lt_shell_append=yes
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6326$as_echo "$lt_shell_append" >&6; }
6327
6328
6329if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6330 lt_unset=unset
6331else
6332 lt_unset=false
6333fi
6334
6335
6336
6337
6338
6339# test EBCDIC or ASCII
6340case `echo X|tr X '\101'` in
6341 A) # ASCII based system
6342 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6343 lt_SP2NL='tr \040 \012'
6344 lt_NL2SP='tr \015\012 \040\040'
6345 ;;
6346 *) # EBCDIC based system
6347 lt_SP2NL='tr \100 \n'
6348 lt_NL2SP='tr \r\n \100\100'
6349 ;;
6350esac
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6361$as_echo_n "checking for $LD option to reload object files... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006362if ${lt_cv_ld_reload_flag+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006363 $as_echo_n "(cached) " >&6
6364else
6365 lt_cv_ld_reload_flag='-r'
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6368$as_echo "$lt_cv_ld_reload_flag" >&6; }
6369reload_flag=$lt_cv_ld_reload_flag
6370case $reload_flag in
6371"" | " "*) ;;
6372*) reload_flag=" $reload_flag" ;;
6373esac
6374reload_cmds='$LD$reload_flag -o $output$reload_objs'
6375case $host_os in
6376 darwin*)
6377 if test "$GCC" = yes; then
6378 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6379 else
6380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6381 fi
6382 ;;
6383esac
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6395set dummy ${ac_tool_prefix}objdump; ac_word=$2
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006398if ${ac_cv_prog_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006399 $as_echo_n "(cached) " >&6
6400else
6401 if test -n "$OBJDUMP"; then
6402 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006411 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416 done
6417IFS=$as_save_IFS
6418
6419fi
6420fi
6421OBJDUMP=$ac_cv_prog_OBJDUMP
6422if test -n "$OBJDUMP"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6424$as_echo "$OBJDUMP" >&6; }
6425else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427$as_echo "no" >&6; }
6428fi
6429
6430
6431fi
6432if test -z "$ac_cv_prog_OBJDUMP"; then
6433 ac_ct_OBJDUMP=$OBJDUMP
6434 # Extract the first word of "objdump", so it can be a program name with args.
6435set dummy objdump; ac_word=$2
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006438if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006439 $as_echo_n "(cached) " >&6
6440else
6441 if test -n "$ac_ct_OBJDUMP"; then
6442 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6443else
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006451 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455done
6456 done
6457IFS=$as_save_IFS
6458
6459fi
6460fi
6461ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6462if test -n "$ac_ct_OBJDUMP"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6464$as_echo "$ac_ct_OBJDUMP" >&6; }
6465else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
6468fi
6469
6470 if test "x$ac_ct_OBJDUMP" = x; then
6471 OBJDUMP="false"
6472 else
6473 case $cross_compiling:$ac_tool_warned in
6474yes:)
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477ac_tool_warned=yes ;;
6478esac
6479 OBJDUMP=$ac_ct_OBJDUMP
6480 fi
6481else
6482 OBJDUMP="$ac_cv_prog_OBJDUMP"
6483fi
6484
6485test -z "$OBJDUMP" && OBJDUMP=objdump
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6496$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006497if ${lt_cv_deplibs_check_method+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006498 $as_echo_n "(cached) " >&6
6499else
6500 lt_cv_file_magic_cmd='$MAGIC_CMD'
6501lt_cv_file_magic_test_file=
6502lt_cv_deplibs_check_method='unknown'
6503# Need to set the preceding variable on all platforms that support
6504# interlibrary dependencies.
6505# 'none' -- dependencies not supported.
6506# `unknown' -- same as none, but documents that we really don't know.
6507# 'pass_all' -- all dependencies passed with no checks.
6508# 'test_compile' -- check by making test program.
6509# 'file_magic [[regex]]' -- check by looking for files in library path
6510# which responds to the $file_magic_cmd with a given extended regex.
6511# If you have `file' or equivalent on your system and you're not sure
6512# whether `pass_all' will *always* work, you probably want this one.
6513
6514case $host_os in
6515aix[4-9]*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519beos*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523bsdi[45]*)
6524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6525 lt_cv_file_magic_cmd='/usr/bin/file -L'
6526 lt_cv_file_magic_test_file=/shlib/libc.so
6527 ;;
6528
6529cygwin*)
6530 # func_win32_libid is a shell function defined in ltmain.sh
6531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532 lt_cv_file_magic_cmd='func_win32_libid'
6533 ;;
6534
6535mingw* | pw32*)
6536 # Base MSYS/MinGW do not provide the 'file' command needed by
6537 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6538 # unless we find 'file', for example because we are cross-compiling.
6539 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6540 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6541 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6542 lt_cv_file_magic_cmd='func_win32_libid'
6543 else
6544 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6545 lt_cv_file_magic_cmd='$OBJDUMP -f'
6546 fi
6547 ;;
6548
6549cegcc*)
6550 # use the weaker test based on 'objdump'. See mingw*.
6551 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6552 lt_cv_file_magic_cmd='$OBJDUMP -f'
6553 ;;
6554
6555darwin* | rhapsody*)
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558
6559freebsd* | dragonfly*)
6560 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6561 case $host_cpu in
6562 i*86 )
6563 # Not sure whether the presence of OpenBSD here was a mistake.
6564 # Let's accept both of them until this is cleared up.
6565 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6566 lt_cv_file_magic_cmd=/usr/bin/file
6567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6568 ;;
6569 esac
6570 else
6571 lt_cv_deplibs_check_method=pass_all
6572 fi
6573 ;;
6574
6575gnu*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579haiku*)
6580 lt_cv_deplibs_check_method=pass_all
6581 ;;
6582
6583hpux10.20* | hpux11*)
6584 lt_cv_file_magic_cmd=/usr/bin/file
6585 case $host_cpu in
6586 ia64*)
6587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6588 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6589 ;;
6590 hppa*64*)
6591 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]'
6592 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6593 ;;
6594 *)
6595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6596 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6597 ;;
6598 esac
6599 ;;
6600
6601interix[3-9]*)
6602 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6604 ;;
6605
6606irix5* | irix6* | nonstopux*)
6607 case $LD in
6608 *-32|*"-32 ") libmagic=32-bit;;
6609 *-n32|*"-n32 ") libmagic=N32;;
6610 *-64|*"-64 ") libmagic=64-bit;;
6611 *) libmagic=never-match;;
6612 esac
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615
6616# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00006617linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00006618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620
6621netbsd*)
6622 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6624 else
6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6626 fi
6627 ;;
6628
6629newos6*)
6630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6631 lt_cv_file_magic_cmd=/usr/bin/file
6632 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6633 ;;
6634
6635*nto* | *qnx*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639openbsd*)
6640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6642 else
6643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6644 fi
6645 ;;
6646
6647osf3* | osf4* | osf5*)
6648 lt_cv_deplibs_check_method=pass_all
6649 ;;
6650
6651rdos*)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654
6655solaris*)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658
6659sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662
6663sysv4 | sysv4.3*)
6664 case $host_vendor in
6665 motorola)
6666 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]'
6667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6668 ;;
6669 ncr)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672 sequent)
6673 lt_cv_file_magic_cmd='/bin/file'
6674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6675 ;;
6676 sni)
6677 lt_cv_file_magic_cmd='/bin/file'
6678 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6679 lt_cv_file_magic_test_file=/lib/libc.so
6680 ;;
6681 siemens)
6682 lt_cv_deplibs_check_method=pass_all
6683 ;;
6684 pc)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687 esac
6688 ;;
6689
6690tpf*)
6691 lt_cv_deplibs_check_method=pass_all
6692 ;;
6693esac
6694
6695fi
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6697$as_echo "$lt_cv_deplibs_check_method" >&6; }
6698file_magic_cmd=$lt_cv_file_magic_cmd
6699deplibs_check_method=$lt_cv_deplibs_check_method
6700test -z "$deplibs_check_method" && deplibs_check_method=unknown
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}ar; ac_word=$2
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006718if ${ac_cv_prog_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006719 $as_echo_n "(cached) " >&6
6720else
6721 if test -n "$AR"; then
6722 ac_cv_prog_AR="$AR" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006731 ac_cv_prog_AR="${ac_tool_prefix}ar"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736 done
6737IFS=$as_save_IFS
6738
6739fi
6740fi
6741AR=$ac_cv_prog_AR
6742if test -n "$AR"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6744$as_echo "$AR" >&6; }
6745else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
6748fi
6749
6750
6751fi
6752if test -z "$ac_cv_prog_AR"; then
6753 ac_ct_AR=$AR
6754 # Extract the first word of "ar", so it can be a program name with args.
6755set dummy ar; ac_word=$2
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006758if ${ac_cv_prog_ac_ct_AR+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006759 $as_echo_n "(cached) " >&6
6760else
6761 if test -n "$ac_ct_AR"; then
6762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006771 ac_cv_prog_ac_ct_AR="ar"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776 done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781ac_ct_AR=$ac_cv_prog_ac_ct_AR
6782if test -n "$ac_ct_AR"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6784$as_echo "$ac_ct_AR" >&6; }
6785else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
6788fi
6789
6790 if test "x$ac_ct_AR" = x; then
6791 AR="false"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799 AR=$ac_ct_AR
6800 fi
6801else
6802 AR="$ac_cv_prog_AR"
6803fi
6804
6805test -z "$AR" && AR=ar
6806test -z "$AR_FLAGS" && AR_FLAGS=cru
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}strip; ac_word=$2
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006823if ${ac_cv_prog_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$STRIP"; then
6827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841 done
6842IFS=$as_save_IFS
6843
6844fi
6845fi
6846STRIP=$ac_cv_prog_STRIP
6847if test -n "$STRIP"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6849$as_echo "$STRIP" >&6; }
6850else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_STRIP"; then
6858 ac_ct_STRIP=$STRIP
6859 # Extract the first word of "strip", so it can be a program name with args.
6860set dummy strip; ac_word=$2
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006863if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006864 $as_echo_n "(cached) " >&6
6865else
6866 if test -n "$ac_ct_STRIP"; then
6867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006876 ac_cv_prog_ac_ct_STRIP="strip"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881 done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6887if test -n "$ac_ct_STRIP"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6889$as_echo "$ac_ct_STRIP" >&6; }
6890else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892$as_echo "no" >&6; }
6893fi
6894
6895 if test "x$ac_ct_STRIP" = x; then
6896 STRIP=":"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904 STRIP=$ac_ct_STRIP
6905 fi
6906else
6907 STRIP="$ac_cv_prog_STRIP"
6908fi
6909
6910test -z "$STRIP" && STRIP=:
6911
6912
6913
6914
6915
6916
6917if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006922if ${ac_cv_prog_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006923 $as_echo_n "(cached) " >&6
6924else
6925 if test -n "$RANLIB"; then
6926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 break 2
6938 fi
6939done
6940 done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945RANLIB=$ac_cv_prog_RANLIB
6946if test -n "$RANLIB"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6948$as_echo "$RANLIB" >&6; }
6949else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953
6954
6955fi
6956if test -z "$ac_cv_prog_RANLIB"; then
6957 ac_ct_RANLIB=$RANLIB
6958 # Extract the first word of "ranlib", so it can be a program name with args.
6959set dummy ranlib; ac_word=$2
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00006962if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00006963 $as_echo_n "(cached) " >&6
6964else
6965 if test -n "$ac_ct_RANLIB"; then
6966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971 IFS=$as_save_IFS
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00006974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00006975 ac_cv_prog_ac_ct_RANLIB="ranlib"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980 done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6986if test -n "$ac_ct_RANLIB"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6988$as_echo "$ac_ct_RANLIB" >&6; }
6989else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993
6994 if test "x$ac_ct_RANLIB" = x; then
6995 RANLIB=":"
6996 else
6997 case $cross_compiling:$ac_tool_warned in
6998yes:)
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001ac_tool_warned=yes ;;
7002esac
7003 RANLIB=$ac_ct_RANLIB
7004 fi
7005else
7006 RANLIB="$ac_cv_prog_RANLIB"
7007fi
7008
7009test -z "$RANLIB" && RANLIB=:
7010
7011
7012
7013
7014
7015
7016# Determine commands to create old-style static archives.
7017old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7018old_postinstall_cmds='chmod 644 $oldlib'
7019old_postuninstall_cmds=
7020
7021if test -n "$RANLIB"; then
7022 case $host_os in
7023 openbsd*)
7024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7025 ;;
7026 *)
7027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7028 ;;
7029 esac
7030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7031fi
7032
7033case $host_os in
7034 darwin*)
7035 lock_old_archive_extraction=yes ;;
7036 *)
7037 lock_old_archive_extraction=no ;;
7038esac
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078# If no C compiler was specified, use CC.
7079LTCC=${LTCC-"$CC"}
7080
7081# If no C compiler flags were specified, use CFLAGS.
7082LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7083
7084# Allow CC to be a program name with arguments.
7085compiler=$CC
7086
7087
7088# Check for command to grab the raw symbol name followed by C symbol from nm.
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007091if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007092 $as_echo_n "(cached) " >&6
7093else
7094
7095# These are sane defaults that work on at least a few old systems.
7096# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7097
7098# Character class describing NM global symbol codes.
7099symcode='[BCDEGRST]'
7100
7101# Regexp to match symbols that can be accessed directly from C.
7102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7103
7104# Define system-specific variables.
7105case $host_os in
7106aix*)
7107 symcode='[BCDT]'
7108 ;;
7109cygwin* | mingw* | pw32* | cegcc*)
7110 symcode='[ABCDGISTW]'
7111 ;;
7112hpux*)
7113 if test "$host_cpu" = ia64; then
7114 symcode='[ABCDEGRST]'
7115 fi
7116 ;;
7117irix* | nonstopux*)
7118 symcode='[BCDEGRST]'
7119 ;;
7120osf*)
7121 symcode='[BCDEGQRST]'
7122 ;;
7123solaris*)
7124 symcode='[BDRT]'
7125 ;;
7126sco3.2v5*)
7127 symcode='[DT]'
7128 ;;
7129sysv4.2uw2*)
7130 symcode='[DT]'
7131 ;;
7132sysv5* | sco5v6* | unixware* | OpenUNIX*)
7133 symcode='[ABDT]'
7134 ;;
7135sysv4)
7136 symcode='[DFNSTU]'
7137 ;;
7138esac
7139
7140# If we're using GNU nm, then use its standard symbol codes.
7141case `$NM -V 2>&1` in
7142*GNU* | *'with BFD'*)
7143 symcode='[ABCDGIRSTW]' ;;
7144esac
7145
7146# Transform an extracted symbol line into a proper C declaration.
7147# Some systems (esp. on ia64) link data and code symbols differently,
7148# so use this general approach.
7149lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7150
7151# Transform an extracted symbol line into symbol name and symbol address
7152lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7153lt_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'"
7154
7155# Handle CRLF in mingw tool chain
7156opt_cr=
7157case $build_os in
7158mingw*)
7159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7160 ;;
7161esac
7162
7163# Try without a prefix underscore, then with it.
7164for ac_symprfx in "" "_"; do
7165
7166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7167 symxfrm="\\1 $ac_symprfx\\2 \\2"
7168
7169 # Write the raw and C identifiers.
7170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171 # Fake it for dumpbin and say T for any non-static function
7172 # and D for any global variable.
7173 # Also find C++ and __fastcall symbols from MSVC++,
7174 # which start with @ or ?.
7175 lt_cv_sys_global_symbol_pipe="$AWK '"\
7176" {last_section=section; section=\$ 3};"\
7177" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7178" \$ 0!~/External *\|/{next};"\
7179" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7180" {if(hide[section]) next};"\
7181" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7182" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7183" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7184" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7185" ' prfx=^$ac_symprfx"
7186 else
7187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7188 fi
7189
7190 # Check to see that the pipe works correctly.
7191 pipe_works=no
7192
7193 rm -f conftest*
7194 cat > conftest.$ac_ext <<_LT_EOF
7195#ifdef __cplusplus
7196extern "C" {
7197#endif
7198char nm_test_var;
7199void nm_test_func(void);
7200void nm_test_func(void){}
7201#ifdef __cplusplus
7202}
7203#endif
7204int main(){nm_test_var='a';nm_test_func();return(0);}
7205_LT_EOF
7206
7207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7208 (eval $ac_compile) 2>&5
7209 ac_status=$?
7210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7211 test $ac_status = 0; }; then
7212 # Now try to grab the symbols.
7213 nlist=conftest.nm
7214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7215 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7216 ac_status=$?
7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7218 test $ac_status = 0; } && test -s "$nlist"; then
7219 # Try sorting and uniquifying the output.
7220 if sort "$nlist" | uniq > "$nlist"T; then
7221 mv -f "$nlist"T "$nlist"
7222 else
7223 rm -f "$nlist"T
7224 fi
7225
7226 # Make sure that we snagged all the symbols we need.
7227 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7228 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7229 cat <<_LT_EOF > conftest.$ac_ext
7230#ifdef __cplusplus
7231extern "C" {
7232#endif
7233
7234_LT_EOF
7235 # Now generate the symbol file.
7236 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7237
7238 cat <<_LT_EOF >> conftest.$ac_ext
7239
7240/* The mapping between symbol names and symbols. */
7241const struct {
7242 const char *name;
7243 void *address;
7244}
7245lt__PROGRAM__LTX_preloaded_symbols[] =
7246{
7247 { "@PROGRAM@", (void *) 0 },
7248_LT_EOF
7249 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7250 cat <<\_LT_EOF >> conftest.$ac_ext
7251 {0, (void *) 0}
7252};
7253
7254/* This works around a problem in FreeBSD linker */
7255#ifdef FREEBSD_WORKAROUND
7256static const void *lt_preloaded_setup() {
7257 return lt__PROGRAM__LTX_preloaded_symbols;
7258}
7259#endif
7260
7261#ifdef __cplusplus
7262}
7263#endif
7264_LT_EOF
7265 # Now try linking the two files.
7266 mv conftest.$ac_objext conftstm.$ac_objext
7267 lt_save_LIBS="$LIBS"
7268 lt_save_CFLAGS="$CFLAGS"
7269 LIBS="conftstm.$ac_objext"
7270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7272 (eval $ac_link) 2>&5
7273 ac_status=$?
7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7276 pipe_works=yes
7277 fi
7278 LIBS="$lt_save_LIBS"
7279 CFLAGS="$lt_save_CFLAGS"
7280 else
7281 echo "cannot find nm_test_func in $nlist" >&5
7282 fi
7283 else
7284 echo "cannot find nm_test_var in $nlist" >&5
7285 fi
7286 else
7287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7288 fi
7289 else
7290 echo "$progname: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7292 fi
7293 rm -rf conftest* conftst*
7294
7295 # Do not use the global_symbol_pipe unless it works.
7296 if test "$pipe_works" = yes; then
7297 break
7298 else
7299 lt_cv_sys_global_symbol_pipe=
7300 fi
7301done
7302
7303fi
7304
7305if test -z "$lt_cv_sys_global_symbol_pipe"; then
7306 lt_cv_sys_global_symbol_to_cdecl=
7307fi
7308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7310$as_echo "failed" >&6; }
7311else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7313$as_echo "ok" >&6; }
7314fi
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
Iain Buclawb4c522f2018-10-28 19:51:47 +00007337# Check whether --enable-libtool-lock was given.
7338if test "${enable_libtool_lock+set}" = set; then :
7339 enableval=$enable_libtool_lock;
7340fi
7341
7342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7343
7344# Some flags need to be propagated to the compiler or linker for good
7345# libtool support.
7346case $host in
7347ia64-*-hpux*)
7348 # Find out which ABI we are using.
7349 echo 'int i;' > conftest.$ac_ext
7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 case `/usr/bin/file conftest.$ac_objext` in
7356 *ELF-32*)
7357 HPUX_IA64_MODE="32"
7358 ;;
7359 *ELF-64*)
7360 HPUX_IA64_MODE="64"
7361 ;;
7362 esac
7363 fi
7364 rm -rf conftest*
7365 ;;
7366*-*-irix6*)
7367 # Find out which ABI we are using.
7368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; then
7374 if test "$lt_cv_prog_gnu_ld" = yes; then
7375 case `/usr/bin/file conftest.$ac_objext` in
7376 *32-bit*)
7377 LD="${LD-ld} -melf32bsmip"
7378 ;;
7379 *N32*)
7380 LD="${LD-ld} -melf32bmipn32"
7381 ;;
7382 *64-bit*)
7383 LD="${LD-ld} -melf64bmip"
7384 ;;
7385 esac
7386 else
7387 case `/usr/bin/file conftest.$ac_objext` in
7388 *32-bit*)
7389 LD="${LD-ld} -32"
7390 ;;
7391 *N32*)
7392 LD="${LD-ld} -n32"
7393 ;;
7394 *64-bit*)
7395 LD="${LD-ld} -64"
7396 ;;
7397 esac
7398 fi
7399 fi
7400 rm -rf conftest*
7401 ;;
7402
7403x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7404s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7405 # Find out which ABI we are using.
7406 echo 'int i;' > conftest.$ac_ext
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408 (eval $ac_compile) 2>&5
7409 ac_status=$?
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7412 case `/usr/bin/file conftest.o` in
7413 *32-bit*)
7414 case $host in
7415 x86_64-*kfreebsd*-gnu)
7416 LD="${LD-ld} -m elf_i386_fbsd"
7417 ;;
7418 x86_64-*linux*)
7419 case `/usr/bin/file conftest.o` in
7420 *x86-64*)
7421 LD="${LD-ld} -m elf32_x86_64"
7422 ;;
7423 *)
7424 LD="${LD-ld} -m elf_i386"
7425 ;;
7426 esac
7427 ;;
7428 powerpc64le-*linux*)
7429 LD="${LD-ld} -m elf32lppclinux"
7430 ;;
7431 powerpc64-*linux*)
7432 LD="${LD-ld} -m elf32ppclinux"
7433 ;;
7434 s390x-*linux*)
7435 LD="${LD-ld} -m elf_s390"
7436 ;;
7437 sparc64-*linux*)
7438 LD="${LD-ld} -m elf32_sparc"
7439 ;;
7440 esac
7441 ;;
7442 *64-bit*)
7443 case $host in
7444 x86_64-*kfreebsd*-gnu)
7445 LD="${LD-ld} -m elf_x86_64_fbsd"
7446 ;;
7447 x86_64-*linux*)
7448 LD="${LD-ld} -m elf_x86_64"
7449 ;;
7450 powerpcle-*linux*)
7451 LD="${LD-ld} -m elf64lppc"
7452 ;;
7453 powerpc-*linux*)
7454 LD="${LD-ld} -m elf64ppc"
7455 ;;
7456 s390*-*linux*|s390*-*tpf*)
7457 LD="${LD-ld} -m elf64_s390"
7458 ;;
7459 sparc*-*linux*)
7460 LD="${LD-ld} -m elf64_sparc"
7461 ;;
7462 esac
7463 ;;
7464 esac
7465 fi
7466 rm -rf conftest*
7467 ;;
7468
7469*-*-sco3.2v5*)
7470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7471 SAVE_CFLAGS="$CFLAGS"
7472 CFLAGS="$CFLAGS -belf"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007475if ${lt_cv_cc_needs_belf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007476 $as_echo_n "(cached) " >&6
7477else
7478 ac_ext=c
7479ac_cpp='$CPP $CPPFLAGS'
7480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485/* end confdefs.h. */
7486
7487int
7488main ()
7489{
7490
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495if ac_fn_c_try_link "$LINENO"; then :
7496 lt_cv_cc_needs_belf=yes
7497else
7498 lt_cv_cc_needs_belf=no
7499fi
7500rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 ac_ext=c
7503ac_cpp='$CPP $CPPFLAGS'
7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507
7508fi
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7510$as_echo "$lt_cv_cc_needs_belf" >&6; }
7511 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7513 CFLAGS="$SAVE_CFLAGS"
7514 fi
7515 ;;
7516sparc*-*solaris*)
7517 # Find out which ABI we are using.
7518 echo 'int i;' > conftest.$ac_ext
7519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7520 (eval $ac_compile) 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; }; then
7524 case `/usr/bin/file conftest.o` in
7525 *64-bit*)
7526 case $lt_cv_prog_gnu_ld in
7527 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7528 *)
7529 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7530 LD="${LD-ld} -64"
7531 fi
7532 ;;
7533 esac
7534 ;;
7535 esac
7536 fi
7537 rm -rf conftest*
7538 ;;
7539esac
7540
7541need_locks="$enable_libtool_lock"
7542
7543
7544 case $host_os in
7545 rhapsody* | darwin*)
7546 if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7548set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007551if ${ac_cv_prog_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007552 $as_echo_n "(cached) " >&6
7553else
7554 if test -n "$DSYMUTIL"; then
7555 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7556else
7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007564 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569 done
7570IFS=$as_save_IFS
7571
7572fi
7573fi
7574DSYMUTIL=$ac_cv_prog_DSYMUTIL
7575if test -n "$DSYMUTIL"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7577$as_echo "$DSYMUTIL" >&6; }
7578else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580$as_echo "no" >&6; }
7581fi
7582
7583
7584fi
7585if test -z "$ac_cv_prog_DSYMUTIL"; then
7586 ac_ct_DSYMUTIL=$DSYMUTIL
7587 # Extract the first word of "dsymutil", so it can be a program name with args.
7588set dummy dsymutil; ac_word=$2
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007591if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007592 $as_echo_n "(cached) " >&6
7593else
7594 if test -n "$ac_ct_DSYMUTIL"; then
7595 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007604 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609 done
7610IFS=$as_save_IFS
7611
7612fi
7613fi
7614ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7615if test -n "$ac_ct_DSYMUTIL"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7617$as_echo "$ac_ct_DSYMUTIL" >&6; }
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
7621fi
7622
7623 if test "x$ac_ct_DSYMUTIL" = x; then
7624 DSYMUTIL=":"
7625 else
7626 case $cross_compiling:$ac_tool_warned in
7627yes:)
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630ac_tool_warned=yes ;;
7631esac
7632 DSYMUTIL=$ac_ct_DSYMUTIL
7633 fi
7634else
7635 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7636fi
7637
7638 if test -n "$ac_tool_prefix"; then
7639 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7640set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007643if ${ac_cv_prog_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007644 $as_echo_n "(cached) " >&6
7645else
7646 if test -n "$NMEDIT"; then
7647 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7648else
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007656 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661 done
7662IFS=$as_save_IFS
7663
7664fi
7665fi
7666NMEDIT=$ac_cv_prog_NMEDIT
7667if test -n "$NMEDIT"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7669$as_echo "$NMEDIT" >&6; }
7670else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672$as_echo "no" >&6; }
7673fi
7674
7675
7676fi
7677if test -z "$ac_cv_prog_NMEDIT"; then
7678 ac_ct_NMEDIT=$NMEDIT
7679 # Extract the first word of "nmedit", so it can be a program name with args.
7680set dummy nmedit; ac_word=$2
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007683if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007684 $as_echo_n "(cached) " >&6
7685else
7686 if test -n "$ac_ct_NMEDIT"; then
7687 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007696 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701 done
7702IFS=$as_save_IFS
7703
7704fi
7705fi
7706ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7707if test -n "$ac_ct_NMEDIT"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7709$as_echo "$ac_ct_NMEDIT" >&6; }
7710else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713fi
7714
7715 if test "x$ac_ct_NMEDIT" = x; then
7716 NMEDIT=":"
7717 else
7718 case $cross_compiling:$ac_tool_warned in
7719yes:)
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722ac_tool_warned=yes ;;
7723esac
7724 NMEDIT=$ac_ct_NMEDIT
7725 fi
7726else
7727 NMEDIT="$ac_cv_prog_NMEDIT"
7728fi
7729
7730 if test -n "$ac_tool_prefix"; then
7731 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7732set dummy ${ac_tool_prefix}lipo; ac_word=$2
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007735if ${ac_cv_prog_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007736 $as_echo_n "(cached) " >&6
7737else
7738 if test -n "$LIPO"; then
7739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7740else
7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742for as_dir in $PATH
7743do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007748 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752done
7753 done
7754IFS=$as_save_IFS
7755
7756fi
7757fi
7758LIPO=$ac_cv_prog_LIPO
7759if test -n "$LIPO"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7761$as_echo "$LIPO" >&6; }
7762else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764$as_echo "no" >&6; }
7765fi
7766
7767
7768fi
7769if test -z "$ac_cv_prog_LIPO"; then
7770 ac_ct_LIPO=$LIPO
7771 # Extract the first word of "lipo", so it can be a program name with args.
7772set dummy lipo; ac_word=$2
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007775if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007776 $as_echo_n "(cached) " >&6
7777else
7778 if test -n "$ac_ct_LIPO"; then
7779 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7780else
7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007788 ac_cv_prog_ac_ct_LIPO="lipo"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793 done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7799if test -n "$ac_ct_LIPO"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7801$as_echo "$ac_ct_LIPO" >&6; }
7802else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804$as_echo "no" >&6; }
7805fi
7806
7807 if test "x$ac_ct_LIPO" = x; then
7808 LIPO=":"
7809 else
7810 case $cross_compiling:$ac_tool_warned in
7811yes:)
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7814ac_tool_warned=yes ;;
7815esac
7816 LIPO=$ac_ct_LIPO
7817 fi
7818else
7819 LIPO="$ac_cv_prog_LIPO"
7820fi
7821
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7824set dummy ${ac_tool_prefix}otool; ac_word=$2
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007827if ${ac_cv_prog_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007828 $as_echo_n "(cached) " >&6
7829else
7830 if test -n "$OTOOL"; then
7831 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7832else
7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007840 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844done
7845 done
7846IFS=$as_save_IFS
7847
7848fi
7849fi
7850OTOOL=$ac_cv_prog_OTOOL
7851if test -n "$OTOOL"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7853$as_echo "$OTOOL" >&6; }
7854else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856$as_echo "no" >&6; }
7857fi
7858
7859
7860fi
7861if test -z "$ac_cv_prog_OTOOL"; then
7862 ac_ct_OTOOL=$OTOOL
7863 # Extract the first word of "otool", so it can be a program name with args.
7864set dummy otool; ac_word=$2
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007867if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007868 $as_echo_n "(cached) " >&6
7869else
7870 if test -n "$ac_ct_OTOOL"; then
7871 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7872else
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007880 ac_cv_prog_ac_ct_OTOOL="otool"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884done
7885 done
7886IFS=$as_save_IFS
7887
7888fi
7889fi
7890ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7891if test -n "$ac_ct_OTOOL"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7893$as_echo "$ac_ct_OTOOL" >&6; }
7894else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
7897fi
7898
7899 if test "x$ac_ct_OTOOL" = x; then
7900 OTOOL=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903yes:)
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906ac_tool_warned=yes ;;
7907esac
7908 OTOOL=$ac_ct_OTOOL
7909 fi
7910else
7911 OTOOL="$ac_cv_prog_OTOOL"
7912fi
7913
7914 if test -n "$ac_tool_prefix"; then
7915 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7916set dummy ${ac_tool_prefix}otool64; ac_word=$2
7917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007919if ${ac_cv_prog_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007920 $as_echo_n "(cached) " >&6
7921else
7922 if test -n "$OTOOL64"; then
7923 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7924else
7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926for as_dir in $PATH
7927do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007932 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936done
7937 done
7938IFS=$as_save_IFS
7939
7940fi
7941fi
7942OTOOL64=$ac_cv_prog_OTOOL64
7943if test -n "$OTOOL64"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7945$as_echo "$OTOOL64" >&6; }
7946else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
7949fi
7950
7951
7952fi
7953if test -z "$ac_cv_prog_OTOOL64"; then
7954 ac_ct_OTOOL64=$OTOOL64
7955 # Extract the first word of "otool64", so it can be a program name with args.
7956set dummy otool64; ac_word=$2
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958$as_echo_n "checking for $ac_word... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00007959if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00007960 $as_echo_n "(cached) " >&6
7961else
7962 if test -n "$ac_ct_OTOOL64"; then
7963 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7964else
7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
Joseph Myers22e05272018-10-31 17:03:16 +00007971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +00007972 ac_cv_prog_ac_ct_OTOOL64="otool64"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976done
7977 done
7978IFS=$as_save_IFS
7979
7980fi
7981fi
7982ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7983if test -n "$ac_ct_OTOOL64"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7985$as_echo "$ac_ct_OTOOL64" >&6; }
7986else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988$as_echo "no" >&6; }
7989fi
7990
7991 if test "x$ac_ct_OTOOL64" = x; then
7992 OTOOL64=":"
7993 else
7994 case $cross_compiling:$ac_tool_warned in
7995yes:)
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7998ac_tool_warned=yes ;;
7999esac
8000 OTOOL64=$ac_ct_OTOOL64
8001 fi
8002else
8003 OTOOL64="$ac_cv_prog_OTOOL64"
8004fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8033$as_echo_n "checking for -single_module linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008034if ${lt_cv_apple_cc_single_mod+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008035 $as_echo_n "(cached) " >&6
8036else
8037 lt_cv_apple_cc_single_mod=no
8038 if test -z "${LT_MULTI_MODULE}"; then
8039 # By default we will add the -single_module flag. You can override
8040 # by either setting the environment variable LT_MULTI_MODULE
8041 # non-empty at configure time, or by adding -multi_module to the
8042 # link flags.
8043 rm -rf libconftest.dylib*
8044 echo "int foo(void){return 1;}" > conftest.c
8045 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8046-dynamiclib -Wl,-single_module conftest.c" >&5
8047 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8048 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8049 _lt_result=$?
8050 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8051 lt_cv_apple_cc_single_mod=yes
8052 else
8053 cat conftest.err >&5
8054 fi
8055 rm -rf libconftest.dylib*
8056 rm -f conftest.*
8057 fi
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8060$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8062$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008063if ${lt_cv_ld_exported_symbols_list+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008064 $as_echo_n "(cached) " >&6
8065else
8066 lt_cv_ld_exported_symbols_list=no
8067 save_LDFLAGS=$LDFLAGS
8068 echo "_main" > conftest.sym
8069 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h. */
8072
8073int
8074main ()
8075{
8076
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081if ac_fn_c_try_link "$LINENO"; then :
8082 lt_cv_ld_exported_symbols_list=yes
8083else
8084 lt_cv_ld_exported_symbols_list=no
8085fi
8086rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8088 LDFLAGS="$save_LDFLAGS"
8089
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8092$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8094$as_echo_n "checking for -force_load linker flag... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008095if ${lt_cv_ld_force_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008096 $as_echo_n "(cached) " >&6
8097else
8098 lt_cv_ld_force_load=no
8099 cat > conftest.c << _LT_EOF
8100int forced_loaded() { return 2;}
8101_LT_EOF
8102 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8103 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8104 echo "$AR cru libconftest.a conftest.o" >&5
8105 $AR cru libconftest.a conftest.o 2>&5
8106 cat > conftest.c << _LT_EOF
8107int main() { return 0;}
8108_LT_EOF
8109 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8110 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8111 _lt_result=$?
8112 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8113 lt_cv_ld_force_load=yes
8114 else
8115 cat conftest.err >&5
8116 fi
8117 rm -f conftest.err libconftest.a conftest conftest.c
8118 rm -rf conftest.dSYM
8119
8120fi
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8122$as_echo "$lt_cv_ld_force_load" >&6; }
8123 case $host_os in
8124 rhapsody* | darwin1.[012])
8125 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8126 darwin1.*)
8127 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8128 darwin*) # darwin 5.x on
8129 # if running on 10.5 or later, the deployment target defaults
8130 # to the OS version, if on x86, and 10.4, the deployment
8131 # target defaults to 10.4. Don't you love it?
8132 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8133 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8134 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8135 10.[012][,.]*)
8136 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8137 10.*)
8138 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8139 esac
8140 ;;
8141 esac
8142 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8143 _lt_dar_single_mod='$single_module'
8144 fi
8145 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8146 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8147 else
8148 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8149 fi
8150 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8151 _lt_dsymutil='~$DSYMUTIL $lib || :'
8152 else
8153 _lt_dsymutil=
8154 fi
8155 ;;
8156 esac
8157
Iain Buclawb4c522f2018-10-28 19:51:47 +00008158for ac_header in dlfcn.h
8159do :
8160 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8161"
Joseph Myers22e05272018-10-31 17:03:16 +00008162if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008163 cat >>confdefs.h <<_ACEOF
8164#define HAVE_DLFCN_H 1
8165_ACEOF
8166
8167fi
8168
8169done
8170
8171
8172
8173
8174
8175# Set options
8176enable_dlopen=yes
8177
8178
8179
8180
8181 enable_win32_dll=no
8182
8183
8184 # Check whether --enable-shared was given.
8185if test "${enable_shared+set}" = set; then :
8186 enableval=$enable_shared; p=${PACKAGE-default}
8187 case $enableval in
8188 yes) enable_shared=yes ;;
8189 no) enable_shared=no ;;
8190 *)
8191 enable_shared=no
8192 # Look at the argument we got. We use all the common list separators.
8193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8194 for pkg in $enableval; do
8195 IFS="$lt_save_ifs"
8196 if test "X$pkg" = "X$p"; then
8197 enable_shared=yes
8198 fi
8199 done
8200 IFS="$lt_save_ifs"
8201 ;;
8202 esac
8203else
8204 enable_shared=yes
8205fi
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215 # Check whether --enable-static was given.
8216if test "${enable_static+set}" = set; then :
8217 enableval=$enable_static; p=${PACKAGE-default}
8218 case $enableval in
8219 yes) enable_static=yes ;;
8220 no) enable_static=no ;;
8221 *)
8222 enable_static=no
8223 # Look at the argument we got. We use all the common list separators.
8224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8225 for pkg in $enableval; do
8226 IFS="$lt_save_ifs"
8227 if test "X$pkg" = "X$p"; then
8228 enable_static=yes
8229 fi
8230 done
8231 IFS="$lt_save_ifs"
8232 ;;
8233 esac
8234else
8235 enable_static=yes
8236fi
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247# Check whether --with-pic was given.
8248if test "${with_pic+set}" = set; then :
8249 withval=$with_pic; pic_mode="$withval"
8250else
8251 pic_mode=default
8252fi
8253
8254
8255test -z "$pic_mode" && pic_mode=default
8256
8257
8258
8259
8260
8261
8262
8263 # Check whether --enable-fast-install was given.
8264if test "${enable_fast_install+set}" = set; then :
8265 enableval=$enable_fast_install; p=${PACKAGE-default}
8266 case $enableval in
8267 yes) enable_fast_install=yes ;;
8268 no) enable_fast_install=no ;;
8269 *)
8270 enable_fast_install=no
8271 # Look at the argument we got. We use all the common list separators.
8272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8273 for pkg in $enableval; do
8274 IFS="$lt_save_ifs"
8275 if test "X$pkg" = "X$p"; then
8276 enable_fast_install=yes
8277 fi
8278 done
8279 IFS="$lt_save_ifs"
8280 ;;
8281 esac
8282else
8283 enable_fast_install=yes
8284fi
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296# This can be used to rebuild libtool when needed
8297LIBTOOL_DEPS="$ltmain"
8298
8299# Always use our own libtool.
8300LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327test -z "$LN_S" && LN_S="ln -s"
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342if test -n "${ZSH_VERSION+set}" ; then
8343 setopt NO_GLOB_SUBST
8344fi
8345
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8347$as_echo_n "checking for objdir... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008348if ${lt_cv_objdir+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008349 $as_echo_n "(cached) " >&6
8350else
8351 rm -f .libs 2>/dev/null
8352mkdir .libs 2>/dev/null
8353if test -d .libs; then
8354 lt_cv_objdir=.libs
8355else
8356 # MS-DOS does not allow filenames that begin with a dot.
8357 lt_cv_objdir=_libs
8358fi
8359rmdir .libs 2>/dev/null
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8362$as_echo "$lt_cv_objdir" >&6; }
8363objdir=$lt_cv_objdir
8364
8365
8366
8367
8368
8369cat >>confdefs.h <<_ACEOF
8370#define LT_OBJDIR "$lt_cv_objdir/"
8371_ACEOF
8372
8373
8374
8375
8376case $host_os in
8377aix3*)
8378 # AIX sometimes has problems with the GCC collect2 program. For some
8379 # reason, if we set the COLLECT_NAMES environment variable, the problems
8380 # vanish in a puff of smoke.
8381 if test "X${COLLECT_NAMES+set}" != Xset; then
8382 COLLECT_NAMES=
8383 export COLLECT_NAMES
8384 fi
8385 ;;
8386esac
8387
8388# Global variables:
8389ofile=libtool
8390can_build_shared=yes
8391
8392# All known linkers require a `.a' archive for static linking (except MSVC,
8393# which needs '.lib').
8394libext=a
8395
8396with_gnu_ld="$lt_cv_prog_gnu_ld"
8397
8398old_CC="$CC"
8399old_CFLAGS="$CFLAGS"
8400
8401# Set sane defaults for various variables
8402test -z "$CC" && CC=cc
8403test -z "$LTCC" && LTCC=$CC
8404test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8405test -z "$LD" && LD=ld
8406test -z "$ac_objext" && ac_objext=o
8407
8408for cc_temp in $compiler""; do
8409 case $cc_temp in
8410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8412 \-*) ;;
8413 *) break;;
8414 esac
8415done
8416cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8417
8418
8419# Only perform the check for file, if the check method requires it
8420test -z "$MAGIC_CMD" && MAGIC_CMD=file
8421case $deplibs_check_method in
8422file_magic*)
8423 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8425$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008426if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008427 $as_echo_n "(cached) " >&6
8428else
8429 case $MAGIC_CMD in
8430[\\/*] | ?:[\\/]*)
8431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8432 ;;
8433*)
8434 lt_save_MAGIC_CMD="$MAGIC_CMD"
8435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8437 for ac_dir in $ac_dummy; do
8438 IFS="$lt_save_ifs"
8439 test -z "$ac_dir" && ac_dir=.
8440 if test -f $ac_dir/${ac_tool_prefix}file; then
8441 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8442 if test -n "$file_magic_test_file"; then
8443 case $deplibs_check_method in
8444 "file_magic "*)
8445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8448 $EGREP "$file_magic_regex" > /dev/null; then
8449 :
8450 else
8451 cat <<_LT_EOF 1>&2
8452
8453*** Warning: the command libtool uses to detect shared libraries,
8454*** $file_magic_cmd, produces output that libtool cannot recognize.
8455*** The result is that libtool may fail to recognize shared libraries
8456*** as such. This will affect the creation of libtool libraries that
8457*** depend on shared libraries, but programs linked with such libtool
8458*** libraries will work regardless of this problem. Nevertheless, you
8459*** may want to report the problem to your system manager and/or to
8460*** bug-libtool@gnu.org
8461
8462_LT_EOF
8463 fi ;;
8464 esac
8465 fi
8466 break
8467 fi
8468 done
8469 IFS="$lt_save_ifs"
8470 MAGIC_CMD="$lt_save_MAGIC_CMD"
8471 ;;
8472esac
8473fi
8474
8475MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8476if test -n "$MAGIC_CMD"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8478$as_echo "$MAGIC_CMD" >&6; }
8479else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481$as_echo "no" >&6; }
8482fi
8483
8484
8485
8486
8487
8488if test -z "$lt_cv_path_MAGIC_CMD"; then
8489 if test -n "$ac_tool_prefix"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8491$as_echo_n "checking for file... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008492if ${lt_cv_path_MAGIC_CMD+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008493 $as_echo_n "(cached) " >&6
8494else
8495 case $MAGIC_CMD in
8496[\\/*] | ?:[\\/]*)
8497 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8498 ;;
8499*)
8500 lt_save_MAGIC_CMD="$MAGIC_CMD"
8501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8502 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8503 for ac_dir in $ac_dummy; do
8504 IFS="$lt_save_ifs"
8505 test -z "$ac_dir" && ac_dir=.
8506 if test -f $ac_dir/file; then
8507 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8508 if test -n "$file_magic_test_file"; then
8509 case $deplibs_check_method in
8510 "file_magic "*)
8511 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8513 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8514 $EGREP "$file_magic_regex" > /dev/null; then
8515 :
8516 else
8517 cat <<_LT_EOF 1>&2
8518
8519*** Warning: the command libtool uses to detect shared libraries,
8520*** $file_magic_cmd, produces output that libtool cannot recognize.
8521*** The result is that libtool may fail to recognize shared libraries
8522*** as such. This will affect the creation of libtool libraries that
8523*** depend on shared libraries, but programs linked with such libtool
8524*** libraries will work regardless of this problem. Nevertheless, you
8525*** may want to report the problem to your system manager and/or to
8526*** bug-libtool@gnu.org
8527
8528_LT_EOF
8529 fi ;;
8530 esac
8531 fi
8532 break
8533 fi
8534 done
8535 IFS="$lt_save_ifs"
8536 MAGIC_CMD="$lt_save_MAGIC_CMD"
8537 ;;
8538esac
8539fi
8540
8541MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8542if test -n "$MAGIC_CMD"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8544$as_echo "$MAGIC_CMD" >&6; }
8545else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
8548fi
8549
8550
8551 else
8552 MAGIC_CMD=:
8553 fi
8554fi
8555
8556 fi
8557 ;;
8558esac
8559
8560# Use C for the default configuration in the libtool script
8561
8562lt_save_CC="$CC"
8563ac_ext=c
8564ac_cpp='$CPP $CPPFLAGS'
8565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567ac_compiler_gnu=$ac_cv_c_compiler_gnu
8568
8569
8570# Source file extension for C test sources.
8571ac_ext=c
8572
8573# Object file extension for compiled C test sources.
8574objext=o
8575objext=$objext
8576
8577# Code to be used in simple compile tests
8578lt_simple_compile_test_code="int some_variable = 0;"
8579
8580# Code to be used in simple link tests
8581lt_simple_link_test_code='int main(){return(0);}'
8582
8583
8584
8585
8586
8587
8588
8589# If no C compiler was specified, use CC.
8590LTCC=${LTCC-"$CC"}
8591
8592# If no C compiler flags were specified, use CFLAGS.
8593LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8594
8595# Allow CC to be a program name with arguments.
8596compiler=$CC
8597
8598# Save the default compiler, since it gets overwritten when the other
8599# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8600compiler_DEFAULT=$CC
8601
8602# save warnings/boilerplate of simple test code
8603ac_outfile=conftest.$ac_objext
8604echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8605eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8606_lt_compiler_boilerplate=`cat conftest.err`
8607$RM conftest*
8608
8609ac_outfile=conftest.$ac_objext
8610echo "$lt_simple_link_test_code" >conftest.$ac_ext
8611eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8612_lt_linker_boilerplate=`cat conftest.err`
8613$RM -r conftest*
8614
8615
8616## CAVEAT EMPTOR:
8617## There is no encapsulation within the following macros, do not change
8618## the running order or otherwise move them around unless you know exactly
8619## what you are doing...
8620if test -n "$compiler"; then
8621
8622lt_prog_compiler_no_builtin_flag=
8623
8624if test "$GCC" = yes; then
8625 case $cc_basename in
8626 nvcc*)
8627 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8628 *)
8629 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8630 esac
8631
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8633$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008634if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008635 $as_echo_n "(cached) " >&6
8636else
8637 lt_cv_prog_compiler_rtti_exceptions=no
8638 ac_outfile=conftest.$ac_objext
8639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8640 lt_compiler_flag="-fno-rtti -fno-exceptions"
8641 # Insert the option either (1) after the last *FLAGS variable, or
8642 # (2) before a word containing "conftest.", or (3) at the end.
8643 # Note that $ac_compile itself does not contain backslashes and begins
8644 # with a dollar sign (not a hyphen), so the echo should work correctly.
8645 # The option is referenced via a variable to avoid confusing sed.
8646 lt_compile=`echo "$ac_compile" | $SED \
8647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649 -e 's:$: $lt_compiler_flag:'`
8650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8651 (eval "$lt_compile" 2>conftest.err)
8652 ac_status=$?
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 if (exit $ac_status) && test -s "$ac_outfile"; then
8656 # The compiler can only warn and ignore the option if not recognized
8657 # So say no if there are warnings other than the usual output.
8658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8661 lt_cv_prog_compiler_rtti_exceptions=yes
8662 fi
8663 fi
8664 $RM conftest*
8665
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8668$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8669
8670if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8671 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8672else
8673 :
8674fi
8675
8676fi
8677
8678
8679
8680
8681
8682
8683 lt_prog_compiler_wl=
8684lt_prog_compiler_pic=
8685lt_prog_compiler_static=
8686
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8688$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8689
8690 if test "$GCC" = yes; then
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_static='-static'
8693
8694 case $host_os in
8695 aix*)
8696 # All AIX code is PIC.
8697 if test "$host_cpu" = ia64; then
8698 # AIX 5 now supports IA64 processor
8699 lt_prog_compiler_static='-Bstatic'
8700 fi
8701 lt_prog_compiler_pic='-fPIC'
8702 ;;
8703
8704 amigaos*)
8705 case $host_cpu in
8706 powerpc)
8707 # see comment about AmigaOS4 .so support
8708 lt_prog_compiler_pic='-fPIC'
8709 ;;
8710 m68k)
8711 # FIXME: we need at least 68020 code to build shared libraries, but
8712 # adding the `-m68020' flag to GCC prevents building anything better,
8713 # like `-m68040'.
8714 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8715 ;;
8716 esac
8717 ;;
8718
8719 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8720 # PIC is the default for these OSes.
8721 ;;
8722
8723 mingw* | cygwin* | pw32* | os2* | cegcc*)
8724 # This hack is so that the source file can tell whether it is being
8725 # built for inclusion in a dll (and should export symbols for example).
8726 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8727 # (--disable-auto-import) libraries
8728 lt_prog_compiler_pic='-DDLL_EXPORT'
8729 ;;
8730
8731 darwin* | rhapsody*)
8732 # PIC is the default on this platform
8733 # Common symbols not allowed in MH_DYLIB files
8734 lt_prog_compiler_pic='-fno-common'
8735 ;;
8736
8737 haiku*)
8738 # PIC is the default for Haiku.
8739 # The "-static" flag exists, but is broken.
8740 lt_prog_compiler_static=
8741 ;;
8742
8743 hpux*)
8744 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8745 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8746 # sets the default TLS model and affects inlining.
8747 case $host_cpu in
8748 hppa*64*)
8749 # +Z the default
8750 ;;
8751 *)
8752 lt_prog_compiler_pic='-fPIC'
8753 ;;
8754 esac
8755 ;;
8756
8757 interix[3-9]*)
8758 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8759 # Instead, we relocate shared libraries at runtime.
8760 ;;
8761
8762 msdosdjgpp*)
8763 # Just because we use GCC doesn't mean we suddenly get shared libraries
8764 # on systems that don't support them.
8765 lt_prog_compiler_can_build_shared=no
8766 enable_shared=no
8767 ;;
8768
8769 *nto* | *qnx*)
8770 # QNX uses GNU C++, but need to define -shared option too, otherwise
8771 # it will coredump.
8772 lt_prog_compiler_pic='-fPIC -shared'
8773 ;;
8774
8775 sysv4*MP*)
8776 if test -d /usr/nec; then
8777 lt_prog_compiler_pic=-Kconform_pic
8778 fi
8779 ;;
8780
8781 *)
8782 lt_prog_compiler_pic='-fPIC'
8783 ;;
8784 esac
8785
8786 case $cc_basename in
8787 nvcc*) # Cuda Compiler Driver 2.2
8788 lt_prog_compiler_wl='-Xlinker '
8789 lt_prog_compiler_pic='-Xcompiler -fPIC'
8790 ;;
8791 esac
8792 else
8793 # PORTME Check for flag to pass linker flags through the system compiler.
8794 case $host_os in
8795 aix*)
8796 lt_prog_compiler_wl='-Wl,'
8797 if test "$host_cpu" = ia64; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8800 else
8801 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8802 fi
8803 ;;
8804
8805 mingw* | cygwin* | pw32* | os2* | cegcc*)
8806 # This hack is so that the source file can tell whether it is being
8807 # built for inclusion in a dll (and should export symbols for example).
8808 lt_prog_compiler_pic='-DDLL_EXPORT'
8809 ;;
8810
8811 hpux9* | hpux10* | hpux11*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8814 # not for PA HP-UX.
8815 case $host_cpu in
8816 hppa*64*|ia64*)
8817 # +Z the default
8818 ;;
8819 *)
8820 lt_prog_compiler_pic='+Z'
8821 ;;
8822 esac
8823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8824 lt_prog_compiler_static='${wl}-a ${wl}archive'
8825 ;;
8826
8827 irix5* | irix6* | nonstopux*)
8828 lt_prog_compiler_wl='-Wl,'
8829 # PIC (with -KPIC) is the default.
8830 lt_prog_compiler_static='-non_shared'
8831 ;;
8832
8833 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8834 case $cc_basename in
8835 # old Intel for x86_64 which still supported -KPIC.
8836 ecc*)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-static'
8840 ;;
8841 # icc used to be incompatible with GCC.
8842 # ICC 10 doesn't accept -KPIC any more.
8843 icc* | ifort*)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-fPIC'
8846 lt_prog_compiler_static='-static'
8847 ;;
8848 # Lahey Fortran 8.1.
8849 lf95*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='--shared'
8852 lt_prog_compiler_static='--static'
8853 ;;
8854 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8855 # Portland Group compilers (*not* the Pentium gcc compiler,
8856 # which looks to be a dead project)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-fpic'
8859 lt_prog_compiler_static='-Bstatic'
8860 ;;
8861 ccc*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # All Alpha code is PIC.
8864 lt_prog_compiler_static='-non_shared'
8865 ;;
8866 xl* | bgxl* | bgf* | mpixl*)
8867 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-qpic'
8870 lt_prog_compiler_static='-qstaticlink'
8871 ;;
8872 *)
8873 case `$CC -V 2>&1 | sed 5q` in
8874 *Sun\ F* | *Sun*Fortran*)
8875 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl=''
8879 ;;
8880 *Sun\ C*)
8881 # Sun C 5.9
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl='-Wl,'
8885 ;;
8886 esac
8887 ;;
8888 esac
8889 ;;
8890
8891 newsos6)
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
8895
8896 *nto* | *qnx*)
8897 # QNX uses GNU C++, but need to define -shared option too, otherwise
8898 # it will coredump.
8899 lt_prog_compiler_pic='-fPIC -shared'
8900 ;;
8901
8902 osf3* | osf4* | osf5*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # All OSF/1 code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
8907
8908 rdos*)
8909 lt_prog_compiler_static='-non_shared'
8910 ;;
8911
8912 solaris*)
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8915 case $cc_basename in
8916 f77* | f90* | f95*)
8917 lt_prog_compiler_wl='-Qoption ld ';;
8918 *)
8919 lt_prog_compiler_wl='-Wl,';;
8920 esac
8921 ;;
8922
8923 sunos4*)
8924 lt_prog_compiler_wl='-Qoption ld '
8925 lt_prog_compiler_pic='-PIC'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928
8929 sysv4 | sysv4.2uw2* | sysv4.3*)
8930 lt_prog_compiler_wl='-Wl,'
8931 lt_prog_compiler_pic='-KPIC'
8932 lt_prog_compiler_static='-Bstatic'
8933 ;;
8934
8935 sysv4*MP*)
8936 if test -d /usr/nec ;then
8937 lt_prog_compiler_pic='-Kconform_pic'
8938 lt_prog_compiler_static='-Bstatic'
8939 fi
8940 ;;
8941
8942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8946 ;;
8947
8948 unicos*)
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_can_build_shared=no
8951 ;;
8952
8953 uts4*)
8954 lt_prog_compiler_pic='-pic'
8955 lt_prog_compiler_static='-Bstatic'
8956 ;;
8957
8958 *)
8959 lt_prog_compiler_can_build_shared=no
8960 ;;
8961 esac
8962 fi
8963
8964case $host_os in
8965 # For platforms which do not support PIC, -DPIC is meaningless:
8966 *djgpp*)
8967 lt_prog_compiler_pic=
8968 ;;
8969 *)
8970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8971 ;;
8972esac
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8974$as_echo "$lt_prog_compiler_pic" >&6; }
8975
8976
8977
8978
8979
8980
8981#
8982# Check to make sure the PIC flag actually works.
8983#
8984if test -n "$lt_prog_compiler_pic"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8986$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00008987if ${lt_cv_prog_compiler_pic_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00008988 $as_echo_n "(cached) " >&6
8989else
8990 lt_cv_prog_compiler_pic_works=no
8991 ac_outfile=conftest.$ac_objext
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8994 # Insert the option either (1) after the last *FLAGS variable, or
8995 # (2) before a word containing "conftest.", or (3) at the end.
8996 # Note that $ac_compile itself does not contain backslashes and begins
8997 # with a dollar sign (not a hyphen), so the echo should work correctly.
8998 # The option is referenced via a variable to avoid confusing sed.
8999 lt_compile=`echo "$ac_compile" | $SED \
9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002 -e 's:$: $lt_compiler_flag:'`
9003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9004 (eval "$lt_compile" 2>conftest.err)
9005 ac_status=$?
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 if (exit $ac_status) && test -s "$ac_outfile"; then
9009 # The compiler can only warn and ignore the option if not recognized
9010 # So say no if there are warnings other than the usual output.
9011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9014 lt_cv_prog_compiler_pic_works=yes
9015 fi
9016 fi
9017 $RM conftest*
9018
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9021$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9022
9023if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9024 case $lt_prog_compiler_pic in
9025 "" | " "*) ;;
9026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9027 esac
9028else
9029 lt_prog_compiler_pic=
9030 lt_prog_compiler_can_build_shared=no
9031fi
9032
9033fi
9034
9035
9036
9037
9038
9039
9040#
9041# Check to make sure the static flag actually works.
9042#
9043wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9045$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009046if ${lt_cv_prog_compiler_static_works+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009047 $as_echo_n "(cached) " >&6
9048else
9049 lt_cv_prog_compiler_static_works=no
9050 save_LDFLAGS="$LDFLAGS"
9051 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9054 # The linker can only warn and ignore the option if not recognized
9055 # So say no if there are warnings
9056 if test -s conftest.err; then
9057 # Append any errors to the config.log.
9058 cat conftest.err 1>&5
9059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_static_works=yes
9063 fi
9064 else
9065 lt_cv_prog_compiler_static_works=yes
9066 fi
9067 fi
9068 $RM -r conftest*
9069 LDFLAGS="$save_LDFLAGS"
9070
9071fi
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9073$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9074
9075if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9076 :
9077else
9078 lt_prog_compiler_static=
9079fi
9080
9081
9082
9083
9084
9085
9086
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9088$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009089if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009090 $as_echo_n "(cached) " >&6
9091else
9092 lt_cv_prog_compiler_c_o=no
9093 $RM -r conftest 2>/dev/null
9094 mkdir conftest
9095 cd conftest
9096 mkdir out
9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098
9099 lt_compiler_flag="-o out/conftest2.$ac_objext"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 lt_compile=`echo "$ac_compile" | $SED \
9105 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107 -e 's:$: $lt_compiler_flag:'`
9108 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9109 (eval "$lt_compile" 2>out/conftest.err)
9110 ac_status=$?
9111 cat out/conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9114 then
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings
9117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9118 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9119 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_c_o=yes
9121 fi
9122 fi
9123 chmod u+w . 2>&5
9124 $RM conftest*
9125 # SGI C++ compiler will create directory out/ii_files/ for
9126 # template instantiation
9127 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9128 $RM out/* && rmdir out
9129 cd ..
9130 $RM -r conftest
9131 $RM conftest*
9132
9133fi
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9135$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9136
9137
9138
9139
9140
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9143$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009144if ${lt_cv_prog_compiler_c_o+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009145 $as_echo_n "(cached) " >&6
9146else
9147 lt_cv_prog_compiler_c_o=no
9148 $RM -r conftest 2>/dev/null
9149 mkdir conftest
9150 cd conftest
9151 mkdir out
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153
9154 lt_compiler_flag="-o out/conftest2.$ac_objext"
9155 # Insert the option either (1) after the last *FLAGS variable, or
9156 # (2) before a word containing "conftest.", or (3) at the end.
9157 # Note that $ac_compile itself does not contain backslashes and begins
9158 # with a dollar sign (not a hyphen), so the echo should work correctly.
9159 lt_compile=`echo "$ac_compile" | $SED \
9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162 -e 's:$: $lt_compiler_flag:'`
9163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9164 (eval "$lt_compile" 2>out/conftest.err)
9165 ac_status=$?
9166 cat out/conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9169 then
9170 # The compiler can only warn and ignore the option if not recognized
9171 # So say no if there are warnings
9172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9175 lt_cv_prog_compiler_c_o=yes
9176 fi
9177 fi
9178 chmod u+w . 2>&5
9179 $RM conftest*
9180 # SGI C++ compiler will create directory out/ii_files/ for
9181 # template instantiation
9182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9183 $RM out/* && rmdir out
9184 cd ..
9185 $RM -r conftest
9186 $RM conftest*
9187
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9190$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9191
9192
9193
9194
9195hard_links="nottested"
9196if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9197 # do not overwrite the value of need_locks provided by the user
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9199$as_echo_n "checking if we can lock with hard links... " >&6; }
9200 hard_links=yes
9201 $RM conftest*
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203 touch conftest.a
9204 ln conftest.a conftest.b 2>&5 || hard_links=no
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9207$as_echo "$hard_links" >&6; }
9208 if test "$hard_links" = no; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9210$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9211 need_locks=warn
9212 fi
9213else
9214 need_locks=no
9215fi
9216
9217
9218
9219
9220
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9223$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9224
9225 runpath_var=
9226 allow_undefined_flag=
9227 always_export_symbols=no
9228 archive_cmds=
9229 archive_expsym_cmds=
9230 compiler_needs_object=no
9231 enable_shared_with_static_runtimes=no
9232 export_dynamic_flag_spec=
9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9234 hardcode_automatic=no
9235 hardcode_direct=no
9236 hardcode_direct_absolute=no
9237 hardcode_libdir_flag_spec=
9238 hardcode_libdir_flag_spec_ld=
9239 hardcode_libdir_separator=
9240 hardcode_minus_L=no
9241 hardcode_shlibpath_var=unsupported
9242 inherit_rpath=no
9243 link_all_deplibs=unknown
9244 module_cmds=
9245 module_expsym_cmds=
9246 old_archive_from_new_cmds=
9247 old_archive_from_expsyms_cmds=
9248 thread_safe_flag_spec=
9249 whole_archive_flag_spec=
9250 # include_expsyms should be a list of space-separated symbols to be *always*
9251 # included in the symbol list
9252 include_expsyms=
9253 # exclude_expsyms can be an extended regexp of symbols to exclude
9254 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9255 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9256 # as well as any symbol that contains `d'.
9257 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9258 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9259 # platforms (ab)use it in PIC code, but their linkers get confused if
9260 # the symbol is explicitly referenced. Since portable code cannot
9261 # rely on this symbol name, it's probably fine to never include it in
9262 # preloaded symbol tables.
9263 # Exclude shared library initialization/finalization symbols.
9264 extract_expsyms_cmds=
9265
9266 case $host_os in
9267 cygwin* | mingw* | pw32* | cegcc*)
9268 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9269 # When not using gcc, we currently assume that we are using
9270 # Microsoft Visual C++.
9271 if test "$GCC" != yes; then
9272 with_gnu_ld=no
9273 fi
9274 ;;
9275 interix*)
9276 # we just hope/assume this is gcc and not c89 (= MSVC++)
9277 with_gnu_ld=yes
9278 ;;
9279 openbsd*)
9280 with_gnu_ld=no
9281 ;;
9282 esac
9283
9284 ld_shlibs=yes
9285
9286 # On some targets, GNU ld is compatible enough with the native linker
9287 # that we're better off using the native interface for both.
9288 lt_use_gnu_ld_interface=no
9289 if test "$with_gnu_ld" = yes; then
9290 case $host_os in
9291 aix*)
9292 # The AIX port of GNU ld has always aspired to compatibility
9293 # with the native linker. However, as the warning in the GNU ld
9294 # block says, versions before 2.19.5* couldn't really create working
9295 # shared libraries, regardless of the interface used.
9296 case `$LD -v 2>&1` in
9297 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9298 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9299 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9300 *)
9301 lt_use_gnu_ld_interface=yes
9302 ;;
9303 esac
9304 ;;
9305 *)
9306 lt_use_gnu_ld_interface=yes
9307 ;;
9308 esac
9309 fi
9310
9311 if test "$lt_use_gnu_ld_interface" = yes; then
9312 # If archive_cmds runs LD, not CC, wlarc should be empty
9313 wlarc='${wl}'
9314
9315 # Set some defaults for GNU ld with shared library support. These
9316 # are reset later if shared libraries are not supported. Putting them
9317 # here allows them to be overridden if necessary.
9318 runpath_var=LD_RUN_PATH
9319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9320 export_dynamic_flag_spec='${wl}--export-dynamic'
9321 # ancient GNU ld didn't support --whole-archive et. al.
9322 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9323 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9324 else
9325 whole_archive_flag_spec=
9326 fi
9327 supports_anon_versioning=no
9328 case `$LD -v 2>&1` in
9329 *GNU\ gold*) supports_anon_versioning=yes ;;
9330 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9331 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9332 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9333 *\ 2.11.*) ;; # other 2.11 versions
9334 *) supports_anon_versioning=yes ;;
9335 esac
9336
9337 # See if GNU ld supports shared libraries.
9338 case $host_os in
9339 aix[3-9]*)
9340 # On AIX/PPC, the GNU linker is very broken
9341 if test "$host_cpu" != ia64; then
9342 ld_shlibs=no
9343 cat <<_LT_EOF 1>&2
9344
9345*** Warning: the GNU linker, at least up to release 2.19, is reported
9346*** to be unable to reliably create shared libraries on AIX.
9347*** Therefore, libtool is disabling shared libraries support. If you
9348*** really care for shared libraries, you may want to install binutils
9349*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9350*** You will then need to restart the configuration process.
9351
9352_LT_EOF
9353 fi
9354 ;;
9355
9356 amigaos*)
9357 case $host_cpu in
9358 powerpc)
9359 # see comment about AmigaOS4 .so support
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 archive_expsym_cmds=''
9362 ;;
9363 m68k)
9364 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)'
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 hardcode_minus_L=yes
9367 ;;
9368 esac
9369 ;;
9370
9371 beos*)
9372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373 allow_undefined_flag=unsupported
9374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9375 # support --undefined. This deserves some investigation. FIXME
9376 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 cygwin* | mingw* | pw32* | cegcc*)
9383 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9384 # as there is no search path for DLLs.
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 export_dynamic_flag_spec='${wl}--export-all-symbols'
9387 allow_undefined_flag=unsupported
9388 always_export_symbols=no
9389 enable_shared_with_static_runtimes=yes
9390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9391
9392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394 # If the export-symbols file already is a .def file (1st line
9395 # is EXPORTS), use it as is; otherwise, prepend...
9396 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9397 cp $export_symbols $output_objdir/$soname.def;
9398 else
9399 echo EXPORTS > $output_objdir/$soname.def;
9400 cat $export_symbols >> $output_objdir/$soname.def;
9401 fi~
9402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9403 else
9404 ld_shlibs=no
9405 fi
9406 ;;
9407
9408 haiku*)
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410 link_all_deplibs=yes
9411 ;;
9412
9413 interix[3-9]*)
9414 hardcode_direct=no
9415 hardcode_shlibpath_var=no
9416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417 export_dynamic_flag_spec='${wl}-E'
9418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9419 # Instead, shared libraries are loaded at an image base (0x10000000 by
9420 # default) and relocated if they conflict, which is a slow very memory
9421 # consuming and fragmenting process. To avoid this, we pick a random,
9422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9425 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'
9426 ;;
9427
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +00009428 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +00009429 tmp_diet=no
9430 if test "$host_os" = linux-dietlibc; then
9431 case $cc_basename in
9432 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9433 esac
9434 fi
9435 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9436 && test "$tmp_diet" = no
9437 then
9438 tmp_addflag=' $pic_flag'
9439 tmp_sharedflag='-shared'
9440 case $cc_basename,$host_cpu in
9441 pgcc*) # Portland Group C compiler
9442 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'
9443 tmp_addflag=' $pic_flag'
9444 ;;
9445 pgf77* | pgf90* | pgf95* | pgfortran*)
9446 # Portland Group f77 and f90 compilers
9447 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'
9448 tmp_addflag=' $pic_flag -Mnomain' ;;
9449 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9450 tmp_addflag=' -i_dynamic' ;;
9451 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9452 tmp_addflag=' -i_dynamic -nofor_main' ;;
9453 ifc* | ifort*) # Intel Fortran compiler
9454 tmp_addflag=' -nofor_main' ;;
9455 lf95*) # Lahey Fortran 8.1
9456 whole_archive_flag_spec=
9457 tmp_sharedflag='--shared' ;;
9458 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9459 tmp_sharedflag='-qmkshrobj'
9460 tmp_addflag= ;;
9461 nvcc*) # Cuda Compiler Driver 2.2
9462 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'
9463 compiler_needs_object=yes
9464 ;;
9465 esac
9466 case `$CC -V 2>&1 | sed 5q` in
9467 *Sun\ C*) # Sun C 5.9
9468 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'
9469 compiler_needs_object=yes
9470 tmp_sharedflag='-G' ;;
9471 *Sun\ F*) # Sun Fortran 8.3
9472 tmp_sharedflag='-G' ;;
9473 esac
9474 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9475
9476 if test "x$supports_anon_versioning" = xyes; then
9477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9479 echo "local: *; };" >> $output_objdir/$libname.ver~
9480 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9481 fi
9482
9483 case $cc_basename in
9484 xlf* | bgf* | bgxlf* | mpixlf*)
9485 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9486 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9487 hardcode_libdir_flag_spec=
9488 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9489 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9490 if test "x$supports_anon_versioning" = xyes; then
9491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493 echo "local: *; };" >> $output_objdir/$libname.ver~
9494 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9495 fi
9496 ;;
9497 esac
9498 else
9499 ld_shlibs=no
9500 fi
9501 ;;
9502
9503 netbsd*)
9504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9505 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9506 wlarc=
9507 else
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510 fi
9511 ;;
9512
9513 solaris*)
9514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9515 ld_shlibs=no
9516 cat <<_LT_EOF 1>&2
9517
9518*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9519*** create shared libraries on Solaris systems. Therefore, libtool
9520*** is disabling shared libraries support. We urge you to upgrade GNU
9521*** binutils to release 2.9.1 or newer. Another option is to modify
9522*** your PATH or compiler configuration so that the native linker is
9523*** used, and then restart.
9524
9525_LT_EOF
9526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9529 else
9530 ld_shlibs=no
9531 fi
9532 ;;
9533
9534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9535 case `$LD -v 2>&1` in
9536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9537 ld_shlibs=no
9538 cat <<_LT_EOF 1>&2
9539
9540*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9541*** reliably create shared libraries on SCO systems. Therefore, libtool
9542*** is disabling shared libraries support. We urge you to upgrade GNU
9543*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9544*** your PATH or compiler configuration so that the native linker is
9545*** used, and then restart.
9546
9547_LT_EOF
9548 ;;
9549 *)
9550 # For security reasons, it is highly recommended that you always
9551 # use absolute paths for naming shared libraries, and exclude the
9552 # DT_RUNPATH tag from executables and libraries. But doing so
9553 # requires that you compile everything twice, which is a pain.
9554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558 else
9559 ld_shlibs=no
9560 fi
9561 ;;
9562 esac
9563 ;;
9564
9565 sunos4*)
9566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9567 wlarc=
9568 hardcode_direct=yes
9569 hardcode_shlibpath_var=no
9570 ;;
9571
9572 *)
9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
9580 esac
9581
9582 if test "$ld_shlibs" = no; then
9583 runpath_var=
9584 hardcode_libdir_flag_spec=
9585 export_dynamic_flag_spec=
9586 whole_archive_flag_spec=
9587 fi
9588 else
9589 # PORTME fill in a description of your system's linker (not GNU ld)
9590 case $host_os in
9591 aix3*)
9592 allow_undefined_flag=unsupported
9593 always_export_symbols=yes
9594 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'
9595 # Note: this linker hardcodes the directories in LIBPATH if there
9596 # are no directories specified by -L.
9597 hardcode_minus_L=yes
9598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9599 # Neither direct hardcoding nor static linking is supported with a
9600 # broken collect2.
9601 hardcode_direct=unsupported
9602 fi
9603 ;;
9604
9605 aix[4-9]*)
9606 if test "$host_cpu" = ia64; then
9607 # On IA64, the linker does run time linking by default, so we don't
9608 # have to do anything special.
9609 aix_use_runtimelinking=no
9610 exp_sym_flag='-Bexport'
9611 no_entry_flag=""
9612 else
9613 # If we're using GNU nm, then we don't want the "-C" option.
9614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9615 # Also, AIX nm treats weak defined symbols like other global
9616 # defined symbols, whereas GNU nm marks them as "W".
9617 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9618 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'
9619 else
9620 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'
9621 fi
9622 aix_use_runtimelinking=no
9623
9624 # Test if we are trying to use run time linking or normal
9625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626 # need to do runtime linking.
9627 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9628 for ld_flag in $LDFLAGS; do
9629 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9630 aix_use_runtimelinking=yes
9631 break
9632 fi
9633 done
9634 ;;
9635 esac
9636
9637 exp_sym_flag='-bexport'
9638 no_entry_flag='-bnoentry'
9639 fi
9640
9641 # When large executables or shared objects are built, AIX ld can
9642 # have problems creating the table of contents. If linking a library
9643 # or program results in "error TOC overflow" add -mminimal-toc to
9644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9646
9647 archive_cmds=''
9648 hardcode_direct=yes
9649 hardcode_direct_absolute=yes
9650 hardcode_libdir_separator=':'
9651 link_all_deplibs=yes
9652 file_list_spec='${wl}-f,'
9653
9654 if test "$GCC" = yes; then
9655 case $host_os in aix4.[012]|aix4.[012].*)
9656 # We only want to do this on AIX 4.2 and lower, the check
9657 # below for broken collect2 doesn't work under 4.3+
9658 collect2name=`${CC} -print-prog-name=collect2`
9659 if test -f "$collect2name" &&
9660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9661 then
9662 # We have reworked collect2
9663 :
9664 else
9665 # We have old collect2
9666 hardcode_direct=unsupported
9667 # It fails to find uninstalled libraries when the uninstalled
9668 # path is not listed in the libpath. Setting hardcode_minus_L
9669 # to unsupported forces relinking
9670 hardcode_minus_L=yes
9671 hardcode_libdir_flag_spec='-L$libdir'
9672 hardcode_libdir_separator=
9673 fi
9674 ;;
9675 esac
9676 shared_flag='-shared'
9677 if test "$aix_use_runtimelinking" = yes; then
9678 shared_flag="$shared_flag "'${wl}-G'
9679 fi
9680 else
9681 # not using gcc
9682 if test "$host_cpu" = ia64; then
9683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9684 # chokes on -Wl,-G. The following line is correct:
9685 shared_flag='-G'
9686 else
9687 if test "$aix_use_runtimelinking" = yes; then
9688 shared_flag='${wl}-G'
9689 else
9690 shared_flag='${wl}-bM:SRE'
9691 fi
9692 fi
9693 fi
9694
9695 export_dynamic_flag_spec='${wl}-bexpall'
9696 # It seems that -bexpall does not export symbols beginning with
9697 # underscore (_), so it is better to generate a list of symbols to export.
9698 always_export_symbols=yes
9699 if test "$aix_use_runtimelinking" = yes; then
9700 # Warning - without using the other runtime loading flags (-brtl),
9701 # -berok will link without error, but may produce a broken library.
9702 allow_undefined_flag='-berok'
9703 # Determine the default libpath from the value encoded in an
9704 # empty executable.
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h. */
9707
9708int
9709main ()
9710{
9711
9712 ;
9713 return 0;
9714}
9715_ACEOF
9716if ac_fn_c_try_link "$LINENO"; then :
9717
9718lt_aix_libpath_sed='
9719 /Import File Strings/,/^$/ {
9720 /^0/ {
9721 s/^0 *\(.*\)$/\1/
9722 p
9723 }
9724 }'
9725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726# Check for a 64-bit object if we didn't find anything.
9727if test -z "$aix_libpath"; then
9728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9729fi
9730fi
9731rm -f core conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
9733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9734
9735 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9736 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"
9737 else
9738 if test "$host_cpu" = ia64; then
9739 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9740 allow_undefined_flag="-z nodefs"
9741 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"
9742 else
9743 # Determine the default libpath from the value encoded in an
9744 # empty executable.
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h. */
9747
9748int
9749main ()
9750{
9751
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_link "$LINENO"; then :
9757
9758lt_aix_libpath_sed='
9759 /Import File Strings/,/^$/ {
9760 /^0/ {
9761 s/^0 *\(.*\)$/\1/
9762 p
9763 }
9764 }'
9765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766# Check for a 64-bit object if we didn't find anything.
9767if test -z "$aix_libpath"; then
9768 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769fi
9770fi
9771rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9774
9775 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9776 # Warning - without using the other run time loading flags,
9777 # -berok will link without error, but may produce a broken library.
9778 no_undefined_flag=' ${wl}-bernotok'
9779 allow_undefined_flag=' ${wl}-berok'
9780 if test "$with_gnu_ld" = yes; then
9781 # We only use this code for GNU lds that support --whole-archive.
9782 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9783 else
9784 # Exported symbols can be pulled into shared objects from archives
9785 whole_archive_flag_spec='$convenience'
9786 fi
9787 archive_cmds_need_lc=yes
9788 # This is similar to how AIX traditionally builds its shared libraries.
9789 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'
9790 fi
9791 fi
9792 ;;
9793
9794 amigaos*)
9795 case $host_cpu in
9796 powerpc)
9797 # see comment about AmigaOS4 .so support
9798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9799 archive_expsym_cmds=''
9800 ;;
9801 m68k)
9802 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)'
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 hardcode_minus_L=yes
9805 ;;
9806 esac
9807 ;;
9808
9809 bsdi[45]*)
9810 export_dynamic_flag_spec=-rdynamic
9811 ;;
9812
9813 cygwin* | mingw* | pw32* | cegcc*)
9814 # When not using gcc, we currently assume that we are using
9815 # Microsoft Visual C++.
9816 # hardcode_libdir_flag_spec is actually meaningless, as there is
9817 # no search path for DLLs.
9818 hardcode_libdir_flag_spec=' '
9819 allow_undefined_flag=unsupported
9820 # Tell ltmain to make .lib files, not .a files.
9821 libext=lib
9822 # Tell ltmain to make .dll files, not .so files.
9823 shrext_cmds=".dll"
9824 # FIXME: Setting linknames here is a bad hack.
9825 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9826 # The linker will automatically build a .lib file if we build a DLL.
9827 old_archive_from_new_cmds='true'
9828 # FIXME: Should let the user specify the lib program.
9829 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9830 fix_srcfile_path='`cygpath -w "$srcfile"`'
9831 enable_shared_with_static_runtimes=yes
9832 ;;
9833
9834 darwin* | rhapsody*)
9835
9836
9837 archive_cmds_need_lc=no
9838 hardcode_direct=no
9839 hardcode_automatic=yes
9840 hardcode_shlibpath_var=unsupported
9841 if test "$lt_cv_ld_force_load" = "yes"; then
9842 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\"`'
9843 else
9844 whole_archive_flag_spec=''
9845 fi
9846 link_all_deplibs=yes
9847 allow_undefined_flag="$_lt_dar_allow_undefined"
9848 case $cc_basename in
9849 ifort*) _lt_dar_can_shared=yes ;;
9850 *) _lt_dar_can_shared=$GCC ;;
9851 esac
9852 if test "$_lt_dar_can_shared" = "yes"; then
9853 output_verbose_link_cmd=func_echo_all
9854 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9855 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9856 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}"
9857 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}"
9858
9859 else
9860 ld_shlibs=no
9861 fi
9862
9863 ;;
9864
9865 dgux*)
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_shlibpath_var=no
9869 ;;
9870
9871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9872 # support. Future versions do this automatically, but an explicit c++rt0.o
9873 # does not break anything, and helps significantly (at the cost of a little
9874 # extra space).
9875 freebsd2.2*)
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9877 hardcode_libdir_flag_spec='-R$libdir'
9878 hardcode_direct=yes
9879 hardcode_shlibpath_var=no
9880 ;;
9881
9882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9883 freebsd2.*)
9884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_direct=yes
9886 hardcode_minus_L=yes
9887 hardcode_shlibpath_var=no
9888 ;;
9889
9890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9891 freebsd* | dragonfly*)
9892 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9893 hardcode_libdir_flag_spec='-R$libdir'
9894 hardcode_direct=yes
9895 hardcode_shlibpath_var=no
9896 ;;
9897
9898 hpux9*)
9899 if test "$GCC" = yes; then
9900 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'
9901 else
9902 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'
9903 fi
9904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9905 hardcode_libdir_separator=:
9906 hardcode_direct=yes
9907
9908 # hardcode_minus_L: Not really in the search PATH,
9909 # but as the default location of the library.
9910 hardcode_minus_L=yes
9911 export_dynamic_flag_spec='${wl}-E'
9912 ;;
9913
9914 hpux10*)
9915 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9916 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9917 else
9918 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9919 fi
9920 if test "$with_gnu_ld" = no; then
9921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9922 hardcode_libdir_flag_spec_ld='+b $libdir'
9923 hardcode_libdir_separator=:
9924 hardcode_direct=yes
9925 hardcode_direct_absolute=yes
9926 export_dynamic_flag_spec='${wl}-E'
9927 # hardcode_minus_L: Not really in the search PATH,
9928 # but as the default location of the library.
9929 hardcode_minus_L=yes
9930 fi
9931 ;;
9932
9933 hpux11*)
9934 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9935 case $host_cpu in
9936 hppa*64*)
9937 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 ia64*)
9940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9941 ;;
9942 *)
9943 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9944 ;;
9945 esac
9946 else
9947 case $host_cpu in
9948 hppa*64*)
9949 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9950 ;;
9951 ia64*)
9952 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9953 ;;
9954 *)
9955
9956 # Older versions of the 11.00 compiler do not understand -b yet
9957 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9959$as_echo_n "checking if $CC understands -b... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +00009960if ${lt_cv_prog_compiler__b+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +00009961 $as_echo_n "(cached) " >&6
9962else
9963 lt_cv_prog_compiler__b=no
9964 save_LDFLAGS="$LDFLAGS"
9965 LDFLAGS="$LDFLAGS -b"
9966 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9968 # The linker can only warn and ignore the option if not recognized
9969 # So say no if there are warnings
9970 if test -s conftest.err; then
9971 # Append any errors to the config.log.
9972 cat conftest.err 1>&5
9973 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9975 if diff conftest.exp conftest.er2 >/dev/null; then
9976 lt_cv_prog_compiler__b=yes
9977 fi
9978 else
9979 lt_cv_prog_compiler__b=yes
9980 fi
9981 fi
9982 $RM -r conftest*
9983 LDFLAGS="$save_LDFLAGS"
9984
9985fi
9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9987$as_echo "$lt_cv_prog_compiler__b" >&6; }
9988
9989if test x"$lt_cv_prog_compiler__b" = xyes; then
9990 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9991else
9992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9993fi
9994
9995 ;;
9996 esac
9997 fi
9998 if test "$with_gnu_ld" = no; then
9999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_separator=:
10001
10002 case $host_cpu in
10003 hppa*64*|ia64*)
10004 hardcode_direct=no
10005 hardcode_shlibpath_var=no
10006 ;;
10007 *)
10008 hardcode_direct=yes
10009 hardcode_direct_absolute=yes
10010 export_dynamic_flag_spec='${wl}-E'
10011
10012 # hardcode_minus_L: Not really in the search PATH,
10013 # but as the default location of the library.
10014 hardcode_minus_L=yes
10015 ;;
10016 esac
10017 fi
10018 ;;
10019
10020 irix5* | irix6* | nonstopux*)
10021 if test "$GCC" = yes; then
10022 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'
10023 # Try to use the -exported_symbol ld option, if it does not
10024 # work, assume that -exports_file does not work either and
10025 # implicitly export all symbols.
10026 save_LDFLAGS="$LDFLAGS"
10027 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h. */
10030int foo(void) {}
10031_ACEOF
10032if ac_fn_c_try_link "$LINENO"; then :
10033 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'
10034
10035fi
10036rm -f core conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10038 LDFLAGS="$save_LDFLAGS"
10039 else
10040 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'
10041 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'
10042 fi
10043 archive_cmds_need_lc='no'
10044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10045 hardcode_libdir_separator=:
10046 inherit_rpath=yes
10047 link_all_deplibs=yes
10048 ;;
10049
10050 netbsd*)
10051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10053 else
10054 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10055 fi
10056 hardcode_libdir_flag_spec='-R$libdir'
10057 hardcode_direct=yes
10058 hardcode_shlibpath_var=no
10059 ;;
10060
10061 newsos6)
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_direct=yes
10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065 hardcode_libdir_separator=:
10066 hardcode_shlibpath_var=no
10067 ;;
10068
10069 *nto* | *qnx*)
10070 ;;
10071
10072 openbsd*)
10073 if test -f /usr/libexec/ld.so; then
10074 hardcode_direct=yes
10075 hardcode_shlibpath_var=no
10076 hardcode_direct_absolute=yes
10077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10081 export_dynamic_flag_spec='${wl}-E'
10082 else
10083 case $host_os in
10084 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10086 hardcode_libdir_flag_spec='-R$libdir'
10087 ;;
10088 *)
10089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10091 ;;
10092 esac
10093 fi
10094 else
10095 ld_shlibs=no
10096 fi
10097 ;;
10098
10099 os2*)
10100 hardcode_libdir_flag_spec='-L$libdir'
10101 hardcode_minus_L=yes
10102 allow_undefined_flag=unsupported
10103 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'
10104 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10105 ;;
10106
10107 osf3*)
10108 if test "$GCC" = yes; then
10109 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10110 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'
10111 else
10112 allow_undefined_flag=' -expect_unresolved \*'
10113 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'
10114 fi
10115 archive_cmds_need_lc='no'
10116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 hardcode_libdir_separator=:
10118 ;;
10119
10120 osf4* | osf5*) # as osf3* with the addition of -msym flag
10121 if test "$GCC" = yes; then
10122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10123 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'
10124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125 else
10126 allow_undefined_flag=' -expect_unresolved \*'
10127 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'
10128 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~
10129 $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'
10130
10131 # Both c and cxx compiler support -rpath directly
10132 hardcode_libdir_flag_spec='-rpath $libdir'
10133 fi
10134 archive_cmds_need_lc='no'
10135 hardcode_libdir_separator=:
10136 ;;
10137
10138 solaris*)
10139 no_undefined_flag=' -z defs'
10140 if test "$GCC" = yes; then
10141 wlarc='${wl}'
10142 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10144 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10145 else
10146 case `$CC -V 2>&1` in
10147 *"Compilers 5.0"*)
10148 wlarc=''
10149 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10150 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10152 ;;
10153 *)
10154 wlarc='${wl}'
10155 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10157 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10158 ;;
10159 esac
10160 fi
10161 hardcode_libdir_flag_spec='-R$libdir'
10162 hardcode_shlibpath_var=no
10163 case $host_os in
10164 solaris2.[0-5] | solaris2.[0-5].*) ;;
10165 *)
10166 # The compiler driver will combine and reorder linker options,
10167 # but understands `-z linker_flag'. GCC discards it without `$wl',
10168 # but is careful enough not to reorder.
10169 # Supported since Solaris 2.6 (maybe 2.5.1?)
10170 if test "$GCC" = yes; then
10171 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10172 else
10173 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10174 fi
10175 ;;
10176 esac
10177 link_all_deplibs=yes
10178 ;;
10179
10180 sunos4*)
10181 if test "x$host_vendor" = xsequent; then
10182 # Use $CC to link under sequent, because it throws in some extra .o
10183 # files that make .init and .fini sections work.
10184 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185 else
10186 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10187 fi
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_direct=yes
10190 hardcode_minus_L=yes
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 sysv4)
10195 case $host_vendor in
10196 sni)
10197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198 hardcode_direct=yes # is this really true???
10199 ;;
10200 siemens)
10201 ## LD is ld it makes a PLAMLIB
10202 ## CC just makes a GrossModule.
10203 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10204 reload_cmds='$CC -r -o $output$reload_objs'
10205 hardcode_direct=no
10206 ;;
10207 motorola)
10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10210 ;;
10211 esac
10212 runpath_var='LD_RUN_PATH'
10213 hardcode_shlibpath_var=no
10214 ;;
10215
10216 sysv4.3*)
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_shlibpath_var=no
10219 export_dynamic_flag_spec='-Bexport'
10220 ;;
10221
10222 sysv4*MP*)
10223 if test -d /usr/nec; then
10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 hardcode_shlibpath_var=no
10226 runpath_var=LD_RUN_PATH
10227 hardcode_runpath_var=yes
10228 ld_shlibs=yes
10229 fi
10230 ;;
10231
10232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10233 no_undefined_flag='${wl}-z,text'
10234 archive_cmds_need_lc=no
10235 hardcode_shlibpath_var=no
10236 runpath_var='LD_RUN_PATH'
10237
10238 if test "$GCC" = yes; then
10239 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 else
10242 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 fi
10245 ;;
10246
10247 sysv5* | sco3.2v5* | sco5v6*)
10248 # Note: We can NOT use -z defs as we might desire, because we do not
10249 # link with -lc, and that would cause any symbols used from libc to
10250 # always be unresolved, which means just about no library would
10251 # ever link correctly. If we're not using GNU ld we use -z text
10252 # though, which does catch some bad symbols but isn't as heavy-handed
10253 # as -z defs.
10254 no_undefined_flag='${wl}-z,text'
10255 allow_undefined_flag='${wl}-z,nodefs'
10256 archive_cmds_need_lc=no
10257 hardcode_shlibpath_var=no
10258 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10259 hardcode_libdir_separator=':'
10260 link_all_deplibs=yes
10261 export_dynamic_flag_spec='${wl}-Bexport'
10262 runpath_var='LD_RUN_PATH'
10263
10264 if test "$GCC" = yes; then
10265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 else
10268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 fi
10271 ;;
10272
10273 uts4*)
10274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_libdir_flag_spec='-L$libdir'
10276 hardcode_shlibpath_var=no
10277 ;;
10278
10279 *)
10280 ld_shlibs=no
10281 ;;
10282 esac
10283
10284 if test x$host_vendor = xsni; then
10285 case $host in
10286 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10287 export_dynamic_flag_spec='${wl}-Blargedynsym'
10288 ;;
10289 esac
10290 fi
10291 fi
10292
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10294$as_echo "$ld_shlibs" >&6; }
10295test "$ld_shlibs" = no && can_build_shared=no
10296
10297with_gnu_ld=$with_gnu_ld
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313#
10314# Do we need to explicitly link libc?
10315#
10316case "x$archive_cmds_need_lc" in
10317x|xyes)
10318 # Assume -lc should be added
10319 archive_cmds_need_lc=yes
10320
10321 if test "$enable_shared" = yes && test "$GCC" = yes; then
10322 case $archive_cmds in
10323 *'~'*)
10324 # FIXME: we may have to deal with multi-command sequences.
10325 ;;
10326 '$CC '*)
10327 # Test whether the compiler implicitly links with -lc since on some
10328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10329 # to ld, don't add -lc before -lgcc.
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10331$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000010332if ${lt_cv_archive_cmds_need_lc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010333 $as_echo_n "(cached) " >&6
10334else
10335 $RM conftest*
10336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10337
10338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10339 (eval $ac_compile) 2>&5
10340 ac_status=$?
10341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10342 test $ac_status = 0; } 2>conftest.err; then
10343 soname=conftest
10344 lib=conftest
10345 libobjs=conftest.$ac_objext
10346 deplibs=
10347 wl=$lt_prog_compiler_wl
10348 pic_flag=$lt_prog_compiler_pic
10349 compiler_flags=-v
10350 linker_flags=-v
10351 verstring=
10352 output_objdir=.
10353 libname=conftest
10354 lt_save_allow_undefined_flag=$allow_undefined_flag
10355 allow_undefined_flag=
10356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10357 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10358 ac_status=$?
10359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10360 test $ac_status = 0; }
10361 then
10362 lt_cv_archive_cmds_need_lc=no
10363 else
10364 lt_cv_archive_cmds_need_lc=yes
10365 fi
10366 allow_undefined_flag=$lt_save_allow_undefined_flag
10367 else
10368 cat conftest.err 1>&5
10369 fi
10370 $RM conftest*
10371
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10374$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10375 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10376 ;;
10377 esac
10378 fi
10379 ;;
10380esac
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10539$as_echo_n "checking dynamic linker characteristics... " >&6; }
10540
10541if test "$GCC" = yes; then
10542 case $host_os in
10543 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10544 *) lt_awk_arg="/^libraries:/" ;;
10545 esac
10546 case $host_os in
10547 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10548 *) lt_sed_strip_eq="s,=/,/,g" ;;
10549 esac
10550 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10551 case $lt_search_path_spec in
10552 *\;*)
10553 # if the path contains ";" then we assume it to be the separator
10554 # otherwise default to the standard path separator (i.e. ":") - it is
10555 # assumed that no part of a normal pathname contains ";" but that should
10556 # okay in the real world where ";" in dirpaths is itself problematic.
10557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10558 ;;
10559 *)
10560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10561 ;;
10562 esac
10563 # Ok, now we have the path, separated by spaces, we can step through it
10564 # and add multilib dir if necessary.
10565 lt_tmp_lt_search_path_spec=
10566 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10567 for lt_sys_path in $lt_search_path_spec; do
10568 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10570 else
10571 test -d "$lt_sys_path" && \
10572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10573 fi
10574 done
10575 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10576BEGIN {RS=" "; FS="/|\n";} {
10577 lt_foo="";
10578 lt_count=0;
10579 for (lt_i = NF; lt_i > 0; lt_i--) {
10580 if ($lt_i != "" && $lt_i != ".") {
10581 if ($lt_i == "..") {
10582 lt_count++;
10583 } else {
10584 if (lt_count == 0) {
10585 lt_foo="/" $lt_i lt_foo;
10586 } else {
10587 lt_count--;
10588 }
10589 }
10590 }
10591 }
10592 if (lt_foo != "") { lt_freq[lt_foo]++; }
10593 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10594}'`
10595 # AWK program above erroneously prepends '/' to C:/dos/paths
10596 # for these hosts.
10597 case $host_os in
10598 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10599 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10600 esac
10601 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10602else
10603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10604fi
10605library_names_spec=
10606libname_spec='lib$name'
10607soname_spec=
10608shrext_cmds=".so"
10609postinstall_cmds=
10610postuninstall_cmds=
10611finish_cmds=
10612finish_eval=
10613shlibpath_var=
10614shlibpath_overrides_runpath=unknown
10615version_type=none
10616dynamic_linker="$host_os ld.so"
10617sys_lib_dlsearch_path_spec="/lib /usr/lib"
10618need_lib_prefix=unknown
10619hardcode_into_libs=no
10620
10621# when you set need_version to no, make sure it does not cause -set_version
10622# flags to be left without arguments
10623need_version=unknown
10624
10625case $host_os in
10626aix3*)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10629 shlibpath_var=LIBPATH
10630
10631 # AIX 3 has no versioning support, so we append a major version to the name.
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 ;;
10634
10635aix[4-9]*)
10636 version_type=linux
10637 need_lib_prefix=no
10638 need_version=no
10639 hardcode_into_libs=yes
10640 if test "$host_cpu" = ia64; then
10641 # AIX 5 supports IA64
10642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 else
10645 # With GCC up to 2.95.x, collect2 would create an import file
10646 # for dependence libraries. The import file would start with
10647 # the line `#! .'. This would cause the generated library to
10648 # depend on `.', always an invalid library. This was fixed in
10649 # development snapshots of GCC prior to 3.0.
10650 case $host_os in
10651 aix4 | aix4.[01] | aix4.[01].*)
10652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10653 echo ' yes '
10654 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10655 :
10656 else
10657 can_build_shared=no
10658 fi
10659 ;;
10660 esac
10661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10662 # soname into executable. Probably we can add versioning support to
10663 # collect2, so additional links can be useful in future.
10664 if test "$aix_use_runtimelinking" = yes; then
10665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10666 # instead of lib<name>.a to let people know that these are not
10667 # typical AIX shared libraries.
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 else
10670 # We preserve .a as extension for shared libraries through AIX4.2
10671 # and later when we are not doing run time linking.
10672 library_names_spec='${libname}${release}.a $libname.a'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 fi
10675 shlibpath_var=LIBPATH
10676 fi
10677 ;;
10678
10679amigaos*)
10680 case $host_cpu in
10681 powerpc)
10682 # Since July 2007 AmigaOS4 officially supports .so libraries.
10683 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 ;;
10686 m68k)
10687 library_names_spec='$libname.ixlibrary $libname.a'
10688 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10689 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'
10690 ;;
10691 esac
10692 ;;
10693
10694beos*)
10695 library_names_spec='${libname}${shared_ext}'
10696 dynamic_linker="$host_os ld.so"
10697 shlibpath_var=LIBRARY_PATH
10698 ;;
10699
10700bsdi[45]*)
10701 version_type=linux
10702 need_version=no
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10709 # the default ld.so.conf also contains /usr/contrib/lib and
10710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10711 # libtool to hard-code these into programs
10712 ;;
10713
10714cygwin* | mingw* | pw32* | cegcc*)
10715 version_type=windows
10716 shrext_cmds=".dll"
10717 need_version=no
10718 need_lib_prefix=no
10719
10720 case $GCC,$host_os in
10721 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10722 library_names_spec='$libname.dll.a'
10723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10724 postinstall_cmds='base_file=`basename \${file}`~
10725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10726 dldir=$destdir/`dirname \$dlpath`~
10727 test -d \$dldir || mkdir -p \$dldir~
10728 $install_prog $dir/$dlname \$dldir/$dlname~
10729 chmod a+x \$dldir/$dlname~
10730 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10731 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10732 fi'
10733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10734 dlpath=$dir/\$dldll~
10735 $RM \$dlpath'
10736 shlibpath_overrides_runpath=yes
10737
10738 case $host_os in
10739 cygwin*)
10740 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10741 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742
10743 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10744 ;;
10745 mingw* | cegcc*)
10746 # MinGW DLLs use traditional 'lib' prefix
10747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10748 ;;
10749 pw32*)
10750 # pw32 DLLs use 'pw' prefix rather than 'lib'
10751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752 ;;
10753 esac
10754 ;;
10755
10756 *)
10757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10758 ;;
10759 esac
10760 dynamic_linker='Win32 ld.exe'
10761 # FIXME: first we should search . and the directory the executable is in
10762 shlibpath_var=PATH
10763 ;;
10764
10765darwin* | rhapsody*)
10766 dynamic_linker="$host_os dyld"
10767 version_type=darwin
10768 need_lib_prefix=no
10769 need_version=no
10770 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10771 soname_spec='${libname}${release}${major}$shared_ext'
10772 shlibpath_overrides_runpath=yes
10773 shlibpath_var=DYLD_LIBRARY_PATH
10774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10775
10776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10778 ;;
10779
10780dgux*)
10781 version_type=linux
10782 need_lib_prefix=no
10783 need_version=no
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 ;;
10788
10789freebsd* | dragonfly*)
10790 # DragonFly does not have aout. When/if they implement a new
10791 # versioning mechanism, adjust this.
10792 if test -x /usr/bin/objformat; then
10793 objformat=`/usr/bin/objformat`
10794 else
10795 case $host_os in
10796 freebsd[23].*) objformat=aout ;;
10797 *) objformat=elf ;;
10798 esac
10799 fi
10800 version_type=freebsd-$objformat
10801 case $version_type in
10802 freebsd-elf*)
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10804 need_version=no
10805 need_lib_prefix=no
10806 ;;
10807 freebsd-*)
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10809 need_version=yes
10810 ;;
10811 esac
10812 shlibpath_var=LD_LIBRARY_PATH
10813 case $host_os in
10814 freebsd2.*)
10815 shlibpath_overrides_runpath=yes
10816 ;;
10817 freebsd3.[01]* | freebsdelf3.[01]*)
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 ;;
10821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10823 shlibpath_overrides_runpath=no
10824 hardcode_into_libs=yes
10825 ;;
10826 *) # from 4.6 on, and DragonFly
10827 shlibpath_overrides_runpath=yes
10828 hardcode_into_libs=yes
10829 ;;
10830 esac
10831 ;;
10832
10833gnu*)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 hardcode_into_libs=yes
10841 ;;
10842
10843haiku*)
10844 version_type=linux
10845 need_lib_prefix=no
10846 need_version=no
10847 dynamic_linker="$host_os runtime_loader"
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 shlibpath_var=LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10853 hardcode_into_libs=yes
10854 ;;
10855
10856hpux9* | hpux10* | hpux11*)
10857 # Give a soname corresponding to the major version so that dld.sl refuses to
10858 # link against other versions.
10859 version_type=sunos
10860 need_lib_prefix=no
10861 need_version=no
10862 case $host_cpu in
10863 ia64*)
10864 shrext_cmds='.so'
10865 hardcode_into_libs=yes
10866 dynamic_linker="$host_os dld.so"
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 if test "X$HPUX_IA64_MODE" = X32; then
10872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10873 else
10874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10875 fi
10876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10877 ;;
10878 hppa*64*)
10879 shrext_cmds='.sl'
10880 hardcode_into_libs=yes
10881 dynamic_linker="$host_os dld.sl"
10882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10888 ;;
10889 *)
10890 shrext_cmds='.sl'
10891 dynamic_linker="$host_os dld.sl"
10892 shlibpath_var=SHLIB_PATH
10893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 ;;
10897 esac
10898 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10899 postinstall_cmds='chmod 555 $lib'
10900 # or fails outright, so override atomically:
10901 install_override_mode=555
10902 ;;
10903
10904interix[3-9]*)
10905 version_type=linux
10906 need_lib_prefix=no
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10914 ;;
10915
10916irix5* | irix6* | nonstopux*)
10917 case $host_os in
10918 nonstopux*) version_type=nonstopux ;;
10919 *)
10920 if test "$lt_cv_prog_gnu_ld" = yes; then
10921 version_type=linux
10922 else
10923 version_type=irix
10924 fi ;;
10925 esac
10926 need_lib_prefix=no
10927 need_version=no
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10930 case $host_os in
10931 irix5* | nonstopux*)
10932 libsuff= shlibsuff=
10933 ;;
10934 *)
10935 case $LD in # libtool.m4 will add one of these switches to LD
10936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10937 libsuff= shlibsuff= libmagic=32-bit;;
10938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10939 libsuff=32 shlibsuff=N32 libmagic=N32;;
10940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10942 *) libsuff= shlibsuff= libmagic=never-match;;
10943 esac
10944 ;;
10945 esac
10946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10947 shlibpath_overrides_runpath=no
10948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10950 hardcode_into_libs=yes
10951 ;;
10952
10953# No shared lib support for Linux oldld, aout, or coff.
10954linux*oldld* | linux*aout* | linux*coff*)
10955 dynamic_linker=no
10956 ;;
10957
10958# This must be Linux ELF.
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000010959
10960# uclinux* changes (here and below) have been submitted to the libtool
10961# project, but have not yet been accepted: they are GCC-local changes
10962# for the time being. (See
10963# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10964linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000010965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=no
10973
10974 # Some binutils ld are patched to set DT_RUNPATH
Joseph Myers22e05272018-10-31 17:03:16 +000010975 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000010976 $as_echo_n "(cached) " >&6
10977else
10978 lt_cv_shlibpath_overrides_runpath=no
10979 save_LDFLAGS=$LDFLAGS
10980 save_libdir=$libdir
10981 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10982 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h. */
10985
10986int
10987main ()
10988{
10989
10990 ;
10991 return 0;
10992}
10993_ACEOF
10994if ac_fn_c_try_link "$LINENO"; then :
10995 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10996 lt_cv_shlibpath_overrides_runpath=yes
10997fi
10998fi
10999rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LDFLAGS=$save_LDFLAGS
11002 libdir=$save_libdir
11003
11004fi
11005
11006 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11007
11008 # This implies no fast_install, which is unacceptable.
11009 # Some rework will be needed to allow for fast_install
11010 # before this can be enabled.
11011 hardcode_into_libs=yes
11012
11013 # Append ld.so.conf contents to the search path
11014 if test -f /etc/ld.so.conf; then
11015 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' ' '`
11016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11017 fi
11018
11019 # We used to test for /lib/ld.so.1 and disable shared libraries on
11020 # powerpc, because MkLinux only supported shared libraries with the
11021 # GNU dynamic linker. Since this was broken with cross compilers,
11022 # most powerpc-linux boxes support dynamic linking these days and
11023 # people can always --disable-shared, the test was removed, and we
11024 # assume the GNU/Linux dynamic linker is in use.
11025 dynamic_linker='GNU/Linux ld.so'
11026 ;;
11027
11028netbsd*)
11029 version_type=sunos
11030 need_lib_prefix=no
11031 need_version=no
11032 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11035 dynamic_linker='NetBSD (a.out) ld.so'
11036 else
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 dynamic_linker='NetBSD ld.elf_so'
11040 fi
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043 hardcode_into_libs=yes
11044 ;;
11045
11046newsos6)
11047 version_type=linux
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 ;;
11052
11053*nto* | *qnx*)
11054 version_type=qnx
11055 need_lib_prefix=no
11056 need_version=no
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061 hardcode_into_libs=yes
11062 dynamic_linker='ldqnx.so'
11063 ;;
11064
11065openbsd*)
11066 version_type=sunos
11067 sys_lib_dlsearch_path_spec="/usr/lib"
11068 need_lib_prefix=no
11069 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11070 case $host_os in
11071 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11072 *) need_version=no ;;
11073 esac
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11078 case $host_os in
11079 openbsd2.[89] | openbsd2.[89].*)
11080 shlibpath_overrides_runpath=no
11081 ;;
11082 *)
11083 shlibpath_overrides_runpath=yes
11084 ;;
11085 esac
11086 else
11087 shlibpath_overrides_runpath=yes
11088 fi
11089 ;;
11090
11091os2*)
11092 libname_spec='$name'
11093 shrext_cmds=".dll"
11094 need_lib_prefix=no
11095 library_names_spec='$libname${shared_ext} $libname.a'
11096 dynamic_linker='OS/2 ld.exe'
11097 shlibpath_var=LIBPATH
11098 ;;
11099
11100osf3* | osf4* | osf5*)
11101 version_type=osf
11102 need_lib_prefix=no
11103 need_version=no
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11108 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11109 ;;
11110
11111rdos*)
11112 dynamic_linker=no
11113 ;;
11114
11115solaris*)
11116 version_type=linux
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11124 # ldd complains unless libraries are executable
11125 postinstall_cmds='chmod +x $lib'
11126 ;;
11127
11128sunos4*)
11129 version_type=sunos
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11134 if test "$with_gnu_ld" = yes; then
11135 need_lib_prefix=no
11136 fi
11137 need_version=yes
11138 ;;
11139
11140sysv4 | sysv4.3*)
11141 version_type=linux
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 case $host_vendor in
11146 sni)
11147 shlibpath_overrides_runpath=no
11148 need_lib_prefix=no
11149 runpath_var=LD_RUN_PATH
11150 ;;
11151 siemens)
11152 need_lib_prefix=no
11153 ;;
11154 motorola)
11155 need_lib_prefix=no
11156 need_version=no
11157 shlibpath_overrides_runpath=no
11158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11159 ;;
11160 esac
11161 ;;
11162
11163sysv4*MP*)
11164 if test -d /usr/nec ;then
11165 version_type=linux
11166 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11167 soname_spec='$libname${shared_ext}.$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 fi
11170 ;;
11171
11172sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11173 version_type=freebsd-elf
11174 need_lib_prefix=no
11175 need_version=no
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 shlibpath_overrides_runpath=yes
11180 hardcode_into_libs=yes
11181 if test "$with_gnu_ld" = yes; then
11182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11183 else
11184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11185 case $host_os in
11186 sco3.2v5*)
11187 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11188 ;;
11189 esac
11190 fi
11191 sys_lib_dlsearch_path_spec='/usr/lib'
11192 ;;
11193
11194tpf*)
11195 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11196 version_type=linux
11197 need_lib_prefix=no
11198 need_version=no
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=no
11202 hardcode_into_libs=yes
11203 ;;
11204
11205uts4*)
11206 version_type=linux
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 ;;
11211
11212*)
11213 dynamic_linker=no
11214 ;;
11215esac
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11217$as_echo "$dynamic_linker" >&6; }
11218test "$dynamic_linker" = no && can_build_shared=no
11219
11220variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11221if test "$GCC" = yes; then
11222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11223fi
11224
11225if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11226 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11227fi
11228if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11229 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11230fi
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11324$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11325hardcode_action=
11326if test -n "$hardcode_libdir_flag_spec" ||
11327 test -n "$runpath_var" ||
11328 test "X$hardcode_automatic" = "Xyes" ; then
11329
11330 # We can hardcode non-existent directories.
11331 if test "$hardcode_direct" != no &&
11332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11333 # have to relink, otherwise we might link with an installed library
11334 # when we should be linking with a yet-to-be-installed one
11335 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11336 test "$hardcode_minus_L" != no; then
11337 # Linking always hardcodes the temporary library directory.
11338 hardcode_action=relink
11339 else
11340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11341 hardcode_action=immediate
11342 fi
11343else
11344 # We cannot hardcode anything, or else we can only hardcode existing
11345 # directories.
11346 hardcode_action=unsupported
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11349$as_echo "$hardcode_action" >&6; }
11350
11351if test "$hardcode_action" = relink ||
11352 test "$inherit_rpath" = yes; then
11353 # Fast installation is not supported
11354 enable_fast_install=no
11355elif test "$shlibpath_overrides_runpath" = yes ||
11356 test "$enable_shared" = no; then
11357 # Fast installation is not necessary
11358 enable_fast_install=needless
11359fi
11360
11361
11362
11363
11364
11365
11366 if test "x$enable_dlopen" != xyes; then
11367 enable_dlopen=unknown
11368 enable_dlopen_self=unknown
11369 enable_dlopen_self_static=unknown
11370else
11371 lt_cv_dlopen=no
11372 lt_cv_dlopen_libs=
11373
11374 case $host_os in
11375 beos*)
11376 lt_cv_dlopen="load_add_on"
11377 lt_cv_dlopen_libs=
11378 lt_cv_dlopen_self=yes
11379 ;;
11380
11381 mingw* | pw32* | cegcc*)
11382 lt_cv_dlopen="LoadLibrary"
11383 lt_cv_dlopen_libs=
11384 ;;
11385
11386 cygwin*)
11387 lt_cv_dlopen="dlopen"
11388 lt_cv_dlopen_libs=
11389 ;;
11390
11391 darwin*)
11392 # if libdl is installed we need to link against it
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011395if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011396 $as_echo_n "(cached) " >&6
11397else
11398 ac_check_lib_save_LIBS=$LIBS
11399LIBS="-ldl $LIBS"
11400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401/* end confdefs.h. */
11402
11403/* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11406#ifdef __cplusplus
11407extern "C"
11408#endif
11409char dlopen ();
11410int
11411main ()
11412{
11413return dlopen ();
11414 ;
11415 return 0;
11416}
11417_ACEOF
11418if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_lib_dl_dlopen=yes
11420else
11421 ac_cv_lib_dl_dlopen=no
11422fi
11423rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425LIBS=$ac_check_lib_save_LIBS
11426fi
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011429if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11431else
11432
11433 lt_cv_dlopen="dyld"
11434 lt_cv_dlopen_libs=
11435 lt_cv_dlopen_self=yes
11436
11437fi
11438
11439 ;;
11440
11441 *)
11442 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Joseph Myers22e05272018-10-31 17:03:16 +000011443if test "x$ac_cv_func_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011444 lt_cv_dlopen="shl_load"
11445else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11447$as_echo_n "checking for shl_load in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011448if ${ac_cv_lib_dld_shl_load+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011449 $as_echo_n "(cached) " >&6
11450else
11451 ac_check_lib_save_LIBS=$LIBS
11452LIBS="-ldld $LIBS"
11453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h. */
11455
11456/* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459#ifdef __cplusplus
11460extern "C"
11461#endif
11462char shl_load ();
11463int
11464main ()
11465{
11466return shl_load ();
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_dld_shl_load=yes
11473else
11474 ac_cv_lib_dld_shl_load=no
11475fi
11476rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478LIBS=$ac_check_lib_save_LIBS
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11481$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011482if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011483 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11484else
11485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Joseph Myers22e05272018-10-31 17:03:16 +000011486if test "x$ac_cv_func_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011487 lt_cv_dlopen="dlopen"
11488else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11490$as_echo_n "checking for dlopen in -ldl... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011491if ${ac_cv_lib_dl_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011492 $as_echo_n "(cached) " >&6
11493else
11494 ac_check_lib_save_LIBS=$LIBS
11495LIBS="-ldl $LIBS"
11496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497/* end confdefs.h. */
11498
11499/* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502#ifdef __cplusplus
11503extern "C"
11504#endif
11505char dlopen ();
11506int
11507main ()
11508{
11509return dlopen ();
11510 ;
11511 return 0;
11512}
11513_ACEOF
11514if ac_fn_c_try_link "$LINENO"; then :
11515 ac_cv_lib_dl_dlopen=yes
11516else
11517 ac_cv_lib_dl_dlopen=no
11518fi
11519rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521LIBS=$ac_check_lib_save_LIBS
11522fi
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11524$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011525if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11527else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11529$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011530if ${ac_cv_lib_svld_dlopen+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011531 $as_echo_n "(cached) " >&6
11532else
11533 ac_check_lib_save_LIBS=$LIBS
11534LIBS="-lsvld $LIBS"
11535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h. */
11537
11538/* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541#ifdef __cplusplus
11542extern "C"
11543#endif
11544char dlopen ();
11545int
11546main ()
11547{
11548return dlopen ();
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_svld_dlopen=yes
11555else
11556 ac_cv_lib_svld_dlopen=no
11557fi
11558rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560LIBS=$ac_check_lib_save_LIBS
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11563$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011564if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11566else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11568$as_echo_n "checking for dld_link in -ldld... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011569if ${ac_cv_lib_dld_dld_link+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011570 $as_echo_n "(cached) " >&6
11571else
11572 ac_check_lib_save_LIBS=$LIBS
11573LIBS="-ldld $LIBS"
11574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575/* end confdefs.h. */
11576
11577/* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580#ifdef __cplusplus
11581extern "C"
11582#endif
11583char dld_link ();
11584int
11585main ()
11586{
11587return dld_link ();
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_dld_dld_link=yes
11594else
11595 ac_cv_lib_dld_dld_link=no
11596fi
11597rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599LIBS=$ac_check_lib_save_LIBS
11600fi
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11602$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011603if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011604 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11605fi
11606
11607
11608fi
11609
11610
11611fi
11612
11613
11614fi
11615
11616
11617fi
11618
11619
11620fi
11621
11622 ;;
11623 esac
11624
11625 if test "x$lt_cv_dlopen" != xno; then
11626 enable_dlopen=yes
11627 else
11628 enable_dlopen=no
11629 fi
11630
11631 case $lt_cv_dlopen in
11632 dlopen)
11633 save_CPPFLAGS="$CPPFLAGS"
11634 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11635
11636 save_LDFLAGS="$LDFLAGS"
11637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11638
11639 save_LIBS="$LIBS"
11640 LIBS="$lt_cv_dlopen_libs $LIBS"
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11643$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011644if ${lt_cv_dlopen_self+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011645 $as_echo_n "(cached) " >&6
11646else
11647 if test "$cross_compiling" = yes; then :
11648 lt_cv_dlopen_self=cross
11649else
11650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11651 lt_status=$lt_dlunknown
11652 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw261bd782020-03-25 09:38:58 +010011653#line 11653 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011654#include "confdefs.h"
11655
11656#if HAVE_DLFCN_H
11657#include <dlfcn.h>
11658#endif
11659
11660#include <stdio.h>
11661
11662#ifdef RTLD_GLOBAL
11663# define LT_DLGLOBAL RTLD_GLOBAL
11664#else
11665# ifdef DL_GLOBAL
11666# define LT_DLGLOBAL DL_GLOBAL
11667# else
11668# define LT_DLGLOBAL 0
11669# endif
11670#endif
11671
11672/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11673 find out it does not work in some platform. */
11674#ifndef LT_DLLAZY_OR_NOW
11675# ifdef RTLD_LAZY
11676# define LT_DLLAZY_OR_NOW RTLD_LAZY
11677# else
11678# ifdef DL_LAZY
11679# define LT_DLLAZY_OR_NOW DL_LAZY
11680# else
11681# ifdef RTLD_NOW
11682# define LT_DLLAZY_OR_NOW RTLD_NOW
11683# else
11684# ifdef DL_NOW
11685# define LT_DLLAZY_OR_NOW DL_NOW
11686# else
11687# define LT_DLLAZY_OR_NOW 0
11688# endif
11689# endif
11690# endif
11691# endif
11692#endif
11693
11694/* When -fvisbility=hidden is used, assume the code has been annotated
11695 correspondingly for the symbols needed. */
11696#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11697void fnord () __attribute__((visibility("default")));
11698#endif
11699
11700void fnord () { int i=42; }
11701int main ()
11702{
11703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704 int status = $lt_dlunknown;
11705
11706 if (self)
11707 {
11708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 else
11710 {
11711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 else puts (dlerror ());
11713 }
11714 /* dlclose (self); */
11715 }
11716 else
11717 puts (dlerror ());
11718
11719 return status;
11720}
11721_LT_EOF
11722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11727 (./conftest; exit; ) >&5 2>/dev/null
11728 lt_status=$?
11729 case x$lt_status in
11730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11732 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11733 esac
11734 else :
11735 # compilation failed
11736 lt_cv_dlopen_self=no
11737 fi
11738fi
11739rm -fr conftest*
11740
11741
11742fi
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11744$as_echo "$lt_cv_dlopen_self" >&6; }
11745
11746 if test "x$lt_cv_dlopen_self" = xyes; then
11747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11749$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000011750if ${lt_cv_dlopen_self_static+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000011751 $as_echo_n "(cached) " >&6
11752else
11753 if test "$cross_compiling" = yes; then :
11754 lt_cv_dlopen_self_static=cross
11755else
11756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757 lt_status=$lt_dlunknown
11758 cat > conftest.$ac_ext <<_LT_EOF
Iain Buclaw261bd782020-03-25 09:38:58 +010011759#line 11759 "configure"
Iain Buclawb4c522f2018-10-28 19:51:47 +000011760#include "confdefs.h"
11761
11762#if HAVE_DLFCN_H
11763#include <dlfcn.h>
11764#endif
11765
11766#include <stdio.h>
11767
11768#ifdef RTLD_GLOBAL
11769# define LT_DLGLOBAL RTLD_GLOBAL
11770#else
11771# ifdef DL_GLOBAL
11772# define LT_DLGLOBAL DL_GLOBAL
11773# else
11774# define LT_DLGLOBAL 0
11775# endif
11776#endif
11777
11778/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779 find out it does not work in some platform. */
11780#ifndef LT_DLLAZY_OR_NOW
11781# ifdef RTLD_LAZY
11782# define LT_DLLAZY_OR_NOW RTLD_LAZY
11783# else
11784# ifdef DL_LAZY
11785# define LT_DLLAZY_OR_NOW DL_LAZY
11786# else
11787# ifdef RTLD_NOW
11788# define LT_DLLAZY_OR_NOW RTLD_NOW
11789# else
11790# ifdef DL_NOW
11791# define LT_DLLAZY_OR_NOW DL_NOW
11792# else
11793# define LT_DLLAZY_OR_NOW 0
11794# endif
11795# endif
11796# endif
11797# endif
11798#endif
11799
11800/* When -fvisbility=hidden is used, assume the code has been annotated
11801 correspondingly for the symbols needed. */
11802#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803void fnord () __attribute__((visibility("default")));
11804#endif
11805
11806void fnord () { int i=42; }
11807int main ()
11808{
11809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810 int status = $lt_dlunknown;
11811
11812 if (self)
11813 {
11814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11815 else
11816 {
11817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11818 else puts (dlerror ());
11819 }
11820 /* dlclose (self); */
11821 }
11822 else
11823 puts (dlerror ());
11824
11825 return status;
11826}
11827_LT_EOF
11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11833 (./conftest; exit; ) >&5 2>/dev/null
11834 lt_status=$?
11835 case x$lt_status in
11836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11839 esac
11840 else :
11841 # compilation failed
11842 lt_cv_dlopen_self_static=no
11843 fi
11844fi
11845rm -fr conftest*
11846
11847
11848fi
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11850$as_echo "$lt_cv_dlopen_self_static" >&6; }
11851 fi
11852
11853 CPPFLAGS="$save_CPPFLAGS"
11854 LDFLAGS="$save_LDFLAGS"
11855 LIBS="$save_LIBS"
11856 ;;
11857 esac
11858
11859 case $lt_cv_dlopen_self in
11860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11861 *) enable_dlopen_self=unknown ;;
11862 esac
11863
11864 case $lt_cv_dlopen_self_static in
11865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11866 *) enable_dlopen_self_static=unknown ;;
11867 esac
11868fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886striplib=
11887old_striplib=
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11889$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11890if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894$as_echo "yes" >&6; }
11895else
11896# FIXME - insert some real tests, host_os isn't really good enough
11897 case $host_os in
11898 darwin*)
11899 if test -n "$STRIP" ; then
11900 striplib="$STRIP -x"
11901 old_striplib="$STRIP -S"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903$as_echo "yes" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
11907 fi
11908 ;;
11909 *)
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911$as_echo "no" >&6; }
11912 ;;
11913 esac
11914fi
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927 # Report which library types will actually be built
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11929$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11931$as_echo "$can_build_shared" >&6; }
11932
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11934$as_echo_n "checking whether to build shared libraries... " >&6; }
11935 test "$can_build_shared" = "no" && enable_shared=no
11936
11937 # On AIX, shared libraries and static libraries use the same namespace, and
11938 # are all built from PIC.
11939 case $host_os in
11940 aix3*)
11941 test "$enable_shared" = yes && enable_static=no
11942 if test -n "$RANLIB"; then
11943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11944 postinstall_cmds='$RANLIB $lib'
11945 fi
11946 ;;
11947
11948 aix[4-9]*)
11949 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11950 test "$enable_shared" = yes && enable_static=no
11951 fi
11952 ;;
11953 esac
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11955$as_echo "$enable_shared" >&6; }
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11958$as_echo_n "checking whether to build static libraries... " >&6; }
11959 # Make sure either enable_shared or enable_static is yes.
11960 test "$enable_shared" = yes || enable_static=yes
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11962$as_echo "$enable_static" >&6; }
11963
11964
11965
11966
11967fi
11968ac_ext=c
11969ac_cpp='$CPP $CPPFLAGS'
11970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973
11974CC="$lt_save_CC"
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988 ac_config_commands="$ac_config_commands libtool"
11989
11990
11991
11992
11993# Only expand once:
11994
11995
11996
11997
11998
11999 gdc_save_DFLAGS=$GDCFLAGS
12000 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12001
12002
12003# Source file extension for D test sources.
12004ac_ext=d
12005
12006# Object file extension for compiled D test sources.
12007objext=o
12008objext_D=$objext
12009
12010# Code to be used in simple compile tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012011lt_simple_compile_test_code="\
12012 module object;
12013 shared int some_variable = 0;
12014"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012015
12016# Code to be used in simple link tests
Iain Buclaw9bedfe12019-04-24 02:04:04 +000012017lt_simple_link_test_code="\
12018 module object;
12019 extern(C) int main() { return 0; }
12020"
Iain Buclawb4c522f2018-10-28 19:51:47 +000012021
12022# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12023
12024
12025
12026
12027
12028
12029# If no C compiler was specified, use CC.
12030LTCC=${LTCC-"$CC"}
12031
12032# If no C compiler flags were specified, use CFLAGS.
12033LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12034
12035# Allow CC to be a program name with arguments.
12036compiler=$CC
12037
12038
12039# save warnings/boilerplate of simple test code
12040ac_outfile=conftest.$ac_objext
12041echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12042eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12043_lt_compiler_boilerplate=`cat conftest.err`
12044$RM conftest*
12045
12046ac_outfile=conftest.$ac_objext
12047echo "$lt_simple_link_test_code" >conftest.$ac_ext
12048eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12049_lt_linker_boilerplate=`cat conftest.err`
12050$RM -r conftest*
12051
12052
12053# Allow CC to be a program name with arguments.
12054lt_save_CC=$CC
12055lt_save_CFLAGS=$CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000012056lt_save_GCC=$GCC
12057GCC=yes
12058CC=${GDC-"gdc"}
Iain Buclawb4c522f2018-10-28 19:51:47 +000012059CFLAGS=$GDCFLAGS
12060compiler=$CC
12061compiler_D=$CC
12062LD_D=$CC
12063for cc_temp in $compiler""; do
12064 case $cc_temp in
12065 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12066 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12067 \-*) ;;
12068 *) break;;
12069 esac
12070done
12071cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12072
12073
12074# GDC did not exist at the time GCC didn't implicitly link libc in.
12075archive_cmds_need_lc_D=no
12076
12077old_archive_cmds_D=$old_archive_cmds
12078reload_flag_D=$reload_flag
12079reload_cmds_D=$reload_cmds
12080
12081## CAVEAT EMPTOR:
12082## There is no encapsulation within the following macros, do not change
12083## the running order or otherwise move them around unless you know exactly
12084## what you are doing...
12085if test -n "$compiler"; then
12086
12087lt_prog_compiler_no_builtin_flag_D=
12088
12089if test "$GCC" = yes; then
12090 case $cc_basename in
12091 nvcc*)
12092 lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12093 *)
12094 lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12095 esac
12096
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12098$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012099if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012100 $as_echo_n "(cached) " >&6
12101else
12102 lt_cv_prog_compiler_rtti_exceptions=no
12103 ac_outfile=conftest.$ac_objext
12104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12105 lt_compiler_flag="-fno-rtti -fno-exceptions"
12106 # Insert the option either (1) after the last *FLAGS variable, or
12107 # (2) before a word containing "conftest.", or (3) at the end.
12108 # Note that $ac_compile itself does not contain backslashes and begins
12109 # with a dollar sign (not a hyphen), so the echo should work correctly.
12110 # The option is referenced via a variable to avoid confusing sed.
12111 lt_compile=`echo "$ac_compile" | $SED \
12112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12114 -e 's:$: $lt_compiler_flag:'`
12115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12116 (eval "$lt_compile" 2>conftest.err)
12117 ac_status=$?
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 if (exit $ac_status) && test -s "$ac_outfile"; then
12121 # The compiler can only warn and ignore the option if not recognized
12122 # So say no if there are warnings other than the usual output.
12123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12126 lt_cv_prog_compiler_rtti_exceptions=yes
12127 fi
12128 fi
12129 $RM conftest*
12130
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12133$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12134
12135if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12136 lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12137else
12138 :
12139fi
12140
12141fi
12142
12143
12144
12145 lt_prog_compiler_wl_D=
12146lt_prog_compiler_pic_D=
12147lt_prog_compiler_static_D=
12148
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12150$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12151
12152 if test "$GCC" = yes; then
12153 lt_prog_compiler_wl_D='-Wl,'
12154 lt_prog_compiler_static_D='-static'
12155
12156 case $host_os in
12157 aix*)
12158 # All AIX code is PIC.
12159 if test "$host_cpu" = ia64; then
12160 # AIX 5 now supports IA64 processor
12161 lt_prog_compiler_static_D='-Bstatic'
12162 fi
12163 lt_prog_compiler_pic_D='-fPIC'
12164 ;;
12165
12166 amigaos*)
12167 case $host_cpu in
12168 powerpc)
12169 # see comment about AmigaOS4 .so support
12170 lt_prog_compiler_pic_D='-fPIC'
12171 ;;
12172 m68k)
12173 # FIXME: we need at least 68020 code to build shared libraries, but
12174 # adding the `-m68020' flag to GCC prevents building anything better,
12175 # like `-m68040'.
12176 lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12177 ;;
12178 esac
12179 ;;
12180
12181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12182 # PIC is the default for these OSes.
12183 ;;
12184
12185 mingw* | cygwin* | pw32* | os2* | cegcc*)
12186 # This hack is so that the source file can tell whether it is being
12187 # built for inclusion in a dll (and should export symbols for example).
12188 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12189 # (--disable-auto-import) libraries
12190 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12191 ;;
12192
12193 darwin* | rhapsody*)
12194 # PIC is the default on this platform
12195 # Common symbols not allowed in MH_DYLIB files
12196 lt_prog_compiler_pic_D='-fno-common'
12197 ;;
12198
12199 haiku*)
12200 # PIC is the default for Haiku.
12201 # The "-static" flag exists, but is broken.
12202 lt_prog_compiler_static_D=
12203 ;;
12204
12205 hpux*)
12206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12208 # sets the default TLS model and affects inlining.
12209 case $host_cpu in
12210 hppa*64*)
12211 # +Z the default
12212 ;;
12213 *)
12214 lt_prog_compiler_pic_D='-fPIC'
12215 ;;
12216 esac
12217 ;;
12218
12219 interix[3-9]*)
12220 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12221 # Instead, we relocate shared libraries at runtime.
12222 ;;
12223
12224 msdosdjgpp*)
12225 # Just because we use GCC doesn't mean we suddenly get shared libraries
12226 # on systems that don't support them.
12227 lt_prog_compiler_can_build_shared_D=no
12228 enable_shared=no
12229 ;;
12230
12231 *nto* | *qnx*)
12232 # QNX uses GNU C++, but need to define -shared option too, otherwise
12233 # it will coredump.
12234 lt_prog_compiler_pic_D='-fPIC -shared'
12235 ;;
12236
12237 sysv4*MP*)
12238 if test -d /usr/nec; then
12239 lt_prog_compiler_pic_D=-Kconform_pic
12240 fi
12241 ;;
12242
12243 *)
12244 lt_prog_compiler_pic_D='-fPIC'
12245 ;;
12246 esac
12247
12248 case $cc_basename in
12249 nvcc*) # Cuda Compiler Driver 2.2
12250 lt_prog_compiler_wl_D='-Xlinker '
12251 lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12252 ;;
12253 esac
12254 else
12255 # PORTME Check for flag to pass linker flags through the system compiler.
12256 case $host_os in
12257 aix*)
12258 lt_prog_compiler_wl_D='-Wl,'
12259 if test "$host_cpu" = ia64; then
12260 # AIX 5 now supports IA64 processor
12261 lt_prog_compiler_static_D='-Bstatic'
12262 else
12263 lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12264 fi
12265 ;;
12266
12267 mingw* | cygwin* | pw32* | os2* | cegcc*)
12268 # This hack is so that the source file can tell whether it is being
12269 # built for inclusion in a dll (and should export symbols for example).
12270 lt_prog_compiler_pic_D='-DDLL_EXPORT'
12271 ;;
12272
12273 hpux9* | hpux10* | hpux11*)
12274 lt_prog_compiler_wl_D='-Wl,'
12275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12276 # not for PA HP-UX.
12277 case $host_cpu in
12278 hppa*64*|ia64*)
12279 # +Z the default
12280 ;;
12281 *)
12282 lt_prog_compiler_pic_D='+Z'
12283 ;;
12284 esac
12285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12286 lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12287 ;;
12288
12289 irix5* | irix6* | nonstopux*)
12290 lt_prog_compiler_wl_D='-Wl,'
12291 # PIC (with -KPIC) is the default.
12292 lt_prog_compiler_static_D='-non_shared'
12293 ;;
12294
12295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12296 case $cc_basename in
12297 # old Intel for x86_64 which still supported -KPIC.
12298 ecc*)
12299 lt_prog_compiler_wl_D='-Wl,'
12300 lt_prog_compiler_pic_D='-KPIC'
12301 lt_prog_compiler_static_D='-static'
12302 ;;
12303 # icc used to be incompatible with GCC.
12304 # ICC 10 doesn't accept -KPIC any more.
12305 icc* | ifort*)
12306 lt_prog_compiler_wl_D='-Wl,'
12307 lt_prog_compiler_pic_D='-fPIC'
12308 lt_prog_compiler_static_D='-static'
12309 ;;
12310 # Lahey Fortran 8.1.
12311 lf95*)
12312 lt_prog_compiler_wl_D='-Wl,'
12313 lt_prog_compiler_pic_D='--shared'
12314 lt_prog_compiler_static_D='--static'
12315 ;;
12316 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12317 # Portland Group compilers (*not* the Pentium gcc compiler,
12318 # which looks to be a dead project)
12319 lt_prog_compiler_wl_D='-Wl,'
12320 lt_prog_compiler_pic_D='-fpic'
12321 lt_prog_compiler_static_D='-Bstatic'
12322 ;;
12323 ccc*)
12324 lt_prog_compiler_wl_D='-Wl,'
12325 # All Alpha code is PIC.
12326 lt_prog_compiler_static_D='-non_shared'
12327 ;;
12328 xl* | bgxl* | bgf* | mpixl*)
12329 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12330 lt_prog_compiler_wl_D='-Wl,'
12331 lt_prog_compiler_pic_D='-qpic'
12332 lt_prog_compiler_static_D='-qstaticlink'
12333 ;;
12334 *)
12335 case `$CC -V 2>&1 | sed 5q` in
12336 *Sun\ F* | *Sun*Fortran*)
12337 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12338 lt_prog_compiler_pic_D='-KPIC'
12339 lt_prog_compiler_static_D='-Bstatic'
12340 lt_prog_compiler_wl_D=''
12341 ;;
12342 *Sun\ C*)
12343 # Sun C 5.9
12344 lt_prog_compiler_pic_D='-KPIC'
12345 lt_prog_compiler_static_D='-Bstatic'
12346 lt_prog_compiler_wl_D='-Wl,'
12347 ;;
12348 esac
12349 ;;
12350 esac
12351 ;;
12352
12353 newsos6)
12354 lt_prog_compiler_pic_D='-KPIC'
12355 lt_prog_compiler_static_D='-Bstatic'
12356 ;;
12357
12358 *nto* | *qnx*)
12359 # QNX uses GNU C++, but need to define -shared option too, otherwise
12360 # it will coredump.
12361 lt_prog_compiler_pic_D='-fPIC -shared'
12362 ;;
12363
12364 osf3* | osf4* | osf5*)
12365 lt_prog_compiler_wl_D='-Wl,'
12366 # All OSF/1 code is PIC.
12367 lt_prog_compiler_static_D='-non_shared'
12368 ;;
12369
12370 rdos*)
12371 lt_prog_compiler_static_D='-non_shared'
12372 ;;
12373
12374 solaris*)
12375 lt_prog_compiler_pic_D='-KPIC'
12376 lt_prog_compiler_static_D='-Bstatic'
12377 case $cc_basename in
12378 f77* | f90* | f95*)
12379 lt_prog_compiler_wl_D='-Qoption ld ';;
12380 *)
12381 lt_prog_compiler_wl_D='-Wl,';;
12382 esac
12383 ;;
12384
12385 sunos4*)
12386 lt_prog_compiler_wl_D='-Qoption ld '
12387 lt_prog_compiler_pic_D='-PIC'
12388 lt_prog_compiler_static_D='-Bstatic'
12389 ;;
12390
12391 sysv4 | sysv4.2uw2* | sysv4.3*)
12392 lt_prog_compiler_wl_D='-Wl,'
12393 lt_prog_compiler_pic_D='-KPIC'
12394 lt_prog_compiler_static_D='-Bstatic'
12395 ;;
12396
12397 sysv4*MP*)
12398 if test -d /usr/nec ;then
12399 lt_prog_compiler_pic_D='-Kconform_pic'
12400 lt_prog_compiler_static_D='-Bstatic'
12401 fi
12402 ;;
12403
12404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12405 lt_prog_compiler_wl_D='-Wl,'
12406 lt_prog_compiler_pic_D='-KPIC'
12407 lt_prog_compiler_static_D='-Bstatic'
12408 ;;
12409
12410 unicos*)
12411 lt_prog_compiler_wl_D='-Wl,'
12412 lt_prog_compiler_can_build_shared_D=no
12413 ;;
12414
12415 uts4*)
12416 lt_prog_compiler_pic_D='-pic'
12417 lt_prog_compiler_static_D='-Bstatic'
12418 ;;
12419
12420 *)
12421 lt_prog_compiler_can_build_shared_D=no
12422 ;;
12423 esac
12424 fi
12425
12426case $host_os in
12427 # For platforms which do not support PIC, -DPIC is meaningless:
12428 *djgpp*)
12429 lt_prog_compiler_pic_D=
12430 ;;
12431 *)
12432 lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12433 ;;
12434esac
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12436$as_echo "$lt_prog_compiler_pic_D" >&6; }
12437
12438
12439
12440#
12441# Check to make sure the PIC flag actually works.
12442#
12443if test -n "$lt_prog_compiler_pic_D"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12445$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012446if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012447 $as_echo_n "(cached) " >&6
12448else
12449 lt_cv_prog_compiler_pic_works_D=no
12450 ac_outfile=conftest.$ac_objext
12451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12452 lt_compiler_flag="$lt_prog_compiler_pic_D"
12453 # Insert the option either (1) after the last *FLAGS variable, or
12454 # (2) before a word containing "conftest.", or (3) at the end.
12455 # Note that $ac_compile itself does not contain backslashes and begins
12456 # with a dollar sign (not a hyphen), so the echo should work correctly.
12457 # The option is referenced via a variable to avoid confusing sed.
12458 lt_compile=`echo "$ac_compile" | $SED \
12459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12461 -e 's:$: $lt_compiler_flag:'`
12462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12463 (eval "$lt_compile" 2>conftest.err)
12464 ac_status=$?
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 if (exit $ac_status) && test -s "$ac_outfile"; then
12468 # The compiler can only warn and ignore the option if not recognized
12469 # So say no if there are warnings other than the usual output.
12470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12473 lt_cv_prog_compiler_pic_works_D=yes
12474 fi
12475 fi
12476 $RM conftest*
12477
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12480$as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12481
12482if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12483 case $lt_prog_compiler_pic_D in
12484 "" | " "*) ;;
12485 *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12486 esac
12487else
12488 lt_prog_compiler_pic_D=
12489 lt_prog_compiler_can_build_shared_D=no
12490fi
12491
12492fi
12493
12494
12495
12496#
12497# Check to make sure the static flag actually works.
12498#
12499wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12501$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012502if ${lt_cv_prog_compiler_static_works_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 lt_cv_prog_compiler_static_works_D=no
12506 save_LDFLAGS="$LDFLAGS"
12507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12510 # The linker can only warn and ignore the option if not recognized
12511 # So say no if there are warnings
12512 if test -s conftest.err; then
12513 # Append any errors to the config.log.
12514 cat conftest.err 1>&5
12515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12517 if diff conftest.exp conftest.er2 >/dev/null; then
12518 lt_cv_prog_compiler_static_works_D=yes
12519 fi
12520 else
12521 lt_cv_prog_compiler_static_works_D=yes
12522 fi
12523 fi
12524 $RM -r conftest*
12525 LDFLAGS="$save_LDFLAGS"
12526
12527fi
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12529$as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12530
12531if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12532 :
12533else
12534 lt_prog_compiler_static_D=
12535fi
12536
12537
12538
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12541$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012542if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012543 $as_echo_n "(cached) " >&6
12544else
12545 lt_cv_prog_compiler_c_o_D=no
12546 $RM -r conftest 2>/dev/null
12547 mkdir conftest
12548 cd conftest
12549 mkdir out
12550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12551
12552 lt_compiler_flag="-o out/conftest2.$ac_objext"
12553 # Insert the option either (1) after the last *FLAGS variable, or
12554 # (2) before a word containing "conftest.", or (3) at the end.
12555 # Note that $ac_compile itself does not contain backslashes and begins
12556 # with a dollar sign (not a hyphen), so the echo should work correctly.
12557 lt_compile=`echo "$ac_compile" | $SED \
12558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12560 -e 's:$: $lt_compiler_flag:'`
12561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12562 (eval "$lt_compile" 2>out/conftest.err)
12563 ac_status=$?
12564 cat out/conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12567 then
12568 # The compiler can only warn and ignore the option if not recognized
12569 # So say no if there are warnings
12570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12573 lt_cv_prog_compiler_c_o_D=yes
12574 fi
12575 fi
12576 chmod u+w . 2>&5
12577 $RM conftest*
12578 # SGI C++ compiler will create directory out/ii_files/ for
12579 # template instantiation
12580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12581 $RM out/* && rmdir out
12582 cd ..
12583 $RM -r conftest
12584 $RM conftest*
12585
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12588$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12589
12590
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12593$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000012594if ${lt_cv_prog_compiler_c_o_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 lt_cv_prog_compiler_c_o_D=no
12598 $RM -r conftest 2>/dev/null
12599 mkdir conftest
12600 cd conftest
12601 mkdir out
12602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12603
12604 lt_compiler_flag="-o out/conftest2.$ac_objext"
12605 # Insert the option either (1) after the last *FLAGS variable, or
12606 # (2) before a word containing "conftest.", or (3) at the end.
12607 # Note that $ac_compile itself does not contain backslashes and begins
12608 # with a dollar sign (not a hyphen), so the echo should work correctly.
12609 lt_compile=`echo "$ac_compile" | $SED \
12610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12612 -e 's:$: $lt_compiler_flag:'`
12613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12614 (eval "$lt_compile" 2>out/conftest.err)
12615 ac_status=$?
12616 cat out/conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12619 then
12620 # The compiler can only warn and ignore the option if not recognized
12621 # So say no if there are warnings
12622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12625 lt_cv_prog_compiler_c_o_D=yes
12626 fi
12627 fi
12628 chmod u+w . 2>&5
12629 $RM conftest*
12630 # SGI C++ compiler will create directory out/ii_files/ for
12631 # template instantiation
12632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12633 $RM out/* && rmdir out
12634 cd ..
12635 $RM -r conftest
12636 $RM conftest*
12637
12638fi
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12640$as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12641
12642
12643
12644
12645hard_links="nottested"
12646if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12647 # do not overwrite the value of need_locks provided by the user
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12649$as_echo_n "checking if we can lock with hard links... " >&6; }
12650 hard_links=yes
12651 $RM conftest*
12652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12653 touch conftest.a
12654 ln conftest.a conftest.b 2>&5 || hard_links=no
12655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12657$as_echo "$hard_links" >&6; }
12658 if test "$hard_links" = no; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12660$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12661 need_locks=warn
12662 fi
12663else
12664 need_locks=no
12665fi
12666
12667
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12670$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12671
12672 runpath_var=
12673 allow_undefined_flag_D=
12674 always_export_symbols_D=no
12675 archive_cmds_D=
12676 archive_expsym_cmds_D=
12677 compiler_needs_object_D=no
12678 enable_shared_with_static_runtimes_D=no
12679 export_dynamic_flag_spec_D=
12680 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12681 hardcode_automatic_D=no
12682 hardcode_direct_D=no
12683 hardcode_direct_absolute_D=no
12684 hardcode_libdir_flag_spec_D=
12685 hardcode_libdir_flag_spec_ld_D=
12686 hardcode_libdir_separator_D=
12687 hardcode_minus_L_D=no
12688 hardcode_shlibpath_var_D=unsupported
12689 inherit_rpath_D=no
12690 link_all_deplibs_D=unknown
12691 module_cmds_D=
12692 module_expsym_cmds_D=
12693 old_archive_from_new_cmds_D=
12694 old_archive_from_expsyms_cmds_D=
12695 thread_safe_flag_spec_D=
12696 whole_archive_flag_spec_D=
12697 # include_expsyms should be a list of space-separated symbols to be *always*
12698 # included in the symbol list
12699 include_expsyms_D=
12700 # exclude_expsyms can be an extended regexp of symbols to exclude
12701 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12703 # as well as any symbol that contains `d'.
12704 exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12706 # platforms (ab)use it in PIC code, but their linkers get confused if
12707 # the symbol is explicitly referenced. Since portable code cannot
12708 # rely on this symbol name, it's probably fine to never include it in
12709 # preloaded symbol tables.
12710 # Exclude shared library initialization/finalization symbols.
12711 extract_expsyms_cmds=
12712
12713 case $host_os in
12714 cygwin* | mingw* | pw32* | cegcc*)
12715 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12716 # When not using gcc, we currently assume that we are using
12717 # Microsoft Visual C++.
12718 if test "$GCC" != yes; then
12719 with_gnu_ld=no
12720 fi
12721 ;;
12722 interix*)
12723 # we just hope/assume this is gcc and not c89 (= MSVC++)
12724 with_gnu_ld=yes
12725 ;;
12726 openbsd*)
12727 with_gnu_ld=no
12728 ;;
12729 esac
12730
12731 ld_shlibs_D=yes
12732
12733 # On some targets, GNU ld is compatible enough with the native linker
12734 # that we're better off using the native interface for both.
12735 lt_use_gnu_ld_interface=no
12736 if test "$with_gnu_ld" = yes; then
12737 case $host_os in
12738 aix*)
12739 # The AIX port of GNU ld has always aspired to compatibility
12740 # with the native linker. However, as the warning in the GNU ld
12741 # block says, versions before 2.19.5* couldn't really create working
12742 # shared libraries, regardless of the interface used.
12743 case `$LD -v 2>&1` in
12744 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12745 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12746 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12747 *)
12748 lt_use_gnu_ld_interface=yes
12749 ;;
12750 esac
12751 ;;
12752 *)
12753 lt_use_gnu_ld_interface=yes
12754 ;;
12755 esac
12756 fi
12757
12758 if test "$lt_use_gnu_ld_interface" = yes; then
12759 # If archive_cmds runs LD, not CC, wlarc should be empty
12760 wlarc='${wl}'
12761
12762 # Set some defaults for GNU ld with shared library support. These
12763 # are reset later if shared libraries are not supported. Putting them
12764 # here allows them to be overridden if necessary.
12765 runpath_var=LD_RUN_PATH
12766 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12767 export_dynamic_flag_spec_D='${wl}--export-dynamic'
12768 # ancient GNU ld didn't support --whole-archive et. al.
12769 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12770 whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12771 else
12772 whole_archive_flag_spec_D=
12773 fi
12774 supports_anon_versioning=no
12775 case `$LD -v 2>&1` in
12776 *GNU\ gold*) supports_anon_versioning=yes ;;
12777 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12778 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12779 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12780 *\ 2.11.*) ;; # other 2.11 versions
12781 *) supports_anon_versioning=yes ;;
12782 esac
12783
12784 # See if GNU ld supports shared libraries.
12785 case $host_os in
12786 aix[3-9]*)
12787 # On AIX/PPC, the GNU linker is very broken
12788 if test "$host_cpu" != ia64; then
12789 ld_shlibs_D=no
12790 cat <<_LT_EOF 1>&2
12791
12792*** Warning: the GNU linker, at least up to release 2.19, is reported
12793*** to be unable to reliably create shared libraries on AIX.
12794*** Therefore, libtool is disabling shared libraries support. If you
12795*** really care for shared libraries, you may want to install binutils
12796*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12797*** You will then need to restart the configuration process.
12798
12799_LT_EOF
12800 fi
12801 ;;
12802
12803 amigaos*)
12804 case $host_cpu in
12805 powerpc)
12806 # see comment about AmigaOS4 .so support
12807 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 archive_expsym_cmds_D=''
12809 ;;
12810 m68k)
12811 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)'
12812 hardcode_libdir_flag_spec_D='-L$libdir'
12813 hardcode_minus_L_D=yes
12814 ;;
12815 esac
12816 ;;
12817
12818 beos*)
12819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12820 allow_undefined_flag_D=unsupported
12821 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12822 # support --undefined. This deserves some investigation. FIXME
12823 archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824 else
12825 ld_shlibs_D=no
12826 fi
12827 ;;
12828
12829 cygwin* | mingw* | pw32* | cegcc*)
12830 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12831 # as there is no search path for DLLs.
12832 hardcode_libdir_flag_spec_D='-L$libdir'
12833 export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12834 allow_undefined_flag_D=unsupported
12835 always_export_symbols_D=no
12836 enable_shared_with_static_runtimes_D=yes
12837 export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12838
12839 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12840 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12841 # If the export-symbols file already is a .def file (1st line
12842 # is EXPORTS), use it as is; otherwise, prepend...
12843 archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12844 cp $export_symbols $output_objdir/$soname.def;
12845 else
12846 echo EXPORTS > $output_objdir/$soname.def;
12847 cat $export_symbols >> $output_objdir/$soname.def;
12848 fi~
12849 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12850 else
12851 ld_shlibs_D=no
12852 fi
12853 ;;
12854
12855 haiku*)
12856 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12857 link_all_deplibs_D=yes
12858 ;;
12859
12860 interix[3-9]*)
12861 hardcode_direct_D=no
12862 hardcode_shlibpath_var_D=no
12863 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12864 export_dynamic_flag_spec_D='${wl}-E'
12865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12866 # Instead, shared libraries are loaded at an image base (0x10000000 by
12867 # default) and relocated if they conflict, which is a slow very memory
12868 # consuming and fragmenting process. To avoid this, we pick a random,
12869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12870 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12871 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'
12872 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'
12873 ;;
12874
Maciej W. Rozyckie9085da2019-09-27 21:24:42 +000012875 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
Iain Buclawb4c522f2018-10-28 19:51:47 +000012876 tmp_diet=no
12877 if test "$host_os" = linux-dietlibc; then
12878 case $cc_basename in
12879 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12880 esac
12881 fi
12882 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12883 && test "$tmp_diet" = no
12884 then
12885 tmp_addflag=' $pic_flag'
12886 tmp_sharedflag='-shared'
12887 case $cc_basename,$host_cpu in
12888 pgcc*) # Portland Group C compiler
12889 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'
12890 tmp_addflag=' $pic_flag'
12891 ;;
12892 pgf77* | pgf90* | pgf95* | pgfortran*)
12893 # Portland Group f77 and f90 compilers
12894 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'
12895 tmp_addflag=' $pic_flag -Mnomain' ;;
12896 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12897 tmp_addflag=' -i_dynamic' ;;
12898 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12899 tmp_addflag=' -i_dynamic -nofor_main' ;;
12900 ifc* | ifort*) # Intel Fortran compiler
12901 tmp_addflag=' -nofor_main' ;;
12902 lf95*) # Lahey Fortran 8.1
12903 whole_archive_flag_spec_D=
12904 tmp_sharedflag='--shared' ;;
12905 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12906 tmp_sharedflag='-qmkshrobj'
12907 tmp_addflag= ;;
12908 nvcc*) # Cuda Compiler Driver 2.2
12909 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'
12910 compiler_needs_object_D=yes
12911 ;;
12912 esac
12913 case `$CC -V 2>&1 | sed 5q` in
12914 *Sun\ C*) # Sun C 5.9
12915 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'
12916 compiler_needs_object_D=yes
12917 tmp_sharedflag='-G' ;;
12918 *Sun\ F*) # Sun Fortran 8.3
12919 tmp_sharedflag='-G' ;;
12920 esac
12921 archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922
12923 if test "x$supports_anon_versioning" = xyes; then
12924 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12925 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12926 echo "local: *; };" >> $output_objdir/$libname.ver~
12927 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12928 fi
12929
12930 case $cc_basename in
12931 xlf* | bgf* | bgxlf* | mpixlf*)
12932 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12933 whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12934 hardcode_libdir_flag_spec_D=
12935 hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12936 archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12937 if test "x$supports_anon_versioning" = xyes; then
12938 archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12940 echo "local: *; };" >> $output_objdir/$libname.ver~
12941 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12942 fi
12943 ;;
12944 esac
12945 else
12946 ld_shlibs_D=no
12947 fi
12948 ;;
12949
12950 netbsd*)
12951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12952 archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12953 wlarc=
12954 else
12955 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12956 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12957 fi
12958 ;;
12959
12960 solaris*)
12961 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12962 ld_shlibs_D=no
12963 cat <<_LT_EOF 1>&2
12964
12965*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12966*** create shared libraries on Solaris systems. Therefore, libtool
12967*** is disabling shared libraries support. We urge you to upgrade GNU
12968*** binutils to release 2.9.1 or newer. Another option is to modify
12969*** your PATH or compiler configuration so that the native linker is
12970*** used, and then restart.
12971
12972_LT_EOF
12973 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12974 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12976 else
12977 ld_shlibs_D=no
12978 fi
12979 ;;
12980
12981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12982 case `$LD -v 2>&1` in
12983 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12984 ld_shlibs_D=no
12985 cat <<_LT_EOF 1>&2
12986
12987*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12988*** reliably create shared libraries on SCO systems. Therefore, libtool
12989*** is disabling shared libraries support. We urge you to upgrade GNU
12990*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12991*** your PATH or compiler configuration so that the native linker is
12992*** used, and then restart.
12993
12994_LT_EOF
12995 ;;
12996 *)
12997 # For security reasons, it is highly recommended that you always
12998 # use absolute paths for naming shared libraries, and exclude the
12999 # DT_RUNPATH tag from executables and libraries. But doing so
13000 # requires that you compile everything twice, which is a pain.
13001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13002 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13003 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13005 else
13006 ld_shlibs_D=no
13007 fi
13008 ;;
13009 esac
13010 ;;
13011
13012 sunos4*)
13013 archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13014 wlarc=
13015 hardcode_direct_D=yes
13016 hardcode_shlibpath_var_D=no
13017 ;;
13018
13019 *)
13020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13021 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13023 else
13024 ld_shlibs_D=no
13025 fi
13026 ;;
13027 esac
13028
13029 if test "$ld_shlibs_D" = no; then
13030 runpath_var=
13031 hardcode_libdir_flag_spec_D=
13032 export_dynamic_flag_spec_D=
13033 whole_archive_flag_spec_D=
13034 fi
13035 else
13036 # PORTME fill in a description of your system's linker (not GNU ld)
13037 case $host_os in
13038 aix3*)
13039 allow_undefined_flag_D=unsupported
13040 always_export_symbols_D=yes
13041 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'
13042 # Note: this linker hardcodes the directories in LIBPATH if there
13043 # are no directories specified by -L.
13044 hardcode_minus_L_D=yes
13045 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13046 # Neither direct hardcoding nor static linking is supported with a
13047 # broken collect2.
13048 hardcode_direct_D=unsupported
13049 fi
13050 ;;
13051
13052 aix[4-9]*)
13053 if test "$host_cpu" = ia64; then
13054 # On IA64, the linker does run time linking by default, so we don't
13055 # have to do anything special.
13056 aix_use_runtimelinking=no
13057 exp_sym_flag='-Bexport'
13058 no_entry_flag=""
13059 else
13060 # If we're using GNU nm, then we don't want the "-C" option.
13061 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13062 # Also, AIX nm treats weak defined symbols like other global
13063 # defined symbols, whereas GNU nm marks them as "W".
13064 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13065 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'
13066 else
13067 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'
13068 fi
13069 aix_use_runtimelinking=no
13070
13071 # Test if we are trying to use run time linking or normal
13072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13073 # need to do runtime linking.
13074 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13075 for ld_flag in $LDFLAGS; do
13076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13077 aix_use_runtimelinking=yes
13078 break
13079 fi
13080 done
13081 ;;
13082 esac
13083
13084 exp_sym_flag='-bexport'
13085 no_entry_flag='-bnoentry'
13086 fi
13087
13088 # When large executables or shared objects are built, AIX ld can
13089 # have problems creating the table of contents. If linking a library
13090 # or program results in "error TOC overflow" add -mminimal-toc to
13091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13093
13094 archive_cmds_D=''
13095 hardcode_direct_D=yes
13096 hardcode_direct_absolute_D=yes
13097 hardcode_libdir_separator_D=':'
13098 link_all_deplibs_D=yes
13099 file_list_spec_D='${wl}-f,'
13100
13101 if test "$GCC" = yes; then
13102 case $host_os in aix4.[012]|aix4.[012].*)
13103 # We only want to do this on AIX 4.2 and lower, the check
13104 # below for broken collect2 doesn't work under 4.3+
13105 collect2name=`${CC} -print-prog-name=collect2`
13106 if test -f "$collect2name" &&
13107 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13108 then
13109 # We have reworked collect2
13110 :
13111 else
13112 # We have old collect2
13113 hardcode_direct_D=unsupported
13114 # It fails to find uninstalled libraries when the uninstalled
13115 # path is not listed in the libpath. Setting hardcode_minus_L
13116 # to unsupported forces relinking
13117 hardcode_minus_L_D=yes
13118 hardcode_libdir_flag_spec_D='-L$libdir'
13119 hardcode_libdir_separator_D=
13120 fi
13121 ;;
13122 esac
13123 shared_flag='-shared'
13124 if test "$aix_use_runtimelinking" = yes; then
13125 shared_flag="$shared_flag "'${wl}-G'
13126 fi
13127 else
13128 # not using gcc
13129 if test "$host_cpu" = ia64; then
13130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13131 # chokes on -Wl,-G. The following line is correct:
13132 shared_flag='-G'
13133 else
13134 if test "$aix_use_runtimelinking" = yes; then
13135 shared_flag='${wl}-G'
13136 else
13137 shared_flag='${wl}-bM:SRE'
13138 fi
13139 fi
13140 fi
13141
13142 export_dynamic_flag_spec_D='${wl}-bexpall'
13143 # It seems that -bexpall does not export symbols beginning with
13144 # underscore (_), so it is better to generate a list of symbols to export.
13145 always_export_symbols_D=yes
13146 if test "$aix_use_runtimelinking" = yes; then
13147 # Warning - without using the other runtime loading flags (-brtl),
13148 # -berok will link without error, but may produce a broken library.
13149 allow_undefined_flag_D='-berok'
13150 # Determine the default libpath from the value encoded in an
13151 # empty executable.
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h. */
13154
13155int
13156main ()
13157{
13158
13159 ;
13160 return 0;
13161}
13162_ACEOF
13163if ac_fn_c_try_link "$LINENO"; then :
13164
13165lt_aix_libpath_sed='
13166 /Import File Strings/,/^$/ {
13167 /^0/ {
13168 s/^0 *\(.*\)$/\1/
13169 p
13170 }
13171 }'
13172aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13173# Check for a 64-bit object if we didn't find anything.
13174if test -z "$aix_libpath"; then
13175 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13176fi
13177fi
13178rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13181
13182 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13183 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"
13184 else
13185 if test "$host_cpu" = ia64; then
13186 hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13187 allow_undefined_flag_D="-z nodefs"
13188 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"
13189 else
13190 # Determine the default libpath from the value encoded in an
13191 # empty executable.
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h. */
13194
13195int
13196main ()
13197{
13198
13199 ;
13200 return 0;
13201}
13202_ACEOF
13203if ac_fn_c_try_link "$LINENO"; then :
13204
13205lt_aix_libpath_sed='
13206 /Import File Strings/,/^$/ {
13207 /^0/ {
13208 s/^0 *\(.*\)$/\1/
13209 p
13210 }
13211 }'
13212aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213# Check for a 64-bit object if we didn't find anything.
13214if test -z "$aix_libpath"; then
13215 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13216fi
13217fi
13218rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13221
13222 hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13223 # Warning - without using the other run time loading flags,
13224 # -berok will link without error, but may produce a broken library.
13225 no_undefined_flag_D=' ${wl}-bernotok'
13226 allow_undefined_flag_D=' ${wl}-berok'
13227 if test "$with_gnu_ld" = yes; then
13228 # We only use this code for GNU lds that support --whole-archive.
13229 whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13230 else
13231 # Exported symbols can be pulled into shared objects from archives
13232 whole_archive_flag_spec_D='$convenience'
13233 fi
13234 archive_cmds_need_lc_D=yes
13235 # This is similar to how AIX traditionally builds its shared libraries.
13236 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'
13237 fi
13238 fi
13239 ;;
13240
13241 amigaos*)
13242 case $host_cpu in
13243 powerpc)
13244 # see comment about AmigaOS4 .so support
13245 archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13246 archive_expsym_cmds_D=''
13247 ;;
13248 m68k)
13249 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)'
13250 hardcode_libdir_flag_spec_D='-L$libdir'
13251 hardcode_minus_L_D=yes
13252 ;;
13253 esac
13254 ;;
13255
13256 bsdi[45]*)
13257 export_dynamic_flag_spec_D=-rdynamic
13258 ;;
13259
13260 cygwin* | mingw* | pw32* | cegcc*)
13261 # When not using gcc, we currently assume that we are using
13262 # Microsoft Visual C++.
13263 # hardcode_libdir_flag_spec is actually meaningless, as there is
13264 # no search path for DLLs.
13265 hardcode_libdir_flag_spec_D=' '
13266 allow_undefined_flag_D=unsupported
13267 # Tell ltmain to make .lib files, not .a files.
13268 libext=lib
13269 # Tell ltmain to make .dll files, not .so files.
13270 shrext_cmds=".dll"
13271 # FIXME: Setting linknames here is a bad hack.
13272 archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13273 # The linker will automatically build a .lib file if we build a DLL.
13274 old_archive_from_new_cmds_D='true'
13275 # FIXME: Should let the user specify the lib program.
13276 old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13277 fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13278 enable_shared_with_static_runtimes_D=yes
13279 ;;
13280
13281 darwin* | rhapsody*)
13282
13283
13284 archive_cmds_need_lc_D=no
13285 hardcode_direct_D=no
13286 hardcode_automatic_D=yes
13287 hardcode_shlibpath_var_D=unsupported
13288 if test "$lt_cv_ld_force_load" = "yes"; then
13289 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\"`'
13290 else
13291 whole_archive_flag_spec_D=''
13292 fi
13293 link_all_deplibs_D=yes
13294 allow_undefined_flag_D="$_lt_dar_allow_undefined"
13295 case $cc_basename in
13296 ifort*) _lt_dar_can_shared=yes ;;
13297 *) _lt_dar_can_shared=$GCC ;;
13298 esac
13299 if test "$_lt_dar_can_shared" = "yes"; then
13300 output_verbose_link_cmd=func_echo_all
13301 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}"
13302 module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13303 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}"
13304 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}"
13305
13306 else
13307 ld_shlibs_D=no
13308 fi
13309
13310 ;;
13311
13312 dgux*)
13313 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 hardcode_libdir_flag_spec_D='-L$libdir'
13315 hardcode_shlibpath_var_D=no
13316 ;;
13317
13318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13319 # support. Future versions do this automatically, but an explicit c++rt0.o
13320 # does not break anything, and helps significantly (at the cost of a little
13321 # extra space).
13322 freebsd2.2*)
13323 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13324 hardcode_libdir_flag_spec_D='-R$libdir'
13325 hardcode_direct_D=yes
13326 hardcode_shlibpath_var_D=no
13327 ;;
13328
13329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13330 freebsd2.*)
13331 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332 hardcode_direct_D=yes
13333 hardcode_minus_L_D=yes
13334 hardcode_shlibpath_var_D=no
13335 ;;
13336
13337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13338 freebsd* | dragonfly*)
13339 archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13340 hardcode_libdir_flag_spec_D='-R$libdir'
13341 hardcode_direct_D=yes
13342 hardcode_shlibpath_var_D=no
13343 ;;
13344
13345 hpux9*)
13346 if test "$GCC" = yes; then
13347 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'
13348 else
13349 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'
13350 fi
13351 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13352 hardcode_libdir_separator_D=:
13353 hardcode_direct_D=yes
13354
13355 # hardcode_minus_L: Not really in the search PATH,
13356 # but as the default location of the library.
13357 hardcode_minus_L_D=yes
13358 export_dynamic_flag_spec_D='${wl}-E'
13359 ;;
13360
13361 hpux10*)
13362 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13363 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13364 else
13365 archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13366 fi
13367 if test "$with_gnu_ld" = no; then
13368 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13369 hardcode_libdir_flag_spec_ld_D='+b $libdir'
13370 hardcode_libdir_separator_D=:
13371 hardcode_direct_D=yes
13372 hardcode_direct_absolute_D=yes
13373 export_dynamic_flag_spec_D='${wl}-E'
13374 # hardcode_minus_L: Not really in the search PATH,
13375 # but as the default location of the library.
13376 hardcode_minus_L_D=yes
13377 fi
13378 ;;
13379
13380 hpux11*)
13381 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13382 case $host_cpu in
13383 hppa*64*)
13384 archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13385 ;;
13386 ia64*)
13387 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13388 ;;
13389 *)
13390 archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13391 ;;
13392 esac
13393 else
13394 case $host_cpu in
13395 hppa*64*)
13396 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13397 ;;
13398 ia64*)
13399 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13400 ;;
13401 *)
13402 archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13403 ;;
13404 esac
13405 fi
13406 if test "$with_gnu_ld" = no; then
13407 hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13408 hardcode_libdir_separator_D=:
13409
13410 case $host_cpu in
13411 hppa*64*|ia64*)
13412 hardcode_direct_D=no
13413 hardcode_shlibpath_var_D=no
13414 ;;
13415 *)
13416 hardcode_direct_D=yes
13417 hardcode_direct_absolute_D=yes
13418 export_dynamic_flag_spec_D='${wl}-E'
13419
13420 # hardcode_minus_L: Not really in the search PATH,
13421 # but as the default location of the library.
13422 hardcode_minus_L_D=yes
13423 ;;
13424 esac
13425 fi
13426 ;;
13427
13428 irix5* | irix6* | nonstopux*)
13429 if test "$GCC" = yes; then
13430 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'
13431 # Try to use the -exported_symbol ld option, if it does not
13432 # work, assume that -exports_file does not work either and
13433 # implicitly export all symbols.
13434 save_LDFLAGS="$LDFLAGS"
13435 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437/* end confdefs.h. */
13438int foo(void) {}
13439_ACEOF
13440if ac_fn_c_try_link "$LINENO"; then :
13441 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'
13442
13443fi
13444rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 LDFLAGS="$save_LDFLAGS"
13447 else
13448 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'
13449 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'
13450 fi
13451 archive_cmds_need_lc_D='no'
13452 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13453 hardcode_libdir_separator_D=:
13454 inherit_rpath_D=yes
13455 link_all_deplibs_D=yes
13456 ;;
13457
13458 netbsd*)
13459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13460 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13461 else
13462 archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13463 fi
13464 hardcode_libdir_flag_spec_D='-R$libdir'
13465 hardcode_direct_D=yes
13466 hardcode_shlibpath_var_D=no
13467 ;;
13468
13469 newsos6)
13470 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_direct_D=yes
13472 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13473 hardcode_libdir_separator_D=:
13474 hardcode_shlibpath_var_D=no
13475 ;;
13476
13477 *nto* | *qnx*)
13478 ;;
13479
13480 openbsd*)
13481 if test -f /usr/libexec/ld.so; then
13482 hardcode_direct_D=yes
13483 hardcode_shlibpath_var_D=no
13484 hardcode_direct_absolute_D=yes
13485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13486 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13487 archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13488 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13489 export_dynamic_flag_spec_D='${wl}-E'
13490 else
13491 case $host_os in
13492 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13493 archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13494 hardcode_libdir_flag_spec_D='-R$libdir'
13495 ;;
13496 *)
13497 archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13498 hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13499 ;;
13500 esac
13501 fi
13502 else
13503 ld_shlibs_D=no
13504 fi
13505 ;;
13506
13507 os2*)
13508 hardcode_libdir_flag_spec_D='-L$libdir'
13509 hardcode_minus_L_D=yes
13510 allow_undefined_flag_D=unsupported
13511 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'
13512 old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13513 ;;
13514
13515 osf3*)
13516 if test "$GCC" = yes; then
13517 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13518 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'
13519 else
13520 allow_undefined_flag_D=' -expect_unresolved \*'
13521 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'
13522 fi
13523 archive_cmds_need_lc_D='no'
13524 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13525 hardcode_libdir_separator_D=:
13526 ;;
13527
13528 osf4* | osf5*) # as osf3* with the addition of -msym flag
13529 if test "$GCC" = yes; then
13530 allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13531 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'
13532 hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13533 else
13534 allow_undefined_flag_D=' -expect_unresolved \*'
13535 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'
13536 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~
13537 $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'
13538
13539 # Both c and cxx compiler support -rpath directly
13540 hardcode_libdir_flag_spec_D='-rpath $libdir'
13541 fi
13542 archive_cmds_need_lc_D='no'
13543 hardcode_libdir_separator_D=:
13544 ;;
13545
13546 solaris*)
13547 no_undefined_flag_D=' -z defs'
13548 if test "$GCC" = yes; then
13549 wlarc='${wl}'
13550 archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13552 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13553 else
13554 case `$CC -V 2>&1` in
13555 *"Compilers 5.0"*)
13556 wlarc=''
13557 archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13558 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13560 ;;
13561 *)
13562 wlarc='${wl}'
13563 archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13564 archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13565 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13566 ;;
13567 esac
13568 fi
13569 hardcode_libdir_flag_spec_D='-R$libdir'
13570 hardcode_shlibpath_var_D=no
13571 case $host_os in
13572 solaris2.[0-5] | solaris2.[0-5].*) ;;
13573 *)
13574 # The compiler driver will combine and reorder linker options,
13575 # but understands `-z linker_flag'. GCC discards it without `$wl',
13576 # but is careful enough not to reorder.
13577 # Supported since Solaris 2.6 (maybe 2.5.1?)
13578 if test "$GCC" = yes; then
13579 whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13580 else
13581 whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13582 fi
13583 ;;
13584 esac
13585 link_all_deplibs_D=yes
13586 ;;
13587
13588 sunos4*)
13589 if test "x$host_vendor" = xsequent; then
13590 # Use $CC to link under sequent, because it throws in some extra .o
13591 # files that make .init and .fini sections work.
13592 archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13593 else
13594 archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13595 fi
13596 hardcode_libdir_flag_spec_D='-L$libdir'
13597 hardcode_direct_D=yes
13598 hardcode_minus_L_D=yes
13599 hardcode_shlibpath_var_D=no
13600 ;;
13601
13602 sysv4)
13603 case $host_vendor in
13604 sni)
13605 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13606 hardcode_direct_D=yes # is this really true???
13607 ;;
13608 siemens)
13609 ## LD is ld it makes a PLAMLIB
13610 ## CC just makes a GrossModule.
13611 archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13612 reload_cmds_D='$CC -r -o $output$reload_objs'
13613 hardcode_direct_D=no
13614 ;;
13615 motorola)
13616 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13617 hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13618 ;;
13619 esac
13620 runpath_var='LD_RUN_PATH'
13621 hardcode_shlibpath_var_D=no
13622 ;;
13623
13624 sysv4.3*)
13625 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13626 hardcode_shlibpath_var_D=no
13627 export_dynamic_flag_spec_D='-Bexport'
13628 ;;
13629
13630 sysv4*MP*)
13631 if test -d /usr/nec; then
13632 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13633 hardcode_shlibpath_var_D=no
13634 runpath_var=LD_RUN_PATH
13635 hardcode_runpath_var=yes
13636 ld_shlibs_D=yes
13637 fi
13638 ;;
13639
13640 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13641 no_undefined_flag_D='${wl}-z,text'
13642 archive_cmds_need_lc_D=no
13643 hardcode_shlibpath_var_D=no
13644 runpath_var='LD_RUN_PATH'
13645
13646 if test "$GCC" = yes; then
13647 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 else
13650 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 fi
13653 ;;
13654
13655 sysv5* | sco3.2v5* | sco5v6*)
13656 # Note: We can NOT use -z defs as we might desire, because we do not
13657 # link with -lc, and that would cause any symbols used from libc to
13658 # always be unresolved, which means just about no library would
13659 # ever link correctly. If we're not using GNU ld we use -z text
13660 # though, which does catch some bad symbols but isn't as heavy-handed
13661 # as -z defs.
13662 no_undefined_flag_D='${wl}-z,text'
13663 allow_undefined_flag_D='${wl}-z,nodefs'
13664 archive_cmds_need_lc_D=no
13665 hardcode_shlibpath_var_D=no
13666 hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13667 hardcode_libdir_separator_D=':'
13668 link_all_deplibs_D=yes
13669 export_dynamic_flag_spec_D='${wl}-Bexport'
13670 runpath_var='LD_RUN_PATH'
13671
13672 if test "$GCC" = yes; then
13673 archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 else
13676 archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13678 fi
13679 ;;
13680
13681 uts4*)
13682 archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13683 hardcode_libdir_flag_spec_D='-L$libdir'
13684 hardcode_shlibpath_var_D=no
13685 ;;
13686
13687 *)
13688 ld_shlibs_D=no
13689 ;;
13690 esac
13691
13692 if test x$host_vendor = xsni; then
13693 case $host in
13694 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13695 export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13696 ;;
13697 esac
13698 fi
13699 fi
13700
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13702$as_echo "$ld_shlibs_D" >&6; }
13703test "$ld_shlibs_D" = no && can_build_shared=no
13704
13705with_gnu_ld_D=$with_gnu_ld
13706
13707
13708
13709
13710
13711
13712#
13713# Do we need to explicitly link libc?
13714#
13715case "x$archive_cmds_need_lc_D" in
13716x|xyes)
13717 # Assume -lc should be added
13718 archive_cmds_need_lc_D=yes
13719
13720 if test "$enable_shared" = yes && test "$GCC" = yes; then
13721 case $archive_cmds_D in
13722 *'~'*)
13723 # FIXME: we may have to deal with multi-command sequences.
13724 ;;
13725 '$CC '*)
13726 # Test whether the compiler implicitly links with -lc since on some
13727 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13728 # to ld, don't add -lc before -lgcc.
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13730$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000013731if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000013732 $as_echo_n "(cached) " >&6
13733else
13734 $RM conftest*
13735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13736
13737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13741 test $ac_status = 0; } 2>conftest.err; then
13742 soname=conftest
13743 lib=conftest
13744 libobjs=conftest.$ac_objext
13745 deplibs=
13746 wl=$lt_prog_compiler_wl_D
13747 pic_flag=$lt_prog_compiler_pic_D
13748 compiler_flags=-v
13749 linker_flags=-v
13750 verstring=
13751 output_objdir=.
13752 libname=conftest
13753 lt_save_allow_undefined_flag=$allow_undefined_flag_D
13754 allow_undefined_flag_D=
13755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13756 (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; }
13760 then
13761 lt_cv_archive_cmds_need_lc_D=no
13762 else
13763 lt_cv_archive_cmds_need_lc_D=yes
13764 fi
13765 allow_undefined_flag_D=$lt_save_allow_undefined_flag
13766 else
13767 cat conftest.err 1>&5
13768 fi
13769 $RM conftest*
13770
13771fi
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13773$as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13774 archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13775 ;;
13776 esac
13777 fi
13778 ;;
13779esac
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13845$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13846hardcode_action_D=
13847if test -n "$hardcode_libdir_flag_spec_D" ||
13848 test -n "$runpath_var_D" ||
13849 test "X$hardcode_automatic_D" = "Xyes" ; then
13850
13851 # We can hardcode non-existent directories.
13852 if test "$hardcode_direct_D" != no &&
13853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13854 # have to relink, otherwise we might link with an installed library
13855 # when we should be linking with a yet-to-be-installed one
13856 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13857 test "$hardcode_minus_L_D" != no; then
13858 # Linking always hardcodes the temporary library directory.
13859 hardcode_action_D=relink
13860 else
13861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13862 hardcode_action_D=immediate
13863 fi
13864else
13865 # We cannot hardcode anything, or else we can only hardcode existing
13866 # directories.
13867 hardcode_action_D=unsupported
13868fi
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13870$as_echo "$hardcode_action_D" >&6; }
13871
13872if test "$hardcode_action_D" = relink ||
13873 test "$inherit_rpath_D" = yes; then
13874 # Fast installation is not supported
13875 enable_fast_install=no
13876elif test "$shlibpath_overrides_runpath" = yes ||
13877 test "$enable_shared" = no; then
13878 # Fast installation is not necessary
13879 enable_fast_install=needless
13880fi
13881
13882
13883
13884
13885
13886
13887
13888fi
13889
13890ac_ext=c
13891ac_cpp='$CPP $CPPFLAGS'
13892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894ac_compiler_gnu=$ac_cv_c_compiler_gnu
13895
13896
13897GCC=$lt_save_GCC
13898CC=$lt_save_CC
13899CFLAGS=$lt_save_CFLAGS
Iain Buclawb4c522f2018-10-28 19:51:47 +000013900
13901 GDCFLAGS=$gdc_save_DFLAGS
13902
Iain Buclawb4c522f2018-10-28 19:51:47 +000013903
13904# libtool variables for Phobos shared and position-independent compiles.
13905#
13906# Use phobos_compiler_shared_flag to designate the compile-time flags for
13907# creating shared objects. Default: -fversion=Shared.
13908#
13909# Use phobos_compiler_pic_flag to designate the compile-time flags for
13910# creating position-independent objects. This varies with the target
13911# hardware and operating system, but is often: -fPIC.
13912#
13913# The distinction between pic and shared compilation flags is not present in
13914# libtool, and so we make it here. How it is handled is that in shared
13915# compilations the `lt_prog_compiler_pic_D' variable is used to instead
13916# ensure that conditional compilation of shared runtime code is compiled in.
13917# The original PIC flags are then used in the compilation of every object.
13918#
13919# Why are objects destined for libgphobos.a compiled with -fPIC?
13920# Because -fPIC is not harmful to use for objects destined for static
13921# libraries. In addition, using -fPIC will allow the use of static
13922# libgphobos.a in the creation of other D shared libraries.
13923if test "$enable_shared" = yes; then
13924 phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13925 phobos_compiler_shared_flag="-fversion=Shared"
13926else
13927 phobos_compiler_pic_flag=
13928 phobos_compiler_shared_flag=
13929fi
13930
13931
13932
13933# Override the libtool's pic_flag and pic_mode.
13934# Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13935# NB: this impacts --with-pic and --without-pic.
13936lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13937pic_mode='default'
13938
13939# Determine what GCC version number to use in filesystem paths.
13940
13941 get_gcc_base_ver="cat"
13942
13943# Check whether --with-gcc-major-version-only was given.
13944if test "${with_gcc_major_version_only+set}" = set; then :
13945 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13946 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13947 fi
13948
13949fi
13950
13951
13952
13953
13954# libphobos/libdruntime specific options and feature detection
13955
13956 # These need to be absolute paths, yet at the same time need to
13957 # canonicalize only relative paths, because then amd will not unmount
13958 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13959 libphobos_builddir=`${PWDCMD-pwd}`
13960 case $srcdir in
13961 \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13962 *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13963 esac
13964
13965
13966
13967
13968 if test ${multilib} = yes; then
13969 multilib_arg="--enable-multilib"
13970 else
13971 multilib_arg=
13972 fi
13973
13974
13975 # Check whether --enable-werror was given.
13976if test "${enable_werror+set}" = set; then :
13977 enableval=$enable_werror;
13978fi
13979
13980 WERROR_FLAG=""
13981 if test "x$enable_werror" = "xyes"; then
13982 WERROR_FLAG="-Werror"
13983 fi
13984
Iain Buclawb4c522f2018-10-28 19:51:47 +000013985
Iain Buclaw2493e712019-04-24 22:46:59 +000013986 druntime_target_cpu_parsed=""
13987 case "$target_cpu" in
13988 aarch64*)
13989 druntime_target_cpu_parsed="aarch64"
13990 ;;
13991 arm*) druntime_target_cpu_parsed="arm"
13992 ;;
13993 mips*) druntime_target_cpu_parsed="mips"
13994 ;;
13995 powerpc) druntime_target_cpu_parsed="powerpc"
13996 ;;
13997 powerpc64)
13998 druntime_target_cpu_parsed="powerpc64"
13999 ;;
Rainer Orthb16f2142019-04-25 12:39:33 +000014000 i[34567]86|x86_64)
Iain Buclaw2493e712019-04-24 22:46:59 +000014001 druntime_target_cpu_parsed="x86"
14002 ;;
Robin Dapp88e508f2020-04-07 21:05:38 +020014003 s390x)
14004 druntime_target_cpu_parsed="s390x"
14005 ;;
14006 s390)
14007 druntime_target_cpu_parsed="s390"
14008 ;;
Iain Buclaw2493e712019-04-24 22:46:59 +000014009 esac
14010 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14011 DRUNTIME_CPU_AARCH64_TRUE=
14012 DRUNTIME_CPU_AARCH64_FALSE='#'
14013else
14014 DRUNTIME_CPU_AARCH64_TRUE='#'
14015 DRUNTIME_CPU_AARCH64_FALSE=
14016fi
14017
14018 if test "$druntime_target_cpu_parsed" = "arm"; then
14019 DRUNTIME_CPU_ARM_TRUE=
14020 DRUNTIME_CPU_ARM_FALSE='#'
14021else
14022 DRUNTIME_CPU_ARM_TRUE='#'
14023 DRUNTIME_CPU_ARM_FALSE=
14024fi
14025
14026 if test "$druntime_target_cpu_parsed" = "mips"; then
14027 DRUNTIME_CPU_MIPS_TRUE=
14028 DRUNTIME_CPU_MIPS_FALSE='#'
14029else
14030 DRUNTIME_CPU_MIPS_TRUE='#'
14031 DRUNTIME_CPU_MIPS_FALSE=
14032fi
14033
14034 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14035 DRUNTIME_CPU_POWERPC_TRUE=
14036 DRUNTIME_CPU_POWERPC_FALSE='#'
14037else
14038 DRUNTIME_CPU_POWERPC_TRUE='#'
14039 DRUNTIME_CPU_POWERPC_FALSE=
14040fi
14041
14042 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14043 DRUNTIME_CPU_POWERPC64_TRUE=
14044 DRUNTIME_CPU_POWERPC64_FALSE='#'
14045else
14046 DRUNTIME_CPU_POWERPC64_TRUE='#'
14047 DRUNTIME_CPU_POWERPC64_FALSE=
14048fi
14049
14050 if test "$druntime_target_cpu_parsed" = "x86"; then
14051 DRUNTIME_CPU_X86_TRUE=
14052 DRUNTIME_CPU_X86_FALSE='#'
14053else
14054 DRUNTIME_CPU_X86_TRUE='#'
14055 DRUNTIME_CPU_X86_FALSE=
14056fi
14057
Robin Dapp88e508f2020-04-07 21:05:38 +020014058 if test "$druntime_target_cpu_parsed" = "s390x"; then
14059 DRUNTIME_CPU_SYSTEMZ_TRUE=
14060 DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14061else
14062 DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14063 DRUNTIME_CPU_SYSTEMZ_FALSE=
14064fi
14065
14066 if test "$druntime_target_cpu_parsed" = "s390"; then
14067 DRUNTIME_CPU_S390_TRUE=
14068 DRUNTIME_CPU_S390_FALSE='#'
14069else
14070 DRUNTIME_CPU_S390_TRUE='#'
14071 DRUNTIME_CPU_S390_FALSE=
14072fi
14073
Iain Buclaw2493e712019-04-24 22:46:59 +000014074
14075
Iain Buclawb4c522f2018-10-28 19:51:47 +000014076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14077$as_echo_n "checking for target OS... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014078if ${druntime_cv_target_os+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014079 $as_echo_n "(cached) " >&6
14080else
14081 druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14082fi
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14084$as_echo "$druntime_cv_target_os" >&6; }
14085 if test -z "$druntime_cv_target_os"; then :
Joseph Myers22e05272018-10-31 17:03:16 +000014086 as_fn_error $? "can't detect target OS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014087fi
14088
14089
14090
Iain Buclawb4c522f2018-10-28 19:51:47 +000014091
14092 druntime_target_os_parsed=""
14093 case "$druntime_cv_target_os" in
14094 aix*) druntime_target_os_parsed="aix"
14095 ;;
14096 *android*)
14097 druntime_target_os_parsed="android"
14098 ;;
14099 darwin*) druntime_target_os_parsed="darwin"
14100 ;;
14101 dragonfly*)
14102 druntime_target_os_parsed="dragonflybsd"
14103 ;;
14104 freebsd*|k*bsd*-gnu)
14105 druntime_target_os_parsed="freebsd"
14106 ;;
14107 openbsd*)
14108 druntime_target_os_parsed="openbsd"
14109 ;;
14110 netbsd*)
14111 druntime_target_os_parsed="netbsd"
14112 ;;
14113 linux*) druntime_target_os_parsed="linux"
14114 ;;
14115 mingw*) druntime_target_os_parsed="mingw"
14116 ;;
14117 *solaris*) druntime_target_os_parsed="solaris"
14118 esac
14119 if test "$druntime_target_os_parsed" = "aix"; then
14120 DRUNTIME_OS_AIX_TRUE=
14121 DRUNTIME_OS_AIX_FALSE='#'
14122else
14123 DRUNTIME_OS_AIX_TRUE='#'
14124 DRUNTIME_OS_AIX_FALSE=
14125fi
14126
14127 if test "$druntime_target_os_parsed" = "android"; then
14128 DRUNTIME_OS_ANDROID_TRUE=
14129 DRUNTIME_OS_ANDROID_FALSE='#'
14130else
14131 DRUNTIME_OS_ANDROID_TRUE='#'
14132 DRUNTIME_OS_ANDROID_FALSE=
14133fi
14134
14135 if test "$druntime_target_os_parsed" = "darwin"; then
14136 DRUNTIME_OS_DARWIN_TRUE=
14137 DRUNTIME_OS_DARWIN_FALSE='#'
14138else
14139 DRUNTIME_OS_DARWIN_TRUE='#'
14140 DRUNTIME_OS_DARWIN_FALSE=
14141fi
14142
14143 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14144 DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14145 DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14146else
14147 DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14148 DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14149fi
14150
14151 if test "$druntime_target_os_parsed" = "freebsd"; then
14152 DRUNTIME_OS_FREEBSD_TRUE=
14153 DRUNTIME_OS_FREEBSD_FALSE='#'
14154else
14155 DRUNTIME_OS_FREEBSD_TRUE='#'
14156 DRUNTIME_OS_FREEBSD_FALSE=
14157fi
14158
14159 if test "$druntime_target_os_parsed" = "netbsd"; then
14160 DRUNTIME_OS_NETBSD_TRUE=
14161 DRUNTIME_OS_NETBSD_FALSE='#'
14162else
14163 DRUNTIME_OS_NETBSD_TRUE='#'
14164 DRUNTIME_OS_NETBSD_FALSE=
14165fi
14166
14167 if test "$druntime_target_os_parsed" = "openbsd"; then
14168 DRUNTIME_OS_OPENBSD_TRUE=
14169 DRUNTIME_OS_OPENBSD_FALSE='#'
14170else
14171 DRUNTIME_OS_OPENBSD_TRUE='#'
14172 DRUNTIME_OS_OPENBSD_FALSE=
14173fi
14174
14175 if test "$druntime_target_os_parsed" = "linux"; then
14176 DRUNTIME_OS_LINUX_TRUE=
14177 DRUNTIME_OS_LINUX_FALSE='#'
14178else
14179 DRUNTIME_OS_LINUX_TRUE='#'
14180 DRUNTIME_OS_LINUX_FALSE=
14181fi
14182
14183 if test "$druntime_target_os_parsed" = "mingw"; then
14184 DRUNTIME_OS_MINGW_TRUE=
14185 DRUNTIME_OS_MINGW_FALSE='#'
14186else
14187 DRUNTIME_OS_MINGW_TRUE='#'
14188 DRUNTIME_OS_MINGW_FALSE=
14189fi
14190
14191 if test "$druntime_target_os_parsed" = "solaris"; then
14192 DRUNTIME_OS_SOLARIS_TRUE=
14193 DRUNTIME_OS_SOLARIS_FALSE='#'
14194else
14195 DRUNTIME_OS_SOLARIS_TRUE='#'
14196 DRUNTIME_OS_SOLARIS_FALSE=
14197fi
14198
14199
Iain Buclaw72c136c2020-04-08 22:52:05 +020014200 druntime_target_posix="no"
14201 case "$druntime_cv_target_os" in
14202 aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14203 druntime_target_posix="yes"
14204 ;;
14205 esac
14206 if test "$druntime_target_posix" = "yes"; then
14207 DRUNTIME_OS_POSIX_TRUE=
14208 DRUNTIME_OS_POSIX_FALSE='#'
14209else
14210 DRUNTIME_OS_POSIX_TRUE='#'
14211 DRUNTIME_OS_POSIX_FALSE=
14212fi
14213
14214
Iain Buclawb4c522f2018-10-28 19:51:47 +000014215
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14218$as_echo_n "checking for thread model used by GDC... " >&6; }
14219 d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14221$as_echo "$d_thread_model" >&6; }
14222
14223 # Map from thread model to thread interface.
14224
14225case $d_thread_model in
14226 aix) DCFG_THREAD_MODEL="Posix" ;;
14227 lynx) DCFG_THREAD_MODEL="Posix" ;;
14228 posix) DCFG_THREAD_MODEL="Posix" ;;
14229 single) DCFG_THREAD_MODEL="Single" ;;
14230 win32) DCFG_THREAD_MODEL="Win32" ;;
14231 # TODO: These targets need porting.
14232 dce|mipssde|rtems|tpf|vxworks)
14233 DCFG_THREAD_MODEL="Single" ;;
14234 *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14235esac
14236
14237
14238
14239
14240 ac_ext=c
14241ac_cpp='$CPP $CPPFLAGS'
14242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14244ac_compiler_gnu=$ac_cv_c_compiler_gnu
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14247$as_echo_n "checking for ARM unwinder... " >&6; }
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h. */
14250#include <unwind.h>
14251int
14252main ()
14253{
14254
14255 #if __ARM_EABI_UNWINDER__
14256 #error Yes, it is.
14257 #endif
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263if ac_fn_c_try_compile "$LINENO"; then :
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265$as_echo "no" >&6; }
14266 DCFG_ARM_EABI_UNWINDER=false
14267else
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14269$as_echo "yes" >&6; }
14270 DCFG_ARM_EABI_UNWINDER=true
14271fi
14272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273
14274 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14276 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14277else
14278 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14279 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14280fi
14281
14282 ac_ext=c
14283ac_cpp='$CPP $CPPFLAGS'
14284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287
14288
14289
14290 ac_ext=c
14291ac_cpp='$CPP $CPPFLAGS'
14292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294ac_compiler_gnu=$ac_cv_c_compiler_gnu
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14297$as_echo_n "checking for minfo section bracketing... " >&6; }
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299/* end confdefs.h. */
14300
14301 void* module_info_ptr __attribute__((section ("minfo")));
14302 extern void* __start_minfo __attribute__((visibility ("hidden")));
14303 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14304
14305 int main()
14306 {
14307 // Never run, just to prevent compiler from optimizing access
14308 return &__start_minfo == &__stop_minfo;
14309 }
14310
14311_ACEOF
14312if ac_fn_c_try_link "$LINENO"; then :
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314$as_echo "yes" >&6; }
14315 DCFG_MINFO_BRACKETING=true
14316else
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318$as_echo "no" >&6; }
14319 DCFG_MINFO_BRACKETING=false
14320fi
14321rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323
Rainer Orth0b6e3122019-02-14 17:47:49 +000014324 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14325 DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14326 DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14327else
14328 DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14329 DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14330fi
14331
Iain Buclawb4c522f2018-10-28 19:51:47 +000014332 ac_ext=c
14333ac_cpp='$CPP $CPPFLAGS'
14334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338
14339
Rainer Orth235d1c42019-04-14 09:30:42 +000014340 ac_ext=c
14341ac_cpp='$CPP $CPPFLAGS'
14342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345
14346 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14347"
14348if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14349 DCFG_DLPI_TLS_MODID=true
14350else
14351 DCFG_DLPI_TLS_MODID=false
14352fi
14353
14354
14355 ac_ext=c
14356ac_cpp='$CPP $CPPFLAGS'
14357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359ac_compiler_gnu=$ac_cv_c_compiler_gnu
14360
14361
14362
Rainer Orthba838aa2019-04-14 09:24:26 +000014363 case $target in
14364 i?86-*-solaris2.* | x86_64-*-solaris2.*)
14365 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14366 # relocs. Work around by disabling TLS transitions. Not necessary
14367 # on 32-bit x86, but cannot be distinguished reliably in specs.
14368 druntime_ld_prog=`$CC -print-prog-name=ld`
Rainer Orthbca0a322019-05-07 10:38:45 +000014369 druntime_ld_gld=no
14370 druntime_ld_relax_transtls=no
Rainer Orthba838aa2019-04-14 09:24:26 +000014371 if test -n "$druntime_ld_prog" \
14372 && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
Rainer Orthbca0a322019-05-07 10:38:45 +000014373 druntime_ld_gld=yes
Rainer Orthba838aa2019-04-14 09:24:26 +000014374 else
Rainer Orthbca0a322019-05-07 10:38:45 +000014375 echo 'int main (void) { return 0; }' > conftest.c
14376 save_LDFLAGS="$LDFLAGS"
14377 LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14378 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14379 druntime_ld_relax_transtls=yes
14380 fi
14381 LDFLAGS="$save_LDFLAGS"
14382 rm -f conftest.c conftest
14383 fi
14384 if test "$druntime_ld_relax_transtls" = "yes"; then
Rainer Orthba838aa2019-04-14 09:24:26 +000014385 OS_LINK_SPEC='-z relax=transtls'
14386 fi
14387 ;;
14388 esac
14389
14390
14391
Johannes Pfau36d7f152019-02-18 23:29:39 +000014392 ac_ext=c
14393ac_cpp='$CPP $CPPFLAGS'
14394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396ac_compiler_gnu=$ac_cv_c_compiler_gnu
14397
14398 DCFG_HAVE_QSORT_R=false
14399 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14400if test "x$ac_cv_func_qsort_r" = xyes; then :
14401 DCFG_HAVE_QSORT_R=true
14402fi
14403
14404
14405 ac_ext=c
14406ac_cpp='$CPP $CPPFLAGS'
14407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409ac_compiler_gnu=$ac_cv_c_compiler_gnu
14410
14411
14412
Iain Buclawb4c522f2018-10-28 19:51:47 +000014413
14414
14415 gdc_save_DFLAGS=$GDCFLAGS
14416 GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14417
14418 ac_ext=d
14419ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14420ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421ac_compiler_gnu=yes
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14424$as_echo_n "checking for library containing malloc... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014425if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014426 $as_echo_n "(cached) " >&6
14427else
14428 ac_func_search_save_LIBS=$LIBS
14429cat > conftest.$ac_ext <<_ACEOF
14430module mod;
14431 extern(C) int malloc();
14432
14433extern(C) int main() {
14434 malloc(); return 0;
14435}
14436_ACEOF
14437for ac_lib in '' c; do
14438 if test -z "$ac_lib"; then
14439 ac_res="none required"
14440 else
14441 ac_res=-l$ac_lib
14442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14443 fi
14444 if ac_fn_d_try_link "$LINENO"; then :
14445 ac_cv_search_malloc=$ac_res
14446fi
14447rm -f core conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014449 if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014450 break
14451fi
14452done
Joseph Myers22e05272018-10-31 17:03:16 +000014453if ${ac_cv_search_malloc+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014454
14455else
14456 ac_cv_search_malloc=no
14457fi
14458rm conftest.$ac_ext
14459LIBS=$ac_func_search_save_LIBS
14460fi
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14462$as_echo "$ac_cv_search_malloc" >&6; }
14463ac_res=$ac_cv_search_malloc
14464if test "$ac_res" != no; then :
14465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14466
14467fi
14468
Iain Buclaw6e286c82020-04-09 00:16:57 +020014469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000014470$as_echo_n "checking for library containing pthread_create... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014471if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014472 $as_echo_n "(cached) " >&6
14473else
14474 ac_func_search_save_LIBS=$LIBS
14475cat > conftest.$ac_ext <<_ACEOF
14476module mod;
14477 extern(C) int pthread_create();
14478
14479extern(C) int main() {
14480 pthread_create(); return 0;
14481}
14482_ACEOF
14483for ac_lib in '' pthread; do
14484 if test -z "$ac_lib"; then
14485 ac_res="none required"
14486 else
14487 ac_res=-l$ac_lib
14488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14489 fi
14490 if ac_fn_d_try_link "$LINENO"; then :
14491 ac_cv_search_pthread_create=$ac_res
14492fi
14493rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014495 if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014496 break
14497fi
14498done
Joseph Myers22e05272018-10-31 17:03:16 +000014499if ${ac_cv_search_pthread_create+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014500
14501else
14502 ac_cv_search_pthread_create=no
14503fi
14504rm conftest.$ac_ext
14505LIBS=$ac_func_search_save_LIBS
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14508$as_echo "$ac_cv_search_pthread_create" >&6; }
14509ac_res=$ac_cv_search_pthread_create
14510if test "$ac_res" != no; then :
14511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14512
14513fi
14514
Iain Buclawb4c522f2018-10-28 19:51:47 +000014515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14516$as_echo_n "checking for library containing cosf... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014517if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014518 $as_echo_n "(cached) " >&6
14519else
14520 ac_func_search_save_LIBS=$LIBS
14521cat > conftest.$ac_ext <<_ACEOF
14522module mod;
14523 extern(C) int cosf();
14524
14525extern(C) int main() {
14526 cosf(); return 0;
14527}
14528_ACEOF
14529for ac_lib in '' m; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14532 else
14533 ac_res=-l$ac_lib
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14535 fi
14536 if ac_fn_d_try_link "$LINENO"; then :
14537 ac_cv_search_cosf=$ac_res
14538fi
14539rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014541 if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014542 break
14543fi
14544done
Joseph Myers22e05272018-10-31 17:03:16 +000014545if ${ac_cv_search_cosf+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014546
14547else
14548 ac_cv_search_cosf=no
14549fi
14550rm conftest.$ac_ext
14551LIBS=$ac_func_search_save_LIBS
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14554$as_echo "$ac_cv_search_cosf" >&6; }
14555ac_res=$ac_cv_search_cosf
14556if test "$ac_res" != no; then :
14557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558
14559fi
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14562$as_echo_n "checking for library containing clock_gettime... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014563if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014564 $as_echo_n "(cached) " >&6
14565else
14566 ac_func_search_save_LIBS=$LIBS
14567cat > conftest.$ac_ext <<_ACEOF
14568module mod;
14569 extern(C) int clock_gettime();
14570
14571extern(C) int main() {
14572 clock_gettime(); return 0;
14573}
14574_ACEOF
14575for ac_lib in '' rt; do
14576 if test -z "$ac_lib"; then
14577 ac_res="none required"
14578 else
14579 ac_res=-l$ac_lib
14580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14581 fi
14582 if ac_fn_d_try_link "$LINENO"; then :
14583 ac_cv_search_clock_gettime=$ac_res
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext
Joseph Myers22e05272018-10-31 17:03:16 +000014587 if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014588 break
14589fi
14590done
Joseph Myers22e05272018-10-31 17:03:16 +000014591if ${ac_cv_search_clock_gettime+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014592
14593else
14594 ac_cv_search_clock_gettime=no
14595fi
14596rm conftest.$ac_ext
14597LIBS=$ac_func_search_save_LIBS
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14600$as_echo "$ac_cv_search_clock_gettime" >&6; }
14601ac_res=$ac_cv_search_clock_gettime
14602if test "$ac_res" != no; then :
14603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14604
14605fi
14606
14607
14608 # This checks to see if the host supports the compiler-generated builtins
14609 # for atomic operations for various integral sizes. Note, this is intended
14610 # to be an all-or-nothing switch, so all the atomic operations that are
14611 # used should be checked.
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14613$as_echo_n "checking for atomic builtins for byte... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014614 if ${druntime_cv_atomic_byte+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014615 $as_echo_n "(cached) " >&6
14616else
14617
14618 cat > conftest.$ac_ext <<_ACEOF
14619module mod;
14620import gcc.builtins;
14621
14622extern(C) int main() {
14623
14624 shared(byte) c1;
14625 byte c2, c3;
14626 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14627 __atomic_load_1(&c1, 5);
14628 __atomic_store_1(&c1, c2, 5);
14629 return 0;
14630
14631}
14632_ACEOF
14633if ac_fn_d_try_link "$LINENO"; then :
14634 druntime_cv_atomic_byte=yes
14635else
14636 druntime_cv_atomic_byte=no
14637fi
14638rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640
14641fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14644$as_echo "$druntime_cv_atomic_byte" >&6; }
14645
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14647$as_echo_n "checking for atomic builtins for short... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014648 if ${druntime_cv_atomic_short+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014649 $as_echo_n "(cached) " >&6
14650else
14651
14652 cat > conftest.$ac_ext <<_ACEOF
14653module mod;
14654import gcc.builtins;
14655
14656extern(C) int main() {
14657
14658 shared(short) c1;
14659 short c2, c3;
14660 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14661 __atomic_load_2(&c1, 5);
14662 __atomic_store_2(&c1, c2, 5);
14663 return 0;
14664
14665}
14666_ACEOF
14667if ac_fn_d_try_link "$LINENO"; then :
14668 druntime_cv_atomic_short=yes
14669else
14670 druntime_cv_atomic_short=no
14671fi
14672rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674
14675fi
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14678$as_echo "$druntime_cv_atomic_short" >&6; }
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14681$as_echo_n "checking for atomic builtins for int... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014682 if ${druntime_cv_atomic_int+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014683 $as_echo_n "(cached) " >&6
14684else
14685
14686 cat > conftest.$ac_ext <<_ACEOF
14687module mod;
14688import gcc.builtins;
14689
14690extern(C) int main() {
14691
14692 shared(int) c1;
14693 int c2, c3;
14694 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14695 __atomic_load_4(&c1, 5);
14696 __atomic_store_4(&c1, c2, 5);
14697 return 0;
14698
14699}
14700_ACEOF
14701if ac_fn_d_try_link "$LINENO"; then :
14702 druntime_cv_atomic_int=yes
14703else
14704 druntime_cv_atomic_int=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext \
14707 conftest$ac_exeext conftest.$ac_ext
14708
14709fi
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14712$as_echo "$druntime_cv_atomic_int" >&6; }
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14715$as_echo_n "checking for atomic builtins for long... " >&6; }
Joseph Myers22e05272018-10-31 17:03:16 +000014716 if ${druntime_cv_atomic_long+:} false; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014717 $as_echo_n "(cached) " >&6
14718else
14719
14720 cat > conftest.$ac_ext <<_ACEOF
14721module mod;
14722import gcc.builtins;
14723
14724extern(C) int main() {
14725
14726 shared(long) c1;
14727 long c2, c3;
14728 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14729 __atomic_load_8(&c1, 5);
14730 __atomic_store_8(&c1, c2, 5);
14731 return 0;
14732
14733}
14734_ACEOF
14735if ac_fn_d_try_link "$LINENO"; then :
14736 druntime_cv_atomic_long=yes
14737else
14738 druntime_cv_atomic_long=no
14739fi
14740rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742
14743fi
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14746$as_echo "$druntime_cv_atomic_long" >&6; }
14747
14748 # Have atomic builtin support if all but the long test above passes.
14749 DCFG_HAVE_ATOMIC_BUILTINS=false
14750 if test "$druntime_cv_atomic_byte" = yes \
14751 && test "$druntime_cv_atomic_short" = yes \
14752 && test "$druntime_cv_atomic_int" = yes; then \
14753 DCFG_HAVE_ATOMIC_BUILTINS=true
14754 fi
14755
14756 # Have 64-bit atomic support if the long test above passes.
14757 DCFG_HAVE_64BIT_ATOMICS=false
14758 if test "$druntime_cv_atomic_long" = yes; then
14759 DCFG_HAVE_64BIT_ATOMICS=true
14760 fi
14761
14762
14763
14764
14765 ac_ext=c
14766ac_cpp='$CPP $CPPFLAGS'
14767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769ac_compiler_gnu=$ac_cv_c_compiler_gnu
14770
14771
14772 GDCFLAGS=$gdc_save_DFLAGS
14773
14774
14775
14776
14777# Check whether --with-libatomic was given.
14778if test "${with_libatomic+set}" = set; then :
14779 withval=$with_libatomic;
14780fi
14781
14782
14783 DCFG_HAVE_LIBATOMIC=false
14784 LIBATOMIC=
14785 if test "x$with_libatomic" != "xno"; then :
14786
14787 DCFG_HAVE_LIBATOMIC=true
14788 LIBATOMIC=../../libatomic/libatomic_convenience.la
14789
14790else
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14793$as_echo_n "checking for libatomic... " >&6; }
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14795$as_echo "disabled" >&6; }
14796
14797fi
14798
14799
14800
14801
14802
14803 ac_ext=c
14804ac_cpp='$CPP $CPPFLAGS'
14805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14807ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808
14809 BACKTRACE_SUPPORTED=false
14810 BACKTRACE_USES_MALLOC=false
14811 BACKTRACE_SUPPORTS_THREADS=false
14812 LIBBACKTRACE=""
14813
14814
14815# Check whether --with-libbacktrace was given.
14816if test "${with_libbacktrace+set}" = set; then :
14817 withval=$with_libbacktrace;
14818fi
14819
14820
14821 if test "x$with_libbacktrace" != "xno"; then :
14822
14823 LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14824
14825 gdc_save_CPPFLAGS=$CPPFLAGS
Iain Buclaw5d71d6f2019-04-16 05:58:25 +000014826 CPPFLAGS="$CPPFLAGS -I../libbacktrace "
Iain Buclawb4c522f2018-10-28 19:51:47 +000014827
14828 ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000014829if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000014830 have_libbacktrace_h=true
14831else
14832 have_libbacktrace_h=false
14833fi
14834
14835
14836
14837 if $have_libbacktrace_h; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14839$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841/* end confdefs.h. */
14842
14843 #include <backtrace-supported.h>
14844 #if BACKTRACE_SUPPORTED
14845 FOUND_LIBBACKTRACE_RESULT_GDC
14846 #endif
14847
14848_ACEOF
14849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14850 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14851 BACKTRACE_SUPPORTED=true
14852else
14853 BACKTRACE_SUPPORTED=false
14854fi
14855rm -f conftest*
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14858$as_echo "$BACKTRACE_SUPPORTED" >&6; }
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14861$as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863/* end confdefs.h. */
14864
14865 #include <backtrace-supported.h>
14866 #if BACKTRACE_USES_MALLOC
14867 FOUND_LIBBACKTRACE_RESULT_GDC
14868 #endif
14869
14870_ACEOF
14871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14872 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14873 BACKTRACE_USES_MALLOC=true
14874else
14875 BACKTRACE_USES_MALLOC=false
14876fi
14877rm -f conftest*
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14880$as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14883$as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h. */
14886
14887 #include <backtrace-supported.h>
14888 #if BACKTRACE_SUPPORTS_THREADS
14889 FOUND_LIBBACKTRACE_RESULT_GDC
14890 #endif
14891
14892_ACEOF
14893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14894 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14895 BACKTRACE_SUPPORTS_THREADS=true
14896else
14897 BACKTRACE_SUPPORTS_THREADS=false
14898fi
14899rm -f conftest*
14900
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14902$as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14903 fi
14904 CPPFLAGS=$gdc_save_CPPFLAGS
14905
14906else
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14909$as_echo_n "checking for libbacktrace... " >&6; }
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14911$as_echo "disabled" >&6; }
14912
14913fi
14914
14915
14916
14917
14918
14919 ac_ext=c
14920ac_cpp='$CPP $CPPFLAGS'
14921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923ac_compiler_gnu=$ac_cv_c_compiler_gnu
14924
14925
14926
14927 # Libtool has already checked this, so re-use the inferred dlopen lib.
14928 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14929
14930 LIBS="$LIBS $lt_cv_dlopen_libs"
14931
14932fi
14933
14934
Rainer Orth1d679132019-02-19 09:24:50 +000014935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14936$as_echo_n "checking for socket libraries... " >&6; }
14937if ${druntime_cv_lib_sockets+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939else
14940 druntime_cv_lib_sockets=
14941 druntime_check_both=no
14942 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14943if test "x$ac_cv_func_connect" = xyes; then :
14944 druntime_check_socket=no
14945else
14946 druntime_check_socket=yes
14947fi
14948
14949 if test "$druntime_check_socket" = "yes"; then
14950 unset ac_cv_func_connect
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14952$as_echo_n "checking for main in -lsocket... " >&6; }
14953if ${ac_cv_lib_socket_main+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955else
14956 ac_check_lib_save_LIBS=$LIBS
14957LIBS="-lsocket $LIBS"
14958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959/* end confdefs.h. */
14960
14961
14962int
14963main ()
14964{
14965return main ();
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970if ac_fn_c_try_link "$LINENO"; then :
14971 ac_cv_lib_socket_main=yes
14972else
14973 ac_cv_lib_socket_main=no
14974fi
14975rm -f core conftest.err conftest.$ac_objext \
14976 conftest$ac_exeext conftest.$ac_ext
14977LIBS=$ac_check_lib_save_LIBS
14978fi
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14980$as_echo "$ac_cv_lib_socket_main" >&6; }
14981if test "x$ac_cv_lib_socket_main" = xyes; then :
14982 druntime_cv_lib_sockets="-lsocket"
14983else
14984 druntime_check_both=yes
14985fi
14986
14987 fi
14988 if test "$druntime_check_both" = "yes"; then
14989 druntime_old_libs=$LIBS
14990 LIBS="$LIBS -lsocket -lnsl"
14991 unset ac_cv_func_accept
14992 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14993if test "x$ac_cv_func_accept" = xyes; then :
14994 druntime_check_nsl=no
14995 druntime_cv_lib_sockets="-lsocket -lnsl"
14996fi
14997
14998 unset ac_cv_func_accept
14999 LIBS=$druntime_old_libs
15000 fi
15001 unset ac_cv_func_gethostbyname
15002 druntime_old_libs="$LIBS"
15003 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15004if test "x$ac_cv_func_gethostbyname" = xyes; then :
15005
15006else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15008$as_echo_n "checking for main in -lnsl... " >&6; }
15009if ${ac_cv_lib_nsl_main+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011else
15012 ac_check_lib_save_LIBS=$LIBS
15013LIBS="-lnsl $LIBS"
15014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015/* end confdefs.h. */
15016
15017
15018int
15019main ()
15020{
15021return main ();
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026if ac_fn_c_try_link "$LINENO"; then :
15027 ac_cv_lib_nsl_main=yes
15028else
15029 ac_cv_lib_nsl_main=no
15030fi
15031rm -f core conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033LIBS=$ac_check_lib_save_LIBS
15034fi
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15036$as_echo "$ac_cv_lib_nsl_main" >&6; }
15037if test "x$ac_cv_lib_nsl_main" = xyes; then :
15038 druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15039fi
15040
15041fi
15042
15043
15044fi
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15046$as_echo "$druntime_cv_lib_sockets" >&6; }
15047 LIBS="$LIBS $druntime_cv_lib_sockets"
15048
15049
Iain Buclawbb503122019-04-12 20:13:34 +000015050 ac_ext=c
15051ac_cpp='$CPP $CPPFLAGS'
15052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15054ac_compiler_gnu=$ac_cv_c_compiler_gnu
15055
15056 LIBZ=""
15057
Iain Buclawb4c522f2018-10-28 19:51:47 +000015058
15059# Check whether --with-target-system-zlib was given.
15060if test "${with_target_system_zlib+set}" = set; then :
15061 withval=$with_target_system_zlib;
Iain Buclawbb503122019-04-12 20:13:34 +000015062else
15063 with_target_system_zlib=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015064fi
15065
15066
Iain Buclawbb503122019-04-12 20:13:34 +000015067 case "$with_target_system_zlib" in
15068 yes|no|auto) ;;
15069 *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15070 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015071
Iain Buclawbb503122019-04-12 20:13:34 +000015072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15073$as_echo_n "checking for system zlib... " >&6; }
15074 save_LIBS=$LIBS
15075 LIBS="$LIBS -lz"
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Iain Buclawb4c522f2018-10-28 19:51:47 +000015077/* end confdefs.h. */
Iain Buclawbb503122019-04-12 20:13:34 +000015078#include <zlib.h>
Iain Buclawb4c522f2018-10-28 19:51:47 +000015079int
15080main ()
15081{
Iain Buclawbb503122019-04-12 20:13:34 +000015082gzopen("none", "rb")
Iain Buclawb4c522f2018-10-28 19:51:47 +000015083 ;
15084 return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_link "$LINENO"; then :
Iain Buclawbb503122019-04-12 20:13:34 +000015088
15089 if test "$cross_compiling" = yes; then :
15090 system_zlib_found=no
15091
Iain Buclawb4c522f2018-10-28 19:51:47 +000015092else
Iain Buclawbb503122019-04-12 20:13:34 +000015093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094/* end confdefs.h. */
15095
15096 #include <zlib.h>
15097 int main() {
15098 gzFile file = gzopen("none", "rb");
15099 return 0;
15100 }
15101
15102_ACEOF
15103if ac_fn_c_try_run "$LINENO"; then :
15104 system_zlib_found=yes
15105else
15106 system_zlib_found=no
15107fi
15108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15109 conftest.$ac_objext conftest.beam conftest.$ac_ext
15110fi
15111
15112
15113else
15114 system_zlib_found=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015115fi
15116rm -f core conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
Iain Buclawbb503122019-04-12 20:13:34 +000015118 LIBS=$save_LIBS
Iain Buclawb4c522f2018-10-28 19:51:47 +000015119
Iain Buclawbb503122019-04-12 20:13:34 +000015120 if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15122$as_echo "found" >&6; }
15123 LIBS="$LIBS -lz"
15124 elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15125 as_fn_error $? "system zlib required but not found" "$LINENO" 5
15126 else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15128$as_echo "just compiled" >&6; }
Iain Buclawbb503122019-04-12 20:13:34 +000015129 LIBZ=../../zlib/libz_convenience.la
15130 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015131
Iain Buclawb4c522f2018-10-28 19:51:47 +000015132
Iain Buclawbb503122019-04-12 20:13:34 +000015133 ac_ext=c
15134ac_cpp='$CPP $CPPFLAGS'
15135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15137ac_compiler_gnu=$ac_cv_c_compiler_gnu
Iain Buclawb4c522f2018-10-28 19:51:47 +000015138
15139
15140
15141
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15144$as_echo_n "checking D GCC version... " >&6; }
15145 gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15147$as_echo "$gcc_version" >&6; }
15148
15149
15150
15151# Check whether --with-cross-host was given.
15152if test "${with_cross_host+set}" = set; then :
15153 withval=$with_cross_host;
15154fi
15155
15156
Iain Buclawac677522018-11-02 08:29:50 +000015157 libphobos_toolexecdir=no
15158 libphobos_toolexeclibdir=no
Iain Buclawb4c522f2018-10-28 19:51:47 +000015159
Iain Buclawac677522018-11-02 08:29:50 +000015160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15161$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15162 # Check whether --enable-version-specific-runtime-libs was given.
15163if test "${enable_version_specific_runtime_libs+set}" = set; then :
15164 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15165 yes) version_specific_libs=yes ;;
15166 no) version_specific_libs=no ;;
15167 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15168 esac
15169else
Iain Buclawb4c522f2018-10-28 19:51:47 +000015170 version_specific_libs=no
Iain Buclawac677522018-11-02 08:29:50 +000015171fi
15172
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15174$as_echo "$version_specific_libs" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015175
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015176
15177# Check whether --with-toolexeclibdir was given.
15178if test "${with_toolexeclibdir+set}" = set; then :
15179 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15180 /)
15181 ;;
15182 */)
15183 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15184 ;;
15185esac
15186else
15187 with_toolexeclibdir=no
15188fi
15189
15190
15191
Iain Buclawb4c522f2018-10-28 19:51:47 +000015192 # Version-specific runtime libs processing.
15193 if test $version_specific_libs = yes; then
Iain Buclawac677522018-11-02 08:29:50 +000015194 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15195 libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015196 else
Iain Buclawac677522018-11-02 08:29:50 +000015197 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15198 # Install a library built with a cross compiler in tooldir, not libdir.
15199 if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15200 libphobos_toolexecdir='${exec_prefix}/${host_alias}'
Maciej W. Rozyckie8e66972020-01-24 11:24:25 +000015201 case ${with_toolexeclibdir} in
15202 no)
15203 libphobos_toolexeclibdir='${toolexecdir}/lib'
15204 ;;
15205 *)
15206 libphobos_toolexeclibdir=${with_toolexeclibdir}
15207 ;;
15208 esac
Iain Buclawac677522018-11-02 08:29:50 +000015209 else
15210 libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15211 libphobos_toolexeclibdir='${libdir}'
15212 fi
15213 multi_os_directory=`$GDC -print-multi-os-directory`
15214 case $multi_os_directory in
15215 .) ;; # Avoid trailing /.
15216 *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15217 esac
Iain Buclawb4c522f2018-10-28 19:51:47 +000015218 fi
15219
15220
15221
15222 # Default case for install directory for D sources files.
15223 gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15224
15225
15226
Rainer Orthbca0a322019-05-07 10:38:45 +000015227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15228$as_echo_n "checking for --enable-libphobos... " >&6; }
15229# Check whether --enable-libphobos was given.
15230if test "${enable_libphobos+set}" = set; then :
15231 enableval=$enable_libphobos;
15232fi
15233
15234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15235$as_echo "$enable_libphobos" >&6; }
15236
Iain Buclaw261bd782020-03-25 09:38:58 +010015237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15238$as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15239
Iain Buclaw371d1012020-04-20 18:50:36 +020015240# Check whether --with-libphobos-druntime-only was given.
15241if test "${with_libphobos_druntime_only+set}" = set; then :
15242 withval=$with_libphobos_druntime_only;
Iain Buclaw261bd782020-03-25 09:38:58 +010015243else
Iain Buclaw371d1012020-04-20 18:50:36 +020015244 with_libphobos_druntime_only=auto
Iain Buclaw261bd782020-03-25 09:38:58 +010015245fi
15246
Iain Buclaw371d1012020-04-20 18:50:36 +020015247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15248$as_echo "$with_libphobos_druntime_only" >&6; }
Iain Buclaw261bd782020-03-25 09:38:58 +010015249
Iain Buclaw371d1012020-04-20 18:50:36 +020015250case "$with_libphobos_druntime_only" in
Iain Buclaw261bd782020-03-25 09:38:58 +010015251 yes|no|auto) ;;
15252 *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15253esac
15254
Rainer Orthbca0a322019-05-07 10:38:45 +000015255# See if supported.
15256unset LIBPHOBOS_SUPPORTED
Iain Buclaw261bd782020-03-25 09:38:58 +010015257unset LIBDRUNTIME_ONLY
Rainer Orthbca0a322019-05-07 10:38:45 +000015258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15259$as_echo_n "checking for host support for libphobos... " >&6; }
15260. ${srcdir}/configure.tgt
15261case ${host} in
15262 x86_64-*-solaris2.* | i?86-*-solaris2.*)
15263 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15264 # relatively low linelength limit.
15265 as_prog=`$CC -print-prog-name=as`
15266 if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15267 druntime_cv_use_gas=yes;
15268 else
15269 druntime_cv_use_gas=no;
15270 fi
15271 rm -f a.out
15272 if test x$druntime_cv_use_gas = xno; then
15273 LIBPHOBOS_SUPPORTED=no
15274 fi
15275 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15276 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15277 LIBPHOBOS_SUPPORTED=no
15278 fi
15279 ;;
15280esac
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15282$as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15283
15284# Decide if it's usable.
15285case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15286*:no) use_libphobos=no ;;
15287*:yes) use_libphobos=yes ;;
15288yes:*) use_libphobos=yes ;;
15289*:*) use_libphobos=no ;;
15290esac
15291 if test x$use_libphobos = xyes; then
15292 ENABLE_LIBPHOBOS_TRUE=
15293 ENABLE_LIBPHOBOS_FALSE='#'
15294else
15295 ENABLE_LIBPHOBOS_TRUE='#'
15296 ENABLE_LIBPHOBOS_FALSE=
15297fi
15298
15299
Iain Buclaw261bd782020-03-25 09:38:58 +010015300# Decide if only libdruntime should be built.
Iain Buclaw371d1012020-04-20 18:50:36 +020015301case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
Iain Buclaw261bd782020-03-25 09:38:58 +010015302*:no) only_libdruntime=no ;;
15303*:yes) only_libdruntime=yes ;;
15304yes:*) only_libdruntime=yes ;;
15305*:*) only_libdruntime=no ;;
15306esac
15307 if test x$only_libdruntime = xyes; then
15308 ENABLE_LIBDRUNTIME_ONLY_TRUE=
15309 ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15310else
15311 ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15312 ENABLE_LIBDRUNTIME_ONLY_FALSE=
15313fi
15314
15315
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015316# Enable expensive internal checks
15317# Check whether --enable-libphobos-checking was given.
15318if test "${enable_libphobos_checking+set}" = set; then :
15319 enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15320else
15321 ac_checking_flags=release
15322fi
15323
15324IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15325for check in release $ac_checking_flags
15326do
15327 case $check in
15328 # These set all the flags to specific states
15329 yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15330 no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15331 # These enable particular checks
15332 assert) ASSERT_FLAG="-fassert" ;;
15333 # Accept
15334 *) ;;
15335 esac
15336done
15337IFS="$ac_save_IFS"
15338CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15339
15340
Rainer Orth0b6e3122019-02-14 17:47:49 +000015341# Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15342if test "$DCFG_MINFO_BRACKETING" = "false"; then
15343 DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15344else
15345 DRTSTUFF_SPEC=/dev/null
15346fi
15347
15348
Iain Buclawb4c522f2018-10-28 19:51:47 +000015349# Add dependencies for libgphobos.spec file
15350SPEC_PHOBOS_DEPS="$LIBS"
15351
15352
15353# Libdruntime / phobos soname version
Iain Buclawbc093502020-03-16 17:00:07 +010015354libtool_VERSION=1:0:0
Iain Buclawb4c522f2018-10-28 19:51:47 +000015355
15356
15357# Set default flags (after DRUNTIME_WERROR!)
15358if test -z "$GDCFLAGS"; then
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015359 GDCFLAGS="-g -O2"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015360fi
15361
15362
15363if test -z "$GDCFLAGSX"; then
Iain Buclawc0dbfbd2020-04-09 00:41:14 +020015364 GDCFLAGSX="-g"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015365fi
15366
15367
Iain Buclaw38c30172020-03-29 23:54:01 +020015368WARN_DFLAGS="-Wall $WERROR_FLAG"
15369
15370
Iain Buclawb4c522f2018-10-28 19:51:47 +000015371# Sanity check for the cross-compilation case:
15372ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
Joseph Myers22e05272018-10-31 17:03:16 +000015373if test "x$ac_cv_header_stdio_h" = xyes; then :
Iain Buclawb4c522f2018-10-28 19:51:47 +000015374 :
15375else
Joseph Myers22e05272018-10-31 17:03:16 +000015376 as_fn_error $? "cannot find stdio.h." "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000015377fi
15378
15379
15380
Iain Buclawac677522018-11-02 08:29:50 +000015381ac_config_files="$ac_config_files Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015382
15383
15384ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15385
15386ac_config_files="$ac_config_files src/libgphobos.spec"
15387
15388ac_config_files="$ac_config_files testsuite/testsuite_flags"
15389
15390
Iain Buclawac677522018-11-02 08:29:50 +000015391# Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15392# that multilib installs will end up installed in the correct place.
15393# The testsuite needs it for multilib-aware ABI baseline files.
15394# To work around this not being passed down from config-ml.in ->
15395# srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15396# append it here. Only modify Makefiles that have just been created.
15397#
15398# Also, get rid of this simulated-VPATH thing that automake does.
15399ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015400
15401
15402cat >confcache <<\_ACEOF
15403# This file is a shell script that caches the results of configure
15404# tests run on this system so they can be shared between configure
15405# scripts and configure runs, see configure's option --config-cache.
15406# It is not useful on other systems. If it contains results you don't
15407# want to keep, you may remove or edit it.
15408#
15409# config.status only pays attention to the cache file if you give it
15410# the --recheck option to rerun configure.
15411#
15412# `ac_cv_env_foo' variables (set or unset) will be overridden when
15413# loading this file, other *unset* `ac_cv_foo' will be assigned the
15414# following values.
15415
15416_ACEOF
15417
15418# The following way of writing the cache mishandles newlines in values,
15419# but we know of no workaround that is simple, portable, and efficient.
15420# So, we kill variables containing newlines.
15421# Ultrix sh set writes to stderr and can't be redirected directly,
15422# and sets the high bit in the cache file unless we assign to the vars.
15423(
15424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15425 eval ac_val=\$$ac_var
15426 case $ac_val in #(
15427 *${as_nl}*)
15428 case $ac_var in #(
15429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15431 esac
15432 case $ac_var in #(
15433 _ | IFS | as_nl) ;; #(
15434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15435 *) { eval $ac_var=; unset $ac_var;} ;;
15436 esac ;;
15437 esac
15438 done
15439
15440 (set) 2>&1 |
15441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15442 *${as_nl}ac_space=\ *)
15443 # `set' does not quote correctly, so add quotes: double-quote
15444 # substitution turns \\\\ into \\, and sed turns \\ into \.
15445 sed -n \
15446 "s/'/'\\\\''/g;
15447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15448 ;; #(
15449 *)
15450 # `set' quotes correctly as required by POSIX, so do not add quotes.
15451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15452 ;;
15453 esac |
15454 sort
15455) |
15456 sed '
15457 /^ac_cv_env_/b end
15458 t clear
15459 :clear
15460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15461 t end
15462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15463 :end' >>confcache
15464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15465 if test -w "$cache_file"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015466 if test "x$cache_file" != "x/dev/null"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000015467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15468$as_echo "$as_me: updating cache $cache_file" >&6;}
Joseph Myers22e05272018-10-31 17:03:16 +000015469 if test ! -f "$cache_file" || test -h "$cache_file"; then
15470 cat confcache >"$cache_file"
15471 else
15472 case $cache_file in #(
15473 */* | ?:*)
15474 mv -f confcache "$cache_file"$$ &&
15475 mv -f "$cache_file"$$ "$cache_file" ;; #(
15476 *)
15477 mv -f confcache "$cache_file" ;;
15478 esac
15479 fi
15480 fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015481 else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15483$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15484 fi
15485fi
15486rm -f confcache
15487
15488test "x$prefix" = xNONE && prefix=$ac_default_prefix
15489# Let make expand exec_prefix.
15490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15491
15492DEFS=-DHAVE_CONFIG_H
15493
15494ac_libobjs=
15495ac_ltlibobjs=
Joseph Myers22e05272018-10-31 17:03:16 +000015496U=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15498 # 1. Remove the extension, and $U if already installed.
15499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15502 # will be set to the directory where LIBOBJS objects are built.
15503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15505done
15506LIBOBJS=$ac_libobjs
15507
15508LTLIBOBJS=$ac_ltlibobjs
15509
15510
Joseph Myers22e05272018-10-31 17:03:16 +000015511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15512$as_echo_n "checking that generated files are newer than configure... " >&6; }
15513 if test -n "$am_sleep_pid"; then
15514 # Hide warnings about reused PIDs.
15515 wait $am_sleep_pid 2>/dev/null
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15518$as_echo "done" >&6; }
Iain Buclawb4c522f2018-10-28 19:51:47 +000015519 if test -n "$EXEEXT"; then
15520 am__EXEEXT_TRUE=
15521 am__EXEEXT_FALSE='#'
15522else
15523 am__EXEEXT_TRUE='#'
15524 am__EXEEXT_FALSE=
15525fi
15526
15527if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015528 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015529Usually this means the macro was only invoked conditionally." "$LINENO" 5
15530fi
Iain Buclaw2493e712019-04-24 22:46:59 +000015531if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15532 as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15533Usually this means the macro was only invoked conditionally." "$LINENO" 5
15534fi
15535if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15536 as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15537Usually this means the macro was only invoked conditionally." "$LINENO" 5
15538fi
15539if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15540 as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15541Usually this means the macro was only invoked conditionally." "$LINENO" 5
15542fi
15543if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15544 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15545Usually this means the macro was only invoked conditionally." "$LINENO" 5
15546fi
15547if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15548 as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15549Usually this means the macro was only invoked conditionally." "$LINENO" 5
15550fi
15551if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15552 as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15553Usually this means the macro was only invoked conditionally." "$LINENO" 5
15554fi
Robin Dapp88e508f2020-04-07 21:05:38 +020015555if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15556 as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15557Usually this means the macro was only invoked conditionally." "$LINENO" 5
15558fi
15559if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15560 as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15561Usually this means the macro was only invoked conditionally." "$LINENO" 5
15562fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015563if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015564 as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015565Usually this means the macro was only invoked conditionally." "$LINENO" 5
15566fi
15567if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015568 as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015569Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570fi
15571if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015572 as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015573Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574fi
15575if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015576 as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015577Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578fi
15579if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015580 as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015581Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582fi
15583if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015584 as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015585Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586fi
15587if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015588 as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015589Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590fi
15591if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015592 as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015593Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594fi
15595if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015596 as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015597Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598fi
15599if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015600 as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015601Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602fi
Iain Buclaw72c136c2020-04-08 22:52:05 +020015603if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15604 as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15605Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015607if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
Joseph Myers22e05272018-10-31 17:03:16 +000015608 as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015609Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610fi
Rainer Orth0b6e3122019-02-14 17:47:49 +000015611if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15612 as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15613Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614fi
Rainer Orthbca0a322019-05-07 10:38:45 +000015615if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15616 as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15617Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618fi
Iain Buclaw261bd782020-03-25 09:38:58 +010015619if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15620 as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15621Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000015623
Joseph Myers22e05272018-10-31 17:03:16 +000015624: "${CONFIG_STATUS=./config.status}"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015625ac_write_fail=0
15626ac_clean_files_save=$ac_clean_files
15627ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15629$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15630as_write_fail=0
15631cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15632#! $SHELL
15633# Generated by $as_me.
15634# Run this file to recreate the current configuration.
15635# Compiler output produced by configure, useful for debugging
15636# configure, is in config.log if it exists.
15637
15638debug=false
15639ac_cs_recheck=false
15640ac_cs_silent=false
15641
15642SHELL=\${CONFIG_SHELL-$SHELL}
15643export SHELL
15644_ASEOF
15645cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15646## -------------------- ##
15647## M4sh Initialization. ##
15648## -------------------- ##
15649
15650# Be more Bourne compatible
15651DUALCASE=1; export DUALCASE # for MKS sh
15652if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15653 emulate sh
15654 NULLCMD=:
15655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15656 # is contrary to our usage. Disable this feature.
15657 alias -g '${1+"$@"}'='"$@"'
15658 setopt NO_GLOB_SUBST
15659else
15660 case `(set -o) 2>/dev/null` in #(
15661 *posix*) :
15662 set -o posix ;; #(
15663 *) :
15664 ;;
15665esac
15666fi
15667
15668
15669as_nl='
15670'
15671export as_nl
15672# Printing a long string crashes Solaris 7 /usr/bin/printf.
15673as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15676# Prefer a ksh shell builtin over an external printf program on Solaris,
15677# but without wasting forks for bash or zsh.
15678if test -z "$BASH_VERSION$ZSH_VERSION" \
15679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15680 as_echo='print -r --'
15681 as_echo_n='print -rn --'
15682elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15683 as_echo='printf %s\n'
15684 as_echo_n='printf %s'
15685else
15686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15688 as_echo_n='/usr/ucb/echo -n'
15689 else
15690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15691 as_echo_n_body='eval
15692 arg=$1;
15693 case $arg in #(
15694 *"$as_nl"*)
15695 expr "X$arg" : "X\\(.*\\)$as_nl";
15696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15697 esac;
15698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15699 '
15700 export as_echo_n_body
15701 as_echo_n='sh -c $as_echo_n_body as_echo'
15702 fi
15703 export as_echo_body
15704 as_echo='sh -c $as_echo_body as_echo'
15705fi
15706
15707# The user is always right.
15708if test "${PATH_SEPARATOR+set}" != set; then
15709 PATH_SEPARATOR=:
15710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15712 PATH_SEPARATOR=';'
15713 }
15714fi
15715
15716
15717# IFS
15718# We need space, tab and new line, in precisely that order. Quoting is
15719# there to prevent editors from complaining about space-tab.
15720# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15721# splitting by setting IFS to empty value.)
15722IFS=" "" $as_nl"
15723
15724# Find who we are. Look in the path if we contain no directory separator.
Joseph Myers22e05272018-10-31 17:03:16 +000015725as_myself=
Iain Buclawb4c522f2018-10-28 19:51:47 +000015726case $0 in #((
15727 *[\\/]* ) as_myself=$0 ;;
15728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729for as_dir in $PATH
15730do
15731 IFS=$as_save_IFS
15732 test -z "$as_dir" && as_dir=.
15733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15734 done
15735IFS=$as_save_IFS
15736
15737 ;;
15738esac
15739# We did not find ourselves, most probably we were run as `sh COMMAND'
15740# in which case we are not to be found in the path.
15741if test "x$as_myself" = x; then
15742 as_myself=$0
15743fi
15744if test ! -f "$as_myself"; then
15745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15746 exit 1
15747fi
15748
15749# Unset variables that we do not need and which cause bugs (e.g. in
15750# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15751# suppresses any "Segmentation fault" message there. '((' could
15752# trigger a bug in pdksh 5.2.14.
15753for as_var in BASH_ENV ENV MAIL MAILPATH
15754do eval test x\${$as_var+set} = xset \
15755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15756done
15757PS1='$ '
15758PS2='> '
15759PS4='+ '
15760
15761# NLS nuisances.
15762LC_ALL=C
15763export LC_ALL
15764LANGUAGE=C
15765export LANGUAGE
15766
15767# CDPATH.
15768(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15769
15770
Joseph Myers22e05272018-10-31 17:03:16 +000015771# as_fn_error STATUS ERROR [LINENO LOG_FD]
15772# ----------------------------------------
Iain Buclawb4c522f2018-10-28 19:51:47 +000015773# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15774# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Joseph Myers22e05272018-10-31 17:03:16 +000015775# script with STATUS, using 1 if that was 0.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015776as_fn_error ()
15777{
Joseph Myers22e05272018-10-31 17:03:16 +000015778 as_status=$1; test $as_status -eq 0 && as_status=1
15779 if test "$4"; then
15780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Iain Buclawb4c522f2018-10-28 19:51:47 +000015782 fi
Joseph Myers22e05272018-10-31 17:03:16 +000015783 $as_echo "$as_me: error: $2" >&2
Iain Buclawb4c522f2018-10-28 19:51:47 +000015784 as_fn_exit $as_status
15785} # as_fn_error
15786
15787
15788# as_fn_set_status STATUS
15789# -----------------------
15790# Set $? to STATUS, without forking.
15791as_fn_set_status ()
15792{
15793 return $1
15794} # as_fn_set_status
15795
15796# as_fn_exit STATUS
15797# -----------------
15798# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15799as_fn_exit ()
15800{
15801 set +e
15802 as_fn_set_status $1
15803 exit $1
15804} # as_fn_exit
15805
15806# as_fn_unset VAR
15807# ---------------
15808# Portably unset VAR.
15809as_fn_unset ()
15810{
15811 { eval $1=; unset $1;}
15812}
15813as_unset=as_fn_unset
15814# as_fn_append VAR VALUE
15815# ----------------------
15816# Append the text in VALUE to the end of the definition contained in VAR. Take
15817# advantage of any shell optimizations that allow amortized linear growth over
15818# repeated appends, instead of the typical quadratic growth present in naive
15819# implementations.
15820if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15821 eval 'as_fn_append ()
15822 {
15823 eval $1+=\$2
15824 }'
15825else
15826 as_fn_append ()
15827 {
15828 eval $1=\$$1\$2
15829 }
15830fi # as_fn_append
15831
15832# as_fn_arith ARG...
15833# ------------------
15834# Perform arithmetic evaluation on the ARGs, and store the result in the
15835# global $as_val. Take advantage of shells that can avoid forks. The arguments
15836# must be portable across $(()) and expr.
15837if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15838 eval 'as_fn_arith ()
15839 {
15840 as_val=$(( $* ))
15841 }'
15842else
15843 as_fn_arith ()
15844 {
15845 as_val=`expr "$@" || test $? -eq 1`
15846 }
15847fi # as_fn_arith
15848
15849
15850if expr a : '\(a\)' >/dev/null 2>&1 &&
15851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15852 as_expr=expr
15853else
15854 as_expr=false
15855fi
15856
15857if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15858 as_basename=basename
15859else
15860 as_basename=false
15861fi
15862
15863if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15864 as_dirname=dirname
15865else
15866 as_dirname=false
15867fi
15868
15869as_me=`$as_basename -- "$0" ||
15870$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15871 X"$0" : 'X\(//\)$' \| \
15872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15873$as_echo X/"$0" |
15874 sed '/^.*\/\([^/][^/]*\)\/*$/{
15875 s//\1/
15876 q
15877 }
15878 /^X\/\(\/\/\)$/{
15879 s//\1/
15880 q
15881 }
15882 /^X\/\(\/\).*/{
15883 s//\1/
15884 q
15885 }
15886 s/.*/./; q'`
15887
15888# Avoid depending upon Character Ranges.
15889as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15890as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15891as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15892as_cr_digits='0123456789'
15893as_cr_alnum=$as_cr_Letters$as_cr_digits
15894
15895ECHO_C= ECHO_N= ECHO_T=
15896case `echo -n x` in #(((((
15897-n*)
15898 case `echo 'xy\c'` in
15899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15900 xy) ECHO_C='\c';;
15901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15902 ECHO_T=' ';;
15903 esac;;
15904*)
15905 ECHO_N='-n';;
15906esac
15907
15908rm -f conf$$ conf$$.exe conf$$.file
15909if test -d conf$$.dir; then
15910 rm -f conf$$.dir/conf$$.file
15911else
15912 rm -f conf$$.dir
15913 mkdir conf$$.dir 2>/dev/null
15914fi
15915if (echo >conf$$.file) 2>/dev/null; then
15916 if ln -s conf$$.file conf$$ 2>/dev/null; then
15917 as_ln_s='ln -s'
15918 # ... but there are two gotchas:
15919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Joseph Myers22e05272018-10-31 17:03:16 +000015921 # In both cases, we have to default to `cp -pR'.
Iain Buclawb4c522f2018-10-28 19:51:47 +000015922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Joseph Myers22e05272018-10-31 17:03:16 +000015923 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015924 elif ln conf$$.file conf$$ 2>/dev/null; then
15925 as_ln_s=ln
15926 else
Joseph Myers22e05272018-10-31 17:03:16 +000015927 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015928 fi
15929else
Joseph Myers22e05272018-10-31 17:03:16 +000015930 as_ln_s='cp -pR'
Iain Buclawb4c522f2018-10-28 19:51:47 +000015931fi
15932rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15933rmdir conf$$.dir 2>/dev/null
15934
15935
15936# as_fn_mkdir_p
15937# -------------
15938# Create "$as_dir" as a directory, including parents if necessary.
15939as_fn_mkdir_p ()
15940{
15941
15942 case $as_dir in #(
15943 -*) as_dir=./$as_dir;;
15944 esac
15945 test -d "$as_dir" || eval $as_mkdir_p || {
15946 as_dirs=
15947 while :; do
15948 case $as_dir in #(
15949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15950 *) as_qdir=$as_dir;;
15951 esac
15952 as_dirs="'$as_qdir' $as_dirs"
15953 as_dir=`$as_dirname -- "$as_dir" ||
15954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15955 X"$as_dir" : 'X\(//\)[^/]' \| \
15956 X"$as_dir" : 'X\(//\)$' \| \
15957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15958$as_echo X"$as_dir" |
15959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\/\)[^/].*/{
15964 s//\1/
15965 q
15966 }
15967 /^X\(\/\/\)$/{
15968 s//\1/
15969 q
15970 }
15971 /^X\(\/\).*/{
15972 s//\1/
15973 q
15974 }
15975 s/.*/./; q'`
15976 test -d "$as_dir" && break
15977 done
15978 test -z "$as_dirs" || eval "mkdir $as_dirs"
Joseph Myers22e05272018-10-31 17:03:16 +000015979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Iain Buclawb4c522f2018-10-28 19:51:47 +000015980
15981
15982} # as_fn_mkdir_p
15983if mkdir -p . 2>/dev/null; then
15984 as_mkdir_p='mkdir -p "$as_dir"'
15985else
15986 test -d ./-p && rmdir ./-p
15987 as_mkdir_p=false
15988fi
15989
Joseph Myers22e05272018-10-31 17:03:16 +000015990
15991# as_fn_executable_p FILE
15992# -----------------------
15993# Test if FILE is an executable regular file.
15994as_fn_executable_p ()
15995{
15996 test -f "$1" && test -x "$1"
15997} # as_fn_executable_p
15998as_test_x='test -x'
15999as_executable_p=as_fn_executable_p
Iain Buclawb4c522f2018-10-28 19:51:47 +000016000
16001# Sed expression to map a string onto a valid CPP name.
16002as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16003
16004# Sed expression to map a string onto a valid variable name.
16005as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16006
16007
16008exec 6>&1
16009## ----------------------------------- ##
16010## Main body of $CONFIG_STATUS script. ##
16011## ----------------------------------- ##
16012_ASEOF
16013test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16014
16015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16016# Save the log message, to keep $0 and so on meaningful, and to
16017# report actual input values of CONFIG_FILES etc. instead of their
16018# values after options handling.
16019ac_log="
16020This file was extended by package-unused $as_me version-unused, which was
Joseph Myers22e05272018-10-31 17:03:16 +000016021generated by GNU Autoconf 2.69. Invocation command line was
Iain Buclawb4c522f2018-10-28 19:51:47 +000016022
16023 CONFIG_FILES = $CONFIG_FILES
16024 CONFIG_HEADERS = $CONFIG_HEADERS
16025 CONFIG_LINKS = $CONFIG_LINKS
16026 CONFIG_COMMANDS = $CONFIG_COMMANDS
16027 $ $0 $@
16028
16029on `(hostname || uname -n) 2>/dev/null | sed 1q`
16030"
16031
16032_ACEOF
16033
16034case $ac_config_files in *"
16035"*) set x $ac_config_files; shift; ac_config_files=$*;;
16036esac
16037
16038case $ac_config_headers in *"
16039"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16040esac
16041
16042
16043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16044# Files that config.status was made for.
16045config_files="$ac_config_files"
16046config_headers="$ac_config_headers"
16047config_commands="$ac_config_commands"
16048
16049_ACEOF
16050
16051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052ac_cs_usage="\
16053\`$as_me' instantiates files and other configuration actions
16054from templates according to the current configuration. Unless the files
16055and actions are specified as TAGs, all are instantiated by default.
16056
16057Usage: $0 [OPTION]... [TAG]...
16058
16059 -h, --help print this help, then exit
16060 -V, --version print version number and configuration settings, then exit
Joseph Myers22e05272018-10-31 17:03:16 +000016061 --config print configuration, then exit
Iain Buclawb4c522f2018-10-28 19:51:47 +000016062 -q, --quiet, --silent
16063 do not print progress messages
16064 -d, --debug don't remove temporary files
16065 --recheck update $as_me by reconfiguring in the same conditions
16066 --file=FILE[:TEMPLATE]
16067 instantiate the configuration file FILE
16068 --header=FILE[:TEMPLATE]
16069 instantiate the configuration header FILE
16070
16071Configuration files:
16072$config_files
16073
16074Configuration headers:
16075$config_headers
16076
16077Configuration commands:
16078$config_commands
16079
16080Report bugs to the package provider."
16081
16082_ACEOF
16083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016084ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016085ac_cs_version="\\
16086package-unused config.status version-unused
Joseph Myers22e05272018-10-31 17:03:16 +000016087configured by $0, generated by GNU Autoconf 2.69,
16088 with options \\"\$ac_cs_config\\"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016089
Rainer Orth0b6e3122019-02-14 17:47:49 +000016090Copyright (C) 2012 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000016091This config.status script is free software; the Free Software Foundation
16092gives unlimited permission to copy, distribute and modify it."
16093
16094ac_pwd='$ac_pwd'
16095srcdir='$srcdir'
16096INSTALL='$INSTALL'
16097MKDIR_P='$MKDIR_P'
16098AWK='$AWK'
16099test -n "\$AWK" || AWK=awk
16100_ACEOF
16101
16102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103# The default lists apply if the user does not specify any file.
16104ac_need_defaults=:
16105while test $# != 0
16106do
16107 case $1 in
Joseph Myers22e05272018-10-31 17:03:16 +000016108 --*=?*)
Iain Buclawb4c522f2018-10-28 19:51:47 +000016109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16110 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16111 ac_shift=:
16112 ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016113 --*=)
16114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16115 ac_optarg=
16116 ac_shift=:
16117 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016118 *)
16119 ac_option=$1
16120 ac_optarg=$2
16121 ac_shift=shift
16122 ;;
16123 esac
16124
16125 case $ac_option in
16126 # Handling of the options.
16127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16128 ac_cs_recheck=: ;;
16129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16130 $as_echo "$ac_cs_version"; exit ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016131 --config | --confi | --conf | --con | --co | --c )
16132 $as_echo "$ac_cs_config"; exit ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016133 --debug | --debu | --deb | --de | --d | -d )
16134 debug=: ;;
16135 --file | --fil | --fi | --f )
16136 $ac_shift
16137 case $ac_optarg in
16138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Joseph Myers22e05272018-10-31 17:03:16 +000016139 '') as_fn_error $? "missing file argument" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016140 esac
16141 as_fn_append CONFIG_FILES " '$ac_optarg'"
16142 ac_need_defaults=false;;
16143 --header | --heade | --head | --hea )
16144 $ac_shift
16145 case $ac_optarg in
16146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16147 esac
16148 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16149 ac_need_defaults=false;;
16150 --he | --h)
16151 # Conflict between --help and --header
Joseph Myers22e05272018-10-31 17:03:16 +000016152 as_fn_error $? "ambiguous option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016153Try \`$0 --help' for more information.";;
16154 --help | --hel | -h )
16155 $as_echo "$ac_cs_usage"; exit ;;
16156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16158 ac_cs_silent=: ;;
16159
16160 # This is an error.
Joseph Myers22e05272018-10-31 17:03:16 +000016161 -*) as_fn_error $? "unrecognized option: \`$1'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016162Try \`$0 --help' for more information." ;;
16163
16164 *) as_fn_append ac_config_targets " $1"
16165 ac_need_defaults=false ;;
16166
16167 esac
16168 shift
16169done
16170
16171ac_configure_extra_args=
16172
16173if $ac_cs_silent; then
16174 exec 6>/dev/null
16175 ac_configure_extra_args="$ac_configure_extra_args --silent"
16176fi
16177
16178_ACEOF
16179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180if \$ac_cs_recheck; then
Joseph Myers22e05272018-10-31 17:03:16 +000016181 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Iain Buclawb4c522f2018-10-28 19:51:47 +000016182 shift
16183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16184 CONFIG_SHELL='$SHELL'
16185 export CONFIG_SHELL
16186 exec "\$@"
16187fi
16188
16189_ACEOF
16190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16191exec 5>>config.log
16192{
16193 echo
16194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16195## Running $as_me. ##
16196_ASBOX
16197 $as_echo "$ac_log"
16198} >&5
16199
16200_ACEOF
16201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202#
16203# INIT-COMMANDS
16204#
16205
16206srcdir="$srcdir"
16207host="$host"
16208target="$target"
16209with_multisubdir="$with_multisubdir"
16210with_multisrctop="$with_multisrctop"
16211with_target_subdir="$with_target_subdir"
16212ac_configure_args="${multilib_arg} ${ac_configure_args}"
16213multi_basedir="$multi_basedir"
16214CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16215CC="$CC"
16216CXX="$CXX"
16217GFORTRAN="$GFORTRAN"
16218GDC="$GDC"
16219
16220
16221# The HP-UX ksh and POSIX shell print the target directory to stdout
16222# if CDPATH is set.
16223(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16224
16225sed_quote_subst='$sed_quote_subst'
16226double_quote_subst='$double_quote_subst'
16227delay_variable_subst='$delay_variable_subst'
16228macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16229macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16230enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16231enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16232pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16233enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16234SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16235ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16236host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16237host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16238host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16239build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16240build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16241build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16242SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16243Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16244GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16245EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16246FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16247LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16248NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16249LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16250max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16251ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16252exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16253lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16254lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16255lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16256reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16257reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16258OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16259deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16260file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16261AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16262AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16263STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16264RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16265old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16266old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16267old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16268lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16269CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16270CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16271compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16272GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16273lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16274lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16275lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16276lt_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"`'
16277objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16278MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16279lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16280lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16281lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16282lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16283lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16284need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16285DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16286NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16287LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16288OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16289OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16290libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16291shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16292extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16293archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16294enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16295export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16296whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16297compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16298old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16299old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16300archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16301archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16302module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16303module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16304with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16305allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16306no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16307hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16308hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16309hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16310hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16311hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16312hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16313hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16314hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16315inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16316link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16317fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16318always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16319export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16320exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16321include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16322prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16323file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16324variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16325need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16326need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16327version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16328runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16329shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16330shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16331libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16332library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16333soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16334install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16335postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16336postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16337finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16338finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16339hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16340sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16341sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16342hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16343enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16344enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16345enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16346old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16347striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16348LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16349reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16350reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16351old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16352compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16353GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16354lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16355lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16356lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16357lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16358lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16359archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16360enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16361export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16362whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16363compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16364old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16365old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16366archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16367archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16368module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16369module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16370with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16371allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16372no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16373hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16374hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16375hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16376hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16377hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16378hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16379hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16380hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16381inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16382link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16383fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16384always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16385export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16386exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16387include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16388prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16389file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16390hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16391
16392LTCC='$LTCC'
16393LTCFLAGS='$LTCFLAGS'
16394compiler='$compiler_DEFAULT'
16395
16396# A function that is used when there is no print builtin or printf.
16397func_fallback_echo ()
16398{
16399 eval 'cat <<_LTECHO_EOF
16400\$1
16401_LTECHO_EOF'
16402}
16403
16404# Quote evaled strings.
16405for var in SHELL \
16406ECHO \
16407SED \
16408GREP \
16409EGREP \
16410FGREP \
16411LD \
16412NM \
16413LN_S \
16414lt_SP2NL \
16415lt_NL2SP \
16416reload_flag \
16417OBJDUMP \
16418deplibs_check_method \
16419file_magic_cmd \
16420AR \
16421AR_FLAGS \
16422STRIP \
16423RANLIB \
16424CC \
16425CFLAGS \
16426compiler \
16427lt_cv_sys_global_symbol_pipe \
16428lt_cv_sys_global_symbol_to_cdecl \
16429lt_cv_sys_global_symbol_to_c_name_address \
16430lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16431lt_prog_compiler_no_builtin_flag \
16432lt_prog_compiler_wl \
16433lt_prog_compiler_pic \
16434lt_prog_compiler_static \
16435lt_cv_prog_compiler_c_o \
16436need_locks \
16437DSYMUTIL \
16438NMEDIT \
16439LIPO \
16440OTOOL \
16441OTOOL64 \
16442shrext_cmds \
16443export_dynamic_flag_spec \
16444whole_archive_flag_spec \
16445compiler_needs_object \
16446with_gnu_ld \
16447allow_undefined_flag \
16448no_undefined_flag \
16449hardcode_libdir_flag_spec \
16450hardcode_libdir_flag_spec_ld \
16451hardcode_libdir_separator \
16452fix_srcfile_path \
16453exclude_expsyms \
16454include_expsyms \
16455file_list_spec \
16456variables_saved_for_relink \
16457libname_spec \
16458library_names_spec \
16459soname_spec \
16460install_override_mode \
16461finish_eval \
16462old_striplib \
16463striplib \
16464LD_D \
16465reload_flag_D \
16466compiler_D \
16467lt_prog_compiler_no_builtin_flag_D \
16468lt_prog_compiler_wl_D \
16469lt_prog_compiler_pic_D \
16470lt_prog_compiler_static_D \
16471lt_cv_prog_compiler_c_o_D \
16472export_dynamic_flag_spec_D \
16473whole_archive_flag_spec_D \
16474compiler_needs_object_D \
16475with_gnu_ld_D \
16476allow_undefined_flag_D \
16477no_undefined_flag_D \
16478hardcode_libdir_flag_spec_D \
16479hardcode_libdir_flag_spec_ld_D \
16480hardcode_libdir_separator_D \
16481fix_srcfile_path_D \
16482exclude_expsyms_D \
16483include_expsyms_D \
16484file_list_spec_D; do
16485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16486 *[\\\\\\\`\\"\\\$]*)
16487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16488 ;;
16489 *)
16490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16491 ;;
16492 esac
16493done
16494
16495# Double-quote double-evaled strings.
16496for var in reload_cmds \
16497old_postinstall_cmds \
16498old_postuninstall_cmds \
16499old_archive_cmds \
16500extract_expsyms_cmds \
16501old_archive_from_new_cmds \
16502old_archive_from_expsyms_cmds \
16503archive_cmds \
16504archive_expsym_cmds \
16505module_cmds \
16506module_expsym_cmds \
16507export_symbols_cmds \
16508prelink_cmds \
16509postinstall_cmds \
16510postuninstall_cmds \
16511finish_cmds \
16512sys_lib_search_path_spec \
16513sys_lib_dlsearch_path_spec \
16514reload_cmds_D \
16515old_archive_cmds_D \
16516old_archive_from_new_cmds_D \
16517old_archive_from_expsyms_cmds_D \
16518archive_cmds_D \
16519archive_expsym_cmds_D \
16520module_cmds_D \
16521module_expsym_cmds_D \
16522export_symbols_cmds_D \
16523prelink_cmds_D; do
16524 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16525 *[\\\\\\\`\\"\\\$]*)
16526 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16527 ;;
16528 *)
16529 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16530 ;;
16531 esac
16532done
16533
16534ac_aux_dir='$ac_aux_dir'
16535xsi_shell='$xsi_shell'
16536lt_shell_append='$lt_shell_append'
16537
16538# See if we are running on zsh, and set the options which allow our
16539# commands through without removal of \ escapes INIT.
16540if test -n "\${ZSH_VERSION+set}" ; then
16541 setopt NO_GLOB_SUBST
16542fi
16543
16544
16545 PACKAGE='$PACKAGE'
16546 VERSION='$VERSION'
16547 TIMESTAMP='$TIMESTAMP'
16548 RM='$RM'
16549 ofile='$ofile'
16550
16551
16552
16553
16554
16555
Iain Buclawb4c522f2018-10-28 19:51:47 +000016556_ACEOF
16557
16558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559
16560# Handling of arguments.
16561for ac_config_target in $ac_config_targets
16562do
16563 case $ac_config_target in
16564 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16565 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16566 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16567 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016568 "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16569 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16570 "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16571 "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
Iain Buclawac677522018-11-02 08:29:50 +000016572 "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16573 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16574 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016575
Joseph Myers22e05272018-10-31 17:03:16 +000016576 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016577 esac
16578done
16579
16580
16581# If the user did not use the arguments to specify the items to instantiate,
16582# then the envvar interface is used. Set only those that are not.
16583# We use the long form for the default assignment because of an extremely
16584# bizarre bug on SunOS 4.1.3.
16585if $ac_need_defaults; then
16586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16589fi
16590
16591# Have a temporary directory for convenience. Make it in the build tree
16592# simply because there is no reason against having it here, and in addition,
16593# creating and moving files from /tmp can sometimes cause problems.
16594# Hook for its removal unless debugging.
16595# Note that there is a small window in which the directory will not be cleaned:
16596# after its creation but before its name has been assigned to `$tmp'.
16597$debug ||
16598{
Joseph Myers22e05272018-10-31 17:03:16 +000016599 tmp= ac_tmp=
Iain Buclawb4c522f2018-10-28 19:51:47 +000016600 trap 'exit_status=$?
Joseph Myers22e05272018-10-31 17:03:16 +000016601 : "${ac_tmp:=$tmp}"
16602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Iain Buclawb4c522f2018-10-28 19:51:47 +000016603' 0
16604 trap 'as_fn_exit 1' 1 2 13 15
16605}
16606# Create a (secure) tmp directory for tmp files.
16607
16608{
16609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Joseph Myers22e05272018-10-31 17:03:16 +000016610 test -d "$tmp"
Iain Buclawb4c522f2018-10-28 19:51:47 +000016611} ||
16612{
16613 tmp=./conf$$-$RANDOM
16614 (umask 077 && mkdir "$tmp")
Joseph Myers22e05272018-10-31 17:03:16 +000016615} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16616ac_tmp=$tmp
Iain Buclawb4c522f2018-10-28 19:51:47 +000016617
16618# Set up the scripts for CONFIG_FILES section.
16619# No need to generate them if there are no CONFIG_FILES.
16620# This happens for instance with `./config.status config.h'.
16621if test -n "$CONFIG_FILES"; then
16622
Rainer Orth0b6e3122019-02-14 17:47:49 +000016623if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16624 ac_cs_awk_getline=:
16625 ac_cs_awk_pipe_init=
16626 ac_cs_awk_read_file='
16627 while ((getline aline < (F[key])) > 0)
16628 print(aline)
16629 close(F[key])'
16630 ac_cs_awk_pipe_fini=
16631else
16632 ac_cs_awk_getline=false
16633 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16634 ac_cs_awk_read_file='
16635 print "|#_!!_#|"
16636 print "cat " F[key] " &&"
16637 '$ac_cs_awk_pipe_init
16638 # The final `:' finishes the AND list.
16639 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16640fi
Iain Buclawb4c522f2018-10-28 19:51:47 +000016641ac_cr=`echo X | tr X '\015'`
16642# On cygwin, bash can eat \r inside `` if the user requested igncr.
16643# But we know of no other shell where ac_cr would be empty at this
16644# point, so we can use a bashism as a fallback.
16645if test "x$ac_cr" = x; then
16646 eval ac_cr=\$\'\\r\'
16647fi
16648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016650 ac_cs_awk_cr='\\r'
Iain Buclawb4c522f2018-10-28 19:51:47 +000016651else
16652 ac_cs_awk_cr=$ac_cr
16653fi
16654
Joseph Myers22e05272018-10-31 17:03:16 +000016655echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016656_ACEOF
16657
Rainer Orth0b6e3122019-02-14 17:47:49 +000016658# Create commands to substitute file output variables.
16659{
16660 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16661 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16662 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16663 echo "_ACAWK" &&
16664 echo "_ACEOF"
16665} >conf$$files.sh &&
16666. ./conf$$files.sh ||
16667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16668rm -f conf$$files.sh
Iain Buclawb4c522f2018-10-28 19:51:47 +000016669
16670{
16671 echo "cat >conf$$subs.awk <<_ACEOF" &&
16672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16673 echo "_ACEOF"
16674} >conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Iain Buclawb4c522f2018-10-28 19:51:47 +000016677ac_delim='%!_!# '
16678for ac_last_try in false false false false false :; do
16679 . ./conf$$subs.sh ||
Joseph Myers22e05272018-10-31 17:03:16 +000016680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016681
16682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16683 if test $ac_delim_n = $ac_delim_num; then
16684 break
16685 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016687 else
16688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16689 fi
16690done
16691rm -f conf$$subs.sh
16692
16693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016695_ACEOF
16696sed -n '
16697h
16698s/^/S["/; s/!.*/"]=/
16699p
16700g
16701s/^[^!]*!//
16702:repl
16703t repl
16704s/'"$ac_delim"'$//
16705t delim
16706:nl
16707h
Joseph Myers22e05272018-10-31 17:03:16 +000016708s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016709t more1
16710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16711p
16712n
16713b repl
16714:more1
16715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16716p
16717g
16718s/.\{148\}//
16719t nl
16720:delim
16721h
Joseph Myers22e05272018-10-31 17:03:16 +000016722s/\(.\{148\}\)..*/\1/
Iain Buclawb4c522f2018-10-28 19:51:47 +000016723t more2
16724s/["\\]/\\&/g; s/^/"/; s/$/"/
16725p
16726b
16727:more2
16728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16729p
16730g
16731s/.\{148\}//
16732t delim
16733' <conf$$subs.awk | sed '
16734/^[^""]/{
16735 N
16736 s/\n//
16737}
16738' >>$CONFIG_STATUS || ac_write_fail=1
16739rm -f conf$$subs.awk
16740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16741_ACAWK
Joseph Myers22e05272018-10-31 17:03:16 +000016742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000016743 for (key in S) S_is_set[key] = 1
16744 FS = ""
Rainer Orth0b6e3122019-02-14 17:47:49 +000016745 \$ac_cs_awk_pipe_init
Iain Buclawb4c522f2018-10-28 19:51:47 +000016746}
16747{
16748 line = $ 0
16749 nfields = split(line, field, "@")
16750 substed = 0
16751 len = length(field[1])
16752 for (i = 2; i < nfields; i++) {
16753 key = field[i]
16754 keylen = length(key)
16755 if (S_is_set[key]) {
16756 value = S[key]
16757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16758 len += length(value) + length(field[++i])
16759 substed = 1
16760 } else
16761 len += 1 + keylen
16762 }
Rainer Orth0b6e3122019-02-14 17:47:49 +000016763 if (nfields == 3 && !substed) {
16764 key = field[2]
16765 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16766 \$ac_cs_awk_read_file
16767 next
16768 }
16769 }
Iain Buclawb4c522f2018-10-28 19:51:47 +000016770 print line
16771}
Rainer Orth0b6e3122019-02-14 17:47:49 +000016772\$ac_cs_awk_pipe_fini
Iain Buclawb4c522f2018-10-28 19:51:47 +000016773_ACAWK
16774_ACEOF
16775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16776if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16777 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16778else
16779 cat
Joseph Myers22e05272018-10-31 17:03:16 +000016780fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16781 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016782_ACEOF
16783
Joseph Myers22e05272018-10-31 17:03:16 +000016784# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16785# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Iain Buclawb4c522f2018-10-28 19:51:47 +000016786# trailing colons and then remove the whole line if VPATH becomes empty
16787# (actually we leave an empty line to preserve line numbers).
16788if test "x$srcdir" = x.; then
Joseph Myers22e05272018-10-31 17:03:16 +000016789 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16790h
16791s///
16792s/^/:/
16793s/[ ]*$/:/
16794s/:\$(srcdir):/:/g
16795s/:\${srcdir}:/:/g
16796s/:@srcdir@:/:/g
16797s/^:*//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016798s/:*$//
Joseph Myers22e05272018-10-31 17:03:16 +000016799x
16800s/\(=[ ]*\).*/\1/
16801G
16802s/\n//
Iain Buclawb4c522f2018-10-28 19:51:47 +000016803s/^[^=]*=[ ]*$//
16804}'
16805fi
16806
16807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16808fi # test -n "$CONFIG_FILES"
16809
16810# Set up the scripts for CONFIG_HEADERS section.
16811# No need to generate them if there are no CONFIG_HEADERS.
16812# This happens for instance with `./config.status Makefile'.
16813if test -n "$CONFIG_HEADERS"; then
Joseph Myers22e05272018-10-31 17:03:16 +000016814cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Iain Buclawb4c522f2018-10-28 19:51:47 +000016815BEGIN {
16816_ACEOF
16817
16818# Transform confdefs.h into an awk script `defines.awk', embedded as
16819# here-document in config.status, that substitutes the proper values into
16820# config.h.in to produce config.h.
16821
16822# Create a delimiter string that does not exist in confdefs.h, to ease
16823# handling of long lines.
16824ac_delim='%!_!# '
16825for ac_last_try in false false :; do
Joseph Myers22e05272018-10-31 17:03:16 +000016826 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16827 if test -z "$ac_tt"; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000016828 break
16829 elif $ac_last_try; then
Joseph Myers22e05272018-10-31 17:03:16 +000016830 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016831 else
16832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16833 fi
16834done
16835
16836# For the awk script, D is an array of macro values keyed by name,
16837# likewise P contains macro parameters if any. Preserve backslash
16838# newline sequences.
16839
16840ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16841sed -n '
16842s/.\{148\}/&'"$ac_delim"'/g
16843t rset
16844:rset
16845s/^[ ]*#[ ]*define[ ][ ]*/ /
16846t def
16847d
16848:def
16849s/\\$//
16850t bsnl
16851s/["\\]/\\&/g
16852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16853D["\1"]=" \3"/p
16854s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16855d
16856:bsnl
16857s/["\\]/\\&/g
16858s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16859D["\1"]=" \3\\\\\\n"\\/p
16860t cont
16861s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16862t cont
16863d
16864:cont
16865n
16866s/.\{148\}/&'"$ac_delim"'/g
16867t clear
16868:clear
16869s/\\$//
16870t bsnlc
16871s/["\\]/\\&/g; s/^/"/; s/$/"/p
16872d
16873:bsnlc
16874s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16875b cont
16876' <confdefs.h | sed '
16877s/'"$ac_delim"'/"\\\
16878"/g' >>$CONFIG_STATUS || ac_write_fail=1
16879
16880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16881 for (key in D) D_is_set[key] = 1
16882 FS = ""
16883}
16884/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16885 line = \$ 0
16886 split(line, arg, " ")
16887 if (arg[1] == "#") {
16888 defundef = arg[2]
16889 mac1 = arg[3]
16890 } else {
16891 defundef = substr(arg[1], 2)
16892 mac1 = arg[2]
16893 }
16894 split(mac1, mac2, "(") #)
16895 macro = mac2[1]
16896 prefix = substr(line, 1, index(line, defundef) - 1)
16897 if (D_is_set[macro]) {
16898 # Preserve the white space surrounding the "#".
16899 print prefix "define", macro P[macro] D[macro]
16900 next
16901 } else {
16902 # Replace #undef with comments. This is necessary, for example,
16903 # in the case of _POSIX_SOURCE, which is predefined and required
16904 # on some systems where configure will not decide to define it.
16905 if (defundef == "undef") {
16906 print "/*", prefix defundef, macro, "*/"
16907 next
16908 }
16909 }
16910}
16911{ print }
16912_ACAWK
16913_ACEOF
16914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Joseph Myers22e05272018-10-31 17:03:16 +000016915 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000016916fi # test -n "$CONFIG_HEADERS"
16917
16918
16919eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16920shift
16921for ac_tag
16922do
16923 case $ac_tag in
16924 :[FHLC]) ac_mode=$ac_tag; continue;;
16925 esac
16926 case $ac_mode$ac_tag in
16927 :[FHL]*:*);;
Joseph Myers22e05272018-10-31 17:03:16 +000016928 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016929 :[FH]-) ac_tag=-:-;;
16930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16931 esac
16932 ac_save_IFS=$IFS
16933 IFS=:
16934 set x $ac_tag
16935 IFS=$ac_save_IFS
16936 shift
16937 ac_file=$1
16938 shift
16939
16940 case $ac_mode in
16941 :L) ac_source=$1;;
16942 :[FH])
16943 ac_file_inputs=
16944 for ac_f
16945 do
16946 case $ac_f in
Joseph Myers22e05272018-10-31 17:03:16 +000016947 -) ac_f="$ac_tmp/stdin";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016948 *) # Look for the file first in the build tree, then in the source tree
16949 # (if the path is not absolute). The absolute path cannot be DOS-style,
16950 # because $ac_f cannot contain `:'.
16951 test -f "$ac_f" ||
16952 case $ac_f in
16953 [\\/$]*) false;;
16954 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16955 esac ||
Joseph Myers22e05272018-10-31 17:03:16 +000016956 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016957 esac
16958 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16959 as_fn_append ac_file_inputs " '$ac_f'"
16960 done
16961
16962 # Let's still pretend it is `configure' which instantiates (i.e., don't
16963 # use $as_me), people would be surprised to read:
16964 # /* config.h. Generated by config.status. */
16965 configure_input='Generated from '`
16966 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16967 `' by configure.'
16968 if test x"$ac_file" != x-; then
16969 configure_input="$ac_file. $configure_input"
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16971$as_echo "$as_me: creating $ac_file" >&6;}
16972 fi
16973 # Neutralize special characters interpreted by sed in replacement strings.
16974 case $configure_input in #(
16975 *\&* | *\|* | *\\* )
16976 ac_sed_conf_input=`$as_echo "$configure_input" |
16977 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16978 *) ac_sed_conf_input=$configure_input;;
16979 esac
16980
16981 case $ac_tag in
Joseph Myers22e05272018-10-31 17:03:16 +000016982 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Iain Buclawb4c522f2018-10-28 19:51:47 +000016984 esac
16985 ;;
16986 esac
16987
16988 ac_dir=`$as_dirname -- "$ac_file" ||
16989$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990 X"$ac_file" : 'X\(//\)[^/]' \| \
16991 X"$ac_file" : 'X\(//\)$' \| \
16992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16993$as_echo X"$ac_file" |
16994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995 s//\1/
16996 q
16997 }
16998 /^X\(\/\/\)[^/].*/{
16999 s//\1/
17000 q
17001 }
17002 /^X\(\/\/\)$/{
17003 s//\1/
17004 q
17005 }
17006 /^X\(\/\).*/{
17007 s//\1/
17008 q
17009 }
17010 s/.*/./; q'`
17011 as_dir="$ac_dir"; as_fn_mkdir_p
17012 ac_builddir=.
17013
17014case "$ac_dir" in
17015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17016*)
17017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17018 # A ".." for each directory in $ac_dir_suffix.
17019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17020 case $ac_top_builddir_sub in
17021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17023 esac ;;
17024esac
17025ac_abs_top_builddir=$ac_pwd
17026ac_abs_builddir=$ac_pwd$ac_dir_suffix
17027# for backward compatibility:
17028ac_top_builddir=$ac_top_build_prefix
17029
17030case $srcdir in
17031 .) # We are building in place.
17032 ac_srcdir=.
17033 ac_top_srcdir=$ac_top_builddir_sub
17034 ac_abs_top_srcdir=$ac_pwd ;;
17035 [\\/]* | ?:[\\/]* ) # Absolute name.
17036 ac_srcdir=$srcdir$ac_dir_suffix;
17037 ac_top_srcdir=$srcdir
17038 ac_abs_top_srcdir=$srcdir ;;
17039 *) # Relative name.
17040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17041 ac_top_srcdir=$ac_top_build_prefix$srcdir
17042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17043esac
17044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17045
17046
17047 case $ac_mode in
17048 :F)
17049 #
17050 # CONFIG_FILE
17051 #
17052
17053 case $INSTALL in
17054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17055 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17056 esac
17057 ac_MKDIR_P=$MKDIR_P
17058 case $MKDIR_P in
17059 [\\/$]* | ?:[\\/]* ) ;;
17060 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17061 esac
17062_ACEOF
17063
17064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17065# If the template does not know about datarootdir, expand it.
17066# FIXME: This hack should be removed a few years after 2.60.
17067ac_datarootdir_hack=; ac_datarootdir_seen=
17068ac_sed_dataroot='
17069/datarootdir/ {
17070 p
17071 q
17072}
17073/@datadir@/p
17074/@docdir@/p
17075/@infodir@/p
17076/@localedir@/p
17077/@mandir@/p'
17078case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17079*datarootdir*) ac_datarootdir_seen=yes;;
17080*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17082$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17083_ACEOF
17084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17085 ac_datarootdir_hack='
17086 s&@datadir@&$datadir&g
17087 s&@docdir@&$docdir&g
17088 s&@infodir@&$infodir&g
17089 s&@localedir@&$localedir&g
17090 s&@mandir@&$mandir&g
17091 s&\\\${datarootdir}&$datarootdir&g' ;;
17092esac
17093_ACEOF
17094
17095# Neutralize VPATH when `$srcdir' = `.'.
17096# Shell code in configure.ac might set extrasub.
17097# FIXME: do we really want to maintain this feature?
17098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17099ac_sed_extra="$ac_vpsub
17100$extrasub
17101_ACEOF
17102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17103:t
17104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17105s|@configure_input@|$ac_sed_conf_input|;t t
17106s&@top_builddir@&$ac_top_builddir_sub&;t t
17107s&@top_build_prefix@&$ac_top_build_prefix&;t t
17108s&@srcdir@&$ac_srcdir&;t t
17109s&@abs_srcdir@&$ac_abs_srcdir&;t t
17110s&@top_srcdir@&$ac_top_srcdir&;t t
17111s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17112s&@builddir@&$ac_builddir&;t t
17113s&@abs_builddir@&$ac_abs_builddir&;t t
17114s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17115s&@INSTALL@&$ac_INSTALL&;t t
17116s&@MKDIR_P@&$ac_MKDIR_P&;t t
17117$ac_datarootdir_hack
17118"
Rainer Orth0b6e3122019-02-14 17:47:49 +000017119eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17120if $ac_cs_awk_getline; then
17121 $AWK -f "$ac_tmp/subs.awk"
17122else
17123 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17124fi \
Joseph Myers22e05272018-10-31 17:03:16 +000017125 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017126
17127test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Joseph Myers22e05272018-10-31 17:03:16 +000017128 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17130 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Iain Buclawb4c522f2018-10-28 19:51:47 +000017131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017132which seems to be undefined. Please make sure it is defined" >&5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017133$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Joseph Myers22e05272018-10-31 17:03:16 +000017134which seems to be undefined. Please make sure it is defined" >&2;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000017135
Joseph Myers22e05272018-10-31 17:03:16 +000017136 rm -f "$ac_tmp/stdin"
Iain Buclawb4c522f2018-10-28 19:51:47 +000017137 case $ac_file in
Joseph Myers22e05272018-10-31 17:03:16 +000017138 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17139 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Iain Buclawb4c522f2018-10-28 19:51:47 +000017140 esac \
Joseph Myers22e05272018-10-31 17:03:16 +000017141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017142 ;;
17143 :H)
17144 #
17145 # CONFIG_HEADER
17146 #
17147 if test x"$ac_file" != x-; then
17148 {
17149 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17151 } >"$ac_tmp/config.h" \
17152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17153 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Iain Buclawb4c522f2018-10-28 19:51:47 +000017154 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17155$as_echo "$as_me: $ac_file is unchanged" >&6;}
17156 else
17157 rm -f "$ac_file"
Joseph Myers22e05272018-10-31 17:03:16 +000017158 mv "$ac_tmp/config.h" "$ac_file" \
17159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017160 fi
17161 else
17162 $as_echo "/* $configure_input */" \
Joseph Myers22e05272018-10-31 17:03:16 +000017163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17164 || as_fn_error $? "could not create -" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000017165 fi
17166# Compute "$ac_file"'s index in $config_headers.
17167_am_arg="$ac_file"
17168_am_stamp_count=1
17169for _am_header in $config_headers :; do
17170 case $_am_header in
17171 $_am_arg | $_am_arg:* )
17172 break ;;
17173 * )
17174 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17175 esac
17176done
17177echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17178$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17179 X"$_am_arg" : 'X\(//\)[^/]' \| \
17180 X"$_am_arg" : 'X\(//\)$' \| \
17181 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17182$as_echo X"$_am_arg" |
17183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17184 s//\1/
17185 q
17186 }
17187 /^X\(\/\/\)[^/].*/{
17188 s//\1/
17189 q
17190 }
17191 /^X\(\/\/\)$/{
17192 s//\1/
17193 q
17194 }
17195 /^X\(\/\).*/{
17196 s//\1/
17197 q
17198 }
17199 s/.*/./; q'`/stamp-h$_am_stamp_count
17200 ;;
17201
17202 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17203$as_echo "$as_me: executing $ac_file commands" >&6;}
17204 ;;
17205 esac
17206
17207
17208 case $ac_file$ac_mode in
17209 "default-1":C)
17210# Only add multilib support code if we just rebuilt the top-level
17211# Makefile.
17212case " $CONFIG_FILES " in
17213 *" Makefile "*)
17214 ac_file=Makefile . ${multi_basedir}/config-ml.in
17215 ;;
17216esac ;;
17217 "libtool":C)
17218
17219 # See if we are running on zsh, and set the options which allow our
17220 # commands through without removal of \ escapes.
17221 if test -n "${ZSH_VERSION+set}" ; then
17222 setopt NO_GLOB_SUBST
17223 fi
17224
17225 cfgfile="${ofile}T"
17226 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17227 $RM "$cfgfile"
17228
17229 cat <<_LT_EOF >> "$cfgfile"
17230#! $SHELL
17231
17232# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17233# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17234# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17235# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17236#
Rainer Orth0b6e3122019-02-14 17:47:49 +000017237# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17238# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Iain Buclawb4c522f2018-10-28 19:51:47 +000017239# Written by Gordon Matzigkeit, 1996
17240#
17241# This file is part of GNU Libtool.
17242#
17243# GNU Libtool is free software; you can redistribute it and/or
17244# modify it under the terms of the GNU General Public License as
17245# published by the Free Software Foundation; either version 2 of
17246# the License, or (at your option) any later version.
17247#
17248# As a special exception to the GNU General Public License,
17249# if you distribute this file as part of a program or library that
17250# is built using GNU Libtool, you may include this file under the
17251# same distribution terms that you use for the rest of that program.
17252#
17253# GNU Libtool is distributed in the hope that it will be useful,
17254# but WITHOUT ANY WARRANTY; without even the implied warranty of
17255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17256# GNU General Public License for more details.
17257#
17258# You should have received a copy of the GNU General Public License
17259# along with GNU Libtool; see the file COPYING. If not, a copy
17260# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17261# obtained by writing to the Free Software Foundation, Inc.,
17262# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17263
17264
17265# The names of the tagged configurations supported by this script.
17266available_tags="D "
17267
17268# ### BEGIN LIBTOOL CONFIG
17269
17270# Which release of libtool.m4 was used?
17271macro_version=$macro_version
17272macro_revision=$macro_revision
17273
17274# Whether or not to build shared libraries.
17275build_libtool_libs=$enable_shared
17276
17277# Whether or not to build static libraries.
17278build_old_libs=$enable_static
17279
17280# What type of objects to build.
17281pic_mode=$pic_mode
17282
17283# Whether or not to optimize for fast installation.
17284fast_install=$enable_fast_install
17285
17286# Shell to use when invoking shell scripts.
17287SHELL=$lt_SHELL
17288
17289# An echo program that protects backslashes.
17290ECHO=$lt_ECHO
17291
17292# The host system.
17293host_alias=$host_alias
17294host=$host
17295host_os=$host_os
17296
17297# The build system.
17298build_alias=$build_alias
17299build=$build
17300build_os=$build_os
17301
17302# A sed program that does not truncate output.
17303SED=$lt_SED
17304
17305# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17306Xsed="\$SED -e 1s/^X//"
17307
17308# A grep program that handles long lines.
17309GREP=$lt_GREP
17310
17311# An ERE matcher.
17312EGREP=$lt_EGREP
17313
17314# A literal string matcher.
17315FGREP=$lt_FGREP
17316
17317# A BSD- or MS-compatible name lister.
17318NM=$lt_NM
17319
17320# Whether we need soft or hard links.
17321LN_S=$lt_LN_S
17322
17323# What is the maximum length of a command?
17324max_cmd_len=$max_cmd_len
17325
17326# Object file suffix (normally "o").
17327objext=$ac_objext
17328
17329# Executable file suffix (normally "").
17330exeext=$exeext
17331
17332# whether the shell understands "unset".
17333lt_unset=$lt_unset
17334
17335# turn spaces into newlines.
17336SP2NL=$lt_lt_SP2NL
17337
17338# turn newlines into spaces.
17339NL2SP=$lt_lt_NL2SP
17340
17341# An object symbol dumper.
17342OBJDUMP=$lt_OBJDUMP
17343
17344# Method to check whether dependent libraries are shared objects.
17345deplibs_check_method=$lt_deplibs_check_method
17346
17347# Command to use when deplibs_check_method == "file_magic".
17348file_magic_cmd=$lt_file_magic_cmd
17349
17350# The archiver.
17351AR=$lt_AR
17352AR_FLAGS=$lt_AR_FLAGS
17353
17354# A symbol stripping program.
17355STRIP=$lt_STRIP
17356
17357# Commands used to install an old-style archive.
17358RANLIB=$lt_RANLIB
17359old_postinstall_cmds=$lt_old_postinstall_cmds
17360old_postuninstall_cmds=$lt_old_postuninstall_cmds
17361
17362# Whether to use a lock for old archive extraction.
17363lock_old_archive_extraction=$lock_old_archive_extraction
17364
17365# A C compiler.
17366LTCC=$lt_CC
17367
17368# LTCC compiler flags.
17369LTCFLAGS=$lt_CFLAGS
17370
17371# Take the output of nm and produce a listing of raw symbols and C names.
17372global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17373
17374# Transform the output of nm in a proper C declaration.
17375global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17376
17377# Transform the output of nm in a C name address pair.
17378global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17379
17380# Transform the output of nm in a C name address pair when lib prefix is needed.
17381global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17382
17383# The name of the directory that contains temporary libtool files.
17384objdir=$objdir
17385
17386# Used to examine libraries when file_magic_cmd begins with "file".
17387MAGIC_CMD=$MAGIC_CMD
17388
17389# Must we lock files when doing compilation?
17390need_locks=$lt_need_locks
17391
17392# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17393DSYMUTIL=$lt_DSYMUTIL
17394
17395# Tool to change global to local symbols on Mac OS X.
17396NMEDIT=$lt_NMEDIT
17397
17398# Tool to manipulate fat objects and archives on Mac OS X.
17399LIPO=$lt_LIPO
17400
17401# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17402OTOOL=$lt_OTOOL
17403
17404# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17405OTOOL64=$lt_OTOOL64
17406
17407# Old archive suffix (normally "a").
17408libext=$libext
17409
17410# Shared library suffix (normally ".so").
17411shrext_cmds=$lt_shrext_cmds
17412
17413# The commands to extract the exported symbol list from a shared archive.
17414extract_expsyms_cmds=$lt_extract_expsyms_cmds
17415
17416# Variables whose values should be saved in libtool wrapper scripts and
17417# restored at link time.
17418variables_saved_for_relink=$lt_variables_saved_for_relink
17419
17420# Do we need the "lib" prefix for modules?
17421need_lib_prefix=$need_lib_prefix
17422
17423# Do we need a version for libraries?
17424need_version=$need_version
17425
17426# Library versioning type.
17427version_type=$version_type
17428
17429# Shared library runtime path variable.
17430runpath_var=$runpath_var
17431
17432# Shared library path variable.
17433shlibpath_var=$shlibpath_var
17434
17435# Is shlibpath searched before the hard-coded library search path?
17436shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17437
17438# Format of library name prefix.
17439libname_spec=$lt_libname_spec
17440
17441# List of archive names. First name is the real one, the rest are links.
17442# The last name is the one that the linker finds with -lNAME
17443library_names_spec=$lt_library_names_spec
17444
17445# The coded name of the library, if different from the real name.
17446soname_spec=$lt_soname_spec
17447
17448# Permission mode override for installation of shared libraries.
17449install_override_mode=$lt_install_override_mode
17450
17451# Command to use after installation of a shared archive.
17452postinstall_cmds=$lt_postinstall_cmds
17453
17454# Command to use after uninstallation of a shared archive.
17455postuninstall_cmds=$lt_postuninstall_cmds
17456
17457# Commands used to finish a libtool library installation in a directory.
17458finish_cmds=$lt_finish_cmds
17459
17460# As "finish_cmds", except a single script fragment to be evaled but
17461# not shown.
17462finish_eval=$lt_finish_eval
17463
17464# Whether we should hardcode library paths into libraries.
17465hardcode_into_libs=$hardcode_into_libs
17466
17467# Compile-time system search path for libraries.
17468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17469
17470# Run-time system search path for libraries.
17471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17472
17473# Whether dlopen is supported.
17474dlopen_support=$enable_dlopen
17475
17476# Whether dlopen of programs is supported.
17477dlopen_self=$enable_dlopen_self
17478
17479# Whether dlopen of statically linked programs is supported.
17480dlopen_self_static=$enable_dlopen_self_static
17481
17482# Commands to strip libraries.
17483old_striplib=$lt_old_striplib
17484striplib=$lt_striplib
17485
17486
17487# The linker used to build libraries.
17488LD=$lt_LD
17489
17490# How to create reloadable object files.
17491reload_flag=$lt_reload_flag
17492reload_cmds=$lt_reload_cmds
17493
17494# Commands used to build an old-style archive.
17495old_archive_cmds=$lt_old_archive_cmds
17496
17497# A language specific compiler.
17498CC=$lt_compiler
17499
17500# Is the compiler the GNU compiler?
17501with_gcc=$GCC
17502
17503# Compiler flag to turn off builtin functions.
17504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17505
17506# How to pass a linker flag through the compiler.
17507wl=$lt_lt_prog_compiler_wl
17508
17509# Additional compiler flags for building library objects.
17510pic_flag=$lt_lt_prog_compiler_pic
17511
17512# Compiler flag to prevent dynamic linking.
17513link_static_flag=$lt_lt_prog_compiler_static
17514
17515# Does compiler simultaneously support -c and -o options?
17516compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17517
17518# Whether or not to add -lc for building shared libraries.
17519build_libtool_need_lc=$archive_cmds_need_lc
17520
17521# Whether or not to disallow shared libs when runtime libs are static.
17522allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17523
17524# Compiler flag to allow reflexive dlopens.
17525export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17526
17527# Compiler flag to generate shared objects directly from archives.
17528whole_archive_flag_spec=$lt_whole_archive_flag_spec
17529
17530# Whether the compiler copes with passing no objects directly.
17531compiler_needs_object=$lt_compiler_needs_object
17532
17533# Create an old-style archive from a shared archive.
17534old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17535
17536# Create a temporary old-style archive to link instead of a shared archive.
17537old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17538
17539# Commands used to build a shared archive.
17540archive_cmds=$lt_archive_cmds
17541archive_expsym_cmds=$lt_archive_expsym_cmds
17542
17543# Commands used to build a loadable module if different from building
17544# a shared archive.
17545module_cmds=$lt_module_cmds
17546module_expsym_cmds=$lt_module_expsym_cmds
17547
17548# Whether we are building with GNU ld or not.
17549with_gnu_ld=$lt_with_gnu_ld
17550
17551# Flag that allows shared libraries with undefined symbols to be built.
17552allow_undefined_flag=$lt_allow_undefined_flag
17553
17554# Flag that enforces no undefined symbols.
17555no_undefined_flag=$lt_no_undefined_flag
17556
17557# Flag to hardcode \$libdir into a binary during linking.
17558# This must work even if \$libdir does not exist
17559hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17560
17561# If ld is used when linking, flag to hardcode \$libdir into a binary
17562# during linking. This must work even if \$libdir does not exist.
17563hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17564
17565# Whether we need a single "-rpath" flag with a separated argument.
17566hardcode_libdir_separator=$lt_hardcode_libdir_separator
17567
17568# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17569# DIR into the resulting binary.
17570hardcode_direct=$hardcode_direct
17571
17572# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17573# DIR into the resulting binary and the resulting library dependency is
17574# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17575# library is relocated.
17576hardcode_direct_absolute=$hardcode_direct_absolute
17577
17578# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17579# into the resulting binary.
17580hardcode_minus_L=$hardcode_minus_L
17581
17582# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17583# into the resulting binary.
17584hardcode_shlibpath_var=$hardcode_shlibpath_var
17585
17586# Set to "yes" if building a shared library automatically hardcodes DIR
17587# into the library and all subsequent libraries and executables linked
17588# against it.
17589hardcode_automatic=$hardcode_automatic
17590
17591# Set to yes if linker adds runtime paths of dependent libraries
17592# to runtime path list.
17593inherit_rpath=$inherit_rpath
17594
17595# Whether libtool must link a program against all its dependency libraries.
17596link_all_deplibs=$link_all_deplibs
17597
17598# Fix the shell variable \$srcfile for the compiler.
17599fix_srcfile_path=$lt_fix_srcfile_path
17600
17601# Set to "yes" if exported symbols are required.
17602always_export_symbols=$always_export_symbols
17603
17604# The commands to list exported symbols.
17605export_symbols_cmds=$lt_export_symbols_cmds
17606
17607# Symbols that should not be listed in the preloaded symbols.
17608exclude_expsyms=$lt_exclude_expsyms
17609
17610# Symbols that must always be exported.
17611include_expsyms=$lt_include_expsyms
17612
17613# Commands necessary for linking programs (against libraries) with templates.
17614prelink_cmds=$lt_prelink_cmds
17615
17616# Specify filename containing input files.
17617file_list_spec=$lt_file_list_spec
17618
17619# How to hardcode a shared library path into an executable.
17620hardcode_action=$hardcode_action
17621
17622# ### END LIBTOOL CONFIG
17623
17624_LT_EOF
17625
17626 case $host_os in
17627 aix3*)
17628 cat <<\_LT_EOF >> "$cfgfile"
17629# AIX sometimes has problems with the GCC collect2 program. For some
17630# reason, if we set the COLLECT_NAMES environment variable, the problems
17631# vanish in a puff of smoke.
17632if test "X${COLLECT_NAMES+set}" != Xset; then
17633 COLLECT_NAMES=
17634 export COLLECT_NAMES
17635fi
17636_LT_EOF
17637 ;;
17638 esac
17639
17640
17641ltmain="$ac_aux_dir/ltmain.sh"
17642
17643
17644 # We use sed instead of cat because bash on DJGPP gets confused if
17645 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17646 # text mode, it properly converts lines to CR/LF. This bash problem
17647 # is reportedly fixed, but why not run on old versions too?
17648 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17649 || (rm -f "$cfgfile"; exit 1)
17650
17651 case $xsi_shell in
17652 yes)
17653 cat << \_LT_EOF >> "$cfgfile"
17654
17655# func_dirname file append nondir_replacement
17656# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17657# otherwise set result to NONDIR_REPLACEMENT.
17658func_dirname ()
17659{
17660 case ${1} in
17661 */*) func_dirname_result="${1%/*}${2}" ;;
17662 * ) func_dirname_result="${3}" ;;
17663 esac
17664}
17665
17666# func_basename file
17667func_basename ()
17668{
17669 func_basename_result="${1##*/}"
17670}
17671
17672# func_dirname_and_basename file append nondir_replacement
17673# perform func_basename and func_dirname in a single function
17674# call:
17675# dirname: Compute the dirname of FILE. If nonempty,
17676# add APPEND to the result, otherwise set result
17677# to NONDIR_REPLACEMENT.
17678# value returned in "$func_dirname_result"
17679# basename: Compute filename of FILE.
17680# value retuned in "$func_basename_result"
17681# Implementation must be kept synchronized with func_dirname
17682# and func_basename. For efficiency, we do not delegate to
17683# those functions but instead duplicate the functionality here.
17684func_dirname_and_basename ()
17685{
17686 case ${1} in
17687 */*) func_dirname_result="${1%/*}${2}" ;;
17688 * ) func_dirname_result="${3}" ;;
17689 esac
17690 func_basename_result="${1##*/}"
17691}
17692
17693# func_stripname prefix suffix name
17694# strip PREFIX and SUFFIX off of NAME.
17695# PREFIX and SUFFIX must not contain globbing or regex special
17696# characters, hashes, percent signs, but SUFFIX may contain a leading
17697# dot (in which case that matches only a dot).
17698func_stripname ()
17699{
17700 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17701 # positional parameters, so assign one to ordinary parameter first.
17702 func_stripname_result=${3}
17703 func_stripname_result=${func_stripname_result#"${1}"}
17704 func_stripname_result=${func_stripname_result%"${2}"}
17705}
17706
17707# func_opt_split
17708func_opt_split ()
17709{
17710 func_opt_split_opt=${1%%=*}
17711 func_opt_split_arg=${1#*=}
17712}
17713
17714# func_lo2o object
17715func_lo2o ()
17716{
17717 case ${1} in
17718 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17719 *) func_lo2o_result=${1} ;;
17720 esac
17721}
17722
17723# func_xform libobj-or-source
17724func_xform ()
17725{
17726 func_xform_result=${1%.*}.lo
17727}
17728
17729# func_arith arithmetic-term...
17730func_arith ()
17731{
17732 func_arith_result=$(( $* ))
17733}
17734
17735# func_len string
17736# STRING may not start with a hyphen.
17737func_len ()
17738{
17739 func_len_result=${#1}
17740}
17741
17742_LT_EOF
17743 ;;
17744 *) # Bourne compatible functions.
17745 cat << \_LT_EOF >> "$cfgfile"
17746
17747# func_dirname file append nondir_replacement
17748# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17749# otherwise set result to NONDIR_REPLACEMENT.
17750func_dirname ()
17751{
17752 # Extract subdirectory from the argument.
17753 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17754 if test "X$func_dirname_result" = "X${1}"; then
17755 func_dirname_result="${3}"
17756 else
17757 func_dirname_result="$func_dirname_result${2}"
17758 fi
17759}
17760
17761# func_basename file
17762func_basename ()
17763{
17764 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17765}
17766
17767
17768# func_stripname prefix suffix name
17769# strip PREFIX and SUFFIX off of NAME.
17770# PREFIX and SUFFIX must not contain globbing or regex special
17771# characters, hashes, percent signs, but SUFFIX may contain a leading
17772# dot (in which case that matches only a dot).
17773# func_strip_suffix prefix name
17774func_stripname ()
17775{
17776 case ${2} in
17777 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17778 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17779 esac
17780}
17781
17782# sed scripts:
17783my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17784my_sed_long_arg='1s/^-[^=]*=//'
17785
17786# func_opt_split
17787func_opt_split ()
17788{
17789 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17790 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17791}
17792
17793# func_lo2o object
17794func_lo2o ()
17795{
17796 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17797}
17798
17799# func_xform libobj-or-source
17800func_xform ()
17801{
17802 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17803}
17804
17805# func_arith arithmetic-term...
17806func_arith ()
17807{
17808 func_arith_result=`expr "$@"`
17809}
17810
17811# func_len string
17812# STRING may not start with a hyphen.
17813func_len ()
17814{
17815 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17816}
17817
17818_LT_EOF
17819esac
17820
17821case $lt_shell_append in
17822 yes)
17823 cat << \_LT_EOF >> "$cfgfile"
17824
17825# func_append var value
17826# Append VALUE to the end of shell variable VAR.
17827func_append ()
17828{
17829 eval "$1+=\$2"
17830}
17831_LT_EOF
17832 ;;
17833 *)
17834 cat << \_LT_EOF >> "$cfgfile"
17835
17836# func_append var value
17837# Append VALUE to the end of shell variable VAR.
17838func_append ()
17839{
17840 eval "$1=\$$1\$2"
17841}
17842
17843_LT_EOF
17844 ;;
17845 esac
17846
17847
17848 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17849 || (rm -f "$cfgfile"; exit 1)
17850
17851 mv -f "$cfgfile" "$ofile" ||
17852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17853 chmod +x "$ofile"
17854
17855
17856 cat <<_LT_EOF >> "$ofile"
17857
17858# ### BEGIN LIBTOOL TAG CONFIG: D
17859
17860# The linker used to build libraries.
17861LD=$lt_LD_D
17862
17863# How to create reloadable object files.
17864reload_flag=$lt_reload_flag_D
17865reload_cmds=$lt_reload_cmds_D
17866
17867# Commands used to build an old-style archive.
17868old_archive_cmds=$lt_old_archive_cmds_D
17869
17870# A language specific compiler.
17871CC=$lt_compiler_D
17872
17873# Is the compiler the GNU compiler?
17874with_gcc=$GCC_D
17875
17876# Compiler flag to turn off builtin functions.
17877no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17878
17879# How to pass a linker flag through the compiler.
17880wl=$lt_lt_prog_compiler_wl_D
17881
17882# Additional compiler flags for building library objects.
17883pic_flag=$lt_lt_prog_compiler_pic_D
17884
17885# Compiler flag to prevent dynamic linking.
17886link_static_flag=$lt_lt_prog_compiler_static_D
17887
17888# Does compiler simultaneously support -c and -o options?
17889compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17890
17891# Whether or not to add -lc for building shared libraries.
17892build_libtool_need_lc=$archive_cmds_need_lc_D
17893
17894# Whether or not to disallow shared libs when runtime libs are static.
17895allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17896
17897# Compiler flag to allow reflexive dlopens.
17898export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17899
17900# Compiler flag to generate shared objects directly from archives.
17901whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17902
17903# Whether the compiler copes with passing no objects directly.
17904compiler_needs_object=$lt_compiler_needs_object_D
17905
17906# Create an old-style archive from a shared archive.
17907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17908
17909# Create a temporary old-style archive to link instead of a shared archive.
17910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17911
17912# Commands used to build a shared archive.
17913archive_cmds=$lt_archive_cmds_D
17914archive_expsym_cmds=$lt_archive_expsym_cmds_D
17915
17916# Commands used to build a loadable module if different from building
17917# a shared archive.
17918module_cmds=$lt_module_cmds_D
17919module_expsym_cmds=$lt_module_expsym_cmds_D
17920
17921# Whether we are building with GNU ld or not.
17922with_gnu_ld=$lt_with_gnu_ld_D
17923
17924# Flag that allows shared libraries with undefined symbols to be built.
17925allow_undefined_flag=$lt_allow_undefined_flag_D
17926
17927# Flag that enforces no undefined symbols.
17928no_undefined_flag=$lt_no_undefined_flag_D
17929
17930# Flag to hardcode \$libdir into a binary during linking.
17931# This must work even if \$libdir does not exist
17932hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17933
17934# If ld is used when linking, flag to hardcode \$libdir into a binary
17935# during linking. This must work even if \$libdir does not exist.
17936hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17937
17938# Whether we need a single "-rpath" flag with a separated argument.
17939hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17940
17941# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17942# DIR into the resulting binary.
17943hardcode_direct=$hardcode_direct_D
17944
17945# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17946# DIR into the resulting binary and the resulting library dependency is
17947# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17948# library is relocated.
17949hardcode_direct_absolute=$hardcode_direct_absolute_D
17950
17951# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17952# into the resulting binary.
17953hardcode_minus_L=$hardcode_minus_L_D
17954
17955# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17956# into the resulting binary.
17957hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17958
17959# Set to "yes" if building a shared library automatically hardcodes DIR
17960# into the library and all subsequent libraries and executables linked
17961# against it.
17962hardcode_automatic=$hardcode_automatic_D
17963
17964# Set to yes if linker adds runtime paths of dependent libraries
17965# to runtime path list.
17966inherit_rpath=$inherit_rpath_D
17967
17968# Whether libtool must link a program against all its dependency libraries.
17969link_all_deplibs=$link_all_deplibs_D
17970
17971# Fix the shell variable \$srcfile for the compiler.
17972fix_srcfile_path=$lt_fix_srcfile_path_D
17973
17974# Set to "yes" if exported symbols are required.
17975always_export_symbols=$always_export_symbols_D
17976
17977# The commands to list exported symbols.
17978export_symbols_cmds=$lt_export_symbols_cmds_D
17979
17980# Symbols that should not be listed in the preloaded symbols.
17981exclude_expsyms=$lt_exclude_expsyms_D
17982
17983# Symbols that must always be exported.
17984include_expsyms=$lt_include_expsyms_D
17985
17986# Commands necessary for linking programs (against libraries) with templates.
17987prelink_cmds=$lt_prelink_cmds_D
17988
17989# Specify filename containing input files.
17990file_list_spec=$lt_file_list_spec_D
17991
17992# How to hardcode a shared library path into an executable.
17993hardcode_action=$hardcode_action_D
17994
17995# ### END LIBTOOL TAG CONFIG: D
17996_LT_EOF
17997
17998 ;;
17999 "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
Iain Buclawac677522018-11-02 08:29:50 +000018000 "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18001s!`test -f '$<' || echo '$(srcdir)/'`!!
Iain Buclawb4c522f2018-10-28 19:51:47 +000018002_EOF
Iain Buclawac677522018-11-02 08:29:50 +000018003 sed -f vpsed$$ $ac_file > tmp$$
18004 mv tmp$$ $ac_file
18005 rm vpsed$$
18006 echo 'MULTISUBDIR =' >> $ac_file
18007 ml_norecursion=yes
18008 . ${multi_basedir}/config-ml.in
18009 { ml_norecursion=; unset ml_norecursion;}
18010 ;;
18011 "src/Makefile":F) cat > vpsed$$ << \_EOF
18012s!`test -f '$<' || echo '$(srcdir)/'`!!
18013_EOF
18014 sed -f vpsed$$ $ac_file > tmp$$
18015 mv tmp$$ $ac_file
18016 rm vpsed$$
18017 echo 'MULTISUBDIR =' >> $ac_file
18018 ml_norecursion=yes
18019 . ${multi_basedir}/config-ml.in
18020 { ml_norecursion=; unset ml_norecursion;}
18021 ;;
18022 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18023s!`test -f '$<' || echo '$(srcdir)/'`!!
18024_EOF
18025 sed -f vpsed$$ $ac_file > tmp$$
18026 mv tmp$$ $ac_file
18027 rm vpsed$$
18028 echo 'MULTISUBDIR =' >> $ac_file
18029 ml_norecursion=yes
18030 . ${multi_basedir}/config-ml.in
18031 { ml_norecursion=; unset ml_norecursion;}
Iain Buclawb4c522f2018-10-28 19:51:47 +000018032 ;;
18033
18034 esac
18035done # for ac_tag
18036
18037
18038as_fn_exit 0
18039_ACEOF
18040ac_clean_files=$ac_clean_files_save
18041
18042test $ac_write_fail = 0 ||
Joseph Myers22e05272018-10-31 17:03:16 +000018043 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Iain Buclawb4c522f2018-10-28 19:51:47 +000018044
18045
18046# configure is writing to config.log, and then calls config.status.
18047# config.status does its own redirection, appending to config.log.
18048# Unfortunately, on DOS this fails, as config.log is still kept open
18049# by configure, so config.status won't be able to write to it; its
18050# output is simply discarded. So we exec the FD to /dev/null,
18051# effectively closing config.log, so it can be properly (re)opened and
18052# appended to by config.status. When coming back to configure, we
18053# need to make the FD available again.
18054if test "$no_create" != yes; then
18055 ac_cs_success=:
18056 ac_config_status_args=
18057 test "$silent" = yes &&
18058 ac_config_status_args="$ac_config_status_args --quiet"
18059 exec 5>/dev/null
18060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18061 exec 5>>config.log
18062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18063 # would make configure fail if this is the last instruction.
Joseph Myers22e05272018-10-31 17:03:16 +000018064 $ac_cs_success || as_fn_exit 1
Iain Buclawb4c522f2018-10-28 19:51:47 +000018065fi
18066if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18068$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18069fi
18070