blob: 82ec4472f2b40c85a5e958a3b37b05f43404e717 [file] [log] [blame]
Jon Dugane34c20c2010-07-08 23:26:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -07003# Generated by GNU Autoconf 2.69 for iperf 3.8.1.
Jon Dugane34c20c2010-07-08 23:26:52 +00004#
Bruce A. Mah10383812014-02-27 22:40:01 -08005# Report bugs to <https://github.com/esnet/iperf>.
Jon Dugane34c20c2010-07-08 23:26:52 +00006#
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Jon Dugane34c20c2010-07-08 23:26:52 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000020 emulate sh
21 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000032esac
33fi
34
35
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070060 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080073
Jon Dugane34c20c2010-07-08 23:26:52 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080081fi
82
Jon Dugane34c20c2010-07-08 23:26:52 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070092as_myself=
93case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Jon Dugane34c20c2010-07-08 23:26:52 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700113 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +0000114fi
115
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +0000133
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/esnet/iperf about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Jon Dugane34c20c2010-07-08 23:26:52 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800453$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +0000454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +0000474
475
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Jon Dugane34c20c2010-07-08 23:26:52 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +0000498
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Jon Dugane34c20c2010-07-08 23:26:52 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700512case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +0000513-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700514 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800523
Jon Dugane34c20c2010-07-08 23:26:52 +0000524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800529 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +0000530fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700537 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700539 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700543 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800544 fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000545else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700546 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700552 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
jef56a97f92012-08-20 14:35:58 -0700569
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +0000572
573# Name of the host.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Jon Dugane34c20c2010-07-08 23:26:52 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='iperf'
592PACKAGE_TARNAME='iperf'
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -0700593PACKAGE_VERSION='3.8.1'
594PACKAGE_STRING='iperf 3.8.1'
Bruce A. Mah10383812014-02-27 22:40:01 -0800595PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
Bruce A. Mah6e9d8522018-06-22 14:10:41 -0700596PACKAGE_URL='https://software.es.net/iperf/'
Jon Dugane34c20c2010-07-08 23:26:52 +0000597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800637LIBOBJS
ralcinia51045d2017-04-20 19:01:08 +0200638OPENSSL_LDFLAGS
639OPENSSL_LIBS
640OPENSSL_INCLUDES
641PKG_CONFIG
Bruce A. Mahd4dfec72018-06-29 16:25:06 -0700642ENABLE_PROFILING_FALSE
643ENABLE_PROFILING_TRUE
Bruce A. Mah06280a62020-05-04 15:11:05 -0700644MAINT
645MAINTAINER_MODE_FALSE
646MAINTAINER_MODE_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800647CPP
Bruce A. Mah54615792015-05-11 10:42:44 -0700648LT_SYS_LIBRARY_PATH
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700654MANIFEST_TOOL
Bruce A. Mah06280a62020-05-04 15:11:05 -0700655RANLIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700656ac_ct_AR
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800657AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700658DLLTOOL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800659OBJDUMP
Bruce A. Mah06280a62020-05-04 15:11:05 -0700660LN_S
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700672am__nodep
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
Bruce A. Mah06280a62020-05-04 15:11:05 -0700693LIBTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
Bruce A. Mah06280a62020-05-04 15:11:05 -0700721ENABLE_STATIC_BIN_FALSE
722ENABLE_STATIC_BIN_TRUE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700753PACKAGE_URL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -0800760SHELL
761am__quote'
Jon Dugane34c20c2010-07-08 23:26:52 +0000762ac_subst_files=''
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800763ac_user_opts='
764enable_option_checking
Bruce A. Mah06280a62020-05-04 15:11:05 -0700765enable_static_bin
Bruce A. Mah06280a62020-05-04 15:11:05 -0700766enable_silent_rules
Bruce A. Mah51a4c632020-06-10 07:34:14 -0700767enable_shared
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800768enable_static
769with_pic
770enable_fast_install
Bruce A. Mah4874c4a2015-01-05 15:23:07 -0800771with_aix_soname
Bruce A. Mah06280a62020-05-04 15:11:05 -0700772enable_dependency_tracking
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800773with_gnu_ld
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700774with_sysroot
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800775enable_libtool_lock
Bruce A. Mah06280a62020-05-04 15:11:05 -0700776enable_maintainer_mode
Bruce A. Mahd4dfec72018-06-29 16:25:06 -0700777enable_profiling
Bruce A. Mahf72054e2020-05-28 10:10:21 -0700778with_sctp
ralcinia51045d2017-04-20 19:01:08 +0200779with_openssl
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800780'
Jon Dugane34c20c2010-07-08 23:26:52 +0000781 ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
Bruce A. Mah54615792015-05-11 10:42:44 -0700789LT_SYS_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800790CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800796ac_unrecognized_opts=
797ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000898 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700900 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +0000924 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -0700926 as_fn_error $? "invalid feature name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 ac_prev=sbindir ;;
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 | --sbi=* | --sb=*)
1085 sbindir=$ac_optarg ;;
1086
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1090 | --sha | --sh)
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 | --sha=* | --sh=*)
1096 sharedstatedir=$ac_optarg ;;
1097
1098 -site | --site | --sit)
1099 ac_prev=site ;;
1100 -site=* | --site=* | --sit=*)
1101 site=$ac_optarg ;;
1102
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 ac_prev=srcdir ;;
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1107
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1114
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1119
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121 verbose=yes ;;
1122
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1125
1126 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001128 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001130 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135"with_$ac_useropt"
1136"*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001141
1142 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001144 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001146 as_fn_error $? "invalid package name: $ac_useropt"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151"with_$ac_useropt"
1152"*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
Jon Dugane34c20c2010-07-08 23:26:52 +00001178 ;;
1179
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00001187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Jon Dugane34c20c2010-07-08 23:26:52 +00001196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001203 as_fn_error $? "missing argument to $ac_option"
Jon Dugane34c20c2010-07-08 23:26:52 +00001204fi
1205
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001206if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1208 no) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 esac
1212fi
1213
1214# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Bruce A. Mah99fa7cb2019-05-17 12:50:01 -07001218 libdir localedir mandir
Jon Dugane34c20c2010-07-08 23:26:52 +00001219do
1220 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001221 # Remove trailing slashes.
1222 case $ac_val in
1223 */ )
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1226 esac
1227 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001228 case $ac_val in
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Jon Dugane34c20c2010-07-08 23:26:52 +00001233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
Jon Dugane34c20c2010-07-08 23:26:52 +00001246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1248 fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001260 as_fn_error $? "working directory cannot be determined"
Jon Dugane34c20c2010-07-08 23:26:52 +00001261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001262 as_fn_error $? "pwd does not report name of working directory"
Jon Dugane34c20c2010-07-08 23:26:52 +00001263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Jon Dugane34c20c2010-07-08 23:26:52 +00001302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Jon Dugane34c20c2010-07-08 23:26:52 +00001306 pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -07001331\`configure' configures iperf 3.8.1 to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE. See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001345 -q, --quiet, --silent do not print \`checking ...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001353 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001355 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001384_ACEOF
1385
1386 cat <<\_ACEOF
1387
1388Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
1393System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400 case $ac_init_help in
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -07001401 short | recursive ) echo "Configuration of iperf 3.8.1:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001402 esac
1403 cat <<\_ACEOF
1404
1405Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001406 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mahf72054e2020-05-28 10:10:21 -07001409 --enable-static-bin link iperf3 binary statically
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
Bruce A. Mah51a4c632020-06-10 07:34:14 -07001412 --enable-shared[=PKGS] build shared libraries [default=yes]
Bruce A. Mah06280a62020-05-04 15:11:05 -07001413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
Jon Dugane34c20c2010-07-08 23:26:52 +00001420 --disable-libtool-lock avoid locking (might break parallel builds)
Bruce A. Mah06280a62020-05-04 15:11:05 -07001421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful (and
1423 sometimes confusing) to the casual installer
Bruce A. Mahf72054e2020-05-28 10:10:21 -07001424 --enable-profiling Enable iperf3 profiling binary
Jon Dugane34c20c2010-07-08 23:26:52 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001429 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001430 both]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001431 --with-aix-soname=aix|svr4|both
1432 shared library versioning (aka "SONAME") variant to
1433 provide on AIX, [default=aix].
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08001435 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1436 compiler's sysroot if not specified).
Bruce A. Mahf72054e2020-05-28 10:10:21 -07001437 --without-sctp disable SCTP
ralcinia51045d2017-04-20 19:01:08 +02001438 --with-openssl=DIR root of the OpenSSL directory
Jon Dugane34c20c2010-07-08 23:26:52 +00001439
1440Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001447 you have headers in a nonstandard directory <include dir>
Bruce A. Mah54615792015-05-11 10:42:44 -07001448 LT_SYS_LIBRARY_PATH
1449 User-defined run-time library search path.
Jon Dugane34c20c2010-07-08 23:26:52 +00001450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
Bruce A. Mah10383812014-02-27 22:40:01 -08001455Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6e9d8522018-06-22 14:10:41 -07001456iperf home page: <https://software.es.net/iperf/>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001467 ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001473 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518 cat <<\_ACEOF
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -07001519iperf configure 3.8.1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001520generated by GNU Autoconf 2.69
Jon Dugane34c20c2010-07-08 23:26:52 +00001521
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001522Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526 exit
1527fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 test -x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h. */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636else
1637 eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781else
1782 eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812 # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822else
1823 ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838else
1839 ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.i conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So? What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864( $as_echo "## --------------------------------------------- ##
1865## Report this to https://github.com/esnet/iperf ##
1866## --------------------------------------------- ##"
1867 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 ;;
1869esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874else
1875 eval "$3=\$ac_header_compiler"
1876fi
1877eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_mongrel
Jon Dugane34c20c2010-07-08 23:26:52 +00001884cat >config.log <<_ACEOF
1885This file contains any messages produced by compilers while
1886running configure, to aid debugging if configure makes a mistake.
1887
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -07001888It was created by iperf $as_me 3.8.1, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001889generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001890
1891 $ $0 $@
1892
1893_ACEOF
1894exec 5>>config.log
1895{
1896cat <<_ASUNAME
1897## --------- ##
1898## Platform. ##
1899## --------- ##
1900
1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909
1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
1918_ASUNAME
1919
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001925 $as_echo "PATH: $as_dir"
1926 done
Jon Dugane34c20c2010-07-08 23:26:52 +00001927IFS=$as_save_IFS
1928
1929} >&5
1930
1931cat >&5 <<_ACEOF
1932
1933
1934## ----------- ##
1935## Core tests. ##
1936## ----------- ##
1937
1938_ACEOF
1939
1940
1941# Keep a trace of the command line.
1942# Strip out --no-create and --no-recursion so they do not pile up.
1943# Strip out --silent because we don't want to record it for future runs.
1944# Also quote any args containing shell meta-characters.
1945# Make two passes to allow for proper duplicate-argument suppression.
1946ac_configure_args=
1947ac_configure_args0=
1948ac_configure_args1=
1949ac_must_keep_next=false
1950for ac_pass in 1 2
1951do
1952 for ac_arg
1953 do
1954 case $ac_arg in
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1958 continue ;;
1959 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001961 esac
1962 case $ac_pass in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001964 2)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001965 as_fn_append ac_configure_args1 " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1968 else
1969 case $ac_arg in
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 esac
1977 ;;
1978 -* ) ac_must_keep_next=true ;;
1979 esac
1980 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001981 as_fn_append ac_configure_args " '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001982 ;;
1983 esac
1984 done
1985done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001986{ ac_configure_args0=; unset ac_configure_args0;}
1987{ ac_configure_args1=; unset ac_configure_args1;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001988
1989# When interrupted or exit'd, cleanup temporary files, and complete
1990# config.log. We remove comments because anyway the quotes in there
1991# would cause problems or look ugly.
1992# WARNING: Use '\'' to represent an apostrophe within the trap.
1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1996 {
1997 echo
1998
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07001999 $as_echo "## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002000## Cache variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002001## ---------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2004(
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002016 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2027 *)
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 ;;
2030 esac |
2031 sort
2032)
2033 echo
2034
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002035 $as_echo "## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002036## Output variables. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002037## ----------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002038 echo
2039 for ac_var in $ac_subst_vars
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002044 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002045 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002046 done | sort
2047 echo
2048
2049 if test -n "$ac_subst_files"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002050 $as_echo "## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002051## File substitutions. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002052## ------------------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002053 echo
2054 for ac_var in $ac_subst_files
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002059 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002060 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00002061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002066 $as_echo "## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002067## confdefs.h. ##
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002068## ----------- ##"
Jon Dugane34c20c2010-07-08 23:26:52 +00002069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00002076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080' 0
2081for ac_signal in 1 2 13 15; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00002083done
2084ac_signal=0
2085
2086# confdefs.h avoids OS command line length limits that DEFS can exceed.
2087rm -f -r conftest* confdefs.h
2088
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002089$as_echo "/* confdefs.h */" > confdefs.h
2090
Jon Dugane34c20c2010-07-08 23:26:52 +00002091# Predefined preprocessor variables.
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_NAME "$PACKAGE_NAME"
2095_ACEOF
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099_ACEOF
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_VERSION "$PACKAGE_VERSION"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_STRING "$PACKAGE_STRING"
2107_ACEOF
2108
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002109cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08002111_ACEOF
2112
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_URL "$PACKAGE_URL"
2115_ACEOF
2116
Jon Dugane34c20c2010-07-08 23:26:52 +00002117
2118# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002119# Prefer an explicitly selected file to automatically selected ones.
2120ac_site_file1=NONE
2121ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00002122if test -n "$CONFIG_SITE"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00002129elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002132else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00002135fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00002137do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002138 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002142 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002143 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146as_fn_error $? "failed to load site script $ac_site_file
2147See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002148 fi
2149done
2150
2151if test -r "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002156$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002157 case $cache_file in
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2160 esac
2161 fi
2162else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002164$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002165 >$cache_file
2166fi
2167
2168# Check that the precious variables saved in the cache have kept the same
2169# value.
2170ac_cache_corrupted=false
2171for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2177 set,)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002180 ac_cache_corrupted=: ;;
2181 ,set)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002184 ac_cache_corrupted=: ;;
2185 ,);;
2186 *)
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2195 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2199 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002204 fi;;
2205 esac
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2208 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002210 *) ac_arg=$ac_var=$ac_new_val ;;
2211 esac
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00002215 esac
2216 fi
2217done
2218if $ac_cache_corrupted; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002224fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002225## -------------------- ##
2226## Main body of script. ##
2227## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00002228
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
ralcinia51045d2017-04-20 19:01:08 +02002236# ===========================================================================
2237# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2238# ===========================================================================
2239#
2240# SYNOPSIS
2241#
2242# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2243#
2244# DESCRIPTION
2245#
2246# Look for OpenSSL in a number of default spots, or in a user-selected
2247# spot (via --with-openssl). Sets
2248#
2249# OPENSSL_INCLUDES to the include directives required
2250# OPENSSL_LIBS to the -l directives required
2251# OPENSSL_LDFLAGS to the -L or -R flags required
2252#
2253# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2254#
2255# This macro sets OPENSSL_INCLUDES such that source files should use the
2256# openssl/ directory in include directives:
2257#
2258# #include <openssl/hmac.h>
2259#
2260# LICENSE
2261#
2262# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2263# Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2264#
2265# Copying and distribution of this file, with or without modification, are
2266# permitted in any medium without royalty provided the copyright notice
2267# and this notice are preserved. This file is offered as-is, without any
2268# warranty.
2269
2270#serial 10
2271
2272# This is what autoupdate's m4 run will expand. It fires
2273# the warning (with _au_warn_XXX), outputs it into the
2274# updated configure.ac (with AC_DIAGNOSE), and then outputs
2275# the replacement expansion.
2276
2277
2278# This is an auxiliary macro that is also run when
2279# autoupdate runs m4. It simply calls m4_warning, but
2280# we need a wrapper so that each warning is emitted only
2281# once. We break the quoting in m4_warning's argument in
2282# order to expand this macro's arguments, not AU_DEFUN's.
2283
2284
2285# Finally, this is the expansion that is picked up by
2286# autoconf. It tells the user to run autoupdate, and
2287# then outputs the replacement expansion. We do not care
2288# about autoupdate's warning because that contains
2289# information on what to do *after* running autoupdate.
2290
2291
2292
Bruce A. Mah06280a62020-05-04 15:11:05 -07002293# Also link binaries as static
2294# Check whether --enable-static-bin was given.
2295if test "${enable_static_bin+set}" = set; then :
Bruce A. Mah51a4c632020-06-10 07:34:14 -07002296 enableval=$enable_static_bin; enable_static=yes
2297 enable_shared=no
2298 enable_static_bin=yes
Bruce A. Mah06280a62020-05-04 15:11:05 -07002299else
2300 :
2301fi
2302
2303 if test x$enable_static_bin = xno; then
2304 ENABLE_STATIC_BIN_TRUE=
2305 ENABLE_STATIC_BIN_FALSE='#'
2306else
2307 ENABLE_STATIC_BIN_TRUE='#'
2308 ENABLE_STATIC_BIN_FALSE=
2309fi
2310
2311
2312if test "x$enable_static_bin" == xyes; then :
2313 LDFLAGS="$LDFLAGS --static"
2314
2315fi
2316
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -08002317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
Jon Dugane34c20c2010-07-08 23:26:52 +00002323
2324# Specify where the auxiliary files created by configure should go. The config
2325# directory is picked so that they don't clutter up more useful directories.
2326ac_aux_dir=
2327for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002328 if test -f "$ac_dir/install-sh"; then
2329 ac_aux_dir=$ac_dir
2330 ac_install_sh="$ac_aux_dir/install-sh -c"
2331 break
2332 elif test -f "$ac_dir/install.sh"; then
2333 ac_aux_dir=$ac_dir
2334 ac_install_sh="$ac_aux_dir/install.sh -c"
2335 break
2336 elif test -f "$ac_dir/shtool"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/shtool install -c"
2339 break
2340 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002341done
2342if test -z "$ac_aux_dir"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002343 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002344fi
2345
2346# These three variables are undocumented and unsupported,
2347# and are intended to be withdrawn in a future Autoconf release.
2348# They can cause serious problems if a builder's source tree is in a directory
2349# whose full name contains unusual characters.
2350ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2351ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2352ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353
2354
2355
2356
2357# Initialize the automake system
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002358am__api_version='1.16'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002359
Jon Dugane34c20c2010-07-08 23:26:52 +00002360# Find a good install program. We prefer a C program (faster),
2361# so one script is as good as another. But avoid the broken or
2362# incompatible versions:
2363# SysV /etc/install, /usr/sbin/install
2364# SunOS /usr/etc/install
2365# IRIX /sbin/install
2366# AIX /bin/install
2367# AmigaOS /C/install, which installs bootblocks on floppy discs
2368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371# OS/2's system install, which has a completely different semantic
2372# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002373# Reject install programs that cannot install multiple files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002375$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002376if test -z "$INSTALL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002377if ${ac_cv_path_install+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002378 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002379else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002385 # Account for people who put trailing slashes in PATH elements.
2386case $as_dir/ in #((
2387 ./ | .// | /[cC]/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002389 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002390 /usr/ucb/* ) ;;
2391 *)
2392 # OSF1 and SCO ODT 3.0 have their own names for install.
2393 # Don't use installbsd from OSF since it installs stuff as root
2394 # by default.
2395 for ac_prog in ginstall scoinst install; do
2396 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002397 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002398 if test $ac_prog = install &&
2399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # AIX install. It has an incompatible calling convention.
2401 :
2402 elif test $ac_prog = install &&
2403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # program-specific install script used by HP pwplus--don't use.
2405 :
2406 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002407 rm -rf conftest.one conftest.two conftest.dir
2408 echo one > conftest.one
2409 echo two > conftest.two
2410 mkdir conftest.dir
2411 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412 test -s conftest.one && test -s conftest.two &&
2413 test -s conftest.dir/conftest.one &&
2414 test -s conftest.dir/conftest.two
2415 then
2416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417 break 3
2418 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002419 fi
2420 fi
2421 done
2422 done
2423 ;;
2424esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002425
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002426 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002427IFS=$as_save_IFS
2428
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002429rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002430
2431fi
2432 if test "${ac_cv_path_install+set}" = set; then
2433 INSTALL=$ac_cv_path_install
2434 else
2435 # As a last resort, use the slow shell script. Don't cache a
2436 # value for INSTALL within a source directory, because that will
2437 # break other packages using the cache if that directory is
2438 # removed, or if the value is a relative name.
2439 INSTALL=$ac_install_sh
2440 fi
2441fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002443$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002444
2445# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446# It thinks the first close brace ends the variable substitution.
2447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002454$as_echo_n "checking whether build environment is sane... " >&6; }
2455# Reject unsafe characters in $srcdir or the absolute working directory
2456# name. Accept space and tab only in the latter.
2457am_lf='
2458'
2459case `pwd` in
2460 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002461 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002462esac
2463case $srcdir in
2464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002465 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002466esac
2467
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002468# Do 'set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002469# arguments. Must try -L first in case configure is actually a
2470# symlink; some systems play weird games with the mod time of symlinks
2471# (eg FreeBSD returns the mod time of the symlink's containing
2472# directory).
2473if (
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002474 am_has_slept=no
2475 for am_try in 1 2; do
2476 echo "timestamp, slept: $am_has_slept" > conftest.file
2477 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478 if test "$*" = "X"; then
2479 # -L didn't work.
2480 set X `ls -t "$srcdir/configure" conftest.file`
2481 fi
2482 if test "$*" != "X $srcdir/configure conftest.file" \
2483 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002484
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002485 # If neither matched, then we have a broken ls. This can happen
2486 # if, for instance, CONFIG_SHELL is bash and it inherits a
2487 # broken ls alias from the environment. This has actually
2488 # happened. Such a system could not be considered "sane".
2489 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2490 alias in your environment" "$LINENO" 5
2491 fi
2492 if test "$2" = conftest.file || test $am_try -eq 2; then
2493 break
2494 fi
2495 # Just in case.
2496 sleep 1
2497 am_has_slept=yes
2498 done
Jon Dugane34c20c2010-07-08 23:26:52 +00002499 test "$2" = conftest.file
2500 )
2501then
2502 # Ok.
2503 :
2504else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002505 as_fn_error $? "newly created file is older than distributed files!
2506Check your system clock" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00002507fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002509$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002510# If we didn't sleep, we still need to ensure time stamps of config.status and
2511# generated files are strictly newer.
2512am_sleep_pid=
2513if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2514 ( sleep 1 ) &
2515 am_sleep_pid=$!
2516fi
2517
2518rm -f conftest.file
2519
Jon Dugane34c20c2010-07-08 23:26:52 +00002520test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002525# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002526# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002529
Bruce A. Mah54615792015-05-11 10:42:44 -07002530# Expand $ac_aux_dir to an absolute path.
2531am_aux_dir=`cd "$ac_aux_dir" && pwd`
Jon Dugane34c20c2010-07-08 23:26:52 +00002532
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002533if test x"${MISSING+set}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537 *)
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539 esac
2540fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002541# Use eval to expand $SHELL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002542if eval "$MISSING --is-lightweight"; then
2543 am_missing_run="$MISSING "
Jon Dugane34c20c2010-07-08 23:26:52 +00002544else
2545 am_missing_run=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2547$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002548fi
2549
Bruce A. Mah54615792015-05-11 10:42:44 -07002550if test x"${install_sh+set}" != xset; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554 *)
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2556 esac
2557fi
2558
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002559# Installed binaries are usually stripped using 'strip' when the user
2560# run "make install-strip". However 'strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002561# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002562# will honor the 'STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002563if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002568$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002569if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002570 $as_echo_n "(cached) " >&6
2571else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002584 break 2
2585 fi
2586done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002587 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002588IFS=$as_save_IFS
2589
2590fi
2591fi
2592STRIP=$ac_cv_prog_STRIP
2593if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002595$as_echo "$STRIP" >&6; }
2596else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002598$as_echo "no" >&6; }
2599fi
2600
2601
2602fi
2603if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002608$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002609if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002610 $as_echo_n "(cached) " >&6
2611else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002622 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002624 break 2
2625 fi
2626done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002627 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002635$as_echo "$ac_ct_STRIP" >&6; }
2636else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002638$as_echo "no" >&6; }
2639fi
2640
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650 STRIP=$ac_ct_STRIP
2651 fi
2652else
2653 STRIP="$ac_cv_prog_STRIP"
2654fi
2655
2656fi
2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002660$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002661if test -z "$MKDIR_P"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002662 if ${ac_cv_path_mkdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002663 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002664else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002670 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002671 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002672 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 break 3;;
2679 esac
2680 done
2681 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002682 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002683IFS=$as_save_IFS
2684
2685fi
2686
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002687 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002688 if test "${ac_cv_path_mkdir+set}" = set; then
2689 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002690 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for MKDIR_P within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002695 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002696 fi
Jon Dugan92864152010-09-20 21:50:12 +00002697fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002699$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002700
jef56a97f92012-08-20 14:35:58 -07002701for ac_prog in gawk mawk nawk awk
2702do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002706$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002707if ${ac_cv_prog_AWK+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002708 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002709else
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
jef56a97f92012-08-20 14:35:58 -07002720 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002722 break 2
2723 fi
2724done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002725 done
jef56a97f92012-08-20 14:35:58 -07002726IFS=$as_save_IFS
2727
2728fi
2729fi
2730AWK=$ac_cv_prog_AWK
2731if test -n "$AWK"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002733$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002734else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002736$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002737fi
2738
2739
2740 test -n "$AWK" && break
2741done
2742
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002744$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2745set x ${MAKE-make}
2746ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002747if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002748 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002749else
2750 cat >conftest.make <<\_ACEOF
2751SHELL = /bin/sh
2752all:
2753 @echo '@@@%%%=$(MAKE)=@@@%%%'
2754_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002755# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002756case `${MAKE-make} -f conftest.make 2>/dev/null` in
2757 *@@@%%%=?*=@@@%%%*)
2758 eval ac_cv_prog_make_${ac_make}_set=yes;;
2759 *)
2760 eval ac_cv_prog_make_${ac_make}_set=no;;
2761esac
2762rm -f conftest.make
2763fi
2764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002766$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002767 SET_MAKE=
2768else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002770$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002771 SET_MAKE="MAKE=${MAKE-make}"
2772fi
2773
2774rm -rf .tst 2>/dev/null
2775mkdir .tst 2>/dev/null
2776if test -d .tst; then
2777 am__leading_dot=.
2778else
2779 am__leading_dot=_
2780fi
2781rmdir .tst 2>/dev/null
2782
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002783# Check whether --enable-silent-rules was given.
2784if test "${enable_silent_rules+set}" = set; then :
2785 enableval=$enable_silent_rules;
2786fi
2787
2788case $enable_silent_rules in # (((
2789 yes) AM_DEFAULT_VERBOSITY=0;;
2790 no) AM_DEFAULT_VERBOSITY=1;;
2791 *) AM_DEFAULT_VERBOSITY=1;;
2792esac
2793am_make=${MAKE-make}
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2795$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2796if ${am_cv_make_support_nested_variables+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798else
2799 if $as_echo 'TRUE=$(BAR$(V))
2800BAR0=false
2801BAR1=true
2802V=1
2803am__doit:
2804 @$(TRUE)
2805.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2806 am_cv_make_support_nested_variables=yes
2807else
2808 am_cv_make_support_nested_variables=no
2809fi
2810fi
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2812$as_echo "$am_cv_make_support_nested_variables" >&6; }
2813if test $am_cv_make_support_nested_variables = yes; then
2814 AM_V='$(V)'
2815 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2816else
2817 AM_V=$AM_DEFAULT_VERBOSITY
2818 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2819fi
2820AM_BACKSLASH='\'
2821
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002822if test "`cd $srcdir && pwd`" != "`pwd`"; then
2823 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2824 # is not polluted with repeated "-I."
2825 am__isrc=' -I$(srcdir)'
2826 # test to see if srcdir already configured
2827 if test -f $srcdir/config.status; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002828 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002829 fi
jef56a97f92012-08-20 14:35:58 -07002830fi
2831
2832# test whether we have cygpath
2833if test -z "$CYGPATH_W"; then
2834 if (cygpath --version) >/dev/null 2>/dev/null; then
2835 CYGPATH_W='cygpath -w'
2836 else
2837 CYGPATH_W=echo
2838 fi
2839fi
2840
2841
2842# Define the identity of the package.
2843 PACKAGE='iperf'
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -07002844 VERSION='3.8.1'
jef56a97f92012-08-20 14:35:58 -07002845
2846
2847cat >>confdefs.h <<_ACEOF
2848#define PACKAGE "$PACKAGE"
2849_ACEOF
2850
2851
2852cat >>confdefs.h <<_ACEOF
2853#define VERSION "$VERSION"
2854_ACEOF
2855
2856# Some tools Automake needs.
2857
2858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2859
2860
2861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2862
2863
2864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2865
2866
2867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2868
2869
2870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2871
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002872# For better backward compatibility. To be removed once Automake 1.9.x
2873# dies out for good. For more background, see:
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002874# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2875# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002876mkdir_p='$(MKDIR_P)'
2877
Bruce A. Mah54615792015-05-11 10:42:44 -07002878# We need awk for the "check" target (and possibly the TAP driver). The
2879# system "awk" is bad on some platforms.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002880# Always define AMTAR for backward compatibility. Yes, it's still used
2881# in the wild :-( We should find a proper way to deprecate it ...
2882AMTAR='$${TAR-tar}'
sethdelliott01ca9722010-07-19 20:38:40 +00002883
sethdelliott01ca9722010-07-19 20:38:40 +00002884
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002885# We'll loop over all known methods to create a tar archive until one works.
2886_am_tools='gnutar pax cpio none'
2887
2888am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002889
2890
Jon Dugane34c20c2010-07-08 23:26:52 +00002891
2892
2893
2894
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002895# POSIX will say in a future version that running "rm -f" with no argument
2896# is OK; and we want to be able to make that assumption in our Makefile
2897# recipes. So use an aggressive probe to check that the usage we want is
2898# actually supported "in the wild" to an acceptable degree.
2899# See automake bug#10828.
2900# To make any issue more visible, cause the running configure to be aborted
2901# by default if the 'rm' program in use doesn't match our expectations; the
2902# user can still override this though.
2903if rm -f && rm -fr && rm -rf; then : OK; else
2904 cat >&2 <<'END'
2905Oops!
2906
2907Your 'rm' program seems unable to run without file operands specified
2908on the command line, even when the '-f' option is present. This is contrary
2909to the behaviour of most rm programs out there, and not conforming with
2910the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2911
2912Please tell bug-automake@gnu.org about your system, including the value
2913of your $PATH and any error possibly output before this message. This
2914can help us improve future automake versions.
2915
2916END
2917 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2918 echo 'Configuration will proceed anyway, since you have set the' >&2
2919 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2920 echo >&2
2921 else
2922 cat >&2 <<'END'
2923Aborting the configuration process, to ensure you take notice of the issue.
2924
2925You can download and install GNU coreutils to get an 'rm' implementation
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -08002926that behaves properly: <https://www.gnu.org/software/coreutils/>.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002927
2928If you want to complete the configuration process using your problematic
2929'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2930to "yes", and re-run configure.
2931
2932END
2933 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2934 fi
2935fi
2936
Bruce A. Mah06280a62020-05-04 15:11:05 -07002937# Check whether --enable-silent-rules was given.
2938if test "${enable_silent_rules+set}" = set; then :
2939 enableval=$enable_silent_rules;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002940fi
2941
Bruce A. Mah06280a62020-05-04 15:11:05 -07002942case $enable_silent_rules in # (((
2943 yes) AM_DEFAULT_VERBOSITY=0;;
2944 no) AM_DEFAULT_VERBOSITY=1;;
2945 *) AM_DEFAULT_VERBOSITY=0;;
2946esac
2947am_make=${MAKE-make}
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2949$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2950if ${am_cv_make_support_nested_variables+:} false; then :
2951 $as_echo_n "(cached) " >&6
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002952else
Bruce A. Mah06280a62020-05-04 15:11:05 -07002953 if $as_echo 'TRUE=$(BAR$(V))
2954BAR0=false
2955BAR1=true
2956V=1
2957am__doit:
2958 @$(TRUE)
2959.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2960 am_cv_make_support_nested_variables=yes
2961else
2962 am_cv_make_support_nested_variables=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002963fi
Bruce A. Mah06280a62020-05-04 15:11:05 -07002964fi
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2966$as_echo "$am_cv_make_support_nested_variables" >&6; }
2967if test $am_cv_make_support_nested_variables = yes; then
2968 AM_V='$(V)'
2969 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2970else
2971 AM_V=$AM_DEFAULT_VERBOSITY
2972 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2973fi
2974AM_BACKSLASH='\'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002975
Bruce A. Mah06280a62020-05-04 15:11:05 -07002976case `pwd` in
2977 *\ * | *\ *)
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2979$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2980esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07002981
2982
Jon Dugane34c20c2010-07-08 23:26:52 +00002983
Bruce A. Mah06280a62020-05-04 15:11:05 -07002984macro_version='2.4.6'
2985macro_revision='2.4.6'
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999ltmain=$ac_aux_dir/ltmain.sh
Jon Dugane34c20c2010-07-08 23:26:52 +00003000
3001# Make sure we can run config.sub.
3002$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003003 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003004
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003006$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003007if ${ac_cv_build+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003008 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003009else
3010 ac_build_alias=$build_alias
3011test "x$ac_build_alias" = x &&
3012 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3013test "x$ac_build_alias" = x &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003014 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003015ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003016 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003017
3018fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003020$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003021case $ac_cv_build in
3022*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003023*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003024esac
3025build=$ac_cv_build
3026ac_save_IFS=$IFS; IFS='-'
3027set x $ac_cv_build
3028shift
3029build_cpu=$1
3030build_vendor=$2
3031shift; shift
3032# Remember, the first character of IFS is used to create $*,
3033# except with old shells:
3034build_os=$*
3035IFS=$ac_save_IFS
3036case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3037
3038
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003040$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003041if ${ac_cv_host+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003042 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003043else
3044 if test "x$host_alias" = x; then
3045 ac_cv_host=$ac_cv_build
3046else
3047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003048 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +00003049fi
3050
3051fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003053$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003054case $ac_cv_host in
3055*-*-*) ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003056*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003057esac
3058host=$ac_cv_host
3059ac_save_IFS=$IFS; IFS='-'
3060set x $ac_cv_host
3061shift
3062host_cpu=$1
3063host_vendor=$2
3064shift; shift
3065# Remember, the first character of IFS is used to create $*,
3066# except with old shells:
3067host_os=$*
3068IFS=$ac_save_IFS
3069case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3070
3071
Bruce A. Mah06280a62020-05-04 15:11:05 -07003072# Backslashify metacharacters that are still active within
3073# double-quoted strings.
3074sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
Jon Dugane34c20c2010-07-08 23:26:52 +00003075
Bruce A. Mah06280a62020-05-04 15:11:05 -07003076# Same as above, but do not quote variable references.
3077double_quote_subst='s/\(["`\\]\)/\\\1/g'
3078
3079# Sed substitution to delay expansion of an escaped shell variable in a
3080# double_quote_subst'ed string.
3081delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3082
3083# Sed substitution to delay expansion of an escaped single quote.
3084delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3085
3086# Sed substitution to avoid accidental globbing in evaled expressions
3087no_glob_subst='s/\*/\\\*/g'
3088
3089ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3090ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3091ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3092
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3094$as_echo_n "checking how to print strings... " >&6; }
3095# Test print first, because it will be a builtin if present.
3096if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3097 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3098 ECHO='print -r --'
3099elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3100 ECHO='printf %s\n'
3101else
3102 # Use this function as a fallback that always works.
3103 func_fallback_echo ()
3104 {
3105 eval 'cat <<_LTECHO_EOF
3106$1
3107_LTECHO_EOF'
3108 }
3109 ECHO='func_fallback_echo'
3110fi
3111
3112# func_echo_all arg...
3113# Invoke $ECHO with all args, space-separated.
3114func_echo_all ()
3115{
3116 $ECHO ""
3117}
3118
3119case $ECHO in
3120 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3121$as_echo "printf" >&6; } ;;
3122 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3123$as_echo "print -r" >&6; } ;;
3124 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3125$as_echo "cat" >&6; } ;;
3126esac
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141DEPDIR="${am__leading_dot}deps"
3142
3143ac_config_commands="$ac_config_commands depfiles"
3144
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3146$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3147cat > confinc.mk << 'END'
3148am__doit:
3149 @echo this is the am__doit target >confinc.out
3150.PHONY: am__doit
3151END
3152am__include="#"
3153am__quote=
3154# BSD make does it like this.
3155echo '.include "confinc.mk" # ignored' > confmf.BSD
3156# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3157echo 'include confinc.mk # ignored' > confmf.GNU
3158_am_result=no
3159for s in GNU BSD; do
3160 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3161 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3165 case $?:`cat confinc.out 2>/dev/null` in #(
3166 '0:this is the am__doit target') :
3167 case $s in #(
3168 BSD) :
3169 am__include='.include' am__quote='"' ;; #(
3170 *) :
3171 am__include='include' am__quote='' ;;
3172esac ;; #(
3173 *) :
3174 ;;
3175esac
3176 if test "$am__include" != "#"; then
3177 _am_result="yes ($s style)"
3178 break
3179 fi
3180done
3181rm -f confinc.* confmf.*
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3183$as_echo "${_am_result}" >&6; }
3184
3185# Check whether --enable-dependency-tracking was given.
3186if test "${enable_dependency_tracking+set}" = set; then :
3187 enableval=$enable_dependency_tracking;
3188fi
3189
3190if test "x$enable_dependency_tracking" != xno; then
3191 am_depcomp="$ac_aux_dir/depcomp"
3192 AMDEPBACKSLASH='\'
3193 am__nodep='_no'
3194fi
3195 if test "x$enable_dependency_tracking" != xno; then
3196 AMDEP_TRUE=
3197 AMDEP_FALSE='#'
3198else
3199 AMDEP_TRUE='#'
3200 AMDEP_FALSE=
3201fi
3202
3203
Jon Dugane34c20c2010-07-08 23:26:52 +00003204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3211set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003213$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003214if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003215 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003216else
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003227 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003229 break 2
3230 fi
3231done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003232 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003233IFS=$as_save_IFS
3234
3235fi
3236fi
3237CC=$ac_cv_prog_CC
3238if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003240$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003241else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003243$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003244fi
3245
3246
3247fi
3248if test -z "$ac_cv_prog_CC"; then
3249 ac_ct_CC=$CC
3250 # Extract the first word of "gcc", so it can be a program name with args.
3251set dummy gcc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003253$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003254if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003255 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003256else
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003267 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003269 break 2
3270 fi
3271done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003272 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003273IFS=$as_save_IFS
3274
3275fi
3276fi
3277ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003280$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003281else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003283$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003284fi
3285
3286 if test "x$ac_ct_CC" = x; then
3287 CC=""
3288 else
3289 case $cross_compiling:$ac_tool_warned in
3290yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003293ac_tool_warned=yes ;;
3294esac
3295 CC=$ac_ct_CC
3296 fi
3297else
3298 CC="$ac_cv_prog_CC"
3299fi
3300
3301if test -z "$CC"; then
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3304set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003306$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003307if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003308 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003309else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003320 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003322 break 2
3323 fi
3324done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003325 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003326IFS=$as_save_IFS
3327
3328fi
3329fi
3330CC=$ac_cv_prog_CC
3331if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003333$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003334else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003336$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003337fi
3338
3339
3340 fi
3341fi
3342if test -z "$CC"; then
3343 # Extract the first word of "cc", so it can be a program name with args.
3344set dummy cc; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003346$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003347if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003348 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003349else
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3352else
3353 ac_prog_rejected=no
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003361 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3362 ac_prog_rejected=yes
3363 continue
3364 fi
3365 ac_cv_prog_CC="cc"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003367 break 2
3368 fi
3369done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003370 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003371IFS=$as_save_IFS
3372
3373if test $ac_prog_rejected = yes; then
3374 # We found a bogon in the path, so make sure we never use it.
3375 set dummy $ac_cv_prog_CC
3376 shift
3377 if test $# != 0; then
3378 # We chose a different compiler from the bogus one.
3379 # However, it has the same basename, so the bogon will be chosen
3380 # first if we set CC to just the basename; use the full file name.
3381 shift
3382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3383 fi
3384fi
3385fi
3386fi
3387CC=$ac_cv_prog_CC
3388if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003390$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003391else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003393$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003394fi
3395
3396
3397fi
3398if test -z "$CC"; then
3399 if test -n "$ac_tool_prefix"; then
3400 for ac_prog in cl.exe
3401 do
3402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3403set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003405$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003406if ${ac_cv_prog_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003407 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003408else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003421 break 2
3422 fi
3423done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003424 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003425IFS=$as_save_IFS
3426
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003432$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003433else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003435$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003436fi
3437
3438
3439 test -n "$CC" && break
3440 done
3441fi
3442if test -z "$CC"; then
3443 ac_ct_CC=$CC
3444 for ac_prog in cl.exe
3445do
3446 # Extract the first word of "$ac_prog", so it can be a program name with args.
3447set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003449$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003450if ${ac_cv_prog_ac_ct_CC+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003451 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003452else
3453 if test -n "$ac_ct_CC"; then
3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455else
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003463 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003465 break 2
3466 fi
3467done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003468 done
Jon Dugane34c20c2010-07-08 23:26:52 +00003469IFS=$as_save_IFS
3470
3471fi
3472fi
3473ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474if test -n "$ac_ct_CC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003476$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003477else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003479$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003480fi
3481
3482
3483 test -n "$ac_ct_CC" && break
3484done
3485
3486 if test "x$ac_ct_CC" = x; then
3487 CC=""
3488 else
3489 case $cross_compiling:$ac_tool_warned in
3490yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003493ac_tool_warned=yes ;;
3494esac
3495 CC=$ac_ct_CC
3496 fi
3497fi
3498
3499fi
3500
3501
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003502test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003504as_fn_error $? "no acceptable C compiler found in \$PATH
3505See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003506
3507# Provide some information about the compiler.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003508$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003509set X $ac_compile
3510ac_compiler=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003511for ac_option in --version -v -V -qversion; do
3512 { { ac_try="$ac_compiler $ac_option >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00003513case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518$as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Jon Dugane34c20c2010-07-08 23:26:52 +00003520 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003521 if test -s conftest.err; then
3522 sed '10a\
3523... rest of stderr output deleted ...
3524 10q' conftest.err >conftest.er1
3525 cat conftest.er1 >&5
3526 fi
3527 rm -f conftest.er1 conftest.err
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }
3530done
Jon Dugane34c20c2010-07-08 23:26:52 +00003531
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003533/* end confdefs.h. */
3534
3535int
3536main ()
3537{
3538
3539 ;
3540 return 0;
3541}
3542_ACEOF
3543ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003544ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00003545# Try to create an executable without -o first, disregard a.out.
3546# It will help us diagnose broken compilers, and finding out an intuition
3547# of exeext.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3549$as_echo_n "checking whether the C compiler works... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003550ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3551
3552# The possible output files:
3553ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3554
Jon Dugane34c20c2010-07-08 23:26:52 +00003555ac_rmfiles=
3556for ac_file in $ac_files
3557do
3558 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003560 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3561 esac
3562done
3563rm -f $ac_rmfiles
3564
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003565if { { ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003572 (eval "$ac_link_default") 2>&5
3573 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3577# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3578# in a Makefile. We should not override ac_cv_exeext if it was cached,
3579# so that the user can short-circuit this test for compilers unknown to
3580# Autoconf.
3581for ac_file in $ac_files ''
3582do
3583 test -f "$ac_file" || continue
3584 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003586 ;;
3587 [ab].out )
3588 # We found the default executable, but exeext='' is most
3589 # certainly right.
3590 break;;
3591 *.* )
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003593 then :; else
3594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3595 fi
3596 # We set ac_cv_exeext here because the later test for it is not
3597 # safe: cross compilers may not add the suffix if given an `-o'
3598 # argument, so we may need to know it at that point already.
3599 # Even if this section looks crufty: it has the advantage of
3600 # actually working.
3601 break;;
3602 * )
3603 break;;
3604 esac
3605done
3606test "$ac_cv_exeext" = no && ac_cv_exeext=
3607
3608else
3609 ac_file=''
3610fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003611if test -z "$ac_file"; then :
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
3614$as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003615sed 's/^/| /' conftest.$ac_ext >&5
3616
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003617{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003619as_fn_error 77 "C compiler cannot create executables
3620See \`config.log' for more details" "$LINENO" 5; }
3621else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003623$as_echo "yes" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3626$as_echo_n "checking for C compiler default output file name... " >&6; }
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628$as_echo "$ac_file" >&6; }
3629ac_exeext=$ac_cv_exeext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003630
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003631rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003632ac_clean_files=$ac_clean_files_save
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003634$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003635if { { ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003636case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003642 (eval "$ac_link") 2>&5
3643 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003646 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3647# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3648# work properly (i.e., refer to `conftest.exe'), while it won't with
3649# `rm'.
3650for ac_file in conftest.exe conftest conftest.*; do
3651 test -f "$ac_file" || continue
3652 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003654 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 break;;
3656 * ) break;;
3657 esac
3658done
3659else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003662as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3663See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003664fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003665rm -f conftest conftest$ac_cv_exeext
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003667$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003668
3669rm -f conftest.$ac_ext
3670EXEEXT=$ac_cv_exeext
3671ac_exeext=$EXEEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h. */
3674#include <stdio.h>
3675int
3676main ()
3677{
3678FILE *f = fopen ("conftest.out", "w");
3679 return ferror (f) || fclose (f) != 0;
3680
3681 ;
3682 return 0;
3683}
3684_ACEOF
3685ac_clean_files="$ac_clean_files conftest.out"
3686# Check that the compiler produces executables we can run. If not, either
3687# the compiler is broken, or we cross compile.
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3689$as_echo_n "checking whether we are cross compiling... " >&6; }
3690if test "$cross_compiling" != yes; then
3691 { { ac_try="$ac_link"
3692case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695esac
3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697$as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_link") 2>&5
3699 ac_status=$?
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }
3702 if { ac_try='./conftest$ac_cv_exeext'
3703 { { case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706esac
3707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708$as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_try") 2>&5
3710 ac_status=$?
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; }; then
3713 cross_compiling=no
3714 else
3715 if test "$cross_compiling" = maybe; then
3716 cross_compiling=yes
3717 else
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720as_fn_error $? "cannot run C compiled programs.
3721If you meant to cross compile, use \`--host'.
3722See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 fi
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3727$as_echo "$cross_compiling" >&6; }
3728
3729rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3730ac_clean_files=$ac_clean_files_save
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003732$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003733if ${ac_cv_objext+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003734 $as_echo_n "(cached) " >&6
3735else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003737/* end confdefs.h. */
3738
3739int
3740main ()
3741{
3742
3743 ;
3744 return 0;
3745}
3746_ACEOF
3747rm -f conftest.o conftest.obj
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003748if { { ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003749case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003755 (eval "$ac_compile") 2>&5
3756 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003759 for ac_file in conftest.o conftest.obj conftest.*; do
3760 test -f "$ac_file" || continue;
3761 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003763 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3764 break;;
3765 esac
3766done
3767else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003768 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003769sed 's/^/| /' conftest.$ac_ext >&5
3770
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003771{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003773as_fn_error $? "cannot compute suffix of object files: cannot compile
3774See \`config.log' for more details" "$LINENO" 5; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003775fi
3776rm -f conftest.$ac_cv_objext conftest.$ac_ext
3777fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003779$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003780OBJEXT=$ac_cv_objext
3781ac_objext=$OBJEXT
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003783$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003784if ${ac_cv_c_compiler_gnu+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003785 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003786else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793#ifndef __GNUC__
3794 choke me
3795#endif
3796
3797 ;
3798 return 0;
3799}
3800_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003801if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003802 ac_compiler_gnu=yes
3803else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003804 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003805fi
3806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807ac_cv_c_compiler_gnu=$ac_compiler_gnu
3808
3809fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003811$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3812if test $ac_compiler_gnu = yes; then
3813 GCC=yes
3814else
3815 GCC=
3816fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003817ac_test_CFLAGS=${CFLAGS+set}
3818ac_save_CFLAGS=$CFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003820$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003821if ${ac_cv_prog_cc_g+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003822 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003823else
3824 ac_save_c_werror_flag=$ac_c_werror_flag
3825 ac_c_werror_flag=yes
3826 ac_cv_prog_cc_g=no
3827 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003829/* end confdefs.h. */
3830
3831int
3832main ()
3833{
3834
3835 ;
3836 return 0;
3837}
3838_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003839if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003840 ac_cv_prog_cc_g=yes
3841else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003842 CFLAGS=""
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003844/* end confdefs.h. */
3845
3846int
3847main ()
3848{
3849
3850 ;
3851 return 0;
3852}
3853_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003854if ac_fn_c_try_compile "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003855
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003856else
3857 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003858 CFLAGS="-g"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003860/* end confdefs.h. */
3861
3862int
3863main ()
3864{
3865
3866 ;
3867 return 0;
3868}
3869_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003870if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003871 ac_cv_prog_cc_g=yes
3872fi
3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874fi
3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876fi
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 ac_c_werror_flag=$ac_save_c_werror_flag
3879fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003881$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003882if test "$ac_test_CFLAGS" = set; then
3883 CFLAGS=$ac_save_CFLAGS
3884elif test $ac_cv_prog_cc_g = yes; then
3885 if test "$GCC" = yes; then
3886 CFLAGS="-g -O2"
3887 else
3888 CFLAGS="-g"
3889 fi
3890else
3891 if test "$GCC" = yes; then
3892 CFLAGS="-O2"
3893 else
3894 CFLAGS=
3895 fi
3896fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003898$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003899if ${ac_cv_prog_cc_c89+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003900 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003901else
3902 ac_cv_prog_cc_c89=no
3903ac_save_CC=$CC
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00003905/* end confdefs.h. */
3906#include <stdarg.h>
3907#include <stdio.h>
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003908struct stat;
Jon Dugane34c20c2010-07-08 23:26:52 +00003909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3910struct buf { int x; };
3911FILE * (*rcsopen) (struct buf *, struct stat *, int);
3912static char *e (p, i)
3913 char **p;
3914 int i;
3915{
3916 return p[i];
3917}
3918static char *f (char * (*g) (char **, int), char **p, ...)
3919{
3920 char *s;
3921 va_list v;
3922 va_start (v,p);
3923 s = g (p, va_arg (v,int));
3924 va_end (v);
3925 return s;
3926}
3927
3928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3929 function prototypes and stuff, but not '\xHH' hex character constants.
3930 These don't provoke an error unfortunately, instead are silently treated
3931 as 'x'. The following induces an error, until -std is added to get
3932 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3933 array size at least. It's necessary to write '\x00'==0 to get something
3934 that's true only with -std. */
3935int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3936
3937/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3938 inside strings and character constants. */
3939#define FOO(x) 'x'
3940int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3941
3942int test (int i, double x);
3943struct s1 {int (*f) (int a);};
3944struct s2 {int (*f) (double a);};
3945int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3946int argc;
3947char **argv;
3948int
3949main ()
3950{
3951return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3957 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3958do
3959 CC="$ac_save_CC $ac_arg"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003960 if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003961 ac_cv_prog_cc_c89=$ac_arg
3962fi
3963rm -f core conftest.err conftest.$ac_objext
3964 test "x$ac_cv_prog_cc_c89" != "xno" && break
3965done
3966rm -f conftest.$ac_ext
3967CC=$ac_save_CC
3968
3969fi
3970# AC_CACHE_VAL
3971case "x$ac_cv_prog_cc_c89" in
3972 x)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003974$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003975 xno)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003977$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003978 *)
3979 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003981$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003982esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003983if test "x$ac_cv_prog_cc_c89" != xno; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00003984
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003985fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003986
3987ac_ext=c
3988ac_cpp='$CPP $CPPFLAGS'
3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07003992
3993ac_ext=c
3994ac_cpp='$CPP $CPPFLAGS'
3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3999$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4000if ${am_cv_prog_cc_c_o+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002else
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005
4006int
4007main ()
4008{
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014 # Make sure it works both with $CC and with simple cc.
4015 # Following AC_PROG_CC_C_O, we do the test twice because some
4016 # compilers refuse to overwrite an existing .o file with -o,
4017 # though they will create one.
4018 am_cv_prog_cc_c_o=yes
4019 for am_i in 1 2; do
4020 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4021 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } \
4025 && test -f conftest2.$ac_objext; then
4026 : OK
4027 else
4028 am_cv_prog_cc_c_o=no
4029 break
4030 fi
4031 done
4032 rm -f core conftest*
4033 unset am_i
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4036$as_echo "$am_cv_prog_cc_c_o" >&6; }
4037if test "$am_cv_prog_cc_c_o" != yes; then
4038 # Losing compiler, so override with the script.
4039 # FIXME: It is wrong to rewrite CC.
4040 # But if we don't then we get into trouble of one sort or another.
4041 # A longer-term fix would be to have automake use am__CC in this case,
4042 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4043 CC="$am_aux_dir/compile $CC"
4044fi
4045ac_ext=c
4046ac_cpp='$CPP $CPPFLAGS'
4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050
Jon Dugane34c20c2010-07-08 23:26:52 +00004051
Jon Dugane34c20c2010-07-08 23:26:52 +00004052depcc="$CC" am_compiler_list=
4053
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004055$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004056if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004057 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004058else
4059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4060 # We make a subdir and do the tests there. Otherwise we can end up
4061 # making bogus files that we don't know about and never remove. For
4062 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004063 # making a dummy file named 'D' -- because '-MD' means "put the output
4064 # in D".
4065 rm -rf conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00004066 mkdir conftest.dir
4067 # Copy depcomp to subdir because otherwise we won't find it if we're
4068 # using a relative directory.
4069 cp "$am_depcomp" conftest.dir
4070 cd conftest.dir
4071 # We will build objects and dependencies in a subdirectory because
4072 # it helps to detect inapplicable dependency modes. For instance
4073 # both Tru64's cc and ICC support -MD to output dependencies as a
4074 # side effect of compilation, but ICC will put the dependencies in
4075 # the current directory while Tru64 will put them in the object
4076 # directory.
4077 mkdir sub
4078
4079 am_cv_CC_dependencies_compiler_type=none
4080 if test "$am_compiler_list" = ""; then
4081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4082 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004083 am__universal=false
4084 case " $depcc " in #(
4085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4086 esac
4087
Jon Dugane34c20c2010-07-08 23:26:52 +00004088 for depmode in $am_compiler_list; do
4089 # Setup a source with many dependencies, because some compilers
4090 # like to wrap large dependency lists on column 80 (with \), and
4091 # we should not choose a depcomp mode which is confused by this.
4092 #
4093 # We need to recreate these files for each test, as the compiler may
4094 # overwrite some of them when testing with obscure command lines.
4095 # This happens at least with the AIX C compiler.
4096 : > sub/conftest.c
4097 for i in 1 2 3 4 5 6; do
4098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4100 # Solaris 10 /bin/sh.
4101 echo '/* dummy */' > sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00004102 done
4103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4104
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004106 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004107 # handle '-M -o', and we need to detect this. Also, some Intel
4108 # versions had trouble with output in subdirs.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004109 am__obj=sub/conftest.${OBJEXT-o}
4110 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00004111 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004112 gcc)
4113 # This depmode causes a compiler race in universal mode.
4114 test "$am__universal" = false || continue
4115 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004116 nosideeffect)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004117 # After this tag, mechanisms are not by side-effect, so they'll
4118 # only be used when explicitly requested.
Jon Dugane34c20c2010-07-08 23:26:52 +00004119 if test "x$enable_dependency_tracking" = xyes; then
4120 continue
4121 else
4122 break
4123 fi
4124 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004125 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4126 # This compiler won't grok '-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004127 # not run yet. These depmodes are late enough in the game, and
4128 # so weak that their functioning should not be impacted.
4129 am__obj=conftest.${OBJEXT-o}
4130 am__minus_obj=
4131 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00004132 none) break ;;
4133 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00004134 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004135 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00004136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00004138 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00004142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00004144 # or remarks (even with -Werror). So we grep stderr for any message
4145 # that says an option was ignored or not supported.
4146 # When given -MP, icc 7.0 and 7.1 complain thusly:
4147 # icc: Command line warning: ignoring option '-M'; no argument required
4148 # The diagnosis changed in icc 8.0:
4149 # icc: Command line remark: option '-MP' not supported
4150 if (grep 'ignoring option' conftest.err ||
4151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00004152 am_cv_CC_dependencies_compiler_type=$depmode
4153 break
4154 fi
4155 fi
4156 done
4157
4158 cd ..
4159 rm -rf conftest.dir
4160else
4161 am_cv_CC_dependencies_compiler_type=none
4162fi
4163
4164fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004166$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004167CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4168
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004169 if
Jon Dugane34c20c2010-07-08 23:26:52 +00004170 test "x$enable_dependency_tracking" != xno \
4171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4172 am__fastdepCC_TRUE=
4173 am__fastdepCC_FALSE='#'
4174else
4175 am__fastdepCC_TRUE='#'
4176 am__fastdepCC_FALSE=
4177fi
4178
4179
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004181$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004182if ${ac_cv_path_SED+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004183 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00004184else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4186 for ac_i in 1 2 3 4 5 6 7; do
4187 ac_script="$ac_script$as_nl$ac_script"
4188 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004190 { ac_script=; unset ac_script;}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004191 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004192 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004195for as_dir in $PATH
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004199 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004202 as_fn_executable_p "$ac_path_SED" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004203# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004204 # Check for GNU $ac_path_SED
4205case `"$ac_path_SED" --version 2>&1` in
4206*GNU*)
4207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4208*)
4209 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004210 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004211 while :
4212 do
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004216 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004219 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004220 if test $ac_count -gt ${ac_path_SED_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_SED="$ac_path_SED"
4223 ac_path_SED_max=$ac_count
4224 fi
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004227 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4229esac
4230
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004231 $ac_path_SED_found && break 3
4232 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004233 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004234 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004235IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004236 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004238 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004239else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004240 ac_cv_path_SED=$SED
4241fi
4242
4243fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004245$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004246 SED="$ac_cv_path_SED"
4247 rm -f conftest.sed
4248
4249test -z "$SED" && SED=sed
4250Xsed="$SED -e 1s/^X//"
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004263$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004264if ${ac_cv_path_GREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004265 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004266else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004267 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004268 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004275 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004278 as_fn_executable_p "$ac_path_GREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004279# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004280 # Check for GNU $ac_path_GREP
4281case `"$ac_path_GREP" --version 2>&1` in
4282*GNU*)
4283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4284*)
4285 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004286 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004287 while :
4288 do
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004292 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004295 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_GREP="$ac_path_GREP"
4299 ac_path_GREP_max=$ac_count
4300 fi
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4303 done
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305esac
4306
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004307 $ac_path_GREP_found && break 3
4308 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004309 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004310 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004311IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004312 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004314 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004315else
4316 ac_cv_path_GREP=$GREP
4317fi
4318
4319fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004321$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004322 GREP="$ac_cv_path_GREP"
4323
4324
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004326$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004327if ${ac_cv_path_EGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004328 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004329else
4330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4331 then ac_cv_path_EGREP="$GREP -E"
4332 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004333 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004334 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004335 # Loop through the user's path and test for each of PROGNAME-LIST
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004341 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004344 as_fn_executable_p "$ac_path_EGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004345# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004346 # Check for GNU $ac_path_EGREP
4347case `"$ac_path_EGREP" --version 2>&1` in
4348*GNU*)
4349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4350*)
4351 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004352 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004353 while :
4354 do
4355 cat "conftest.in" "conftest.in" >"conftest.tmp"
4356 mv "conftest.tmp" "conftest.in"
4357 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004358 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004361 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jon Dugane34c20c2010-07-08 23:26:52 +00004362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4363 # Best one so far, save it but keep looking for a better one
4364 ac_cv_path_EGREP="$ac_path_EGREP"
4365 ac_path_EGREP_max=$ac_count
4366 fi
4367 # 10*(2^10) chars as input seems more than enough
4368 test $ac_count -gt 10 && break
4369 done
4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371esac
4372
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004373 $ac_path_EGREP_found && break 3
4374 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004375 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004376 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004377IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004378 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004380 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004381else
4382 ac_cv_path_EGREP=$EGREP
4383fi
4384
4385 fi
4386fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004388$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004389 EGREP="$ac_cv_path_EGREP"
4390
4391
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004393$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004394if ${ac_cv_path_FGREP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004395 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004396else
4397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4398 then ac_cv_path_FGREP="$GREP -F"
4399 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004400 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004401 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004408 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004411 as_fn_executable_p "$ac_path_FGREP" || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004412# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004413 # Check for GNU $ac_path_FGREP
4414case `"$ac_path_FGREP" --version 2>&1` in
4415*GNU*)
4416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4417*)
4418 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004419 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004420 while :
4421 do
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004425 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004428 as_fn_arith $ac_count + 1 && ac_count=$as_val
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_FGREP="$ac_path_FGREP"
4432 ac_path_FGREP_max=$ac_count
4433 fi
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4436 done
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438esac
4439
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004440 $ac_path_FGREP_found && break 3
4441 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004442 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004443 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004444IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004445 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004447 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004448else
4449 ac_cv_path_FGREP=$FGREP
4450fi
4451
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004452 fi
4453fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004455$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004456 FGREP="$ac_cv_path_FGREP"
4457
4458
4459test -z "$GREP" && GREP=grep
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
Jon Dugane34c20c2010-07-08 23:26:52 +00004478
4479# Check whether --with-gnu-ld was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004480if test "${with_gnu_ld+set}" = set; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004481 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00004482else
4483 with_gnu_ld=no
4484fi
4485
4486ac_prog=ld
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004487if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004488 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004490$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004491 case $host in
4492 *-*-mingw*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004493 # gcc leaves a trailing carriage return, which upsets mingw
Jon Dugane34c20c2010-07-08 23:26:52 +00004494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4495 *)
4496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4497 esac
4498 case $ac_prog in
4499 # Accept absolute paths.
4500 [\\/]* | ?:[\\/]*)
4501 re_direlt='/[^/][^/]*/\.\./'
4502 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004506 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004507 test -z "$LD" && LD=$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004508 ;;
4509 "")
4510 # If it fails, then pretend we aren't using GCC.
4511 ac_prog=ld
4512 ;;
4513 *)
4514 # If it is relative, then search for the first ld in PATH.
4515 with_gnu_ld=unknown
4516 ;;
4517 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004518elif test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004520$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004521else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004523$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004524fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004525if ${lt_cv_path_LD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004526 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004527else
4528 if test -z "$LD"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004529 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004530 for ac_dir in $PATH; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004531 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004532 test -z "$ac_dir" && ac_dir=.
4533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004534 lt_cv_path_LD=$ac_dir/$ac_prog
Jon Dugane34c20c2010-07-08 23:26:52 +00004535 # Check to see if the program is GNU ld. I'd rather use --version,
4536 # but apparently some variants of GNU ld only accept -v.
4537 # Break only if it was the GNU/non-GNU ld that we prefer.
4538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4539 *GNU* | *'with BFD'*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004540 test no != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004541 ;;
4542 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004543 test yes != "$with_gnu_ld" && break
Jon Dugane34c20c2010-07-08 23:26:52 +00004544 ;;
4545 esac
4546 fi
4547 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004548 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004549else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004550 lt_cv_path_LD=$LD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00004551fi
4552fi
4553
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004554LD=$lt_cv_path_LD
Jon Dugane34c20c2010-07-08 23:26:52 +00004555if test -n "$LD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004557$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004558else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004560$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004561fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004562test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004564$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004565if ${lt_cv_prog_gnu_ld+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004566 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004567else
4568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4569case `$LD -v 2>&1 </dev/null` in
4570*GNU* | *'with BFD'*)
4571 lt_cv_prog_gnu_ld=yes
4572 ;;
4573*)
4574 lt_cv_prog_gnu_ld=no
4575 ;;
4576esac
4577fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004579$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004580with_gnu_ld=$lt_cv_prog_gnu_ld
4581
4582
4583
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004584
4585
4586
4587
4588
4589
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004591$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004592if ${lt_cv_path_NM+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004593 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004594else
4595 if test -n "$NM"; then
4596 # Let the user override the test.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004597 lt_cv_path_NM=$NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004598else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004599 lt_nm_to_check=${ac_tool_prefix}nm
Jon Dugane34c20c2010-07-08 23:26:52 +00004600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4601 lt_nm_to_check="$lt_nm_to_check nm"
4602 fi
4603 for lt_tmp_nm in $lt_nm_to_check; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004606 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004607 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004608 tmp_nm=$ac_dir/$lt_tmp_nm
4609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004610 # Check to see if the nm accepts a BSD-compat flag.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004611 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
Jon Dugane34c20c2010-07-08 23:26:52 +00004612 # nm: unknown option "B" ignored
4613 # Tru64's nm complains that /dev/null is an invalid object file
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004614 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4615 case $build_os in
4616 mingw*) lt_bad_file=conftest.nm/nofile ;;
4617 *) lt_bad_file=/dev/null ;;
4618 esac
4619 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4620 *$lt_bad_file* | *'Invalid file or object type'*)
Jon Dugane34c20c2010-07-08 23:26:52 +00004621 lt_cv_path_NM="$tmp_nm -B"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004622 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004623 ;;
4624 *)
4625 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4626 */dev/null*)
4627 lt_cv_path_NM="$tmp_nm -p"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004628 break 2
Jon Dugane34c20c2010-07-08 23:26:52 +00004629 ;;
4630 *)
4631 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4632 continue # so that we can try to find one that supports BSD flags
4633 ;;
4634 esac
4635 ;;
4636 esac
4637 fi
4638 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004639 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00004640 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004641 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004642fi
4643fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004645$as_echo "$lt_cv_path_NM" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004646if test no != "$lt_cv_path_NM"; then
4647 NM=$lt_cv_path_NM
Jon Dugane34c20c2010-07-08 23:26:52 +00004648else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004649 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004650 if test -n "$DUMPBIN"; then :
4651 # Let the user override the test.
4652 else
4653 if test -n "$ac_tool_prefix"; then
4654 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004655 do
4656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004659$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004660if ${ac_cv_prog_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004661 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004662else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004663 if test -n "$DUMPBIN"; then
4664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004673 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004675 break 2
4676 fi
4677done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004678 done
jef56a97f92012-08-20 14:35:58 -07004679IFS=$as_save_IFS
4680
4681fi
4682fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004683DUMPBIN=$ac_cv_prog_DUMPBIN
4684if test -n "$DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004686$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004687else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004689$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004690fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004691
4692
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004693 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004694 done
4695fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004696if test -z "$DUMPBIN"; then
4697 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004698 for ac_prog in dumpbin "link -dump"
jef56a97f92012-08-20 14:35:58 -07004699do
4700 # Extract the first word of "$ac_prog", so it can be a program name with args.
4701set dummy $ac_prog; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004703$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004704if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004705 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004706else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004707 if test -n "$ac_ct_DUMPBIN"; then
4708 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004717 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004719 break 2
4720 fi
4721done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004722 done
jef56a97f92012-08-20 14:35:58 -07004723IFS=$as_save_IFS
4724
4725fi
4726fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004727ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4728if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004730$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004731else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004733$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004734fi
Jon Dugan92864152010-09-20 21:50:12 +00004735
4736
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004737 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004738done
Jon Dugane34c20c2010-07-08 23:26:52 +00004739
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004740 if test "x$ac_ct_DUMPBIN" = x; then
4741 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004742 else
4743 case $cross_compiling:$ac_tool_warned in
4744yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004747ac_tool_warned=yes ;;
4748esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004749 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004750 fi
4751fi
4752
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004753 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004754 *COFF*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004755 DUMPBIN="$DUMPBIN -symbols -headers"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004756 ;;
4757 *)
4758 DUMPBIN=:
4759 ;;
4760 esac
4761 fi
jef56a97f92012-08-20 14:35:58 -07004762
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004763 if test : != "$DUMPBIN"; then
4764 NM=$DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004765 fi
4766fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004767test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004768
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004769
4770
4771
4772
4773
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004775$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004776if ${lt_cv_nm_interface+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004777 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004778else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004779 lt_cv_nm_interface="BSD nm"
4780 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004781 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004782 (eval "$ac_compile" 2>conftest.err)
4783 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004784 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004785 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4786 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004787 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004788 cat conftest.out >&5
4789 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4790 lt_cv_nm_interface="MS dumpbin"
4791 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004792 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004793fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004795$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004796
Bruce A. Mah06280a62020-05-04 15:11:05 -07004797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4798$as_echo_n "checking whether ln -s works... " >&6; }
4799LN_S=$as_ln_s
4800if test "$LN_S" = "ln -s"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4802$as_echo "yes" >&6; }
4803else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4805$as_echo "no, using $LN_S" >&6; }
4806fi
4807
jef56a97f92012-08-20 14:35:58 -07004808# find the maximum length of command line arguments
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004810$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004811if ${lt_cv_sys_max_cmd_len+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004812 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004813else
4814 i=0
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004815 teststring=ABCD
jef56a97f92012-08-20 14:35:58 -07004816
4817 case $build_os in
4818 msdosdjgpp*)
4819 # On DJGPP, this test can blow up pretty badly due to problems in libc
4820 # (any single argument exceeding 2000 bytes causes a buffer overrun
4821 # during glob expansion). Even if it were fixed, the result of this
4822 # check would be larger than it should be.
4823 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4824 ;;
4825
4826 gnu*)
4827 # Under GNU Hurd, this test is not required because there is
4828 # no limit to the length of command line arguments.
4829 # Libtool will interpret -1 as no limit whatsoever
4830 lt_cv_sys_max_cmd_len=-1;
4831 ;;
4832
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004833 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004834 # On Win9x/ME, this test blows up -- it succeeds, but takes
4835 # about 5 minutes as the teststring grows exponentially.
4836 # Worse, since 9x/ME are not pre-emptively multitasking,
4837 # you end up with a "frozen" computer, even though with patience
4838 # the test eventually succeeds (with a max line length of 256k).
4839 # Instead, let's just punt: use the minimum linelength reported by
4840 # all of the supported platforms: 8192 (on NT/2K/XP).
4841 lt_cv_sys_max_cmd_len=8192;
4842 ;;
4843
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004844 mint*)
4845 # On MiNT this can take a long time and run out of memory.
4846 lt_cv_sys_max_cmd_len=8192;
4847 ;;
4848
jef56a97f92012-08-20 14:35:58 -07004849 amigaos*)
4850 # On AmigaOS with pdksh, this test takes hours, literally.
4851 # So we just punt and use a minimum line length of 8192.
4852 lt_cv_sys_max_cmd_len=8192;
4853 ;;
4854
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004855 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
jef56a97f92012-08-20 14:35:58 -07004856 # This has been around since 386BSD, at least. Likely further.
4857 if test -x /sbin/sysctl; then
4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4859 elif test -x /usr/sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4861 else
4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4863 fi
4864 # And add a safety zone
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4867 ;;
4868
4869 interix*)
4870 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4871 lt_cv_sys_max_cmd_len=196608
4872 ;;
4873
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004874 os2*)
4875 # The test takes a long time on OS/2.
4876 lt_cv_sys_max_cmd_len=8192
4877 ;;
4878
jef56a97f92012-08-20 14:35:58 -07004879 osf*)
4880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4882 # nice to cause kernel panics so lets avoid the loop below.
4883 # First set a reasonable default.
4884 lt_cv_sys_max_cmd_len=16384
4885 #
4886 if test -x /sbin/sysconfig; then
4887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4888 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4889 esac
4890 fi
4891 ;;
4892 sco3.2v5*)
4893 lt_cv_sys_max_cmd_len=102400
4894 ;;
4895 sysv5* | sco5v6* | sysv4.2uw2*)
4896 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4897 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004898 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004899 else
4900 lt_cv_sys_max_cmd_len=32768
4901 fi
4902 ;;
4903 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004904 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004905 if test -n "$lt_cv_sys_max_cmd_len" && \
4906 test undefined != "$lt_cv_sys_max_cmd_len"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4909 else
4910 # Make teststring a little bigger before we do anything with it.
4911 # a 1K string should be a reasonable start.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004912 for i in 1 2 3 4 5 6 7 8; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004913 teststring=$teststring$teststring
4914 done
4915 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4916 # If test is not a shell built-in, we'll probably end up computing a
4917 # maximum length that is only half of the actual maximum length, but
4918 # we can't tell.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004919 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004920 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004921 test 17 != "$i" # 1/2 MB should be enough
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004922 do
4923 i=`expr $i + 1`
4924 teststring=$teststring$teststring
4925 done
4926 # Only check the string length outside the loop.
4927 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4928 teststring=
4929 # Add a significant safety factor because C++ compilers can tack on
4930 # massive amounts of additional arguments before passing them to the
4931 # linker. It appears as though 1/2 is a usable value.
4932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4933 fi
jef56a97f92012-08-20 14:35:58 -07004934 ;;
4935 esac
4936
4937fi
4938
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08004939if test -n "$lt_cv_sys_max_cmd_len"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004941$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004942else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004944$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004945fi
4946max_cmd_len=$lt_cv_sys_max_cmd_len
4947
4948
4949
4950
4951
4952
4953: ${CP="cp -f"}
4954: ${MV="mv -f"}
4955: ${RM="rm -f"}
4956
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4958 lt_unset=unset
4959else
4960 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07004961fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004962
4963
4964
4965
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004966
4967# test EBCDIC or ASCII
4968case `echo X|tr X '\101'` in
4969 A) # ASCII based system
4970 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4971 lt_SP2NL='tr \040 \012'
4972 lt_NL2SP='tr \015\012 \040\040'
4973 ;;
4974 *) # EBCDIC based system
4975 lt_SP2NL='tr \100 \n'
4976 lt_NL2SP='tr \r\n \100\100'
4977 ;;
4978esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07004988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4989$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4990if ${lt_cv_to_host_file_cmd+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992else
4993 case $host in
4994 *-*-mingw* )
4995 case $build in
4996 *-*-mingw* ) # actually msys
4997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4998 ;;
4999 *-*-cygwin* )
5000 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5001 ;;
5002 * ) # otherwise, assume *nix
5003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5004 ;;
5005 esac
5006 ;;
5007 *-*-cygwin* )
5008 case $build in
5009 *-*-mingw* ) # actually msys
5010 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5011 ;;
5012 *-*-cygwin* )
5013 lt_cv_to_host_file_cmd=func_convert_file_noop
5014 ;;
5015 * ) # otherwise, assume *nix
5016 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5017 ;;
5018 esac
5019 ;;
5020 * ) # unhandled hosts (and "normal" native builds)
5021 lt_cv_to_host_file_cmd=func_convert_file_noop
5022 ;;
5023esac
5024
5025fi
5026
5027to_host_file_cmd=$lt_cv_to_host_file_cmd
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5029$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5030
5031
5032
5033
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5036$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5037if ${lt_cv_to_tool_file_cmd+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039else
5040 #assume ordinary cross tools, or native build.
5041lt_cv_to_tool_file_cmd=func_convert_file_noop
5042case $host in
5043 *-*-mingw* )
5044 case $build in
5045 *-*-mingw* ) # actually msys
5046 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5047 ;;
5048 esac
5049 ;;
5050esac
5051
5052fi
5053
5054to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5056$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5057
5058
5059
5060
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005063$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005064if ${lt_cv_ld_reload_flag+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005065 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005066else
5067 lt_cv_ld_reload_flag='-r'
5068fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005070$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005071reload_flag=$lt_cv_ld_reload_flag
5072case $reload_flag in
5073"" | " "*) ;;
5074*) reload_flag=" $reload_flag" ;;
5075esac
5076reload_cmds='$LD$reload_flag -o $output$reload_objs'
5077case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005078 cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005079 if test yes != "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005080 reload_cmds=false
5081 fi
5082 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005083 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005084 if test yes = "$GCC"; then
5085 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005086 else
5087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088 fi
5089 ;;
5090esac
5091
5092
5093
5094
5095
5096
5097
5098
5099
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005100if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5102set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005104$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005105if ${ac_cv_prog_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005106 $as_echo_n "(cached) " >&6
5107else
5108 if test -n "$OBJDUMP"; then
5109 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5110else
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005118 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005120 break 2
5121 fi
5122done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005123 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005124IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005125
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005126fi
5127fi
5128OBJDUMP=$ac_cv_prog_OBJDUMP
5129if test -n "$OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005131$as_echo "$OBJDUMP" >&6; }
5132else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005134$as_echo "no" >&6; }
5135fi
5136
5137
5138fi
5139if test -z "$ac_cv_prog_OBJDUMP"; then
5140 ac_ct_OBJDUMP=$OBJDUMP
5141 # Extract the first word of "objdump", so it can be a program name with args.
5142set dummy objdump; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005144$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005145if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005146 $as_echo_n "(cached) " >&6
5147else
5148 if test -n "$ac_ct_OBJDUMP"; then
5149 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005158 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005160 break 2
5161 fi
5162done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005163 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005164IFS=$as_save_IFS
5165
5166fi
5167fi
5168ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5169if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005171$as_echo "$ac_ct_OBJDUMP" >&6; }
5172else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005174$as_echo "no" >&6; }
5175fi
5176
5177 if test "x$ac_ct_OBJDUMP" = x; then
5178 OBJDUMP="false"
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184ac_tool_warned=yes ;;
5185esac
5186 OBJDUMP=$ac_ct_OBJDUMP
5187 fi
5188else
5189 OBJDUMP="$ac_cv_prog_OBJDUMP"
5190fi
5191
5192test -z "$OBJDUMP" && OBJDUMP=objdump
5193
5194
5195
5196
5197
5198
5199
5200
5201
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005203$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005204if ${lt_cv_deplibs_check_method+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005205 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005206else
5207 lt_cv_file_magic_cmd='$MAGIC_CMD'
5208lt_cv_file_magic_test_file=
5209lt_cv_deplibs_check_method='unknown'
5210# Need to set the preceding variable on all platforms that support
5211# interlibrary dependencies.
5212# 'none' -- dependencies not supported.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005213# 'unknown' -- same as none, but documents that we really don't know.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005214# 'pass_all' -- all dependencies passed with no checks.
5215# 'test_compile' -- check by making test program.
5216# 'file_magic [[regex]]' -- check by looking for files in library path
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005217# that responds to the $file_magic_cmd with a given extended regex.
5218# If you have 'file' or equivalent on your system and you're not sure
5219# whether 'pass_all' will *always* work, you probably want this one.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005220
5221case $host_os in
5222aix[4-9]*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
5226beos*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5229
5230bsdi[45]*)
5231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5232 lt_cv_file_magic_cmd='/usr/bin/file -L'
5233 lt_cv_file_magic_test_file=/shlib/libc.so
5234 ;;
5235
5236cygwin*)
5237 # func_win32_libid is a shell function defined in ltmain.sh
5238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5239 lt_cv_file_magic_cmd='func_win32_libid'
5240 ;;
5241
5242mingw* | pw32*)
5243 # Base MSYS/MinGW do not provide the 'file' command needed by
5244 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5245 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005246 if ( file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248 lt_cv_file_magic_cmd='func_win32_libid'
5249 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005250 # Keep this pattern in sync with the one in func_win32_libid.
5251 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005252 lt_cv_file_magic_cmd='$OBJDUMP -f'
5253 fi
5254 ;;
5255
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005256cegcc*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005257 # use the weaker test based on 'objdump'. See mingw*.
5258 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5259 lt_cv_file_magic_cmd='$OBJDUMP -f'
5260 ;;
5261
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005262darwin* | rhapsody*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266freebsd* | dragonfly*)
5267 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5268 case $host_cpu in
5269 i*86 )
5270 # Not sure whether the presence of OpenBSD here was a mistake.
5271 # Let's accept both of them until this is cleared up.
5272 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5273 lt_cv_file_magic_cmd=/usr/bin/file
5274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5275 ;;
5276 esac
5277 else
5278 lt_cv_deplibs_check_method=pass_all
5279 fi
5280 ;;
5281
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005282haiku*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005286hpux10.20* | hpux11*)
5287 lt_cv_file_magic_cmd=/usr/bin/file
5288 case $host_cpu in
5289 ia64*)
5290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5291 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5292 ;;
5293 hppa*64*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005294 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]'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005295 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5296 ;;
5297 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005299 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5300 ;;
5301 esac
5302 ;;
5303
5304interix[3-9]*)
5305 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5307 ;;
5308
5309irix5* | irix6* | nonstopux*)
5310 case $LD in
5311 *-32|*"-32 ") libmagic=32-bit;;
5312 *-n32|*"-n32 ") libmagic=N32;;
5313 *-64|*"-64 ") libmagic=64-bit;;
5314 *) libmagic=never-match;;
5315 esac
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005319# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005320linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323
5324netbsd*)
5325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5327 else
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5329 fi
5330 ;;
5331
5332newos6*)
5333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5334 lt_cv_file_magic_cmd=/usr/bin/file
5335 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5336 ;;
5337
5338*nto* | *qnx*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005342openbsd* | bitrig*)
5343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5345 else
5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5347 fi
5348 ;;
5349
5350osf3* | osf4* | osf5*)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
5354rdos*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358solaris*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366sysv4 | sysv4.3*)
5367 case $host_vendor in
5368 motorola)
5369 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]'
5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5371 ;;
5372 ncr)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375 sequent)
5376 lt_cv_file_magic_cmd='/bin/file'
5377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5378 ;;
5379 sni)
5380 lt_cv_file_magic_cmd='/bin/file'
5381 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5382 lt_cv_file_magic_test_file=/lib/libc.so
5383 ;;
5384 siemens)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387 pc)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390 esac
5391 ;;
5392
5393tpf*)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005396os2*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005399esac
5400
5401fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005403$as_echo "$lt_cv_deplibs_check_method" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005404
5405file_magic_glob=
5406want_nocaseglob=no
5407if test "$build" = "$host"; then
5408 case $host_os in
5409 mingw* | pw32*)
5410 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5411 want_nocaseglob=yes
5412 else
5413 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5414 fi
5415 ;;
5416 esac
5417fi
5418
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005419file_magic_cmd=$lt_cv_file_magic_cmd
5420deplibs_check_method=$lt_cv_deplibs_check_method
5421test -z "$deplibs_check_method" && deplibs_check_method=unknown
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005434
5435
5436
5437
5438
5439
5440
5441
5442
5443
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005444if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005445 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5446set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005448$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005449if ${ac_cv_prog_DLLTOOL+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451else
5452 if test -n "$DLLTOOL"; then
5453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466done
5467 done
5468IFS=$as_save_IFS
5469
5470fi
5471fi
5472DLLTOOL=$ac_cv_prog_DLLTOOL
5473if test -n "$DLLTOOL"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5475$as_echo "$DLLTOOL" >&6; }
5476else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478$as_echo "no" >&6; }
5479fi
5480
5481
5482fi
5483if test -z "$ac_cv_prog_DLLTOOL"; then
5484 ac_ct_DLLTOOL=$DLLTOOL
5485 # Extract the first word of "dlltool", so it can be a program name with args.
5486set dummy dlltool; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 if test -n "$ac_ct_DLLTOOL"; then
5493 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506done
5507 done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5513if test -n "$ac_ct_DLLTOOL"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5515$as_echo "$ac_ct_DLLTOOL" >&6; }
5516else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521 if test "x$ac_ct_DLLTOOL" = x; then
5522 DLLTOOL="false"
5523 else
5524 case $cross_compiling:$ac_tool_warned in
5525yes:)
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528ac_tool_warned=yes ;;
5529esac
5530 DLLTOOL=$ac_ct_DLLTOOL
5531 fi
5532else
5533 DLLTOOL="$ac_cv_prog_DLLTOOL"
5534fi
5535
5536test -z "$DLLTOOL" && DLLTOOL=dlltool
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5548$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5549if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 lt_cv_sharedlib_from_linklib_cmd='unknown'
5553
5554case $host_os in
5555cygwin* | mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005556 # two different shell functions defined in ltmain.sh;
5557 # decide which one to use based on capabilities of $DLLTOOL
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005558 case `$DLLTOOL --help 2>&1` in
5559 *--identify-strict*)
5560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5561 ;;
5562 *)
5563 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5564 ;;
5565 esac
5566 ;;
5567*)
5568 # fallback: assume linklib IS sharedlib
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005569 lt_cv_sharedlib_from_linklib_cmd=$ECHO
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005570 ;;
5571esac
5572
5573fi
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5575$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5576sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5577test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5578
5579
5580
5581
5582
5583
5584
5585
5586if test -n "$ac_tool_prefix"; then
5587 for ac_prog in ar
5588 do
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592$as_echo_n "checking for $ac_word... " >&6; }
5593if ${ac_cv_prog_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005594 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005595else
5596 if test -n "$AR"; then
5597 ac_cv_prog_AR="$AR" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005608 break 2
5609 fi
5610done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005611 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005612IFS=$as_save_IFS
5613
5614fi
5615fi
5616AR=$ac_cv_prog_AR
5617if test -n "$AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005619$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005620else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005622$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005623fi
5624
5625
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005626 test -n "$AR" && break
5627 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005628fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005629if test -z "$AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005630 ac_ct_AR=$AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005631 for ac_prog in ar
5632do
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634set dummy $ac_prog; ac_word=$2
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005636$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005637if ${ac_cv_prog_ac_ct_AR+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005638 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005639else
5640 if test -n "$ac_ct_AR"; then
5641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_ac_ct_AR="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005652 break 2
5653 fi
5654done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005655 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005656IFS=$as_save_IFS
5657
5658fi
5659fi
5660ac_ct_AR=$ac_cv_prog_ac_ct_AR
5661if test -n "$ac_ct_AR"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005663$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005664else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005666$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005667fi
5668
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005669
5670 test -n "$ac_ct_AR" && break
5671done
5672
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005673 if test "x$ac_ct_AR" = x; then
5674 AR="false"
5675 else
5676 case $cross_compiling:$ac_tool_warned in
5677yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005680ac_tool_warned=yes ;;
5681esac
5682 AR=$ac_ct_AR
5683 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005684fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005685
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005686: ${AR=ar}
5687: ${AR_FLAGS=cru}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005688
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005689
5690
5691
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005692
5693
5694
5695
5696
5697
5698
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5700$as_echo_n "checking for archiver @FILE support... " >&6; }
5701if ${lt_cv_ar_at_file+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703else
5704 lt_cv_ar_at_file=no
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706/* end confdefs.h. */
5707
5708int
5709main ()
5710{
5711
5712 ;
5713 return 0;
5714}
5715_ACEOF
5716if ac_fn_c_try_compile "$LINENO"; then :
5717 echo conftest.$ac_objext > conftest.lst
5718 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5720 (eval $lt_ar_try) 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005724 if test 0 -eq "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005725 # Ensure the archiver fails upon bogus file names.
5726 rm -f conftest.$ac_objext libconftest.a
5727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5728 (eval $lt_ar_try) 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005732 if test 0 -ne "$ac_status"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005733 lt_cv_ar_at_file=@
5734 fi
5735 fi
5736 rm -f conftest.* libconftest.a
5737
5738fi
5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5743$as_echo "$lt_cv_ar_at_file" >&6; }
5744
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005745if test no = "$lt_cv_ar_at_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005746 archiver_list_spec=
5747else
5748 archiver_list_spec=$lt_cv_ar_at_file
5749fi
5750
5751
5752
5753
5754
5755
5756
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005757if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5759set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005761$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005762if ${ac_cv_prog_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005763 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005764else
5765 if test -n "$STRIP"; then
5766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005777 break 2
5778 fi
5779done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005780 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005781IFS=$as_save_IFS
5782
5783fi
5784fi
5785STRIP=$ac_cv_prog_STRIP
5786if test -n "$STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005788$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005789else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005791$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005792fi
5793
5794
5795fi
5796if test -z "$ac_cv_prog_STRIP"; then
5797 ac_ct_STRIP=$STRIP
5798 # Extract the first word of "strip", so it can be a program name with args.
5799set dummy strip; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005801$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005802if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005803 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005804else
5805 if test -n "$ac_ct_STRIP"; then
5806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5807else
5808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809for as_dir in $PATH
5810do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005815 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005817 break 2
5818 fi
5819done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005820 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005821IFS=$as_save_IFS
5822
5823fi
5824fi
5825ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5826if test -n "$ac_ct_STRIP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005828$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005829else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005831$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005832fi
5833
5834 if test "x$ac_ct_STRIP" = x; then
5835 STRIP=":"
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005841ac_tool_warned=yes ;;
5842esac
5843 STRIP=$ac_ct_STRIP
5844 fi
5845else
5846 STRIP="$ac_cv_prog_STRIP"
5847fi
5848
5849test -z "$STRIP" && STRIP=:
5850
5851
5852
5853
5854
5855
5856if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005860$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005861if ${ac_cv_prog_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005862 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005863else
5864 if test -n "$RANLIB"; then
5865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005876 break 2
5877 fi
5878done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005879 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005880IFS=$as_save_IFS
5881
5882fi
5883fi
5884RANLIB=$ac_cv_prog_RANLIB
5885if test -n "$RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005887$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005888else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005890$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005891fi
5892
5893
5894fi
5895if test -z "$ac_cv_prog_RANLIB"; then
5896 ac_ct_RANLIB=$RANLIB
5897 # Extract the first word of "ranlib", so it can be a program name with args.
5898set dummy ranlib; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005900$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005901if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005902 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005903else
5904 if test -n "$ac_ct_RANLIB"; then
5905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005914 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005916 break 2
5917 fi
5918done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005919 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005920IFS=$as_save_IFS
5921
5922fi
5923fi
5924ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5925if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005927$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005928else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005930$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005931fi
5932
5933 if test "x$ac_ct_RANLIB" = x; then
5934 RANLIB=":"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005940ac_tool_warned=yes ;;
5941esac
5942 RANLIB=$ac_ct_RANLIB
5943 fi
5944else
5945 RANLIB="$ac_cv_prog_RANLIB"
5946fi
5947
5948test -z "$RANLIB" && RANLIB=:
5949
5950
5951
5952
5953
5954
5955# Determine commands to create old-style static archives.
5956old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5957old_postinstall_cmds='chmod 644 $oldlib'
5958old_postuninstall_cmds=
5959
5960if test -n "$RANLIB"; then
5961 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08005962 bitrig* | openbsd*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005964 ;;
5965 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005967 ;;
5968 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005970fi
5971
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07005972case $host_os in
5973 darwin*)
5974 lock_old_archive_extraction=yes ;;
5975 *)
5976 lock_old_archive_extraction=no ;;
5977esac
5978
5979
5980
5981
5982
5983
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017# If no C compiler was specified, use CC.
6018LTCC=${LTCC-"$CC"}
6019
6020# If no C compiler flags were specified, use CFLAGS.
6021LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6022
6023# Allow CC to be a program name with arguments.
6024compiler=$CC
6025
6026
jef56a97f92012-08-20 14:35:58 -07006027# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006029$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006030if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006031 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07006032else
Jon Dugane34c20c2010-07-08 23:26:52 +00006033
jef56a97f92012-08-20 14:35:58 -07006034# These are sane defaults that work on at least a few old systems.
6035# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6036
6037# Character class describing NM global symbol codes.
6038symcode='[BCDEGRST]'
6039
6040# Regexp to match symbols that can be accessed directly from C.
6041sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6042
jef56a97f92012-08-20 14:35:58 -07006043# Define system-specific variables.
6044case $host_os in
6045aix*)
6046 symcode='[BCDT]'
6047 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006048cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07006049 symcode='[ABCDGISTW]'
6050 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006051hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006052 if test ia64 = "$host_cpu"; then
jef56a97f92012-08-20 14:35:58 -07006053 symcode='[ABCDEGRST]'
6054 fi
jef56a97f92012-08-20 14:35:58 -07006055 ;;
6056irix* | nonstopux*)
6057 symcode='[BCDEGRST]'
6058 ;;
6059osf*)
6060 symcode='[BCDEGQRST]'
6061 ;;
6062solaris*)
6063 symcode='[BDRT]'
6064 ;;
6065sco3.2v5*)
6066 symcode='[DT]'
6067 ;;
6068sysv4.2uw2*)
6069 symcode='[DT]'
6070 ;;
6071sysv5* | sco5v6* | unixware* | OpenUNIX*)
6072 symcode='[ABDT]'
6073 ;;
6074sysv4)
6075 symcode='[DFNSTU]'
6076 ;;
6077esac
6078
jef56a97f92012-08-20 14:35:58 -07006079# If we're using GNU nm, then use its standard symbol codes.
6080case `$NM -V 2>&1` in
6081*GNU* | *'with BFD'*)
6082 symcode='[ABCDGIRSTW]' ;;
6083esac
6084
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006085if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6086 # Gets list of data symbols to import.
6087 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6088 # Adjust the below global symbol transforms to fixup imported variables.
6089 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6090 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6091 lt_c_name_lib_hook="\
6092 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6093 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6094else
6095 # Disable hooks by default.
6096 lt_cv_sys_global_symbol_to_import=
6097 lt_cdecl_hook=
6098 lt_c_name_hook=
6099 lt_c_name_lib_hook=
6100fi
6101
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006102# Transform an extracted symbol line into a proper C declaration.
6103# Some systems (esp. on ia64) link data and code symbols differently,
6104# so use this general approach.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006105lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6106$lt_cdecl_hook\
6107" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6108" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006109
6110# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006111lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6112$lt_c_name_hook\
6113" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6114" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6115
6116# Transform an extracted symbol line into symbol name with lib prefix and
6117# symbol address.
6118lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6119$lt_c_name_lib_hook\
6120" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6121" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6122" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006123
6124# Handle CRLF in mingw tool chain
6125opt_cr=
6126case $build_os in
6127mingw*)
6128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6129 ;;
6130esac
6131
6132# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07006133for ac_symprfx in "" "_"; do
6134
6135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6136 symxfrm="\\1 $ac_symprfx\\2 \\2"
6137
6138 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006140 # Fake it for dumpbin and say T for any non-static function,
6141 # D for any global variable and I for any imported variable.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006142 # Also find C++ and __fastcall symbols from MSVC++,
6143 # which start with @ or ?.
6144 lt_cv_sys_global_symbol_pipe="$AWK '"\
6145" {last_section=section; section=\$ 3};"\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006146" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006147" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006148" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6149" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6150" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006151" \$ 0!~/External *\|/{next};"\
6152" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6153" {if(hide[section]) next};"\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006154" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6155" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6156" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6157" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006158" ' prfx=^$ac_symprfx"
6159 else
6160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6161 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006162 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
jef56a97f92012-08-20 14:35:58 -07006163
6164 # Check to see that the pipe works correctly.
6165 pipe_works=no
6166
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006167 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006168 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006169#ifdef __cplusplus
6170extern "C" {
6171#endif
6172char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006173void nm_test_func(void);
6174void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07006175#ifdef __cplusplus
6176}
6177#endif
6178int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006179_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006180
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006182 (eval $ac_compile) 2>&5
6183 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }; then
jef56a97f92012-08-20 14:35:58 -07006186 # Now try to grab the symbols.
6187 nlist=conftest.nm
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6189 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07006190 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07006193 # Try sorting and uniquifying the output.
6194 if sort "$nlist" | uniq > "$nlist"T; then
6195 mv -f "$nlist"T "$nlist"
6196 else
6197 rm -f "$nlist"T
6198 fi
6199
6200 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006201 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6202 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6203 cat <<_LT_EOF > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006204/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006205#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6206/* DATA imports from DLLs on WIN32 can't be const, because runtime
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006207 relocations are performed -- see ld's documentation on pseudo-relocs. */
6208# define LT_DLSYM_CONST
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006209#elif defined __osf__
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006210/* This system does not cope well with relocations in const data. */
6211# define LT_DLSYM_CONST
6212#else
6213# define LT_DLSYM_CONST const
6214#endif
6215
jef56a97f92012-08-20 14:35:58 -07006216#ifdef __cplusplus
6217extern "C" {
6218#endif
6219
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006220_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006221 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006222 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07006223
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006224 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07006225
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006226/* The mapping between symbol names and symbols. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006227LT_DLSYM_CONST struct {
jef56a97f92012-08-20 14:35:58 -07006228 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006229 void *address;
jef56a97f92012-08-20 14:35:58 -07006230}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006231lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07006232{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006233 { "@PROGRAM@", (void *) 0 },
6234_LT_EOF
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006235 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006236 cat <<\_LT_EOF >> conftest.$ac_ext
6237 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07006238};
6239
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006240/* This works around a problem in FreeBSD linker */
6241#ifdef FREEBSD_WORKAROUND
6242static const void *lt_preloaded_setup() {
6243 return lt__PROGRAM__LTX_preloaded_symbols;
6244}
6245#endif
6246
jef56a97f92012-08-20 14:35:58 -07006247#ifdef __cplusplus
6248}
6249#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006250_LT_EOF
jef56a97f92012-08-20 14:35:58 -07006251 # Now try linking the two files.
6252 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006253 lt_globsym_save_LIBS=$LIBS
6254 lt_globsym_save_CFLAGS=$CFLAGS
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006255 LIBS=conftstm.$ac_objext
jef56a97f92012-08-20 14:35:58 -07006256 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
jef56a97f92012-08-20 14:35:58 -07006258 (eval $ac_link) 2>&5
6259 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006261 test $ac_status = 0; } && test -s conftest$ac_exeext; then
jef56a97f92012-08-20 14:35:58 -07006262 pipe_works=yes
6263 fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006264 LIBS=$lt_globsym_save_LIBS
6265 CFLAGS=$lt_globsym_save_CFLAGS
jef56a97f92012-08-20 14:35:58 -07006266 else
6267 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00006268 fi
jef56a97f92012-08-20 14:35:58 -07006269 else
6270 echo "cannot find nm_test_var in $nlist" >&5
6271 fi
6272 else
6273 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6274 fi
6275 else
6276 echo "$progname: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6278 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006279 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07006280
6281 # Do not use the global_symbol_pipe unless it works.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006282 if test yes = "$pipe_works"; then
jef56a97f92012-08-20 14:35:58 -07006283 break
6284 else
6285 lt_cv_sys_global_symbol_pipe=
6286 fi
6287done
6288
Jon Dugane34c20c2010-07-08 23:26:52 +00006289fi
6290
jef56a97f92012-08-20 14:35:58 -07006291if test -z "$lt_cv_sys_global_symbol_pipe"; then
6292 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00006293fi
jef56a97f92012-08-20 14:35:58 -07006294if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006296$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00006297else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006299$as_echo "ok" >&6; }
6300fi
6301
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006302# Response file support.
6303if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6304 nm_file_list_spec='@'
6305elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6306 nm_file_list_spec='@'
6307fi
6308
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006309
Jon Dugane34c20c2010-07-08 23:26:52 +00006310
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006331
6332
6333
6334
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006335
6336
6337
6338
6339
6340
6341
6342
6343
6344
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6346$as_echo_n "checking for sysroot... " >&6; }
6347
6348# Check whether --with-sysroot was given.
6349if test "${with_sysroot+set}" = set; then :
6350 withval=$with_sysroot;
6351else
6352 with_sysroot=no
6353fi
6354
6355
6356lt_sysroot=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006357case $with_sysroot in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006358 yes)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006359 if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006360 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6361 fi
6362 ;; #(
6363 /*)
6364 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6365 ;; #(
6366 no|'')
6367 ;; #(
6368 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6370$as_echo "$with_sysroot" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006371 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6372 ;;
6373esac
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6376$as_echo "${lt_sysroot:-no}" >&6; }
6377
6378
6379
6380
6381
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6383$as_echo_n "checking for a working dd... " >&6; }
6384if ${ac_cv_path_lt_DD+:} false; then :
6385 $as_echo_n "(cached) " >&6
6386else
6387 printf 0123456789abcdef0123456789abcdef >conftest.i
6388cat conftest.i conftest.i >conftest2.i
6389: ${lt_DD:=$DD}
6390if test -z "$lt_DD"; then
6391 ac_path_lt_DD_found=false
6392 # Loop through the user's path and test for each of PROGNAME-LIST
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_prog in dd; do
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6401 as_fn_executable_p "$ac_path_lt_DD" || continue
6402if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6403 cmp -s conftest.i conftest.out \
6404 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6405fi
6406 $ac_path_lt_DD_found && break 3
6407 done
6408 done
6409 done
6410IFS=$as_save_IFS
6411 if test -z "$ac_cv_path_lt_DD"; then
6412 :
6413 fi
6414else
6415 ac_cv_path_lt_DD=$lt_DD
6416fi
6417
6418rm -f conftest.i conftest2.i conftest.out
6419fi
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6421$as_echo "$ac_cv_path_lt_DD" >&6; }
6422
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6425$as_echo_n "checking how to truncate binary pipes... " >&6; }
6426if ${lt_cv_truncate_bin+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428else
6429 printf 0123456789abcdef0123456789abcdef >conftest.i
6430cat conftest.i conftest.i >conftest2.i
6431lt_cv_truncate_bin=
6432if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6433 cmp -s conftest.i conftest.out \
6434 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6435fi
6436rm -f conftest.i conftest2.i conftest.out
6437test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6440$as_echo "$lt_cv_truncate_bin" >&6; }
6441
6442
6443
6444
6445
6446
Bruce A. Mah54615792015-05-11 10:42:44 -07006447
6448# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6449func_cc_basename ()
6450{
6451 for cc_temp in $*""; do
6452 case $cc_temp in
6453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6455 \-*) ;;
6456 *) break;;
6457 esac
6458 done
6459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6460}
6461
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006462# Check whether --enable-libtool-lock was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006463if test "${enable_libtool_lock+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006464 enableval=$enable_libtool_lock;
6465fi
6466
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006467test no = "$enable_libtool_lock" || enable_libtool_lock=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006468
6469# Some flags need to be propagated to the compiler or linker for good
6470# libtool support.
6471case $host in
6472ia64-*-hpux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006473 # Find out what ABI is being produced by ac_compile, and set mode
6474 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006475 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006477 (eval $ac_compile) 2>&5
6478 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006481 case `/usr/bin/file conftest.$ac_objext` in
6482 *ELF-32*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006483 HPUX_IA64_MODE=32
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006484 ;;
6485 *ELF-64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006486 HPUX_IA64_MODE=64
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006487 ;;
6488 esac
6489 fi
6490 rm -rf conftest*
6491 ;;
6492*-*-irix6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006493 # Find out what ABI is being produced by ac_compile, and set linker
6494 # options accordingly.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006495 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006497 (eval $ac_compile) 2>&5
6498 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006501 if test yes = "$lt_cv_prog_gnu_ld"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006502 case `/usr/bin/file conftest.$ac_objext` in
6503 *32-bit*)
6504 LD="${LD-ld} -melf32bsmip"
6505 ;;
6506 *N32*)
6507 LD="${LD-ld} -melf32bmipn32"
6508 ;;
6509 *64-bit*)
6510 LD="${LD-ld} -melf64bmip"
6511 ;;
6512 esac
6513 else
6514 case `/usr/bin/file conftest.$ac_objext` in
6515 *32-bit*)
6516 LD="${LD-ld} -32"
6517 ;;
6518 *N32*)
6519 LD="${LD-ld} -n32"
6520 ;;
6521 *64-bit*)
6522 LD="${LD-ld} -64"
6523 ;;
6524 esac
6525 fi
6526 fi
6527 rm -rf conftest*
6528 ;;
6529
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006530mips64*-*linux*)
6531 # Find out what ABI is being produced by ac_compile, and set linker
6532 # options accordingly.
6533 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6535 (eval $ac_compile) 2>&5
6536 ac_status=$?
6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; }; then
6539 emul=elf
6540 case `/usr/bin/file conftest.$ac_objext` in
6541 *32-bit*)
6542 emul="${emul}32"
6543 ;;
6544 *64-bit*)
6545 emul="${emul}64"
6546 ;;
6547 esac
6548 case `/usr/bin/file conftest.$ac_objext` in
6549 *MSB*)
6550 emul="${emul}btsmip"
6551 ;;
6552 *LSB*)
6553 emul="${emul}ltsmip"
6554 ;;
6555 esac
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *N32*)
6558 emul="${emul}n32"
6559 ;;
6560 esac
6561 LD="${LD-ld} -m $emul"
6562 fi
6563 rm -rf conftest*
6564 ;;
6565
6566x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006567s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006568 # Find out what ABI is being produced by ac_compile, and set linker
6569 # options accordingly. Note that the listed cases only cover the
6570 # situations where additional linker options are needed (such as when
6571 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6572 # vice versa); the common cases where no linker options are needed do
6573 # not appear in the list.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006574 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006576 (eval $ac_compile) 2>&5
6577 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6579 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006580 case `/usr/bin/file conftest.o` in
6581 *32-bit*)
6582 case $host in
6583 x86_64-*kfreebsd*-gnu)
6584 LD="${LD-ld} -m elf_i386_fbsd"
6585 ;;
6586 x86_64-*linux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006587 case `/usr/bin/file conftest.o` in
6588 *x86-64*)
6589 LD="${LD-ld} -m elf32_x86_64"
6590 ;;
6591 *)
6592 LD="${LD-ld} -m elf_i386"
6593 ;;
6594 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006595 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006596 powerpc64le-*linux*)
6597 LD="${LD-ld} -m elf32lppclinux"
6598 ;;
6599 powerpc64-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006600 LD="${LD-ld} -m elf32ppclinux"
6601 ;;
6602 s390x-*linux*)
6603 LD="${LD-ld} -m elf_s390"
6604 ;;
6605 sparc64-*linux*)
6606 LD="${LD-ld} -m elf32_sparc"
6607 ;;
6608 esac
6609 ;;
6610 *64-bit*)
6611 case $host in
6612 x86_64-*kfreebsd*-gnu)
6613 LD="${LD-ld} -m elf_x86_64_fbsd"
6614 ;;
6615 x86_64-*linux*)
6616 LD="${LD-ld} -m elf_x86_64"
6617 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006618 powerpcle-*linux*)
6619 LD="${LD-ld} -m elf64lppc"
6620 ;;
6621 powerpc-*linux*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006622 LD="${LD-ld} -m elf64ppc"
6623 ;;
6624 s390*-*linux*|s390*-*tpf*)
6625 LD="${LD-ld} -m elf64_s390"
6626 ;;
6627 sparc*-*linux*)
6628 LD="${LD-ld} -m elf64_sparc"
6629 ;;
6630 esac
6631 ;;
6632 esac
6633 fi
6634 rm -rf conftest*
6635 ;;
6636
6637*-*-sco3.2v5*)
6638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006639 SAVE_CFLAGS=$CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006640 CFLAGS="$CFLAGS -belf"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006642$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006643if ${lt_cv_cc_needs_belf+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006644 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006645else
6646 ac_ext=c
6647ac_cpp='$CPP $CPPFLAGS'
6648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650ac_compiler_gnu=$ac_cv_c_compiler_gnu
6651
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006653/* end confdefs.h. */
6654
6655int
6656main ()
6657{
6658
6659 ;
6660 return 0;
6661}
6662_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006663if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006664 lt_cv_cc_needs_belf=yes
6665else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006666 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006667fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006668rm -f core conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006670 ac_ext=c
6671ac_cpp='$CPP $CPPFLAGS'
6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006678$as_echo "$lt_cv_cc_needs_belf" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006679 if test yes != "$lt_cv_cc_needs_belf"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006681 CFLAGS=$SAVE_CFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006682 fi
6683 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006684*-*solaris*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006685 # Find out what ABI is being produced by ac_compile, and set linker
6686 # options accordingly.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006687 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006689 (eval $ac_compile) 2>&5
6690 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006693 case `/usr/bin/file conftest.o` in
6694 *64-bit*)
6695 case $lt_cv_prog_gnu_ld in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006696 yes*)
6697 case $host in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006698 i?86-*-solaris*|x86_64-*-solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006699 LD="${LD-ld} -m elf_x86_64"
6700 ;;
6701 sparc*-*-solaris*)
6702 LD="${LD-ld} -m elf64_sparc"
6703 ;;
6704 esac
6705 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6706 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006707 LD=${LD-ld}_sol2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006708 fi
6709 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006710 *)
6711 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6712 LD="${LD-ld} -64"
6713 fi
6714 ;;
6715 esac
6716 ;;
6717 esac
6718 fi
6719 rm -rf conftest*
6720 ;;
6721esac
6722
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006723need_locks=$enable_libtool_lock
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006724
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006725if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6727set dummy ${ac_tool_prefix}mt; ac_word=$2
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729$as_echo_n "checking for $ac_word... " >&6; }
6730if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732else
6733 if test -n "$MANIFEST_TOOL"; then
6734 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6735else
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748 done
6749IFS=$as_save_IFS
6750
6751fi
6752fi
6753MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6754if test -n "$MANIFEST_TOOL"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6756$as_echo "$MANIFEST_TOOL" >&6; }
6757else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760fi
6761
6762
6763fi
6764if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6765 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6766 # Extract the first word of "mt", so it can be a program name with args.
6767set dummy mt; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
6770if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772else
6773 if test -n "$ac_ct_MANIFEST_TOOL"; then
6774 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788 done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6794if test -n "$ac_ct_MANIFEST_TOOL"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6796$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6797else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6803 MANIFEST_TOOL=":"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806yes:)
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809ac_tool_warned=yes ;;
6810esac
6811 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6812 fi
6813else
6814 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6815fi
6816
6817test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6819$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6820if ${lt_cv_path_mainfest_tool+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823 lt_cv_path_mainfest_tool=no
6824 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6825 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6826 cat conftest.err >&5
6827 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6828 lt_cv_path_mainfest_tool=yes
6829 fi
6830 rm -f conftest*
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6833$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08006834if test yes != "$lt_cv_path_mainfest_tool"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006835 MANIFEST_TOOL=:
6836fi
6837
6838
6839
6840
6841
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006842
6843 case $host_os in
6844 rhapsody* | darwin*)
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6847set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006849$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006850if ${ac_cv_prog_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006851 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006852else
6853 if test -n "$DSYMUTIL"; then
6854 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006863 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006865 break 2
6866 fi
6867done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006868 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006869IFS=$as_save_IFS
6870
6871fi
6872fi
6873DSYMUTIL=$ac_cv_prog_DSYMUTIL
6874if test -n "$DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006876$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006877else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006879$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006880fi
6881
6882
6883fi
6884if test -z "$ac_cv_prog_DSYMUTIL"; then
6885 ac_ct_DSYMUTIL=$DSYMUTIL
6886 # Extract the first word of "dsymutil", so it can be a program name with args.
6887set dummy dsymutil; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006889$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006890if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006891 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006892else
6893 if test -n "$ac_ct_DSYMUTIL"; then
6894 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6895else
6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006903 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006905 break 2
6906 fi
6907done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006908 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006909IFS=$as_save_IFS
6910
6911fi
6912fi
6913ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6914if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006916$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006917else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006919$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006920fi
6921
6922 if test "x$ac_ct_DSYMUTIL" = x; then
6923 DSYMUTIL=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006929ac_tool_warned=yes ;;
6930esac
6931 DSYMUTIL=$ac_ct_DSYMUTIL
6932 fi
6933else
6934 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6935fi
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6939set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006941$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006942if ${ac_cv_prog_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006943 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006944else
6945 if test -n "$NMEDIT"; then
6946 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006955 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006957 break 2
6958 fi
6959done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006960 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006961IFS=$as_save_IFS
6962
6963fi
6964fi
6965NMEDIT=$ac_cv_prog_NMEDIT
6966if test -n "$NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006968$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006969else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006971$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006972fi
6973
6974
6975fi
6976if test -z "$ac_cv_prog_NMEDIT"; then
6977 ac_ct_NMEDIT=$NMEDIT
6978 # Extract the first word of "nmedit", so it can be a program name with args.
6979set dummy nmedit; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006981$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006982if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006983 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006984else
6985 if test -n "$ac_ct_NMEDIT"; then
6986 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6987else
6988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006995 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07006996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006997 break 2
6998 fi
6999done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007000 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007001IFS=$as_save_IFS
7002
7003fi
7004fi
7005ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7006if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007008$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007009else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007011$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007012fi
7013
7014 if test "x$ac_ct_NMEDIT" = x; then
7015 NMEDIT=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007021ac_tool_warned=yes ;;
7022esac
7023 NMEDIT=$ac_ct_NMEDIT
7024 fi
7025else
7026 NMEDIT="$ac_cv_prog_NMEDIT"
7027fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007033$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007034if ${ac_cv_prog_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007035 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007036else
7037 if test -n "$LIPO"; then
7038 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007047 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007049 break 2
7050 fi
7051done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007052 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007053IFS=$as_save_IFS
7054
7055fi
7056fi
7057LIPO=$ac_cv_prog_LIPO
7058if test -n "$LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007060$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007061else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007063$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007064fi
7065
7066
7067fi
7068if test -z "$ac_cv_prog_LIPO"; then
7069 ac_ct_LIPO=$LIPO
7070 # Extract the first word of "lipo", so it can be a program name with args.
7071set dummy lipo; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007073$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007074if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007075 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007076else
7077 if test -n "$ac_ct_LIPO"; then
7078 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007087 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007089 break 2
7090 fi
7091done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007092 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007093IFS=$as_save_IFS
7094
7095fi
7096fi
7097ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7098if test -n "$ac_ct_LIPO"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007100$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007101else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007103$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007104fi
7105
7106 if test "x$ac_ct_LIPO" = x; then
7107 LIPO=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007113ac_tool_warned=yes ;;
7114esac
7115 LIPO=$ac_ct_LIPO
7116 fi
7117else
7118 LIPO="$ac_cv_prog_LIPO"
7119fi
7120
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7123set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007125$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007126if ${ac_cv_prog_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007127 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007128else
7129 if test -n "$OTOOL"; then
7130 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007139 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007141 break 2
7142 fi
7143done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007144 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007145IFS=$as_save_IFS
7146
7147fi
7148fi
7149OTOOL=$ac_cv_prog_OTOOL
7150if test -n "$OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007152$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007153else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007155$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007156fi
7157
7158
7159fi
7160if test -z "$ac_cv_prog_OTOOL"; then
7161 ac_ct_OTOOL=$OTOOL
7162 # Extract the first word of "otool", so it can be a program name with args.
7163set dummy otool; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007165$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007166if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007167 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007168else
7169 if test -n "$ac_ct_OTOOL"; then
7170 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007179 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007181 break 2
7182 fi
7183done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007184 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007185IFS=$as_save_IFS
7186
7187fi
7188fi
7189ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7190if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007192$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007193else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007195$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007196fi
7197
7198 if test "x$ac_ct_OTOOL" = x; then
7199 OTOOL=":"
7200 else
7201 case $cross_compiling:$ac_tool_warned in
7202yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007205ac_tool_warned=yes ;;
7206esac
7207 OTOOL=$ac_ct_OTOOL
7208 fi
7209else
7210 OTOOL="$ac_cv_prog_OTOOL"
7211fi
7212
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7215set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007217$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007218if ${ac_cv_prog_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007219 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007220else
7221 if test -n "$OTOOL64"; then
7222 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007231 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007233 break 2
7234 fi
7235done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007236 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007237IFS=$as_save_IFS
7238
7239fi
7240fi
7241OTOOL64=$ac_cv_prog_OTOOL64
7242if test -n "$OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007244$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007245else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007247$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007248fi
7249
7250
7251fi
7252if test -z "$ac_cv_prog_OTOOL64"; then
7253 ac_ct_OTOOL64=$OTOOL64
7254 # Extract the first word of "otool64", so it can be a program name with args.
7255set dummy otool64; ac_word=$2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007257$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007258if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007259 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007260else
7261 if test -n "$ac_ct_OTOOL64"; then
7262 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007271 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007273 break 2
7274 fi
7275done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007276 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007277IFS=$as_save_IFS
7278
7279fi
7280fi
7281ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7282if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007284$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007285else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007287$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007288fi
7289
7290 if test "x$ac_ct_OTOOL64" = x; then
7291 OTOOL64=":"
7292 else
7293 case $cross_compiling:$ac_tool_warned in
7294yes:)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007297ac_tool_warned=yes ;;
7298esac
7299 OTOOL64=$ac_ct_OTOOL64
7300 fi
7301else
7302 OTOOL64="$ac_cv_prog_OTOOL64"
7303fi
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007332$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007333if ${lt_cv_apple_cc_single_mod+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007334 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007335else
7336 lt_cv_apple_cc_single_mod=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007337 if test -z "$LT_MULTI_MODULE"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007338 # By default we will add the -single_module flag. You can override
7339 # by either setting the environment variable LT_MULTI_MODULE
7340 # non-empty at configure time, or by adding -multi_module to the
7341 # link flags.
7342 rm -rf libconftest.dylib*
7343 echo "int foo(void){return 1;}" > conftest.c
7344 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7345-dynamiclib -Wl,-single_module conftest.c" >&5
7346 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7347 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7348 _lt_result=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007349 # If there is a non-empty error log, and "single_module"
7350 # appears in it, assume the flag caused a linker warning
7351 if test -s conftest.err && $GREP single_module conftest.err; then
7352 cat conftest.err >&5
7353 # Otherwise, if the output was created with a 0 exit code from
7354 # the compiler, it worked.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007355 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007356 lt_cv_apple_cc_single_mod=yes
7357 else
7358 cat conftest.err >&5
7359 fi
7360 rm -rf libconftest.dylib*
7361 rm -f conftest.*
7362 fi
7363fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007365$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007366
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007368$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007369if ${lt_cv_ld_exported_symbols_list+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007370 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007371else
7372 lt_cv_ld_exported_symbols_list=no
7373 save_LDFLAGS=$LDFLAGS
7374 echo "_main" > conftest.sym
7375 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007377/* end confdefs.h. */
7378
7379int
7380main ()
7381{
7382
7383 ;
7384 return 0;
7385}
7386_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007387if ac_fn_c_try_link "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007388 lt_cv_ld_exported_symbols_list=yes
7389else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007390 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007391fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007392rm -f core conftest.err conftest.$ac_objext \
7393 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007394 LDFLAGS=$save_LDFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007395
7396fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007398$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7401$as_echo_n "checking for -force_load linker flag... " >&6; }
7402if ${lt_cv_ld_force_load+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404else
7405 lt_cv_ld_force_load=no
7406 cat > conftest.c << _LT_EOF
7407int forced_loaded() { return 2;}
7408_LT_EOF
7409 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7410 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7411 echo "$AR cru libconftest.a conftest.o" >&5
7412 $AR cru libconftest.a conftest.o 2>&5
7413 echo "$RANLIB libconftest.a" >&5
7414 $RANLIB libconftest.a 2>&5
7415 cat > conftest.c << _LT_EOF
7416int main() { return 0;}
7417_LT_EOF
7418 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7419 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7420 _lt_result=$?
7421 if test -s conftest.err && $GREP force_load conftest.err; then
7422 cat conftest.err >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007423 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007424 lt_cv_ld_force_load=yes
7425 else
7426 cat conftest.err >&5
7427 fi
7428 rm -f conftest.err libconftest.a conftest conftest.c
7429 rm -rf conftest.dSYM
7430
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7433$as_echo "$lt_cv_ld_force_load" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007434 case $host_os in
7435 rhapsody* | darwin1.[012])
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007436 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007437 darwin1.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007438 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007439 darwin*) # darwin 5.x on
7440 # if running on 10.5 or later, the deployment target defaults
7441 # to the OS version, if on x86, and 10.4, the deployment
7442 # target defaults to 10.4. Don't you love it?
7443 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7444 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007445 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Bruce A. Mah8634b342014-09-29 14:03:04 -07007446 10.[012][,.]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007447 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007448 10.*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007449 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007450 esac
7451 ;;
7452 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007453 if test yes = "$lt_cv_apple_cc_single_mod"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007454 _lt_dar_single_mod='$single_module'
7455 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007456 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7457 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007458 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007459 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007460 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007461 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007462 _lt_dsymutil='~$DSYMUTIL $lib || :'
7463 else
7464 _lt_dsymutil=
7465 fi
7466 ;;
7467 esac
7468
Bruce A. Mah54615792015-05-11 10:42:44 -07007469# func_munge_path_list VARIABLE PATH
7470# -----------------------------------
7471# VARIABLE is name of variable containing _space_ separated list of
7472# directories to be munged by the contents of PATH, which is string
7473# having a format:
7474# "DIR[:DIR]:"
7475# string "DIR[ DIR]" will be prepended to VARIABLE
7476# ":DIR[:DIR]"
7477# string "DIR[ DIR]" will be appended to VARIABLE
7478# "DIRP[:DIRP]::[DIRA:]DIRA"
7479# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7480# "DIRA[ DIRA]" will be appended to VARIABLE
7481# "DIR[:DIR]"
7482# VARIABLE will be replaced by "DIR[ DIR]"
7483func_munge_path_list ()
7484{
7485 case x$2 in
7486 x)
7487 ;;
7488 *:)
7489 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7490 ;;
7491 x:*)
7492 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7493 ;;
7494 *::*)
7495 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7496 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7497 ;;
7498 *)
7499 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7500 ;;
7501 esac
7502}
7503
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007504ac_ext=c
7505ac_cpp='$CPP $CPPFLAGS'
7506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007510$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007511# On Suns, sometimes $CPP names a directory.
7512if test -n "$CPP" && test -d "$CPP"; then
7513 CPP=
7514fi
7515if test -z "$CPP"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007516 if ${ac_cv_prog_CPP+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007517 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007518else
7519 # Double quotes because CPP needs to be expanded
7520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7521 do
7522 ac_preproc_ok=false
7523for ac_c_preproc_warn_flag in '' yes
7524do
7525 # Use a header file that comes with gcc, so configuring glibc
7526 # with a fresh cross-compiler works.
7527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7528 # <limits.h> exists even on freestanding compilers.
7529 # On the NeXT, cc -E runs the code through the compiler's parser,
7530 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007532/* end confdefs.h. */
7533#ifdef __STDC__
7534# include <limits.h>
7535#else
7536# include <assert.h>
7537#endif
7538 Syntax error
7539_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007540if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007541
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007542else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007543 # Broken: fails on valid input.
7544continue
7545fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007546rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007547
7548 # OK, works on sane cases. Now check whether nonexistent headers
7549 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007551/* end confdefs.h. */
7552#include <ac_nonexistent.h>
7553_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007554if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007555 # Broken: success on invalid input.
7556continue
7557else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007558 # Passes both tests.
7559ac_preproc_ok=:
7560break
7561fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007562rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007563
7564done
7565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007566rm -f conftest.i conftest.err conftest.$ac_ext
7567if $ac_preproc_ok; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007568 break
7569fi
7570
7571 done
7572 ac_cv_prog_CPP=$CPP
7573
7574fi
7575 CPP=$ac_cv_prog_CPP
7576else
7577 ac_cv_prog_CPP=$CPP
7578fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007580$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007581ac_preproc_ok=false
7582for ac_c_preproc_warn_flag in '' yes
7583do
7584 # Use a header file that comes with gcc, so configuring glibc
7585 # with a fresh cross-compiler works.
7586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7587 # <limits.h> exists even on freestanding compilers.
7588 # On the NeXT, cc -E runs the code through the compiler's parser,
7589 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007591/* end confdefs.h. */
7592#ifdef __STDC__
7593# include <limits.h>
7594#else
7595# include <assert.h>
7596#endif
7597 Syntax error
7598_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007599if ac_fn_c_try_cpp "$LINENO"; then :
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007600
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007601else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007602 # Broken: fails on valid input.
7603continue
7604fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007605rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007606
7607 # OK, works on sane cases. Now check whether nonexistent headers
7608 # can be detected and how.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007610/* end confdefs.h. */
7611#include <ac_nonexistent.h>
7612_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007613if ac_fn_c_try_cpp "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007614 # Broken: success on invalid input.
7615continue
7616else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007617 # Passes both tests.
7618ac_preproc_ok=:
7619break
7620fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007621rm -f conftest.err conftest.i conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007622
7623done
7624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007625rm -f conftest.i conftest.err conftest.$ac_ext
7626if $ac_preproc_ok; then :
7627
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007628else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007631as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7632See \`config.log' for more details" "$LINENO" 5; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007633fi
7634
7635ac_ext=c
7636ac_cpp='$CPP $CPPFLAGS'
7637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639ac_compiler_gnu=$ac_cv_c_compiler_gnu
7640
7641
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007643$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007644if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007645 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007646else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007648/* end confdefs.h. */
7649#include <stdlib.h>
7650#include <stdarg.h>
7651#include <string.h>
7652#include <float.h>
7653
7654int
7655main ()
7656{
7657
7658 ;
7659 return 0;
7660}
7661_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007662if ac_fn_c_try_compile "$LINENO"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007663 ac_cv_header_stdc=yes
7664else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007665 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007666fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668
7669if test $ac_cv_header_stdc = yes; then
7670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007672/* end confdefs.h. */
7673#include <string.h>
7674
7675_ACEOF
7676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007677 $EGREP "memchr" >/dev/null 2>&1; then :
7678
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007679else
7680 ac_cv_header_stdc=no
7681fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007682rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007683
7684fi
7685
7686if test $ac_cv_header_stdc = yes; then
7687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007689/* end confdefs.h. */
7690#include <stdlib.h>
7691
7692_ACEOF
7693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007694 $EGREP "free" >/dev/null 2>&1; then :
7695
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007696else
7697 ac_cv_header_stdc=no
7698fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007699rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007700
7701fi
7702
7703if test $ac_cv_header_stdc = yes; then
7704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007705 if test "$cross_compiling" = yes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007706 :
7707else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007709/* end confdefs.h. */
7710#include <ctype.h>
7711#include <stdlib.h>
7712#if ((' ' & 0x0FF) == 0x020)
7713# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7714# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7715#else
7716# define ISLOWER(c) \
7717 (('a' <= (c) && (c) <= 'i') \
7718 || ('j' <= (c) && (c) <= 'r') \
7719 || ('s' <= (c) && (c) <= 'z'))
7720# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7721#endif
7722
7723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7724int
7725main ()
7726{
7727 int i;
7728 for (i = 0; i < 256; i++)
7729 if (XOR (islower (i), ISLOWER (i))
7730 || toupper (i) != TOUPPER (i))
7731 return 2;
7732 return 0;
7733}
7734_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007735if ac_fn_c_try_run "$LINENO"; then :
7736
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007737else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007738 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007739fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7741 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007742fi
7743
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007744fi
7745fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007747$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007748if test $ac_cv_header_stdc = yes; then
7749
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007750$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007751
7752fi
7753
7754# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007755for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7756 inttypes.h stdint.h unistd.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007757do :
7758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7759ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7760"
7761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007762 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007764_ACEOF
7765
7766fi
7767
7768done
7769
7770
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007771for ac_header in dlfcn.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007772do :
7773 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7774"
7775if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007776 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007777#define HAVE_DLFCN_H 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007778_ACEOF
7779
7780fi
7781
7782done
7783
7784
7785
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007786
7787
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007788# Set options
7789
7790
7791
7792 enable_dlopen=no
7793
7794
7795 enable_win32_dll=no
7796
7797
Bruce A. Mah51a4c632020-06-10 07:34:14 -07007798 # Check whether --enable-shared was given.
7799if test "${enable_shared+set}" = set; then :
7800 enableval=$enable_shared; p=${PACKAGE-default}
7801 case $enableval in
7802 yes) enable_shared=yes ;;
7803 no) enable_shared=no ;;
7804 *)
7805 enable_shared=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7808 for pkg in $enableval; do
7809 IFS=$lt_save_ifs
7810 if test "X$pkg" = "X$p"; then
7811 enable_shared=yes
7812 fi
7813 done
7814 IFS=$lt_save_ifs
7815 ;;
7816 esac
7817else
7818 enable_shared=yes
7819fi
7820
7821
7822
7823
7824
7825
7826
7827
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007828
7829 # Check whether --enable-static was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007830if test "${enable_static+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007831 enableval=$enable_static; p=${PACKAGE-default}
7832 case $enableval in
7833 yes) enable_static=yes ;;
7834 no) enable_static=no ;;
7835 *)
7836 enable_static=no
7837 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007839 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007840 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007841 if test "X$pkg" = "X$p"; then
7842 enable_static=yes
7843 fi
7844 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007845 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007846 ;;
7847 esac
7848else
7849 enable_static=yes
7850fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861# Check whether --with-pic was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007862if test "${with_pic+set}" = set; then :
7863 withval=$with_pic; lt_p=${PACKAGE-default}
7864 case $withval in
7865 yes|no) pic_mode=$withval ;;
7866 *)
7867 pic_mode=default
7868 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007870 for lt_pkg in $withval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007871 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007872 if test "X$lt_pkg" = "X$lt_p"; then
7873 pic_mode=yes
7874 fi
7875 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007876 IFS=$lt_save_ifs
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007877 ;;
7878 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007879else
7880 pic_mode=default
7881fi
7882
7883
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007884
7885
7886
7887
7888
7889
7890 # Check whether --enable-fast-install was given.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07007891if test "${enable_fast_install+set}" = set; then :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007892 enableval=$enable_fast_install; p=${PACKAGE-default}
7893 case $enableval in
7894 yes) enable_fast_install=yes ;;
7895 no) enable_fast_install=no ;;
7896 *)
7897 enable_fast_install=no
7898 # Look at the argument we got. We use all the common list separators.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007899 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007900 for pkg in $enableval; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007901 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007902 if test "X$pkg" = "X$p"; then
7903 enable_fast_install=yes
7904 fi
7905 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007906 IFS=$lt_save_ifs
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007907 ;;
7908 esac
7909else
7910 enable_fast_install=yes
7911fi
7912
7913
7914
7915
7916
7917
7918
7919
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007920 shared_archive_member_spec=
7921case $host,$enable_shared in
7922power*-*-aix[5-9]*,yes)
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7924$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7925
7926# Check whether --with-aix-soname was given.
7927if test "${with_aix_soname+set}" = set; then :
7928 withval=$with_aix_soname; case $withval in
7929 aix|svr4|both)
7930 ;;
7931 *)
7932 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7933 ;;
7934 esac
7935 lt_cv_with_aix_soname=$with_aix_soname
7936else
7937 if ${lt_cv_with_aix_soname+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939else
7940 lt_cv_with_aix_soname=aix
7941fi
7942
7943 with_aix_soname=$lt_cv_with_aix_soname
7944fi
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7947$as_echo "$with_aix_soname" >&6; }
7948 if test aix != "$with_aix_soname"; then
7949 # For the AIX way of multilib, we name the shared archive member
7950 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7951 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7952 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7953 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7954 if test 64 = "${OBJECT_MODE-32}"; then
7955 shared_archive_member_spec=shr_64
7956 else
7957 shared_archive_member_spec=shr
7958 fi
7959 fi
7960 ;;
7961*)
7962 with_aix_soname=aix
7963 ;;
7964esac
7965
7966
7967
7968
7969
7970
7971
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007972
7973
7974
7975# This can be used to rebuild libtool when needed
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08007976LIBTOOL_DEPS=$ltmain
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007977
7978# Always use our own libtool.
7979LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008005
8006
8007
8008
8009
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008010test -z "$LN_S" && LN_S="ln -s"
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008025if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008026 setopt NO_GLOB_SUBST
8027fi
8028
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008030$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008031if ${lt_cv_objdir+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008032 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008033else
8034 rm -f .libs 2>/dev/null
8035mkdir .libs 2>/dev/null
8036if test -d .libs; then
8037 lt_cv_objdir=.libs
8038else
8039 # MS-DOS does not allow filenames that begin with a dot.
8040 lt_cv_objdir=_libs
8041fi
8042rmdir .libs 2>/dev/null
8043fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008045$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008046objdir=$lt_cv_objdir
8047
8048
8049
8050
8051
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008052cat >>confdefs.h <<_ACEOF
8053#define LT_OBJDIR "$lt_cv_objdir/"
8054_ACEOF
8055
8056
8057
8058
Jon Dugane34c20c2010-07-08 23:26:52 +00008059case $host_os in
8060aix3*)
8061 # AIX sometimes has problems with the GCC collect2 program. For some
8062 # reason, if we set the COLLECT_NAMES environment variable, the problems
8063 # vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008064 if test set != "${COLLECT_NAMES+set}"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008065 COLLECT_NAMES=
8066 export COLLECT_NAMES
8067 fi
8068 ;;
8069esac
8070
8071# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008072ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00008073can_build_shared=yes
8074
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008075# All known linkers require a '.a' archive for static linking (except MSVC,
Jon Dugane34c20c2010-07-08 23:26:52 +00008076# which needs '.lib').
8077libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008078
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008079with_gnu_ld=$lt_cv_prog_gnu_ld
Jon Dugane34c20c2010-07-08 23:26:52 +00008080
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008081old_CC=$CC
8082old_CFLAGS=$CFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008083
8084# Set sane defaults for various variables
8085test -z "$CC" && CC=cc
8086test -z "$LTCC" && LTCC=$CC
8087test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8088test -z "$LD" && LD=ld
8089test -z "$ac_objext" && ac_objext=o
8090
Bruce A. Mah54615792015-05-11 10:42:44 -07008091func_cc_basename $compiler
8092cc_basename=$func_cc_basename_result
Jon Dugane34c20c2010-07-08 23:26:52 +00008093
8094
8095# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008096test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00008097case $deplibs_check_method in
8098file_magic*)
8099 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008101$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008102if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008103 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008104else
8105 case $MAGIC_CMD in
8106[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008107 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008108 ;;
8109*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008110 lt_save_MAGIC_CMD=$MAGIC_CMD
8111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8113 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008114 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008115 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008116 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8117 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008118 if test -n "$file_magic_test_file"; then
8119 case $deplibs_check_method in
8120 "file_magic "*)
8121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008122 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8124 $EGREP "$file_magic_regex" > /dev/null; then
8125 :
8126 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008127 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008128
8129*** Warning: the command libtool uses to detect shared libraries,
8130*** $file_magic_cmd, produces output that libtool cannot recognize.
8131*** The result is that libtool may fail to recognize shared libraries
8132*** as such. This will affect the creation of libtool libraries that
8133*** depend on shared libraries, but programs linked with such libtool
8134*** libraries will work regardless of this problem. Nevertheless, you
8135*** may want to report the problem to your system manager and/or to
8136*** bug-libtool@gnu.org
8137
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008138_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008139 fi ;;
8140 esac
8141 fi
8142 break
8143 fi
8144 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008145 IFS=$lt_save_ifs
8146 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008147 ;;
8148esac
8149fi
8150
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008151MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008152if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008154$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008155else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008157$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008158fi
8159
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008160
8161
8162
8163
Jon Dugane34c20c2010-07-08 23:26:52 +00008164if test -z "$lt_cv_path_MAGIC_CMD"; then
8165 if test -n "$ac_tool_prefix"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008167$as_echo_n "checking for file... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008168if ${lt_cv_path_MAGIC_CMD+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008169 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008170else
8171 case $MAGIC_CMD in
8172[\\/*] | ?:[\\/]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008173 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
Jon Dugane34c20c2010-07-08 23:26:52 +00008174 ;;
8175*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008176 lt_save_MAGIC_CMD=$MAGIC_CMD
8177 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00008178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8179 for ac_dir in $ac_dummy; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008180 IFS=$lt_save_ifs
Jon Dugane34c20c2010-07-08 23:26:52 +00008181 test -z "$ac_dir" && ac_dir=.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008182 if test -f "$ac_dir/file"; then
8183 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
Jon Dugane34c20c2010-07-08 23:26:52 +00008184 if test -n "$file_magic_test_file"; then
8185 case $deplibs_check_method in
8186 "file_magic "*)
8187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008188 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8190 $EGREP "$file_magic_regex" > /dev/null; then
8191 :
8192 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008193 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008194
8195*** Warning: the command libtool uses to detect shared libraries,
8196*** $file_magic_cmd, produces output that libtool cannot recognize.
8197*** The result is that libtool may fail to recognize shared libraries
8198*** as such. This will affect the creation of libtool libraries that
8199*** depend on shared libraries, but programs linked with such libtool
8200*** libraries will work regardless of this problem. Nevertheless, you
8201*** may want to report the problem to your system manager and/or to
8202*** bug-libtool@gnu.org
8203
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008204_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008205 fi ;;
8206 esac
8207 fi
8208 break
8209 fi
8210 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008211 IFS=$lt_save_ifs
8212 MAGIC_CMD=$lt_save_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008213 ;;
8214esac
8215fi
8216
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008217MAGIC_CMD=$lt_cv_path_MAGIC_CMD
Jon Dugane34c20c2010-07-08 23:26:52 +00008218if test -n "$MAGIC_CMD"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008220$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008221else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008223$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008224fi
8225
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008226
Jon Dugane34c20c2010-07-08 23:26:52 +00008227 else
8228 MAGIC_CMD=:
8229 fi
8230fi
8231
8232 fi
8233 ;;
8234esac
8235
jef56a97f92012-08-20 14:35:58 -07008236# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008237
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008238lt_save_CC=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008239ac_ext=c
8240ac_cpp='$CPP $CPPFLAGS'
8241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244
8245
8246# Source file extension for C test sources.
8247ac_ext=c
8248
8249# Object file extension for compiled C test sources.
8250objext=o
8251objext=$objext
8252
8253# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008254lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00008255
8256# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008257lt_simple_link_test_code='int main(){return(0);}'
8258
8259
8260
8261
8262
Jon Dugane34c20c2010-07-08 23:26:52 +00008263
8264
8265# If no C compiler was specified, use CC.
8266LTCC=${LTCC-"$CC"}
8267
8268# If no C compiler flags were specified, use CFLAGS.
8269LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8270
8271# Allow CC to be a program name with arguments.
8272compiler=$CC
8273
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008274# Save the default compiler, since it gets overwritten when the other
8275# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8276compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00008277
8278# save warnings/boilerplate of simple test code
8279ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008280echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8282_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008283$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008284
8285ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008286echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8288_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008289$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008290
8291
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008292if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008293
8294lt_prog_compiler_no_builtin_flag=
8295
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008296if test yes = "$GCC"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008297 case $cc_basename in
8298 nvcc*)
8299 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8300 *)
8301 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8302 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008303
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008305$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008306if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008307 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008308else
8309 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008310 ac_outfile=conftest.$ac_objext
8311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008312 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 # The option is referenced via a variable to avoid confusing sed.
8318 lt_compile=`echo "$ac_compile" | $SED \
8319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008323 (eval "$lt_compile" 2>conftest.err)
8324 ac_status=$?
8325 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008327 if (exit $ac_status) && test -s "$ac_outfile"; then
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_rtti_exceptions=yes
8334 fi
8335 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008336 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008337
8338fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008340$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008341
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008342if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008343 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8344else
8345 :
8346fi
8347
8348fi
8349
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008350
8351
8352
8353
8354
8355 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00008356lt_prog_compiler_pic=
8357lt_prog_compiler_static=
8358
Jon Dugane34c20c2010-07-08 23:26:52 +00008359
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008360 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_static='-static'
8363
8364 case $host_os in
8365 aix*)
8366 # All AIX code is PIC.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008367 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008368 # AIX 5 now supports IA64 processor
8369 lt_prog_compiler_static='-Bstatic'
8370 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008371 lt_prog_compiler_pic='-fPIC'
Jon Dugane34c20c2010-07-08 23:26:52 +00008372 ;;
8373
8374 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008375 case $host_cpu in
8376 powerpc)
8377 # see comment about AmigaOS4 .so support
8378 lt_prog_compiler_pic='-fPIC'
8379 ;;
8380 m68k)
8381 # FIXME: we need at least 68020 code to build shared libraries, but
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008382 # adding the '-m68020' flag to GCC prevents building anything better,
8383 # like '-m68040'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008384 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8385 ;;
8386 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008387 ;;
8388
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008389 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008390 # PIC is the default for these OSes.
8391 ;;
8392
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008393 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008394 # This hack is so that the source file can tell whether it is being
8395 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008396 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8397 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00008398 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008399 case $host_os in
8400 os2*)
8401 lt_prog_compiler_static='$wl-static'
8402 ;;
8403 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008404 ;;
8405
8406 darwin* | rhapsody*)
8407 # PIC is the default on this platform
8408 # Common symbols not allowed in MH_DYLIB files
8409 lt_prog_compiler_pic='-fno-common'
8410 ;;
8411
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008412 haiku*)
8413 # PIC is the default for Haiku.
8414 # The "-static" flag exists, but is broken.
8415 lt_prog_compiler_static=
8416 ;;
8417
jef56a97f92012-08-20 14:35:58 -07008418 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8421 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07008422 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008423 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07008424 # +Z the default
8425 ;;
8426 *)
8427 lt_prog_compiler_pic='-fPIC'
8428 ;;
8429 esac
8430 ;;
8431
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008432 interix[3-9]*)
8433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8434 # Instead, we relocate shared libraries at runtime.
8435 ;;
8436
8437 msdosdjgpp*)
8438 # Just because we use GCC doesn't mean we suddenly get shared libraries
8439 # on systems that don't support them.
8440 lt_prog_compiler_can_build_shared=no
8441 enable_shared=no
8442 ;;
8443
8444 *nto* | *qnx*)
8445 # QNX uses GNU C++, but need to define -shared option too, otherwise
8446 # it will coredump.
8447 lt_prog_compiler_pic='-fPIC -shared'
8448 ;;
8449
8450 sysv4*MP*)
8451 if test -d /usr/nec; then
8452 lt_prog_compiler_pic=-Kconform_pic
8453 fi
8454 ;;
8455
Jon Dugane34c20c2010-07-08 23:26:52 +00008456 *)
8457 lt_prog_compiler_pic='-fPIC'
8458 ;;
8459 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008460
8461 case $cc_basename in
8462 nvcc*) # Cuda Compiler Driver 2.2
8463 lt_prog_compiler_wl='-Xlinker '
8464 if test -n "$lt_prog_compiler_pic"; then
8465 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8466 fi
8467 ;;
8468 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008469 else
8470 # PORTME Check for flag to pass linker flags through the system compiler.
8471 case $host_os in
8472 aix*)
8473 lt_prog_compiler_wl='-Wl,'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008474 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008475 # AIX 5 now supports IA64 processor
8476 lt_prog_compiler_static='-Bstatic'
8477 else
8478 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8479 fi
8480 ;;
8481
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008482 darwin* | rhapsody*)
8483 # PIC is the default on this platform
8484 # Common symbols not allowed in MH_DYLIB files
8485 lt_prog_compiler_pic='-fno-common'
8486 case $cc_basename in
8487 nagfor*)
8488 # NAG Fortran compiler
8489 lt_prog_compiler_wl='-Wl,-Wl,,'
8490 lt_prog_compiler_pic='-PIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493 esac
8494 ;;
8495
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008496 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008497 # This hack is so that the source file can tell whether it is being
8498 # built for inclusion in a dll (and should export symbols for example).
8499 lt_prog_compiler_pic='-DDLL_EXPORT'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008500 case $host_os in
8501 os2*)
8502 lt_prog_compiler_static='$wl-static'
8503 ;;
8504 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008505 ;;
8506
8507 hpux9* | hpux10* | hpux11*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8510 # not for PA HP-UX.
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 # +Z the default
8514 ;;
8515 *)
8516 lt_prog_compiler_pic='+Z'
8517 ;;
8518 esac
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008520 lt_prog_compiler_static='$wl-a ${wl}archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008521 ;;
8522
8523 irix5* | irix6* | nonstopux*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static='-non_shared'
8527 ;;
8528
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008529 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008530 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008531 # old Intel for x86_64, which still supported -KPIC.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008532 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8539 icc* | ifort*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 # Lahey Fortran 8.1.
8545 lf95*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='--shared'
8548 lt_prog_compiler_static='--static'
8549 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008550 nagfor*)
8551 # NAG Fortran compiler
8552 lt_prog_compiler_wl='-Wl,-Wl,,'
8553 lt_prog_compiler_pic='-PIC'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008556 tcc*)
8557 # Fabrice Bellard et al's Tiny C Compiler
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='-fPIC'
8560 lt_prog_compiler_static='-static'
8561 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008562 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008563 # Portland Group compilers (*not* the Pentium gcc compiler,
8564 # which looks to be a dead project)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-fpic'
8567 lt_prog_compiler_static='-Bstatic'
8568 ;;
8569 ccc*)
8570 lt_prog_compiler_wl='-Wl,'
8571 # All Alpha code is PIC.
8572 lt_prog_compiler_static='-non_shared'
8573 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008574 xl* | bgxl* | bgf* | mpixl*)
8575 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='-qpic'
8578 lt_prog_compiler_static='-qstaticlink'
8579 ;;
8580 *)
8581 case `$CC -V 2>&1 | sed 5q` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008582 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8584 lt_prog_compiler_pic='-KPIC'
8585 lt_prog_compiler_static='-Bstatic'
8586 lt_prog_compiler_wl=''
8587 ;;
8588 *Sun\ F* | *Sun*Fortran*)
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8591 lt_prog_compiler_wl='-Qoption ld '
8592 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008593 *Sun\ C*)
8594 # Sun C 5.9
8595 lt_prog_compiler_pic='-KPIC'
8596 lt_prog_compiler_static='-Bstatic'
8597 lt_prog_compiler_wl='-Wl,'
8598 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008599 *Intel*\ [CF]*Compiler*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-fPIC'
8602 lt_prog_compiler_static='-static'
8603 ;;
8604 *Portland\ Group*)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_pic='-fpic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008607 lt_prog_compiler_static='-Bstatic'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008608 ;;
8609 esac
8610 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008611 esac
8612 ;;
8613
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008614 newsos6)
8615 lt_prog_compiler_pic='-KPIC'
8616 lt_prog_compiler_static='-Bstatic'
8617 ;;
8618
8619 *nto* | *qnx*)
8620 # QNX uses GNU C++, but need to define -shared option too, otherwise
8621 # it will coredump.
8622 lt_prog_compiler_pic='-fPIC -shared'
8623 ;;
8624
Jon Dugane34c20c2010-07-08 23:26:52 +00008625 osf3* | osf4* | osf5*)
8626 lt_prog_compiler_wl='-Wl,'
8627 # All OSF/1 code is PIC.
8628 lt_prog_compiler_static='-non_shared'
8629 ;;
8630
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008631 rdos*)
8632 lt_prog_compiler_static='-non_shared'
8633 ;;
8634
Jon Dugane34c20c2010-07-08 23:26:52 +00008635 solaris*)
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 case $cc_basename in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008639 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008640 lt_prog_compiler_wl='-Qoption ld ';;
8641 *)
8642 lt_prog_compiler_wl='-Wl,';;
8643 esac
8644 ;;
8645
8646 sunos4*)
8647 lt_prog_compiler_wl='-Qoption ld '
8648 lt_prog_compiler_pic='-PIC'
8649 lt_prog_compiler_static='-Bstatic'
8650 ;;
8651
8652 sysv4 | sysv4.2uw2* | sysv4.3*)
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-KPIC'
8655 lt_prog_compiler_static='-Bstatic'
8656 ;;
8657
8658 sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008659 if test -d /usr/nec; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008660 lt_prog_compiler_pic='-Kconform_pic'
8661 lt_prog_compiler_static='-Bstatic'
8662 fi
8663 ;;
8664
8665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670
8671 unicos*)
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_can_build_shared=no
8674 ;;
8675
8676 uts4*)
8677 lt_prog_compiler_pic='-pic'
8678 lt_prog_compiler_static='-Bstatic'
8679 ;;
8680
8681 *)
8682 lt_prog_compiler_can_build_shared=no
8683 ;;
8684 esac
8685 fi
8686
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008687case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008688 # For platforms that do not support PIC, -DPIC is meaningless:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008689 *djgpp*)
8690 lt_prog_compiler_pic=
8691 ;;
8692 *)
8693 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8694 ;;
8695esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008696
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8698$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8699if ${lt_cv_prog_compiler_pic+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701else
8702 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8703fi
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8705$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8706lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Jon Dugane34c20c2010-07-08 23:26:52 +00008707
8708#
8709# Check to make sure the PIC flag actually works.
8710#
8711if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008713$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008714if ${lt_cv_prog_compiler_pic_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008715 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008716else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008717 lt_cv_prog_compiler_pic_works=no
8718 ac_outfile=conftest.$ac_objext
8719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008720 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
Jon Dugane34c20c2010-07-08 23:26:52 +00008721 # Insert the option either (1) after the last *FLAGS variable, or
8722 # (2) before a word containing "conftest.", or (3) at the end.
8723 # Note that $ac_compile itself does not contain backslashes and begins
8724 # with a dollar sign (not a hyphen), so the echo should work correctly.
8725 # The option is referenced via a variable to avoid confusing sed.
8726 lt_compile=`echo "$ac_compile" | $SED \
8727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008731 (eval "$lt_compile" 2>conftest.err)
8732 ac_status=$?
8733 cat conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008735 if (exit $ac_status) && test -s "$ac_outfile"; then
8736 # The compiler can only warn and ignore the option if not recognized
8737 # So say no if there are warnings other than the usual output.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008741 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008742 fi
8743 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008744 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008745
8746fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008748$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008749
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008750if test yes = "$lt_cv_prog_compiler_pic_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008751 case $lt_prog_compiler_pic in
8752 "" | " "*) ;;
8753 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8754 esac
8755else
8756 lt_prog_compiler_pic=
8757 lt_prog_compiler_can_build_shared=no
8758fi
8759
8760fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008761
8762
8763
8764
8765
jef2ab386b2012-08-10 12:43:50 -07008766
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008767
8768
8769
8770
8771
Jon Dugane34c20c2010-07-08 23:26:52 +00008772#
8773# Check to make sure the static flag actually works.
8774#
8775wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008777$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008778if ${lt_cv_prog_compiler_static_works+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008779 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008780else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008781 lt_cv_prog_compiler_static_works=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008782 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008783 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8786 # The linker can only warn and ignore the option if not recognized
8787 # So say no if there are warnings
8788 if test -s conftest.err; then
8789 # Append any errors to the config.log.
8790 cat conftest.err 1>&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008794 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008795 fi
8796 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008797 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008798 fi
8799 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008800 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008801 LDFLAGS=$save_LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +00008802
8803fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008805$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008806
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008807if test yes = "$lt_cv_prog_compiler_static_works"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008808 :
8809else
8810 lt_prog_compiler_static=
8811fi
8812
8813
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008814
8815
8816
8817
8818
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008820$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008821if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008822 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00008823else
8824 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008825 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008826 mkdir conftest
8827 cd conftest
8828 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00008830
8831 lt_compiler_flag="-o out/conftest2.$ac_objext"
8832 # Insert the option either (1) after the last *FLAGS variable, or
8833 # (2) before a word containing "conftest.", or (3) at the end.
8834 # Note that $ac_compile itself does not contain backslashes and begins
8835 # with a dollar sign (not a hyphen), so the echo should work correctly.
8836 lt_compile=`echo "$ac_compile" | $SED \
8837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8839 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00008841 (eval "$lt_compile" 2>out/conftest.err)
8842 ac_status=$?
8843 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00008845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8846 then
8847 # The compiler can only warn and ignore the option if not recognized
8848 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00008850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8852 lt_cv_prog_compiler_c_o=yes
8853 fi
8854 fi
8855 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008856 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008857 # SGI C++ compiler will create directory out/ii_files/ for
8858 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8860 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00008861 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008862 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008863 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008864
8865fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008867$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008868
8869
8870
8871
8872
8873
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008875$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008876if ${lt_cv_prog_compiler_c_o+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008877 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008878else
8879 lt_cv_prog_compiler_c_o=no
8880 $RM -r conftest 2>/dev/null
8881 mkdir conftest
8882 cd conftest
8883 mkdir out
8884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8885
8886 lt_compiler_flag="-o out/conftest2.$ac_objext"
8887 # Insert the option either (1) after the last *FLAGS variable, or
8888 # (2) before a word containing "conftest.", or (3) at the end.
8889 # Note that $ac_compile itself does not contain backslashes and begins
8890 # with a dollar sign (not a hyphen), so the echo should work correctly.
8891 lt_compile=`echo "$ac_compile" | $SED \
8892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8894 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008896 (eval "$lt_compile" 2>out/conftest.err)
8897 ac_status=$?
8898 cat out/conftest.err >&5
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008900 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8901 then
8902 # The compiler can only warn and ignore the option if not recognized
8903 # So say no if there are warnings
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008905 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8906 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8907 lt_cv_prog_compiler_c_o=yes
8908 fi
8909 fi
8910 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008911 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008912 # SGI C++ compiler will create directory out/ii_files/ for
8913 # template instantiation
8914 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8915 $RM out/* && rmdir out
8916 cd ..
8917 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008918 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008919
8920fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008922$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008923
8924
Jon Dugane34c20c2010-07-08 23:26:52 +00008925
8926
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008927hard_links=nottested
8928if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008929 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008931$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008932 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008933 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8935 touch conftest.a
8936 ln conftest.a conftest.b 2>&5 || hard_links=no
8937 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008939$as_echo "$hard_links" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008940 if test no = "$hard_links"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8942$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00008943 need_locks=warn
8944 fi
8945else
8946 need_locks=no
8947fi
8948
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008949
8950
8951
8952
8953
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07008954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008955$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008956
8957 runpath_var=
8958 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008959 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008960 archive_cmds=
8961 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008962 compiler_needs_object=no
8963 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008964 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008965 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8966 hardcode_automatic=no
8967 hardcode_direct=no
8968 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008969 hardcode_libdir_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008970 hardcode_libdir_separator=
8971 hardcode_minus_L=no
8972 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008973 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008974 link_all_deplibs=unknown
8975 module_cmds=
8976 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008977 old_archive_from_new_cmds=
8978 old_archive_from_expsyms_cmds=
8979 thread_safe_flag_spec=
8980 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008981 # include_expsyms should be a list of space-separated symbols to be *always*
8982 # included in the symbol list
8983 include_expsyms=
8984 # exclude_expsyms can be an extended regexp of symbols to exclude
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08008985 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8986 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8987 # as well as any symbol that contains 'd'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008988 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00008989 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8990 # platforms (ab)use it in PIC code, but their linkers get confused if
8991 # the symbol is explicitly referenced. Since portable code cannot
8992 # rely on this symbol name, it's probably fine to never include it in
8993 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008994 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00008995 extract_expsyms_cmds=
8996
8997 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008998 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008999 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9000 # When not using gcc, we currently assume that we are using
9001 # Microsoft Visual C++.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009002 if test yes != "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009003 with_gnu_ld=no
9004 fi
9005 ;;
9006 interix*)
9007 # we just hope/assume this is gcc and not c89 (= MSVC++)
9008 with_gnu_ld=yes
9009 ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009010 openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009011 with_gnu_ld=no
9012 ;;
9013 esac
9014
9015 ld_shlibs=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009016
9017 # On some targets, GNU ld is compatible enough with the native linker
9018 # that we're better off using the native interface for both.
9019 lt_use_gnu_ld_interface=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009020 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009021 case $host_os in
9022 aix*)
9023 # The AIX port of GNU ld has always aspired to compatibility
9024 # with the native linker. However, as the warning in the GNU ld
9025 # block says, versions before 2.19.5* couldn't really create working
9026 # shared libraries, regardless of the interface used.
9027 case `$LD -v 2>&1` in
9028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9030 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9031 *)
9032 lt_use_gnu_ld_interface=yes
9033 ;;
9034 esac
9035 ;;
9036 *)
9037 lt_use_gnu_ld_interface=yes
9038 ;;
9039 esac
9040 fi
9041
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009042 if test yes = "$lt_use_gnu_ld_interface"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009043 # If archive_cmds runs LD, not CC, wlarc should be empty
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009044 wlarc='$wl'
Jon Dugane34c20c2010-07-08 23:26:52 +00009045
9046 # Set some defaults for GNU ld with shared library support. These
9047 # are reset later if shared libraries are not supported. Putting them
9048 # here allows them to be overridden if necessary.
9049 runpath_var=LD_RUN_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009050 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9051 export_dynamic_flag_spec='$wl--export-dynamic'
Jon Dugane34c20c2010-07-08 23:26:52 +00009052 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009054 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009055 else
9056 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00009057 fi
9058 supports_anon_versioning=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009060 *GNU\ gold*) supports_anon_versioning=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9064 *\ 2.11.*) ;; # other 2.11 versions
9065 *) supports_anon_versioning=yes ;;
9066 esac
9067
9068 # See if GNU ld supports shared libraries.
9069 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009070 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009071 # On AIX/PPC, the GNU linker is very broken
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009072 if test ia64 != "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009073 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009074 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009075
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009076*** Warning: the GNU linker, at least up to release 2.19, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00009077*** to be unable to reliably create shared libraries on AIX.
9078*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009079*** really care for shared libraries, you may want to install binutils
9080*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9081*** You will then need to restart the configuration process.
Jon Dugane34c20c2010-07-08 23:26:52 +00009082
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009083_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00009084 fi
9085 ;;
9086
9087 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009088 case $host_cpu in
9089 powerpc)
9090 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009092 archive_expsym_cmds=''
9093 ;;
9094 m68k)
9095 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)'
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 hardcode_minus_L=yes
9098 ;;
9099 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009100 ;;
9101
9102 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009104 allow_undefined_flag=unsupported
9105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9106 # support --undefined. This deserves some investigation. FIXME
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009108 else
9109 ld_shlibs=no
9110 fi
9111 ;;
9112
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009113 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00009115 # as there is no search path for DLLs.
9116 hardcode_libdir_flag_spec='-L$libdir'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009117 export_dynamic_flag_spec='$wl--export-all-symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009118 allow_undefined_flag=unsupported
9119 always_export_symbols=no
9120 enable_shared_with_static_runtimes=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9122 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Jon Dugane34c20c2010-07-08 23:26:52 +00009123
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126 # If the export-symbols file already is a .def file, use it as
9127 # is; otherwise, prepend EXPORTS...
9128 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9129 cp $export_symbols $output_objdir/$soname.def;
9130 else
9131 echo EXPORTS > $output_objdir/$soname.def;
9132 cat $export_symbols >> $output_objdir/$soname.def;
9133 fi~
9134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009135 else
9136 ld_shlibs=no
9137 fi
9138 ;;
9139
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009140 haiku*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009142 link_all_deplibs=yes
9143 ;;
9144
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009145 os2*)
9146 hardcode_libdir_flag_spec='-L$libdir'
9147 hardcode_minus_L=yes
9148 allow_undefined_flag=unsupported
9149 shrext_cmds=.dll
9150 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9153 $ECHO EXPORTS >> $output_objdir/$libname.def~
9154 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9156 emximp -o $lib $output_objdir/$libname.def'
9157 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9160 $ECHO EXPORTS >> $output_objdir/$libname.def~
9161 prefix_cmds="$SED"~
9162 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9163 prefix_cmds="$prefix_cmds -e 1d";
9164 fi~
9165 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9166 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9168 emximp -o $lib $output_objdir/$libname.def'
9169 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9170 enable_shared_with_static_runtimes=yes
9171 ;;
9172
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009173 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009174 hardcode_direct=no
9175 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009176 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9177 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009178 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9179 # Instead, shared libraries are loaded at an image base (0x10000000 by
9180 # default) and relocated if they conflict, which is a slow very memory
9181 # consuming and fragmenting process. To avoid this, we pick a random,
9182 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9183 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9185 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009186 ;;
9187
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009188 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009189 tmp_diet=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009190 if test linux-dietlibc = "$host_os"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009191 case $cc_basename in
9192 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9193 esac
9194 fi
9195 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009196 && test no = "$tmp_diet"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009197 then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009198 tmp_addflag=' $pic_flag'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009199 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00009200 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009201 pgcc*) # Portland Group C compiler
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009202 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009203 tmp_addflag=' $pic_flag'
9204 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009205 pgf77* | pgf90* | pgf95* | pgfortran*)
9206 # Portland Group f77 and f90 compilers
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009207 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009208 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009209 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00009210 tmp_addflag=' -i_dynamic' ;;
9211 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9212 tmp_addflag=' -i_dynamic -nofor_main' ;;
9213 ifc* | ifort*) # Intel Fortran compiler
9214 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009215 lf95*) # Lahey Fortran 8.1
9216 whole_archive_flag_spec=
9217 tmp_sharedflag='--shared' ;;
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009218 nagfor*) # NAGFOR 5.3
9219 tmp_sharedflag='-Wl,-shared' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009220 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009221 tmp_sharedflag='-qmkshrobj'
9222 tmp_addflag= ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009223 nvcc*) # Cuda Compiler Driver 2.2
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009224 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'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009225 compiler_needs_object=yes
9226 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009227 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009228 case `$CC -V 2>&1 | sed 5q` in
9229 *Sun\ C*) # Sun C 5.9
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009230 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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009231 compiler_needs_object=yes
9232 tmp_sharedflag='-G' ;;
9233 *Sun\ F*) # Sun Fortran 8.3
9234 tmp_sharedflag='-G' ;;
9235 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009236 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009237
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009238 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9241 echo "local: *; };" >> $output_objdir/$libname.ver~
9242 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009243 fi
9244
9245 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009246 tcc*)
9247 export_dynamic_flag_spec='-rdynamic'
9248 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009249 xlf* | bgf* | bgxlf* | mpixlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009250 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9251 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009253 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009254 if test yes = "$supports_anon_versioning"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009255 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9257 echo "local: *; };" >> $output_objdir/$libname.ver~
9258 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009259 fi
9260 ;;
9261 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009262 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009263 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009264 fi
9265 ;;
9266
9267 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009269 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9270 wlarc=
9271 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9273 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009274 fi
9275 ;;
9276
9277 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009278 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009279 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009280 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00009281
9282*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9283*** create shared libraries on Solaris systems. Therefore, libtool
9284*** is disabling shared libraries support. We urge you to upgrade GNU
9285*** binutils to release 2.9.1 or newer. Another option is to modify
9286*** your PATH or compiler configuration so that the native linker is
9287*** used, and then restart.
9288
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009289_LT_EOF
9290 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9292 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9299 case `$LD -v 2>&1` in
9300 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9301 ld_shlibs=no
9302 cat <<_LT_EOF 1>&2
9303
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009304*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
Jon Dugane34c20c2010-07-08 23:26:52 +00009305*** reliably create shared libraries on SCO systems. Therefore, libtool
9306*** is disabling shared libraries support. We urge you to upgrade GNU
9307*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9308*** your PATH or compiler configuration so that the native linker is
9309*** used, and then restart.
9310
9311_LT_EOF
9312 ;;
9313 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009314 # For security reasons, it is highly recommended that you always
9315 # use absolute paths for naming shared libraries, and exclude the
9316 # DT_RUNPATH tag from executables and libraries. But doing so
9317 # requires that you compile everything twice, which is a pain.
9318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009319 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009322 else
9323 ld_shlibs=no
9324 fi
9325 ;;
9326 esac
9327 ;;
9328
9329 sunos4*)
9330 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9331 wlarc=
9332 hardcode_direct=yes
9333 hardcode_shlibpath_var=no
9334 ;;
9335
9336 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009340 else
9341 ld_shlibs=no
9342 fi
9343 ;;
9344 esac
9345
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009346 if test no = "$ld_shlibs"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009347 runpath_var=
9348 hardcode_libdir_flag_spec=
9349 export_dynamic_flag_spec=
9350 whole_archive_flag_spec=
9351 fi
9352 else
9353 # PORTME fill in a description of your system's linker (not GNU ld)
9354 case $host_os in
9355 aix3*)
9356 allow_undefined_flag=unsupported
9357 always_export_symbols=yes
9358 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'
9359 # Note: this linker hardcodes the directories in LIBPATH if there
9360 # are no directories specified by -L.
9361 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009362 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009363 # Neither direct hardcoding nor static linking is supported with a
9364 # broken collect2.
9365 hardcode_direct=unsupported
9366 fi
9367 ;;
9368
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009369 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009370 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009371 # On IA64, the linker does run time linking by default, so we don't
9372 # have to do anything special.
9373 aix_use_runtimelinking=no
9374 exp_sym_flag='-Bexport'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009375 no_entry_flag=
Jon Dugane34c20c2010-07-08 23:26:52 +00009376 else
9377 # If we're using GNU nm, then we don't want the "-C" option.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009378 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9379 # Without the "-l" option, or with the "-B" option, AIX nm treats
9380 # weak defined symbols like other global defined symbols, whereas
9381 # GNU nm marks them as "W".
9382 # While the 'weak' keyword is ignored in the Export File, we need
9383 # it in the Import File for the 'aix-soname' feature, so we have
9384 # to replace the "-B" option with "-P" for AIX nm.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009385 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009386 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009387 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009388 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00009389 fi
9390 aix_use_runtimelinking=no
9391
9392 # Test if we are trying to use run time linking or normal
9393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009394 # have runtime linking enabled, and use it for executables.
9395 # For shared libraries, we enable/disable runtime linking
9396 # depending on the kind of the shared library created -
9397 # when "with_aix_soname,aix_use_runtimelinking" is:
9398 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9399 # "aix,yes" lib.so shared, rtl:yes, for executables
9400 # lib.a static archive
9401 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9402 # lib.a(lib.so.V) shared, rtl:no, for executables
9403 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9404 # lib.a(lib.so.V) shared, rtl:no
9405 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9406 # lib.a static archive
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009408 for ld_flag in $LDFLAGS; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009409 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009410 aix_use_runtimelinking=yes
9411 break
9412 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009413 done
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009414 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9415 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9416 # so we don't have lib.a shared libs to link our executables.
9417 # We have to force runtime linking in this case.
9418 aix_use_runtimelinking=yes
9419 LDFLAGS="$LDFLAGS -Wl,-brtl"
9420 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009421 ;;
9422 esac
9423
9424 exp_sym_flag='-bexport'
9425 no_entry_flag='-bnoentry'
9426 fi
9427
9428 # When large executables or shared objects are built, AIX ld can
9429 # have problems creating the table of contents. If linking a library
9430 # or program results in "error TOC overflow" add -mminimal-toc to
9431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9433
9434 archive_cmds=''
9435 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009436 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009437 hardcode_libdir_separator=':'
9438 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009439 file_list_spec='$wl-f,'
9440 case $with_aix_soname,$aix_use_runtimelinking in
9441 aix,*) ;; # traditional, no import file
9442 svr4,* | *,yes) # use import file
9443 # The Import File defines what to hardcode.
9444 hardcode_direct=no
9445 hardcode_direct_absolute=no
9446 ;;
9447 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009448
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009449 if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009450 case $host_os in aix4.[012]|aix4.[012].*)
9451 # We only want to do this on AIX 4.2 and lower, the check
9452 # below for broken collect2 doesn't work under 4.3+
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009453 collect2name=`$CC -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009454 if test -f "$collect2name" &&
9455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00009456 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009457 # We have reworked collect2
9458 :
Jon Dugane34c20c2010-07-08 23:26:52 +00009459 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009460 # We have old collect2
9461 hardcode_direct=unsupported
9462 # It fails to find uninstalled libraries when the uninstalled
9463 # path is not listed in the libpath. Setting hardcode_minus_L
9464 # to unsupported forces relinking
9465 hardcode_minus_L=yes
9466 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00009468 fi
9469 ;;
9470 esac
9471 shared_flag='-shared'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009472 if test yes = "$aix_use_runtimelinking"; then
9473 shared_flag="$shared_flag "'$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009474 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009475 # Need to ensure runtime linking is disabled for the traditional
9476 # shared library, or the linker may eventually find shared libraries
9477 # /with/ Import File - we do not want to mix them.
9478 shared_flag_aix='-shared'
9479 shared_flag_svr4='-shared $wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009480 else
9481 # not using gcc
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009482 if test ia64 = "$host_cpu"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9484 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00009485 shared_flag='-G'
9486 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009487 if test yes = "$aix_use_runtimelinking"; then
9488 shared_flag='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009489 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009490 shared_flag='$wl-bM:SRE'
Jon Dugane34c20c2010-07-08 23:26:52 +00009491 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009492 shared_flag_aix='$wl-bM:SRE'
9493 shared_flag_svr4='$wl-G'
Jon Dugane34c20c2010-07-08 23:26:52 +00009494 fi
9495 fi
9496
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009497 export_dynamic_flag_spec='$wl-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00009498 # It seems that -bexpall does not export symbols beginning with
9499 # underscore (_), so it is better to generate a list of symbols to export.
9500 always_export_symbols=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009501 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009502 # Warning - without using the other runtime loading flags (-brtl),
9503 # -berok will link without error, but may produce a broken library.
9504 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009505 # Determine the default libpath from the value encoded in an
9506 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009507 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009508 aix_libpath=$lt_cv_aix_libpath
9509else
9510 if ${lt_cv_aix_libpath_+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512else
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009514/* end confdefs.h. */
9515
9516int
9517main ()
9518{
9519
9520 ;
9521 return 0;
9522}
9523_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009524if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009525
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009526 lt_aix_libpath_sed='
9527 /Import File Strings/,/^$/ {
9528 /^0/ {
9529 s/^0 *\([^ ]*\) *$/\1/
9530 p
9531 }
9532 }'
9533 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9534 # Check for a 64-bit object if we didn't find anything.
9535 if test -z "$lt_cv_aix_libpath_"; then
9536 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9537 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009538fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009539rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009542 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009543 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009544
Jon Dugane34c20c2010-07-08 23:26:52 +00009545fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009546
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009547 aix_libpath=$lt_cv_aix_libpath_
9548fi
jef2ab386b2012-08-10 12:43:50 -07009549
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009550 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9551 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009552 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009553 if test ia64 = "$host_cpu"; then
9554 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009555 allow_undefined_flag="-z nodefs"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009556 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"
Jon Dugane34c20c2010-07-08 23:26:52 +00009557 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009558 # Determine the default libpath from the value encoded in an
9559 # empty executable.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009560 if test set = "${lt_cv_aix_libpath+set}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009561 aix_libpath=$lt_cv_aix_libpath
9562else
9563 if ${lt_cv_aix_libpath_+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009567/* end confdefs.h. */
9568
9569int
9570main ()
9571{
9572
9573 ;
9574 return 0;
9575}
9576_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009577if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +00009578
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009579 lt_aix_libpath_sed='
9580 /Import File Strings/,/^$/ {
9581 /^0/ {
9582 s/^0 *\([^ ]*\) *$/\1/
9583 p
9584 }
9585 }'
9586 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587 # Check for a 64-bit object if we didn't find anything.
9588 if test -z "$lt_cv_aix_libpath_"; then
9589 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009591fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009592rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594 if test -z "$lt_cv_aix_libpath_"; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009595 lt_cv_aix_libpath_=/usr/lib:/lib
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009596 fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009597
Jon Dugane34c20c2010-07-08 23:26:52 +00009598fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08009599
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009600 aix_libpath=$lt_cv_aix_libpath_
9601fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009602
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009603 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
Jon Dugane34c20c2010-07-08 23:26:52 +00009604 # Warning - without using the other run time loading flags,
9605 # -berok will link without error, but may produce a broken library.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009606 no_undefined_flag=' $wl-bernotok'
9607 allow_undefined_flag=' $wl-berok'
9608 if test yes = "$with_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009609 # We only use this code for GNU lds that support --whole-archive.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009610 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009611 else
9612 # Exported symbols can be pulled into shared objects from archives
9613 whole_archive_flag_spec='$convenience'
9614 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009615 archive_cmds_need_lc=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009616 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9617 # -brtl affects multiple linker settings, -berok does not and is overridden later
9618 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9619 if test svr4 != "$with_aix_soname"; then
9620 # This is similar to how AIX traditionally builds its shared libraries.
9621 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9622 fi
9623 if test aix != "$with_aix_soname"; then
9624 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9625 else
9626 # used by -dlpreopen to get the symbols
9627 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9628 fi
9629 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
Jon Dugane34c20c2010-07-08 23:26:52 +00009630 fi
9631 fi
9632 ;;
9633
9634 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009635 case $host_cpu in
9636 powerpc)
9637 # see comment about AmigaOS4 .so support
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009639 archive_expsym_cmds=''
9640 ;;
9641 m68k)
9642 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)'
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_minus_L=yes
9645 ;;
9646 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009647 ;;
9648
9649 bsdi[45]*)
9650 export_dynamic_flag_spec=-rdynamic
9651 ;;
9652
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009653 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009654 # When not using gcc, we currently assume that we are using
9655 # Microsoft Visual C++.
9656 # hardcode_libdir_flag_spec is actually meaningless, as there is
9657 # no search path for DLLs.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009658 case $cc_basename in
9659 cl*)
9660 # Native MSVC
9661 hardcode_libdir_flag_spec=' '
9662 allow_undefined_flag=unsupported
9663 always_export_symbols=yes
9664 file_list_spec='@'
9665 # Tell ltmain to make .lib files, not .a files.
9666 libext=lib
9667 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009668 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009669 # FIXME: Setting linknames here is a bad hack.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009670 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9671 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9672 cp "$export_symbols" "$output_objdir/$soname.def";
9673 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9674 else
9675 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9676 fi~
9677 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9678 linknames='
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009679 # The linker will not automatically build a static lib if we build a DLL.
9680 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9681 enable_shared_with_static_runtimes=yes
9682 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9683 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9684 # Don't use ranlib
9685 old_postinstall_cmds='chmod 644 $oldlib'
9686 postlink_cmds='lt_outputfile="@OUTPUT@"~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009687 lt_tool_outputfile="@TOOL_OUTPUT@"~
9688 case $lt_outputfile in
9689 *.exe|*.EXE) ;;
9690 *)
9691 lt_outputfile=$lt_outputfile.exe
9692 lt_tool_outputfile=$lt_tool_outputfile.exe
9693 ;;
9694 esac~
9695 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9696 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9697 $RM "$lt_outputfile.manifest";
9698 fi'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009699 ;;
9700 *)
9701 # Assume MSVC wrapper
9702 hardcode_libdir_flag_spec=' '
9703 allow_undefined_flag=unsupported
9704 # Tell ltmain to make .lib files, not .a files.
9705 libext=lib
9706 # Tell ltmain to make .dll files, not .so files.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009707 shrext_cmds=.dll
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009708 # FIXME: Setting linknames here is a bad hack.
9709 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9710 # The linker will automatically build a .lib file if we build a DLL.
9711 old_archive_from_new_cmds='true'
9712 # FIXME: Should let the user specify the lib program.
9713 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9714 enable_shared_with_static_runtimes=yes
9715 ;;
9716 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009717 ;;
9718
9719 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009720
9721
9722 archive_cmds_need_lc=no
9723 hardcode_direct=no
9724 hardcode_automatic=yes
9725 hardcode_shlibpath_var=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009726 if test yes = "$lt_cv_ld_force_load"; then
9727 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\"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009728
9729 else
9730 whole_archive_flag_spec=''
9731 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009732 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009733 allow_undefined_flag=$_lt_dar_allow_undefined
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009734 case $cc_basename in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009735 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009736 *) _lt_dar_can_shared=$GCC ;;
9737 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009738 if test yes = "$_lt_dar_can_shared"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009739 output_verbose_link_cmd=func_echo_all
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009740 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9741 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9742 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"
9743 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"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009744
9745 else
9746 ld_shlibs=no
9747 fi
9748
Jon Dugane34c20c2010-07-08 23:26:52 +00009749 ;;
9750
9751 dgux*)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9755 ;;
9756
Jon Dugane34c20c2010-07-08 23:26:52 +00009757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9758 # support. Future versions do this automatically, but an explicit c++rt0.o
9759 # does not break anything, and helps significantly (at the cost of a little
9760 # extra space).
9761 freebsd2.2*)
9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9763 hardcode_libdir_flag_spec='-R$libdir'
9764 hardcode_direct=yes
9765 hardcode_shlibpath_var=no
9766 ;;
9767
9768 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009769 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9771 hardcode_direct=yes
9772 hardcode_minus_L=yes
9773 hardcode_shlibpath_var=no
9774 ;;
9775
9776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009777 freebsd* | dragonfly*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009779 hardcode_libdir_flag_spec='-R$libdir'
9780 hardcode_direct=yes
9781 hardcode_shlibpath_var=no
9782 ;;
9783
9784 hpux9*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009785 if test yes = "$GCC"; then
9786 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009787 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009788 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009789 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009790 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009791 hardcode_libdir_separator=:
9792 hardcode_direct=yes
9793
9794 # hardcode_minus_L: Not really in the search PATH,
9795 # but as the default location of the library.
9796 hardcode_minus_L=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009797 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009798 ;;
9799
9800 hpux10*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009801 if test yes,no = "$GCC,$with_gnu_ld"; then
9802 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009803 else
9804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9805 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009806 if test no = "$with_gnu_ld"; then
9807 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009808 hardcode_libdir_separator=:
9809 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009810 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009811 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009812 # hardcode_minus_L: Not really in the search PATH,
9813 # but as the default location of the library.
9814 hardcode_minus_L=yes
9815 fi
9816 ;;
9817
9818 hpux11*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009819 if test yes,no = "$GCC,$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009820 case $host_cpu in
9821 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009822 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009823 ;;
9824 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009825 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009826 ;;
9827 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009828 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009829 ;;
9830 esac
9831 else
9832 case $host_cpu in
9833 hppa*64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009834 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009835 ;;
9836 ia64*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009837 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00009838 ;;
9839 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009840
9841 # Older versions of the 11.00 compiler do not understand -b yet
9842 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9844$as_echo_n "checking if $CC understands -b... " >&6; }
9845if ${lt_cv_prog_compiler__b+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847else
9848 lt_cv_prog_compiler__b=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009849 save_LDFLAGS=$LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009850 LDFLAGS="$LDFLAGS -b"
9851 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9853 # The linker can only warn and ignore the option if not recognized
9854 # So say no if there are warnings
9855 if test -s conftest.err; then
9856 # Append any errors to the config.log.
9857 cat conftest.err 1>&5
9858 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9860 if diff conftest.exp conftest.er2 >/dev/null; then
9861 lt_cv_prog_compiler__b=yes
9862 fi
9863 else
9864 lt_cv_prog_compiler__b=yes
9865 fi
9866 fi
9867 $RM -r conftest*
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009868 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009869
9870fi
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9872$as_echo "$lt_cv_prog_compiler__b" >&6; }
9873
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009874if test yes = "$lt_cv_prog_compiler__b"; then
9875 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009876else
9877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9878fi
9879
Jon Dugane34c20c2010-07-08 23:26:52 +00009880 ;;
9881 esac
9882 fi
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009883 if test no = "$with_gnu_ld"; then
9884 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009885 hardcode_libdir_separator=:
9886
9887 case $host_cpu in
9888 hppa*64*|ia64*)
9889 hardcode_direct=no
9890 hardcode_shlibpath_var=no
9891 ;;
9892 *)
9893 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009894 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009895 export_dynamic_flag_spec='$wl-E'
Jon Dugane34c20c2010-07-08 23:26:52 +00009896
9897 # hardcode_minus_L: Not really in the search PATH,
9898 # but as the default location of the library.
9899 hardcode_minus_L=yes
9900 ;;
9901 esac
9902 fi
9903 ;;
9904
9905 irix5* | irix6* | nonstopux*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009906 if test yes = "$GCC"; then
9907 archive_cmds='$CC -shared $pic_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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009908 # Try to use the -exported_symbol ld option, if it does not
9909 # work, assume that -exports_file does not work either and
9910 # implicitly export all symbols.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009911 # This should be the same for all languages, so no per-tag cache variable.
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9913$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9914if ${lt_cv_irix_exported_symbol+:} false; then :
9915 $as_echo_n "(cached) " >&6
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08009916else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009917 save_LDFLAGS=$LDFLAGS
9918 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h. */
9921int foo (void) { return 0; }
9922_ACEOF
9923if ac_fn_c_try_link "$LINENO"; then :
9924 lt_cv_irix_exported_symbol=yes
9925else
9926 lt_cv_irix_exported_symbol=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009927fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009928rm -f core conftest.err conftest.$ac_objext \
9929 conftest$ac_exeext conftest.$ac_ext
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009930 LDFLAGS=$save_LDFLAGS
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009931fi
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9933$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009934 if test yes = "$lt_cv_irix_exported_symbol"; then
9935 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -07009936 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009937 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009938 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'
9939 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'
Jon Dugane34c20c2010-07-08 23:26:52 +00009940 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009941 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009942 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009943 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009944 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00009945 link_all_deplibs=yes
9946 ;;
9947
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009948 linux*)
9949 case $cc_basename in
9950 tcc*)
9951 # Fabrice Bellard et al's Tiny C Compiler
9952 ld_shlibs=yes
9953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9954 ;;
9955 esac
9956 ;;
9957
Jon Dugane34c20c2010-07-08 23:26:52 +00009958 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9961 else
9962 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9963 fi
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 newsos6)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_direct=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009972 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009973 hardcode_libdir_separator=:
9974 hardcode_shlibpath_var=no
9975 ;;
9976
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009977 *nto* | *qnx*)
9978 ;;
9979
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009980 openbsd* | bitrig*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009981 if test -f /usr/libexec/ld.so; then
9982 hardcode_direct=yes
9983 hardcode_shlibpath_var=no
9984 hardcode_direct_absolute=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009986 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009987 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9988 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9989 export_dynamic_flag_spec='$wl-E'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009990 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -08009991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009993 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009994 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009995 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00009996 fi
9997 ;;
9998
9999 os2*)
10000 hardcode_libdir_flag_spec='-L$libdir'
10001 hardcode_minus_L=yes
10002 allow_undefined_flag=unsupported
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010003 shrext_cmds=.dll
10004 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10005 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10006 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10007 $ECHO EXPORTS >> $output_objdir/$libname.def~
10008 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10009 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10010 emximp -o $lib $output_objdir/$libname.def'
10011 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10012 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10013 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10014 $ECHO EXPORTS >> $output_objdir/$libname.def~
10015 prefix_cmds="$SED"~
10016 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10017 prefix_cmds="$prefix_cmds -e 1d";
10018 fi~
10019 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10020 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10022 emximp -o $lib $output_objdir/$libname.def'
10023 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10024 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010025 ;;
10026
10027 osf3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010028 if test yes = "$GCC"; then
10029 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10030 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'
Jon Dugane34c20c2010-07-08 23:26:52 +000010031 else
10032 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010033 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'
Jon Dugane34c20c2010-07-08 23:26:52 +000010034 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010035 archive_cmds_need_lc='no'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010036 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010037 hardcode_libdir_separator=:
10038 ;;
10039
10040 osf4* | osf5*) # as osf3* with the addition of -msym flag
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010041 if test yes = "$GCC"; then
10042 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10043 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10044 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010045 else
10046 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010047 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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010048 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~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010049 $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'
Jon Dugane34c20c2010-07-08 23:26:52 +000010050
10051 # Both c and cxx compiler support -rpath directly
10052 hardcode_libdir_flag_spec='-rpath $libdir'
10053 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010054 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +000010055 hardcode_libdir_separator=:
10056 ;;
10057
10058 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010059 no_undefined_flag=' -z defs'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010060 if test yes = "$GCC"; then
10061 wlarc='$wl'
10062 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010064 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +000010065 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010066 case `$CC -V 2>&1` in
10067 *"Compilers 5.0"*)
10068 wlarc=''
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010069 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010071 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010072 ;;
10073 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010074 wlarc='$wl'
10075 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010077 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010078 ;;
10079 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010080 fi
10081 hardcode_libdir_flag_spec='-R$libdir'
10082 hardcode_shlibpath_var=no
10083 case $host_os in
10084 solaris2.[0-5] | solaris2.[0-5].*) ;;
10085 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010086 # The compiler driver will combine and reorder linker options,
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010087 # but understands '-z linker_flag'. GCC discards it without '$wl',
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010088 # but is careful enough not to reorder.
10089 # Supported since Solaris 2.6 (maybe 2.5.1?)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010090 if test yes = "$GCC"; then
10091 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010092 else
10093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10094 fi
10095 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010096 esac
10097 link_all_deplibs=yes
10098 ;;
10099
10100 sunos4*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010101 if test sequent = "$host_vendor"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010102 # Use $CC to link under sequent, because it throws in some extra .o
10103 # files that make .init and .fini sections work.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010104 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010105 else
10106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10107 fi
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_direct=yes
10110 hardcode_minus_L=yes
10111 hardcode_shlibpath_var=no
10112 ;;
10113
10114 sysv4)
10115 case $host_vendor in
10116 sni)
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_direct=yes # is this really true???
10119 ;;
10120 siemens)
10121 ## LD is ld it makes a PLAMLIB
10122 ## CC just makes a GrossModule.
10123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10124 reload_cmds='$CC -r -o $output$reload_objs'
10125 hardcode_direct=no
10126 ;;
10127 motorola)
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10130 ;;
10131 esac
10132 runpath_var='LD_RUN_PATH'
10133 hardcode_shlibpath_var=no
10134 ;;
10135
10136 sysv4.3*)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 export_dynamic_flag_spec='-Bexport'
10140 ;;
10141
10142 sysv4*MP*)
10143 if test -d /usr/nec; then
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_shlibpath_var=no
10146 runpath_var=LD_RUN_PATH
10147 hardcode_runpath_var=yes
10148 ld_shlibs=yes
10149 fi
10150 ;;
10151
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010153 no_undefined_flag='$wl-z,text'
Jon Dugane34c20c2010-07-08 23:26:52 +000010154 archive_cmds_need_lc=no
10155 hardcode_shlibpath_var=no
10156 runpath_var='LD_RUN_PATH'
10157
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010158 if test yes = "$GCC"; then
10159 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010161 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010162 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010164 fi
10165 ;;
10166
10167 sysv5* | sco3.2v5* | sco5v6*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010168 # Note: We CANNOT use -z defs as we might desire, because we do not
Jon Dugane34c20c2010-07-08 23:26:52 +000010169 # link with -lc, and that would cause any symbols used from libc to
10170 # always be unresolved, which means just about no library would
10171 # ever link correctly. If we're not using GNU ld we use -z text
10172 # though, which does catch some bad symbols but isn't as heavy-handed
10173 # as -z defs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010174 no_undefined_flag='$wl-z,text'
10175 allow_undefined_flag='$wl-z,nodefs'
Jon Dugane34c20c2010-07-08 23:26:52 +000010176 archive_cmds_need_lc=no
10177 hardcode_shlibpath_var=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010178 hardcode_libdir_flag_spec='$wl-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +000010179 hardcode_libdir_separator=':'
10180 link_all_deplibs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010181 export_dynamic_flag_spec='$wl-Bexport'
Jon Dugane34c20c2010-07-08 23:26:52 +000010182 runpath_var='LD_RUN_PATH'
10183
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010184 if test yes = "$GCC"; then
10185 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010187 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010188 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +000010190 fi
10191 ;;
10192
10193 uts4*)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_shlibpath_var=no
10197 ;;
10198
10199 *)
10200 ld_shlibs=no
10201 ;;
10202 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010203
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010204 if test sni = "$host_vendor"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010205 case $host in
10206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010207 export_dynamic_flag_spec='$wl-Blargedynsym'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010208 ;;
10209 esac
10210 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010211 fi
10212
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010214$as_echo "$ld_shlibs" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010215test no = "$ld_shlibs" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010216
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010217with_gnu_ld=$with_gnu_ld
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
Jon Dugane34c20c2010-07-08 23:26:52 +000010233#
10234# Do we need to explicitly link libc?
10235#
10236case "x$archive_cmds_need_lc" in
10237x|xyes)
10238 # Assume -lc should be added
10239 archive_cmds_need_lc=yes
10240
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010241 if test yes,yes = "$GCC,$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010242 case $archive_cmds in
10243 *'~'*)
10244 # FIXME: we may have to deal with multi-command sequences.
10245 ;;
10246 '$CC '*)
10247 # Test whether the compiler implicitly links with -lc since on some
10248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10249 # to ld, don't add -lc before -lgcc.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010251$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010252if ${lt_cv_archive_cmds_need_lc+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254else
10255 $RM conftest*
10256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010257
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010259 (eval $ac_compile) 2>&5
10260 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10262 test $ac_status = 0; } 2>conftest.err; then
10263 soname=conftest
10264 lib=conftest
10265 libobjs=conftest.$ac_objext
10266 deplibs=
10267 wl=$lt_prog_compiler_wl
10268 pic_flag=$lt_prog_compiler_pic
10269 compiler_flags=-v
10270 linker_flags=-v
10271 verstring=
10272 output_objdir=.
10273 libname=conftest
10274 lt_save_allow_undefined_flag=$allow_undefined_flag
10275 allow_undefined_flag=
10276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010277 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010278 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280 test $ac_status = 0; }
10281 then
10282 lt_cv_archive_cmds_need_lc=no
10283 else
10284 lt_cv_archive_cmds_need_lc=yes
10285 fi
10286 allow_undefined_flag=$lt_save_allow_undefined_flag
10287 else
10288 cat conftest.err 1>&5
10289 fi
10290 $RM conftest*
10291
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10294$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10295 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Jon Dugane34c20c2010-07-08 23:26:52 +000010296 ;;
10297 esac
10298 fi
10299 ;;
10300esac
10301
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010454$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010455
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010456if test yes = "$GCC"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010457 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010458 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10459 *) lt_awk_arg='/^libraries:/' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010460 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010461 case $host_os in
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010462 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10463 *) lt_sed_strip_eq='s|=/|/|g' ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010464 esac
10465 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10466 case $lt_search_path_spec in
10467 *\;*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010468 # if the path contains ";" then we assume it to be the separator
10469 # otherwise default to the standard path separator (i.e. ":") - it is
10470 # assumed that no part of a normal pathname contains ";" but that should
10471 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10473 ;;
10474 *)
10475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10476 ;;
10477 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010478 # Ok, now we have the path, separated by spaces, we can step through it
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010479 # and add multilib dir if necessary...
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010480 lt_tmp_lt_search_path_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010481 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10482 # ...but if some path component already ends with the multilib dir we assume
10483 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10484 case "$lt_multi_os_dir; $lt_search_path_spec " in
10485 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10486 lt_multi_os_dir=
10487 ;;
10488 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010489 for lt_sys_path in $lt_search_path_spec; do
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010490 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10491 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10492 elif test -n "$lt_multi_os_dir"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010493 test -d "$lt_sys_path" && \
10494 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10495 fi
10496 done
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010497 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010498BEGIN {RS = " "; FS = "/|\n";} {
10499 lt_foo = "";
10500 lt_count = 0;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010501 for (lt_i = NF; lt_i > 0; lt_i--) {
10502 if ($lt_i != "" && $lt_i != ".") {
10503 if ($lt_i == "..") {
10504 lt_count++;
10505 } else {
10506 if (lt_count == 0) {
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010507 lt_foo = "/" $lt_i lt_foo;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010508 } else {
10509 lt_count--;
10510 }
10511 }
10512 }
10513 }
10514 if (lt_foo != "") { lt_freq[lt_foo]++; }
10515 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10516}'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010517 # AWK program above erroneously prepends '/' to C:/dos/paths
10518 # for these hosts.
10519 case $host_os in
10520 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010521 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010522 esac
10523 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010524else
10525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10526fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010527library_names_spec=
10528libname_spec='lib$name'
10529soname_spec=
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010530shrext_cmds=.so
Jon Dugane34c20c2010-07-08 23:26:52 +000010531postinstall_cmds=
10532postuninstall_cmds=
10533finish_cmds=
10534finish_eval=
10535shlibpath_var=
10536shlibpath_overrides_runpath=unknown
10537version_type=none
10538dynamic_linker="$host_os ld.so"
10539sys_lib_dlsearch_path_spec="/lib /usr/lib"
10540need_lib_prefix=unknown
10541hardcode_into_libs=no
10542
10543# when you set need_version to no, make sure it does not cause -set_version
10544# flags to be left without arguments
10545need_version=unknown
10546
Bruce A. Mah54615792015-05-11 10:42:44 -070010547
10548
Jon Dugane34c20c2010-07-08 23:26:52 +000010549case $host_os in
10550aix3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010551 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010552 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
Jon Dugane34c20c2010-07-08 23:26:52 +000010553 shlibpath_var=LIBPATH
10554
10555 # AIX 3 has no versioning support, so we append a major version to the name.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010556 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010557 ;;
10558
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010559aix[4-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010560 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010561 need_lib_prefix=no
10562 need_version=no
10563 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010564 if test ia64 = "$host_cpu"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010565 # AIX 5 supports IA64
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010566 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010567 shlibpath_var=LD_LIBRARY_PATH
10568 else
10569 # With GCC up to 2.95.x, collect2 would create an import file
10570 # for dependence libraries. The import file would start with
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010571 # the line '#! .'. This would cause the generated library to
10572 # depend on '.', always an invalid library. This was fixed in
Jon Dugane34c20c2010-07-08 23:26:52 +000010573 # development snapshots of GCC prior to 3.0.
10574 case $host_os in
10575 aix4 | aix4.[01] | aix4.[01].*)
10576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10577 echo ' yes '
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010578 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010579 :
10580 else
10581 can_build_shared=no
10582 fi
10583 ;;
10584 esac
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010585 # Using Import Files as archive members, it is possible to support
10586 # filename-based versioning of shared library archives on AIX. While
10587 # this would work for both with and without runtime linking, it will
10588 # prevent static linking of such archives. So we do filename-based
10589 # shared library versioning with .so extension only, which is used
10590 # when both runtime linking and shared linking is enabled.
10591 # Unfortunately, runtime linking may impact performance, so we do
10592 # not want this to be the default eventually. Also, we use the
10593 # versioned .so libs for executables only if there is the -brtl
10594 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10595 # To allow for filename-based versioning support, we need to create
10596 # libNAME.so.V as an archive file, containing:
10597 # *) an Import File, referring to the versioned filename of the
10598 # archive as well as the shared archive member, telling the
10599 # bitwidth (32 or 64) of that shared object, and providing the
10600 # list of exported symbols of that shared object, eventually
10601 # decorated with the 'weak' keyword
10602 # *) the shared object with the F_LOADONLY flag set, to really avoid
10603 # it being seen by the linker.
10604 # At run time we better use the real file rather than another symlink,
10605 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10606
10607 case $with_aix_soname,$aix_use_runtimelinking in
10608 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
Jon Dugane34c20c2010-07-08 23:26:52 +000010609 # soname into executable. Probably we can add versioning support to
10610 # collect2, so additional links can be useful in future.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010611 aix,yes) # traditional libtool
10612 dynamic_linker='AIX unversionable lib.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000010613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10614 # instead of lib<name>.a to let people know that these are not
10615 # typical AIX shared libraries.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10617 ;;
10618 aix,no) # traditional AIX only
10619 dynamic_linker='AIX lib.a(lib.so.V)'
Jon Dugane34c20c2010-07-08 23:26:52 +000010620 # We preserve .a as extension for shared libraries through AIX4.2
10621 # and later when we are not doing run time linking.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010622 library_names_spec='$libname$release.a $libname.a'
10623 soname_spec='$libname$release$shared_ext$major'
10624 ;;
10625 svr4,*) # full svr4 only
10626 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10627 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10628 # We do not specify a path in Import Files, so LIBPATH fires.
10629 shlibpath_overrides_runpath=yes
10630 ;;
10631 *,yes) # both, prefer svr4
10632 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10633 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10634 # unpreferred sharedlib libNAME.a needs extra handling
10635 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10636 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10637 # We do not specify a path in Import Files, so LIBPATH fires.
10638 shlibpath_overrides_runpath=yes
10639 ;;
10640 *,no) # both, prefer aix
10641 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10642 library_names_spec='$libname$release.a $libname.a'
10643 soname_spec='$libname$release$shared_ext$major'
10644 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10645 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10646 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10647 ;;
10648 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010649 shlibpath_var=LIBPATH
10650 fi
10651 ;;
10652
10653amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010654 case $host_cpu in
10655 powerpc)
10656 # Since July 2007 AmigaOS4 officially supports .so libraries.
10657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010659 ;;
10660 m68k)
10661 library_names_spec='$libname.ixlibrary $libname.a'
10662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010663 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010664 ;;
10665 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010666 ;;
10667
10668beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010669 library_names_spec='$libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010670 dynamic_linker="$host_os ld.so"
10671 shlibpath_var=LIBRARY_PATH
10672 ;;
10673
10674bsdi[45]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010675 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010676 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10678 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10683 # the default ld.so.conf also contains /usr/contrib/lib and
10684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10685 # libtool to hard-code these into programs
10686 ;;
10687
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010688cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010689 version_type=windows
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010690 shrext_cmds=.dll
Jon Dugane34c20c2010-07-08 23:26:52 +000010691 need_version=no
10692 need_lib_prefix=no
10693
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010694 case $GCC,$cc_basename in
10695 yes,*)
10696 # gcc
Jon Dugane34c20c2010-07-08 23:26:52 +000010697 library_names_spec='$libname.dll.a'
10698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010699 postinstall_cmds='base_file=`basename \$file`~
10700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +000010701 dldir=$destdir/`dirname \$dlpath`~
10702 test -d \$dldir || mkdir -p \$dldir~
10703 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010704 chmod a+x \$dldir/$dlname~
10705 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10706 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10707 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +000010708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10709 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010710 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000010711 shlibpath_overrides_runpath=yes
10712
10713 case $host_os in
10714 cygwin*)
10715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010716 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010717
10718 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Jon Dugane34c20c2010-07-08 23:26:52 +000010719 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010720 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010721 # MinGW DLLs use traditional 'lib' prefix
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010722 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010723 ;;
10724 pw32*)
10725 # pw32 DLLs use 'pw' prefix rather than 'lib'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010726 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010727 ;;
10728 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010729 dynamic_linker='Win32 ld.exe'
10730 ;;
10731
10732 *,cl*)
10733 # Native MSVC
10734 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010735 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10736 library_names_spec='$libname.dll.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010737
10738 case $build_os in
10739 mingw*)
10740 sys_lib_search_path_spec=
10741 lt_save_ifs=$IFS
10742 IFS=';'
10743 for lt_path in $LIB
10744 do
10745 IFS=$lt_save_ifs
10746 # Let DOS variable expansion print the short 8.3 style file name.
10747 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10748 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10749 done
10750 IFS=$lt_save_ifs
10751 # Convert to MSYS style.
10752 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10753 ;;
10754 cygwin*)
10755 # Convert to unix form, then to dos form, then back to unix form
10756 # but this time dos style (no spaces!) so that the unix form looks
10757 # like /cygdrive/c/PROGRA~1:/cygdr...
10758 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10759 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10760 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10761 ;;
10762 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010763 sys_lib_search_path_spec=$LIB
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010764 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10765 # It is most probably a Windows format PATH.
10766 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10767 else
10768 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10769 fi
10770 # FIXME: find the short name or the path components, as spaces are
10771 # common. (e.g. "Program Files" -> "PROGRA~1")
10772 ;;
10773 esac
10774
10775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010776 postinstall_cmds='base_file=`basename \$file`~
10777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010778 dldir=$destdir/`dirname \$dlpath`~
10779 test -d \$dldir || mkdir -p \$dldir~
10780 $install_prog $dir/$dlname \$dldir/$dlname'
10781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10782 dlpath=$dir/\$dldll~
10783 $RM \$dlpath'
10784 shlibpath_overrides_runpath=yes
10785 dynamic_linker='Win32 link.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010786 ;;
10787
10788 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010789 # Assume MSVC wrapper
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010790 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010791 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +000010792 ;;
10793 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000010794 # FIXME: first we should search . and the directory the executable is in
10795 shlibpath_var=PATH
10796 ;;
10797
10798darwin* | rhapsody*)
10799 dynamic_linker="$host_os dyld"
10800 version_type=darwin
10801 need_lib_prefix=no
10802 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010803 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10804 soname_spec='$libname$release$major$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010805 shlibpath_overrides_runpath=yes
10806 shlibpath_var=DYLD_LIBRARY_PATH
10807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010808
10809 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +000010810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10811 ;;
10812
10813dgux*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010814 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010815 need_lib_prefix=no
10816 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10818 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010819 shlibpath_var=LD_LIBRARY_PATH
10820 ;;
10821
Jon Dugane34c20c2010-07-08 23:26:52 +000010822freebsd* | dragonfly*)
10823 # DragonFly does not have aout. When/if they implement a new
10824 # versioning mechanism, adjust this.
10825 if test -x /usr/bin/objformat; then
10826 objformat=`/usr/bin/objformat`
10827 else
10828 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010829 freebsd[23].*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010830 *) objformat=elf ;;
10831 esac
10832 fi
10833 version_type=freebsd-$objformat
10834 case $version_type in
10835 freebsd-elf*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Bruce A. Mah54615792015-05-11 10:42:44 -070010837 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010838 need_version=no
10839 need_lib_prefix=no
10840 ;;
10841 freebsd-*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000010843 need_version=yes
10844 ;;
10845 esac
10846 shlibpath_var=LD_LIBRARY_PATH
10847 case $host_os in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010848 freebsd2.*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010849 shlibpath_overrides_runpath=yes
10850 ;;
10851 freebsd3.[01]* | freebsdelf3.[01]*)
10852 shlibpath_overrides_runpath=yes
10853 hardcode_into_libs=yes
10854 ;;
10855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010860 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +000010861 shlibpath_overrides_runpath=yes
10862 hardcode_into_libs=yes
10863 ;;
10864 esac
10865 ;;
10866
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010867haiku*)
10868 version_type=linux # correct to gnu/linux during the next big refactor
10869 need_lib_prefix=no
10870 need_version=no
10871 dynamic_linker="$host_os runtime_loader"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10873 soname_spec='$libname$release$shared_ext$major'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010874 shlibpath_var=LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010875 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010876 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Jon Dugane34c20c2010-07-08 23:26:52 +000010877 hardcode_into_libs=yes
10878 ;;
10879
Jon Dugane34c20c2010-07-08 23:26:52 +000010880hpux9* | hpux10* | hpux11*)
10881 # Give a soname corresponding to the major version so that dld.sl refuses to
10882 # link against other versions.
10883 version_type=sunos
10884 need_lib_prefix=no
10885 need_version=no
10886 case $host_cpu in
10887 ia64*)
10888 shrext_cmds='.so'
10889 hardcode_into_libs=yes
10890 dynamic_linker="$host_os dld.so"
10891 shlibpath_var=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 soname_spec='$libname$release$shared_ext$major'
10895 if test 32 = "$HPUX_IA64_MODE"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Bruce A. Mah54615792015-05-11 10:42:44 -070010897 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
Jon Dugane34c20c2010-07-08 23:26:52 +000010898 else
10899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Bruce A. Mah54615792015-05-11 10:42:44 -070010900 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
Jon Dugane34c20c2010-07-08 23:26:52 +000010901 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000010902 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010903 hppa*64*)
10904 shrext_cmds='.sl'
10905 hardcode_into_libs=yes
10906 dynamic_linker="$host_os dld.sl"
10907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910 soname_spec='$libname$release$shared_ext$major'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10913 ;;
10914 *)
Jon Dugane34c20c2010-07-08 23:26:52 +000010915 shrext_cmds='.sl'
10916 dynamic_linker="$host_os dld.sl"
10917 shlibpath_var=SHLIB_PATH
10918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10920 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010921 ;;
10922 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010923 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Jon Dugane34c20c2010-07-08 23:26:52 +000010924 postinstall_cmds='chmod 555 $lib'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010925 # or fails outright, so override atomically:
10926 install_override_mode=555
Jon Dugane34c20c2010-07-08 23:26:52 +000010927 ;;
10928
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010929interix[3-9]*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010930 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010931 need_lib_prefix=no
10932 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10934 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000010935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10939 ;;
10940
10941irix5* | irix6* | nonstopux*)
10942 case $host_os in
10943 nonstopux*) version_type=nonstopux ;;
10944 *)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010945 if test yes = "$lt_cv_prog_gnu_ld"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070010946 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000010947 else
10948 version_type=irix
10949 fi ;;
10950 esac
10951 need_lib_prefix=no
10952 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010953 soname_spec='$libname$release$shared_ext$major'
10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000010955 case $host_os in
10956 irix5* | nonstopux*)
10957 libsuff= shlibsuff=
10958 ;;
10959 *)
10960 case $LD in # libtool.m4 will add one of these switches to LD
10961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10962 libsuff= shlibsuff= libmagic=32-bit;;
10963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10964 libsuff=32 shlibsuff=N32 libmagic=N32;;
10965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10966 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10967 *) libsuff= shlibsuff= libmagic=never-match;;
10968 esac
10969 ;;
10970 esac
10971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10972 shlibpath_overrides_runpath=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010973 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10974 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
Jon Dugane34c20c2010-07-08 23:26:52 +000010975 hardcode_into_libs=yes
10976 ;;
10977
10978# No shared lib support for Linux oldld, aout, or coff.
10979linux*oldld* | linux*aout* | linux*coff*)
10980 dynamic_linker=no
10981 ;;
10982
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080010983linux*android*)
10984 version_type=none # Android doesn't support versioned libraries.
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='$libname$release$shared_ext'
10988 soname_spec='$libname$release$shared_ext'
10989 finish_cmds=
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=yes
10992
10993 # This implies no fast_install, which is unacceptable.
10994 # Some rework will be needed to allow for fast_install
10995 # before this can be enabled.
10996 hardcode_into_libs=yes
10997
10998 dynamic_linker='Android linker'
10999 # Don't embed -rpath directories since the linker doesn't support them.
11000 hardcode_libdir_flag_spec='-L$libdir'
11001 ;;
11002
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011003# This must be glibc/ELF.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011004linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011005 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011006 need_lib_prefix=no
11007 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11009 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=no
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011013
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011014 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011015 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017else
11018 lt_cv_shlibpath_overrides_runpath=no
11019 save_LDFLAGS=$LDFLAGS
11020 save_libdir=$libdir
11021 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11022 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011024/* end confdefs.h. */
11025
11026int
11027main ()
11028{
11029
11030 ;
11031 return 0;
11032}
11033_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011034if ac_fn_c_try_link "$LINENO"; then :
11035 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11036 lt_cv_shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011037fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011038fi
11039rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LDFLAGS=$save_LDFLAGS
11042 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011043
11044fi
11045
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011046 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011047
Jon Dugane34c20c2010-07-08 23:26:52 +000011048 # This implies no fast_install, which is unacceptable.
11049 # Some rework will be needed to allow for fast_install
11050 # before this can be enabled.
11051 hardcode_into_libs=yes
11052
Bruce A. Mah54615792015-05-11 10:42:44 -070011053 # Ideally, we could use ldconfig to report *all* directores which are
11054 # searched for libraries, however this is still not possible. Aside from not
11055 # being certain /sbin/ldconfig is available, command
11056 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11057 # even though it is searched at run-time. Try to do the best guess by
11058 # appending ld.so.conf contents (and includes) to the search path.
Jon Dugane34c20c2010-07-08 23:26:52 +000011059 if test -f /etc/ld.so.conf; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011060 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' ' '`
11061 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +000011062 fi
11063
11064 # We used to test for /lib/ld.so.1 and disable shared libraries on
11065 # powerpc, because MkLinux only supported shared libraries with the
11066 # GNU dynamic linker. Since this was broken with cross compilers,
11067 # most powerpc-linux boxes support dynamic linking these days and
11068 # people can always --disable-shared, the test was removed, and we
11069 # assume the GNU/Linux dynamic linker is in use.
11070 dynamic_linker='GNU/Linux ld.so'
11071 ;;
11072
11073netbsd*)
11074 version_type=sunos
11075 need_lib_prefix=no
11076 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011078 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11080 dynamic_linker='NetBSD (a.out) ld.so'
11081 else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011084 dynamic_linker='NetBSD ld.elf_so'
11085 fi
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 ;;
11090
11091newsos6)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011092 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 ;;
11097
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011098*nto* | *qnx*)
11099 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +000011100 need_lib_prefix=no
11101 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011104 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011105 shlibpath_overrides_runpath=no
11106 hardcode_into_libs=yes
11107 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +000011108 ;;
11109
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011110openbsd* | bitrig*)
Jon Dugane34c20c2010-07-08 23:26:52 +000011111 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011112 sys_lib_dlsearch_path_spec=/usr/lib
Jon Dugane34c20c2010-07-08 23:26:52 +000011113 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11115 need_version=no
11116 else
11117 need_version=yes
11118 fi
11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011122 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011123 ;;
11124
11125os2*)
11126 libname_spec='$name'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011127 version_type=windows
11128 shrext_cmds=.dll
11129 need_version=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011130 need_lib_prefix=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011131 # OS/2 can only load a DLL with a base name of 8 characters or less.
11132 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11133 v=$($ECHO $release$versuffix | tr -d .-);
11134 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11135 $ECHO $n$v`$shared_ext'
11136 library_names_spec='${libname}_dll.$libext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011137 dynamic_linker='OS/2 ld.exe'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011138 shlibpath_var=BEGINLIBPATH
11139 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11141 postinstall_cmds='base_file=`basename \$file`~
11142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11143 dldir=$destdir/`dirname \$dlpath`~
11144 test -d \$dldir || mkdir -p \$dldir~
11145 $install_prog $dir/$dlname \$dldir/$dlname~
11146 chmod a+x \$dldir/$dlname~
11147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11149 fi'
11150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11151 dlpath=$dir/\$dldll~
11152 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +000011153 ;;
11154
11155osf3* | osf4* | osf5*)
11156 version_type=osf
11157 need_lib_prefix=no
11158 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011159 soname_spec='$libname$release$shared_ext$major'
11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +000011161 shlibpath_var=LD_LIBRARY_PATH
11162 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
Jon Dugane34c20c2010-07-08 23:26:52 +000011164 ;;
11165
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011166rdos*)
11167 dynamic_linker=no
11168 ;;
11169
Jon Dugane34c20c2010-07-08 23:26:52 +000011170solaris*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011171 version_type=linux # correct to gnu/linux during the next big refactor
Jon Dugane34c20c2010-07-08 23:26:52 +000011172 need_lib_prefix=no
11173 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11175 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes
11178 hardcode_into_libs=yes
11179 # ldd complains unless libraries are executable
11180 postinstall_cmds='chmod +x $lib'
11181 ;;
11182
11183sunos4*)
11184 version_type=sunos
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011185 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
Jon Dugane34c20c2010-07-08 23:26:52 +000011186 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011189 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011190 need_lib_prefix=no
11191 fi
11192 need_version=yes
11193 ;;
11194
11195sysv4 | sysv4.3*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011196 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011199 shlibpath_var=LD_LIBRARY_PATH
11200 case $host_vendor in
11201 sni)
11202 shlibpath_overrides_runpath=no
11203 need_lib_prefix=no
11204 runpath_var=LD_RUN_PATH
11205 ;;
11206 siemens)
11207 need_lib_prefix=no
11208 ;;
11209 motorola)
11210 need_lib_prefix=no
11211 need_version=no
11212 shlibpath_overrides_runpath=no
11213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11214 ;;
11215 esac
11216 ;;
11217
11218sysv4*MP*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011219 if test -d /usr/nec; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011220 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011221 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11222 soname_spec='$libname$shared_ext.$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011223 shlibpath_var=LD_LIBRARY_PATH
11224 fi
11225 ;;
11226
11227sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011228 version_type=sco
Jon Dugane34c20c2010-07-08 23:26:52 +000011229 need_lib_prefix=no
11230 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11232 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011233 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011234 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011235 hardcode_into_libs=yes
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011236 if test yes = "$with_gnu_ld"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011237 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11238 else
11239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11240 case $host_os in
11241 sco3.2v5*)
11242 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11243 ;;
11244 esac
11245 fi
11246 sys_lib_dlsearch_path_spec='/usr/lib'
11247 ;;
11248
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011249tpf*)
11250 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011251 version_type=linux # correct to gnu/linux during the next big refactor
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011252 need_lib_prefix=no
11253 need_version=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=no
11257 hardcode_into_libs=yes
11258 ;;
11259
Jon Dugane34c20c2010-07-08 23:26:52 +000011260uts4*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011261 version_type=linux # correct to gnu/linux during the next big refactor
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263 soname_spec='$libname$release$shared_ext$major'
Jon Dugane34c20c2010-07-08 23:26:52 +000011264 shlibpath_var=LD_LIBRARY_PATH
11265 ;;
11266
11267*)
11268 dynamic_linker=no
11269 ;;
11270esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011272$as_echo "$dynamic_linker" >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011273test no = "$dynamic_linker" && can_build_shared=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011274
11275variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011276if test yes = "$GCC"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011277 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11278fi
11279
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011280if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11281 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011282fi
Bruce A. Mah54615792015-05-11 10:42:44 -070011283
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011284if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11285 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011286fi
11287
Bruce A. Mah54615792015-05-11 10:42:44 -070011288# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11289configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11290
11291# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11292func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11293
11294# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11295configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11296
11297
11298
11299
11300
11301
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011388
11389
11390
11391
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011394$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011395hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011396if test -n "$hardcode_libdir_flag_spec" ||
11397 test -n "$runpath_var" ||
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011398 test yes = "$hardcode_automatic"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011399
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011400 # We can hardcode non-existent directories.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011401 if test no != "$hardcode_direct" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000011402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11403 # have to relink, otherwise we might link with an installed library
11404 # when we should be linking with a yet-to-be-installed one
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011405 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11406 test no != "$hardcode_minus_L"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011407 # Linking always hardcodes the temporary library directory.
11408 hardcode_action=relink
11409 else
11410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11411 hardcode_action=immediate
11412 fi
11413else
11414 # We cannot hardcode anything, or else we can only hardcode existing
11415 # directories.
11416 hardcode_action=unsupported
11417fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011419$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011420
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011421if test relink = "$hardcode_action" ||
11422 test yes = "$inherit_rpath"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011423 # Fast installation is not supported
11424 enable_fast_install=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011425elif test yes = "$shlibpath_overrides_runpath" ||
11426 test no = "$enable_shared"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011427 # Fast installation is not necessary
11428 enable_fast_install=needless
11429fi
11430
11431
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011432
11433
11434
11435
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011436 if test yes != "$enable_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011437 enable_dlopen=unknown
11438 enable_dlopen_self=unknown
11439 enable_dlopen_self_static=unknown
11440else
11441 lt_cv_dlopen=no
11442 lt_cv_dlopen_libs=
11443
11444 case $host_os in
11445 beos*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011446 lt_cv_dlopen=load_add_on
Jon Dugane34c20c2010-07-08 23:26:52 +000011447 lt_cv_dlopen_libs=
11448 lt_cv_dlopen_self=yes
11449 ;;
11450
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011451 mingw* | pw32* | cegcc*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011452 lt_cv_dlopen=LoadLibrary
Jon Dugane34c20c2010-07-08 23:26:52 +000011453 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011454 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011455
11456 cygwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011457 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011458 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011459 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011460
11461 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011462 # if libdl is installed we need to link against it
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011464$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011465if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011466 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011467else
11468 ac_check_lib_save_LIBS=$LIBS
11469LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011471/* end confdefs.h. */
11472
11473/* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476#ifdef __cplusplus
11477extern "C"
11478#endif
11479char dlopen ();
11480int
11481main ()
11482{
11483return dlopen ();
11484 ;
11485 return 0;
11486}
11487_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011488if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011489 ac_cv_lib_dl_dlopen=yes
11490else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011491 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011492fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011493rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011495LIBS=$ac_check_lib_save_LIBS
11496fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011498$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011499if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011500 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011501else
11502
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011503 lt_cv_dlopen=dyld
Jon Dugane34c20c2010-07-08 23:26:52 +000011504 lt_cv_dlopen_libs=
11505 lt_cv_dlopen_self=yes
11506
11507fi
11508
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011509 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000011510
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011511 tpf*)
11512 # Don't try to run any link tests for TPF. We know it's impossible
11513 # because TPF is a cross-compiler, and we know how we open DSOs.
11514 lt_cv_dlopen=dlopen
11515 lt_cv_dlopen_libs=
11516 lt_cv_dlopen_self=no
11517 ;;
11518
Jon Dugane34c20c2010-07-08 23:26:52 +000011519 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011520 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11521if test "x$ac_cv_func_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011522 lt_cv_dlopen=shl_load
Jon Dugane34c20c2010-07-08 23:26:52 +000011523else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011525$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011526if ${ac_cv_lib_dld_shl_load+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011527 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011528else
11529 ac_check_lib_save_LIBS=$LIBS
11530LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011532/* end confdefs.h. */
11533
11534/* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537#ifdef __cplusplus
11538extern "C"
11539#endif
11540char shl_load ();
11541int
11542main ()
11543{
11544return shl_load ();
11545 ;
11546 return 0;
11547}
11548_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011549if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011550 ac_cv_lib_dld_shl_load=yes
11551else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011552 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011553fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011554rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011556LIBS=$ac_check_lib_save_LIBS
11557fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011559$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011560if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011561 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011562else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011563 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11564if test "x$ac_cv_func_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011565 lt_cv_dlopen=dlopen
Jon Dugane34c20c2010-07-08 23:26:52 +000011566else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011568$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011569if ${ac_cv_lib_dl_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011570 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011571else
11572 ac_check_lib_save_LIBS=$LIBS
11573LIBS="-ldl $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011575/* 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 dlopen ();
11584int
11585main ()
11586{
11587return dlopen ();
11588 ;
11589 return 0;
11590}
11591_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011592if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011593 ac_cv_lib_dl_dlopen=yes
11594else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011595 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011596fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011597rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011599LIBS=$ac_check_lib_save_LIBS
11600fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011602$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011603if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011604 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
Jon Dugane34c20c2010-07-08 23:26:52 +000011605else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011607$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011608if ${ac_cv_lib_svld_dlopen+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011609 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011610else
11611 ac_check_lib_save_LIBS=$LIBS
11612LIBS="-lsvld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011614/* end confdefs.h. */
11615
11616/* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11619#ifdef __cplusplus
11620extern "C"
11621#endif
11622char dlopen ();
11623int
11624main ()
11625{
11626return dlopen ();
11627 ;
11628 return 0;
11629}
11630_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011631if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011632 ac_cv_lib_svld_dlopen=yes
11633else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011634 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011635fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011636rm -f core conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011638LIBS=$ac_check_lib_save_LIBS
11639fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011641$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011642if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011643 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
Jon Dugane34c20c2010-07-08 23:26:52 +000011644else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011646$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011647if ${ac_cv_lib_dld_dld_link+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011648 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011649else
11650 ac_check_lib_save_LIBS=$LIBS
11651LIBS="-ldld $LIBS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011653/* end confdefs.h. */
11654
11655/* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658#ifdef __cplusplus
11659extern "C"
11660#endif
11661char dld_link ();
11662int
11663main ()
11664{
11665return dld_link ();
11666 ;
11667 return 0;
11668}
11669_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011670if ac_fn_c_try_link "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011671 ac_cv_lib_dld_dld_link=yes
11672else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011673 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011674fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011675rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011677LIBS=$ac_check_lib_save_LIBS
11678fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011680$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011681if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011682 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
Jon Dugane34c20c2010-07-08 23:26:52 +000011683fi
11684
11685
11686fi
11687
11688
11689fi
11690
11691
11692fi
11693
11694
11695fi
11696
11697
11698fi
11699
11700 ;;
11701 esac
11702
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011703 if test no = "$lt_cv_dlopen"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011704 enable_dlopen=no
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011705 else
11706 enable_dlopen=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000011707 fi
11708
11709 case $lt_cv_dlopen in
11710 dlopen)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011711 save_CPPFLAGS=$CPPFLAGS
11712 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
Jon Dugane34c20c2010-07-08 23:26:52 +000011713
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011714 save_LDFLAGS=$LDFLAGS
Jon Dugane34c20c2010-07-08 23:26:52 +000011715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11716
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011717 save_LIBS=$LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011718 LIBS="$lt_cv_dlopen_libs $LIBS"
11719
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011721$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011722if ${lt_cv_dlopen_self+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011723 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011724else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011725 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011726 lt_cv_dlopen_self=cross
11727else
11728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11729 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011730 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011731#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011732#include "confdefs.h"
11733
11734#if HAVE_DLFCN_H
11735#include <dlfcn.h>
11736#endif
11737
11738#include <stdio.h>
11739
11740#ifdef RTLD_GLOBAL
11741# define LT_DLGLOBAL RTLD_GLOBAL
11742#else
11743# ifdef DL_GLOBAL
11744# define LT_DLGLOBAL DL_GLOBAL
11745# else
11746# define LT_DLGLOBAL 0
11747# endif
11748#endif
11749
11750/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11751 find out it does not work in some platform. */
11752#ifndef LT_DLLAZY_OR_NOW
11753# ifdef RTLD_LAZY
11754# define LT_DLLAZY_OR_NOW RTLD_LAZY
11755# else
11756# ifdef DL_LAZY
11757# define LT_DLLAZY_OR_NOW DL_LAZY
11758# else
11759# ifdef RTLD_NOW
11760# define LT_DLLAZY_OR_NOW RTLD_NOW
11761# else
11762# ifdef DL_NOW
11763# define LT_DLLAZY_OR_NOW DL_NOW
11764# else
11765# define LT_DLLAZY_OR_NOW 0
11766# endif
11767# endif
11768# endif
11769# endif
11770#endif
11771
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011772/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011773 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011774#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011775int fnord () __attribute__((visibility("default")));
11776#endif
11777
11778int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011779int main ()
11780{
11781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11782 int status = $lt_dlunknown;
11783
11784 if (self)
11785 {
11786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011787 else
11788 {
11789 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11790 else puts (dlerror ());
11791 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011792 /* dlclose (self); */
11793 }
11794 else
11795 puts (dlerror ());
11796
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011797 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011798}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011799_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011801 (eval $ac_link) 2>&5
11802 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011804 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011805 (./conftest; exit; ) >&5 2>/dev/null
11806 lt_status=$?
11807 case x$lt_status in
11808 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11809 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11810 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11811 esac
11812 else :
11813 # compilation failed
11814 lt_cv_dlopen_self=no
11815 fi
11816fi
11817rm -fr conftest*
11818
11819
11820fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011822$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011823
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011824 if test yes = "$lt_cv_dlopen_self"; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011825 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011827$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011828if ${lt_cv_dlopen_self_static+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011829 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011830else
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011831 if test yes = "$cross_compiling"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000011832 lt_cv_dlopen_self_static=cross
11833else
11834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11835 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011836 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011837#line $LINENO "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000011838#include "confdefs.h"
11839
11840#if HAVE_DLFCN_H
11841#include <dlfcn.h>
11842#endif
11843
11844#include <stdio.h>
11845
11846#ifdef RTLD_GLOBAL
11847# define LT_DLGLOBAL RTLD_GLOBAL
11848#else
11849# ifdef DL_GLOBAL
11850# define LT_DLGLOBAL DL_GLOBAL
11851# else
11852# define LT_DLGLOBAL 0
11853# endif
11854#endif
11855
11856/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11857 find out it does not work in some platform. */
11858#ifndef LT_DLLAZY_OR_NOW
11859# ifdef RTLD_LAZY
11860# define LT_DLLAZY_OR_NOW RTLD_LAZY
11861# else
11862# ifdef DL_LAZY
11863# define LT_DLLAZY_OR_NOW DL_LAZY
11864# else
11865# ifdef RTLD_NOW
11866# define LT_DLLAZY_OR_NOW RTLD_NOW
11867# else
11868# ifdef DL_NOW
11869# define LT_DLLAZY_OR_NOW DL_NOW
11870# else
11871# define LT_DLLAZY_OR_NOW 0
11872# endif
11873# endif
11874# endif
11875# endif
11876#endif
11877
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011878/* When -fvisibility=hidden is used, assume the code has been annotated
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011879 correspondingly for the symbols needed. */
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011880#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011881int fnord () __attribute__((visibility("default")));
11882#endif
11883
11884int fnord () { return 42; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011885int main ()
11886{
11887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888 int status = $lt_dlunknown;
11889
11890 if (self)
11891 {
11892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011893 else
11894 {
11895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11896 else puts (dlerror ());
11897 }
Jon Dugane34c20c2010-07-08 23:26:52 +000011898 /* dlclose (self); */
11899 }
11900 else
11901 puts (dlerror ());
11902
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011903 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000011904}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011905_LT_EOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000011907 (eval $ac_link) 2>&5
11908 ac_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011910 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011911 (./conftest; exit; ) >&5 2>/dev/null
11912 lt_status=$?
11913 case x$lt_status in
11914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11916 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11917 esac
11918 else :
11919 # compilation failed
11920 lt_cv_dlopen_self_static=no
11921 fi
11922fi
11923rm -fr conftest*
11924
11925
11926fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011928$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011929 fi
11930
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011931 CPPFLAGS=$save_CPPFLAGS
11932 LDFLAGS=$save_LDFLAGS
11933 LIBS=$save_LIBS
Jon Dugane34c20c2010-07-08 23:26:52 +000011934 ;;
11935 esac
11936
11937 case $lt_cv_dlopen_self in
11938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11939 *) enable_dlopen_self=unknown ;;
11940 esac
11941
11942 case $lt_cv_dlopen_self_static in
11943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11944 *) enable_dlopen_self_static=unknown ;;
11945 esac
11946fi
11947
11948
Jon Dugane34c20c2010-07-08 23:26:52 +000011949
Jon Dugane34c20c2010-07-08 23:26:52 +000011950
jef56a97f92012-08-20 14:35:58 -070011951
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964striplib=
11965old_striplib=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011967$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011968if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11969 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11970 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011972$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011973else
11974# FIXME - insert some real tests, host_os isn't really good enough
11975 case $host_os in
11976 darwin*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080011977 if test -n "$STRIP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011978 striplib="$STRIP -x"
11979 old_striplib="$STRIP -S"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011981$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011982 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011984$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011985 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011986 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011987 *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070011988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011989$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070011990 ;;
11991 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011992fi
jef56a97f92012-08-20 14:35:58 -070011993
jef56a97f92012-08-20 14:35:58 -070011994
jef56a97f92012-08-20 14:35:58 -070011995
jef56a97f92012-08-20 14:35:58 -070011996
jef56a97f92012-08-20 14:35:58 -070011997
jef56a97f92012-08-20 14:35:58 -070011998
jef56a97f92012-08-20 14:35:58 -070011999
jef56a97f92012-08-20 14:35:58 -070012000
jef56a97f92012-08-20 14:35:58 -070012001
jef56a97f92012-08-20 14:35:58 -070012002
jef56a97f92012-08-20 14:35:58 -070012003
jef56a97f92012-08-20 14:35:58 -070012004
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012005 # Report what library types will actually be built
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012007$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012009$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012010
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012012$as_echo_n "checking whether to build shared libraries... " >&6; }
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012013 test no = "$can_build_shared" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070012014
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012015 # On AIX, shared libraries and static libraries use the same namespace, and
12016 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070012017 case $host_os in
12018 aix3*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012019 test yes = "$enable_shared" && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012020 if test -n "$RANLIB"; then
12021 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12022 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070012023 fi
12024 ;;
jef56a97f92012-08-20 14:35:58 -070012025
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012026 aix[4-9]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012027 if test ia64 != "$host_cpu"; then
12028 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12029 yes,aix,yes) ;; # shared object as lib.so file only
12030 yes,svr4,*) ;; # shared object as lib.so archive member only
12031 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12032 esac
jef56a97f92012-08-20 14:35:58 -070012033 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012034 ;;
12035 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012037$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070012038
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012040$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012041 # Make sure either enable_shared or enable_static is yes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012042 test yes = "$enable_shared" || enable_static=yes
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012044$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070012045
jef56a97f92012-08-20 14:35:58 -070012046
Jef Poskanzer437537f2012-11-30 12:16:17 -080012047
12048
jef56a97f92012-08-20 14:35:58 -070012049fi
jef56a97f92012-08-20 14:35:58 -070012050ac_ext=c
12051ac_cpp='$CPP $CPPFLAGS'
12052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12054ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080012056CC=$lt_save_CC
jef56a97f92012-08-20 14:35:58 -070012057
jef56a97f92012-08-20 14:35:58 -070012058
jef56a97f92012-08-20 14:35:58 -070012059
12060
jef56a97f92012-08-20 14:35:58 -070012061
jef56a97f92012-08-20 14:35:58 -070012062
jef56a97f92012-08-20 14:35:58 -070012063
jef56a97f92012-08-20 14:35:58 -070012064
jef56a97f92012-08-20 14:35:58 -070012065
jef56a97f92012-08-20 14:35:58 -070012066
jef56a97f92012-08-20 14:35:58 -070012067
jef56a97f92012-08-20 14:35:58 -070012068
12069
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012070
12071
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012072 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070012073
jef56a97f92012-08-20 14:35:58 -070012074
12075
jef56a97f92012-08-20 14:35:58 -070012076
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012077# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000012078
12079
12080
Bruce A. Mah06280a62020-05-04 15:11:05 -070012081
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12083$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12084 # Check whether --enable-maintainer-mode was given.
12085if test "${enable_maintainer_mode+set}" = set; then :
12086 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12087else
12088 USE_MAINTAINER_MODE=no
12089fi
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12092$as_echo "$USE_MAINTAINER_MODE" >&6; }
12093 if test $USE_MAINTAINER_MODE = yes; then
12094 MAINTAINER_MODE_TRUE=
12095 MAINTAINER_MODE_FALSE='#'
12096else
12097 MAINTAINER_MODE_TRUE='#'
12098 MAINTAINER_MODE_FALSE=
12099fi
12100
12101 MAINT=$MAINTAINER_MODE_TRUE
12102
12103
12104ac_config_headers="$ac_config_headers src/iperf_config.h"
12105
12106
12107
12108
12109# Checks for tools: c compiler, ranlib (used for creating static libraries),
12110# symlinks and libtool
12111ac_ext=c
12112ac_cpp='$CPP $CPPFLAGS'
12113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115ac_compiler_gnu=$ac_cv_c_compiler_gnu
12116if test -n "$ac_tool_prefix"; then
12117 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12118set dummy ${ac_tool_prefix}gcc; ac_word=$2
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if ${ac_cv_prog_CC+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123else
12124 if test -n "$CC"; then
12125 ac_cv_prog_CC="$CC" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138done
12139 done
12140IFS=$as_save_IFS
12141
12142fi
12143fi
12144CC=$ac_cv_prog_CC
12145if test -n "$CC"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12147$as_echo "$CC" >&6; }
12148else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151fi
12152
12153
12154fi
12155if test -z "$ac_cv_prog_CC"; then
12156 ac_ct_CC=$CC
12157 # Extract the first word of "gcc", so it can be a program name with args.
12158set dummy gcc; ac_word=$2
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160$as_echo_n "checking for $ac_word... " >&6; }
12161if ${ac_cv_prog_ac_ct_CC+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163else
12164 if test -n "$ac_ct_CC"; then
12165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12166else
12167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168for as_dir in $PATH
12169do
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_prog_ac_ct_CC="gcc"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12177 fi
12178done
12179 done
12180IFS=$as_save_IFS
12181
12182fi
12183fi
12184ac_ct_CC=$ac_cv_prog_ac_ct_CC
12185if test -n "$ac_ct_CC"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12187$as_echo "$ac_ct_CC" >&6; }
12188else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; }
12191fi
12192
12193 if test "x$ac_ct_CC" = x; then
12194 CC=""
12195 else
12196 case $cross_compiling:$ac_tool_warned in
12197yes:)
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12200ac_tool_warned=yes ;;
12201esac
12202 CC=$ac_ct_CC
12203 fi
12204else
12205 CC="$ac_cv_prog_CC"
12206fi
12207
12208if test -z "$CC"; then
12209 if test -n "$ac_tool_prefix"; then
12210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12211set dummy ${ac_tool_prefix}cc; ac_word=$2
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
12214if ${ac_cv_prog_CC+:} false; then :
12215 $as_echo_n "(cached) " >&6
12216else
12217 if test -n "$CC"; then
12218 ac_cv_prog_CC="$CC" # Let the user override the test.
12219else
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12227 ac_cv_prog_CC="${ac_tool_prefix}cc"
12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 break 2
12230 fi
12231done
12232 done
12233IFS=$as_save_IFS
12234
12235fi
12236fi
12237CC=$ac_cv_prog_CC
12238if test -n "$CC"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12240$as_echo "$CC" >&6; }
12241else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244fi
12245
12246
12247 fi
12248fi
12249if test -z "$CC"; then
12250 # Extract the first word of "cc", so it can be a program name with args.
12251set dummy cc; ac_word=$2
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253$as_echo_n "checking for $ac_word... " >&6; }
12254if ${ac_cv_prog_CC+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256else
12257 if test -n "$CC"; then
12258 ac_cv_prog_CC="$CC" # Let the user override the test.
12259else
12260 ac_prog_rejected=no
12261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $PATH
12263do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12269 ac_prog_rejected=yes
12270 continue
12271 fi
12272 ac_cv_prog_CC="cc"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276done
12277 done
12278IFS=$as_save_IFS
12279
12280if test $ac_prog_rejected = yes; then
12281 # We found a bogon in the path, so make sure we never use it.
12282 set dummy $ac_cv_prog_CC
12283 shift
12284 if test $# != 0; then
12285 # We chose a different compiler from the bogus one.
12286 # However, it has the same basename, so the bogon will be chosen
12287 # first if we set CC to just the basename; use the full file name.
12288 shift
12289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12290 fi
12291fi
12292fi
12293fi
12294CC=$ac_cv_prog_CC
12295if test -n "$CC"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12297$as_echo "$CC" >&6; }
12298else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301fi
12302
12303
12304fi
12305if test -z "$CC"; then
12306 if test -n "$ac_tool_prefix"; then
12307 for ac_prog in cl.exe
12308 do
12309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312$as_echo_n "checking for $ac_word... " >&6; }
12313if ${ac_cv_prog_CC+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315else
12316 if test -n "$CC"; then
12317 ac_cv_prog_CC="$CC" # Let the user override the test.
12318else
12319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320for as_dir in $PATH
12321do
12322 IFS=$as_save_IFS
12323 test -z "$as_dir" && as_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 break 2
12329 fi
12330done
12331 done
12332IFS=$as_save_IFS
12333
12334fi
12335fi
12336CC=$ac_cv_prog_CC
12337if test -n "$CC"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12339$as_echo "$CC" >&6; }
12340else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342$as_echo "no" >&6; }
12343fi
12344
12345
12346 test -n "$CC" && break
12347 done
12348fi
12349if test -z "$CC"; then
12350 ac_ct_CC=$CC
12351 for ac_prog in cl.exe
12352do
12353 # Extract the first word of "$ac_prog", so it can be a program name with args.
12354set dummy $ac_prog; ac_word=$2
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356$as_echo_n "checking for $ac_word... " >&6; }
12357if ${ac_cv_prog_ac_ct_CC+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359else
12360 if test -n "$ac_ct_CC"; then
12361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12362else
12363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364for as_dir in $PATH
12365do
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12370 ac_cv_prog_ac_ct_CC="$ac_prog"
12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 break 2
12373 fi
12374done
12375 done
12376IFS=$as_save_IFS
12377
12378fi
12379fi
12380ac_ct_CC=$ac_cv_prog_ac_ct_CC
12381if test -n "$ac_ct_CC"; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12383$as_echo "$ac_ct_CC" >&6; }
12384else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386$as_echo "no" >&6; }
12387fi
12388
12389
12390 test -n "$ac_ct_CC" && break
12391done
12392
12393 if test "x$ac_ct_CC" = x; then
12394 CC=""
12395 else
12396 case $cross_compiling:$ac_tool_warned in
12397yes:)
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12400ac_tool_warned=yes ;;
12401esac
12402 CC=$ac_ct_CC
12403 fi
12404fi
12405
12406fi
12407
12408
12409test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12411as_fn_error $? "no acceptable C compiler found in \$PATH
12412See \`config.log' for more details" "$LINENO" 5; }
12413
12414# Provide some information about the compiler.
12415$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12416set X $ac_compile
12417ac_compiler=$2
12418for ac_option in --version -v -V -qversion; do
12419 { { ac_try="$ac_compiler $ac_option >&5"
12420case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423esac
12424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12425$as_echo "$ac_try_echo"; } >&5
12426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12427 ac_status=$?
12428 if test -s conftest.err; then
12429 sed '10a\
12430... rest of stderr output deleted ...
12431 10q' conftest.err >conftest.er1
12432 cat conftest.er1 >&5
12433 fi
12434 rm -f conftest.er1 conftest.err
12435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12436 test $ac_status = 0; }
12437done
12438
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12440$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12441if ${ac_cv_c_compiler_gnu+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h. */
12446
12447int
12448main ()
12449{
12450#ifndef __GNUC__
12451 choke me
12452#endif
12453
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458if ac_fn_c_try_compile "$LINENO"; then :
12459 ac_compiler_gnu=yes
12460else
12461 ac_compiler_gnu=no
12462fi
12463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464ac_cv_c_compiler_gnu=$ac_compiler_gnu
12465
12466fi
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12468$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12469if test $ac_compiler_gnu = yes; then
12470 GCC=yes
12471else
12472 GCC=
12473fi
12474ac_test_CFLAGS=${CFLAGS+set}
12475ac_save_CFLAGS=$CFLAGS
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12477$as_echo_n "checking whether $CC accepts -g... " >&6; }
12478if ${ac_cv_prog_cc_g+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480else
12481 ac_save_c_werror_flag=$ac_c_werror_flag
12482 ac_c_werror_flag=yes
12483 ac_cv_prog_cc_g=no
12484 CFLAGS="-g"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h. */
12487
12488int
12489main ()
12490{
12491
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496if ac_fn_c_try_compile "$LINENO"; then :
12497 ac_cv_prog_cc_g=yes
12498else
12499 CFLAGS=""
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501/* end confdefs.h. */
12502
12503int
12504main ()
12505{
12506
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511if ac_fn_c_try_compile "$LINENO"; then :
12512
12513else
12514 ac_c_werror_flag=$ac_save_c_werror_flag
12515 CFLAGS="-g"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h. */
12518
12519int
12520main ()
12521{
12522
12523 ;
12524 return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_compile "$LINENO"; then :
12528 ac_cv_prog_cc_g=yes
12529fi
12530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531fi
12532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533fi
12534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535 ac_c_werror_flag=$ac_save_c_werror_flag
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12538$as_echo "$ac_cv_prog_cc_g" >&6; }
12539if test "$ac_test_CFLAGS" = set; then
12540 CFLAGS=$ac_save_CFLAGS
12541elif test $ac_cv_prog_cc_g = yes; then
12542 if test "$GCC" = yes; then
12543 CFLAGS="-g -O2"
12544 else
12545 CFLAGS="-g"
12546 fi
12547else
12548 if test "$GCC" = yes; then
12549 CFLAGS="-O2"
12550 else
12551 CFLAGS=
12552 fi
12553fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12555$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12556if ${ac_cv_prog_cc_c89+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558else
12559 ac_cv_prog_cc_c89=no
12560ac_save_CC=$CC
12561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h. */
12563#include <stdarg.h>
12564#include <stdio.h>
12565struct stat;
12566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12567struct buf { int x; };
12568FILE * (*rcsopen) (struct buf *, struct stat *, int);
12569static char *e (p, i)
12570 char **p;
12571 int i;
12572{
12573 return p[i];
12574}
12575static char *f (char * (*g) (char **, int), char **p, ...)
12576{
12577 char *s;
12578 va_list v;
12579 va_start (v,p);
12580 s = g (p, va_arg (v,int));
12581 va_end (v);
12582 return s;
12583}
12584
12585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12586 function prototypes and stuff, but not '\xHH' hex character constants.
12587 These don't provoke an error unfortunately, instead are silently treated
12588 as 'x'. The following induces an error, until -std is added to get
12589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12590 array size at least. It's necessary to write '\x00'==0 to get something
12591 that's true only with -std. */
12592int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12593
12594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12595 inside strings and character constants. */
12596#define FOO(x) 'x'
12597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12598
12599int test (int i, double x);
12600struct s1 {int (*f) (int a);};
12601struct s2 {int (*f) (double a);};
12602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12603int argc;
12604char **argv;
12605int
12606main ()
12607{
12608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12615do
12616 CC="$ac_save_CC $ac_arg"
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 ac_cv_prog_cc_c89=$ac_arg
12619fi
12620rm -f core conftest.err conftest.$ac_objext
12621 test "x$ac_cv_prog_cc_c89" != "xno" && break
12622done
12623rm -f conftest.$ac_ext
12624CC=$ac_save_CC
12625
12626fi
12627# AC_CACHE_VAL
12628case "x$ac_cv_prog_cc_c89" in
12629 x)
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12631$as_echo "none needed" >&6; } ;;
12632 xno)
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12634$as_echo "unsupported" >&6; } ;;
12635 *)
12636 CC="$CC $ac_cv_prog_cc_c89"
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12638$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12639esac
12640if test "x$ac_cv_prog_cc_c89" != xno; then :
12641
12642fi
12643
12644ac_ext=c
12645ac_cpp='$CPP $CPPFLAGS'
12646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12648ac_compiler_gnu=$ac_cv_c_compiler_gnu
12649
12650ac_ext=c
12651ac_cpp='$CPP $CPPFLAGS'
12652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12656$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12657if ${am_cv_prog_cc_c_o+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662
12663int
12664main ()
12665{
12666
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671 # Make sure it works both with $CC and with simple cc.
12672 # Following AC_PROG_CC_C_O, we do the test twice because some
12673 # compilers refuse to overwrite an existing .o file with -o,
12674 # though they will create one.
12675 am_cv_prog_cc_c_o=yes
12676 for am_i in 1 2; do
12677 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12678 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } \
12682 && test -f conftest2.$ac_objext; then
12683 : OK
12684 else
12685 am_cv_prog_cc_c_o=no
12686 break
12687 fi
12688 done
12689 rm -f core conftest*
12690 unset am_i
12691fi
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12693$as_echo "$am_cv_prog_cc_c_o" >&6; }
12694if test "$am_cv_prog_cc_c_o" != yes; then
12695 # Losing compiler, so override with the script.
12696 # FIXME: It is wrong to rewrite CC.
12697 # But if we don't then we get into trouble of one sort or another.
12698 # A longer-term fix would be to have automake use am__CC in this case,
12699 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12700 CC="$am_aux_dir/compile $CC"
12701fi
12702ac_ext=c
12703ac_cpp='$CPP $CPPFLAGS'
12704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706ac_compiler_gnu=$ac_cv_c_compiler_gnu
12707
12708
12709depcc="$CC" am_compiler_list=
12710
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12712$as_echo_n "checking dependency style of $depcc... " >&6; }
12713if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715else
12716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12717 # We make a subdir and do the tests there. Otherwise we can end up
12718 # making bogus files that we don't know about and never remove. For
12719 # instance it was reported that on HP-UX the gcc test will end up
12720 # making a dummy file named 'D' -- because '-MD' means "put the output
12721 # in D".
12722 rm -rf conftest.dir
12723 mkdir conftest.dir
12724 # Copy depcomp to subdir because otherwise we won't find it if we're
12725 # using a relative directory.
12726 cp "$am_depcomp" conftest.dir
12727 cd conftest.dir
12728 # We will build objects and dependencies in a subdirectory because
12729 # it helps to detect inapplicable dependency modes. For instance
12730 # both Tru64's cc and ICC support -MD to output dependencies as a
12731 # side effect of compilation, but ICC will put the dependencies in
12732 # the current directory while Tru64 will put them in the object
12733 # directory.
12734 mkdir sub
12735
12736 am_cv_CC_dependencies_compiler_type=none
12737 if test "$am_compiler_list" = ""; then
12738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12739 fi
12740 am__universal=false
12741 case " $depcc " in #(
12742 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12743 esac
12744
12745 for depmode in $am_compiler_list; do
12746 # Setup a source with many dependencies, because some compilers
12747 # like to wrap large dependency lists on column 80 (with \), and
12748 # we should not choose a depcomp mode which is confused by this.
12749 #
12750 # We need to recreate these files for each test, as the compiler may
12751 # overwrite some of them when testing with obscure command lines.
12752 # This happens at least with the AIX C compiler.
12753 : > sub/conftest.c
12754 for i in 1 2 3 4 5 6; do
12755 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12756 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12757 # Solaris 10 /bin/sh.
12758 echo '/* dummy */' > sub/conftst$i.h
12759 done
12760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12761
12762 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12763 # mode. It turns out that the SunPro C++ compiler does not properly
12764 # handle '-M -o', and we need to detect this. Also, some Intel
12765 # versions had trouble with output in subdirs.
12766 am__obj=sub/conftest.${OBJEXT-o}
12767 am__minus_obj="-o $am__obj"
12768 case $depmode in
12769 gcc)
12770 # This depmode causes a compiler race in universal mode.
12771 test "$am__universal" = false || continue
12772 ;;
12773 nosideeffect)
12774 # After this tag, mechanisms are not by side-effect, so they'll
12775 # only be used when explicitly requested.
12776 if test "x$enable_dependency_tracking" = xyes; then
12777 continue
12778 else
12779 break
12780 fi
12781 ;;
12782 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12783 # This compiler won't grok '-c -o', but also, the minuso test has
12784 # not run yet. These depmodes are late enough in the game, and
12785 # so weak that their functioning should not be impacted.
12786 am__obj=conftest.${OBJEXT-o}
12787 am__minus_obj=
12788 ;;
12789 none) break ;;
12790 esac
12791 if depmode=$depmode \
12792 source=sub/conftest.c object=$am__obj \
12793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12795 >/dev/null 2>conftest.err &&
12796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12800 # icc doesn't choke on unknown options, it will just issue warnings
12801 # or remarks (even with -Werror). So we grep stderr for any message
12802 # that says an option was ignored or not supported.
12803 # When given -MP, icc 7.0 and 7.1 complain thusly:
12804 # icc: Command line warning: ignoring option '-M'; no argument required
12805 # The diagnosis changed in icc 8.0:
12806 # icc: Command line remark: option '-MP' not supported
12807 if (grep 'ignoring option' conftest.err ||
12808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12809 am_cv_CC_dependencies_compiler_type=$depmode
12810 break
12811 fi
12812 fi
12813 done
12814
12815 cd ..
12816 rm -rf conftest.dir
12817else
12818 am_cv_CC_dependencies_compiler_type=none
12819fi
12820
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12823$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12824CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12825
12826 if
12827 test "x$enable_dependency_tracking" != xno \
12828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12829 am__fastdepCC_TRUE=
12830 am__fastdepCC_FALSE='#'
12831else
12832 am__fastdepCC_TRUE='#'
12833 am__fastdepCC_FALSE=
12834fi
12835
12836
12837if test -n "$ac_tool_prefix"; then
12838 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12839set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841$as_echo_n "checking for $ac_word... " >&6; }
12842if ${ac_cv_prog_RANLIB+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844else
12845 if test -n "$RANLIB"; then
12846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12847else
12848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849for as_dir in $PATH
12850do
12851 IFS=$as_save_IFS
12852 test -z "$as_dir" && as_dir=.
12853 for ac_exec_ext in '' $ac_executable_extensions; do
12854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857 break 2
12858 fi
12859done
12860 done
12861IFS=$as_save_IFS
12862
12863fi
12864fi
12865RANLIB=$ac_cv_prog_RANLIB
12866if test -n "$RANLIB"; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12868$as_echo "$RANLIB" >&6; }
12869else
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871$as_echo "no" >&6; }
12872fi
12873
12874
12875fi
12876if test -z "$ac_cv_prog_RANLIB"; then
12877 ac_ct_RANLIB=$RANLIB
12878 # Extract the first word of "ranlib", so it can be a program name with args.
12879set dummy ranlib; ac_word=$2
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881$as_echo_n "checking for $ac_word... " >&6; }
12882if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884else
12885 if test -n "$ac_ct_RANLIB"; then
12886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12887else
12888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889for as_dir in $PATH
12890do
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_prog_ac_ct_RANLIB="ranlib"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899done
12900 done
12901IFS=$as_save_IFS
12902
12903fi
12904fi
12905ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12906if test -n "$ac_ct_RANLIB"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12908$as_echo "$ac_ct_RANLIB" >&6; }
12909else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
12912fi
12913
12914 if test "x$ac_ct_RANLIB" = x; then
12915 RANLIB=":"
12916 else
12917 case $cross_compiling:$ac_tool_warned in
12918yes:)
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12921ac_tool_warned=yes ;;
12922esac
12923 RANLIB=$ac_ct_RANLIB
12924 fi
12925else
12926 RANLIB="$ac_cv_prog_RANLIB"
12927fi
12928
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12930$as_echo_n "checking whether ln -s works... " >&6; }
12931LN_S=$as_ln_s
12932if test "$LN_S" = "ln -s"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12934$as_echo "yes" >&6; }
12935else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12937$as_echo "no, using $LN_S" >&6; }
12938fi
12939
12940
12941
Bruce A. Mahb506d672014-05-19 15:23:20 -070012942# Add -Wall if we are using GCC.
Bruce A. Mah99b58612014-05-19 15:04:25 -070012943if test "x$GCC" = "xyes"; then
Bruce A. Mahb506d672014-05-19 15:23:20 -070012944 CFLAGS="$CFLAGS -Wall"
Bruce A. Mah99b58612014-05-19 15:04:25 -070012945fi
12946
Bruce A. Mah4a3efb32020-01-06 13:43:29 -080012947# Check if enable profiling
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070012948# Check whether --enable-profiling was given.
12949if test "${enable_profiling+set}" = set; then :
Alexandru-Sever Horin215acfe2020-06-22 17:59:46 +030012950 enableval=$enable_profiling;
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070012951fi
12952
12953 if test x$enable_profiling = xyes; then
12954 ENABLE_PROFILING_TRUE=
12955 ENABLE_PROFILING_FALSE='#'
12956else
12957 ENABLE_PROFILING_TRUE='#'
12958 ENABLE_PROFILING_FALSE=
12959fi
12960
12961
Jon Dugane34c20c2010-07-08 23:26:52 +000012962# Checks for header files.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012964$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012965if ${ac_cv_header_stdc+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012966 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000012967else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012969/* end confdefs.h. */
12970#include <stdlib.h>
12971#include <stdarg.h>
12972#include <string.h>
12973#include <float.h>
12974
12975int
12976main ()
12977{
12978
12979 ;
12980 return 0;
12981}
12982_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012983if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000012984 ac_cv_header_stdc=yes
12985else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012986 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000012987fi
12988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12989
12990if test $ac_cv_header_stdc = yes; then
12991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000012993/* end confdefs.h. */
12994#include <string.h>
12995
12996_ACEOF
12997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070012998 $EGREP "memchr" >/dev/null 2>&1; then :
12999
Jon Dugane34c20c2010-07-08 23:26:52 +000013000else
13001 ac_cv_header_stdc=no
13002fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013003rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000013004
13005fi
13006
13007if test $ac_cv_header_stdc = yes; then
13008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013010/* end confdefs.h. */
13011#include <stdlib.h>
13012
13013_ACEOF
13014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013015 $EGREP "free" >/dev/null 2>&1; then :
13016
Jon Dugane34c20c2010-07-08 23:26:52 +000013017else
13018 ac_cv_header_stdc=no
13019fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013020rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000013021
13022fi
13023
13024if test $ac_cv_header_stdc = yes; then
13025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013026 if test "$cross_compiling" = yes; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000013027 :
13028else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013030/* end confdefs.h. */
13031#include <ctype.h>
13032#include <stdlib.h>
13033#if ((' ' & 0x0FF) == 0x020)
13034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13036#else
13037# define ISLOWER(c) \
13038 (('a' <= (c) && (c) <= 'i') \
13039 || ('j' <= (c) && (c) <= 'r') \
13040 || ('s' <= (c) && (c) <= 'z'))
13041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13042#endif
13043
13044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13045int
13046main ()
13047{
13048 int i;
13049 for (i = 0; i < 256; i++)
13050 if (XOR (islower (i), ISLOWER (i))
13051 || toupper (i) != TOUPPER (i))
13052 return 2;
13053 return 0;
13054}
13055_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013056if ac_fn_c_try_run "$LINENO"; then :
13057
Jon Dugane34c20c2010-07-08 23:26:52 +000013058else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013059 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000013060fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13062 conftest.$ac_objext conftest.beam conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013063fi
13064
13065fi
13066fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013068$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013069if test $ac_cv_header_stdc = yes; then
13070
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013071$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Jon Dugan92864152010-09-20 21:50:12 +000013072
13073fi
13074
13075
13076# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070013077#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000013078
Bruce A. Mah701ba3e2016-06-03 09:26:26 -070013079# Check for the math library (needed by cjson on some platforms)
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13081$as_echo_n "checking for library containing floor... " >&6; }
13082if ${ac_cv_search_floor+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084else
13085 ac_func_search_save_LIBS=$LIBS
13086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h. */
13088
13089/* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13092#ifdef __cplusplus
13093extern "C"
13094#endif
13095char floor ();
13096int
13097main ()
13098{
13099return floor ();
13100 ;
13101 return 0;
13102}
13103_ACEOF
13104for ac_lib in '' m; do
13105 if test -z "$ac_lib"; then
13106 ac_res="none required"
13107 else
13108 ac_res=-l$ac_lib
13109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13110 fi
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 ac_cv_search_floor=$ac_res
13113fi
13114rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext
13116 if ${ac_cv_search_floor+:} false; then :
13117 break
13118fi
13119done
13120if ${ac_cv_search_floor+:} false; then :
13121
13122else
13123 ac_cv_search_floor=no
13124fi
13125rm conftest.$ac_ext
13126LIBS=$ac_func_search_save_LIBS
13127fi
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13129$as_echo "$ac_cv_search_floor" >&6; }
13130ac_res=$ac_cv_search_floor
13131if test "$ac_res" != no; then :
13132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13133
13134else
13135
13136echo "floor()"
13137exit 1
13138
13139fi
13140
13141
Bruce A. Mah9e93dab2014-10-16 11:14:23 -070013142# On illumos we need -lsocket
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13144$as_echo_n "checking for library containing socket... " >&6; }
13145if ${ac_cv_search_socket+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147else
13148 ac_func_search_save_LIBS=$LIBS
13149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150/* end confdefs.h. */
13151
13152/* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13155#ifdef __cplusplus
13156extern "C"
13157#endif
13158char socket ();
13159int
13160main ()
13161{
13162return socket ();
13163 ;
13164 return 0;
13165}
13166_ACEOF
13167for ac_lib in '' socket; do
13168 if test -z "$ac_lib"; then
13169 ac_res="none required"
13170 else
13171 ac_res=-l$ac_lib
13172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13173 fi
13174 if ac_fn_c_try_link "$LINENO"; then :
13175 ac_cv_search_socket=$ac_res
13176fi
13177rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext
13179 if ${ac_cv_search_socket+:} false; then :
13180 break
13181fi
13182done
13183if ${ac_cv_search_socket+:} false; then :
13184
13185else
13186 ac_cv_search_socket=no
13187fi
13188rm conftest.$ac_ext
13189LIBS=$ac_func_search_save_LIBS
13190fi
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13192$as_echo "$ac_cv_search_socket" >&6; }
13193ac_res=$ac_cv_search_socket
13194if test "$ac_res" != no; then :
13195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13196
13197else
13198
13199echo "socket()"
13200exit 1
13201
13202fi
13203
13204
13205# On illumos inet_ntop in in -lnsl
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13207$as_echo_n "checking for library containing inet_ntop... " >&6; }
13208if ${ac_cv_search_inet_ntop+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210else
13211 ac_func_search_save_LIBS=$LIBS
13212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213/* end confdefs.h. */
13214
13215/* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13218#ifdef __cplusplus
13219extern "C"
13220#endif
13221char inet_ntop ();
13222int
13223main ()
13224{
13225return inet_ntop ();
13226 ;
13227 return 0;
13228}
13229_ACEOF
13230for ac_lib in '' nsl; do
13231 if test -z "$ac_lib"; then
13232 ac_res="none required"
13233 else
13234 ac_res=-l$ac_lib
13235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13236 fi
13237 if ac_fn_c_try_link "$LINENO"; then :
13238 ac_cv_search_inet_ntop=$ac_res
13239fi
13240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext
13242 if ${ac_cv_search_inet_ntop+:} false; then :
13243 break
13244fi
13245done
13246if ${ac_cv_search_inet_ntop+:} false; then :
13247
13248else
13249 ac_cv_search_inet_ntop=no
13250fi
13251rm conftest.$ac_ext
13252LIBS=$ac_func_search_save_LIBS
13253fi
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13255$as_echo "$ac_cv_search_inet_ntop" >&6; }
13256ac_res=$ac_cv_search_inet_ntop
13257if test "$ac_res" != no; then :
13258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13259
13260else
13261
13262echo "inet_ntop()"
13263exit 1
13264
13265fi
13266
13267
Jon Dugane34c20c2010-07-08 23:26:52 +000013268# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013270$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013271if ${ac_cv_c_const+:} false; then :
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013272 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000013273else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000013275/* end confdefs.h. */
13276
13277int
13278main ()
13279{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013280
Jon Dugane34c20c2010-07-08 23:26:52 +000013281#ifndef __cplusplus
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013282 /* Ultrix mips cc rejects this sort of thing. */
Jon Dugane34c20c2010-07-08 23:26:52 +000013283 typedef int charset[2];
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013284 const charset cs = { 0, 0 };
Jon Dugane34c20c2010-07-08 23:26:52 +000013285 /* SunOS 4.1.1 cc rejects this. */
13286 char const *const *pcpcc;
13287 char **ppc;
13288 /* NEC SVR4.0.2 mips cc rejects this. */
13289 struct point {int x, y;};
13290 static struct point const zero = {0,0};
13291 /* AIX XL C 1.02.0.0 rejects this.
13292 It does not let you subtract one const X* pointer from another in
13293 an arm of an if-expression whose if-part is not a constant
13294 expression */
13295 const char *g = "string";
13296 pcpcc = &g + (g ? g-g : 0);
13297 /* HPUX 7.0 cc rejects these. */
13298 ++pcpcc;
13299 ppc = (char**) pcpcc;
13300 pcpcc = (char const *const *) ppc;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013301 { /* SCO 3.2v4 cc rejects this sort of thing. */
13302 char tx;
13303 char *t = &tx;
Jon Dugane34c20c2010-07-08 23:26:52 +000013304 char const *s = 0 ? (char *) 0 : (char const *) 0;
13305
13306 *t++ = 0;
13307 if (s) return 0;
13308 }
13309 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13310 int x[] = {25, 17};
13311 const int *foo = &x[0];
13312 ++foo;
13313 }
13314 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13315 typedef const int *iptr;
13316 iptr p = 0;
13317 ++p;
13318 }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013319 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Jon Dugane34c20c2010-07-08 23:26:52 +000013320 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013321 struct s { int j; const int *ap[3]; } bx;
13322 struct s *b = &bx; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000013323 }
13324 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13325 const int foo = 10;
13326 if (!foo) return 0;
13327 }
13328 return !cs[0] && !zero.x;
13329#endif
13330
13331 ;
13332 return 0;
13333}
13334_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013335if ac_fn_c_try_compile "$LINENO"; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000013336 ac_cv_c_const=yes
13337else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013338 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000013339fi
13340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013343$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013344if test $ac_cv_c_const = no; then
13345
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013346$as_echo "#define const /**/" >>confdefs.h
Jon Dugane34c20c2010-07-08 23:26:52 +000013347
13348fi
13349
13350
Bruce A. Mah9d7d60a2017-05-17 12:50:50 -070013351# Check for poll.h (it's in POSIX so everyone should have it?)
13352for ac_header in poll.h
13353do :
13354 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13355if test "x$ac_cv_header_poll_h" = xyes; then :
13356 cat >>confdefs.h <<_ACEOF
13357#define HAVE_POLL_H 1
13358_ACEOF
13359
13360fi
13361
13362done
13363
13364
Bruce A. Mahf72054e2020-05-28 10:10:21 -070013365# SCTP. Allow user to disable SCTP support with --without-sctp.
13366# Otherwise we try to find whatever support is required.
13367try_sctp=true
13368
13369# Check whether --with-sctp was given.
13370if test "${with_sctp+set}" = set; then :
13371 withval=$with_sctp;
13372 case "$withval" in
13373 y | ye | yes)
13374 ;;
13375 n | no)
13376 try_sctp=false
13377 ;;
13378 *)
13379 as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
13380 ;;
13381 esac
13382
13383else
13384
13385 try_sctp=true
13386
13387
13388fi
13389
13390
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013391# Check for SCTP support
Bruce A. Mahf72054e2020-05-28 10:10:21 -070013392if $try_sctp; then
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070013393for ac_header in sys/socket.h
13394do :
13395 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13396if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13397 cat >>confdefs.h <<_ACEOF
13398#define HAVE_SYS_SOCKET_H 1
13399_ACEOF
13400
13401fi
13402
13403done
13404
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013405for ac_header in netinet/sctp.h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013406do :
Bruce A. Mah662a7ca2014-10-16 11:30:07 -070013407 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
13408#include <sys/socket.h>
13409#endif
13410
13411"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013412if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013413 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013414#define HAVE_NETINET_SCTP_H 1
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013415_ACEOF
13416
Stefano Garzarella0b0aa342020-06-12 18:28:15 +020013417$as_echo "#define HAVE_SCTP_H 1" >>confdefs.h
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013418
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
13420$as_echo_n "checking for library containing sctp_bindx... " >&6; }
13421if ${ac_cv_search_sctp_bindx+:} false; then :
13422 $as_echo_n "(cached) " >&6
13423else
13424 ac_func_search_save_LIBS=$LIBS
13425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h. */
13427
13428/* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13431#ifdef __cplusplus
13432extern "C"
13433#endif
13434char sctp_bindx ();
13435int
13436main ()
13437{
13438return sctp_bindx ();
13439 ;
13440 return 0;
13441}
13442_ACEOF
13443for ac_lib in '' sctp; do
13444 if test -z "$ac_lib"; then
13445 ac_res="none required"
13446 else
13447 ac_res=-l$ac_lib
13448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13449 fi
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 ac_cv_search_sctp_bindx=$ac_res
13452fi
13453rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext
13455 if ${ac_cv_search_sctp_bindx+:} false; then :
13456 break
13457fi
13458done
13459if ${ac_cv_search_sctp_bindx+:} false; then :
13460
13461else
13462 ac_cv_search_sctp_bindx=no
13463fi
13464rm conftest.$ac_ext
13465LIBS=$ac_func_search_save_LIBS
13466fi
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
13468$as_echo "$ac_cv_search_sctp_bindx" >&6; }
13469ac_res=$ac_cv_search_sctp_bindx
13470if test "$ac_res" != no; then :
13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13472
13473fi
13474
Bruce A. Mahbf32d9d2015-01-06 10:40:04 -080013475
13476# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
13477# -------------------------------------------
13478# Tests whether TYPE exists after having included INCLUDES, setting cache
13479# variable VAR accordingly.
13480ac_fn_c_check_type ()
13481{
13482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13484$as_echo_n "checking for $2... " >&6; }
13485if eval \${$3+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487else
13488 eval "$3=no"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h. */
13491$4
13492int
13493main ()
13494{
13495if (sizeof ($2))
13496 return 0;
13497 ;
13498 return 0;
13499}
13500_ACEOF
13501if ac_fn_c_try_compile "$LINENO"; then :
13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503/* end confdefs.h. */
13504$4
13505int
13506main ()
13507{
13508if (sizeof (($2)))
13509 return 0;
13510 ;
13511 return 0;
13512}
13513_ACEOF
13514if ac_fn_c_try_compile "$LINENO"; then :
13515
13516else
13517 eval "$3=yes"
13518fi
13519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520fi
13521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522fi
13523eval ac_res=\$$3
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13525$as_echo "$ac_res" >&6; }
13526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13527
13528} # ac_fn_c_check_type
13529ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
13530"
13531if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
13532
13533cat >>confdefs.h <<_ACEOF
13534#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
13535_ACEOF
13536
13537
13538fi
13539
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013540fi
13541
13542done
13543
Bruce A. Mahf72054e2020-05-28 10:10:21 -070013544fi
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070013545
Bruce A. Mahbf512082017-11-08 09:30:18 -080013546ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13547if test "x$ac_cv_header_endian_h" = xyes; then :
13548
13549$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
13550
13551else
13552 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13553if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13554
13555$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
13556
13557else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
13559$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
13560
13561fi
13562
13563
13564
13565fi
13566
13567
13568
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013569if test "x$with_openssl" = "xno"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
13571$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
13572else
13573 # Check for OPENSSL support
hhbf7817142019-05-17 12:46:28 -070013574 havs_ssl=false
ralcinia51045d2017-04-20 19:01:08 +020013575
13576 found=false
13577
13578# Check whether --with-openssl was given.
13579if test "${with_openssl+set}" = set; then :
13580 withval=$with_openssl;
13581 case "$withval" in
13582 "" | y | ye | yes | n | no)
13583 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
13584 ;;
13585 *) ssldirs="$withval"
13586 ;;
13587 esac
13588
13589else
13590
13591 # if pkg-config is installed and openssl has installed a .pc file,
13592 # then use that information and don't search ssldirs
13593 if test -n "$ac_tool_prefix"; then
13594 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13595set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597$as_echo_n "checking for $ac_word... " >&6; }
13598if ${ac_cv_prog_PKG_CONFIG+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600else
13601 if test -n "$PKG_CONFIG"; then
13602 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
13603else
13604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605for as_dir in $PATH
13606do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615done
13616 done
13617IFS=$as_save_IFS
13618
13619fi
13620fi
13621PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
13622if test -n "$PKG_CONFIG"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13624$as_echo "$PKG_CONFIG" >&6; }
13625else
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627$as_echo "no" >&6; }
13628fi
13629
13630
13631fi
13632if test -z "$ac_cv_prog_PKG_CONFIG"; then
13633 ac_ct_PKG_CONFIG=$PKG_CONFIG
13634 # Extract the first word of "pkg-config", so it can be a program name with args.
13635set dummy pkg-config; ac_word=$2
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637$as_echo_n "checking for $ac_word... " >&6; }
13638if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
13639 $as_echo_n "(cached) " >&6
13640else
13641 if test -n "$ac_ct_PKG_CONFIG"; then
13642 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
13643else
13644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645for as_dir in $PATH
13646do
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13654 fi
13655done
13656 done
13657IFS=$as_save_IFS
13658
13659fi
13660fi
13661ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
13662if test -n "$ac_ct_PKG_CONFIG"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
13664$as_echo "$ac_ct_PKG_CONFIG" >&6; }
13665else
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667$as_echo "no" >&6; }
13668fi
13669
13670 if test "x$ac_ct_PKG_CONFIG" = x; then
13671 PKG_CONFIG=""
13672 else
13673 case $cross_compiling:$ac_tool_warned in
13674yes:)
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13677ac_tool_warned=yes ;;
13678esac
13679 PKG_CONFIG=$ac_ct_PKG_CONFIG
13680 fi
13681else
13682 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
13683fi
13684
13685 if test x"$PKG_CONFIG" != x""; then
13686 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13687 if test $? = 0; then
13688 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13689 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13690 found=true
13691 fi
13692 fi
13693
13694 # no such luck; use some default ssldirs
13695 if ! $found; then
13696 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13697 fi
13698
13699
13700fi
13701
13702
13703
13704 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13705 # an 'openssl' subdirectory
13706
13707 if ! $found; then
13708 OPENSSL_INCLUDES=
13709 for ssldir in $ssldirs; do
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13711$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13712 if test -f "$ssldir/include/openssl/ssl.h"; then
13713 OPENSSL_INCLUDES="-I$ssldir/include"
13714 OPENSSL_LDFLAGS="-L$ssldir/lib"
13715 OPENSSL_LIBS="-lssl -lcrypto"
13716 found=true
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13718$as_echo "yes" >&6; }
13719 break
13720 else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
13723 fi
13724 done
13725
13726 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13727 # it will just work!
13728 fi
13729
13730 # try the preprocessor and linker with our new flags,
13731 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13732
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13734$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13735 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13736 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13737
13738 save_LIBS="$LIBS"
13739 save_LDFLAGS="$LDFLAGS"
13740 save_CPPFLAGS="$CPPFLAGS"
13741 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13742 LIBS="$OPENSSL_LIBS $LIBS"
13743 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h. */
13746#include <openssl/ssl.h>
13747int
13748main ()
13749{
13750SSL_new(NULL)
13751 ;
13752 return 0;
13753}
13754_ACEOF
13755if ac_fn_c_try_link "$LINENO"; then :
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13758$as_echo "yes" >&6; }
13759
13760$as_echo "#define HAVE_SSL 1" >>confdefs.h
13761
hhbf7817142019-05-17 12:46:28 -070013762 have_ssl=true
ralcinia51045d2017-04-20 19:01:08 +020013763
ralcinia51045d2017-04-20 19:01:08 +020013764else
13765
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070013768 if test "x$with_openssl" != "x"; then
13769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah4a45b322017-08-15 11:13:08 -070013771as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013772See \`config.log' for more details" "$LINENO" 5; }
Bruce A. Mah4a45b322017-08-15 11:13:08 -070013773 fi
ralcinia51045d2017-04-20 19:01:08 +020013774
13775
13776fi
13777rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 CPPFLAGS="$save_CPPFLAGS"
13780 LDFLAGS="$save_LDFLAGS"
13781 LIBS="$save_LIBS"
13782
13783
13784
13785
13786
hhbf7817142019-05-17 12:46:28 -070013787 if $have_ssl; then
Bruce A. Mah06280a62020-05-04 15:11:05 -070013788 case $host in
13789 *-*-cygwin)
13790 CFLAGS="$CFLAGS -DNOCRYPT"
13791 ;;
13792 esac
hhbf7817142019-05-17 12:46:28 -070013793 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13794 LIBS="$OPENSSL_LIBS $LIBS"
13795 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13796 fi
Bruce A. Mah7cf95d22017-08-14 13:46:35 -070013797fi
ralcinia51045d2017-04-20 19:01:08 +020013798
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080013799# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013801$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013802if ${iperf3_cv_header_tcp_congestion+:} false; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013803 $as_echo_n "(cached) " >&6
13804else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013806/* end confdefs.h. */
13807#include <netinet/tcp.h>
13808#ifdef TCP_CONGESTION
13809 yes
13810#endif
13811
13812_ACEOF
13813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013814 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013815 iperf3_cv_header_tcp_congestion=yes
13816else
13817 iperf3_cv_header_tcp_congestion=no
13818fi
13819rm -f conftest*
13820
13821fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013823$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
13824if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
13825
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013826$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070013827
13828fi
13829
Bruce A. Mahb904a782014-04-10 11:22:49 -070013830# Check for IPv6 flowlabel support (believed to be Linux only)
13831# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
13832# don't use that file directly (we have our own stripped-down
13833# copy, see src/flowlabel.h for more details).
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070013835$as_echo_n "checking IPv6 flowlabel support... " >&6; }
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013836if ${iperf3_cv_header_flowlabel+:} false; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070013837 $as_echo_n "(cached) " >&6
13838else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Bruce A. Mahb904a782014-04-10 11:22:49 -070013840/* end confdefs.h. */
13841#include <sys/types.h>
13842#include <linux/in6.h>
13843#ifdef IPV6_FLOWLABEL_MGR
13844 yes
13845#endif
13846
13847_ACEOF
13848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013849 $EGREP "yes" >/dev/null 2>&1; then :
Bruce A. Mahb904a782014-04-10 11:22:49 -070013850 iperf3_cv_header_flowlabel=yes
13851else
13852 iperf3_cv_header_flowlabel=no
13853fi
13854rm -f conftest*
13855
13856fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
Bruce A. Mahb904a782014-04-10 11:22:49 -070013858$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13859if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13860
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013861$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
Bruce A. Mahb904a782014-04-10 11:22:49 -070013862
13863fi
13864
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013865# Check for CPU affinity support. FreeBSD and Linux do this differently
13866# unfortunately so we have to check separately for each of them.
13867# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13868# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13869# generic concept is available.
Boris Okunev5b27ea32017-11-13 23:54:34 +030013870for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013871do :
13872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13874if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013875 cat >>confdefs.h <<_ACEOF
13876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13877_ACEOF
13878
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013879$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070013880
13881fi
13882done
13883
13884
Bruce A. Mah73b02f92017-11-11 10:12:55 -080013885# Check for daemon(). Most systems have this but a few (IRIX) don't.
13886for ac_func in daemon
13887do :
13888 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13889if test "x$ac_cv_func_daemon" = xyes; then :
13890 cat >>confdefs.h <<_ACEOF
13891#define HAVE_DAEMON 1
13892_ACEOF
13893
13894fi
13895done
13896
13897
Bruce A. Mahde542352014-04-14 14:49:39 -070013898# Check for sendfile support. FreeBSD, Linux, and MacOS all support
13899# this system call, but they're all different in terms of what headers
13900# it needs and what arguments it expects.
Bruce A. Mahde542352014-04-14 14:49:39 -070013901for ac_func in sendfile
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013902do :
13903 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13904if test "x$ac_cv_func_sendfile" = xyes; then :
Bruce A. Mahde542352014-04-14 14:49:39 -070013905 cat >>confdefs.h <<_ACEOF
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070013906#define HAVE_SENDFILE 1
Bruce A. Mahde542352014-04-14 14:49:39 -070013907_ACEOF
13908
13909fi
13910done
13911
13912
Bruce A. Mahd0641582017-11-08 10:19:49 -080013913# Check for getline support, used as a part of authenticated
13914# connections.
13915for ac_func in getline
13916do :
13917 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13918if test "x$ac_cv_func_getline" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920#define HAVE_GETLINE 1
13921_ACEOF
13922
13923fi
13924done
13925
13926
Bruce A. Maha5f57652016-05-26 09:49:16 -070013927# Check for packet pacing socket option (Linux only for now).
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13929$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13930if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932else
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934/* end confdefs.h. */
13935#include <sys/socket.h>
13936#ifdef SO_MAX_PACING_RATE
13937 yes
13938#endif
13939
13940_ACEOF
13941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13942 $EGREP "yes" >/dev/null 2>&1; then :
13943 iperf3_cv_header_so_max_pacing_rate=yes
13944else
13945 iperf3_cv_header_so_max_pacing_rate=no
13946fi
13947rm -f conftest*
13948
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13951$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13952if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13953
13954$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13955
13956fi
13957
Ben Fox-Moorecde81d72018-05-16 23:49:45 +020013958# Check if we need -lrt for clock_gettime
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13960$as_echo_n "checking for library containing clock_gettime... " >&6; }
13961if ${ac_cv_search_clock_gettime+:} false; then :
13962 $as_echo_n "(cached) " >&6
13963else
13964 ac_func_search_save_LIBS=$LIBS
13965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966/* end confdefs.h. */
13967
13968/* Override any GCC internal prototype to avoid an error.
13969 Use char because int might match the return type of a GCC
13970 builtin and then its argument prototype would still apply. */
13971#ifdef __cplusplus
13972extern "C"
13973#endif
13974char clock_gettime ();
13975int
13976main ()
13977{
13978return clock_gettime ();
13979 ;
13980 return 0;
13981}
13982_ACEOF
13983for ac_lib in '' rt posix4; do
13984 if test -z "$ac_lib"; then
13985 ac_res="none required"
13986 else
13987 ac_res=-l$ac_lib
13988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13989 fi
13990 if ac_fn_c_try_link "$LINENO"; then :
13991 ac_cv_search_clock_gettime=$ac_res
13992fi
13993rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext
13995 if ${ac_cv_search_clock_gettime+:} false; then :
13996 break
13997fi
13998done
13999if ${ac_cv_search_clock_gettime+:} false; then :
14000
14001else
14002 ac_cv_search_clock_gettime=no
14003fi
14004rm conftest.$ac_ext
14005LIBS=$ac_func_search_save_LIBS
14006fi
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14008$as_echo "$ac_cv_search_clock_gettime" >&6; }
14009ac_res=$ac_cv_search_clock_gettime
14010if test "$ac_res" != no; then :
14011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14012
14013fi
14014
14015# Check for clock_gettime support
14016for ac_func in clock_gettime
14017do :
14018 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14019if test "x$ac_cv_func_clock_gettime" = xyes; then :
14020 cat >>confdefs.h <<_ACEOF
14021#define HAVE_CLOCK_GETTIME 1
14022_ACEOF
14023
14024fi
14025done
14026
Bruce A. Maha5f57652016-05-26 09:49:16 -070014027
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070014028ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
Jon Dugane34c20c2010-07-08 23:26:52 +000014029
14030cat >confcache <<\_ACEOF
14031# This file is a shell script that caches the results of configure
14032# tests run on this system so they can be shared between configure
14033# scripts and configure runs, see configure's option --config-cache.
14034# It is not useful on other systems. If it contains results you don't
14035# want to keep, you may remove or edit it.
14036#
14037# config.status only pays attention to the cache file if you give it
14038# the --recheck option to rerun configure.
14039#
14040# `ac_cv_env_foo' variables (set or unset) will be overridden when
14041# loading this file, other *unset* `ac_cv_foo' will be assigned the
14042# following values.
14043
14044_ACEOF
14045
14046# The following way of writing the cache mishandles newlines in values,
14047# but we know of no workaround that is simple, portable, and efficient.
14048# So, we kill variables containing newlines.
14049# Ultrix sh set writes to stderr and can't be redirected directly,
14050# and sets the high bit in the cache file unless we assign to the vars.
14051(
14052 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14053 eval ac_val=\$$ac_var
14054 case $ac_val in #(
14055 *${as_nl}*)
14056 case $ac_var in #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014057 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014058$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014059 esac
14060 case $ac_var in #(
14061 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014062 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014063 *) { eval $ac_var=; unset $ac_var;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014064 esac ;;
14065 esac
14066 done
14067
14068 (set) 2>&1 |
14069 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14070 *${as_nl}ac_space=\ *)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014071 # `set' does not quote correctly, so add quotes: double-quote
14072 # substitution turns \\\\ into \\, and sed turns \\ into \.
Jon Dugane34c20c2010-07-08 23:26:52 +000014073 sed -n \
14074 "s/'/'\\\\''/g;
14075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14076 ;; #(
14077 *)
14078 # `set' quotes correctly as required by POSIX, so do not add quotes.
14079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14080 ;;
14081 esac |
14082 sort
14083) |
14084 sed '
14085 /^ac_cv_env_/b end
14086 t clear
14087 :clear
14088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14089 t end
14090 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14091 :end' >>confcache
14092if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14093 if test -w "$cache_file"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014094 if test "x$cache_file" != "x/dev/null"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014096$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014097 if test ! -f "$cache_file" || test -h "$cache_file"; then
14098 cat confcache >"$cache_file"
14099 else
14100 case $cache_file in #(
14101 */* | ?:*)
14102 mv -f confcache "$cache_file"$$ &&
14103 mv -f "$cache_file"$$ "$cache_file" ;; #(
14104 *)
14105 mv -f confcache "$cache_file" ;;
14106 esac
14107 fi
14108 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014109 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014110 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014111$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000014112 fi
14113fi
14114rm -f confcache
14115
14116test "x$prefix" = xNONE && prefix=$ac_default_prefix
14117# Let make expand exec_prefix.
14118test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14119
14120DEFS=-DHAVE_CONFIG_H
14121
14122ac_libobjs=
14123ac_ltlibobjs=
14124for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14125 # 1. Remove the extension, and $U if already installed.
14126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000014128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14129 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000014132done
14133LIBOBJS=$ac_libobjs
14134
14135LTLIBOBJS=$ac_ltlibobjs
14136
14137
Bruce A. Mah06280a62020-05-04 15:11:05 -070014138if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14139 as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14140Usually this means the macro was only invoked conditionally." "$LINENO" 5
14141fi
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14143$as_echo_n "checking that generated files are newer than configure... " >&6; }
14144 if test -n "$am_sleep_pid"; then
14145 # Hide warnings about reused PIDs.
14146 wait $am_sleep_pid 2>/dev/null
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14149$as_echo "done" >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014150 if test -n "$EXEEXT"; then
14151 am__EXEEXT_TRUE=
14152 am__EXEEXT_FALSE='#'
14153else
14154 am__EXEEXT_TRUE='#'
14155 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000014156fi
14157
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014158if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014159 as_fn_error $? "conditional \"AMDEP\" was never defined.
14160Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014161fi
14162if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014163 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14164Usually this means the macro was only invoked conditionally." "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014165fi
Bruce A. Mah06280a62020-05-04 15:11:05 -070014166if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14167 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14168Usually this means the macro was only invoked conditionally." "$LINENO" 5
14169fi
14170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14171 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14172Usually this means the macro was only invoked conditionally." "$LINENO" 5
14173fi
Bruce A. Mahd4dfec72018-06-29 16:25:06 -070014174if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
14175 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
14176Usually this means the macro was only invoked conditionally." "$LINENO" 5
14177fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014178
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014179: "${CONFIG_STATUS=./config.status}"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014180ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000014181ac_clean_files_save=$ac_clean_files
14182ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014183{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014184$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014185as_write_fail=0
14186cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014187#! $SHELL
14188# Generated by $as_me.
14189# Run this file to recreate the current configuration.
14190# Compiler output produced by configure, useful for debugging
14191# configure, is in config.log if it exists.
14192
14193debug=false
14194ac_cs_recheck=false
14195ac_cs_silent=false
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014196
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014197SHELL=\${CONFIG_SHELL-$SHELL}
14198export SHELL
14199_ASEOF
14200cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14201## -------------------- ##
14202## M4sh Initialization. ##
14203## -------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000014204
14205# Be more Bourne compatible
14206DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014207if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Jon Dugane34c20c2010-07-08 23:26:52 +000014208 emulate sh
14209 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014210 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000014211 # is contrary to our usage. Disable this feature.
14212 alias -g '${1+"$@"}'='"$@"'
14213 setopt NO_GLOB_SUBST
14214else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014215 case `(set -o) 2>/dev/null` in #(
14216 *posix*) :
14217 set -o posix ;; #(
14218 *) :
14219 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014220esac
14221fi
14222
14223
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014224as_nl='
14225'
14226export as_nl
14227# Printing a long string crashes Solaris 7 /usr/bin/printf.
14228as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014231# Prefer a ksh shell builtin over an external printf program on Solaris,
14232# but without wasting forks for bash or zsh.
14233if test -z "$BASH_VERSION$ZSH_VERSION" \
14234 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14235 as_echo='print -r --'
14236 as_echo_n='print -rn --'
14237elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014238 as_echo='printf %s\n'
14239 as_echo_n='printf %s'
14240else
14241 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14242 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14243 as_echo_n='/usr/ucb/echo -n'
14244 else
14245 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14246 as_echo_n_body='eval
14247 arg=$1;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014248 case $arg in #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014249 *"$as_nl"*)
14250 expr "X$arg" : "X\\(.*\\)$as_nl";
14251 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14252 esac;
14253 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14254 '
14255 export as_echo_n_body
14256 as_echo_n='sh -c $as_echo_n_body as_echo'
14257 fi
14258 export as_echo_body
14259 as_echo='sh -c $as_echo_body as_echo'
14260fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080014261
Jon Dugane34c20c2010-07-08 23:26:52 +000014262# The user is always right.
14263if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014264 PATH_SEPARATOR=:
14265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14266 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14267 PATH_SEPARATOR=';'
14268 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080014269fi
14270
Jon Dugane34c20c2010-07-08 23:26:52 +000014271
14272# IFS
14273# We need space, tab and new line, in precisely that order. Quoting is
14274# there to prevent editors from complaining about space-tab.
14275# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14276# splitting by setting IFS to empty value.)
14277IFS=" "" $as_nl"
14278
14279# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014280as_myself=
14281case $0 in #((
Jon Dugane34c20c2010-07-08 23:26:52 +000014282 *[\\/]* ) as_myself=$0 ;;
14283 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284for as_dir in $PATH
14285do
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014288 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14289 done
Jon Dugane34c20c2010-07-08 23:26:52 +000014290IFS=$as_save_IFS
14291
14292 ;;
14293esac
14294# We did not find ourselves, most probably we were run as `sh COMMAND'
14295# in which case we are not to be found in the path.
14296if test "x$as_myself" = x; then
14297 as_myself=$0
14298fi
14299if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014300 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014301 exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000014302fi
14303
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014304# Unset variables that we do not need and which cause bugs (e.g. in
14305# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14306# suppresses any "Segmentation fault" message there. '((' could
14307# trigger a bug in pdksh 5.2.14.
14308for as_var in BASH_ENV ENV MAIL MAILPATH
14309do eval test x\${$as_var+set} = xset \
14310 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Jon Dugane34c20c2010-07-08 23:26:52 +000014311done
14312PS1='$ '
14313PS2='> '
14314PS4='+ '
14315
14316# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014317LC_ALL=C
14318export LC_ALL
14319LANGUAGE=C
14320export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000014321
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014322# CDPATH.
14323(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14324
14325
14326# as_fn_error STATUS ERROR [LINENO LOG_FD]
14327# ----------------------------------------
14328# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14329# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14330# script with STATUS, using 1 if that was 0.
14331as_fn_error ()
14332{
14333 as_status=$1; test $as_status -eq 0 && as_status=1
14334 if test "$4"; then
14335 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14336 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14337 fi
14338 $as_echo "$as_me: error: $2" >&2
14339 as_fn_exit $as_status
14340} # as_fn_error
14341
14342
14343# as_fn_set_status STATUS
14344# -----------------------
14345# Set $? to STATUS, without forking.
14346as_fn_set_status ()
14347{
14348 return $1
14349} # as_fn_set_status
14350
14351# as_fn_exit STATUS
14352# -----------------
14353# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14354as_fn_exit ()
14355{
14356 set +e
14357 as_fn_set_status $1
14358 exit $1
14359} # as_fn_exit
14360
14361# as_fn_unset VAR
14362# ---------------
14363# Portably unset VAR.
14364as_fn_unset ()
14365{
14366 { eval $1=; unset $1;}
14367}
14368as_unset=as_fn_unset
14369# as_fn_append VAR VALUE
14370# ----------------------
14371# Append the text in VALUE to the end of the definition contained in VAR. Take
14372# advantage of any shell optimizations that allow amortized linear growth over
14373# repeated appends, instead of the typical quadratic growth present in naive
14374# implementations.
14375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14376 eval 'as_fn_append ()
14377 {
14378 eval $1+=\$2
14379 }'
14380else
14381 as_fn_append ()
14382 {
14383 eval $1=\$$1\$2
14384 }
14385fi # as_fn_append
14386
14387# as_fn_arith ARG...
14388# ------------------
14389# Perform arithmetic evaluation on the ARGs, and store the result in the
14390# global $as_val. Take advantage of shells that can avoid forks. The arguments
14391# must be portable across $(()) and expr.
14392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14393 eval 'as_fn_arith ()
14394 {
14395 as_val=$(( $* ))
14396 }'
14397else
14398 as_fn_arith ()
14399 {
14400 as_val=`expr "$@" || test $? -eq 1`
14401 }
14402fi # as_fn_arith
14403
14404
Jon Dugane34c20c2010-07-08 23:26:52 +000014405if expr a : '\(a\)' >/dev/null 2>&1 &&
14406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14407 as_expr=expr
14408else
14409 as_expr=false
14410fi
14411
14412if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14413 as_basename=basename
14414else
14415 as_basename=false
14416fi
14417
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014418if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14419 as_dirname=dirname
14420else
14421 as_dirname=false
14422fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014423
14424as_me=`$as_basename -- "$0" ||
14425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14426 X"$0" : 'X\(//\)$' \| \
14427 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014428$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000014429 sed '/^.*\/\([^/][^/]*\)\/*$/{
14430 s//\1/
14431 q
14432 }
14433 /^X\/\(\/\/\)$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\/\(\/\).*/{
14438 s//\1/
14439 q
14440 }
14441 s/.*/./; q'`
14442
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014443# Avoid depending upon Character Ranges.
14444as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14445as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14446as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14447as_cr_digits='0123456789'
14448as_cr_alnum=$as_cr_Letters$as_cr_digits
Jon Dugane34c20c2010-07-08 23:26:52 +000014449
14450ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014451case `echo -n x` in #(((((
Jon Dugane34c20c2010-07-08 23:26:52 +000014452-n*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014453 case `echo 'xy\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000014454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014455 xy) ECHO_C='\c';;
14456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14457 ECHO_T=' ';;
Jon Dugane34c20c2010-07-08 23:26:52 +000014458 esac;;
14459*)
14460 ECHO_N='-n';;
14461esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014462
Jon Dugane34c20c2010-07-08 23:26:52 +000014463rm -f conf$$ conf$$.exe conf$$.file
14464if test -d conf$$.dir; then
14465 rm -f conf$$.dir/conf$$.file
14466else
14467 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014468 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000014469fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014470if (echo >conf$$.file) 2>/dev/null; then
14471 if ln -s conf$$.file conf$$ 2>/dev/null; then
14472 as_ln_s='ln -s'
14473 # ... but there are two gotchas:
14474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014476 # In both cases, we have to default to `cp -pR'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014478 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014479 elif ln conf$$.file conf$$ 2>/dev/null; then
14480 as_ln_s=ln
14481 else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014482 as_ln_s='cp -pR'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014483 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014484else
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014485 as_ln_s='cp -pR'
Jon Dugane34c20c2010-07-08 23:26:52 +000014486fi
14487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14488rmdir conf$$.dir 2>/dev/null
14489
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014490
14491# as_fn_mkdir_p
14492# -------------
14493# Create "$as_dir" as a directory, including parents if necessary.
14494as_fn_mkdir_p ()
14495{
14496
14497 case $as_dir in #(
14498 -*) as_dir=./$as_dir;;
14499 esac
14500 test -d "$as_dir" || eval $as_mkdir_p || {
14501 as_dirs=
14502 while :; do
14503 case $as_dir in #(
14504 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14505 *) as_qdir=$as_dir;;
14506 esac
14507 as_dirs="'$as_qdir' $as_dirs"
14508 as_dir=`$as_dirname -- "$as_dir" ||
14509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14510 X"$as_dir" : 'X\(//\)[^/]' \| \
14511 X"$as_dir" : 'X\(//\)$' \| \
14512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14513$as_echo X"$as_dir" |
14514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14515 s//\1/
14516 q
14517 }
14518 /^X\(\/\/\)[^/].*/{
14519 s//\1/
14520 q
14521 }
14522 /^X\(\/\/\)$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\).*/{
14527 s//\1/
14528 q
14529 }
14530 s/.*/./; q'`
14531 test -d "$as_dir" && break
14532 done
14533 test -z "$as_dirs" || eval "mkdir $as_dirs"
14534 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14535
14536
14537} # as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014538if mkdir -p . 2>/dev/null; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014539 as_mkdir_p='mkdir -p "$as_dir"'
Jon Dugane34c20c2010-07-08 23:26:52 +000014540else
14541 test -d ./-p && rmdir ./-p
14542 as_mkdir_p=false
14543fi
14544
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014545
14546# as_fn_executable_p FILE
14547# -----------------------
14548# Test if FILE is an executable regular file.
14549as_fn_executable_p ()
14550{
14551 test -f "$1" && test -x "$1"
14552} # as_fn_executable_p
14553as_test_x='test -x'
14554as_executable_p=as_fn_executable_p
Jon Dugane34c20c2010-07-08 23:26:52 +000014555
14556# Sed expression to map a string onto a valid CPP name.
14557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14558
14559# Sed expression to map a string onto a valid variable name.
14560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14561
14562
14563exec 6>&1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014564## ----------------------------------- ##
14565## Main body of $CONFIG_STATUS script. ##
14566## ----------------------------------- ##
14567_ASEOF
14568test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014569
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14571# Save the log message, to keep $0 and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000014572# report actual input values of CONFIG_FILES etc. instead of their
14573# values after options handling.
14574ac_log="
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -070014575This file was extended by iperf $as_me 3.8.1, which was
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014576generated by GNU Autoconf 2.69. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000014577
14578 CONFIG_FILES = $CONFIG_FILES
14579 CONFIG_HEADERS = $CONFIG_HEADERS
14580 CONFIG_LINKS = $CONFIG_LINKS
14581 CONFIG_COMMANDS = $CONFIG_COMMANDS
14582 $ $0 $@
14583
14584on `(hostname || uname -n) 2>/dev/null | sed 1q`
14585"
14586
14587_ACEOF
14588
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014589case $ac_config_files in *"
14590"*) set x $ac_config_files; shift; ac_config_files=$*;;
14591esac
14592
14593case $ac_config_headers in *"
14594"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14595esac
14596
14597
14598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014599# Files that config.status was made for.
14600config_files="$ac_config_files"
14601config_headers="$ac_config_headers"
14602config_commands="$ac_config_commands"
14603
14604_ACEOF
14605
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014607ac_cs_usage="\
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014608\`$as_me' instantiates files and other configuration actions
14609from templates according to the current configuration. Unless the files
14610and actions are specified as TAGs, all are instantiated by default.
Jon Dugane34c20c2010-07-08 23:26:52 +000014611
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014612Usage: $0 [OPTION]... [TAG]...
Jon Dugane34c20c2010-07-08 23:26:52 +000014613
14614 -h, --help print this help, then exit
14615 -V, --version print version number and configuration settings, then exit
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014616 --config print configuration, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014617 -q, --quiet, --silent
14618 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000014619 -d, --debug don't remove temporary files
14620 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014621 --file=FILE[:TEMPLATE]
14622 instantiate the configuration file FILE
14623 --header=FILE[:TEMPLATE]
14624 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000014625
14626Configuration files:
14627$config_files
14628
14629Configuration headers:
14630$config_headers
14631
14632Configuration commands:
14633$config_commands
14634
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014635Report bugs to <https://github.com/esnet/iperf>.
Bruce A. Mah6e9d8522018-06-22 14:10:41 -070014636iperf home page: <https://software.es.net/iperf/>."
Jon Dugane34c20c2010-07-08 23:26:52 +000014637
14638_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014640ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Jon Dugane34c20c2010-07-08 23:26:52 +000014641ac_cs_version="\\
Bruce A. Mah3dfdffd2020-06-10 08:18:27 -070014642iperf config.status 3.8.1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014643configured by $0, generated by GNU Autoconf 2.69,
14644 with options \\"\$ac_cs_config\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000014645
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014646Copyright (C) 2012 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000014647This config.status script is free software; the Free Software Foundation
14648gives unlimited permission to copy, distribute and modify it."
14649
14650ac_pwd='$ac_pwd'
14651srcdir='$srcdir'
14652INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014653MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014654AWK='$AWK'
14655test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000014656_ACEOF
14657
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14659# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000014660ac_need_defaults=:
14661while test $# != 0
14662do
14663 case $1 in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014664 --*=?*)
Jon Dugane34c20c2010-07-08 23:26:52 +000014665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14667 ac_shift=:
14668 ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014669 --*=)
14670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14671 ac_optarg=
14672 ac_shift=:
14673 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014674 *)
14675 ac_option=$1
14676 ac_optarg=$2
14677 ac_shift=shift
14678 ;;
14679 esac
14680
14681 case $ac_option in
14682 # Handling of the options.
14683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14684 ac_cs_recheck=: ;;
14685 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014686 $as_echo "$ac_cs_version"; exit ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014687 --config | --confi | --conf | --con | --co | --c )
14688 $as_echo "$ac_cs_config"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014689 --debug | --debu | --deb | --de | --d | -d )
14690 debug=: ;;
14691 --file | --fil | --fi | --f )
14692 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014693 case $ac_optarg in
14694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014695 '') as_fn_error $? "missing file argument" ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014696 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014697 as_fn_append CONFIG_FILES " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014698 ac_need_defaults=false;;
14699 --header | --heade | --head | --hea )
14700 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014701 case $ac_optarg in
14702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14703 esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014704 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000014705 ac_need_defaults=false;;
14706 --he | --h)
14707 # Conflict between --help and --header
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014708 as_fn_error $? "ambiguous option: \`$1'
14709Try \`$0 --help' for more information.";;
Jon Dugane34c20c2010-07-08 23:26:52 +000014710 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014711 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14714 ac_cs_silent=: ;;
14715
14716 # This is an error.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014717 -*) as_fn_error $? "unrecognized option: \`$1'
14718Try \`$0 --help' for more information." ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014719
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014720 *) as_fn_append ac_config_targets " $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000014721 ac_need_defaults=false ;;
14722
14723 esac
14724 shift
14725done
14726
14727ac_configure_extra_args=
14728
14729if $ac_cs_silent; then
14730 exec 6>/dev/null
14731 ac_configure_extra_args="$ac_configure_extra_args --silent"
14732fi
14733
14734_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014736if \$ac_cs_recheck; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014737 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014738 shift
14739 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14740 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000014741 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014742 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000014743fi
14744
14745_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014747exec 5>>config.log
14748{
14749 echo
14750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14751## Running $as_me. ##
14752_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014753 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000014754} >&5
14755
14756_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000014758#
14759# INIT-COMMANDS
14760#
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080014761AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
Jon Dugane34c20c2010-07-08 23:26:52 +000014762
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014763
14764# The HP-UX ksh and POSIX shell print the target directory to stdout
14765# if CDPATH is set.
14766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14767
14768sed_quote_subst='$sed_quote_subst'
14769double_quote_subst='$double_quote_subst'
14770delay_variable_subst='$delay_variable_subst'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014771macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14772macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah51a4c632020-06-10 07:34:14 -070014773enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014774enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14775pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14776enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014777shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014778SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14779ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14780PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14781host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14782host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14783host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14784build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14785build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14786build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14787SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14788Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14789GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14790EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14791FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14792LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14793NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14794LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14795max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14796ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14797exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14798lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14799lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14800lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14801lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14802lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14803reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14804reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14805OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14806deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14807file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14808file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14809want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14810DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14811sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14812AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14813AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14814archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14815STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14816RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14817old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14818old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14819old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14820lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14821CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14822CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14823compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14824GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14825lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14826lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014827lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014828lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14829lt_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"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014830lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014831nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14832lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014833lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014834objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14835MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14836lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14837lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14838lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14839lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14840lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14841need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14842MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14843DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14844NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14845LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14846OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14847OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14848libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14849shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14850extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14851archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14852enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14853export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14854whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14855compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14856old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14857old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14858archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14859archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14860module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14861module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14862with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14863allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14864no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14865hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14866hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14867hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14868hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14869hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14870hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14871hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14872inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14873link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14874always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14875export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14876exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14877include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14878prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14879postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14880file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14881variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14882need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14883need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14884version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14885runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14886shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14887shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14888libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14889library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14890soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14891install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14892postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14893postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14894finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14895finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14896hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14897sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah54615792015-05-11 10:42:44 -070014898configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14899configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014900hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14901enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14902enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14903enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14904old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14905striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014906
14907LTCC='$LTCC'
14908LTCFLAGS='$LTCFLAGS'
14909compiler='$compiler_DEFAULT'
14910
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014911# A function that is used when there is no print builtin or printf.
14912func_fallback_echo ()
14913{
14914 eval 'cat <<_LTECHO_EOF
14915\$1
14916_LTECHO_EOF'
14917}
14918
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014919# Quote evaled strings.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014920for var in SHELL \
14921ECHO \
14922PATH_SEPARATOR \
14923SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014924GREP \
14925EGREP \
14926FGREP \
14927LD \
14928NM \
14929LN_S \
14930lt_SP2NL \
14931lt_NL2SP \
14932reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014933OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014934deplibs_check_method \
14935file_magic_cmd \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014936file_magic_glob \
14937want_nocaseglob \
14938DLLTOOL \
14939sharedlib_from_linklib_cmd \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014940AR \
14941AR_FLAGS \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014942archiver_list_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014943STRIP \
14944RANLIB \
14945CC \
14946CFLAGS \
14947compiler \
14948lt_cv_sys_global_symbol_pipe \
14949lt_cv_sys_global_symbol_to_cdecl \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014950lt_cv_sys_global_symbol_to_import \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014951lt_cv_sys_global_symbol_to_c_name_address \
14952lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014953lt_cv_nm_interface \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014954nm_file_list_spec \
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014955lt_cv_truncate_bin \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014956lt_prog_compiler_no_builtin_flag \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014957lt_prog_compiler_pic \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014958lt_prog_compiler_wl \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014959lt_prog_compiler_static \
14960lt_cv_prog_compiler_c_o \
14961need_locks \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014962MANIFEST_TOOL \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014963DSYMUTIL \
14964NMEDIT \
14965LIPO \
14966OTOOL \
14967OTOOL64 \
14968shrext_cmds \
14969export_dynamic_flag_spec \
14970whole_archive_flag_spec \
14971compiler_needs_object \
14972with_gnu_ld \
14973allow_undefined_flag \
14974no_undefined_flag \
14975hardcode_libdir_flag_spec \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014976hardcode_libdir_separator \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014977exclude_expsyms \
14978include_expsyms \
14979file_list_spec \
14980variables_saved_for_relink \
14981libname_spec \
14982library_names_spec \
14983soname_spec \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014984install_override_mode \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014985finish_eval \
14986old_striplib \
14987striplib; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070014988 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014989 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080014990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014991 ;;
14992 *)
14993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14994 ;;
14995 esac
14996done
14997
14998# Double-quote double-evaled strings.
14999for var in reload_cmds \
15000old_postinstall_cmds \
15001old_postuninstall_cmds \
15002old_archive_cmds \
15003extract_expsyms_cmds \
15004old_archive_from_new_cmds \
15005old_archive_from_expsyms_cmds \
15006archive_cmds \
15007archive_expsym_cmds \
15008module_cmds \
15009module_expsym_cmds \
15010export_symbols_cmds \
15011prelink_cmds \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015012postlink_cmds \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015013postinstall_cmds \
15014postuninstall_cmds \
15015finish_cmds \
15016sys_lib_search_path_spec \
Bruce A. Mah54615792015-05-11 10:42:44 -070015017configure_time_dlsearch_path \
15018configure_time_lt_sys_library_path; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015020 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015022 ;;
15023 *)
15024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15025 ;;
15026 esac
15027done
15028
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015029ac_aux_dir='$ac_aux_dir'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015030
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015031# See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015032# commands through without removal of \ escapes INIT.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015033if test -n "\${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015034 setopt NO_GLOB_SUBST
15035fi
15036
15037
15038 PACKAGE='$PACKAGE'
15039 VERSION='$VERSION'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015040 RM='$RM'
15041 ofile='$ofile'
15042
15043
15044
15045
Jon Dugane34c20c2010-07-08 23:26:52 +000015046_ACEOF
15047
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015049
15050# Handling of arguments.
15051for ac_config_target in $ac_config_targets
15052do
15053 case $ac_config_target in
Jon Dugane34c20c2010-07-08 23:26:52 +000015054 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015055 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Bruce A. Mah06280a62020-05-04 15:11:05 -070015056 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15058 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mahfa275222014-04-24 10:25:36 -070015059 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070015060 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Bruce A. Mahbf22c9d2014-10-14 13:45:04 -070015061 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015062
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015063 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015064 esac
15065done
15066
15067
15068# If the user did not use the arguments to specify the items to instantiate,
15069# then the envvar interface is used. Set only those that are not.
15070# We use the long form for the default assignment because of an extremely
15071# bizarre bug on SunOS 4.1.3.
15072if $ac_need_defaults; then
15073 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15074 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15076fi
15077
15078# Have a temporary directory for convenience. Make it in the build tree
15079# simply because there is no reason against having it here, and in addition,
15080# creating and moving files from /tmp can sometimes cause problems.
15081# Hook for its removal unless debugging.
15082# Note that there is a small window in which the directory will not be cleaned:
15083# after its creation but before its name has been assigned to `$tmp'.
15084$debug ||
15085{
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015086 tmp= ac_tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000015087 trap 'exit_status=$?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015088 : "${ac_tmp:=$tmp}"
15089 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000015090' 0
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015091 trap 'as_fn_exit 1' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000015092}
15093# Create a (secure) tmp directory for tmp files.
15094
15095{
15096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015097 test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000015098} ||
15099{
15100 tmp=./conf$$-$RANDOM
15101 (umask 077 && mkdir "$tmp")
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015102} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15103ac_tmp=$tmp
Jon Dugane34c20c2010-07-08 23:26:52 +000015104
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015105# Set up the scripts for CONFIG_FILES section.
15106# No need to generate them if there are no CONFIG_FILES.
15107# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000015108if test -n "$CONFIG_FILES"; then
15109
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015110
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015111ac_cr=`echo X | tr X '\015'`
15112# On cygwin, bash can eat \r inside `` if the user requested igncr.
15113# But we know of no other shell where ac_cr would be empty at this
15114# point, so we can use a bashism as a fallback.
15115if test "x$ac_cr" = x; then
15116 eval ac_cr=\$\'\\r\'
15117fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015118ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15119if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15120 ac_cs_awk_cr='\\r'
15121else
15122 ac_cs_awk_cr=$ac_cr
15123fi
15124
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015125echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000015126_ACEOF
15127
15128
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015129{
15130 echo "cat >conf$$subs.awk <<_ACEOF" &&
15131 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15132 echo "_ACEOF"
15133} >conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15135ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Jon Dugane34c20c2010-07-08 23:26:52 +000015136ac_delim='%!_!# '
15137for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015138 . ./conf$$subs.sh ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015140
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015141 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15142 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000015143 break
15144 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015146 else
15147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15148 fi
15149done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015150rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000015151
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015153cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000015154_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015155sed -n '
15156h
15157s/^/S["/; s/!.*/"]=/
15158p
15159g
15160s/^[^!]*!//
15161:repl
15162t repl
15163s/'"$ac_delim"'$//
15164t delim
15165:nl
15166h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015167s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015168t more1
15169s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15170p
15171n
15172b repl
15173:more1
15174s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15175p
15176g
15177s/.\{148\}//
15178t nl
15179:delim
15180h
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015181s/\(.\{148\}\)..*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015182t more2
15183s/["\\]/\\&/g; s/^/"/; s/$/"/
15184p
15185b
15186:more2
15187s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15188p
15189g
15190s/.\{148\}//
15191t delim
15192' <conf$$subs.awk | sed '
15193/^[^""]/{
15194 N
15195 s/\n//
15196}
15197' >>$CONFIG_STATUS || ac_write_fail=1
15198rm -f conf$$subs.awk
15199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15200_ACAWK
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015201cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015202 for (key in S) S_is_set[key] = 1
15203 FS = ""
15204
15205}
15206{
15207 line = $ 0
15208 nfields = split(line, field, "@")
15209 substed = 0
15210 len = length(field[1])
15211 for (i = 2; i < nfields; i++) {
15212 key = field[i]
15213 keylen = length(key)
15214 if (S_is_set[key]) {
15215 value = S[key]
15216 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15217 len += length(value) + length(field[++i])
15218 substed = 1
15219 } else
15220 len += 1 + keylen
15221 }
15222
15223 print line
15224}
15225
15226_ACAWK
15227_ACEOF
15228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15229if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15230 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15231else
15232 cat
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015233fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15234 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015235_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015236
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015237# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15238# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000015239# trailing colons and then remove the whole line if VPATH becomes empty
15240# (actually we leave an empty line to preserve line numbers).
15241if test "x$srcdir" = x.; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015242 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15243h
15244s///
15245s/^/:/
15246s/[ ]*$/:/
15247s/:\$(srcdir):/:/g
15248s/:\${srcdir}:/:/g
15249s/:@srcdir@:/:/g
15250s/^:*//
Jon Dugane34c20c2010-07-08 23:26:52 +000015251s/:*$//
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015252x
15253s/\(=[ ]*\).*/\1/
15254G
15255s/\n//
Jon Dugane34c20c2010-07-08 23:26:52 +000015256s/^[^=]*=[ ]*$//
15257}'
15258fi
15259
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015261fi # test -n "$CONFIG_FILES"
15262
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015263# Set up the scripts for CONFIG_HEADERS section.
15264# No need to generate them if there are no CONFIG_HEADERS.
15265# This happens for instance with `./config.status Makefile'.
15266if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015267cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015268BEGIN {
15269_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000015270
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015271# Transform confdefs.h into an awk script `defines.awk', embedded as
15272# here-document in config.status, that substitutes the proper values into
15273# config.h.in to produce config.h.
15274
15275# Create a delimiter string that does not exist in confdefs.h, to ease
15276# handling of long lines.
15277ac_delim='%!_!# '
15278for ac_last_try in false false :; do
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015279 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15280 if test -z "$ac_tt"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015281 break
15282 elif $ac_last_try; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015283 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015284 else
15285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15286 fi
15287done
15288
15289# For the awk script, D is an array of macro values keyed by name,
15290# likewise P contains macro parameters if any. Preserve backslash
15291# newline sequences.
15292
15293ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15294sed -n '
15295s/.\{148\}/&'"$ac_delim"'/g
15296t rset
15297:rset
15298s/^[ ]*#[ ]*define[ ][ ]*/ /
15299t def
15300d
15301:def
15302s/\\$//
15303t bsnl
15304s/["\\]/\\&/g
15305s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15306D["\1"]=" \3"/p
15307s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15308d
15309:bsnl
15310s/["\\]/\\&/g
15311s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15312D["\1"]=" \3\\\\\\n"\\/p
15313t cont
15314s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15315t cont
15316d
15317:cont
15318n
15319s/.\{148\}/&'"$ac_delim"'/g
15320t clear
15321:clear
15322s/\\$//
15323t bsnlc
15324s/["\\]/\\&/g; s/^/"/; s/$/"/p
15325d
15326:bsnlc
15327s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15328b cont
15329' <confdefs.h | sed '
15330s/'"$ac_delim"'/"\\\
15331"/g' >>$CONFIG_STATUS || ac_write_fail=1
15332
15333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 for (key in D) D_is_set[key] = 1
15335 FS = ""
15336}
15337/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15338 line = \$ 0
15339 split(line, arg, " ")
15340 if (arg[1] == "#") {
15341 defundef = arg[2]
15342 mac1 = arg[3]
15343 } else {
15344 defundef = substr(arg[1], 2)
15345 mac1 = arg[2]
15346 }
15347 split(mac1, mac2, "(") #)
15348 macro = mac2[1]
15349 prefix = substr(line, 1, index(line, defundef) - 1)
15350 if (D_is_set[macro]) {
15351 # Preserve the white space surrounding the "#".
15352 print prefix "define", macro P[macro] D[macro]
15353 next
15354 } else {
15355 # Replace #undef with comments. This is necessary, for example,
15356 # in the case of _POSIX_SOURCE, which is predefined and required
15357 # on some systems where configure will not decide to define it.
15358 if (defundef == "undef") {
15359 print "/*", prefix defundef, macro, "*/"
15360 next
15361 }
15362 }
15363}
15364{ print }
15365_ACAWK
15366_ACEOF
15367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015368 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015369fi # test -n "$CONFIG_HEADERS"
15370
15371
15372eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15373shift
15374for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000015375do
15376 case $ac_tag in
15377 :[FHLC]) ac_mode=$ac_tag; continue;;
15378 esac
15379 case $ac_mode$ac_tag in
15380 :[FHL]*:*);;
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015381 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015382 :[FH]-) ac_tag=-:-;;
15383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15384 esac
15385 ac_save_IFS=$IFS
15386 IFS=:
15387 set x $ac_tag
15388 IFS=$ac_save_IFS
15389 shift
15390 ac_file=$1
15391 shift
15392
15393 case $ac_mode in
15394 :L) ac_source=$1;;
15395 :[FH])
15396 ac_file_inputs=
15397 for ac_f
15398 do
15399 case $ac_f in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015400 -) ac_f="$ac_tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000015401 *) # Look for the file first in the build tree, then in the source tree
15402 # (if the path is not absolute). The absolute path cannot be DOS-style,
15403 # because $ac_f cannot contain `:'.
15404 test -f "$ac_f" ||
15405 case $ac_f in
15406 [\\/$]*) false;;
15407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15408 esac ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015409 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015410 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015411 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015412 as_fn_append ac_file_inputs " '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000015413 done
15414
15415 # Let's still pretend it is `configure' which instantiates (i.e., don't
15416 # use $as_me), people would be surprised to read:
15417 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015418 configure_input='Generated from '`
15419 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15420 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000015421 if test x"$ac_file" != x-; then
15422 configure_input="$ac_file. $configure_input"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015424$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015425 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015426 # Neutralize special characters interpreted by sed in replacement strings.
15427 case $configure_input in #(
15428 *\&* | *\|* | *\\* )
15429 ac_sed_conf_input=`$as_echo "$configure_input" |
15430 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15431 *) ac_sed_conf_input=$configure_input;;
15432 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000015433
15434 case $ac_tag in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015435 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015437 esac
15438 ;;
15439 esac
15440
15441 ac_dir=`$as_dirname -- "$ac_file" ||
15442$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15443 X"$ac_file" : 'X\(//\)[^/]' \| \
15444 X"$ac_file" : 'X\(//\)$' \| \
15445 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015446$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000015447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15448 s//\1/
15449 q
15450 }
15451 /^X\(\/\/\)[^/].*/{
15452 s//\1/
15453 q
15454 }
15455 /^X\(\/\/\)$/{
15456 s//\1/
15457 q
15458 }
15459 /^X\(\/\).*/{
15460 s//\1/
15461 q
15462 }
15463 s/.*/./; q'`
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015464 as_dir="$ac_dir"; as_fn_mkdir_p
Jon Dugane34c20c2010-07-08 23:26:52 +000015465 ac_builddir=.
15466
15467case "$ac_dir" in
15468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15469*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000015471 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000015473 case $ac_top_builddir_sub in
15474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15476 esac ;;
15477esac
15478ac_abs_top_builddir=$ac_pwd
15479ac_abs_builddir=$ac_pwd$ac_dir_suffix
15480# for backward compatibility:
15481ac_top_builddir=$ac_top_build_prefix
15482
15483case $srcdir in
15484 .) # We are building in place.
15485 ac_srcdir=.
15486 ac_top_srcdir=$ac_top_builddir_sub
15487 ac_abs_top_srcdir=$ac_pwd ;;
15488 [\\/]* | ?:[\\/]* ) # Absolute name.
15489 ac_srcdir=$srcdir$ac_dir_suffix;
15490 ac_top_srcdir=$srcdir
15491 ac_abs_top_srcdir=$srcdir ;;
15492 *) # Relative name.
15493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15494 ac_top_srcdir=$ac_top_build_prefix$srcdir
15495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15496esac
15497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15498
15499
15500 case $ac_mode in
15501 :F)
15502 #
15503 # CONFIG_FILE
15504 #
15505
15506 case $INSTALL in
15507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15508 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15509 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015510 ac_MKDIR_P=$MKDIR_P
15511 case $MKDIR_P in
15512 [\\/$]* | ?:[\\/]* ) ;;
15513 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15514 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000015515_ACEOF
15516
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015518# If the template does not know about datarootdir, expand it.
15519# FIXME: This hack should be removed a few years after 2.60.
15520ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015521ac_sed_dataroot='
15522/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000015523 p
15524 q
15525}
15526/@datadir@/p
15527/@docdir@/p
15528/@infodir@/p
15529/@localedir@/p
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015530/@mandir@/p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015531case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000015532*datarootdir*) ac_datarootdir_seen=yes;;
15533*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015535$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015536_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015538 ac_datarootdir_hack='
15539 s&@datadir@&$datadir&g
15540 s&@docdir@&$docdir&g
15541 s&@infodir@&$infodir&g
15542 s&@localedir@&$localedir&g
15543 s&@mandir@&$mandir&g
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015544 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000015545esac
15546_ACEOF
15547
15548# Neutralize VPATH when `$srcdir' = `.'.
15549# Shell code in configure.ac might set extrasub.
15550# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000015553$extrasub
15554_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000015556:t
15557/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015558s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000015559s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015560s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000015561s&@srcdir@&$ac_srcdir&;t t
15562s&@abs_srcdir@&$ac_abs_srcdir&;t t
15563s&@top_srcdir@&$ac_top_srcdir&;t t
15564s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15565s&@builddir@&$ac_builddir&;t t
15566s&@abs_builddir@&$ac_abs_builddir&;t t
15567s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15568s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015569s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000015570$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015571"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015572eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15573 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015574
15575test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015576 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15577 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15578 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15580which seems to be undefined. Please make sure it is defined" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015581$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015582which seems to be undefined. Please make sure it is defined" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015583
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015584 rm -f "$ac_tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000015585 case $ac_file in
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015586 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15587 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015588 esac \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015590 ;;
15591 :H)
15592 #
15593 # CONFIG_HEADER
15594 #
15595 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015596 {
15597 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015598 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15599 } >"$ac_tmp/config.h" \
15600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15601 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015603$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015604 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015605 rm -f "$ac_file"
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015606 mv "$ac_tmp/config.h" "$ac_file" \
15607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015608 fi
15609 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015610 $as_echo "/* $configure_input */" \
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015611 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15612 || as_fn_error $? "could not create -" "$LINENO" 5
Jon Dugane34c20c2010-07-08 23:26:52 +000015613 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015614# Compute "$ac_file"'s index in $config_headers.
15615_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000015616_am_stamp_count=1
15617for _am_header in $config_headers :; do
15618 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015619 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000015620 break ;;
15621 * )
15622 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15623 esac
15624done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015625echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15626$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15627 X"$_am_arg" : 'X\(//\)[^/]' \| \
15628 X"$_am_arg" : 'X\(//\)$' \| \
15629 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15630$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000015631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15632 s//\1/
15633 q
15634 }
15635 /^X\(\/\/\)[^/].*/{
15636 s//\1/
15637 q
15638 }
15639 /^X\(\/\/\)$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\(\/\).*/{
15644 s//\1/
15645 q
15646 }
15647 s/.*/./; q'`/stamp-h$_am_stamp_count
15648 ;;
15649
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015650 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015651$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000015652 ;;
15653 esac
15654
15655
15656 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015657 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015658 # Older Autoconf quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015659 # are listed without --file. Let's play safe and only enable the eval
15660 # if we detect the quoting.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015661 # TODO: see whether this extra hack can be removed once we start
15662 # requiring Autoconf 2.70 or later.
15663 case $CONFIG_FILES in #(
15664 *\'*) :
15665 eval set x "$CONFIG_FILES" ;; #(
15666 *) :
15667 set x $CONFIG_FILES ;; #(
15668 *) :
15669 ;;
15670esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015671 shift
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015672 # Used to flag and report bootstrapping failures.
15673 am_rc=0
15674 for am_mf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015675 do
15676 # Strip MF so we end up with the name of the file.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015677 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15678 # Check whether this is an Automake generated Makefile which includes
15679 # dependency-tracking related rules and includes.
15680 # Grep'ing the whole file directly is not great: AIX grep has a line
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015681 # limit of 2048, but all sed's we know have understand at least 4000.
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015682 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15683 || continue
15684 am_dirpart=`$as_dirname -- "$am_mf" ||
15685$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15686 X"$am_mf" : 'X\(//\)[^/]' \| \
15687 X"$am_mf" : 'X\(//\)$' \| \
15688 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15689$as_echo X"$am_mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000015690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15691 s//\1/
15692 q
15693 }
15694 /^X\(\/\/\)[^/].*/{
15695 s//\1/
15696 q
15697 }
15698 /^X\(\/\/\)$/{
15699 s//\1/
15700 q
15701 }
15702 /^X\(\/\).*/{
15703 s//\1/
15704 q
15705 }
15706 s/.*/./; q'`
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015707 am_filepart=`$as_basename -- "$am_mf" ||
15708$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15709 X"$am_mf" : 'X\(//\)$' \| \
15710 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15711$as_echo X/"$am_mf" |
15712 sed '/^.*\/\([^/][^/]*\)\/*$/{
Jon Dugane34c20c2010-07-08 23:26:52 +000015713 s//\1/
15714 q
15715 }
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015716 /^X\/\(\/\/\)$/{
Jon Dugane34c20c2010-07-08 23:26:52 +000015717 s//\1/
15718 q
15719 }
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015720 /^X\/\(\/\).*/{
Jon Dugane34c20c2010-07-08 23:26:52 +000015721 s//\1/
15722 q
15723 }
15724 s/.*/./; q'`
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015725 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15726 && sed -e '/# am--include-marker/d' "$am_filepart" \
15727 | $MAKE -f - am--depfiles" >&5
15728 (cd "$am_dirpart" \
15729 && sed -e '/# am--include-marker/d' "$am_filepart" \
15730 | $MAKE -f - am--depfiles) >&5 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } || am_rc=$?
Jon Dugane34c20c2010-07-08 23:26:52 +000015734 done
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015735 if test $am_rc -ne 0; then
15736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15738as_fn_error $? "Something went wrong bootstrapping makefile fragments
Bruce A. Mah06280a62020-05-04 15:11:05 -070015739 for automatic dependency tracking. If GNU make was not used, consider
15740 re-running the configure script with MAKE=\"gmake\" (or whatever is
15741 necessary). You can also try re-running configure with the
Bruce A. Mahff1ea4e2018-02-28 13:24:06 -080015742 '--disable-dependency-tracking' option to at least be able to build
15743 the package (albeit without support for automatic dependency tracking).
15744See \`config.log' for more details" "$LINENO" 5; }
15745 fi
15746 { am_dirpart=; unset am_dirpart;}
15747 { am_filepart=; unset am_filepart;}
15748 { am_mf=; unset am_mf;}
15749 { am_rc=; unset am_rc;}
15750 rm -f conftest-deps.mk
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015751}
Jon Dugane34c20c2010-07-08 23:26:52 +000015752 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015753 "libtool":C)
15754
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015755 # See if we are running on zsh, and set the options that allow our
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015756 # commands through without removal of \ escapes.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015757 if test -n "${ZSH_VERSION+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015758 setopt NO_GLOB_SUBST
15759 fi
15760
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015761 cfgfile=${ofile}T
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015762 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15763 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015764
15765 cat <<_LT_EOF >> "$cfgfile"
15766#! $SHELL
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015767# Generated automatically by $as_me ($PACKAGE) $VERSION
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15769# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015770
15771# Provide generalized library-building support services.
15772# Written by Gordon Matzigkeit, 1996
15773
15774# Copyright (C) 2014 Free Software Foundation, Inc.
15775# This is free software; see the source for copying conditions. There is NO
15776# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15777
15778# GNU Libtool is free software; you can redistribute it and/or modify
15779# it under the terms of the GNU General Public License as published by
15780# the Free Software Foundation; either version 2 of of the License, or
15781# (at your option) any later version.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015782#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015783# As a special exception to the GNU General Public License, if you
15784# distribute this file as part of a program or library that is built
15785# using GNU Libtool, you may include this file under the same
15786# distribution terms that you use for the rest of that program.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015787#
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015788# GNU Libtool is distributed in the hope that it will be useful, but
15789# WITHOUT ANY WARRANTY; without even the implied warranty of
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015790# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15791# GNU General Public License for more details.
15792#
15793# You should have received a copy of the GNU General Public License
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015794# along with this program. If not, see <http://www.gnu.org/licenses/>.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015795
15796
15797# The names of the tagged configurations supported by this script.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015798available_tags=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015799
Bruce A. Mah54615792015-05-11 10:42:44 -070015800# Configured defaults for sys_lib_dlsearch_path munging.
15801: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15802
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015803# ### BEGIN LIBTOOL CONFIG
15804
15805# Which release of libtool.m4 was used?
15806macro_version=$macro_version
15807macro_revision=$macro_revision
15808
Bruce A. Mah51a4c632020-06-10 07:34:14 -070015809# Whether or not to build shared libraries.
15810build_libtool_libs=$enable_shared
15811
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015812# Whether or not to build static libraries.
15813build_old_libs=$enable_static
15814
15815# What type of objects to build.
15816pic_mode=$pic_mode
15817
15818# Whether or not to optimize for fast installation.
15819fast_install=$enable_fast_install
15820
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015821# Shared archive member basename,for filename based shared library versioning on AIX.
15822shared_archive_member_spec=$shared_archive_member_spec
15823
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015824# Shell to use when invoking shell scripts.
15825SHELL=$lt_SHELL
15826
15827# An echo program that protects backslashes.
15828ECHO=$lt_ECHO
15829
15830# The PATH separator for the build system.
15831PATH_SEPARATOR=$lt_PATH_SEPARATOR
15832
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015833# The host system.
15834host_alias=$host_alias
15835host=$host
15836host_os=$host_os
15837
15838# The build system.
15839build_alias=$build_alias
15840build=$build
15841build_os=$build_os
15842
15843# A sed program that does not truncate output.
15844SED=$lt_SED
15845
15846# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15847Xsed="\$SED -e 1s/^X//"
15848
15849# A grep program that handles long lines.
15850GREP=$lt_GREP
15851
15852# An ERE matcher.
15853EGREP=$lt_EGREP
15854
15855# A literal string matcher.
15856FGREP=$lt_FGREP
15857
15858# A BSD- or MS-compatible name lister.
15859NM=$lt_NM
15860
15861# Whether we need soft or hard links.
15862LN_S=$lt_LN_S
15863
15864# What is the maximum length of a command?
15865max_cmd_len=$max_cmd_len
15866
15867# Object file suffix (normally "o").
15868objext=$ac_objext
15869
15870# Executable file suffix (normally "").
15871exeext=$exeext
15872
15873# whether the shell understands "unset".
15874lt_unset=$lt_unset
15875
15876# turn spaces into newlines.
15877SP2NL=$lt_lt_SP2NL
15878
15879# turn newlines into spaces.
15880NL2SP=$lt_lt_NL2SP
15881
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015882# convert \$build file names to \$host format.
15883to_host_file_cmd=$lt_cv_to_host_file_cmd
15884
15885# convert \$build files to toolchain format.
15886to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080015887
15888# An object symbol dumper.
15889OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015890
15891# Method to check whether dependent libraries are shared objects.
15892deplibs_check_method=$lt_deplibs_check_method
15893
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015894# Command to use when deplibs_check_method = "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015895file_magic_cmd=$lt_file_magic_cmd
15896
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015897# How to find potential files when deplibs_check_method = "file_magic".
15898file_magic_glob=$lt_file_magic_glob
15899
15900# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15901want_nocaseglob=$lt_want_nocaseglob
15902
15903# DLL creation program.
15904DLLTOOL=$lt_DLLTOOL
15905
15906# Command to associate shared and link libraries.
15907sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15908
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015909# The archiver.
15910AR=$lt_AR
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015911
15912# Flags to create an archive.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015913AR_FLAGS=$lt_AR_FLAGS
15914
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015915# How to feed a file listing to the archiver.
15916archiver_list_spec=$lt_archiver_list_spec
15917
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015918# A symbol stripping program.
15919STRIP=$lt_STRIP
15920
15921# Commands used to install an old-style archive.
15922RANLIB=$lt_RANLIB
15923old_postinstall_cmds=$lt_old_postinstall_cmds
15924old_postuninstall_cmds=$lt_old_postuninstall_cmds
15925
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015926# Whether to use a lock for old archive extraction.
15927lock_old_archive_extraction=$lock_old_archive_extraction
15928
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015929# A C compiler.
15930LTCC=$lt_CC
15931
15932# LTCC compiler flags.
15933LTCFLAGS=$lt_CFLAGS
15934
15935# Take the output of nm and produce a listing of raw symbols and C names.
15936global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15937
15938# Transform the output of nm in a proper C declaration.
15939global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15940
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015941# Transform the output of nm into a list of symbols to manually relocate.
15942global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15943
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015944# Transform the output of nm in a C name address pair.
15945global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15946
15947# Transform the output of nm in a C name address pair when lib prefix is needed.
15948global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15949
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015950# The name lister interface.
15951nm_interface=$lt_lt_cv_nm_interface
15952
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015953# Specify filename containing input files for \$NM.
15954nm_file_list_spec=$lt_nm_file_list_spec
15955
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015956# The root where to search for dependent libraries,and where our libraries should be installed.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015957lt_sysroot=$lt_sysroot
15958
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080015959# Command to truncate a binary pipe.
15960lt_truncate_bin=$lt_lt_cv_truncate_bin
15961
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015962# The name of the directory that contains temporary libtool files.
15963objdir=$objdir
15964
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015965# Used to examine libraries when file_magic_cmd begins with "file".
15966MAGIC_CMD=$MAGIC_CMD
15967
15968# Must we lock files when doing compilation?
15969need_locks=$lt_need_locks
15970
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070015971# Manifest tool.
15972MANIFEST_TOOL=$lt_MANIFEST_TOOL
15973
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080015974# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15975DSYMUTIL=$lt_DSYMUTIL
15976
15977# Tool to change global to local symbols on Mac OS X.
15978NMEDIT=$lt_NMEDIT
15979
15980# Tool to manipulate fat objects and archives on Mac OS X.
15981LIPO=$lt_LIPO
15982
15983# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15984OTOOL=$lt_OTOOL
15985
15986# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15987OTOOL64=$lt_OTOOL64
15988
15989# Old archive suffix (normally "a").
15990libext=$libext
15991
15992# Shared library suffix (normally ".so").
15993shrext_cmds=$lt_shrext_cmds
15994
15995# The commands to extract the exported symbol list from a shared archive.
15996extract_expsyms_cmds=$lt_extract_expsyms_cmds
15997
15998# Variables whose values should be saved in libtool wrapper scripts and
15999# restored at link time.
16000variables_saved_for_relink=$lt_variables_saved_for_relink
16001
16002# Do we need the "lib" prefix for modules?
16003need_lib_prefix=$need_lib_prefix
16004
16005# Do we need a version for libraries?
16006need_version=$need_version
16007
16008# Library versioning type.
16009version_type=$version_type
16010
16011# Shared library runtime path variable.
16012runpath_var=$runpath_var
16013
16014# Shared library path variable.
16015shlibpath_var=$shlibpath_var
16016
16017# Is shlibpath searched before the hard-coded library search path?
16018shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16019
16020# Format of library name prefix.
16021libname_spec=$lt_libname_spec
16022
16023# List of archive names. First name is the real one, the rest are links.
16024# The last name is the one that the linker finds with -lNAME
16025library_names_spec=$lt_library_names_spec
16026
16027# The coded name of the library, if different from the real name.
16028soname_spec=$lt_soname_spec
16029
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016030# Permission mode override for installation of shared libraries.
16031install_override_mode=$lt_install_override_mode
16032
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016033# Command to use after installation of a shared archive.
16034postinstall_cmds=$lt_postinstall_cmds
16035
16036# Command to use after uninstallation of a shared archive.
16037postuninstall_cmds=$lt_postuninstall_cmds
16038
16039# Commands used to finish a libtool library installation in a directory.
16040finish_cmds=$lt_finish_cmds
16041
16042# As "finish_cmds", except a single script fragment to be evaled but
16043# not shown.
16044finish_eval=$lt_finish_eval
16045
16046# Whether we should hardcode library paths into libraries.
16047hardcode_into_libs=$hardcode_into_libs
16048
16049# Compile-time system search path for libraries.
16050sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16051
Bruce A. Mah54615792015-05-11 10:42:44 -070016052# Detected run-time system search path for libraries.
16053sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16054
16055# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16056configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016057
16058# Whether dlopen is supported.
16059dlopen_support=$enable_dlopen
16060
16061# Whether dlopen of programs is supported.
16062dlopen_self=$enable_dlopen_self
16063
16064# Whether dlopen of statically linked programs is supported.
16065dlopen_self_static=$enable_dlopen_self_static
16066
16067# Commands to strip libraries.
16068old_striplib=$lt_old_striplib
16069striplib=$lt_striplib
16070
16071
16072# The linker used to build libraries.
16073LD=$lt_LD
16074
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016075# How to create reloadable object files.
16076reload_flag=$lt_reload_flag
16077reload_cmds=$lt_reload_cmds
16078
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016079# Commands used to build an old-style archive.
16080old_archive_cmds=$lt_old_archive_cmds
16081
16082# A language specific compiler.
16083CC=$lt_compiler
16084
16085# Is the compiler the GNU compiler?
16086with_gcc=$GCC
16087
16088# Compiler flag to turn off builtin functions.
16089no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16090
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070016091# Additional compiler flags for building library objects.
16092pic_flag=$lt_lt_prog_compiler_pic
16093
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016094# How to pass a linker flag through the compiler.
16095wl=$lt_lt_prog_compiler_wl
16096
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016097# Compiler flag to prevent dynamic linking.
16098link_static_flag=$lt_lt_prog_compiler_static
16099
16100# Does compiler simultaneously support -c and -o options?
16101compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16102
16103# Whether or not to add -lc for building shared libraries.
16104build_libtool_need_lc=$archive_cmds_need_lc
16105
16106# Whether or not to disallow shared libs when runtime libs are static.
16107allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16108
16109# Compiler flag to allow reflexive dlopens.
16110export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16111
16112# Compiler flag to generate shared objects directly from archives.
16113whole_archive_flag_spec=$lt_whole_archive_flag_spec
16114
16115# Whether the compiler copes with passing no objects directly.
16116compiler_needs_object=$lt_compiler_needs_object
16117
16118# Create an old-style archive from a shared archive.
16119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16120
16121# Create a temporary old-style archive to link instead of a shared archive.
16122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16123
16124# Commands used to build a shared archive.
16125archive_cmds=$lt_archive_cmds
16126archive_expsym_cmds=$lt_archive_expsym_cmds
16127
16128# Commands used to build a loadable module if different from building
16129# a shared archive.
16130module_cmds=$lt_module_cmds
16131module_expsym_cmds=$lt_module_expsym_cmds
16132
16133# Whether we are building with GNU ld or not.
16134with_gnu_ld=$lt_with_gnu_ld
16135
16136# Flag that allows shared libraries with undefined symbols to be built.
16137allow_undefined_flag=$lt_allow_undefined_flag
16138
16139# Flag that enforces no undefined symbols.
16140no_undefined_flag=$lt_no_undefined_flag
16141
16142# Flag to hardcode \$libdir into a binary during linking.
16143# This must work even if \$libdir does not exist
16144hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16145
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016146# Whether we need a single "-rpath" flag with a separated argument.
16147hardcode_libdir_separator=$lt_hardcode_libdir_separator
16148
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016149# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016150# DIR into the resulting binary.
16151hardcode_direct=$hardcode_direct
16152
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016153# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016154# DIR into the resulting binary and the resulting library dependency is
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016155# "absolute",i.e impossible to change by setting \$shlibpath_var if the
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016156# library is relocated.
16157hardcode_direct_absolute=$hardcode_direct_absolute
16158
16159# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16160# into the resulting binary.
16161hardcode_minus_L=$hardcode_minus_L
16162
16163# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16164# into the resulting binary.
16165hardcode_shlibpath_var=$hardcode_shlibpath_var
16166
16167# Set to "yes" if building a shared library automatically hardcodes DIR
16168# into the library and all subsequent libraries and executables linked
16169# against it.
16170hardcode_automatic=$hardcode_automatic
16171
16172# Set to yes if linker adds runtime paths of dependent libraries
16173# to runtime path list.
16174inherit_rpath=$inherit_rpath
16175
16176# Whether libtool must link a program against all its dependency libraries.
16177link_all_deplibs=$link_all_deplibs
16178
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016179# Set to "yes" if exported symbols are required.
16180always_export_symbols=$always_export_symbols
16181
16182# The commands to list exported symbols.
16183export_symbols_cmds=$lt_export_symbols_cmds
16184
16185# Symbols that should not be listed in the preloaded symbols.
16186exclude_expsyms=$lt_exclude_expsyms
16187
16188# Symbols that must always be exported.
16189include_expsyms=$lt_include_expsyms
16190
16191# Commands necessary for linking programs (against libraries) with templates.
16192prelink_cmds=$lt_prelink_cmds
16193
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016194# Commands necessary for finishing linking programs.
16195postlink_cmds=$lt_postlink_cmds
16196
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016197# Specify filename containing input files.
16198file_list_spec=$lt_file_list_spec
16199
16200# How to hardcode a shared library path into an executable.
16201hardcode_action=$hardcode_action
16202
16203# ### END LIBTOOL CONFIG
16204
16205_LT_EOF
16206
Bruce A. Mah54615792015-05-11 10:42:44 -070016207 cat <<'_LT_EOF' >> "$cfgfile"
16208
16209# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16210
16211# func_munge_path_list VARIABLE PATH
16212# -----------------------------------
16213# VARIABLE is name of variable containing _space_ separated list of
16214# directories to be munged by the contents of PATH, which is string
16215# having a format:
16216# "DIR[:DIR]:"
16217# string "DIR[ DIR]" will be prepended to VARIABLE
16218# ":DIR[:DIR]"
16219# string "DIR[ DIR]" will be appended to VARIABLE
16220# "DIRP[:DIRP]::[DIRA:]DIRA"
16221# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16222# "DIRA[ DIRA]" will be appended to VARIABLE
16223# "DIR[:DIR]"
16224# VARIABLE will be replaced by "DIR[ DIR]"
16225func_munge_path_list ()
16226{
16227 case x$2 in
16228 x)
16229 ;;
16230 *:)
16231 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16232 ;;
16233 x:*)
16234 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16235 ;;
16236 *::*)
16237 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16238 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16239 ;;
16240 *)
16241 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16242 ;;
16243 esac
16244}
16245
16246
16247# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16248func_cc_basename ()
16249{
16250 for cc_temp in $*""; do
16251 case $cc_temp in
16252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16254 \-*) ;;
16255 *) break;;
16256 esac
16257 done
16258 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16259}
16260
16261
16262# ### END FUNCTIONS SHARED WITH CONFIGURE
16263
16264_LT_EOF
16265
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016266 case $host_os in
16267 aix3*)
16268 cat <<\_LT_EOF >> "$cfgfile"
16269# AIX sometimes has problems with the GCC collect2 program. For some
16270# reason, if we set the COLLECT_NAMES environment variable, the problems
16271# vanish in a puff of smoke.
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016272if test set != "${COLLECT_NAMES+set}"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016273 COLLECT_NAMES=
16274 export COLLECT_NAMES
16275fi
16276_LT_EOF
16277 ;;
16278 esac
16279
16280
Bruce A. Mah4874c4a2015-01-05 15:23:07 -080016281ltmain=$ac_aux_dir/ltmain.sh
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016282
16283
16284 # We use sed instead of cat because bash on DJGPP gets confused if
16285 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16286 # text mode, it properly converts lines to CR/LF. This bash problem
16287 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016288 sed '$q' "$ltmain" >> "$cfgfile" \
16289 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016290
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016291 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080016292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16293 chmod +x "$ofile"
16294
16295 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000016296
16297 esac
16298done # for ac_tag
16299
16300
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016301as_fn_exit 0
Jon Dugane34c20c2010-07-08 23:26:52 +000016302_ACEOF
16303ac_clean_files=$ac_clean_files_save
16304
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016305test $ac_write_fail = 0 ||
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016306 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016307
Jon Dugane34c20c2010-07-08 23:26:52 +000016308
16309# configure is writing to config.log, and then calls config.status.
16310# config.status does its own redirection, appending to config.log.
16311# Unfortunately, on DOS this fails, as config.log is still kept open
16312# by configure, so config.status won't be able to write to it; its
16313# output is simply discarded. So we exec the FD to /dev/null,
16314# effectively closing config.log, so it can be properly (re)opened and
16315# appended to by config.status. When coming back to configure, we
16316# need to make the FD available again.
16317if test "$no_create" != yes; then
16318 ac_cs_success=:
16319 ac_config_status_args=
16320 test "$silent" = yes &&
16321 ac_config_status_args="$ac_config_status_args --quiet"
16322 exec 5>/dev/null
16323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16324 exec 5>>config.log
16325 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16326 # would make configure fail if this is the last instruction.
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016327 $ac_cs_success || as_fn_exit 1
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016328fi
16329if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah6edfd8d2014-05-02 11:32:12 -070016330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080016331$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000016332fi
Jon Dugane34c20c2010-07-08 23:26:52 +000016333