blob: 4a1b2c033767b3a4f4fa5ab01518166ad27da4cd [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. Mah5d2f2cf2014-03-20 09:58:27 -07003# Generated by GNU Autoconf 2.63 for iperf 3.0.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. Mah5d2f2cf2014-03-20 09:58:27 -07007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000014
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Jon Dugane34c20c2010-07-08 23:26:52 +000018 emulate sh
19 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000027esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070028
Jon Dugane34c20c2010-07-08 23:26:52 +000029fi
30
31
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070032
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080042as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070049if (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. Mah5d2f2cf2014-03-20 09:58:27 -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
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070083# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
Jon Dugane34c20c2010-07-08 23:26:52 +000090
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070099case $0 in
Jon Dugane34c20c2010-07-08 23:26:52 +0000100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
Jon Dugane34c20c2010-07-08 23:26:52 +0000108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700119 { (exit 1); exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +0000120fi
121
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Jon Dugane34c20c2010-07-08 23:26:52 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +0000135
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700136# Required to use basename.
Jon Dugane34c20c2010-07-08 23:26:52 +0000137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
Jon Dugane34c20c2010-07-08 23:26:52 +0000150
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700151# Name of the executable.
Jon Dugane34c20c2010-07-08 23:26:52 +0000152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800156$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +0000157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700171# CDPATH.
172$as_unset CDPATH
Jon Dugane34c20c2010-07-08 23:26:52 +0000173
174
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
Jon Dugane34c20c2010-07-08 23:26:52 +0000460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +0000478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
Jon Dugane34c20c2010-07-08 23:26:52 +0000494ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700495case `echo -n x` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000496-n*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700497 case `echo 'x\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +0000498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700499 *) ECHO_C='\c';;
Jon Dugane34c20c2010-07-08 23:26:52 +0000500 esac;;
501*)
502 ECHO_N='-n';;
503esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800510
Jon Dugane34c20c2010-07-08 23:26:52 +0000511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800516 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +0000517fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700524 # In both cases, we have to default to `cp -p'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700526 as_ln_s='cp -p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700530 as_ln_s='cp -p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800531 fi
Jon Dugane34c20c2010-07-08 23:26:52 +0000532else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700533 as_ln_s='cp -p'
Jon Dugane34c20c2010-07-08 23:26:52 +0000534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700539 as_mkdir_p=:
Jon Dugane34c20c2010-07-08 23:26:52 +0000540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
Jon Dugane34c20c2010-07-08 23:26:52 +0000567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700574
575
576
577# Check that we are running under the correct shell.
Jon Dugane34c20c2010-07-08 23:26:52 +0000578SHELL=${CONFIG_SHELL-/bin/sh}
579
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
jef56a97f92012-08-20 14:35:58 -0700586
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725exec 7<&0 </dev/null 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +0000726
727# Name of the host.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
Jon Dugane34c20c2010-07-08 23:26:52 +0000729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
736ac_clean_files=
737ac_config_libobj_dir=.
738LIBOBJS=
739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700743SHELL=${CONFIG_SHELL-/bin/sh}
Jon Dugane34c20c2010-07-08 23:26:52 +0000744
745# Identity of this package.
746PACKAGE_NAME='iperf'
747PACKAGE_TARNAME='iperf'
Bruce A. Mah10383812014-02-27 22:40:01 -0800748PACKAGE_VERSION='3.0.1'
749PACKAGE_STRING='iperf 3.0.1'
750PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
Jon Dugane34c20c2010-07-08 23:26:52 +0000751
752# Factoring default headers for most tests.
753ac_includes_default="\
754#include <stdio.h>
755#ifdef HAVE_SYS_TYPES_H
756# include <sys/types.h>
757#endif
758#ifdef HAVE_SYS_STAT_H
759# include <sys/stat.h>
760#endif
761#ifdef STDC_HEADERS
762# include <stdlib.h>
763# include <stddef.h>
764#else
765# ifdef HAVE_STDLIB_H
766# include <stdlib.h>
767# endif
768#endif
769#ifdef HAVE_STRING_H
770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771# include <memory.h>
772# endif
773# include <string.h>
774#endif
775#ifdef HAVE_STRINGS_H
776# include <strings.h>
777#endif
778#ifdef HAVE_INTTYPES_H
779# include <inttypes.h>
780#endif
781#ifdef HAVE_STDINT_H
782# include <stdint.h>
783#endif
784#ifdef HAVE_UNISTD_H
785# include <unistd.h>
786#endif"
787
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800788ac_subst_vars='am__EXEEXT_FALSE
789am__EXEEXT_TRUE
790LTLIBOBJS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800791LIBOBJS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800792CPP
793OTOOL64
794OTOOL
795LIPO
796NMEDIT
797DSYMUTIL
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700798lt_ECHO
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800799AR
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800800OBJDUMP
801NM
802ac_ct_DUMPBIN
803DUMPBIN
804LD
805FGREP
806EGREP
807GREP
808SED
809LIBTOOL
810LN_S
811RANLIB
812am__fastdepCC_FALSE
813am__fastdepCC_TRUE
814CCDEPMODE
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800815AMDEPBACKSLASH
816AMDEP_FALSE
817AMDEP_TRUE
818am__quote
819am__include
820DEPDIR
821OBJEXT
822EXEEXT
823ac_ct_CC
824CPPFLAGS
825LDFLAGS
826CFLAGS
827CC
828host_os
829host_vendor
830host_cpu
831host
832build_os
833build_vendor
834build_cpu
835build
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800836am__untar
837am__tar
838AMTAR
839am__leading_dot
840SET_MAKE
841AWK
842mkdir_p
843MKDIR_P
844INSTALL_STRIP_PROGRAM
845STRIP
846install_sh
847MAKEINFO
848AUTOHEADER
849AUTOMAKE
850AUTOCONF
851ACLOCAL
852VERSION
853PACKAGE
854CYGPATH_W
855am__isrc
856INSTALL_DATA
857INSTALL_SCRIPT
858INSTALL_PROGRAM
859target_alias
860host_alias
861build_alias
862LIBS
863ECHO_T
864ECHO_N
865ECHO_C
866DEFS
867mandir
868localedir
869libdir
870psdir
871pdfdir
872dvidir
873htmldir
874infodir
875docdir
876oldincludedir
877includedir
878localstatedir
879sharedstatedir
880sysconfdir
881datadir
882datarootdir
883libexecdir
884sbindir
885bindir
886program_transform_name
887prefix
888exec_prefix
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800889PACKAGE_BUGREPORT
890PACKAGE_STRING
891PACKAGE_VERSION
892PACKAGE_TARNAME
893PACKAGE_NAME
894PATH_SEPARATOR
895SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +0000896ac_subst_files=''
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800897ac_user_opts='
898enable_option_checking
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800899enable_dependency_tracking
900enable_shared
901enable_static
902with_pic
903enable_fast_install
904with_gnu_ld
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800905enable_libtool_lock
906'
Jon Dugane34c20c2010-07-08 23:26:52 +0000907 ac_precious_vars='build_alias
908host_alias
909target_alias
910CC
911CFLAGS
912LDFLAGS
913LIBS
914CPPFLAGS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -0800915CPP'
Jon Dugane34c20c2010-07-08 23:26:52 +0000916
917
918# Initialize some variables set by options.
919ac_init_help=
920ac_init_version=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -0800921ac_unrecognized_opts=
922ac_unrecognized_sep=
Jon Dugane34c20c2010-07-08 23:26:52 +0000923# The variables have the same names as the options, with
924# dashes changed to underlines.
925cache_file=/dev/null
926exec_prefix=NONE
927no_create=
928no_recursion=
929prefix=NONE
930program_prefix=NONE
931program_suffix=NONE
932program_transform_name=s,x,x,
933silent=
934site=
935srcdir=
936verbose=
937x_includes=NONE
938x_libraries=NONE
939
940# Installation directory options.
941# These are left unexpanded so users can "make install exec_prefix=/foo"
942# and all the variables that are supposed to be based on exec_prefix
943# by default will actually change.
944# Use braces instead of parens because sh, perl, etc. also accept them.
945# (The list follows the same order as the GNU Coding Standards.)
946bindir='${exec_prefix}/bin'
947sbindir='${exec_prefix}/sbin'
948libexecdir='${exec_prefix}/libexec'
949datarootdir='${prefix}/share'
950datadir='${datarootdir}'
951sysconfdir='${prefix}/etc'
952sharedstatedir='${prefix}/com'
953localstatedir='${prefix}/var'
954includedir='${prefix}/include'
955oldincludedir='/usr/include'
956docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957infodir='${datarootdir}/info'
958htmldir='${docdir}'
959dvidir='${docdir}'
960pdfdir='${docdir}'
961psdir='${docdir}'
962libdir='${exec_prefix}/lib'
963localedir='${datarootdir}/locale'
964mandir='${datarootdir}/man'
965
966ac_prev=
967ac_dashdash=
968for ac_option
969do
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
975 fi
976
977 case $ac_option in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -0700978 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *) ac_optarg=yes ;;
Jon Dugane34c20c2010-07-08 23:26:52 +0000980 esac
981
982 # Accept the important Cygnus configure options, so we can diagnose typos.
983
984 case $ac_dashdash$ac_option in
985 --)
986 ac_dashdash=yes ;;
987
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
989 ac_prev=bindir ;;
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991 bindir=$ac_optarg ;;
992
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
997
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1004
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1007
1008 -datadir | --datadir | --datadi | --datad)
1009 ac_prev=datadir ;;
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1012
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1019
1020 -disable-* | --disable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001022 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001024 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1025 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030"enable_$ac_useropt"
1031"*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001036
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1041
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1046
1047 -enable-* | --enable-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001049 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001051 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1052 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"enable_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001063
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
1071 exec_prefix=$ac_optarg ;;
1072
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1076
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
1083
1084 -host | --host | --hos | --ho)
1085 ac_prev=host_alias ;;
1086 -host=* | --host=* | --hos=* | --ho=*)
1087 host_alias=$ac_optarg ;;
1088
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1094
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
1100 includedir=$ac_optarg ;;
1101
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105 infodir=$ac_optarg ;;
1106
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110 libdir=$ac_optarg ;;
1111
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
1117 libexecdir=$ac_optarg ;;
1118
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1123
1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
1125 | --localstate | --localstat | --localsta | --localst | --locals)
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129 localstatedir=$ac_optarg ;;
1130
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134 mandir=$ac_optarg ;;
1135
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1139
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141 | --no-cr | --no-c | -n)
1142 no_create=yes ;;
1143
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1147
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155 oldincludedir=$ac_optarg ;;
1156
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160 prefix=$ac_optarg ;;
1161
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167 program_prefix=$ac_optarg ;;
1168
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174 program_suffix=$ac_optarg ;;
1175
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
1191 program_transform_name=$ac_optarg ;;
1192
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1197
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1202
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1206
1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 ac_prev=sbindir ;;
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 | --sbi=* | --sb=*)
1211 sbindir=$ac_optarg ;;
1212
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1216 | --sha | --sh)
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 | --sha=* | --sh=*)
1222 sharedstatedir=$ac_optarg ;;
1223
1224 -site | --site | --sit)
1225 ac_prev=site ;;
1226 -site=* | --site=* | --sit=*)
1227 site=$ac_optarg ;;
1228
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 ac_prev=srcdir ;;
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232 srcdir=$ac_optarg ;;
1233
1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239 sysconfdir=$ac_optarg ;;
1240
1241 -target | --target | --targe | --targ | --tar | --ta | --t)
1242 ac_prev=target_alias ;;
1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244 target_alias=$ac_optarg ;;
1245
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 verbose=yes ;;
1248
1249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
1251
1252 -with-* | --with-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001254 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001256 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1257 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262"with_$ac_useropt"
1263"*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001268
1269 -without-* | --without-*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001271 # Reject names that are not valid shell variable names.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001273 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1274 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279"with_$ac_useropt"
1280"*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1303
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001304 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1305Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Jon Dugane34c20c2010-07-08 23:26:52 +00001324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001331 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001333fi
1334
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001335if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1337 no) ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001338 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1339 { (exit 1); exit 1; }; } ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 esac
1342fi
1343
1344# Check all directory arguments for consistency.
Jon Dugane34c20c2010-07-08 23:26:52 +00001345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1349do
1350 eval ac_val=\$$ac_var
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001351 # Remove trailing slashes.
1352 case $ac_val in
1353 */ )
1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355 eval $ac_var=\$ac_val;;
1356 esac
1357 # Be sure to have absolute directory names.
Jon Dugane34c20c2010-07-08 23:26:52 +00001358 case $ac_val in
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001362 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1363 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001364done
1365
1366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
1368# FIXME: To remove some day.
1369build=$build_alias
1370host=$host_alias
1371target=$target_alias
1372
1373# FIXME: To remove some day.
1374if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001377 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378 If a cross compiler is detected then cross compile mode will be used." >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1381 fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
1388
1389
1390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001393 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1394 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001395test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001396 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1397 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001398
1399
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
1403 # Try the directory containing this script, then the parent directory.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
Jon Dugane34c20c2010-07-08 23:26:52 +00001410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
1427 srcdir=$ac_confdir
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 srcdir=..
1430 fi
1431else
1432 ac_srcdir_defaulted=no
1433fi
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001436 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1437 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001438fi
1439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440ac_abs_confdir=`(
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001441 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1442 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001443 pwd)`
1444# When building in place, set srcdir=.
1445if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1447fi
1448# Remove unnecessary trailing slashes from srcdir.
1449# Double slashes in file names in object file debugging info
1450# mess up M-x gdb in Emacs.
1451case $srcdir in
1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453esac
1454for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459done
1460
1461#
1462# Report the --help message.
1463#
1464if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
Bruce A. Mah10383812014-02-27 22:40:01 -08001468\`configure' configures iperf 3.0.1 to adapt to many kinds of systems.
Jon Dugane34c20c2010-07-08 23:26:52 +00001469
1470Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473VAR=VALUE. See below for descriptions of some of the useful variables.
1474
1475Defaults for the options are specified in brackets.
1476
1477Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001482 -q, --quiet, --silent do not print \`checking...' messages
Jon Dugane34c20c2010-07-08 23:26:52 +00001483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487
1488Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001490 [$ac_default_prefix]
Jon Dugane34c20c2010-07-08 23:26:52 +00001491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001492 [PREFIX]
Jon Dugane34c20c2010-07-08 23:26:52 +00001493
1494By default, \`make install' will install all the files in
1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497for instance \`--prefix=\$HOME'.
1498
1499For better control, use the options below.
1500
1501Fine tuning of the installation directories:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
Jon Dugane34c20c2010-07-08 23:26:52 +00001521_ACEOF
1522
1523 cat <<\_ACEOF
1524
1525Program names:
1526 --program-prefix=PREFIX prepend PREFIX to installed program names
1527 --program-suffix=SUFFIX append SUFFIX to installed program names
1528 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1529
1530System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533_ACEOF
1534fi
1535
1536if test -n "$ac_init_help"; then
1537 case $ac_init_help in
Bruce A. Mah10383812014-02-27 22:40:01 -08001538 short | recursive ) echo "Configuration of iperf 3.0.1:";;
Jon Dugane34c20c2010-07-08 23:26:52 +00001539 esac
1540 cat <<\_ACEOF
1541
1542Optional Features:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001543 --disable-option-checking ignore unrecognized --enable/--with options
Jon Dugane34c20c2010-07-08 23:26:52 +00001544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001546 --disable-dependency-tracking speeds up one-time build
1547 --enable-dependency-tracking do not reject slow dependency extractors
Jon Dugane34c20c2010-07-08 23:26:52 +00001548 --enable-shared[=PKGS] build shared libraries [default=yes]
1549 --enable-static[=PKGS] build static libraries [default=yes]
1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation [default=yes]
1552 --disable-libtool-lock avoid locking (might break parallel builds)
1553
1554Optional Packages:
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001557 --with-pic try to use only PIC/non-PIC objects [default=use
Jon Dugane34c20c2010-07-08 23:26:52 +00001558 both]
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08001559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Jon Dugane34c20c2010-07-08 23:26:52 +00001560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Jon Dugane34c20c2010-07-08 23:26:52 +00001568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570
1571Use these variables to override the choices made by `configure' or to help
1572it to find libraries and programs with nonstandard names/locations.
1573
Bruce A. Mah10383812014-02-27 22:40:01 -08001574Report bugs to <https://github.com/esnet/iperf>.
Jon Dugane34c20c2010-07-08 23:26:52 +00001575_ACEOF
1576ac_status=$?
1577fi
1578
1579if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001582 test -d "$ac_dir" ||
1583 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584 continue
Jon Dugane34c20c2010-07-08 23:26:52 +00001585 ac_builddir=.
1586
1587case "$ac_dir" in
1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001591 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +00001593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597esac
1598ac_abs_top_builddir=$ac_pwd
1599ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600# for backward compatibility:
1601ac_top_builddir=$ac_top_build_prefix
1602
1603case $srcdir in
1604 .) # We are building in place.
1605 ac_srcdir=.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616esac
1617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1627 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001628 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Jon Dugane34c20c2010-07-08 23:26:52 +00001629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1631 done
1632fi
1633
1634test -n "$ac_init_help" && exit $ac_status
1635if $ac_init_version; then
1636 cat <<\_ACEOF
Bruce A. Mah10383812014-02-27 22:40:01 -08001637iperf configure 3.0.1
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001638generated by GNU Autoconf 2.63
Jon Dugane34c20c2010-07-08 23:26:52 +00001639
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001640Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16412002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +00001642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
1645 exit
1646fi
Jon Dugane34c20c2010-07-08 23:26:52 +00001647cat >config.log <<_ACEOF
1648This file contains any messages produced by compilers while
1649running configure, to aid debugging if configure makes a mistake.
1650
Bruce A. Mah10383812014-02-27 22:40:01 -08001651It was created by iperf $as_me 3.0.1, which was
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001652generated by GNU Autoconf 2.63. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +00001653
1654 $ $0 $@
1655
1656_ACEOF
1657exec 5>>config.log
1658{
1659cat <<_ASUNAME
1660## --------- ##
1661## Platform. ##
1662## --------- ##
1663
1664hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669
1670/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672
1673/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680
1681_ASUNAME
1682
1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001688 $as_echo "PATH: $as_dir"
1689done
Jon Dugane34c20c2010-07-08 23:26:52 +00001690IFS=$as_save_IFS
1691
1692} >&5
1693
1694cat >&5 <<_ACEOF
1695
1696
1697## ----------- ##
1698## Core tests. ##
1699## ----------- ##
1700
1701_ACEOF
1702
1703
1704# Keep a trace of the command line.
1705# Strip out --no-create and --no-recursion so they do not pile up.
1706# Strip out --silent because we don't want to record it for future runs.
1707# Also quote any args containing shell meta-characters.
1708# Make two passes to allow for proper duplicate-argument suppression.
1709ac_configure_args=
1710ac_configure_args0=
1711ac_configure_args1=
1712ac_must_keep_next=false
1713for ac_pass in 1 2
1714do
1715 for ac_arg
1716 do
1717 case $ac_arg in
1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720 | -silent | --silent | --silen | --sile | --sil)
1721 continue ;;
1722 *\'*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001723 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001724 esac
1725 case $ac_pass in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001726 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001727 2)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001728 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001729 if test $ac_must_keep_next = true; then
1730 ac_must_keep_next=false # Got value, back to normal.
1731 else
1732 case $ac_arg in
1733 *=* | --config-cache | -C | -disable-* | --disable-* \
1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736 | -with-* | --with-* | -without-* | --without-* | --x)
1737 case "$ac_configure_args0 " in
1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 esac
1740 ;;
1741 -* ) ac_must_keep_next=true ;;
1742 esac
1743 fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001744 ac_configure_args="$ac_configure_args '$ac_arg'"
Jon Dugane34c20c2010-07-08 23:26:52 +00001745 ;;
1746 esac
1747 done
1748done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001749$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1750$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001751
1752# When interrupted or exit'd, cleanup temporary files, and complete
1753# config.log. We remove comments because anyway the quotes in there
1754# would cause problems or look ugly.
1755# WARNING: Use '\'' to represent an apostrophe within the trap.
1756# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757trap 'exit_status=$?
1758 # Save into config.log some information that might help in debugging.
1759 {
1760 echo
1761
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001762 cat <<\_ASBOX
1763## ---------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001764## Cache variables. ##
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001765## ---------------- ##
1766_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001767 echo
1768 # The following way of writing the cache mishandles newlines in values,
1769(
1770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1771 eval ac_val=\$$ac_var
1772 case $ac_val in #(
1773 *${as_nl}*)
1774 case $ac_var in #(
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001775 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001776$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001777 esac
1778 case $ac_var in #(
1779 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001781 *) $as_unset $ac_var ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001782 esac ;;
1783 esac
1784 done
1785 (set) 2>&1 |
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1788 sed -n \
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 ;; #(
1792 *)
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ;;
1795 esac |
1796 sort
1797)
1798 echo
1799
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001800 cat <<\_ASBOX
1801## ----------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001802## Output variables. ##
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001803## ----------------- ##
1804_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001805 echo
1806 for ac_var in $ac_subst_vars
1807 do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001811 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001812 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001813 done | sort
1814 echo
1815
1816 if test -n "$ac_subst_files"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001817 cat <<\_ASBOX
1818## ------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001819## File substitutions. ##
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001820## ------------------- ##
1821_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001822 echo
1823 for ac_var in $ac_subst_files
1824 do
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001828 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001829 $as_echo "$ac_var='\''$ac_val'\''"
Jon Dugane34c20c2010-07-08 23:26:52 +00001830 done | sort
1831 echo
1832 fi
1833
1834 if test -s confdefs.h; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001835 cat <<\_ASBOX
1836## ----------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +00001837## confdefs.h. ##
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001838## ----------- ##
1839_ASBOX
Jon Dugane34c20c2010-07-08 23:26:52 +00001840 echo
1841 cat confdefs.h
1842 echo
1843 fi
1844 test "$ac_signal" != 0 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001845 $as_echo "$as_me: caught signal $ac_signal"
1846 $as_echo "$as_me: exit $exit_status"
Jon Dugane34c20c2010-07-08 23:26:52 +00001847 } >&5
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 exit $exit_status
1851' 0
1852for ac_signal in 1 2 13 15; do
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
Jon Dugane34c20c2010-07-08 23:26:52 +00001854done
1855ac_signal=0
1856
1857# confdefs.h avoids OS command line length limits that DEFS can exceed.
1858rm -f -r conftest* confdefs.h
1859
Jon Dugane34c20c2010-07-08 23:26:52 +00001860# Predefined preprocessor variables.
1861
1862cat >>confdefs.h <<_ACEOF
1863#define PACKAGE_NAME "$PACKAGE_NAME"
1864_ACEOF
1865
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001866
Jon Dugane34c20c2010-07-08 23:26:52 +00001867cat >>confdefs.h <<_ACEOF
1868#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869_ACEOF
1870
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001871
Jon Dugane34c20c2010-07-08 23:26:52 +00001872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_VERSION "$PACKAGE_VERSION"
1874_ACEOF
1875
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001876
Jon Dugane34c20c2010-07-08 23:26:52 +00001877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_STRING "$PACKAGE_STRING"
1879_ACEOF
1880
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001881
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08001882cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001883#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08001884_ACEOF
1885
Jon Dugane34c20c2010-07-08 23:26:52 +00001886
1887# Let the site file select an alternate cache file if it wants to.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001888# Prefer an explicitly selected file to automatically selected ones.
1889ac_site_file1=NONE
1890ac_site_file2=NONE
Jon Dugane34c20c2010-07-08 23:26:52 +00001891if test -n "$CONFIG_SITE"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001892 ac_site_file1=$CONFIG_SITE
Jon Dugane34c20c2010-07-08 23:26:52 +00001893elif test "x$prefix" != xNONE; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001894 ac_site_file1=$prefix/share/config.site
1895 ac_site_file2=$prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00001896else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001897 ac_site_file1=$ac_default_prefix/share/config.site
1898 ac_site_file2=$ac_default_prefix/etc/config.site
Jon Dugane34c20c2010-07-08 23:26:52 +00001899fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001900for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Jon Dugane34c20c2010-07-08 23:26:52 +00001901do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001902 test "x$ac_site_file" = xNONE && continue
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001903 if test -r "$ac_site_file"; then
1904 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001905$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001906 sed 's/^/| /' "$ac_site_file" >&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001907 . "$ac_site_file"
Jon Dugane34c20c2010-07-08 23:26:52 +00001908 fi
1909done
1910
1911if test -r "$cache_file"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001912 # Some versions of bash will fail to source /dev/null (special
1913 # files actually), so we avoid doing that.
1914 if test -f "$cache_file"; then
1915 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001916$as_echo "$as_me: loading cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001917 case $cache_file in
1918 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1919 *) . "./$cache_file";;
1920 esac
1921 fi
1922else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001923 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001924$as_echo "$as_me: creating cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001925 >$cache_file
1926fi
1927
1928# Check that the precious variables saved in the cache have kept the same
1929# value.
1930ac_cache_corrupted=false
1931for ac_var in $ac_precious_vars; do
1932 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1933 eval ac_new_set=\$ac_env_${ac_var}_set
1934 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1935 eval ac_new_val=\$ac_env_${ac_var}_value
1936 case $ac_old_set,$ac_new_set in
1937 set,)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001939$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 +00001940 ac_cache_corrupted=: ;;
1941 ,set)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001943$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001944 ac_cache_corrupted=: ;;
1945 ,);;
1946 *)
1947 if test "x$ac_old_val" != "x$ac_new_val"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001948 # differences in whitespace do not lead to failure.
1949 ac_old_val_w=`echo x $ac_old_val`
1950 ac_new_val_w=`echo x $ac_new_val`
1951 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001952 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001953$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1954 ac_cache_corrupted=:
1955 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001956 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001957$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1958 eval $ac_var=\$ac_old_val
1959 fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001960 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001961$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001962 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001963$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00001964 fi;;
1965 esac
1966 # Pass precious variables to config.status.
1967 if test "$ac_new_set" = set; then
1968 case $ac_new_val in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001969 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001970 *) ac_arg=$ac_var=$ac_new_val ;;
1971 esac
1972 case " $ac_configure_args " in
1973 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001974 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00001975 esac
1976 fi
1977done
1978if $ac_cache_corrupted; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001979 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001981 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08001982$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001983 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1984$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1985 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00001986fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07001987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
Jon Dugane34c20c2010-07-08 23:26:52 +00002011
2012ac_ext=c
2013ac_cpp='$CPP $CPPFLAGS'
2014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017
2018
2019
2020# Specify where the auxiliary files created by configure should go. The config
2021# directory is picked so that they don't clutter up more useful directories.
2022ac_aux_dir=
2023for ac_dir in config "$srcdir"/config; do
jef2ab386b2012-08-10 12:43:50 -07002024 if test -f "$ac_dir/install-sh"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 break
2028 elif test -f "$ac_dir/install.sh"; then
2029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 break
2032 elif test -f "$ac_dir/shtool"; then
2033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/shtool install -c"
2035 break
2036 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002037done
2038if test -z "$ac_aux_dir"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002039 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2040$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2041 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002042fi
2043
2044# These three variables are undocumented and unsupported,
2045# and are intended to be withdrawn in a future Autoconf release.
2046# They can cause serious problems if a builder's source tree is in a directory
2047# whose full name contains unusual characters.
2048ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2049ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2050ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2051
2052
2053
2054
2055# Initialize the automake system
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002056am__api_version='1.11'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002057
Jon Dugane34c20c2010-07-08 23:26:52 +00002058# Find a good install program. We prefer a C program (faster),
2059# so one script is as good as another. But avoid the broken or
2060# incompatible versions:
2061# SysV /etc/install, /usr/sbin/install
2062# SunOS /usr/etc/install
2063# IRIX /sbin/install
2064# AIX /bin/install
2065# AmigaOS /C/install, which installs bootblocks on floppy discs
2066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2067# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2069# OS/2's system install, which has a completely different semantic
2070# ./install, which can be erroneously created by make from ./install.sh.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002071# Reject install programs that cannot install multiple files.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002072{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002073$as_echo_n "checking for a BSD-compatible install... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002074if test -z "$INSTALL"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002075if test "${ac_cv_path_install+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002076 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002077else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002083 # Account for people who put trailing slashes in PATH elements.
2084case $as_dir/ in
2085 ./ | .// | /cC/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002087 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Jon Dugane34c20c2010-07-08 23:26:52 +00002088 /usr/ucb/* ) ;;
2089 *)
2090 # OSF1 and SCO ODT 3.0 have their own names for install.
2091 # Don't use installbsd from OSF since it installs stuff as root
2092 # by default.
2093 for ac_prog in ginstall scoinst install; do
2094 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002095 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002096 if test $ac_prog = install &&
2097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2098 # AIX install. It has an incompatible calling convention.
2099 :
2100 elif test $ac_prog = install &&
2101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2102 # program-specific install script used by HP pwplus--don't use.
2103 :
2104 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002105 rm -rf conftest.one conftest.two conftest.dir
2106 echo one > conftest.one
2107 echo two > conftest.two
2108 mkdir conftest.dir
2109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2110 test -s conftest.one && test -s conftest.two &&
2111 test -s conftest.dir/conftest.one &&
2112 test -s conftest.dir/conftest.two
2113 then
2114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2115 break 3
2116 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002117 fi
2118 fi
2119 done
2120 done
2121 ;;
2122esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002123
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002124done
Jon Dugane34c20c2010-07-08 23:26:52 +00002125IFS=$as_save_IFS
2126
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002127rm -rf conftest.one conftest.two conftest.dir
Jon Dugane34c20c2010-07-08 23:26:52 +00002128
2129fi
2130 if test "${ac_cv_path_install+set}" = set; then
2131 INSTALL=$ac_cv_path_install
2132 else
2133 # As a last resort, use the slow shell script. Don't cache a
2134 # value for INSTALL within a source directory, because that will
2135 # break other packages using the cache if that directory is
2136 # removed, or if the value is a relative name.
2137 INSTALL=$ac_install_sh
2138 fi
2139fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002140{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002141$as_echo "$INSTALL" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002142
2143# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2144# It thinks the first close brace ends the variable substitution.
2145test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2146
2147test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2148
2149test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2150
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002151{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002152$as_echo_n "checking whether build environment is sane... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002153# Just in case
2154sleep 1
2155echo timestamp > conftest.file
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002156# Reject unsafe characters in $srcdir or the absolute working directory
2157# name. Accept space and tab only in the latter.
2158am_lf='
2159'
2160case `pwd` in
2161 *[\\\"\#\$\&\'\`$am_lf]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002162 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2163$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2164 { (exit 1); exit 1; }; };;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002165esac
2166case $srcdir in
2167 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002168 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2169$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2170 { (exit 1); exit 1; }; };;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002171esac
2172
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002173# Do `set' in a subshell so we don't clobber the current shell's
Jon Dugane34c20c2010-07-08 23:26:52 +00002174# arguments. Must try -L first in case configure is actually a
2175# symlink; some systems play weird games with the mod time of symlinks
2176# (eg FreeBSD returns the mod time of the symlink's containing
2177# directory).
2178if (
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002179 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2180 if test "$*" = "X"; then
2181 # -L didn't work.
2182 set X `ls -t "$srcdir/configure" conftest.file`
2183 fi
2184 rm -f conftest.file
2185 if test "$*" != "X $srcdir/configure conftest.file" \
2186 && test "$*" != "X conftest.file $srcdir/configure"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002187
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002188 # If neither matched, then we have a broken ls. This can happen
2189 # if, for instance, CONFIG_SHELL is bash and it inherits a
2190 # broken ls alias from the environment. This has actually
2191 # happened. Such a system could not be considered "sane".
2192 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2193alias in your environment" >&5
2194$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2195alias in your environment" >&2;}
2196 { (exit 1); exit 1; }; }
2197 fi
2198
Jon Dugane34c20c2010-07-08 23:26:52 +00002199 test "$2" = conftest.file
2200 )
2201then
2202 # Ok.
2203 :
2204else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002205 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2206Check your system clock" >&5
2207$as_echo "$as_me: error: newly created file is older than distributed files!
2208Check your system clock" >&2;}
2209 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002210fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002211{ $as_echo "$as_me:$LINENO: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002212$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002213test "$program_prefix" != NONE &&
2214 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2215# Use a double $ so make ignores it.
2216test "$program_suffix" != NONE &&
2217 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002218# Double any \ or $.
Jon Dugane34c20c2010-07-08 23:26:52 +00002219# By default was `s,x,x', remove it if useless.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002220ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2221program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +00002222
2223# expand $ac_aux_dir to an absolute path
2224am_aux_dir=`cd $ac_aux_dir && pwd`
2225
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002226if test x"${MISSING+set}" != xset; then
2227 case $am_aux_dir in
2228 *\ * | *\ *)
2229 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2230 *)
2231 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2232 esac
2233fi
Jon Dugane34c20c2010-07-08 23:26:52 +00002234# Use eval to expand $SHELL
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002235if eval "$MISSING --run true"; then
2236 am_missing_run="$MISSING --run "
Jon Dugane34c20c2010-07-08 23:26:52 +00002237else
2238 am_missing_run=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002239 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2240$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002241fi
2242
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002243if test x"${install_sh}" != xset; then
2244 case $am_aux_dir in
2245 *\ * | *\ *)
2246 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2247 *)
2248 install_sh="\${SHELL} $am_aux_dir/install-sh"
2249 esac
2250fi
2251
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002252# Installed binaries are usually stripped using `strip' when the user
2253# run `make install-strip'. However `strip' might not be the right
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002254# tool to use in cross-compilation environments, therefore Automake
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002255# will honor the `STRIP' environment variable to overrule this program.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002256if test "$cross_compiling" != no; then
2257 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2259set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002261$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002262if test "${ac_cv_prog_STRIP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002263 $as_echo_n "(cached) " >&6
2264else
2265 if test -n "$STRIP"; then
2266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2267else
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002277 break 2
2278 fi
2279done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002280done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002281IFS=$as_save_IFS
2282
2283fi
2284fi
2285STRIP=$ac_cv_prog_STRIP
2286if test -n "$STRIP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002287 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002288$as_echo "$STRIP" >&6; }
2289else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002290 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002291$as_echo "no" >&6; }
2292fi
2293
2294
2295fi
2296if test -z "$ac_cv_prog_STRIP"; then
2297 ac_ct_STRIP=$STRIP
2298 # Extract the first word of "strip", so it can be a program name with args.
2299set dummy strip; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002301$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002302if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002303 $as_echo_n "(cached) " >&6
2304else
2305 if test -n "$ac_ct_STRIP"; then
2306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2307else
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002315 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002317 break 2
2318 fi
2319done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002320done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002321IFS=$as_save_IFS
2322
2323fi
2324fi
2325ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2326if test -n "$ac_ct_STRIP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002327 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002328$as_echo "$ac_ct_STRIP" >&6; }
2329else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002330 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002331$as_echo "no" >&6; }
2332fi
2333
2334 if test "x$ac_ct_STRIP" = x; then
2335 STRIP=":"
2336 else
2337 case $cross_compiling:$ac_tool_warned in
2338yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2341ac_tool_warned=yes ;;
2342esac
2343 STRIP=$ac_ct_STRIP
2344 fi
2345else
2346 STRIP="$ac_cv_prog_STRIP"
2347fi
2348
2349fi
2350INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2351
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002352{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002353$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002354if test -z "$MKDIR_P"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002355 if test "${ac_cv_path_mkdir+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002356 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002357else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002363 for ac_prog in mkdir gmkdir; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002364 for ac_exec_ext in '' $ac_executable_extensions; do
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002365 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002366 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2367 'mkdir (GNU coreutils) '* | \
2368 'mkdir (coreutils) '* | \
2369 'mkdir (fileutils) '4.1*)
2370 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2371 break 3;;
2372 esac
2373 done
2374 done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002375done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002376IFS=$as_save_IFS
2377
2378fi
2379
2380 if test "${ac_cv_path_mkdir+set}" = set; then
2381 MKDIR_P="$ac_cv_path_mkdir -p"
jef56a97f92012-08-20 14:35:58 -07002382 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002383 # As a last resort, use the slow shell script. Don't cache a
2384 # value for MKDIR_P within a source directory, because that will
2385 # break other packages using the cache if that directory is
2386 # removed, or if the value is a relative name.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002387 test -d ./--version && rmdir ./--version
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002388 MKDIR_P="$ac_install_sh -d"
jef56a97f92012-08-20 14:35:58 -07002389 fi
Jon Dugan92864152010-09-20 21:50:12 +00002390fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002391{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002392$as_echo "$MKDIR_P" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +00002393
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002394mkdir_p="$MKDIR_P"
2395case $mkdir_p in
2396 [\\/$]* | ?:[\\/]*) ;;
2397 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2398esac
2399
jef56a97f92012-08-20 14:35:58 -07002400for ac_prog in gawk mawk nawk awk
2401do
2402 # Extract the first word of "$ac_prog", so it can be a program name with args.
2403set dummy $ac_prog; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002405$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002406if test "${ac_cv_prog_AWK+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002407 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002408else
2409 if test -n "$AWK"; then
2410 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
jef56a97f92012-08-20 14:35:58 -07002419 ac_cv_prog_AWK="$ac_prog"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07002421 break 2
2422 fi
2423done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002424done
jef56a97f92012-08-20 14:35:58 -07002425IFS=$as_save_IFS
2426
2427fi
2428fi
2429AWK=$ac_cv_prog_AWK
2430if test -n "$AWK"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002431 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002432$as_echo "$AWK" >&6; }
jef56a97f92012-08-20 14:35:58 -07002433else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002434 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002435$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002436fi
2437
2438
2439 test -n "$AWK" && break
2440done
2441
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002442{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002443$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2444set x ${MAKE-make}
2445ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002446if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002447 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07002448else
2449 cat >conftest.make <<\_ACEOF
2450SHELL = /bin/sh
2451all:
2452 @echo '@@@%%%=$(MAKE)=@@@%%%'
2453_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002454# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jef56a97f92012-08-20 14:35:58 -07002455case `${MAKE-make} -f conftest.make 2>/dev/null` in
2456 *@@@%%%=?*=@@@%%%*)
2457 eval ac_cv_prog_make_${ac_make}_set=yes;;
2458 *)
2459 eval ac_cv_prog_make_${ac_make}_set=no;;
2460esac
2461rm -f conftest.make
2462fi
2463if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002464 { $as_echo "$as_me:$LINENO: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002465$as_echo "yes" >&6; }
jef56a97f92012-08-20 14:35:58 -07002466 SET_MAKE=
2467else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002468 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002469$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07002470 SET_MAKE="MAKE=${MAKE-make}"
2471fi
2472
2473rm -rf .tst 2>/dev/null
2474mkdir .tst 2>/dev/null
2475if test -d .tst; then
2476 am__leading_dot=.
2477else
2478 am__leading_dot=_
2479fi
2480rmdir .tst 2>/dev/null
2481
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002482if test "`cd $srcdir && pwd`" != "`pwd`"; then
2483 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2484 # is not polluted with repeated "-I."
2485 am__isrc=' -I$(srcdir)'
2486 # test to see if srcdir already configured
2487 if test -f $srcdir/config.status; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002488 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2489$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2490 { (exit 1); exit 1; }; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08002491 fi
jef56a97f92012-08-20 14:35:58 -07002492fi
2493
2494# test whether we have cygpath
2495if test -z "$CYGPATH_W"; then
2496 if (cygpath --version) >/dev/null 2>/dev/null; then
2497 CYGPATH_W='cygpath -w'
2498 else
2499 CYGPATH_W=echo
2500 fi
2501fi
2502
2503
2504# Define the identity of the package.
2505 PACKAGE='iperf'
Bruce A. Mah10383812014-02-27 22:40:01 -08002506 VERSION='3.0.1'
jef56a97f92012-08-20 14:35:58 -07002507
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE "$PACKAGE"
2511_ACEOF
2512
2513
2514cat >>confdefs.h <<_ACEOF
2515#define VERSION "$VERSION"
2516_ACEOF
2517
2518# Some tools Automake needs.
2519
2520ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2521
2522
2523AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2524
2525
2526AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2527
2528
2529AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2530
2531
2532MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2533
Jon Dugane34c20c2010-07-08 23:26:52 +00002534# We need awk for the "check" target. The system "awk" is bad on
2535# some platforms.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002536# Always define AMTAR for backward compatibility.
sethdelliott01ca9722010-07-19 20:38:40 +00002537
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002538AMTAR=${AMTAR-"${am_missing_run}tar"}
sethdelliott01ca9722010-07-19 20:38:40 +00002539
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002540am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
sethdelliott01ca9722010-07-19 20:38:40 +00002541
2542
Jon Dugane34c20c2010-07-08 23:26:52 +00002543
2544
2545
2546
Bruce A. Maha57bcc22014-04-14 13:37:47 -07002547ac_config_headers="$ac_config_headers src/iperf_config.h"
Jon Dugane34c20c2010-07-08 23:26:52 +00002548
2549
2550# Make sure we can run config.sub.
2551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002552 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2553$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2554 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002555
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002556{ $as_echo "$as_me:$LINENO: checking build system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002557$as_echo_n "checking build system type... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002558if test "${ac_cv_build+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002559 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002560else
2561 ac_build_alias=$build_alias
2562test "x$ac_build_alias" = x &&
2563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2564test "x$ac_build_alias" = x &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002565 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2566$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2567 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002569 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2570$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2571 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002572
2573fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002574{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002575$as_echo "$ac_cv_build" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002576case $ac_cv_build in
2577*-*-*) ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002578*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2579$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2580 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +00002581esac
2582build=$ac_cv_build
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_build
2585shift
2586build_cpu=$1
2587build_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591build_os=$*
2592IFS=$ac_save_IFS
2593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002596{ $as_echo "$as_me:$LINENO: checking host system type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002597$as_echo_n "checking host system type... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002598if test "${ac_cv_host+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002599 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002600else
2601 if test "x$host_alias" = x; then
2602 ac_cv_host=$ac_cv_build
2603else
2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002605 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2606$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2607 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002608fi
2609
2610fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002611{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002612$as_echo "$ac_cv_host" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002613case $ac_cv_host in
2614*-*-*) ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002615*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2616$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2617 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +00002618esac
2619host=$ac_cv_host
2620ac_save_IFS=$IFS; IFS='-'
2621set x $ac_cv_host
2622shift
2623host_cpu=$1
2624host_vendor=$2
2625shift; shift
2626# Remember, the first character of IFS is used to create $*,
2627# except with old shells:
2628host_os=$*
2629IFS=$ac_save_IFS
2630case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631
2632
2633
2634# Checks for tools: c compiler, ranlib (used for creating static libraries),
2635# symlinks and libtool
2636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643set dummy ${ac_tool_prefix}gcc; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002645$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002646if test "${ac_cv_prog_CC+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002647 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002648else
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002661 break 2
2662 fi
2663done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002664done
Jon Dugane34c20c2010-07-08 23:26:52 +00002665IFS=$as_save_IFS
2666
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002671 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002672$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002673else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002674 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002675$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002676fi
2677
2678
2679fi
2680if test -z "$ac_cv_prog_CC"; then
2681 ac_ct_CC=$CC
2682 # Extract the first word of "gcc", so it can be a program name with args.
2683set dummy gcc; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002684{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002685$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002687 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002688else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002699 ac_cv_prog_ac_ct_CC="gcc"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002701 break 2
2702 fi
2703done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002704done
Jon Dugane34c20c2010-07-08 23:26:52 +00002705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002712$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002713else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002714 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002715$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002716fi
2717
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002723{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
2729else
2730 CC="$ac_cv_prog_CC"
2731fi
2732
2733if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}cc; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002738$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002739if test "${ac_cv_prog_CC+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002740 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002741else
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002752 ac_cv_prog_CC="${ac_tool_prefix}cc"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002754 break 2
2755 fi
2756done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002757done
Jon Dugane34c20c2010-07-08 23:26:52 +00002758IFS=$as_save_IFS
2759
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002765$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002766else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002767 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002768$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002769fi
2770
2771
2772 fi
2773fi
2774if test -z "$CC"; then
2775 # Extract the first word of "cc", so it can be a program name with args.
2776set dummy cc; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002777{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002778$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002779if test "${ac_cv_prog_CC+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002780 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002781else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785 ac_prog_rejected=no
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794 ac_prog_rejected=yes
2795 continue
2796 fi
2797 ac_cv_prog_CC="cc"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002799 break 2
2800 fi
2801done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002802done
Jon Dugane34c20c2010-07-08 23:26:52 +00002803IFS=$as_save_IFS
2804
2805if test $ac_prog_rejected = yes; then
2806 # We found a bogon in the path, so make sure we never use it.
2807 set dummy $ac_cv_prog_CC
2808 shift
2809 if test $# != 0; then
2810 # We chose a different compiler from the bogus one.
2811 # However, it has the same basename, so the bogon will be chosen
2812 # first if we set CC to just the basename; use the full file name.
2813 shift
2814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 fi
2816fi
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002822$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002823else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002824 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002825$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002826fi
2827
2828
2829fi
2830if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 for ac_prog in cl.exe
2833 do
2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002837$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002838if test "${ac_cv_prog_CC+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002839 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002840else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002853 break 2
2854 fi
2855done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002856done
Jon Dugane34c20c2010-07-08 23:26:52 +00002857IFS=$as_save_IFS
2858
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002864$as_echo "$CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002865else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002866 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002867$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002868fi
2869
2870
2871 test -n "$CC" && break
2872 done
2873fi
2874if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in cl.exe
2877do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002881$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002883 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00002884else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00002895 ac_cv_prog_ac_ct_CC="$ac_prog"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002897 break 2
2898 fi
2899done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002900done
Jon Dugane34c20c2010-07-08 23:26:52 +00002901IFS=$as_save_IFS
2902
2903fi
2904fi
2905ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906if test -n "$ac_ct_CC"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002908$as_echo "$ac_ct_CC" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002909else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002910 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002911$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002912fi
2913
2914
2915 test -n "$ac_ct_CC" && break
2916done
2917
2918 if test "x$ac_ct_CC" = x; then
2919 CC=""
2920 else
2921 case $cross_compiling:$ac_tool_warned in
2922yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002923{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00002925ac_tool_warned=yes ;;
2926esac
2927 CC=$ac_ct_CC
2928 fi
2929fi
2930
2931fi
2932
2933
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002934test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002936{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937See \`config.log' for more details." >&5
2938$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2939See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00002941
2942# Provide some information about the compiler.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002943$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002944set X $ac_compile
2945ac_compiler=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002946{ (ac_try="$ac_compiler --version >&5"
Jon Dugane34c20c2010-07-08 23:26:52 +00002947case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952$as_echo "$ac_try_echo") >&5
2953 (eval "$ac_compiler --version >&5") 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00002954 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957{ (ac_try="$ac_compiler -v >&5"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963$as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compiler -v >&5") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968{ (ac_try="$ac_compiler -V >&5"
2969case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972esac
2973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974$as_echo "$ac_try_echo") >&5
2975 (eval "$ac_compiler -V >&5") 2>&5
2976 ac_status=$?
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
Jon Dugane34c20c2010-07-08 23:26:52 +00002979
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07002980cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00002985/* end confdefs.h. */
2986
2987int
2988main ()
2989{
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995ac_clean_files_save=$ac_clean_files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08002996ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Jon Dugane34c20c2010-07-08 23:26:52 +00002997# Try to create an executable without -o first, disregard a.out.
2998# It will help us diagnose broken compilers, and finding out an intuition
2999# of exeext.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003000{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001$as_echo_n "checking for C compiler default output file name... " >&6; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003002ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3003
3004# The possible output files:
3005ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3006
Jon Dugane34c20c2010-07-08 23:26:52 +00003007ac_rmfiles=
3008for ac_file in $ac_files
3009do
3010 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003012 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3013 esac
3014done
3015rm -f $ac_rmfiles
3016
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003017if { (ac_try="$ac_link_default"
Jon Dugane34c20c2010-07-08 23:26:52 +00003018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023$as_echo "$ac_try_echo") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003024 (eval "$ac_link_default") 2>&5
3025 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030# in a Makefile. We should not override ac_cv_exeext if it was cached,
3031# so that the user can short-circuit this test for compilers unknown to
3032# Autoconf.
3033for ac_file in $ac_files ''
3034do
3035 test -f "$ac_file" || continue
3036 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jon Dugane34c20c2010-07-08 23:26:52 +00003038 ;;
3039 [ab].out )
3040 # We found the default executable, but exeext='' is most
3041 # certainly right.
3042 break;;
3043 *.* )
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003044 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jon Dugane34c20c2010-07-08 23:26:52 +00003045 then :; else
3046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 fi
3048 # We set ac_cv_exeext here because the later test for it is not
3049 # safe: cross compilers may not add the suffix if given an `-o'
3050 # argument, so we may need to know it at that point already.
3051 # Even if this section looks crufty: it has the advantage of
3052 # actually working.
3053 break;;
3054 * )
3055 break;;
3056 esac
3057done
3058test "$ac_cv_exeext" = no && ac_cv_exeext=
3059
3060else
3061 ac_file=''
3062fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003063
3064{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3065$as_echo "$ac_file" >&6; }
3066if test -z "$ac_file"; then
3067 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003068sed 's/^/| /' conftest.$ac_ext >&5
3069
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003070{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003072{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3073See \`config.log' for more details." >&5
3074$as_echo "$as_me: error: C compiler cannot create executables
3075See \`config.log' for more details." >&2;}
3076 { (exit 77); exit 77; }; }; }
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08003077fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003078
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08003079ac_exeext=$ac_cv_exeext
Bruce A. Mah10383812014-02-27 22:40:01 -08003080
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003081# Check that the compiler produces executables we can run. If not, either
3082# the compiler is broken, or we cross compile.
3083{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3084$as_echo_n "checking whether the C compiler works... " >&6; }
3085# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3086# If not cross compiling, check that we can run a simple program.
3087if test "$cross_compiling" != yes; then
3088 if { ac_try='./$ac_file'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094$as_echo "$ac_try_echo") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3099 cross_compiling=no
3100 else
3101 if test "$cross_compiling" = maybe; then
3102 cross_compiling=yes
3103 else
3104 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3107If you meant to cross compile, use \`--host'.
3108See \`config.log' for more details." >&5
3109$as_echo "$as_me: error: cannot run C compiled programs.
3110If you meant to cross compile, use \`--host'.
3111See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }; }
3113 fi
3114 fi
3115fi
3116{ $as_echo "$as_me:$LINENO: result: yes" >&5
3117$as_echo "yes" >&6; }
3118
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003119rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jon Dugane34c20c2010-07-08 23:26:52 +00003120ac_clean_files=$ac_clean_files_save
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003121# Check that the compiler produces executables we can run. If not, either
3122# the compiler is broken, or we cross compile.
3123{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3124$as_echo_n "checking whether we are cross compiling... " >&6; }
3125{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3126$as_echo "$cross_compiling" >&6; }
3127
3128{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003129$as_echo_n "checking for suffix of executables... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003130if { (ac_try="$ac_link"
Jon Dugane34c20c2010-07-08 23:26:52 +00003131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136$as_echo "$ac_try_echo") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003137 (eval "$ac_link") 2>&5
3138 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3143# work properly (i.e., refer to `conftest.exe'), while it won't with
3144# `rm'.
3145for ac_file in conftest.exe conftest conftest.*; do
3146 test -f "$ac_file" || continue
3147 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 break;;
3151 * ) break;;
3152 esac
3153done
3154else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003157{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158See \`config.log' for more details." >&5
3159$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003162fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003163
3164rm -f conftest$ac_cv_exeext
3165{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003166$as_echo "$ac_cv_exeext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003167
3168rm -f conftest.$ac_ext
3169EXEEXT=$ac_cv_exeext
3170ac_exeext=$EXEEXT
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003171{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003172$as_echo_n "checking for suffix of object files... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003173if test "${ac_cv_objext+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003174 $as_echo_n "(cached) " >&6
3175else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191rm -f conftest.o conftest.obj
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003192if { (ac_try="$ac_compile"
Jon Dugane34c20c2010-07-08 23:26:52 +00003193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198$as_echo "$ac_try_echo") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003199 (eval "$ac_compile") 2>&5
3200 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003203 for ac_file in conftest.o conftest.obj conftest.*; do
3204 test -f "$ac_file" || continue;
3205 case $ac_file in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3208 break;;
3209 esac
3210done
3211else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003212 $as_echo "$as_me: failed program was:" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003213sed 's/^/| /' conftest.$ac_ext >&5
3214
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003215{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003217{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218See \`config.log' for more details." >&5
3219$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003222fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003223
Jon Dugane34c20c2010-07-08 23:26:52 +00003224rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003226{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003227$as_echo "$ac_cv_objext" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003228OBJEXT=$ac_cv_objext
3229ac_objext=$OBJEXT
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003230{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003231$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003232if test "${ac_cv_c_compiler_gnu+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003233 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003234else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245#ifndef __GNUC__
3246 choke me
3247#endif
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003253rm -f conftest.$ac_objext
3254if { (ac_try="$ac_compile"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260$as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003271 ac_compiler_gnu=yes
3272else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003273 $as_echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 ac_compiler_gnu=no
Jon Dugane34c20c2010-07-08 23:26:52 +00003277fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003278
Jon Dugane34c20c2010-07-08 23:26:52 +00003279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003283{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285if test $ac_compiler_gnu = yes; then
3286 GCC=yes
3287else
3288 GCC=
3289fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003292{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003293$as_echo_n "checking whether $CC accepts -g... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003294if test "${ac_cv_prog_cc_g+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003295 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003296else
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3299 ac_cv_prog_cc_g=no
3300 CFLAGS="-g"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003301 cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003316rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323$as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003334 ac_cv_prog_cc_g=yes
3335else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003336 $as_echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 CFLAGS=""
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003345/* end confdefs.h. */
3346
3347int
3348main ()
3349{
3350
3351 ;
3352 return 0;
3353}
3354_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003355rm -f conftest.$ac_objext
3356if { (ac_try="$ac_compile"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362$as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 :
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08003374else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003375 $as_echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 ac_c_werror_flag=$ac_save_c_werror_flag
Jon Dugane34c20c2010-07-08 23:26:52 +00003379 CFLAGS="-g"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003395rm -f conftest.$ac_objext
3396if { (ac_try="$ac_compile"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402$as_echo "$ac_try_echo") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003413 ac_cv_prog_cc_g=yes
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003414else
3415 $as_echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
Jon Dugane34c20c2010-07-08 23:26:52 +00003419fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003420
Jon Dugane34c20c2010-07-08 23:26:52 +00003421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003423
Jon Dugane34c20c2010-07-08 23:26:52 +00003424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003426
Jon Dugane34c20c2010-07-08 23:26:52 +00003427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003430{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003431$as_echo "$ac_cv_prog_cc_g" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003432if test "$ac_test_CFLAGS" = set; then
3433 CFLAGS=$ac_save_CFLAGS
3434elif test $ac_cv_prog_cc_g = yes; then
3435 if test "$GCC" = yes; then
3436 CFLAGS="-g -O2"
3437 else
3438 CFLAGS="-g"
3439 fi
3440else
3441 if test "$GCC" = yes; then
3442 CFLAGS="-O2"
3443 else
3444 CFLAGS=
3445 fi
3446fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003447{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003448$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003449if test "${ac_cv_prog_cc_c89+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003450 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003451else
3452 ac_cv_prog_cc_c89=no
3453ac_save_CC=$CC
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003454cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00003459/* end confdefs.h. */
3460#include <stdarg.h>
3461#include <stdio.h>
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003462#include <sys/types.h>
3463#include <sys/stat.h>
Jon Dugane34c20c2010-07-08 23:26:52 +00003464/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465struct buf { int x; };
3466FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467static char *e (p, i)
3468 char **p;
3469 int i;
3470{
3471 return p[i];
3472}
3473static char *f (char * (*g) (char **, int), char **p, ...)
3474{
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3481}
3482
3483/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std. */
3490int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3494#define FOO(x) 'x'
3495int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496
3497int test (int i, double x);
3498struct s1 {int (*f) (int a);};
3499struct s2 {int (*f) (double a);};
3500int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501int argc;
3502char **argv;
3503int
3504main ()
3505{
3506return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513do
3514 CC="$ac_save_CC $ac_arg"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003515 rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522$as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003533 ac_cv_prog_cc_c89=$ac_arg
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003534else
3535 $as_echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
Jon Dugane34c20c2010-07-08 23:26:52 +00003539fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003540
Jon Dugane34c20c2010-07-08 23:26:52 +00003541rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543done
3544rm -f conftest.$ac_ext
3545CC=$ac_save_CC
3546
3547fi
3548# AC_CACHE_VAL
3549case "x$ac_cv_prog_cc_c89" in
3550 x)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003551 { $as_echo "$as_me:$LINENO: result: none needed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003552$as_echo "none needed" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003553 xno)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003554 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003555$as_echo "unsupported" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003556 *)
3557 CC="$CC $ac_cv_prog_cc_c89"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003558 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003559$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003560esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003561
Jon Dugane34c20c2010-07-08 23:26:52 +00003562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568DEPDIR="${am__leading_dot}deps"
3569
3570ac_config_commands="$ac_config_commands depfiles"
3571
3572
3573am_make=${MAKE-make}
3574cat > confinc << 'END'
3575am__doit:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003576 @echo this is the am__doit target
Jon Dugane34c20c2010-07-08 23:26:52 +00003577.PHONY: am__doit
3578END
3579# If we don't find an include directive, just comment out the code.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003580{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003581$as_echo_n "checking for style of include used by $am_make... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003582am__include="#"
3583am__quote=
3584_am_result=none
3585# First try GNU make style include.
3586echo "include confinc" > confmf
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003587# Ignore all kinds of additional output from `make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003588case `$am_make -s -f confmf 2> /dev/null` in #(
3589*the\ am__doit\ target*)
3590 am__include=include
3591 am__quote=
3592 _am_result=GNU
3593 ;;
3594esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003595# Now try BSD make style include.
3596if test "$am__include" = "#"; then
3597 echo '.include "confinc"' > confmf
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003598 case `$am_make -s -f confmf 2> /dev/null` in #(
3599 *the\ am__doit\ target*)
3600 am__include=.include
3601 am__quote="\""
3602 _am_result=BSD
3603 ;;
3604 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003605fi
3606
3607
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003608{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003609$as_echo "$_am_result" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003610rm -f confinc confmf
3611
3612# Check whether --enable-dependency-tracking was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003613if test "${enable_dependency_tracking+set}" = set; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003614 enableval=$enable_dependency_tracking;
3615fi
3616
3617if test "x$enable_dependency_tracking" != xno; then
3618 am_depcomp="$ac_aux_dir/depcomp"
3619 AMDEPBACKSLASH='\'
3620fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003621 if test "x$enable_dependency_tracking" != xno; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003622 AMDEP_TRUE=
3623 AMDEP_FALSE='#'
3624else
3625 AMDEP_TRUE='#'
3626 AMDEP_FALSE=
3627fi
3628
3629
3630
Jon Dugane34c20c2010-07-08 23:26:52 +00003631depcc="$CC" am_compiler_list=
3632
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003633{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003634$as_echo_n "checking dependency style of $depcc... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003635if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003636 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003637else
3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639 # We make a subdir and do the tests there. Otherwise we can end up
3640 # making bogus files that we don't know about and never remove. For
3641 # instance it was reported that on HP-UX the gcc test will end up
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003642 # making a dummy file named `D' -- because `-MD' means `put the output
3643 # in D'.
Jon Dugane34c20c2010-07-08 23:26:52 +00003644 mkdir conftest.dir
3645 # Copy depcomp to subdir because otherwise we won't find it if we're
3646 # using a relative directory.
3647 cp "$am_depcomp" conftest.dir
3648 cd conftest.dir
3649 # We will build objects and dependencies in a subdirectory because
3650 # it helps to detect inapplicable dependency modes. For instance
3651 # both Tru64's cc and ICC support -MD to output dependencies as a
3652 # side effect of compilation, but ICC will put the dependencies in
3653 # the current directory while Tru64 will put them in the object
3654 # directory.
3655 mkdir sub
3656
3657 am_cv_CC_dependencies_compiler_type=none
3658 if test "$am_compiler_list" = ""; then
3659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003661 am__universal=false
3662 case " $depcc " in #(
3663 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3664 esac
3665
Jon Dugane34c20c2010-07-08 23:26:52 +00003666 for depmode in $am_compiler_list; do
3667 # Setup a source with many dependencies, because some compilers
3668 # like to wrap large dependency lists on column 80 (with \), and
3669 # we should not choose a depcomp mode which is confused by this.
3670 #
3671 # We need to recreate these files for each test, as the compiler may
3672 # overwrite some of them when testing with obscure command lines.
3673 # This happens at least with the AIX C compiler.
3674 : > sub/conftest.c
3675 for i in 1 2 3 4 5 6; do
3676 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3678 # Solaris 8's {/usr,}/bin/sh.
3679 touch sub/conftst$i.h
Jon Dugane34c20c2010-07-08 23:26:52 +00003680 done
3681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3682
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003684 # mode. It turns out that the SunPro C++ compiler does not properly
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003685 # handle `-M -o', and we need to detect this. Also, some Intel
3686 # versions had trouble with output in subdirs
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003687 am__obj=sub/conftest.${OBJEXT-o}
3688 am__minus_obj="-o $am__obj"
Jon Dugane34c20c2010-07-08 23:26:52 +00003689 case $depmode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003690 gcc)
3691 # This depmode causes a compiler race in universal mode.
3692 test "$am__universal" = false || continue
3693 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003694 nosideeffect)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003695 # after this tag, mechanisms are not by side-effect, so they'll
3696 # only be used when explicitly requested
Jon Dugane34c20c2010-07-08 23:26:52 +00003697 if test "x$enable_dependency_tracking" = xyes; then
3698 continue
3699 else
3700 break
3701 fi
3702 ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003703 msvisualcpp | msvcmsys)
3704 # This compiler won't grok `-c -o', but also, the minuso test has
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003705 # not run yet. These depmodes are late enough in the game, and
3706 # so weak that their functioning should not be impacted.
3707 am__obj=conftest.${OBJEXT-o}
3708 am__minus_obj=
3709 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00003710 none) break ;;
3711 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00003712 if depmode=$depmode \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003713 source=sub/conftest.c object=$am__obj \
Jon Dugane34c20c2010-07-08 23:26:52 +00003714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Jon Dugane34c20c2010-07-08 23:26:52 +00003716 >/dev/null 2>conftest.err &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Jon Dugane34c20c2010-07-08 23:26:52 +00003720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3721 # icc doesn't choke on unknown options, it will just issue warnings
sethdelliott01ca9722010-07-19 20:38:40 +00003722 # or remarks (even with -Werror). So we grep stderr for any message
3723 # that says an option was ignored or not supported.
3724 # When given -MP, icc 7.0 and 7.1 complain thusly:
3725 # icc: Command line warning: ignoring option '-M'; no argument required
3726 # The diagnosis changed in icc 8.0:
3727 # icc: Command line remark: option '-MP' not supported
3728 if (grep 'ignoring option' conftest.err ||
3729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
Jon Dugane34c20c2010-07-08 23:26:52 +00003730 am_cv_CC_dependencies_compiler_type=$depmode
3731 break
3732 fi
3733 fi
3734 done
3735
3736 cd ..
3737 rm -rf conftest.dir
3738else
3739 am_cv_CC_dependencies_compiler_type=none
3740fi
3741
3742fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003743{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003744$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003745CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3746
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003747 if
Jon Dugane34c20c2010-07-08 23:26:52 +00003748 test "x$enable_dependency_tracking" != xno \
3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3750 am__fastdepCC_TRUE=
3751 am__fastdepCC_FALSE='#'
3752else
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3755fi
3756
3757
3758if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3760set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003762$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003763if test "${ac_cv_prog_RANLIB+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003764 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003765else
3766 if test -n "$RANLIB"; then
3767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003778 break 2
3779 fi
3780done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003781done
Jon Dugane34c20c2010-07-08 23:26:52 +00003782IFS=$as_save_IFS
3783
3784fi
3785fi
3786RANLIB=$ac_cv_prog_RANLIB
3787if test -n "$RANLIB"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003788 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003789$as_echo "$RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003790else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003791 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003792$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003793fi
3794
3795
3796fi
3797if test -z "$ac_cv_prog_RANLIB"; then
3798 ac_ct_RANLIB=$RANLIB
3799 # Extract the first word of "ranlib", so it can be a program name with args.
3800set dummy ranlib; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003801{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003802$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003803if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003804 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00003805else
3806 if test -n "$ac_ct_RANLIB"; then
3807 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003816 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00003818 break 2
3819 fi
3820done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003821done
Jon Dugane34c20c2010-07-08 23:26:52 +00003822IFS=$as_save_IFS
3823
3824fi
3825fi
3826ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3827if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003828 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003829$as_echo "$ac_ct_RANLIB" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003830else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003831 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003832$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003833fi
3834
3835 if test "x$ac_ct_RANLIB" = x; then
3836 RANLIB=":"
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003840{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +00003842ac_tool_warned=yes ;;
3843esac
3844 RANLIB=$ac_ct_RANLIB
3845 fi
3846else
3847 RANLIB="$ac_cv_prog_RANLIB"
3848fi
3849
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003850{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003851$as_echo_n "checking whether ln -s works... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003852LN_S=$as_ln_s
3853if test "$LN_S" = "ln -s"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003854 { $as_echo "$as_me:$LINENO: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003855$as_echo "yes" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003856else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003857 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003858$as_echo "no, using $LN_S" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00003859fi
3860
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003861case `pwd` in
3862 *\ * | *\ *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003863 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003864$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003865esac
3866
3867
3868
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003869macro_version='2.2.6b'
3870macro_revision='1.3017'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884ltmain="$ac_aux_dir/ltmain.sh"
3885
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003886{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003887$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003888if test "${ac_cv_path_SED+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003889 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +00003890else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3892 for ac_i in 1 2 3 4 5 6 7; do
3893 ac_script="$ac_script$as_nl$ac_script"
3894 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003896 $as_unset ac_script || ac_script=
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003897 if test -z "$SED"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003898 ac_path_SED_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003901for as_dir in $PATH
3902do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003905 for ac_prog in sed gsed; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003908 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003909# Check for GNU ac_path_SED and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003910 # Check for GNU $ac_path_SED
3911case `"$ac_path_SED" --version 2>&1` in
3912*GNU*)
3913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3914*)
3915 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003916 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003917 while :
3918 do
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003922 $as_echo '' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003925 ac_count=`expr $ac_count + 1`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003926 if test $ac_count -gt ${ac_path_SED_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_SED="$ac_path_SED"
3929 ac_path_SED_max=$ac_count
3930 fi
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
Jon Dugane34c20c2010-07-08 23:26:52 +00003933 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935esac
3936
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003937 $ac_path_SED_found && break 3
3938 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003939 done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003940done
Jon Dugane34c20c2010-07-08 23:26:52 +00003941IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003942 if test -z "$ac_cv_path_SED"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003943 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3944$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3945 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003946 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00003947else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003948 ac_cv_path_SED=$SED
3949fi
3950
3951fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003952{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003953$as_echo "$ac_cv_path_SED" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003954 SED="$ac_cv_path_SED"
3955 rm -f conftest.sed
3956
3957test -z "$SED" && SED=sed
3958Xsed="$SED -e 1s/^X//"
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003970{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003971$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003972if test "${ac_cv_path_GREP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003973 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08003974else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003975 if test -z "$GREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00003976 ac_path_GREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00003979for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003983 for ac_prog in grep ggrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07003986 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003987# Check for GNU ac_path_GREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00003988 # Check for GNU $ac_path_GREP
3989case `"$ac_path_GREP" --version 2>&1` in
3990*GNU*)
3991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3992*)
3993 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08003994 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00003995 while :
3996 do
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004000 $as_echo 'GREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004001 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004003 ac_count=`expr $ac_count + 1`
Jon Dugane34c20c2010-07-08 23:26:52 +00004004 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_GREP="$ac_path_GREP"
4007 ac_path_GREP_max=$ac_count
4008 fi
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4011 done
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013esac
4014
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004015 $ac_path_GREP_found && break 3
4016 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004017 done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004018done
Jon Dugane34c20c2010-07-08 23:26:52 +00004019IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004020 if test -z "$ac_cv_path_GREP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004021 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004024 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004025else
4026 ac_cv_path_GREP=$GREP
4027fi
4028
4029fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004030{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004031$as_echo "$ac_cv_path_GREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004032 GREP="$ac_cv_path_GREP"
4033
4034
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004035{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004036$as_echo_n "checking for egrep... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004037if test "${ac_cv_path_EGREP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004038 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004039else
4040 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4041 then ac_cv_path_EGREP="$GREP -E"
4042 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004043 if test -z "$EGREP"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004044 ac_path_EGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004045 # Loop through the user's path and test for each of PROGNAME-LIST
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jon Dugane34c20c2010-07-08 23:26:52 +00004047for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004051 for ac_prog in egrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004054 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004055# Check for GNU ac_path_EGREP and select it if it is found.
Jon Dugane34c20c2010-07-08 23:26:52 +00004056 # Check for GNU $ac_path_EGREP
4057case `"$ac_path_EGREP" --version 2>&1` in
4058*GNU*)
4059 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4060*)
4061 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004062 $as_echo_n 0123456789 >"conftest.in"
Jon Dugane34c20c2010-07-08 23:26:52 +00004063 while :
4064 do
4065 cat "conftest.in" "conftest.in" >"conftest.tmp"
4066 mv "conftest.tmp" "conftest.in"
4067 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004068 $as_echo 'EGREP' >> "conftest.nl"
Jon Dugane34c20c2010-07-08 23:26:52 +00004069 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004071 ac_count=`expr $ac_count + 1`
Jon Dugane34c20c2010-07-08 23:26:52 +00004072 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4073 # Best one so far, save it but keep looking for a better one
4074 ac_cv_path_EGREP="$ac_path_EGREP"
4075 ac_path_EGREP_max=$ac_count
4076 fi
4077 # 10*(2^10) chars as input seems more than enough
4078 test $ac_count -gt 10 && break
4079 done
4080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081esac
4082
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004083 $ac_path_EGREP_found && break 3
4084 done
Jon Dugane34c20c2010-07-08 23:26:52 +00004085 done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004086done
Jon Dugane34c20c2010-07-08 23:26:52 +00004087IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004088 if test -z "$ac_cv_path_EGREP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004089 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4090$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4091 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004092 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004093else
4094 ac_cv_path_EGREP=$EGREP
4095fi
4096
4097 fi
4098fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004099{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004100$as_echo "$ac_cv_path_EGREP" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004101 EGREP="$ac_cv_path_EGREP"
4102
4103
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004104{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004105$as_echo_n "checking for fgrep... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004106if test "${ac_cv_path_FGREP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004107 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004108else
4109 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4110 then ac_cv_path_FGREP="$GREP -F"
4111 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004112 if test -z "$FGREP"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004113 ac_path_FGREP_found=false
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004116for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004120 for ac_prog in fgrep; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004123 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004124# Check for GNU ac_path_FGREP and select it if it is found.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004125 # Check for GNU $ac_path_FGREP
4126case `"$ac_path_FGREP" --version 2>&1` in
4127*GNU*)
4128 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4129*)
4130 ac_count=0
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004131 $as_echo_n 0123456789 >"conftest.in"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004132 while :
4133 do
4134 cat "conftest.in" "conftest.in" >"conftest.tmp"
4135 mv "conftest.tmp" "conftest.in"
4136 cp "conftest.in" "conftest.nl"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004137 $as_echo 'FGREP' >> "conftest.nl"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004138 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004140 ac_count=`expr $ac_count + 1`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004141 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4142 # Best one so far, save it but keep looking for a better one
4143 ac_cv_path_FGREP="$ac_path_FGREP"
4144 ac_path_FGREP_max=$ac_count
4145 fi
4146 # 10*(2^10) chars as input seems more than enough
4147 test $ac_count -gt 10 && break
4148 done
4149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150esac
4151
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004152 $ac_path_FGREP_found && break 3
4153 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004154 done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004155done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004156IFS=$as_save_IFS
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004157 if test -z "$ac_cv_path_FGREP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004158 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4159$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4160 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004161 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004162else
4163 ac_cv_path_FGREP=$FGREP
4164fi
4165
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004166 fi
4167fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004168{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004169$as_echo "$ac_cv_path_FGREP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004170 FGREP="$ac_cv_path_FGREP"
4171
4172
4173test -z "$GREP" && GREP=grep
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
Jon Dugane34c20c2010-07-08 23:26:52 +00004192
4193# Check whether --with-gnu-ld was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004194if test "${with_gnu_ld+set}" = set; then
Jon Dugane34c20c2010-07-08 23:26:52 +00004195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4196else
4197 with_gnu_ld=no
4198fi
4199
4200ac_prog=ld
4201if test "$GCC" = yes; then
4202 # Check if gcc -print-prog-name=ld gives a path.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004203 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004204$as_echo_n "checking for ld used by $CC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004205 case $host in
4206 *-*-mingw*)
4207 # gcc leaves a trailing carriage return which upsets mingw
4208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4209 *)
4210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4211 esac
4212 case $ac_prog in
4213 # Accept absolute paths.
4214 [\\/]* | ?:[\\/]*)
4215 re_direlt='/[^/][^/]*/\.\./'
4216 # Canonicalize the pathname of ld
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004217 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4218 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4219 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00004220 done
4221 test -z "$LD" && LD="$ac_prog"
4222 ;;
4223 "")
4224 # If it fails, then pretend we aren't using GCC.
4225 ac_prog=ld
4226 ;;
4227 *)
4228 # If it is relative, then search for the first ld in PATH.
4229 with_gnu_ld=unknown
4230 ;;
4231 esac
4232elif test "$with_gnu_ld" = yes; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004233 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004234$as_echo_n "checking for GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004235else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004236 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004237$as_echo_n "checking for non-GNU ld... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004238fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004239if test "${lt_cv_path_LD+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004240 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004241else
4242 if test -z "$LD"; then
4243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4244 for ac_dir in $PATH; do
4245 IFS="$lt_save_ifs"
4246 test -z "$ac_dir" && ac_dir=.
4247 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4248 lt_cv_path_LD="$ac_dir/$ac_prog"
4249 # Check to see if the program is GNU ld. I'd rather use --version,
4250 # but apparently some variants of GNU ld only accept -v.
4251 # Break only if it was the GNU/non-GNU ld that we prefer.
4252 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4253 *GNU* | *'with BFD'*)
4254 test "$with_gnu_ld" != no && break
4255 ;;
4256 *)
4257 test "$with_gnu_ld" != yes && break
4258 ;;
4259 esac
4260 fi
4261 done
4262 IFS="$lt_save_ifs"
4263else
4264 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4265fi
4266fi
4267
4268LD="$lt_cv_path_LD"
4269if test -n "$LD"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004270 { $as_echo "$as_me:$LINENO: result: $LD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004271$as_echo "$LD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004272else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004273 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004274$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004275fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004276test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4277$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4278 { (exit 1); exit 1; }; }
4279{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004280$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004281if test "${lt_cv_prog_gnu_ld+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004282 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004283else
4284 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4285case `$LD -v 2>&1 </dev/null` in
4286*GNU* | *'with BFD'*)
4287 lt_cv_prog_gnu_ld=yes
4288 ;;
4289*)
4290 lt_cv_prog_gnu_ld=no
4291 ;;
4292esac
4293fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004294{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004295$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00004296with_gnu_ld=$lt_cv_prog_gnu_ld
4297
4298
4299
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004300
4301
4302
4303
4304
4305
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004306{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004307$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004308if test "${lt_cv_path_NM+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004309 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00004310else
4311 if test -n "$NM"; then
4312 # Let the user override the test.
4313 lt_cv_path_NM="$NM"
4314else
4315 lt_nm_to_check="${ac_tool_prefix}nm"
4316 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4317 lt_nm_to_check="$lt_nm_to_check nm"
4318 fi
4319 for lt_tmp_nm in $lt_nm_to_check; do
4320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4321 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4322 IFS="$lt_save_ifs"
4323 test -z "$ac_dir" && ac_dir=.
4324 tmp_nm="$ac_dir/$lt_tmp_nm"
4325 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4326 # Check to see if the nm accepts a BSD-compat flag.
4327 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4328 # nm: unknown option "B" ignored
4329 # Tru64's nm complains that /dev/null is an invalid object file
4330 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4331 */dev/null* | *'Invalid file or object type'*)
4332 lt_cv_path_NM="$tmp_nm -B"
4333 break
4334 ;;
4335 *)
4336 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4337 */dev/null*)
4338 lt_cv_path_NM="$tmp_nm -p"
4339 break
4340 ;;
4341 *)
4342 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4343 continue # so that we can try to find one that supports BSD flags
4344 ;;
4345 esac
4346 ;;
4347 esac
4348 fi
4349 done
4350 IFS="$lt_save_ifs"
4351 done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004352 : ${lt_cv_path_NM=no}
Jon Dugane34c20c2010-07-08 23:26:52 +00004353fi
4354fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004355{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004356$as_echo "$lt_cv_path_NM" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004357if test "$lt_cv_path_NM" != "no"; then
4358 NM="$lt_cv_path_NM"
Jon Dugane34c20c2010-07-08 23:26:52 +00004359else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004360 # Didn't find any BSD compatible name lister, look for dumpbin.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004361 if test -n "$ac_tool_prefix"; then
4362 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
jef56a97f92012-08-20 14:35:58 -07004363 do
4364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004367$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004368if test "${ac_cv_prog_DUMPBIN+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004369 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004370else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004371 if test -n "$DUMPBIN"; then
4372 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004381 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004383 break 2
4384 fi
4385done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004386done
jef56a97f92012-08-20 14:35:58 -07004387IFS=$as_save_IFS
4388
4389fi
4390fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004391DUMPBIN=$ac_cv_prog_DUMPBIN
4392if test -n "$DUMPBIN"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004393 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004394$as_echo "$DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004395else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004396 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004397$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004398fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004399
4400
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004401 test -n "$DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004402 done
4403fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004404if test -z "$DUMPBIN"; then
4405 ac_ct_DUMPBIN=$DUMPBIN
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004406 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
jef56a97f92012-08-20 14:35:58 -07004407do
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004411$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004412if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004413 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004414else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004415 if test -n "$ac_ct_DUMPBIN"; then
4416 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
jef56a97f92012-08-20 14:35:58 -07004417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004425 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
jef56a97f92012-08-20 14:35:58 -07004427 break 2
4428 fi
4429done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004430done
jef56a97f92012-08-20 14:35:58 -07004431IFS=$as_save_IFS
4432
4433fi
4434fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004435ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4436if test -n "$ac_ct_DUMPBIN"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004437 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004438$as_echo "$ac_ct_DUMPBIN" >&6; }
jef56a97f92012-08-20 14:35:58 -07004439else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004440 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004441$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -07004442fi
Jon Dugan92864152010-09-20 21:50:12 +00004443
4444
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004445 test -n "$ac_ct_DUMPBIN" && break
jef56a97f92012-08-20 14:35:58 -07004446done
Jon Dugane34c20c2010-07-08 23:26:52 +00004447
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004448 if test "x$ac_ct_DUMPBIN" = x; then
4449 DUMPBIN=":"
jef56a97f92012-08-20 14:35:58 -07004450 else
4451 case $cross_compiling:$ac_tool_warned in
4452yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004453{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
jef56a97f92012-08-20 14:35:58 -07004455ac_tool_warned=yes ;;
4456esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004457 DUMPBIN=$ac_ct_DUMPBIN
jef56a97f92012-08-20 14:35:58 -07004458 fi
4459fi
4460
4461
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004462 if test "$DUMPBIN" != ":"; then
4463 NM="$DUMPBIN"
jef56a97f92012-08-20 14:35:58 -07004464 fi
4465fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004466test -z "$NM" && NM=nm
jef56a97f92012-08-20 14:35:58 -07004467
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004468
4469
4470
4471
4472
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004473{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004474$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004475if test "${lt_cv_nm_interface+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004476 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004477else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004478 lt_cv_nm_interface="BSD nm"
4479 echo "int some_variable = 0;" > conftest.$ac_ext
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07004480 (eval echo "\"\$as_me:4480: $ac_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004481 (eval "$ac_compile" 2>conftest.err)
4482 cat conftest.err >&5
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07004483 (eval echo "\"\$as_me:4483: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004484 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4485 cat conftest.err >&5
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07004486 (eval echo "\"\$as_me:4486: output\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004487 cat conftest.out >&5
4488 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4489 lt_cv_nm_interface="MS dumpbin"
4490 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004491 rm -f conftest*
jef56a97f92012-08-20 14:35:58 -07004492fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004493{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004494$as_echo "$lt_cv_nm_interface" >&6; }
jef56a97f92012-08-20 14:35:58 -07004495
4496# find the maximum length of command line arguments
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004497{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004498$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004499if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004500 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07004501else
4502 i=0
4503 teststring="ABCD"
4504
4505 case $build_os in
4506 msdosdjgpp*)
4507 # On DJGPP, this test can blow up pretty badly due to problems in libc
4508 # (any single argument exceeding 2000 bytes causes a buffer overrun
4509 # during glob expansion). Even if it were fixed, the result of this
4510 # check would be larger than it should be.
4511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4512 ;;
4513
4514 gnu*)
4515 # Under GNU Hurd, this test is not required because there is
4516 # no limit to the length of command line arguments.
4517 # Libtool will interpret -1 as no limit whatsoever
4518 lt_cv_sys_max_cmd_len=-1;
4519 ;;
4520
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004521 cygwin* | mingw* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07004522 # On Win9x/ME, this test blows up -- it succeeds, but takes
4523 # about 5 minutes as the teststring grows exponentially.
4524 # Worse, since 9x/ME are not pre-emptively multitasking,
4525 # you end up with a "frozen" computer, even though with patience
4526 # the test eventually succeeds (with a max line length of 256k).
4527 # Instead, let's just punt: use the minimum linelength reported by
4528 # all of the supported platforms: 8192 (on NT/2K/XP).
4529 lt_cv_sys_max_cmd_len=8192;
4530 ;;
4531
4532 amigaos*)
4533 # On AmigaOS with pdksh, this test takes hours, literally.
4534 # So we just punt and use a minimum line length of 8192.
4535 lt_cv_sys_max_cmd_len=8192;
4536 ;;
4537
4538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4539 # This has been around since 386BSD, at least. Likely further.
4540 if test -x /sbin/sysctl; then
4541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4542 elif test -x /usr/sbin/sysctl; then
4543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4544 else
4545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4546 fi
4547 # And add a safety zone
4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4550 ;;
4551
4552 interix*)
4553 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4554 lt_cv_sys_max_cmd_len=196608
4555 ;;
4556
4557 osf*)
4558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4560 # nice to cause kernel panics so lets avoid the loop below.
4561 # First set a reasonable default.
4562 lt_cv_sys_max_cmd_len=16384
4563 #
4564 if test -x /sbin/sysconfig; then
4565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4566 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4567 esac
4568 fi
4569 ;;
4570 sco3.2v5*)
4571 lt_cv_sys_max_cmd_len=102400
4572 ;;
4573 sysv5* | sco5v6* | sysv4.2uw2*)
4574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4575 if test -n "$kargmax"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
jef56a97f92012-08-20 14:35:58 -07004577 else
4578 lt_cv_sys_max_cmd_len=32768
4579 fi
4580 ;;
4581 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004582 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4583 if test -n "$lt_cv_sys_max_cmd_len"; then
4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4586 else
4587 # Make teststring a little bigger before we do anything with it.
4588 # a 1K string should be a reasonable start.
4589 for i in 1 2 3 4 5 6 7 8 ; do
4590 teststring=$teststring$teststring
4591 done
4592 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4593 # If test is not a shell built-in, we'll probably end up computing a
4594 # maximum length that is only half of the actual maximum length, but
4595 # we can't tell.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004596 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4597 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004598 test $i != 17 # 1/2 MB should be enough
4599 do
4600 i=`expr $i + 1`
4601 teststring=$teststring$teststring
4602 done
4603 # Only check the string length outside the loop.
4604 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4605 teststring=
4606 # Add a significant safety factor because C++ compilers can tack on
4607 # massive amounts of additional arguments before passing them to the
4608 # linker. It appears as though 1/2 is a usable value.
4609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4610 fi
jef56a97f92012-08-20 14:35:58 -07004611 ;;
4612 esac
4613
4614fi
4615
4616if test -n $lt_cv_sys_max_cmd_len ; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004617 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004618$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
jef56a97f92012-08-20 14:35:58 -07004619else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004620 { $as_echo "$as_me:$LINENO: result: none" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004621$as_echo "none" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004622fi
4623max_cmd_len=$lt_cv_sys_max_cmd_len
4624
4625
4626
4627
4628
4629
4630: ${CP="cp -f"}
4631: ${MV="mv -f"}
4632: ${RM="rm -f"}
4633
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004634{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004635$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004636# Try some XSI features
4637xsi_shell=no
4638( _lt_dummy="a/b/c"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004639 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4640 = c,a/b,, \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004641 && eval 'test $(( 1 + 1 )) -eq 2 \
4642 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4643 && xsi_shell=yes
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004644{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004645$as_echo "$xsi_shell" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004646
4647
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004648{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004649$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004650lt_shell_append=no
4651( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4652 >/dev/null 2>&1 \
4653 && lt_shell_append=yes
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004654{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004655$as_echo "$lt_shell_append" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004656
4657
4658if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4659 lt_unset=unset
4660else
4661 lt_unset=false
jef56a97f92012-08-20 14:35:58 -07004662fi
Jon Dugane34c20c2010-07-08 23:26:52 +00004663
4664
4665
4666
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004667
4668# test EBCDIC or ASCII
4669case `echo X|tr X '\101'` in
4670 A) # ASCII based system
4671 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4672 lt_SP2NL='tr \040 \012'
4673 lt_NL2SP='tr \015\012 \040\040'
4674 ;;
4675 *) # EBCDIC based system
4676 lt_SP2NL='tr \100 \n'
4677 lt_NL2SP='tr \r\n \100\100'
4678 ;;
4679esac
4680
4681
4682
4683
4684
4685
4686
4687
4688
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004689{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004690$as_echo_n "checking for $LD option to reload object files... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004691if test "${lt_cv_ld_reload_flag+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004692 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004693else
4694 lt_cv_ld_reload_flag='-r'
4695fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004696{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004697$as_echo "$lt_cv_ld_reload_flag" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004698reload_flag=$lt_cv_ld_reload_flag
4699case $reload_flag in
4700"" | " "*) ;;
4701*) reload_flag=" $reload_flag" ;;
4702esac
4703reload_cmds='$LD$reload_flag -o $output$reload_objs'
4704case $host_os in
4705 darwin*)
4706 if test "$GCC" = yes; then
4707 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4708 else
4709 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4710 fi
4711 ;;
4712esac
4713
4714
4715
4716
4717
4718
4719
4720
4721
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004722if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4724set dummy ${ac_tool_prefix}objdump; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004725{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004726$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004727if test "${ac_cv_prog_OBJDUMP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004728 $as_echo_n "(cached) " >&6
4729else
4730 if test -n "$OBJDUMP"; then
4731 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4732else
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004740 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004742 break 2
4743 fi
4744done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004745done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004746IFS=$as_save_IFS
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004747
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004748fi
4749fi
4750OBJDUMP=$ac_cv_prog_OBJDUMP
4751if test -n "$OBJDUMP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004752 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004753$as_echo "$OBJDUMP" >&6; }
4754else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004755 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004756$as_echo "no" >&6; }
4757fi
4758
4759
4760fi
4761if test -z "$ac_cv_prog_OBJDUMP"; then
4762 ac_ct_OBJDUMP=$OBJDUMP
4763 # Extract the first word of "objdump", so it can be a program name with args.
4764set dummy objdump; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004766$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004767if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004768 $as_echo_n "(cached) " >&6
4769else
4770 if test -n "$ac_ct_OBJDUMP"; then
4771 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004780 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004782 break 2
4783 fi
4784done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004785done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004786IFS=$as_save_IFS
4787
4788fi
4789fi
4790ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4791if test -n "$ac_ct_OBJDUMP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004792 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004793$as_echo "$ac_ct_OBJDUMP" >&6; }
4794else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004795 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004796$as_echo "no" >&6; }
4797fi
4798
4799 if test "x$ac_ct_OBJDUMP" = x; then
4800 OBJDUMP="false"
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004804{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806ac_tool_warned=yes ;;
4807esac
4808 OBJDUMP=$ac_ct_OBJDUMP
4809 fi
4810else
4811 OBJDUMP="$ac_cv_prog_OBJDUMP"
4812fi
4813
4814test -z "$OBJDUMP" && OBJDUMP=objdump
4815
4816
4817
4818
4819
4820
4821
4822
4823
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004824{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004825$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004826if test "${lt_cv_deplibs_check_method+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004827 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004828else
4829 lt_cv_file_magic_cmd='$MAGIC_CMD'
4830lt_cv_file_magic_test_file=
4831lt_cv_deplibs_check_method='unknown'
4832# Need to set the preceding variable on all platforms that support
4833# interlibrary dependencies.
4834# 'none' -- dependencies not supported.
4835# `unknown' -- same as none, but documents that we really don't know.
4836# 'pass_all' -- all dependencies passed with no checks.
4837# 'test_compile' -- check by making test program.
4838# 'file_magic [[regex]]' -- check by looking for files in library path
4839# which responds to the $file_magic_cmd with a given extended regex.
4840# If you have `file' or equivalent on your system and you're not sure
4841# whether `pass_all' will *always* work, you probably want this one.
4842
4843case $host_os in
4844aix[4-9]*)
4845 lt_cv_deplibs_check_method=pass_all
4846 ;;
4847
4848beos*)
4849 lt_cv_deplibs_check_method=pass_all
4850 ;;
4851
4852bsdi[45]*)
4853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4854 lt_cv_file_magic_cmd='/usr/bin/file -L'
4855 lt_cv_file_magic_test_file=/shlib/libc.so
4856 ;;
4857
4858cygwin*)
4859 # func_win32_libid is a shell function defined in ltmain.sh
4860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4861 lt_cv_file_magic_cmd='func_win32_libid'
4862 ;;
4863
4864mingw* | pw32*)
4865 # Base MSYS/MinGW do not provide the 'file' command needed by
4866 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4867 # unless we find 'file', for example because we are cross-compiling.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004868 if ( file / ) >/dev/null 2>&1; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4870 lt_cv_file_magic_cmd='func_win32_libid'
4871 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004872 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004873 lt_cv_file_magic_cmd='$OBJDUMP -f'
4874 fi
4875 ;;
4876
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004877cegcc)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08004878 # use the weaker test based on 'objdump'. See mingw*.
4879 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4880 lt_cv_file_magic_cmd='$OBJDUMP -f'
4881 ;;
4882
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004883darwin* | rhapsody*)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
4886
4887freebsd* | dragonfly*)
4888 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4889 case $host_cpu in
4890 i*86 )
4891 # Not sure whether the presence of OpenBSD here was a mistake.
4892 # Let's accept both of them until this is cleared up.
4893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4894 lt_cv_file_magic_cmd=/usr/bin/file
4895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4896 ;;
4897 esac
4898 else
4899 lt_cv_deplibs_check_method=pass_all
4900 fi
4901 ;;
4902
4903gnu*)
4904 lt_cv_deplibs_check_method=pass_all
4905 ;;
4906
4907hpux10.20* | hpux11*)
4908 lt_cv_file_magic_cmd=/usr/bin/file
4909 case $host_cpu in
4910 ia64*)
4911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4913 ;;
4914 hppa*64*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4917 ;;
4918 *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004919 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 -08004920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4921 ;;
4922 esac
4923 ;;
4924
4925interix[3-9]*)
4926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4928 ;;
4929
4930irix5* | irix6* | nonstopux*)
4931 case $LD in
4932 *-32|*"-32 ") libmagic=32-bit;;
4933 *-n32|*"-n32 ") libmagic=N32;;
4934 *-64|*"-64 ") libmagic=64-bit;;
4935 *) libmagic=never-match;;
4936 esac
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07004940# This must be Linux ELF.
4941linux* | k*bsd*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08004942 lt_cv_deplibs_check_method=pass_all
4943 ;;
4944
4945netbsd*)
4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948 else
4949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4950 fi
4951 ;;
4952
4953newos6*)
4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4955 lt_cv_file_magic_cmd=/usr/bin/file
4956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4957 ;;
4958
4959*nto* | *qnx*)
4960 lt_cv_deplibs_check_method=pass_all
4961 ;;
4962
4963openbsd*)
4964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4966 else
4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4968 fi
4969 ;;
4970
4971osf3* | osf4* | osf5*)
4972 lt_cv_deplibs_check_method=pass_all
4973 ;;
4974
4975rdos*)
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
4978
4979solaris*)
4980 lt_cv_deplibs_check_method=pass_all
4981 ;;
4982
4983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4984 lt_cv_deplibs_check_method=pass_all
4985 ;;
4986
4987sysv4 | sysv4.3*)
4988 case $host_vendor in
4989 motorola)
4990 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]'
4991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4992 ;;
4993 ncr)
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
4996 sequent)
4997 lt_cv_file_magic_cmd='/bin/file'
4998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4999 ;;
5000 sni)
5001 lt_cv_file_magic_cmd='/bin/file'
5002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5003 lt_cv_file_magic_test_file=/lib/libc.so
5004 ;;
5005 siemens)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008 pc)
5009 lt_cv_deplibs_check_method=pass_all
5010 ;;
5011 esac
5012 ;;
5013
5014tpf*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017esac
5018
5019fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005020{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005021$as_echo "$lt_cv_deplibs_check_method" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005022file_magic_cmd=$lt_cv_file_magic_cmd
5023deplibs_check_method=$lt_cv_deplibs_check_method
5024test -z "$deplibs_check_method" && deplibs_check_method=unknown
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037if test -n "$ac_tool_prefix"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5039set dummy ${ac_tool_prefix}ar; ac_word=$2
5040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005041$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005042if test "${ac_cv_prog_AR+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005043 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005044else
5045 if test -n "$AR"; then
5046 ac_cv_prog_AR="$AR" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_AR="${ac_tool_prefix}ar"
5056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005057 break 2
5058 fi
5059done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005060done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005061IFS=$as_save_IFS
5062
5063fi
5064fi
5065AR=$ac_cv_prog_AR
5066if test -n "$AR"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005067 { $as_echo "$as_me:$LINENO: result: $AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005068$as_echo "$AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005069else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005070 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005071$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005072fi
5073
5074
5075fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005076if test -z "$ac_cv_prog_AR"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005077 ac_ct_AR=$AR
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005078 # Extract the first word of "ar", so it can be a program name with args.
5079set dummy ar; ac_word=$2
5080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005081$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005082if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005083 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005084else
5085 if test -n "$ac_ct_AR"; then
5086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5087else
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_ac_ct_AR="ar"
5096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005097 break 2
5098 fi
5099done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005100done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005101IFS=$as_save_IFS
5102
5103fi
5104fi
5105ac_ct_AR=$ac_cv_prog_ac_ct_AR
5106if test -n "$ac_ct_AR"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005107 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005108$as_echo "$ac_ct_AR" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005109else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005110 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005111$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005112fi
5113
5114 if test "x$ac_ct_AR" = x; then
5115 AR="false"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005119{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005121ac_tool_warned=yes ;;
5122esac
5123 AR=$ac_ct_AR
5124 fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005125else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005126 AR="$ac_cv_prog_AR"
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005127fi
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005128
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005129test -z "$AR" && AR=ar
5130test -z "$AR_FLAGS" && AR_FLAGS=cru
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005131
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005132
5133
5134
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005135
5136
5137
5138
5139
5140
5141
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005142if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5144set dummy ${ac_tool_prefix}strip; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005146$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005147if test "${ac_cv_prog_STRIP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005148 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005149else
5150 if test -n "$STRIP"; then
5151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005162 break 2
5163 fi
5164done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005165done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005166IFS=$as_save_IFS
5167
5168fi
5169fi
5170STRIP=$ac_cv_prog_STRIP
5171if test -n "$STRIP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005172 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005173$as_echo "$STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005174else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005175 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005176$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005177fi
5178
5179
5180fi
5181if test -z "$ac_cv_prog_STRIP"; then
5182 ac_ct_STRIP=$STRIP
5183 # Extract the first word of "strip", so it can be a program name with args.
5184set dummy strip; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005186$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005187if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005188 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005189else
5190 if test -n "$ac_ct_STRIP"; then
5191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005200 ac_cv_prog_ac_ct_STRIP="strip"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005202 break 2
5203 fi
5204done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005205done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005206IFS=$as_save_IFS
5207
5208fi
5209fi
5210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5211if test -n "$ac_ct_STRIP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005212 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005213$as_echo "$ac_ct_STRIP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005214else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005215 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005216$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005217fi
5218
5219 if test "x$ac_ct_STRIP" = x; then
5220 STRIP=":"
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005226ac_tool_warned=yes ;;
5227esac
5228 STRIP=$ac_ct_STRIP
5229 fi
5230else
5231 STRIP="$ac_cv_prog_STRIP"
5232fi
5233
5234test -z "$STRIP" && STRIP=:
5235
5236
5237
5238
5239
5240
5241if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005244{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005245$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005246if test "${ac_cv_prog_RANLIB+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005247 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005248else
5249 if test -n "$RANLIB"; then
5250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005261 break 2
5262 fi
5263done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005264done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005265IFS=$as_save_IFS
5266
5267fi
5268fi
5269RANLIB=$ac_cv_prog_RANLIB
5270if test -n "$RANLIB"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005271 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005272$as_echo "$RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005273else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005274 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005275$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005276fi
5277
5278
5279fi
5280if test -z "$ac_cv_prog_RANLIB"; then
5281 ac_ct_RANLIB=$RANLIB
5282 # Extract the first word of "ranlib", so it can be a program name with args.
5283set dummy ranlib; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005285$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005287 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005288else
5289 if test -n "$ac_ct_RANLIB"; then
5290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005299 ac_cv_prog_ac_ct_RANLIB="ranlib"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005301 break 2
5302 fi
5303done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005304done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005305IFS=$as_save_IFS
5306
5307fi
5308fi
5309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5310if test -n "$ac_ct_RANLIB"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005311 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005312$as_echo "$ac_ct_RANLIB" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005313else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005314 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005315$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005316fi
5317
5318 if test "x$ac_ct_RANLIB" = x; then
5319 RANLIB=":"
5320 else
5321 case $cross_compiling:$ac_tool_warned in
5322yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005323{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005325ac_tool_warned=yes ;;
5326esac
5327 RANLIB=$ac_ct_RANLIB
5328 fi
5329else
5330 RANLIB="$ac_cv_prog_RANLIB"
5331fi
5332
5333test -z "$RANLIB" && RANLIB=:
5334
5335
5336
5337
5338
5339
5340# Determine commands to create old-style static archives.
5341old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5342old_postinstall_cmds='chmod 644 $oldlib'
5343old_postuninstall_cmds=
5344
5345if test -n "$RANLIB"; then
5346 case $host_os in
5347 openbsd*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005349 ;;
5350 *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005352 ;;
5353 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005354 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005355fi
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390# If no C compiler was specified, use CC.
5391LTCC=${LTCC-"$CC"}
5392
5393# If no C compiler flags were specified, use CFLAGS.
5394LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5395
5396# Allow CC to be a program name with arguments.
5397compiler=$CC
5398
5399
jef56a97f92012-08-20 14:35:58 -07005400# Check for command to grab the raw symbol name followed by C symbol from nm.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005401{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005402$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005403if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005404 $as_echo_n "(cached) " >&6
jef56a97f92012-08-20 14:35:58 -07005405else
Jon Dugane34c20c2010-07-08 23:26:52 +00005406
jef56a97f92012-08-20 14:35:58 -07005407# These are sane defaults that work on at least a few old systems.
5408# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5409
5410# Character class describing NM global symbol codes.
5411symcode='[BCDEGRST]'
5412
5413# Regexp to match symbols that can be accessed directly from C.
5414sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5415
jef56a97f92012-08-20 14:35:58 -07005416# Define system-specific variables.
5417case $host_os in
5418aix*)
5419 symcode='[BCDT]'
5420 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005421cygwin* | mingw* | pw32* | cegcc*)
jef56a97f92012-08-20 14:35:58 -07005422 symcode='[ABCDGISTW]'
5423 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005424hpux*)
jef56a97f92012-08-20 14:35:58 -07005425 if test "$host_cpu" = ia64; then
5426 symcode='[ABCDEGRST]'
5427 fi
jef56a97f92012-08-20 14:35:58 -07005428 ;;
5429irix* | nonstopux*)
5430 symcode='[BCDEGRST]'
5431 ;;
5432osf*)
5433 symcode='[BCDEGQRST]'
5434 ;;
5435solaris*)
5436 symcode='[BDRT]'
5437 ;;
5438sco3.2v5*)
5439 symcode='[DT]'
5440 ;;
5441sysv4.2uw2*)
5442 symcode='[DT]'
5443 ;;
5444sysv5* | sco5v6* | unixware* | OpenUNIX*)
5445 symcode='[ABDT]'
5446 ;;
5447sysv4)
5448 symcode='[DFNSTU]'
5449 ;;
5450esac
5451
jef56a97f92012-08-20 14:35:58 -07005452# If we're using GNU nm, then use its standard symbol codes.
5453case `$NM -V 2>&1` in
5454*GNU* | *'with BFD'*)
5455 symcode='[ABCDGIRSTW]' ;;
5456esac
5457
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005458# Transform an extracted symbol line into a proper C declaration.
5459# Some systems (esp. on ia64) link data and code symbols differently,
5460# so use this general approach.
5461lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5462
5463# Transform an extracted symbol line into symbol name and symbol address
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005464lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5465lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005466
5467# Handle CRLF in mingw tool chain
5468opt_cr=
5469case $build_os in
5470mingw*)
5471 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5472 ;;
5473esac
5474
5475# Try without a prefix underscore, then with it.
jef56a97f92012-08-20 14:35:58 -07005476for ac_symprfx in "" "_"; do
5477
5478 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5479 symxfrm="\\1 $ac_symprfx\\2 \\2"
5480
5481 # Write the raw and C identifiers.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005482 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5483 # Fake it for dumpbin and say T for any non-static function
5484 # and D for any global variable.
5485 # Also find C++ and __fastcall symbols from MSVC++,
5486 # which start with @ or ?.
5487 lt_cv_sys_global_symbol_pipe="$AWK '"\
5488" {last_section=section; section=\$ 3};"\
5489" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5490" \$ 0!~/External *\|/{next};"\
5491" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5492" {if(hide[section]) next};"\
5493" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5494" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5495" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5496" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5497" ' prfx=^$ac_symprfx"
5498 else
5499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5500 fi
jef56a97f92012-08-20 14:35:58 -07005501
5502 # Check to see that the pipe works correctly.
5503 pipe_works=no
5504
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005505 rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005506 cat > conftest.$ac_ext <<_LT_EOF
jef56a97f92012-08-20 14:35:58 -07005507#ifdef __cplusplus
5508extern "C" {
5509#endif
5510char nm_test_var;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005511void nm_test_func(void);
5512void nm_test_func(void){}
jef56a97f92012-08-20 14:35:58 -07005513#ifdef __cplusplus
5514}
5515#endif
5516int main(){nm_test_var='a';nm_test_func();return(0);}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005517_LT_EOF
jef56a97f92012-08-20 14:35:58 -07005518
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
jef56a97f92012-08-20 14:35:58 -07005520 (eval $ac_compile) 2>&5
5521 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; then
jef56a97f92012-08-20 14:35:58 -07005524 # Now try to grab the symbols.
5525 nlist=conftest.nm
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005526 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5527 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
jef56a97f92012-08-20 14:35:58 -07005528 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && test -s "$nlist"; then
jef56a97f92012-08-20 14:35:58 -07005531 # Try sorting and uniquifying the output.
5532 if sort "$nlist" | uniq > "$nlist"T; then
5533 mv -f "$nlist"T "$nlist"
5534 else
5535 rm -f "$nlist"T
5536 fi
5537
5538 # Make sure that we snagged all the symbols we need.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005539 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5540 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5541 cat <<_LT_EOF > conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07005542#ifdef __cplusplus
5543extern "C" {
5544#endif
5545
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005546_LT_EOF
jef56a97f92012-08-20 14:35:58 -07005547 # Now generate the symbol file.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005548 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
jef56a97f92012-08-20 14:35:58 -07005549
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005550 cat <<_LT_EOF >> conftest.$ac_ext
jef56a97f92012-08-20 14:35:58 -07005551
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005552/* The mapping between symbol names and symbols. */
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005553const struct {
jef56a97f92012-08-20 14:35:58 -07005554 const char *name;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005555 void *address;
jef56a97f92012-08-20 14:35:58 -07005556}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005557lt__PROGRAM__LTX_preloaded_symbols[] =
jef56a97f92012-08-20 14:35:58 -07005558{
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005559 { "@PROGRAM@", (void *) 0 },
5560_LT_EOF
5561 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5562 cat <<\_LT_EOF >> conftest.$ac_ext
5563 {0, (void *) 0}
jef56a97f92012-08-20 14:35:58 -07005564};
5565
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005566/* This works around a problem in FreeBSD linker */
5567#ifdef FREEBSD_WORKAROUND
5568static const void *lt_preloaded_setup() {
5569 return lt__PROGRAM__LTX_preloaded_symbols;
5570}
5571#endif
5572
jef56a97f92012-08-20 14:35:58 -07005573#ifdef __cplusplus
5574}
5575#endif
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005576_LT_EOF
jef56a97f92012-08-20 14:35:58 -07005577 # Now try linking the two files.
5578 mv conftest.$ac_objext conftstm.$ac_objext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005579 lt_save_LIBS="$LIBS"
5580 lt_save_CFLAGS="$CFLAGS"
jef56a97f92012-08-20 14:35:58 -07005581 LIBS="conftstm.$ac_objext"
5582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
jef56a97f92012-08-20 14:35:58 -07005584 (eval $ac_link) 2>&5
5585 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && test -s conftest${ac_exeext}; then
jef56a97f92012-08-20 14:35:58 -07005588 pipe_works=yes
5589 fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005590 LIBS="$lt_save_LIBS"
5591 CFLAGS="$lt_save_CFLAGS"
jef56a97f92012-08-20 14:35:58 -07005592 else
5593 echo "cannot find nm_test_func in $nlist" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00005594 fi
jef56a97f92012-08-20 14:35:58 -07005595 else
5596 echo "cannot find nm_test_var in $nlist" >&5
5597 fi
5598 else
5599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5600 fi
5601 else
5602 echo "$progname: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5604 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005605 rm -rf conftest* conftst*
jef56a97f92012-08-20 14:35:58 -07005606
5607 # Do not use the global_symbol_pipe unless it works.
5608 if test "$pipe_works" = yes; then
5609 break
5610 else
5611 lt_cv_sys_global_symbol_pipe=
5612 fi
5613done
5614
Jon Dugane34c20c2010-07-08 23:26:52 +00005615fi
5616
jef56a97f92012-08-20 14:35:58 -07005617if test -z "$lt_cv_sys_global_symbol_pipe"; then
5618 lt_cv_sys_global_symbol_to_cdecl=
Jon Dugane34c20c2010-07-08 23:26:52 +00005619fi
jef56a97f92012-08-20 14:35:58 -07005620if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005621 { $as_echo "$as_me:$LINENO: result: failed" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005622$as_echo "failed" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00005623else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005624 { $as_echo "$as_me:$LINENO: result: ok" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005625$as_echo "ok" >&6; }
5626fi
5627
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08005628
Jon Dugane34c20c2010-07-08 23:26:52 +00005629
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005650# Check whether --enable-libtool-lock was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005651if test "${enable_libtool_lock+set}" = set; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005652 enableval=$enable_libtool_lock;
5653fi
5654
5655test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5656
5657# Some flags need to be propagated to the compiler or linker for good
5658# libtool support.
5659case $host in
5660ia64-*-hpux*)
5661 # Find out which ABI we are using.
5662 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005664 (eval $ac_compile) 2>&5
5665 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005668 case `/usr/bin/file conftest.$ac_objext` in
5669 *ELF-32*)
5670 HPUX_IA64_MODE="32"
5671 ;;
5672 *ELF-64*)
5673 HPUX_IA64_MODE="64"
5674 ;;
5675 esac
5676 fi
5677 rm -rf conftest*
5678 ;;
5679*-*-irix6*)
5680 # Find out which ABI we are using.
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07005681 echo '#line 5681 "configure"' > conftest.$ac_ext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005683 (eval $ac_compile) 2>&5
5684 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005687 if test "$lt_cv_prog_gnu_ld" = yes; then
5688 case `/usr/bin/file conftest.$ac_objext` in
5689 *32-bit*)
5690 LD="${LD-ld} -melf32bsmip"
5691 ;;
5692 *N32*)
5693 LD="${LD-ld} -melf32bmipn32"
5694 ;;
5695 *64-bit*)
5696 LD="${LD-ld} -melf64bmip"
5697 ;;
5698 esac
5699 else
5700 case `/usr/bin/file conftest.$ac_objext` in
5701 *32-bit*)
5702 LD="${LD-ld} -32"
5703 ;;
5704 *N32*)
5705 LD="${LD-ld} -n32"
5706 ;;
5707 *64-bit*)
5708 LD="${LD-ld} -64"
5709 ;;
5710 esac
5711 fi
5712 fi
5713 rm -rf conftest*
5714 ;;
5715
5716x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5717s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5718 # Find out which ABI we are using.
5719 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005721 (eval $ac_compile) 2>&5
5722 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005725 case `/usr/bin/file conftest.o` in
5726 *32-bit*)
5727 case $host in
5728 x86_64-*kfreebsd*-gnu)
5729 LD="${LD-ld} -m elf_i386_fbsd"
5730 ;;
5731 x86_64-*linux*)
5732 LD="${LD-ld} -m elf_i386"
5733 ;;
5734 ppc64-*linux*|powerpc64-*linux*)
5735 LD="${LD-ld} -m elf32ppclinux"
5736 ;;
5737 s390x-*linux*)
5738 LD="${LD-ld} -m elf_s390"
5739 ;;
5740 sparc64-*linux*)
5741 LD="${LD-ld} -m elf32_sparc"
5742 ;;
5743 esac
5744 ;;
5745 *64-bit*)
5746 case $host in
5747 x86_64-*kfreebsd*-gnu)
5748 LD="${LD-ld} -m elf_x86_64_fbsd"
5749 ;;
5750 x86_64-*linux*)
5751 LD="${LD-ld} -m elf_x86_64"
5752 ;;
5753 ppc*-*linux*|powerpc*-*linux*)
5754 LD="${LD-ld} -m elf64ppc"
5755 ;;
5756 s390*-*linux*|s390*-*tpf*)
5757 LD="${LD-ld} -m elf64_s390"
5758 ;;
5759 sparc*-*linux*)
5760 LD="${LD-ld} -m elf64_sparc"
5761 ;;
5762 esac
5763 ;;
5764 esac
5765 fi
5766 rm -rf conftest*
5767 ;;
5768
5769*-*-sco3.2v5*)
5770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5771 SAVE_CFLAGS="$CFLAGS"
5772 CFLAGS="$CFLAGS -belf"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005773 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005774$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005775if test "${lt_cv_cc_needs_belf+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005776 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005777else
5778 ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005784 cat >conftest.$ac_ext <<_ACEOF
5785/* confdefs.h. */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005789/* end confdefs.h. */
5790
5791int
5792main ()
5793{
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005799rm -f conftest.$ac_objext conftest$ac_exeext
5800if { (ac_try="$ac_link"
5801case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5806$as_echo "$ac_try_echo") >&5
5807 (eval "$ac_link") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest$ac_exeext && {
5817 test "$cross_compiling" = yes ||
5818 $as_test_x conftest$ac_exeext
5819 }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005820 lt_cv_cc_needs_belf=yes
5821else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005822 $as_echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 lt_cv_cc_needs_belf=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005826fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005827
5828rm -rf conftest.dSYM
5829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005831 ac_ext=c
5832ac_cpp='$CPP $CPPFLAGS'
5833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
5837fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005838{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005839$as_echo "$lt_cv_cc_needs_belf" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842 CFLAGS="$SAVE_CFLAGS"
5843 fi
5844 ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005845sparc*-*solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005846 # Find out which ABI we are using.
5847 echo 'int i;' > conftest.$ac_ext
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005849 (eval $ac_compile) 2>&5
5850 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005853 case `/usr/bin/file conftest.o` in
5854 *64-bit*)
5855 case $lt_cv_prog_gnu_ld in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005856 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005857 *)
5858 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5859 LD="${LD-ld} -64"
5860 fi
5861 ;;
5862 esac
5863 ;;
5864 esac
5865 fi
5866 rm -rf conftest*
5867 ;;
5868esac
5869
5870need_locks="$enable_libtool_lock"
5871
5872
5873 case $host_os in
5874 rhapsody* | darwin*)
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5877set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005879$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005880if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005881 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005882else
5883 if test -n "$DSYMUTIL"; then
5884 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005893 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005895 break 2
5896 fi
5897done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005898done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005899IFS=$as_save_IFS
5900
5901fi
5902fi
5903DSYMUTIL=$ac_cv_prog_DSYMUTIL
5904if test -n "$DSYMUTIL"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005905 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005906$as_echo "$DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005907else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005908 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005909$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005910fi
5911
5912
5913fi
5914if test -z "$ac_cv_prog_DSYMUTIL"; then
5915 ac_ct_DSYMUTIL=$DSYMUTIL
5916 # Extract the first word of "dsymutil", so it can be a program name with args.
5917set dummy dsymutil; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005919$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005920if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005921 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005922else
5923 if test -n "$ac_ct_DSYMUTIL"; then
5924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005935 break 2
5936 fi
5937done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005938done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005939IFS=$as_save_IFS
5940
5941fi
5942fi
5943ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5944if test -n "$ac_ct_DSYMUTIL"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005945 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005946$as_echo "$ac_ct_DSYMUTIL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005947else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005948 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005949$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005950fi
5951
5952 if test "x$ac_ct_DSYMUTIL" = x; then
5953 DSYMUTIL=":"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005957{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005959ac_tool_warned=yes ;;
5960esac
5961 DSYMUTIL=$ac_ct_DSYMUTIL
5962 fi
5963else
5964 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5965fi
5966
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5969set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005971$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005972if test "${ac_cv_prog_NMEDIT+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005973 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005974else
5975 if test -n "$NMEDIT"; then
5976 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005985 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005987 break 2
5988 fi
5989done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005990done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005991IFS=$as_save_IFS
5992
5993fi
5994fi
5995NMEDIT=$ac_cv_prog_NMEDIT
5996if test -n "$NMEDIT"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07005997 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08005998$as_echo "$NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08005999else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006000 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006001$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006002fi
6003
6004
6005fi
6006if test -z "$ac_cv_prog_NMEDIT"; then
6007 ac_ct_NMEDIT=$NMEDIT
6008 # Extract the first word of "nmedit", so it can be a program name with args.
6009set dummy nmedit; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006010{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006011$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006012if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006013 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006014else
6015 if test -n "$ac_ct_NMEDIT"; then
6016 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006025 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006027 break 2
6028 fi
6029done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006030done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006031IFS=$as_save_IFS
6032
6033fi
6034fi
6035ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6036if test -n "$ac_ct_NMEDIT"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006037 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006038$as_echo "$ac_ct_NMEDIT" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006039else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006040 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006041$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006042fi
6043
6044 if test "x$ac_ct_NMEDIT" = x; then
6045 NMEDIT=":"
6046 else
6047 case $cross_compiling:$ac_tool_warned in
6048yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006049{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006051ac_tool_warned=yes ;;
6052esac
6053 NMEDIT=$ac_ct_NMEDIT
6054 fi
6055else
6056 NMEDIT="$ac_cv_prog_NMEDIT"
6057fi
6058
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6061set dummy ${ac_tool_prefix}lipo; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006063$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006064if test "${ac_cv_prog_LIPO+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006065 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006066else
6067 if test -n "$LIPO"; then
6068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6069else
6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071for as_dir in $PATH
6072do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006077 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006079 break 2
6080 fi
6081done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006082done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006083IFS=$as_save_IFS
6084
6085fi
6086fi
6087LIPO=$ac_cv_prog_LIPO
6088if test -n "$LIPO"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006089 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006090$as_echo "$LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006091else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006092 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006093$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006094fi
6095
6096
6097fi
6098if test -z "$ac_cv_prog_LIPO"; then
6099 ac_ct_LIPO=$LIPO
6100 # Extract the first word of "lipo", so it can be a program name with args.
6101set dummy lipo; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006103$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006104if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006105 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006106else
6107 if test -n "$ac_ct_LIPO"; then
6108 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6109else
6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111for as_dir in $PATH
6112do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006117 ac_cv_prog_ac_ct_LIPO="lipo"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006119 break 2
6120 fi
6121done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006122done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006123IFS=$as_save_IFS
6124
6125fi
6126fi
6127ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6128if test -n "$ac_ct_LIPO"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006129 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006130$as_echo "$ac_ct_LIPO" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006131else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006132 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006133$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006134fi
6135
6136 if test "x$ac_ct_LIPO" = x; then
6137 LIPO=":"
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006141{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006143ac_tool_warned=yes ;;
6144esac
6145 LIPO=$ac_ct_LIPO
6146 fi
6147else
6148 LIPO="$ac_cv_prog_LIPO"
6149fi
6150
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6153set dummy ${ac_tool_prefix}otool; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006155$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006156if test "${ac_cv_prog_OTOOL+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006157 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006158else
6159 if test -n "$OTOOL"; then
6160 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6161else
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006169 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006171 break 2
6172 fi
6173done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006174done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006175IFS=$as_save_IFS
6176
6177fi
6178fi
6179OTOOL=$ac_cv_prog_OTOOL
6180if test -n "$OTOOL"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006181 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006182$as_echo "$OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006183else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006184 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006185$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006186fi
6187
6188
6189fi
6190if test -z "$ac_cv_prog_OTOOL"; then
6191 ac_ct_OTOOL=$OTOOL
6192 # Extract the first word of "otool", so it can be a program name with args.
6193set dummy otool; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006195$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006196if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006197 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006198else
6199 if test -n "$ac_ct_OTOOL"; then
6200 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006209 ac_cv_prog_ac_ct_OTOOL="otool"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006211 break 2
6212 fi
6213done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006214done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6220if test -n "$ac_ct_OTOOL"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006221 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006222$as_echo "$ac_ct_OTOOL" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006223else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006224 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006225$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006226fi
6227
6228 if test "x$ac_ct_OTOOL" = x; then
6229 OTOOL=":"
6230 else
6231 case $cross_compiling:$ac_tool_warned in
6232yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006233{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006235ac_tool_warned=yes ;;
6236esac
6237 OTOOL=$ac_ct_OTOOL
6238 fi
6239else
6240 OTOOL="$ac_cv_prog_OTOOL"
6241fi
6242
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6245set dummy ${ac_tool_prefix}otool64; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006247$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006248if test "${ac_cv_prog_OTOOL64+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006249 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006250else
6251 if test -n "$OTOOL64"; then
6252 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006261 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006263 break 2
6264 fi
6265done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006266done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006267IFS=$as_save_IFS
6268
6269fi
6270fi
6271OTOOL64=$ac_cv_prog_OTOOL64
6272if test -n "$OTOOL64"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006273 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006274$as_echo "$OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006275else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006276 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006277$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006278fi
6279
6280
6281fi
6282if test -z "$ac_cv_prog_OTOOL64"; then
6283 ac_ct_OTOOL64=$OTOOL64
6284 # Extract the first word of "otool64", so it can be a program name with args.
6285set dummy otool64; ac_word=$2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006287$as_echo_n "checking for $ac_word... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006288if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006289 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006290else
6291 if test -n "$ac_ct_OTOOL64"; then
6292 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006301 ac_cv_prog_ac_ct_OTOOL64="otool64"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006303 break 2
6304 fi
6305done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006306done
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006307IFS=$as_save_IFS
6308
6309fi
6310fi
6311ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6312if test -n "$ac_ct_OTOOL64"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006313 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006314$as_echo "$ac_ct_OTOOL64" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006315else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006316 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006317$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006318fi
6319
6320 if test "x$ac_ct_OTOOL64" = x; then
6321 OTOOL64=":"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324yes:)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006325{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006327ac_tool_warned=yes ;;
6328esac
6329 OTOOL64=$ac_ct_OTOOL64
6330 fi
6331else
6332 OTOOL64="$ac_cv_prog_OTOOL64"
6333fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006361 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006362$as_echo_n "checking for -single_module linker flag... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006363if test "${lt_cv_apple_cc_single_mod+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006364 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006365else
6366 lt_cv_apple_cc_single_mod=no
6367 if test -z "${LT_MULTI_MODULE}"; then
6368 # By default we will add the -single_module flag. You can override
6369 # by either setting the environment variable LT_MULTI_MODULE
6370 # non-empty at configure time, or by adding -multi_module to the
6371 # link flags.
6372 rm -rf libconftest.dylib*
6373 echo "int foo(void){return 1;}" > conftest.c
6374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6375-dynamiclib -Wl,-single_module conftest.c" >&5
6376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6378 _lt_result=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006379 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006380 lt_cv_apple_cc_single_mod=yes
6381 else
6382 cat conftest.err >&5
6383 fi
6384 rm -rf libconftest.dylib*
6385 rm -f conftest.*
6386 fi
6387fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006388{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006389$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006390 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006391$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006392if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006393 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006394else
6395 lt_cv_ld_exported_symbols_list=no
6396 save_LDFLAGS=$LDFLAGS
6397 echo "_main" > conftest.sym
6398 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006399 cat >conftest.$ac_ext <<_ACEOF
6400/* confdefs.h. */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006404/* end confdefs.h. */
6405
6406int
6407main ()
6408{
6409
6410 ;
6411 return 0;
6412}
6413_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006414rm -f conftest.$ac_objext conftest$ac_exeext
6415if { (ac_try="$ac_link"
6416case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419esac
6420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6421$as_echo "$ac_try_echo") >&5
6422 (eval "$ac_link") 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && {
6429 test -z "$ac_c_werror_flag" ||
6430 test ! -s conftest.err
6431 } && test -s conftest$ac_exeext && {
6432 test "$cross_compiling" = yes ||
6433 $as_test_x conftest$ac_exeext
6434 }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006435 lt_cv_ld_exported_symbols_list=yes
6436else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006437 $as_echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 lt_cv_ld_exported_symbols_list=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006441fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006442
6443rm -rf conftest.dSYM
6444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6445 conftest$ac_exeext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006446 LDFLAGS="$save_LDFLAGS"
6447
6448fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006449{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006451 case $host_os in
6452 rhapsody* | darwin1.[012])
6453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6454 darwin1.*)
6455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6456 darwin*) # darwin 5.x on
6457 # if running on 10.5 or later, the deployment target defaults
6458 # to the OS version, if on x86, and 10.4, the deployment
6459 # target defaults to 10.4. Don't you love it?
6460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6461 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6463 10.[012]*)
6464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6465 10.*)
6466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6467 esac
6468 ;;
6469 esac
6470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6471 _lt_dar_single_mod='$single_module'
6472 fi
6473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6475 else
6476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6477 fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006478 if test "$DSYMUTIL" != ":"; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006479 _lt_dsymutil='~$DSYMUTIL $lib || :'
6480 else
6481 _lt_dsymutil=
6482 fi
6483 ;;
6484 esac
6485
6486ac_ext=c
6487ac_cpp='$CPP $CPPFLAGS'
6488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6490ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006491{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006492$as_echo_n "checking how to run the C preprocessor... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006493# On Suns, sometimes $CPP names a directory.
6494if test -n "$CPP" && test -d "$CPP"; then
6495 CPP=
6496fi
6497if test -z "$CPP"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006498 if test "${ac_cv_prog_CPP+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006499 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006500else
6501 # Double quotes because CPP needs to be expanded
6502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6503 do
6504 ac_preproc_ok=false
6505for ac_c_preproc_warn_flag in '' yes
6506do
6507 # Use a header file that comes with gcc, so configuring glibc
6508 # with a fresh cross-compiler works.
6509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6510 # <limits.h> exists even on freestanding compilers.
6511 # On the NeXT, cc -E runs the code through the compiler's parser,
6512 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006513 cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h. */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006518/* end confdefs.h. */
6519#ifdef __STDC__
6520# include <limits.h>
6521#else
6522# include <assert.h>
6523#endif
6524 Syntax error
6525_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006526if { (ac_try="$ac_cpp conftest.$ac_ext"
6527case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530esac
6531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532$as_echo "$ac_try_echo") >&5
6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6534 ac_status=$?
6535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } >/dev/null && {
6540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6541 test ! -s conftest.err
6542 }; then
6543 :
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006544else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006545 $as_echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006548 # Broken: fails on valid input.
6549continue
6550fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006551
6552rm -f conftest.err conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006553
6554 # OK, works on sane cases. Now check whether nonexistent headers
6555 # can be detected and how.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006556 cat >conftest.$ac_ext <<_ACEOF
6557/* confdefs.h. */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006561/* end confdefs.h. */
6562#include <ac_nonexistent.h>
6563_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006564if { (ac_try="$ac_cpp conftest.$ac_ext"
6565case "(($ac_try" in
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6568esac
6569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6570$as_echo "$ac_try_echo") >&5
6571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } >/dev/null && {
6578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6579 test ! -s conftest.err
6580 }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006581 # Broken: success on invalid input.
6582continue
6583else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006584 $as_echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006587 # Passes both tests.
6588ac_preproc_ok=:
6589break
6590fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006591
6592rm -f conftest.err conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006593
6594done
6595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006596rm -f conftest.err conftest.$ac_ext
6597if $ac_preproc_ok; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006598 break
6599fi
6600
6601 done
6602 ac_cv_prog_CPP=$CPP
6603
6604fi
6605 CPP=$ac_cv_prog_CPP
6606else
6607 ac_cv_prog_CPP=$CPP
6608fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006609{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006610$as_echo "$CPP" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006611ac_preproc_ok=false
6612for ac_c_preproc_warn_flag in '' yes
6613do
6614 # Use a header file that comes with gcc, so configuring glibc
6615 # with a fresh cross-compiler works.
6616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6617 # <limits.h> exists even on freestanding compilers.
6618 # On the NeXT, cc -E runs the code through the compiler's parser,
6619 # not just through cpp. "Syntax error" is here to catch this case.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006625/* end confdefs.h. */
6626#ifdef __STDC__
6627# include <limits.h>
6628#else
6629# include <assert.h>
6630#endif
6631 Syntax error
6632_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006633if { (ac_try="$ac_cpp conftest.$ac_ext"
6634case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637esac
6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639$as_echo "$ac_try_echo") >&5
6640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } >/dev/null && {
6647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 }; then
6650 :
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08006651else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006652 $as_echo "$as_me: failed program was:" >&5
6653sed 's/^/| /' conftest.$ac_ext >&5
6654
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006655 # Broken: fails on valid input.
6656continue
6657fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006658
6659rm -f conftest.err conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006660
6661 # OK, works on sane cases. Now check whether nonexistent headers
6662 # can be detected and how.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006663 cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h. */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006668/* end confdefs.h. */
6669#include <ac_nonexistent.h>
6670_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006671if { (ac_try="$ac_cpp conftest.$ac_ext"
6672case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675esac
6676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6677$as_echo "$ac_try_echo") >&5
6678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } >/dev/null && {
6685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 }; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006688 # Broken: success on invalid input.
6689continue
6690else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006691 $as_echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006694 # Passes both tests.
6695ac_preproc_ok=:
6696break
6697fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006698
6699rm -f conftest.err conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006700
6701done
6702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006703rm -f conftest.err conftest.$ac_ext
6704if $ac_preproc_ok; then
6705 :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006706else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006707 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006709{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6710See \`config.log' for more details." >&5
6711$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6712See \`config.log' for more details." >&2;}
6713 { (exit 1); exit 1; }; }; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006714fi
6715
6716ac_ext=c
6717ac_cpp='$CPP $CPPFLAGS'
6718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
6722
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006723{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006724$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006725if test "${ac_cv_header_stdc+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006726 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006727else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006728 cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h. */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006733/* end confdefs.h. */
6734#include <stdlib.h>
6735#include <stdarg.h>
6736#include <string.h>
6737#include <float.h>
6738
6739int
6740main ()
6741{
6742
6743 ;
6744 return 0;
6745}
6746_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006747rm -f conftest.$ac_objext
6748if { (ac_try="$ac_compile"
6749case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752esac
6753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6754$as_echo "$ac_try_echo") >&5
6755 (eval "$ac_compile") 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest.$ac_objext; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006765 ac_cv_header_stdc=yes
6766else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006767 $as_echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006771fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006772
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775if test $ac_cv_header_stdc = yes; then
6776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006777 cat >conftest.$ac_ext <<_ACEOF
6778/* confdefs.h. */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006782/* end confdefs.h. */
6783#include <string.h>
6784
6785_ACEOF
6786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006787 $EGREP "memchr" >/dev/null 2>&1; then
6788 :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006789else
6790 ac_cv_header_stdc=no
6791fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006792rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006793
6794fi
6795
6796if test $ac_cv_header_stdc = yes; then
6797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006798 cat >conftest.$ac_ext <<_ACEOF
6799/* confdefs.h. */
6800_ACEOF
6801cat confdefs.h >>conftest.$ac_ext
6802cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006803/* end confdefs.h. */
6804#include <stdlib.h>
6805
6806_ACEOF
6807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006808 $EGREP "free" >/dev/null 2>&1; then
6809 :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006810else
6811 ac_cv_header_stdc=no
6812fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006813rm -f conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006814
6815fi
6816
6817if test $ac_cv_header_stdc = yes; then
6818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006819 if test "$cross_compiling" = yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006820 :
6821else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006822 cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006827/* end confdefs.h. */
6828#include <ctype.h>
6829#include <stdlib.h>
6830#if ((' ' & 0x0FF) == 0x020)
6831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6833#else
6834# define ISLOWER(c) \
6835 (('a' <= (c) && (c) <= 'i') \
6836 || ('j' <= (c) && (c) <= 'r') \
6837 || ('s' <= (c) && (c) <= 'z'))
6838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6839#endif
6840
6841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6842int
6843main ()
6844{
6845 int i;
6846 for (i = 0; i < 256; i++)
6847 if (XOR (islower (i), ISLOWER (i))
6848 || toupper (i) != TOUPPER (i))
6849 return 2;
6850 return 0;
6851}
6852_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006853rm -f conftest$ac_exeext
6854if { (ac_try="$ac_link"
6855case "(($ac_try" in
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6858esac
6859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6860$as_echo "$ac_try_echo") >&5
6861 (eval "$ac_link") 2>&5
6862 ac_status=$?
6863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6865 { (case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868esac
6869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6870$as_echo "$ac_try_echo") >&5
6871 (eval "$ac_try") 2>&5
6872 ac_status=$?
6873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 :
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006876else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006877 $as_echo "$as_me: program exited with status $ac_status" >&5
6878$as_echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881( exit $ac_status )
6882ac_cv_header_stdc=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006883fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006884rm -rf conftest.dSYM
6885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006886fi
6887
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006888
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006889fi
6890fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006891{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006892$as_echo "$ac_cv_header_stdc" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006893if test $ac_cv_header_stdc = yes; then
6894
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006895cat >>confdefs.h <<\_ACEOF
6896#define STDC_HEADERS 1
6897_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006898
6899fi
6900
6901# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006902
6903
6904
6905
6906
6907
6908
6909
6910
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006911for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6912 inttypes.h stdint.h unistd.h
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006913do
6914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6915{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6916$as_echo_n "checking for $ac_header... " >&6; }
6917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6918 $as_echo_n "(cached) " >&6
6919else
6920 cat >conftest.$ac_ext <<_ACEOF
6921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
6926$ac_includes_default
6927
6928#include <$ac_header>
6929_ACEOF
6930rm -f conftest.$ac_objext
6931if { (ac_try="$ac_compile"
6932case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
6936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6937$as_echo "$ac_try_echo") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
6948 eval "$as_ac_Header=yes"
6949else
6950 $as_echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 eval "$as_ac_Header=no"
6954fi
6955
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957fi
6958ac_res=`eval 'as_val=${'$as_ac_Header'}
6959 $as_echo "$as_val"'`
6960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6961$as_echo "$ac_res" >&6; }
6962as_val=`eval 'as_val=${'$as_ac_Header'}
6963 $as_echo "$as_val"'`
6964 if test "x$as_val" = x""yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006965 cat >>confdefs.h <<_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08006966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006967_ACEOF
6968
6969fi
6970
6971done
6972
6973
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006974
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08006975for ac_header in dlfcn.h
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07006976do
6977as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6978{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6979$as_echo_n "checking for $ac_header... " >&6; }
6980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6981 $as_echo_n "(cached) " >&6
6982else
6983 cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h. */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h. */
6989$ac_includes_default
6990
6991#include <$ac_header>
6992_ACEOF
6993rm -f conftest.$ac_objext
6994if { (ac_try="$ac_compile"
6995case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998esac
6999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000$as_echo "$ac_try_echo") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 eval "$as_ac_Header=yes"
7012else
7013 $as_echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 eval "$as_ac_Header=no"
7017fi
7018
7019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020fi
7021ac_res=`eval 'as_val=${'$as_ac_Header'}
7022 $as_echo "$as_val"'`
7023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7024$as_echo "$ac_res" >&6; }
7025as_val=`eval 'as_val=${'$as_ac_Header'}
7026 $as_echo "$as_val"'`
7027 if test "x$as_val" = x""yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007028 cat >>confdefs.h <<_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007030_ACEOF
7031
7032fi
7033
7034done
7035
7036
7037
7038# Set options
7039
7040
7041
7042 enable_dlopen=no
7043
7044
7045 enable_win32_dll=no
7046
7047
7048 # Check whether --enable-shared was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007049if test "${enable_shared+set}" = set; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007050 enableval=$enable_shared; p=${PACKAGE-default}
7051 case $enableval in
7052 yes) enable_shared=yes ;;
7053 no) enable_shared=no ;;
7054 *)
7055 enable_shared=no
7056 # Look at the argument we got. We use all the common list separators.
7057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7058 for pkg in $enableval; do
7059 IFS="$lt_save_ifs"
7060 if test "X$pkg" = "X$p"; then
7061 enable_shared=yes
7062 fi
7063 done
7064 IFS="$lt_save_ifs"
7065 ;;
7066 esac
7067else
7068 enable_shared=yes
7069fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079 # Check whether --enable-static was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007080if test "${enable_static+set}" = set; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007081 enableval=$enable_static; p=${PACKAGE-default}
7082 case $enableval in
7083 yes) enable_static=yes ;;
7084 no) enable_static=no ;;
7085 *)
7086 enable_static=no
7087 # Look at the argument we got. We use all the common list separators.
7088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7089 for pkg in $enableval; do
7090 IFS="$lt_save_ifs"
7091 if test "X$pkg" = "X$p"; then
7092 enable_static=yes
7093 fi
7094 done
7095 IFS="$lt_save_ifs"
7096 ;;
7097 esac
7098else
7099 enable_static=yes
7100fi
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111# Check whether --with-pic was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007112if test "${with_pic+set}" = set; then
7113 withval=$with_pic; pic_mode="$withval"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007114else
7115 pic_mode=default
7116fi
7117
7118
7119test -z "$pic_mode" && pic_mode=default
7120
7121
7122
7123
7124
7125
7126
7127 # Check whether --enable-fast-install was given.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007128if test "${enable_fast_install+set}" = set; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007129 enableval=$enable_fast_install; p=${PACKAGE-default}
7130 case $enableval in
7131 yes) enable_fast_install=yes ;;
7132 no) enable_fast_install=no ;;
7133 *)
7134 enable_fast_install=no
7135 # Look at the argument we got. We use all the common list separators.
7136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7137 for pkg in $enableval; do
7138 IFS="$lt_save_ifs"
7139 if test "X$pkg" = "X$p"; then
7140 enable_fast_install=yes
7141 fi
7142 done
7143 IFS="$lt_save_ifs"
7144 ;;
7145 esac
7146else
7147 enable_fast_install=yes
7148fi
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160# This can be used to rebuild libtool when needed
7161LIBTOOL_DEPS="$ltmain"
7162
7163# Always use our own libtool.
7164LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190test -z "$LN_S" && LN_S="ln -s"
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205if test -n "${ZSH_VERSION+set}" ; then
7206 setopt NO_GLOB_SUBST
7207fi
7208
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007209{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007210$as_echo_n "checking for objdir... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007211if test "${lt_cv_objdir+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007212 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007213else
7214 rm -f .libs 2>/dev/null
7215mkdir .libs 2>/dev/null
7216if test -d .libs; then
7217 lt_cv_objdir=.libs
7218else
7219 # MS-DOS does not allow filenames that begin with a dot.
7220 lt_cv_objdir=_libs
7221fi
7222rmdir .libs 2>/dev/null
7223fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007224{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007225$as_echo "$lt_cv_objdir" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007226objdir=$lt_cv_objdir
7227
7228
7229
7230
7231
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007232cat >>confdefs.h <<_ACEOF
7233#define LT_OBJDIR "$lt_cv_objdir/"
7234_ACEOF
7235
7236
7237
7238
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
Jon Dugane34c20c2010-07-08 23:26:52 +00007252case $host_os in
7253aix3*)
7254 # AIX sometimes has problems with the GCC collect2 program. For some
7255 # reason, if we set the COLLECT_NAMES environment variable, the problems
7256 # vanish in a puff of smoke.
7257 if test "X${COLLECT_NAMES+set}" != Xset; then
7258 COLLECT_NAMES=
7259 export COLLECT_NAMES
7260 fi
7261 ;;
7262esac
7263
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007264# Sed substitution that helps us do robust quoting. It backslashifies
7265# metacharacters that are still active within double-quoted strings.
7266sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7267
7268# Same as above, but do not quote variable references.
7269double_quote_subst='s/\(["`\\]\)/\\\1/g'
7270
7271# Sed substitution to delay expansion of an escaped shell variable in a
7272# double_quote_subst'ed string.
7273delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7274
7275# Sed substitution to delay expansion of an escaped single quote.
7276delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7277
7278# Sed substitution to avoid accidental globbing in evaled expressions
7279no_glob_subst='s/\*/\\\*/g'
7280
Jon Dugane34c20c2010-07-08 23:26:52 +00007281# Global variables:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007282ofile=libtool
Jon Dugane34c20c2010-07-08 23:26:52 +00007283can_build_shared=yes
7284
7285# All known linkers require a `.a' archive for static linking (except MSVC,
7286# which needs '.lib').
7287libext=a
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007288
Jon Dugane34c20c2010-07-08 23:26:52 +00007289with_gnu_ld="$lt_cv_prog_gnu_ld"
7290
7291old_CC="$CC"
7292old_CFLAGS="$CFLAGS"
7293
7294# Set sane defaults for various variables
7295test -z "$CC" && CC=cc
7296test -z "$LTCC" && LTCC=$CC
7297test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7298test -z "$LD" && LD=ld
7299test -z "$ac_objext" && ac_objext=o
7300
7301for cc_temp in $compiler""; do
7302 case $cc_temp in
7303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7305 \-*) ;;
7306 *) break;;
7307 esac
7308done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007309cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Jon Dugane34c20c2010-07-08 23:26:52 +00007310
7311
7312# Only perform the check for file, if the check method requires it
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007313test -z "$MAGIC_CMD" && MAGIC_CMD=file
Jon Dugane34c20c2010-07-08 23:26:52 +00007314case $deplibs_check_method in
7315file_magic*)
7316 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007317 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007318$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007319if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007320 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007321else
7322 case $MAGIC_CMD in
7323[\\/*] | ?:[\\/]*)
7324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7325 ;;
7326*)
7327 lt_save_MAGIC_CMD="$MAGIC_CMD"
7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7330 for ac_dir in $ac_dummy; do
7331 IFS="$lt_save_ifs"
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f $ac_dir/${ac_tool_prefix}file; then
7334 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7335 if test -n "$file_magic_test_file"; then
7336 case $deplibs_check_method in
7337 "file_magic "*)
7338 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7341 $EGREP "$file_magic_regex" > /dev/null; then
7342 :
7343 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007344 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007345
7346*** Warning: the command libtool uses to detect shared libraries,
7347*** $file_magic_cmd, produces output that libtool cannot recognize.
7348*** The result is that libtool may fail to recognize shared libraries
7349*** as such. This will affect the creation of libtool libraries that
7350*** depend on shared libraries, but programs linked with such libtool
7351*** libraries will work regardless of this problem. Nevertheless, you
7352*** may want to report the problem to your system manager and/or to
7353*** bug-libtool@gnu.org
7354
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007355_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007356 fi ;;
7357 esac
7358 fi
7359 break
7360 fi
7361 done
7362 IFS="$lt_save_ifs"
7363 MAGIC_CMD="$lt_save_MAGIC_CMD"
7364 ;;
7365esac
7366fi
7367
7368MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369if test -n "$MAGIC_CMD"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007370 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007371$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007372else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007373 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007374$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007375fi
7376
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007377
7378
7379
7380
Jon Dugane34c20c2010-07-08 23:26:52 +00007381if test -z "$lt_cv_path_MAGIC_CMD"; then
7382 if test -n "$ac_tool_prefix"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007383 { $as_echo "$as_me:$LINENO: checking for file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007384$as_echo_n "checking for file... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007385if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007386 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007387else
7388 case $MAGIC_CMD in
7389[\\/*] | ?:[\\/]*)
7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391 ;;
7392*)
7393 lt_save_MAGIC_CMD="$MAGIC_CMD"
7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396 for ac_dir in $ac_dummy; do
7397 IFS="$lt_save_ifs"
7398 test -z "$ac_dir" && ac_dir=.
7399 if test -f $ac_dir/file; then
7400 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7401 if test -n "$file_magic_test_file"; then
7402 case $deplibs_check_method in
7403 "file_magic "*)
7404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407 $EGREP "$file_magic_regex" > /dev/null; then
7408 :
7409 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007410 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00007411
7412*** Warning: the command libtool uses to detect shared libraries,
7413*** $file_magic_cmd, produces output that libtool cannot recognize.
7414*** The result is that libtool may fail to recognize shared libraries
7415*** as such. This will affect the creation of libtool libraries that
7416*** depend on shared libraries, but programs linked with such libtool
7417*** libraries will work regardless of this problem. Nevertheless, you
7418*** may want to report the problem to your system manager and/or to
7419*** bug-libtool@gnu.org
7420
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007421_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00007422 fi ;;
7423 esac
7424 fi
7425 break
7426 fi
7427 done
7428 IFS="$lt_save_ifs"
7429 MAGIC_CMD="$lt_save_MAGIC_CMD"
7430 ;;
7431esac
7432fi
7433
7434MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435if test -n "$MAGIC_CMD"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007436 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007437$as_echo "$MAGIC_CMD" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007438else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007439 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007440$as_echo "no" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007441fi
7442
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007443
Jon Dugane34c20c2010-07-08 23:26:52 +00007444 else
7445 MAGIC_CMD=:
7446 fi
7447fi
7448
7449 fi
7450 ;;
7451esac
7452
jef56a97f92012-08-20 14:35:58 -07007453# Use C for the default configuration in the libtool script
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007454
Jon Dugane34c20c2010-07-08 23:26:52 +00007455lt_save_CC="$CC"
7456ac_ext=c
7457ac_cpp='$CPP $CPPFLAGS'
7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463# Source file extension for C test sources.
7464ac_ext=c
7465
7466# Object file extension for compiled C test sources.
7467objext=o
7468objext=$objext
7469
7470# Code to be used in simple compile tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007471lt_simple_compile_test_code="int some_variable = 0;"
Jon Dugane34c20c2010-07-08 23:26:52 +00007472
7473# Code to be used in simple link tests
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007474lt_simple_link_test_code='int main(){return(0);}'
7475
7476
7477
7478
7479
Jon Dugane34c20c2010-07-08 23:26:52 +00007480
7481
7482# If no C compiler was specified, use CC.
7483LTCC=${LTCC-"$CC"}
7484
7485# If no C compiler flags were specified, use CFLAGS.
7486LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7487
7488# Allow CC to be a program name with arguments.
7489compiler=$CC
7490
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007491# Save the default compiler, since it gets overwritten when the other
7492# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7493compiler_DEFAULT=$CC
Jon Dugane34c20c2010-07-08 23:26:52 +00007494
7495# save warnings/boilerplate of simple test code
7496ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007497echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7499_lt_compiler_boilerplate=`cat conftest.err`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007500$RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007501
7502ac_outfile=conftest.$ac_objext
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007503echo "$lt_simple_link_test_code" >conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505_lt_linker_boilerplate=`cat conftest.err`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007506$RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007507
7508
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007509if test -n "$compiler"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007510
7511lt_prog_compiler_no_builtin_flag=
7512
7513if test "$GCC" = yes; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007514 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
Jon Dugane34c20c2010-07-08 23:26:52 +00007515
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007516 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007517$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007518if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007519 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007520else
7521 lt_cv_prog_compiler_rtti_exceptions=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007522 ac_outfile=conftest.$ac_objext
7523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007524 lt_compiler_flag="-fno-rtti -fno-exceptions"
7525 # Insert the option either (1) after the last *FLAGS variable, or
7526 # (2) before a word containing "conftest.", or (3) at the end.
7527 # Note that $ac_compile itself does not contain backslashes and begins
7528 # with a dollar sign (not a hyphen), so the echo should work correctly.
7529 # The option is referenced via a variable to avoid confusing sed.
7530 lt_compile=`echo "$ac_compile" | $SED \
7531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7533 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07007534 (eval echo "\"\$as_me:7534: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007535 (eval "$lt_compile" 2>conftest.err)
7536 ac_status=$?
7537 cat conftest.err >&5
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07007538 echo "$as_me:7538: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007539 if (exit $ac_status) && test -s "$ac_outfile"; then
7540 # The compiler can only warn and ignore the option if not recognized
7541 # So say no if there are warnings other than the usual output.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007542 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7545 lt_cv_prog_compiler_rtti_exceptions=yes
7546 fi
7547 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007548 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007549
7550fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007551{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007552$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007553
7554if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7556else
7557 :
7558fi
7559
7560fi
7561
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007562
7563
7564
7565
7566
7567 lt_prog_compiler_wl=
Jon Dugane34c20c2010-07-08 23:26:52 +00007568lt_prog_compiler_pic=
7569lt_prog_compiler_static=
7570
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007571{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7572$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007573
7574 if test "$GCC" = yes; then
7575 lt_prog_compiler_wl='-Wl,'
7576 lt_prog_compiler_static='-static'
7577
7578 case $host_os in
7579 aix*)
7580 # All AIX code is PIC.
7581 if test "$host_cpu" = ia64; then
7582 # AIX 5 now supports IA64 processor
7583 lt_prog_compiler_static='-Bstatic'
7584 fi
7585 ;;
7586
7587 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007588 case $host_cpu in
7589 powerpc)
7590 # see comment about AmigaOS4 .so support
7591 lt_prog_compiler_pic='-fPIC'
7592 ;;
7593 m68k)
7594 # FIXME: we need at least 68020 code to build shared libraries, but
7595 # adding the `-m68020' flag to GCC prevents building anything better,
7596 # like `-m68040'.
7597 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7598 ;;
7599 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007600 ;;
7601
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007603 # PIC is the default for these OSes.
7604 ;;
7605
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007606 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007607 # This hack is so that the source file can tell whether it is being
7608 # built for inclusion in a dll (and should export symbols for example).
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007609 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7610 # (--disable-auto-import) libraries
Jon Dugane34c20c2010-07-08 23:26:52 +00007611 lt_prog_compiler_pic='-DDLL_EXPORT'
7612 ;;
7613
7614 darwin* | rhapsody*)
7615 # PIC is the default on this platform
7616 # Common symbols not allowed in MH_DYLIB files
7617 lt_prog_compiler_pic='-fno-common'
7618 ;;
7619
jef56a97f92012-08-20 14:35:58 -07007620 hpux*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007621 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7622 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7623 # sets the default TLS model and affects inlining.
jef56a97f92012-08-20 14:35:58 -07007624 case $host_cpu in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007625 hppa*64*)
jef56a97f92012-08-20 14:35:58 -07007626 # +Z the default
7627 ;;
7628 *)
7629 lt_prog_compiler_pic='-fPIC'
7630 ;;
7631 esac
7632 ;;
7633
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007634 interix[3-9]*)
7635 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7636 # Instead, we relocate shared libraries at runtime.
7637 ;;
7638
7639 msdosdjgpp*)
7640 # Just because we use GCC doesn't mean we suddenly get shared libraries
7641 # on systems that don't support them.
7642 lt_prog_compiler_can_build_shared=no
7643 enable_shared=no
7644 ;;
7645
7646 *nto* | *qnx*)
7647 # QNX uses GNU C++, but need to define -shared option too, otherwise
7648 # it will coredump.
7649 lt_prog_compiler_pic='-fPIC -shared'
7650 ;;
7651
7652 sysv4*MP*)
7653 if test -d /usr/nec; then
7654 lt_prog_compiler_pic=-Kconform_pic
7655 fi
7656 ;;
7657
Jon Dugane34c20c2010-07-08 23:26:52 +00007658 *)
7659 lt_prog_compiler_pic='-fPIC'
7660 ;;
7661 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00007662 else
7663 # PORTME Check for flag to pass linker flags through the system compiler.
7664 case $host_os in
7665 aix*)
7666 lt_prog_compiler_wl='-Wl,'
7667 if test "$host_cpu" = ia64; then
7668 # AIX 5 now supports IA64 processor
7669 lt_prog_compiler_static='-Bstatic'
7670 else
7671 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7672 fi
7673 ;;
7674
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007675 mingw* | cygwin* | pw32* | os2* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007676 # This hack is so that the source file can tell whether it is being
7677 # built for inclusion in a dll (and should export symbols for example).
7678 lt_prog_compiler_pic='-DDLL_EXPORT'
7679 ;;
7680
7681 hpux9* | hpux10* | hpux11*)
7682 lt_prog_compiler_wl='-Wl,'
7683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7684 # not for PA HP-UX.
7685 case $host_cpu in
7686 hppa*64*|ia64*)
7687 # +Z the default
7688 ;;
7689 *)
7690 lt_prog_compiler_pic='+Z'
7691 ;;
7692 esac
7693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7694 lt_prog_compiler_static='${wl}-a ${wl}archive'
7695 ;;
7696
7697 irix5* | irix6* | nonstopux*)
7698 lt_prog_compiler_wl='-Wl,'
7699 # PIC (with -KPIC) is the default.
7700 lt_prog_compiler_static='-non_shared'
7701 ;;
7702
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007703 linux* | k*bsd*-gnu)
Jon Dugane34c20c2010-07-08 23:26:52 +00007704 case $cc_basename in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007705 # old Intel for x86_64 which still supported -KPIC.
7706 ecc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-KPIC'
7709 lt_prog_compiler_static='-static'
7710 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007711 # icc used to be incompatible with GCC.
7712 # ICC 10 doesn't accept -KPIC any more.
7713 icc* | ifort*)
7714 lt_prog_compiler_wl='-Wl,'
7715 lt_prog_compiler_pic='-fPIC'
7716 lt_prog_compiler_static='-static'
7717 ;;
7718 # Lahey Fortran 8.1.
7719 lf95*)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='--shared'
7722 lt_prog_compiler_static='--static'
7723 ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007724 pgcc* | pgf77* | pgf90* | pgf95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007725 # Portland Group compilers (*not* the Pentium gcc compiler,
7726 # which looks to be a dead project)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-fpic'
7729 lt_prog_compiler_static='-Bstatic'
7730 ;;
7731 ccc*)
7732 lt_prog_compiler_wl='-Wl,'
7733 # All Alpha code is PIC.
7734 lt_prog_compiler_static='-non_shared'
7735 ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007736 xl*)
7737 # IBM XL C 8.0/Fortran 10.1 on PPC
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_pic='-qpic'
7740 lt_prog_compiler_static='-qstaticlink'
7741 ;;
7742 *)
7743 case `$CC -V 2>&1 | sed 5q` in
7744 *Sun\ C*)
7745 # Sun C 5.9
7746 lt_prog_compiler_pic='-KPIC'
7747 lt_prog_compiler_static='-Bstatic'
7748 lt_prog_compiler_wl='-Wl,'
7749 ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007750 *Sun\ F*)
7751 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7752 lt_prog_compiler_pic='-KPIC'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007753 lt_prog_compiler_static='-Bstatic'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007754 lt_prog_compiler_wl=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007755 ;;
7756 esac
7757 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00007758 esac
7759 ;;
7760
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007761 newsos6)
7762 lt_prog_compiler_pic='-KPIC'
7763 lt_prog_compiler_static='-Bstatic'
7764 ;;
7765
7766 *nto* | *qnx*)
7767 # QNX uses GNU C++, but need to define -shared option too, otherwise
7768 # it will coredump.
7769 lt_prog_compiler_pic='-fPIC -shared'
7770 ;;
7771
Jon Dugane34c20c2010-07-08 23:26:52 +00007772 osf3* | osf4* | osf5*)
7773 lt_prog_compiler_wl='-Wl,'
7774 # All OSF/1 code is PIC.
7775 lt_prog_compiler_static='-non_shared'
7776 ;;
7777
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007778 rdos*)
7779 lt_prog_compiler_static='-non_shared'
7780 ;;
7781
Jon Dugane34c20c2010-07-08 23:26:52 +00007782 solaris*)
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 case $cc_basename in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007786 f77* | f90* | f95*)
Jon Dugane34c20c2010-07-08 23:26:52 +00007787 lt_prog_compiler_wl='-Qoption ld ';;
7788 *)
7789 lt_prog_compiler_wl='-Wl,';;
7790 esac
7791 ;;
7792
7793 sunos4*)
7794 lt_prog_compiler_wl='-Qoption ld '
7795 lt_prog_compiler_pic='-PIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 ;;
7798
7799 sysv4 | sysv4.2uw2* | sysv4.3*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 ;;
7804
7805 sysv4*MP*)
7806 if test -d /usr/nec ;then
7807 lt_prog_compiler_pic='-Kconform_pic'
7808 lt_prog_compiler_static='-Bstatic'
7809 fi
7810 ;;
7811
7812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7813 lt_prog_compiler_wl='-Wl,'
7814 lt_prog_compiler_pic='-KPIC'
7815 lt_prog_compiler_static='-Bstatic'
7816 ;;
7817
7818 unicos*)
7819 lt_prog_compiler_wl='-Wl,'
7820 lt_prog_compiler_can_build_shared=no
7821 ;;
7822
7823 uts4*)
7824 lt_prog_compiler_pic='-pic'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827
7828 *)
7829 lt_prog_compiler_can_build_shared=no
7830 ;;
7831 esac
7832 fi
7833
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007834case $host_os in
7835 # For platforms which do not support PIC, -DPIC is meaningless:
7836 *djgpp*)
7837 lt_prog_compiler_pic=
7838 ;;
7839 *)
7840 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7841 ;;
7842esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007843{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7844$as_echo "$lt_prog_compiler_pic" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007845
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007846
7847
7848
7849
Jon Dugane34c20c2010-07-08 23:26:52 +00007850
7851#
7852# Check to make sure the PIC flag actually works.
7853#
7854if test -n "$lt_prog_compiler_pic"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007855 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007856$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007857if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007858 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007859else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007860 lt_cv_prog_compiler_pic_works=no
7861 ac_outfile=conftest.$ac_objext
7862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007863 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7864 # Insert the option either (1) after the last *FLAGS variable, or
7865 # (2) before a word containing "conftest.", or (3) at the end.
7866 # Note that $ac_compile itself does not contain backslashes and begins
7867 # with a dollar sign (not a hyphen), so the echo should work correctly.
7868 # The option is referenced via a variable to avoid confusing sed.
7869 lt_compile=`echo "$ac_compile" | $SED \
7870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7872 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07007873 (eval echo "\"\$as_me:7873: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007874 (eval "$lt_compile" 2>conftest.err)
7875 ac_status=$?
7876 cat conftest.err >&5
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07007877 echo "$as_me:7877: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007878 if (exit $ac_status) && test -s "$ac_outfile"; then
7879 # The compiler can only warn and ignore the option if not recognized
7880 # So say no if there are warnings other than the usual output.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007881 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007884 lt_cv_prog_compiler_pic_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007885 fi
7886 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007887 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007888
7889fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007890{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007891$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007892
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007893if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007894 case $lt_prog_compiler_pic in
7895 "" | " "*) ;;
7896 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7897 esac
7898else
7899 lt_prog_compiler_pic=
7900 lt_prog_compiler_can_build_shared=no
7901fi
7902
7903fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007904
7905
7906
7907
7908
jef2ab386b2012-08-10 12:43:50 -07007909
Jon Dugane34c20c2010-07-08 23:26:52 +00007910#
7911# Check to make sure the static flag actually works.
7912#
7913wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007914{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007915$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007916if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007917 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007918else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007919 lt_cv_prog_compiler_static_works=no
Jon Dugane34c20c2010-07-08 23:26:52 +00007920 save_LDFLAGS="$LDFLAGS"
7921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007922 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7924 # The linker can only warn and ignore the option if not recognized
7925 # So say no if there are warnings
7926 if test -s conftest.err; then
7927 # Append any errors to the config.log.
7928 cat conftest.err 1>&5
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007929 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7931 if diff conftest.exp conftest.er2 >/dev/null; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007932 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007933 fi
7934 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007935 lt_cv_prog_compiler_static_works=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00007936 fi
7937 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007938 $RM -r conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007939 LDFLAGS="$save_LDFLAGS"
7940
7941fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007942{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007943$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00007944
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007945if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00007946 :
7947else
7948 lt_prog_compiler_static=
7949fi
7950
7951
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007952
7953
7954
7955
7956
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007957 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007958$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007959if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007960 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +00007961else
7962 lt_cv_prog_compiler_c_o=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007963 $RM -r conftest 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00007964 mkdir conftest
7965 cd conftest
7966 mkdir out
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00007968
7969 lt_compiler_flag="-o out/conftest2.$ac_objext"
7970 # Insert the option either (1) after the last *FLAGS variable, or
7971 # (2) before a word containing "conftest.", or (3) at the end.
7972 # Note that $ac_compile itself does not contain backslashes and begins
7973 # with a dollar sign (not a hyphen), so the echo should work correctly.
7974 lt_compile=`echo "$ac_compile" | $SED \
7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07007978 (eval echo "\"\$as_me:7978: $lt_compile\"" >&5)
Jon Dugane34c20c2010-07-08 23:26:52 +00007979 (eval "$lt_compile" 2>out/conftest.err)
7980 ac_status=$?
7981 cat out/conftest.err >&5
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07007982 echo "$as_me:7982: \$? = $ac_status" >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00007983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7984 then
7985 # The compiler can only warn and ignore the option if not recognized
7986 # So say no if there are warnings
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07007987 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Jon Dugane34c20c2010-07-08 23:26:52 +00007988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7990 lt_cv_prog_compiler_c_o=yes
7991 fi
7992 fi
7993 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08007994 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00007995 # SGI C++ compiler will create directory out/ii_files/ for
7996 # template instantiation
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08007997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7998 $RM out/* && rmdir out
Jon Dugane34c20c2010-07-08 23:26:52 +00007999 cd ..
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008000 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008001 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008002
8003fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008004{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008005$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008006
8007
8008
8009
8010
8011
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008012 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008014if test "${lt_cv_prog_compiler_c_o+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008015 $as_echo_n "(cached) " >&6
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008016else
8017 lt_cv_prog_compiler_c_o=no
8018 $RM -r conftest 2>/dev/null
8019 mkdir conftest
8020 cd conftest
8021 mkdir out
8022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8023
8024 lt_compiler_flag="-o out/conftest2.$ac_objext"
8025 # Insert the option either (1) after the last *FLAGS variable, or
8026 # (2) before a word containing "conftest.", or (3) at the end.
8027 # Note that $ac_compile itself does not contain backslashes and begins
8028 # with a dollar sign (not a hyphen), so the echo should work correctly.
8029 lt_compile=`echo "$ac_compile" | $SED \
8030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032 -e 's:$: $lt_compiler_flag:'`
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07008033 (eval echo "\"\$as_me:8033: $lt_compile\"" >&5)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008034 (eval "$lt_compile" 2>out/conftest.err)
8035 ac_status=$?
8036 cat out/conftest.err >&5
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -07008037 echo "$as_me:8037: \$? = $ac_status" >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8039 then
8040 # The compiler can only warn and ignore the option if not recognized
8041 # So say no if there are warnings
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8045 lt_cv_prog_compiler_c_o=yes
8046 fi
8047 fi
8048 chmod u+w . 2>&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008049 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008050 # SGI C++ compiler will create directory out/ii_files/ for
8051 # template instantiation
8052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8053 $RM out/* && rmdir out
8054 cd ..
8055 $RM -r conftest
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008056 $RM conftest*
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008057
8058fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008059{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008060$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008061
8062
Jon Dugane34c20c2010-07-08 23:26:52 +00008063
8064
Jon Dugane34c20c2010-07-08 23:26:52 +00008065hard_links="nottested"
8066if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8067 # do not overwrite the value of need_locks provided by the user
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008068 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008069$as_echo_n "checking if we can lock with hard links... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008070 hard_links=yes
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008071 $RM conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +00008072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8073 touch conftest.a
8074 ln conftest.a conftest.b 2>&5 || hard_links=no
8075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008076 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008077$as_echo "$hard_links" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008078 if test "$hard_links" = no; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008079 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008080$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 +00008081 need_locks=warn
8082 fi
8083else
8084 need_locks=no
8085fi
8086
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008087
8088
8089
8090
8091
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008092 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008093$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00008094
8095 runpath_var=
8096 allow_undefined_flag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008097 always_export_symbols=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008098 archive_cmds=
8099 archive_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008100 compiler_needs_object=no
8101 enable_shared_with_static_runtimes=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008102 export_dynamic_flag_spec=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8104 hardcode_automatic=no
8105 hardcode_direct=no
8106 hardcode_direct_absolute=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008107 hardcode_libdir_flag_spec=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008108 hardcode_libdir_flag_spec_ld=
Jon Dugane34c20c2010-07-08 23:26:52 +00008109 hardcode_libdir_separator=
8110 hardcode_minus_L=no
8111 hardcode_shlibpath_var=unsupported
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008112 inherit_rpath=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008113 link_all_deplibs=unknown
8114 module_cmds=
8115 module_expsym_cmds=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008116 old_archive_from_new_cmds=
8117 old_archive_from_expsyms_cmds=
8118 thread_safe_flag_spec=
8119 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008120 # include_expsyms should be a list of space-separated symbols to be *always*
8121 # included in the symbol list
8122 include_expsyms=
8123 # exclude_expsyms can be an extended regexp of symbols to exclude
8124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8126 # as well as any symbol that contains `d'.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008127 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Jon Dugane34c20c2010-07-08 23:26:52 +00008128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8129 # platforms (ab)use it in PIC code, but their linkers get confused if
8130 # the symbol is explicitly referenced. Since portable code cannot
8131 # rely on this symbol name, it's probably fine to never include it in
8132 # preloaded symbol tables.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008133 # Exclude shared library initialization/finalization symbols.
Jon Dugane34c20c2010-07-08 23:26:52 +00008134 extract_expsyms_cmds=
8135
8136 case $host_os in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008137 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8139 # When not using gcc, we currently assume that we are using
8140 # Microsoft Visual C++.
8141 if test "$GCC" != yes; then
8142 with_gnu_ld=no
8143 fi
8144 ;;
8145 interix*)
8146 # we just hope/assume this is gcc and not c89 (= MSVC++)
8147 with_gnu_ld=yes
8148 ;;
8149 openbsd*)
8150 with_gnu_ld=no
8151 ;;
8152 esac
8153
8154 ld_shlibs=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008155 if test "$with_gnu_ld" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008156 # If archive_cmds runs LD, not CC, wlarc should be empty
8157 wlarc='${wl}'
8158
8159 # Set some defaults for GNU ld with shared library support. These
8160 # are reset later if shared libraries are not supported. Putting them
8161 # here allows them to be overridden if necessary.
8162 runpath_var=LD_RUN_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008164 export_dynamic_flag_spec='${wl}--export-dynamic'
8165 # ancient GNU ld didn't support --whole-archive et. al.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008166 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8167 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8168 else
8169 whole_archive_flag_spec=
Jon Dugane34c20c2010-07-08 23:26:52 +00008170 fi
8171 supports_anon_versioning=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008172 case `$LD -v 2>&1` in
Jon Dugane34c20c2010-07-08 23:26:52 +00008173 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8176 *\ 2.11.*) ;; # other 2.11 versions
8177 *) supports_anon_versioning=yes ;;
8178 esac
8179
8180 # See if GNU ld supports shared libraries.
8181 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008182 aix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008183 # On AIX/PPC, the GNU linker is very broken
8184 if test "$host_cpu" != ia64; then
8185 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008186 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008187
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008188*** Warning: the GNU linker, at least up to release 2.9.1, is reported
Jon Dugane34c20c2010-07-08 23:26:52 +00008189*** to be unable to reliably create shared libraries on AIX.
8190*** Therefore, libtool is disabling shared libraries support. If you
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008191*** really care for shared libraries, you may want to modify your PATH
8192*** so that a non-GNU linker is found, and then restart.
Jon Dugane34c20c2010-07-08 23:26:52 +00008193
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008194_LT_EOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008195 fi
8196 ;;
8197
8198 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008199 case $host_cpu in
8200 powerpc)
8201 # see comment about AmigaOS4 .so support
8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203 archive_expsym_cmds=''
8204 ;;
8205 m68k)
8206 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)'
8207 hardcode_libdir_flag_spec='-L$libdir'
8208 hardcode_minus_L=yes
8209 ;;
8210 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008211 ;;
8212
8213 beos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008215 allow_undefined_flag=unsupported
8216 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8217 # support --undefined. This deserves some investigation. FIXME
8218 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219 else
8220 ld_shlibs=no
8221 fi
8222 ;;
8223
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008224 cygwin* | mingw* | pw32* | cegcc*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008225 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Jon Dugane34c20c2010-07-08 23:26:52 +00008226 # as there is no search path for DLLs.
8227 hardcode_libdir_flag_spec='-L$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008228 allow_undefined_flag=unsupported
8229 always_export_symbols=no
8230 enable_shared_with_static_runtimes=yes
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008232
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8235 # If the export-symbols file already is a .def file (1st line
8236 # is EXPORTS), use it as is; otherwise, prepend...
8237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8238 cp $export_symbols $output_objdir/$soname.def;
8239 else
8240 echo EXPORTS > $output_objdir/$soname.def;
8241 cat $export_symbols >> $output_objdir/$soname.def;
8242 fi~
8243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8244 else
8245 ld_shlibs=no
8246 fi
8247 ;;
8248
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008249 interix[3-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008250 hardcode_direct=no
8251 hardcode_shlibpath_var=no
8252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8253 export_dynamic_flag_spec='${wl}-E'
8254 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8255 # Instead, shared libraries are loaded at an image base (0x10000000 by
8256 # default) and relocated if they conflict, which is a slow very memory
8257 # consuming and fragmenting process. To avoid this, we pick a random,
8258 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8259 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8260 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8261 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'
8262 ;;
8263
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008264 gnu* | linux* | tpf* | k*bsd*-gnu)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008265 tmp_diet=no
8266 if test "$host_os" = linux-dietlibc; then
8267 case $cc_basename in
8268 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8269 esac
8270 fi
8271 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8272 && test "$tmp_diet" = no
8273 then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008274 tmp_addflag=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008275 tmp_sharedflag='-shared'
Jon Dugane34c20c2010-07-08 23:26:52 +00008276 case $cc_basename,$host_cpu in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008277 pgcc*) # Portland Group C compiler
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008278 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008279 tmp_addflag=' $pic_flag'
8280 ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008281 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8282 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Jon Dugane34c20c2010-07-08 23:26:52 +00008283 tmp_addflag=' $pic_flag -Mnomain' ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008284 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Jon Dugane34c20c2010-07-08 23:26:52 +00008285 tmp_addflag=' -i_dynamic' ;;
8286 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8287 tmp_addflag=' -i_dynamic -nofor_main' ;;
8288 ifc* | ifort*) # Intel Fortran compiler
8289 tmp_addflag=' -nofor_main' ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008290 lf95*) # Lahey Fortran 8.1
8291 whole_archive_flag_spec=
8292 tmp_sharedflag='--shared' ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008293 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008294 tmp_sharedflag='-qmkshrobj'
8295 tmp_addflag= ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00008296 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008297 case `$CC -V 2>&1 | sed 5q` in
8298 *Sun\ C*) # Sun C 5.9
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008299 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008300 compiler_needs_object=yes
8301 tmp_sharedflag='-G' ;;
8302 *Sun\ F*) # Sun Fortran 8.3
8303 tmp_sharedflag='-G' ;;
8304 esac
8305 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008306
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008307 if test "x$supports_anon_versioning" = xyes; then
8308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8310 echo "local: *; };" >> $output_objdir/$libname.ver~
8311 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8312 fi
8313
8314 case $cc_basename in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008315 xlf*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008316 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8317 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008318 hardcode_libdir_flag_spec=
8319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8320 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008321 if test "x$supports_anon_versioning" = xyes; then
8322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8324 echo "local: *; };" >> $output_objdir/$libname.ver~
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008325 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008326 fi
8327 ;;
8328 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008329 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008330 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008331 fi
8332 ;;
8333
8334 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8337 wlarc=
8338 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340 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 +00008341 fi
8342 ;;
8343
8344 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008345 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008346 ld_shlibs=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008347 cat <<_LT_EOF 1>&2
Jon Dugane34c20c2010-07-08 23:26:52 +00008348
8349*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8350*** create shared libraries on Solaris systems. Therefore, libtool
8351*** is disabling shared libraries support. We urge you to upgrade GNU
8352*** binutils to release 2.9.1 or newer. Another option is to modify
8353*** your PATH or compiler configuration so that the native linker is
8354*** used, and then restart.
8355
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008356_LT_EOF
8357 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359 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 +00008360 else
8361 ld_shlibs=no
8362 fi
8363 ;;
8364
8365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8366 case `$LD -v 2>&1` in
8367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8368 ld_shlibs=no
8369 cat <<_LT_EOF 1>&2
8370
8371*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8372*** reliably create shared libraries on SCO systems. Therefore, libtool
8373*** is disabling shared libraries support. We urge you to upgrade GNU
8374*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8375*** your PATH or compiler configuration so that the native linker is
8376*** used, and then restart.
8377
8378_LT_EOF
8379 ;;
8380 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008381 # For security reasons, it is highly recommended that you always
8382 # use absolute paths for naming shared libraries, and exclude the
8383 # DT_RUNPATH tag from executables and libraries. But doing so
8384 # requires that you compile everything twice, which is a pain.
8385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388 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 +00008389 else
8390 ld_shlibs=no
8391 fi
8392 ;;
8393 esac
8394 ;;
8395
8396 sunos4*)
8397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8398 wlarc=
8399 hardcode_direct=yes
8400 hardcode_shlibpath_var=no
8401 ;;
8402
8403 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406 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 +00008407 else
8408 ld_shlibs=no
8409 fi
8410 ;;
8411 esac
8412
8413 if test "$ld_shlibs" = no; then
8414 runpath_var=
8415 hardcode_libdir_flag_spec=
8416 export_dynamic_flag_spec=
8417 whole_archive_flag_spec=
8418 fi
8419 else
8420 # PORTME fill in a description of your system's linker (not GNU ld)
8421 case $host_os in
8422 aix3*)
8423 allow_undefined_flag=unsupported
8424 always_export_symbols=yes
8425 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'
8426 # Note: this linker hardcodes the directories in LIBPATH if there
8427 # are no directories specified by -L.
8428 hardcode_minus_L=yes
8429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8430 # Neither direct hardcoding nor static linking is supported with a
8431 # broken collect2.
8432 hardcode_direct=unsupported
8433 fi
8434 ;;
8435
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008436 aix[4-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008437 if test "$host_cpu" = ia64; then
8438 # On IA64, the linker does run time linking by default, so we don't
8439 # have to do anything special.
8440 aix_use_runtimelinking=no
8441 exp_sym_flag='-Bexport'
8442 no_entry_flag=""
8443 else
8444 # If we're using GNU nm, then we don't want the "-C" option.
8445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008446 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008447 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008448 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008449 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Jon Dugane34c20c2010-07-08 23:26:52 +00008450 fi
8451 aix_use_runtimelinking=no
8452
8453 # Test if we are trying to use run time linking or normal
8454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8455 # need to do runtime linking.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008456 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008457 for ld_flag in $LDFLAGS; do
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008458 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8459 aix_use_runtimelinking=yes
8460 break
8461 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008462 done
8463 ;;
8464 esac
8465
8466 exp_sym_flag='-bexport'
8467 no_entry_flag='-bnoentry'
8468 fi
8469
8470 # When large executables or shared objects are built, AIX ld can
8471 # have problems creating the table of contents. If linking a library
8472 # or program results in "error TOC overflow" add -mminimal-toc to
8473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8475
8476 archive_cmds=''
8477 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008478 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008479 hardcode_libdir_separator=':'
8480 link_all_deplibs=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008481 file_list_spec='${wl}-f,'
Jon Dugane34c20c2010-07-08 23:26:52 +00008482
8483 if test "$GCC" = yes; then
8484 case $host_os in aix4.[012]|aix4.[012].*)
8485 # We only want to do this on AIX 4.2 and lower, the check
8486 # below for broken collect2 doesn't work under 4.3+
8487 collect2name=`${CC} -print-prog-name=collect2`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008488 if test -f "$collect2name" &&
8489 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +00008490 then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008491 # We have reworked collect2
8492 :
Jon Dugane34c20c2010-07-08 23:26:52 +00008493 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008494 # We have old collect2
8495 hardcode_direct=unsupported
8496 # It fails to find uninstalled libraries when the uninstalled
8497 # path is not listed in the libpath. Setting hardcode_minus_L
8498 # to unsupported forces relinking
8499 hardcode_minus_L=yes
8500 hardcode_libdir_flag_spec='-L$libdir'
8501 hardcode_libdir_separator=
Jon Dugane34c20c2010-07-08 23:26:52 +00008502 fi
8503 ;;
8504 esac
8505 shared_flag='-shared'
8506 if test "$aix_use_runtimelinking" = yes; then
8507 shared_flag="$shared_flag "'${wl}-G'
8508 fi
8509 else
8510 # not using gcc
8511 if test "$host_cpu" = ia64; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8513 # chokes on -Wl,-G. The following line is correct:
Jon Dugane34c20c2010-07-08 23:26:52 +00008514 shared_flag='-G'
8515 else
8516 if test "$aix_use_runtimelinking" = yes; then
8517 shared_flag='${wl}-G'
8518 else
8519 shared_flag='${wl}-bM:SRE'
8520 fi
8521 fi
8522 fi
8523
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008524 export_dynamic_flag_spec='${wl}-bexpall'
Jon Dugane34c20c2010-07-08 23:26:52 +00008525 # It seems that -bexpall does not export symbols beginning with
8526 # underscore (_), so it is better to generate a list of symbols to export.
8527 always_export_symbols=yes
8528 if test "$aix_use_runtimelinking" = yes; then
8529 # Warning - without using the other runtime loading flags (-brtl),
8530 # -berok will link without error, but may produce a broken library.
8531 allow_undefined_flag='-berok'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008532 # Determine the default libpath from the value encoded in an
8533 # empty executable.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008534 cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008539/* end confdefs.h. */
8540
8541int
8542main ()
8543{
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008549rm -f conftest.$ac_objext conftest$ac_exeext
8550if { (ac_try="$ac_link"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8556$as_echo "$ac_try_echo") >&5
8557 (eval "$ac_link") 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest$ac_exeext && {
8567 test "$cross_compiling" = yes ||
8568 $as_test_x conftest$ac_exeext
8569 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008570
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008571lt_aix_libpath_sed='
8572 /Import File Strings/,/^$/ {
8573 /^0/ {
8574 s/^0 *\(.*\)$/\1/
8575 p
8576 }
8577 }'
8578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8579# Check for a 64-bit object if we didn't find anything.
8580if test -z "$aix_libpath"; then
8581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008582fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008583else
8584 $as_echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
Jef Poskanzer437537f2012-11-30 12:16:17 -08008587
Jon Dugane34c20c2010-07-08 23:26:52 +00008588fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08008589
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008590rm -rf conftest.dSYM
8591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
jef2ab386b2012-08-10 12:43:50 -07008594
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008596 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008597 else
Jon Dugane34c20c2010-07-08 23:26:52 +00008598 if test "$host_cpu" = ia64; then
8599 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8600 allow_undefined_flag="-z nodefs"
8601 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"
8602 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008603 # Determine the default libpath from the value encoded in an
8604 # empty executable.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008605 cat >conftest.$ac_ext <<_ACEOF
8606/* confdefs.h. */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +00008610/* end confdefs.h. */
8611
8612int
8613main ()
8614{
8615
8616 ;
8617 return 0;
8618}
8619_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008620rm -f conftest.$ac_objext conftest$ac_exeext
8621if { (ac_try="$ac_link"
8622case "(($ac_try" in
8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8624 *) ac_try_echo=$ac_try;;
8625esac
8626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8627$as_echo "$ac_try_echo") >&5
8628 (eval "$ac_link") 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest$ac_exeext && {
8638 test "$cross_compiling" = yes ||
8639 $as_test_x conftest$ac_exeext
8640 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008641
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008642lt_aix_libpath_sed='
8643 /Import File Strings/,/^$/ {
8644 /^0/ {
8645 s/^0 *\(.*\)$/\1/
8646 p
8647 }
8648 }'
8649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8650# Check for a 64-bit object if we didn't find anything.
8651if test -z "$aix_libpath"; then
8652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008653fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008654else
8655 $as_echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
Jef Poskanzer437537f2012-11-30 12:16:17 -08008658
Jon Dugane34c20c2010-07-08 23:26:52 +00008659fi
Jef Poskanzer437537f2012-11-30 12:16:17 -08008660
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008661rm -rf conftest.dSYM
8662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8663 conftest$ac_exeext conftest.$ac_ext
8664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008665
8666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8667 # Warning - without using the other run time loading flags,
8668 # -berok will link without error, but may produce a broken library.
8669 no_undefined_flag=' ${wl}-bernotok'
8670 allow_undefined_flag=' ${wl}-berok'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008671 # Exported symbols can be pulled into shared objects from archives
8672 whole_archive_flag_spec='$convenience'
Jon Dugane34c20c2010-07-08 23:26:52 +00008673 archive_cmds_need_lc=yes
8674 # This is similar to how AIX traditionally builds its shared libraries.
8675 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8676 fi
8677 fi
8678 ;;
8679
8680 amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008681 case $host_cpu in
8682 powerpc)
8683 # see comment about AmigaOS4 .so support
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds=''
8686 ;;
8687 m68k)
8688 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)'
8689 hardcode_libdir_flag_spec='-L$libdir'
8690 hardcode_minus_L=yes
8691 ;;
8692 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00008693 ;;
8694
8695 bsdi[45]*)
8696 export_dynamic_flag_spec=-rdynamic
8697 ;;
8698
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008699 cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008700 # When not using gcc, we currently assume that we are using
8701 # Microsoft Visual C++.
8702 # hardcode_libdir_flag_spec is actually meaningless, as there is
8703 # no search path for DLLs.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008704 hardcode_libdir_flag_spec=' '
8705 allow_undefined_flag=unsupported
8706 # Tell ltmain to make .lib files, not .a files.
8707 libext=lib
8708 # Tell ltmain to make .dll files, not .so files.
8709 shrext_cmds=".dll"
8710 # FIXME: Setting linknames here is a bad hack.
8711 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8712 # The linker will automatically build a .lib file if we build a DLL.
8713 old_archive_from_new_cmds='true'
8714 # FIXME: Should let the user specify the lib program.
8715 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8716 fix_srcfile_path='`cygpath -w "$srcfile"`'
8717 enable_shared_with_static_runtimes=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008718 ;;
8719
8720 darwin* | rhapsody*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008721
8722
8723 archive_cmds_need_lc=no
8724 hardcode_direct=no
8725 hardcode_automatic=yes
8726 hardcode_shlibpath_var=unsupported
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008727 whole_archive_flag_spec=''
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008728 link_all_deplibs=yes
8729 allow_undefined_flag="$_lt_dar_allow_undefined"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08008730 case $cc_basename in
8731 ifort*) _lt_dar_can_shared=yes ;;
8732 *) _lt_dar_can_shared=$GCC ;;
8733 esac
8734 if test "$_lt_dar_can_shared" = "yes"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008735 output_verbose_link_cmd=echo
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8738 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}"
8739 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}"
8740
8741 else
8742 ld_shlibs=no
8743 fi
8744
Jon Dugane34c20c2010-07-08 23:26:52 +00008745 ;;
8746
8747 dgux*)
8748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749 hardcode_libdir_flag_spec='-L$libdir'
8750 hardcode_shlibpath_var=no
8751 ;;
8752
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008753 freebsd1*)
8754 ld_shlibs=no
8755 ;;
8756
Jon Dugane34c20c2010-07-08 23:26:52 +00008757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8758 # support. Future versions do this automatically, but an explicit c++rt0.o
8759 # does not break anything, and helps significantly (at the cost of a little
8760 # extra space).
8761 freebsd2.2*)
8762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8763 hardcode_libdir_flag_spec='-R$libdir'
8764 hardcode_direct=yes
8765 hardcode_shlibpath_var=no
8766 ;;
8767
8768 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008769 freebsd2*)
Jon Dugane34c20c2010-07-08 23:26:52 +00008770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8771 hardcode_direct=yes
8772 hardcode_minus_L=yes
8773 hardcode_shlibpath_var=no
8774 ;;
8775
8776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008777 freebsd* | dragonfly*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008778 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008779 hardcode_libdir_flag_spec='-R$libdir'
8780 hardcode_direct=yes
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 hpux9*)
8785 if test "$GCC" = yes; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008786 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008787 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008788 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008789 fi
8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8791 hardcode_libdir_separator=:
8792 hardcode_direct=yes
8793
8794 # hardcode_minus_L: Not really in the search PATH,
8795 # but as the default location of the library.
8796 hardcode_minus_L=yes
8797 export_dynamic_flag_spec='${wl}-E'
8798 ;;
8799
8800 hpux10*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8802 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008803 else
8804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8805 fi
8806 if test "$with_gnu_ld" = no; then
8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008808 hardcode_libdir_flag_spec_ld='+b $libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00008809 hardcode_libdir_separator=:
8810 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008811 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008812 export_dynamic_flag_spec='${wl}-E'
8813 # hardcode_minus_L: Not really in the search PATH,
8814 # but as the default location of the library.
8815 hardcode_minus_L=yes
8816 fi
8817 ;;
8818
8819 hpux11*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008821 case $host_cpu in
8822 hppa*64*)
8823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 ;;
8825 ia64*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008827 ;;
8828 *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008830 ;;
8831 esac
8832 else
8833 case $host_cpu in
8834 hppa*64*)
8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 ;;
8837 ia64*)
8838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8839 ;;
8840 *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Jon Dugane34c20c2010-07-08 23:26:52 +00008842 ;;
8843 esac
8844 fi
8845 if test "$with_gnu_ld" = no; then
8846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8847 hardcode_libdir_separator=:
8848
8849 case $host_cpu in
8850 hppa*64*|ia64*)
8851 hardcode_direct=no
8852 hardcode_shlibpath_var=no
8853 ;;
8854 *)
8855 hardcode_direct=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008856 hardcode_direct_absolute=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008857 export_dynamic_flag_spec='${wl}-E'
8858
8859 # hardcode_minus_L: Not really in the search PATH,
8860 # but as the default location of the library.
8861 hardcode_minus_L=yes
8862 ;;
8863 esac
8864 fi
8865 ;;
8866
8867 irix5* | irix6* | nonstopux*)
8868 if test "$GCC" = yes; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008870 # Try to use the -exported_symbol ld option, if it does not
8871 # work, assume that -exports_file does not work either and
8872 # implicitly export all symbols.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008873 save_LDFLAGS="$LDFLAGS"
8874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8875 cat >conftest.$ac_ext <<_ACEOF
8876int foo(void) {}
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08008877_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008878rm -f conftest.$ac_objext conftest$ac_exeext
8879if { (ac_try="$ac_link"
8880case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883esac
8884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8885$as_echo "$ac_try_echo") >&5
8886 (eval "$ac_link") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest$ac_exeext && {
8896 test "$cross_compiling" = yes ||
8897 $as_test_x conftest$ac_exeext
8898 }; then
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8900
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -08008901else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008902 $as_echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008906fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008907
8908rm -rf conftest.dSYM
8909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8910 conftest$ac_exeext conftest.$ac_ext
8911 LDFLAGS="$save_LDFLAGS"
Jon Dugane34c20c2010-07-08 23:26:52 +00008912 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008915 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008916 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00008917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918 hardcode_libdir_separator=:
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008919 inherit_rpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +00008920 link_all_deplibs=yes
8921 ;;
8922
8923 netbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00008925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8926 else
8927 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8928 fi
8929 hardcode_libdir_flag_spec='-R$libdir'
8930 hardcode_direct=yes
8931 hardcode_shlibpath_var=no
8932 ;;
8933
8934 newsos6)
8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_direct=yes
8937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8938 hardcode_libdir_separator=:
8939 hardcode_shlibpath_var=no
8940 ;;
8941
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008942 *nto* | *qnx*)
8943 ;;
8944
Jon Dugane34c20c2010-07-08 23:26:52 +00008945 openbsd*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008946 if test -f /usr/libexec/ld.so; then
8947 hardcode_direct=yes
8948 hardcode_shlibpath_var=no
8949 hardcode_direct_absolute=yes
8950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954 export_dynamic_flag_spec='${wl}-E'
8955 else
8956 case $host_os in
8957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_libdir_flag_spec='-R$libdir'
8960 ;;
8961 *)
8962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 ;;
8965 esac
8966 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00008967 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008968 ld_shlibs=no
Jon Dugane34c20c2010-07-08 23:26:52 +00008969 fi
8970 ;;
8971
8972 os2*)
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 hardcode_minus_L=yes
8975 allow_undefined_flag=unsupported
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008976 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008977 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Jon Dugane34c20c2010-07-08 23:26:52 +00008978 ;;
8979
8980 osf3*)
8981 if test "$GCC" = yes; then
8982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008983 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008984 else
8985 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008986 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008987 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08008988 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00008989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990 hardcode_libdir_separator=:
8991 ;;
8992
8993 osf4* | osf5*) # as osf3* with the addition of -msym flag
8994 if test "$GCC" = yes; then
8995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07008996 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00008997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8998 else
8999 allow_undefined_flag=' -expect_unresolved \*'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009000 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009001 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. Mah5d2f2cf2014-03-20 09:58:27 -07009002 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Jon Dugane34c20c2010-07-08 23:26:52 +00009003
9004 # Both c and cxx compiler support -rpath directly
9005 hardcode_libdir_flag_spec='-rpath $libdir'
9006 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009007 archive_cmds_need_lc='no'
Jon Dugane34c20c2010-07-08 23:26:52 +00009008 hardcode_libdir_separator=:
9009 ;;
9010
9011 solaris*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009012 no_undefined_flag=' -z defs'
Jon Dugane34c20c2010-07-08 23:26:52 +00009013 if test "$GCC" = yes; then
9014 wlarc='${wl}'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009015 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009017 $CC -shared ${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 +00009018 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009019 case `$CC -V 2>&1` in
9020 *"Compilers 5.0"*)
9021 wlarc=''
9022 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9024 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9025 ;;
9026 *)
9027 wlarc='${wl}'
9028 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9030 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9031 ;;
9032 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009033 fi
9034 hardcode_libdir_flag_spec='-R$libdir'
9035 hardcode_shlibpath_var=no
9036 case $host_os in
9037 solaris2.[0-5] | solaris2.[0-5].*) ;;
9038 *)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009039 # The compiler driver will combine and reorder linker options,
9040 # but understands `-z linker_flag'. GCC discards it without `$wl',
9041 # but is careful enough not to reorder.
9042 # Supported since Solaris 2.6 (maybe 2.5.1?)
9043 if test "$GCC" = yes; then
9044 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9045 else
9046 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9047 fi
9048 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009049 esac
9050 link_all_deplibs=yes
9051 ;;
9052
9053 sunos4*)
9054 if test "x$host_vendor" = xsequent; then
9055 # Use $CC to link under sequent, because it throws in some extra .o
9056 # files that make .init and .fini sections work.
9057 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9058 else
9059 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9060 fi
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_direct=yes
9063 hardcode_minus_L=yes
9064 hardcode_shlibpath_var=no
9065 ;;
9066
9067 sysv4)
9068 case $host_vendor in
9069 sni)
9070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9071 hardcode_direct=yes # is this really true???
9072 ;;
9073 siemens)
9074 ## LD is ld it makes a PLAMLIB
9075 ## CC just makes a GrossModule.
9076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9077 reload_cmds='$CC -r -o $output$reload_objs'
9078 hardcode_direct=no
9079 ;;
9080 motorola)
9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9083 ;;
9084 esac
9085 runpath_var='LD_RUN_PATH'
9086 hardcode_shlibpath_var=no
9087 ;;
9088
9089 sysv4.3*)
9090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091 hardcode_shlibpath_var=no
9092 export_dynamic_flag_spec='-Bexport'
9093 ;;
9094
9095 sysv4*MP*)
9096 if test -d /usr/nec; then
9097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_shlibpath_var=no
9099 runpath_var=LD_RUN_PATH
9100 hardcode_runpath_var=yes
9101 ld_shlibs=yes
9102 fi
9103 ;;
9104
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009105 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009106 no_undefined_flag='${wl}-z,text'
9107 archive_cmds_need_lc=no
9108 hardcode_shlibpath_var=no
9109 runpath_var='LD_RUN_PATH'
9110
9111 if test "$GCC" = yes; then
9112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 else
9115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 fi
9118 ;;
9119
9120 sysv5* | sco3.2v5* | sco5v6*)
9121 # Note: We can NOT use -z defs as we might desire, because we do not
9122 # link with -lc, and that would cause any symbols used from libc to
9123 # always be unresolved, which means just about no library would
9124 # ever link correctly. If we're not using GNU ld we use -z text
9125 # though, which does catch some bad symbols but isn't as heavy-handed
9126 # as -z defs.
9127 no_undefined_flag='${wl}-z,text'
9128 allow_undefined_flag='${wl}-z,nodefs'
9129 archive_cmds_need_lc=no
9130 hardcode_shlibpath_var=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009131 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Jon Dugane34c20c2010-07-08 23:26:52 +00009132 hardcode_libdir_separator=':'
9133 link_all_deplibs=yes
9134 export_dynamic_flag_spec='${wl}-Bexport'
9135 runpath_var='LD_RUN_PATH'
9136
9137 if test "$GCC" = yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139 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 +00009140 else
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 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 +00009143 fi
9144 ;;
9145
9146 uts4*)
9147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_libdir_flag_spec='-L$libdir'
9149 hardcode_shlibpath_var=no
9150 ;;
9151
9152 *)
9153 ld_shlibs=no
9154 ;;
9155 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009156
9157 if test x$host_vendor = xsni; then
9158 case $host in
9159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9160 export_dynamic_flag_spec='${wl}-Blargedynsym'
9161 ;;
9162 esac
9163 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009164 fi
9165
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009166{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009167$as_echo "$ld_shlibs" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009168test "$ld_shlibs" = no && can_build_shared=no
9169
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009170with_gnu_ld=$with_gnu_ld
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
Jon Dugane34c20c2010-07-08 23:26:52 +00009186#
9187# Do we need to explicitly link libc?
9188#
9189case "x$archive_cmds_need_lc" in
9190x|xyes)
9191 # Assume -lc should be added
9192 archive_cmds_need_lc=yes
9193
9194 if test "$enable_shared" = yes && test "$GCC" = yes; then
9195 case $archive_cmds in
9196 *'~'*)
9197 # FIXME: we may have to deal with multi-command sequences.
9198 ;;
9199 '$CC '*)
9200 # Test whether the compiler implicitly links with -lc since on some
9201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9202 # to ld, don't add -lc before -lgcc.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009203 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009204$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009205 $RM conftest*
9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +00009207
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +00009209 (eval $ac_compile) 2>&5
9210 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } 2>conftest.err; then
9213 soname=conftest
9214 lib=conftest
9215 libobjs=conftest.$ac_objext
9216 deplibs=
9217 wl=$lt_prog_compiler_wl
9218 pic_flag=$lt_prog_compiler_pic
9219 compiler_flags=-v
9220 linker_flags=-v
9221 verstring=
9222 output_objdir=.
9223 libname=conftest
9224 lt_save_allow_undefined_flag=$allow_undefined_flag
9225 allow_undefined_flag=
9226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009227 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Jon Dugane34c20c2010-07-08 23:26:52 +00009228 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }
9231 then
9232 archive_cmds_need_lc=no
9233 else
9234 archive_cmds_need_lc=yes
9235 fi
9236 allow_undefined_flag=$lt_save_allow_undefined_flag
9237 else
9238 cat conftest.err 1>&5
9239 fi
9240 $RM conftest*
9241 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9242$as_echo "$archive_cmds_need_lc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +00009243 ;;
9244 esac
9245 fi
9246 ;;
9247esac
9248
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009400
9401
9402
9403
9404
9405 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009406$as_echo_n "checking dynamic linker characteristics... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009407
9408if test "$GCC" = yes; then
9409 case $host_os in
9410 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9411 *) lt_awk_arg="/^libraries:/" ;;
9412 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009413 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9414 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009415 # if the path contains ";" then we assume it to be the separator
9416 # otherwise default to the standard path separator (i.e. ":") - it is
9417 # assumed that no part of a normal pathname contains ";" but that should
9418 # okay in the real world where ";" in dirpaths is itself problematic.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009419 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9420 else
9421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9422 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009423 # Ok, now we have the path, separated by spaces, we can step through it
9424 # and add multilib dir if necessary.
9425 lt_tmp_lt_search_path_spec=
9426 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9427 for lt_sys_path in $lt_search_path_spec; do
9428 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9430 else
9431 test -d "$lt_sys_path" && \
9432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9433 fi
9434 done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009435 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009436BEGIN {RS=" "; FS="/|\n";} {
9437 lt_foo="";
9438 lt_count=0;
9439 for (lt_i = NF; lt_i > 0; lt_i--) {
9440 if ($lt_i != "" && $lt_i != ".") {
9441 if ($lt_i == "..") {
9442 lt_count++;
9443 } else {
9444 if (lt_count == 0) {
9445 lt_foo="/" $lt_i lt_foo;
9446 } else {
9447 lt_count--;
9448 }
9449 }
9450 }
9451 }
9452 if (lt_foo != "") { lt_freq[lt_foo]++; }
9453 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9454}'`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009455 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009456else
9457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9458fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009459library_names_spec=
9460libname_spec='lib$name'
9461soname_spec=
9462shrext_cmds=".so"
9463postinstall_cmds=
9464postuninstall_cmds=
9465finish_cmds=
9466finish_eval=
9467shlibpath_var=
9468shlibpath_overrides_runpath=unknown
9469version_type=none
9470dynamic_linker="$host_os ld.so"
9471sys_lib_dlsearch_path_spec="/lib /usr/lib"
9472need_lib_prefix=unknown
9473hardcode_into_libs=no
9474
9475# when you set need_version to no, make sure it does not cause -set_version
9476# flags to be left without arguments
9477need_version=unknown
9478
9479case $host_os in
9480aix3*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009481 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9483 shlibpath_var=LIBPATH
9484
9485 # AIX 3 has no versioning support, so we append a major version to the name.
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 ;;
9488
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009489aix[4-9]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009490 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009491 need_lib_prefix=no
9492 need_version=no
9493 hardcode_into_libs=yes
9494 if test "$host_cpu" = ia64; then
9495 # AIX 5 supports IA64
9496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 else
9499 # With GCC up to 2.95.x, collect2 would create an import file
9500 # for dependence libraries. The import file would start with
9501 # the line `#! .'. This would cause the generated library to
9502 # depend on `.', always an invalid library. This was fixed in
9503 # development snapshots of GCC prior to 3.0.
9504 case $host_os in
9505 aix4 | aix4.[01] | aix4.[01].*)
9506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9507 echo ' yes '
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009509 :
9510 else
9511 can_build_shared=no
9512 fi
9513 ;;
9514 esac
9515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9516 # soname into executable. Probably we can add versioning support to
9517 # collect2, so additional links can be useful in future.
9518 if test "$aix_use_runtimelinking" = yes; then
9519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9520 # instead of lib<name>.a to let people know that these are not
9521 # typical AIX shared libraries.
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 else
9524 # We preserve .a as extension for shared libraries through AIX4.2
9525 # and later when we are not doing run time linking.
9526 library_names_spec='${libname}${release}.a $libname.a'
9527 soname_spec='${libname}${release}${shared_ext}$major'
9528 fi
9529 shlibpath_var=LIBPATH
9530 fi
9531 ;;
9532
9533amigaos*)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009534 case $host_cpu in
9535 powerpc)
9536 # Since July 2007 AmigaOS4 officially supports .so libraries.
9537 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 ;;
9540 m68k)
9541 library_names_spec='$libname.ixlibrary $libname.a'
9542 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009543 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009544 ;;
9545 esac
Jon Dugane34c20c2010-07-08 23:26:52 +00009546 ;;
9547
9548beos*)
9549 library_names_spec='${libname}${shared_ext}'
9550 dynamic_linker="$host_os ld.so"
9551 shlibpath_var=LIBRARY_PATH
9552 ;;
9553
9554bsdi[45]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009555 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009556 need_version=no
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9560 shlibpath_var=LD_LIBRARY_PATH
9561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9563 # the default ld.so.conf also contains /usr/contrib/lib and
9564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9565 # libtool to hard-code these into programs
9566 ;;
9567
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009568cygwin* | mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009569 version_type=windows
9570 shrext_cmds=".dll"
9571 need_version=no
9572 need_lib_prefix=no
9573
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009574 case $GCC,$host_os in
9575 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009576 library_names_spec='$libname.dll.a'
9577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9578 postinstall_cmds='base_file=`basename \${file}`~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Jon Dugane34c20c2010-07-08 23:26:52 +00009580 dldir=$destdir/`dirname \$dlpath`~
9581 test -d \$dldir || mkdir -p \$dldir~
9582 $install_prog $dir/$dlname \$dldir/$dlname~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009583 chmod a+x \$dldir/$dlname~
9584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9586 fi'
Jon Dugane34c20c2010-07-08 23:26:52 +00009587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9588 dlpath=$dir/\$dldll~
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009589 $RM \$dlpath'
Jon Dugane34c20c2010-07-08 23:26:52 +00009590 shlibpath_overrides_runpath=yes
9591
9592 case $host_os in
9593 cygwin*)
9594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +00009597 ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009598 mingw* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009599 # MinGW DLLs use traditional 'lib' prefix
9600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009601 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9602 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9603 # It is most probably a Windows format PATH printed by
9604 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9605 # path with ; separators, and with drive letters. We can handle the
9606 # drive letters (cygwin fileutils understands them), so leave them,
9607 # especially as we might pass files found there to a mingw objdump,
9608 # which wouldn't understand a cygwinified path. Ahh.
9609 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9610 else
9611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9612 fi
Jon Dugane34c20c2010-07-08 23:26:52 +00009613 ;;
9614 pw32*)
9615 # pw32 DLLs use 'pw' prefix rather than 'lib'
9616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9617 ;;
9618 esac
9619 ;;
9620
9621 *)
9622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9623 ;;
9624 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009625 dynamic_linker='Win32 ld.exe'
Jon Dugane34c20c2010-07-08 23:26:52 +00009626 # FIXME: first we should search . and the directory the executable is in
9627 shlibpath_var=PATH
9628 ;;
9629
9630darwin* | rhapsody*)
9631 dynamic_linker="$host_os dyld"
9632 version_type=darwin
9633 need_lib_prefix=no
9634 need_version=no
Bruce A. Mah60bd98a2014-02-14 11:52:16 -08009635 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Jon Dugane34c20c2010-07-08 23:26:52 +00009636 soname_spec='${libname}${release}${major}$shared_ext'
9637 shlibpath_overrides_runpath=yes
9638 shlibpath_var=DYLD_LIBRARY_PATH
9639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009640
9641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Jon Dugane34c20c2010-07-08 23:26:52 +00009642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9643 ;;
9644
9645dgux*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009646 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009647 need_lib_prefix=no
9648 need_version=no
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 ;;
9653
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009654freebsd1*)
9655 dynamic_linker=no
9656 ;;
9657
Jon Dugane34c20c2010-07-08 23:26:52 +00009658freebsd* | dragonfly*)
9659 # DragonFly does not have aout. When/if they implement a new
9660 # versioning mechanism, adjust this.
9661 if test -x /usr/bin/objformat; then
9662 objformat=`/usr/bin/objformat`
9663 else
9664 case $host_os in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009665 freebsd[123]*) objformat=aout ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009666 *) objformat=elf ;;
9667 esac
9668 fi
9669 version_type=freebsd-$objformat
9670 case $version_type in
9671 freebsd-elf*)
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9673 need_version=no
9674 need_lib_prefix=no
9675 ;;
9676 freebsd-*)
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9678 need_version=yes
9679 ;;
9680 esac
9681 shlibpath_var=LD_LIBRARY_PATH
9682 case $host_os in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009683 freebsd2*)
Jon Dugane34c20c2010-07-08 23:26:52 +00009684 shlibpath_overrides_runpath=yes
9685 ;;
9686 freebsd3.[01]* | freebsdelf3.[01]*)
9687 shlibpath_overrides_runpath=yes
9688 hardcode_into_libs=yes
9689 ;;
9690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9692 shlibpath_overrides_runpath=no
9693 hardcode_into_libs=yes
9694 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009695 *) # from 4.6 on, and DragonFly
Jon Dugane34c20c2010-07-08 23:26:52 +00009696 shlibpath_overrides_runpath=yes
9697 hardcode_into_libs=yes
9698 ;;
9699 esac
9700 ;;
9701
9702gnu*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009703 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009704 need_lib_prefix=no
9705 need_version=no
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 hardcode_into_libs=yes
9710 ;;
9711
Jon Dugane34c20c2010-07-08 23:26:52 +00009712hpux9* | hpux10* | hpux11*)
9713 # Give a soname corresponding to the major version so that dld.sl refuses to
9714 # link against other versions.
9715 version_type=sunos
9716 need_lib_prefix=no
9717 need_version=no
9718 case $host_cpu in
9719 ia64*)
9720 shrext_cmds='.so'
9721 hardcode_into_libs=yes
9722 dynamic_linker="$host_os dld.so"
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 if test "X$HPUX_IA64_MODE" = X32; then
9728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9729 else
9730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9731 fi
9732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9733 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009734 hppa*64*)
9735 shrext_cmds='.sl'
9736 hardcode_into_libs=yes
9737 dynamic_linker="$host_os dld.sl"
9738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9744 ;;
9745 *)
Jon Dugane34c20c2010-07-08 23:26:52 +00009746 shrext_cmds='.sl'
9747 dynamic_linker="$host_os dld.sl"
9748 shlibpath_var=SHLIB_PATH
9749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 ;;
9753 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009754 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Jon Dugane34c20c2010-07-08 23:26:52 +00009755 postinstall_cmds='chmod 555 $lib'
Jon Dugane34c20c2010-07-08 23:26:52 +00009756 ;;
9757
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009758interix[3-9]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009759 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009760 need_lib_prefix=no
9761 need_version=no
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 shlibpath_overrides_runpath=no
9767 hardcode_into_libs=yes
9768 ;;
9769
9770irix5* | irix6* | nonstopux*)
9771 case $host_os in
9772 nonstopux*) version_type=nonstopux ;;
9773 *)
9774 if test "$lt_cv_prog_gnu_ld" = yes; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009775 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009776 else
9777 version_type=irix
9778 fi ;;
9779 esac
9780 need_lib_prefix=no
9781 need_version=no
9782 soname_spec='${libname}${release}${shared_ext}$major'
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9784 case $host_os in
9785 irix5* | nonstopux*)
9786 libsuff= shlibsuff=
9787 ;;
9788 *)
9789 case $LD in # libtool.m4 will add one of these switches to LD
9790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9791 libsuff= shlibsuff= libmagic=32-bit;;
9792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9793 libsuff=32 shlibsuff=N32 libmagic=N32;;
9794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9796 *) libsuff= shlibsuff= libmagic=never-match;;
9797 esac
9798 ;;
9799 esac
9800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9801 shlibpath_overrides_runpath=no
9802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9804 hardcode_into_libs=yes
9805 ;;
9806
9807# No shared lib support for Linux oldld, aout, or coff.
9808linux*oldld* | linux*aout* | linux*coff*)
9809 dynamic_linker=no
9810 ;;
9811
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009812# This must be Linux ELF.
9813linux* | k*bsd*-gnu)
9814 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009815 need_lib_prefix=no
9816 need_version=no
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009822 # Some binutils ld are patched to set DT_RUNPATH
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009823 save_LDFLAGS=$LDFLAGS
9824 save_libdir=$libdir
9825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9827 cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009832/* end confdefs.h. */
9833
9834int
9835main ()
9836{
9837
9838 ;
9839 return 0;
9840}
9841_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (ac_try="$ac_link"
9844case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847esac
9848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849$as_echo "$ac_try_echo") >&5
9850 (eval "$ac_link") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext && {
9860 test "$cross_compiling" = yes ||
9861 $as_test_x conftest$ac_exeext
9862 }; then
9863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9864 shlibpath_overrides_runpath=yes
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009865fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009866
9867else
9868 $as_echo "$as_me: failed program was:" >&5
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009871
9872fi
9873
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009874rm -rf conftest.dSYM
9875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9876 conftest$ac_exeext conftest.$ac_ext
9877 LDFLAGS=$save_LDFLAGS
9878 libdir=$save_libdir
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009879
Jon Dugane34c20c2010-07-08 23:26:52 +00009880 # This implies no fast_install, which is unacceptable.
9881 # Some rework will be needed to allow for fast_install
9882 # before this can be enabled.
9883 hardcode_into_libs=yes
9884
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009885 # Add ABI-specific directories to the system library path.
9886 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9887
Jon Dugane34c20c2010-07-08 23:26:52 +00009888 # Append ld.so.conf contents to the search path
9889 if test -f /etc/ld.so.conf; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009890 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9891 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
Jon Dugane34c20c2010-07-08 23:26:52 +00009892 fi
9893
9894 # We used to test for /lib/ld.so.1 and disable shared libraries on
9895 # powerpc, because MkLinux only supported shared libraries with the
9896 # GNU dynamic linker. Since this was broken with cross compilers,
9897 # most powerpc-linux boxes support dynamic linking these days and
9898 # people can always --disable-shared, the test was removed, and we
9899 # assume the GNU/Linux dynamic linker is in use.
9900 dynamic_linker='GNU/Linux ld.so'
9901 ;;
9902
9903netbsd*)
9904 version_type=sunos
9905 need_lib_prefix=no
9906 need_version=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9910 dynamic_linker='NetBSD (a.out) ld.so'
9911 else
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 dynamic_linker='NetBSD ld.elf_so'
9915 fi
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 hardcode_into_libs=yes
9919 ;;
9920
9921newsos6)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009922 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 shlibpath_var=LD_LIBRARY_PATH
9925 shlibpath_overrides_runpath=yes
9926 ;;
9927
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009928*nto* | *qnx*)
9929 version_type=qnx
Jon Dugane34c20c2010-07-08 23:26:52 +00009930 need_lib_prefix=no
9931 need_version=no
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009935 shlibpath_overrides_runpath=no
9936 hardcode_into_libs=yes
9937 dynamic_linker='ldqnx.so'
Jon Dugane34c20c2010-07-08 23:26:52 +00009938 ;;
9939
9940openbsd*)
9941 version_type=sunos
9942 sys_lib_dlsearch_path_spec="/usr/lib"
9943 need_lib_prefix=no
9944 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9945 case $host_os in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009946 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9947 *) need_version=no ;;
Jon Dugane34c20c2010-07-08 23:26:52 +00009948 esac
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9951 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Jon Dugane34c20c2010-07-08 23:26:52 +00009953 case $host_os in
9954 openbsd2.[89] | openbsd2.[89].*)
9955 shlibpath_overrides_runpath=no
9956 ;;
9957 *)
9958 shlibpath_overrides_runpath=yes
9959 ;;
9960 esac
9961 else
9962 shlibpath_overrides_runpath=yes
9963 fi
9964 ;;
9965
9966os2*)
9967 libname_spec='$name'
9968 shrext_cmds=".dll"
9969 need_lib_prefix=no
9970 library_names_spec='$libname${shared_ext} $libname.a'
9971 dynamic_linker='OS/2 ld.exe'
9972 shlibpath_var=LIBPATH
9973 ;;
9974
9975osf3* | osf4* | osf5*)
9976 version_type=osf
9977 need_lib_prefix=no
9978 need_version=no
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9984 ;;
9985
Jef Poskanzerba7b91d2013-11-26 10:07:32 -08009986rdos*)
9987 dynamic_linker=no
9988 ;;
9989
Jon Dugane34c20c2010-07-08 23:26:52 +00009990solaris*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -07009991 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +00009992 need_lib_prefix=no
9993 need_version=no
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes
9998 hardcode_into_libs=yes
9999 # ldd complains unless libraries are executable
10000 postinstall_cmds='chmod +x $lib'
10001 ;;
10002
10003sunos4*)
10004 version_type=sunos
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes
10009 if test "$with_gnu_ld" = yes; then
10010 need_lib_prefix=no
10011 fi
10012 need_version=yes
10013 ;;
10014
10015sysv4 | sysv4.3*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010016 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +000010017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 case $host_vendor in
10021 sni)
10022 shlibpath_overrides_runpath=no
10023 need_lib_prefix=no
10024 runpath_var=LD_RUN_PATH
10025 ;;
10026 siemens)
10027 need_lib_prefix=no
10028 ;;
10029 motorola)
10030 need_lib_prefix=no
10031 need_version=no
10032 shlibpath_overrides_runpath=no
10033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10034 ;;
10035 esac
10036 ;;
10037
10038sysv4*MP*)
10039 if test -d /usr/nec ;then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010040 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +000010041 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10042 soname_spec='$libname${shared_ext}.$major'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 fi
10045 ;;
10046
10047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10048 version_type=freebsd-elf
10049 need_lib_prefix=no
10050 need_version=no
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 shlibpath_var=LD_LIBRARY_PATH
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010054 shlibpath_overrides_runpath=yes
Jon Dugane34c20c2010-07-08 23:26:52 +000010055 hardcode_into_libs=yes
10056 if test "$with_gnu_ld" = yes; then
10057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10058 else
10059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10060 case $host_os in
10061 sco3.2v5*)
10062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10063 ;;
10064 esac
10065 fi
10066 sys_lib_dlsearch_path_spec='/usr/lib'
10067 ;;
10068
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010069tpf*)
10070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010071 version_type=linux
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010072 need_lib_prefix=no
10073 need_version=no
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=no
10077 hardcode_into_libs=yes
10078 ;;
10079
Jon Dugane34c20c2010-07-08 23:26:52 +000010080uts4*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010081 version_type=linux
Jon Dugane34c20c2010-07-08 23:26:52 +000010082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 ;;
10086
10087*)
10088 dynamic_linker=no
10089 ;;
10090esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010091{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010092$as_echo "$dynamic_linker" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010093test "$dynamic_linker" = no && can_build_shared=no
10094
10095variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10096if test "$GCC" = yes; then
10097 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10098fi
10099
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010100if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10101 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10102fi
10103if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10104 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10105fi
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010193 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010194$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010195hardcode_action=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010196if test -n "$hardcode_libdir_flag_spec" ||
10197 test -n "$runpath_var" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000010198 test "X$hardcode_automatic" = "Xyes" ; then
10199
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010200 # We can hardcode non-existent directories.
Jon Dugane34c20c2010-07-08 23:26:52 +000010201 if test "$hardcode_direct" != no &&
10202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10203 # have to relink, otherwise we might link with an installed library
10204 # when we should be linking with a yet-to-be-installed one
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010205 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Jon Dugane34c20c2010-07-08 23:26:52 +000010206 test "$hardcode_minus_L" != no; then
10207 # Linking always hardcodes the temporary library directory.
10208 hardcode_action=relink
10209 else
10210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10211 hardcode_action=immediate
10212 fi
10213else
10214 # We cannot hardcode anything, or else we can only hardcode existing
10215 # directories.
10216 hardcode_action=unsupported
10217fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010218{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010219$as_echo "$hardcode_action" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010220
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010221if test "$hardcode_action" = relink ||
10222 test "$inherit_rpath" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010223 # Fast installation is not supported
10224 enable_fast_install=no
10225elif test "$shlibpath_overrides_runpath" = yes ||
10226 test "$enable_shared" = no; then
10227 # Fast installation is not necessary
10228 enable_fast_install=needless
10229fi
10230
10231
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010232
10233
10234
10235
10236 if test "x$enable_dlopen" != xyes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010237 enable_dlopen=unknown
10238 enable_dlopen_self=unknown
10239 enable_dlopen_self_static=unknown
10240else
10241 lt_cv_dlopen=no
10242 lt_cv_dlopen_libs=
10243
10244 case $host_os in
10245 beos*)
10246 lt_cv_dlopen="load_add_on"
10247 lt_cv_dlopen_libs=
10248 lt_cv_dlopen_self=yes
10249 ;;
10250
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010251 mingw* | pw32* | cegcc*)
Jon Dugane34c20c2010-07-08 23:26:52 +000010252 lt_cv_dlopen="LoadLibrary"
10253 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010254 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010255
10256 cygwin*)
10257 lt_cv_dlopen="dlopen"
10258 lt_cv_dlopen_libs=
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010259 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010260
10261 darwin*)
10262 # if libdl is installed we need to link against it
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010263 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010264$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010265if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010266 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010267else
10268 ac_check_lib_save_LIBS=$LIBS
10269LIBS="-ldl $LIBS"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010270cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000010275/* end confdefs.h. */
10276
10277/* Override any GCC internal prototype to avoid an error.
10278 Use char because int might match the return type of a GCC
10279 builtin and then its argument prototype would still apply. */
10280#ifdef __cplusplus
10281extern "C"
10282#endif
10283char dlopen ();
10284int
10285main ()
10286{
10287return dlopen ();
10288 ;
10289 return 0;
10290}
10291_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010292rm -f conftest.$ac_objext conftest$ac_exeext
10293if { (ac_try="$ac_link"
10294case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10299$as_echo "$ac_try_echo") >&5
10300 (eval "$ac_link") 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest$ac_exeext && {
10310 test "$cross_compiling" = yes ||
10311 $as_test_x conftest$ac_exeext
10312 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010313 ac_cv_lib_dl_dlopen=yes
10314else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010315 $as_echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010319fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010320
10321rm -rf conftest.dSYM
10322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10323 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010324LIBS=$ac_check_lib_save_LIBS
10325fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010326{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010327$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010328if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10330else
10331
10332 lt_cv_dlopen="dyld"
10333 lt_cv_dlopen_libs=
10334 lt_cv_dlopen_self=yes
10335
10336fi
10337
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010338 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000010339
10340 *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010341 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10342$as_echo_n "checking for shl_load... " >&6; }
10343if test "${ac_cv_func_shl_load+set}" = set; then
10344 $as_echo_n "(cached) " >&6
10345else
10346 cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10354#define shl_load innocuous_shl_load
10355
10356/* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char shl_load (); below.
10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359 <limits.h> exists even on freestanding compilers. */
10360
10361#ifdef __STDC__
10362# include <limits.h>
10363#else
10364# include <assert.h>
10365#endif
10366
10367#undef shl_load
10368
10369/* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372#ifdef __cplusplus
10373extern "C"
10374#endif
10375char shl_load ();
10376/* The GNU C library defines this for functions which it implements
10377 to always fail with ENOSYS. Some functions are actually named
10378 something starting with __ and the normal name is an alias. */
10379#if defined __stub_shl_load || defined __stub___shl_load
10380choke me
10381#endif
10382
10383int
10384main ()
10385{
10386return shl_load ();
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391rm -f conftest.$ac_objext conftest$ac_exeext
10392if { (ac_try="$ac_link"
10393case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398$as_echo "$ac_try_echo") >&5
10399 (eval "$ac_link") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext && {
10409 test "$cross_compiling" = yes ||
10410 $as_test_x conftest$ac_exeext
10411 }; then
10412 ac_cv_func_shl_load=yes
10413else
10414 $as_echo "$as_me: failed program was:" >&5
10415sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_func_shl_load=no
10418fi
10419
10420rm -rf conftest.dSYM
10421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423fi
10424{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10425$as_echo "$ac_cv_func_shl_load" >&6; }
10426if test "x$ac_cv_func_shl_load" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010427 lt_cv_dlopen="shl_load"
10428else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010429 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010430$as_echo_n "checking for shl_load in -ldld... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010431if test "${ac_cv_lib_dld_shl_load+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010432 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010433else
10434 ac_check_lib_save_LIBS=$LIBS
10435LIBS="-ldld $LIBS"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010436cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000010441/* end confdefs.h. */
10442
10443/* Override any GCC internal prototype to avoid an error.
10444 Use char because int might match the return type of a GCC
10445 builtin and then its argument prototype would still apply. */
10446#ifdef __cplusplus
10447extern "C"
10448#endif
10449char shl_load ();
10450int
10451main ()
10452{
10453return shl_load ();
10454 ;
10455 return 0;
10456}
10457_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010458rm -f conftest.$ac_objext conftest$ac_exeext
10459if { (ac_try="$ac_link"
10460case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463esac
10464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465$as_echo "$ac_try_echo") >&5
10466 (eval "$ac_link") 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest$ac_exeext && {
10476 test "$cross_compiling" = yes ||
10477 $as_test_x conftest$ac_exeext
10478 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010479 ac_cv_lib_dld_shl_load=yes
10480else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010481 $as_echo "$as_me: failed program was:" >&5
10482sed 's/^/| /' conftest.$ac_ext >&5
10483
10484 ac_cv_lib_dld_shl_load=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010485fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010486
10487rm -rf conftest.dSYM
10488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10489 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010490LIBS=$ac_check_lib_save_LIBS
10491fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010492{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010493$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010494if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010495 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Jon Dugane34c20c2010-07-08 23:26:52 +000010496else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010497 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10498$as_echo_n "checking for dlopen... " >&6; }
10499if test "${ac_cv_func_dlopen+set}" = set; then
10500 $as_echo_n "(cached) " >&6
10501else
10502 cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10510#define dlopen innocuous_dlopen
10511
10512/* System header to define __stub macros and hopefully few prototypes,
10513 which can conflict with char dlopen (); below.
10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515 <limits.h> exists even on freestanding compilers. */
10516
10517#ifdef __STDC__
10518# include <limits.h>
10519#else
10520# include <assert.h>
10521#endif
10522
10523#undef dlopen
10524
10525/* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10528#ifdef __cplusplus
10529extern "C"
10530#endif
10531char dlopen ();
10532/* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535#if defined __stub_dlopen || defined __stub___dlopen
10536choke me
10537#endif
10538
10539int
10540main ()
10541{
10542return dlopen ();
10543 ;
10544 return 0;
10545}
10546_ACEOF
10547rm -f conftest.$ac_objext conftest$ac_exeext
10548if { (ac_try="$ac_link"
10549case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10554$as_echo "$ac_try_echo") >&5
10555 (eval "$ac_link") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext && {
10565 test "$cross_compiling" = yes ||
10566 $as_test_x conftest$ac_exeext
10567 }; then
10568 ac_cv_func_dlopen=yes
10569else
10570 $as_echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_cv_func_dlopen=no
10574fi
10575
10576rm -rf conftest.dSYM
10577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10578 conftest$ac_exeext conftest.$ac_ext
10579fi
10580{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10581$as_echo "$ac_cv_func_dlopen" >&6; }
10582if test "x$ac_cv_func_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010583 lt_cv_dlopen="dlopen"
10584else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010585 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010586$as_echo_n "checking for dlopen in -ldl... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010588 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010589else
10590 ac_check_lib_save_LIBS=$LIBS
10591LIBS="-ldl $LIBS"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010592cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000010597/* end confdefs.h. */
10598
10599/* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10602#ifdef __cplusplus
10603extern "C"
10604#endif
10605char dlopen ();
10606int
10607main ()
10608{
10609return dlopen ();
10610 ;
10611 return 0;
10612}
10613_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010614rm -f conftest.$ac_objext conftest$ac_exeext
10615if { (ac_try="$ac_link"
10616case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10621$as_echo "$ac_try_echo") >&5
10622 (eval "$ac_link") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest$ac_exeext && {
10632 test "$cross_compiling" = yes ||
10633 $as_test_x conftest$ac_exeext
10634 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010635 ac_cv_lib_dl_dlopen=yes
10636else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010637 $as_echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 ac_cv_lib_dl_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010641fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010642
10643rm -rf conftest.dSYM
10644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10645 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010646LIBS=$ac_check_lib_save_LIBS
10647fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010648{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010649$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010650if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10652else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010653 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010654$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010655if test "${ac_cv_lib_svld_dlopen+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010656 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010657else
10658 ac_check_lib_save_LIBS=$LIBS
10659LIBS="-lsvld $LIBS"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010660cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000010665/* end confdefs.h. */
10666
10667/* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670#ifdef __cplusplus
10671extern "C"
10672#endif
10673char dlopen ();
10674int
10675main ()
10676{
10677return dlopen ();
10678 ;
10679 return 0;
10680}
10681_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010682rm -f conftest.$ac_objext conftest$ac_exeext
10683if { (ac_try="$ac_link"
10684case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10689$as_echo "$ac_try_echo") >&5
10690 (eval "$ac_link") 2>conftest.er1
10691 ac_status=$?
10692 grep -v '^ *+' conftest.er1 >conftest.err
10693 rm -f conftest.er1
10694 cat conftest.err >&5
10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && {
10697 test -z "$ac_c_werror_flag" ||
10698 test ! -s conftest.err
10699 } && test -s conftest$ac_exeext && {
10700 test "$cross_compiling" = yes ||
10701 $as_test_x conftest$ac_exeext
10702 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010703 ac_cv_lib_svld_dlopen=yes
10704else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010705 $as_echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_cv_lib_svld_dlopen=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010709fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010710
10711rm -rf conftest.dSYM
10712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10713 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010714LIBS=$ac_check_lib_save_LIBS
10715fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010716{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010717$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010718if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10720else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010721 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010722$as_echo_n "checking for dld_link in -ldld... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010723if test "${ac_cv_lib_dld_dld_link+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010724 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010725else
10726 ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldld $LIBS"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000010733/* end confdefs.h. */
10734
10735/* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741char dld_link ();
10742int
10743main ()
10744{
10745return dld_link ();
10746 ;
10747 return 0;
10748}
10749_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010750rm -f conftest.$ac_objext conftest$ac_exeext
10751if { (ac_try="$ac_link"
10752case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755esac
10756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10757$as_echo "$ac_try_echo") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext && {
10768 test "$cross_compiling" = yes ||
10769 $as_test_x conftest$ac_exeext
10770 }; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010771 ac_cv_lib_dld_dld_link=yes
10772else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010773 $as_echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_lib_dld_dld_link=no
Jon Dugane34c20c2010-07-08 23:26:52 +000010777fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010778
10779rm -rf conftest.dSYM
10780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000010782LIBS=$ac_check_lib_save_LIBS
10783fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010784{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010785$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010786if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Jon Dugane34c20c2010-07-08 23:26:52 +000010788fi
10789
10790
10791fi
10792
10793
10794fi
10795
10796
10797fi
10798
10799
10800fi
10801
10802
10803fi
10804
10805 ;;
10806 esac
10807
10808 if test "x$lt_cv_dlopen" != xno; then
10809 enable_dlopen=yes
10810 else
10811 enable_dlopen=no
10812 fi
10813
10814 case $lt_cv_dlopen in
10815 dlopen)
10816 save_CPPFLAGS="$CPPFLAGS"
10817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10818
10819 save_LDFLAGS="$LDFLAGS"
10820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10821
10822 save_LIBS="$LIBS"
10823 LIBS="$lt_cv_dlopen_libs $LIBS"
10824
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010825 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010826$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010827if test "${lt_cv_dlopen_self+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010828 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010829else
10830 if test "$cross_compiling" = yes; then :
10831 lt_cv_dlopen_self=cross
10832else
10833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10834 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010835 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -070010836#line 10836 "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010837#include "confdefs.h"
10838
10839#if HAVE_DLFCN_H
10840#include <dlfcn.h>
10841#endif
10842
10843#include <stdio.h>
10844
10845#ifdef RTLD_GLOBAL
10846# define LT_DLGLOBAL RTLD_GLOBAL
10847#else
10848# ifdef DL_GLOBAL
10849# define LT_DLGLOBAL DL_GLOBAL
10850# else
10851# define LT_DLGLOBAL 0
10852# endif
10853#endif
10854
10855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10856 find out it does not work in some platform. */
10857#ifndef LT_DLLAZY_OR_NOW
10858# ifdef RTLD_LAZY
10859# define LT_DLLAZY_OR_NOW RTLD_LAZY
10860# else
10861# ifdef DL_LAZY
10862# define LT_DLLAZY_OR_NOW DL_LAZY
10863# else
10864# ifdef RTLD_NOW
10865# define LT_DLLAZY_OR_NOW RTLD_NOW
10866# else
10867# ifdef DL_NOW
10868# define LT_DLLAZY_OR_NOW DL_NOW
10869# else
10870# define LT_DLLAZY_OR_NOW 0
10871# endif
10872# endif
10873# endif
10874# endif
10875#endif
10876
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010877void fnord() { int i=42;}
Jon Dugane34c20c2010-07-08 23:26:52 +000010878int main ()
10879{
10880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10881 int status = $lt_dlunknown;
10882
10883 if (self)
10884 {
10885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Jon Dugane34c20c2010-07-08 23:26:52 +000010887 /* dlclose (self); */
10888 }
10889 else
10890 puts (dlerror ());
10891
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010892 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000010893}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010894_LT_EOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010896 (eval $ac_link) 2>&5
10897 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010900 (./conftest; exit; ) >&5 2>/dev/null
10901 lt_status=$?
10902 case x$lt_status in
10903 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10904 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10905 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10906 esac
10907 else :
10908 # compilation failed
10909 lt_cv_dlopen_self=no
10910 fi
10911fi
10912rm -fr conftest*
10913
10914
10915fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010916{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010917$as_echo "$lt_cv_dlopen_self" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000010918
10919 if test "x$lt_cv_dlopen_self" = xyes; then
10920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010921 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010922$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010923if test "${lt_cv_dlopen_self_static+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010924 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000010925else
10926 if test "$cross_compiling" = yes; then :
10927 lt_cv_dlopen_self_static=cross
10928else
10929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10930 lt_status=$lt_dlunknown
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010931 cat > conftest.$ac_ext <<_LT_EOF
Bruce A. Mahd70a0bb2014-04-10 15:00:05 -070010932#line 10932 "configure"
Jon Dugane34c20c2010-07-08 23:26:52 +000010933#include "confdefs.h"
10934
10935#if HAVE_DLFCN_H
10936#include <dlfcn.h>
10937#endif
10938
10939#include <stdio.h>
10940
10941#ifdef RTLD_GLOBAL
10942# define LT_DLGLOBAL RTLD_GLOBAL
10943#else
10944# ifdef DL_GLOBAL
10945# define LT_DLGLOBAL DL_GLOBAL
10946# else
10947# define LT_DLGLOBAL 0
10948# endif
10949#endif
10950
10951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10952 find out it does not work in some platform. */
10953#ifndef LT_DLLAZY_OR_NOW
10954# ifdef RTLD_LAZY
10955# define LT_DLLAZY_OR_NOW RTLD_LAZY
10956# else
10957# ifdef DL_LAZY
10958# define LT_DLLAZY_OR_NOW DL_LAZY
10959# else
10960# ifdef RTLD_NOW
10961# define LT_DLLAZY_OR_NOW RTLD_NOW
10962# else
10963# ifdef DL_NOW
10964# define LT_DLLAZY_OR_NOW DL_NOW
10965# else
10966# define LT_DLLAZY_OR_NOW 0
10967# endif
10968# endif
10969# endif
10970# endif
10971#endif
10972
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010973void fnord() { int i=42;}
Jon Dugane34c20c2010-07-08 23:26:52 +000010974int main ()
10975{
10976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10977 int status = $lt_dlunknown;
10978
10979 if (self)
10980 {
10981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Jon Dugane34c20c2010-07-08 23:26:52 +000010983 /* dlclose (self); */
10984 }
10985 else
10986 puts (dlerror ());
10987
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080010988 return status;
Jon Dugane34c20c2010-07-08 23:26:52 +000010989}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080010990_LT_EOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Jon Dugane34c20c2010-07-08 23:26:52 +000010992 (eval $ac_link) 2>&5
10993 ac_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070010994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Jon Dugane34c20c2010-07-08 23:26:52 +000010996 (./conftest; exit; ) >&5 2>/dev/null
10997 lt_status=$?
10998 case x$lt_status in
10999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11002 esac
11003 else :
11004 # compilation failed
11005 lt_cv_dlopen_self_static=no
11006 fi
11007fi
11008rm -fr conftest*
11009
11010
11011fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011012{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011013$as_echo "$lt_cv_dlopen_self_static" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011014 fi
11015
11016 CPPFLAGS="$save_CPPFLAGS"
11017 LDFLAGS="$save_LDFLAGS"
11018 LIBS="$save_LIBS"
11019 ;;
11020 esac
11021
11022 case $lt_cv_dlopen_self in
11023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11024 *) enable_dlopen_self=unknown ;;
11025 esac
11026
11027 case $lt_cv_dlopen_self_static in
11028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11029 *) enable_dlopen_self_static=unknown ;;
11030 esac
11031fi
11032
11033
Jon Dugane34c20c2010-07-08 23:26:52 +000011034
Jon Dugane34c20c2010-07-08 23:26:52 +000011035
jef56a97f92012-08-20 14:35:58 -070011036
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049striplib=
11050old_striplib=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011051{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011052$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011053if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11055 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011056 { $as_echo "$as_me:$LINENO: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011057$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011058else
11059# FIXME - insert some real tests, host_os isn't really good enough
11060 case $host_os in
11061 darwin*)
11062 if test -n "$STRIP" ; then
11063 striplib="$STRIP -x"
11064 old_striplib="$STRIP -S"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011065 { $as_echo "$as_me:$LINENO: result: yes" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011066$as_echo "yes" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011067 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011068 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011069$as_echo "no" >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011070 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000011071 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011072 *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011073 { $as_echo "$as_me:$LINENO: result: no" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011074$as_echo "no" >&6; }
jef56a97f92012-08-20 14:35:58 -070011075 ;;
11076 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011077fi
jef56a97f92012-08-20 14:35:58 -070011078
jef56a97f92012-08-20 14:35:58 -070011079
jef56a97f92012-08-20 14:35:58 -070011080
jef56a97f92012-08-20 14:35:58 -070011081
jef56a97f92012-08-20 14:35:58 -070011082
jef56a97f92012-08-20 14:35:58 -070011083
jef56a97f92012-08-20 14:35:58 -070011084
jef56a97f92012-08-20 14:35:58 -070011085
jef56a97f92012-08-20 14:35:58 -070011086
jef56a97f92012-08-20 14:35:58 -070011087
jef56a97f92012-08-20 14:35:58 -070011088
jef56a97f92012-08-20 14:35:58 -070011089
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011090 # Report which library types will actually be built
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011091 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011092$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011093 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011094$as_echo "$can_build_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070011095
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011096 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011097$as_echo_n "checking whether to build shared libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011098 test "$can_build_shared" = "no" && enable_shared=no
jef56a97f92012-08-20 14:35:58 -070011099
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011100 # On AIX, shared libraries and static libraries use the same namespace, and
11101 # are all built from PIC.
jef56a97f92012-08-20 14:35:58 -070011102 case $host_os in
11103 aix3*)
jef56a97f92012-08-20 14:35:58 -070011104 test "$enable_shared" = yes && enable_static=no
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011105 if test -n "$RANLIB"; then
11106 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11107 postinstall_cmds='$RANLIB $lib'
jef56a97f92012-08-20 14:35:58 -070011108 fi
11109 ;;
jef56a97f92012-08-20 14:35:58 -070011110
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011111 aix[4-9]*)
11112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11113 test "$enable_shared" = yes && enable_static=no
jef56a97f92012-08-20 14:35:58 -070011114 fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011115 ;;
11116 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011117 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011118$as_echo "$enable_shared" >&6; }
jef56a97f92012-08-20 14:35:58 -070011119
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011120 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011121$as_echo_n "checking whether to build static libraries... " >&6; }
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011122 # Make sure either enable_shared or enable_static is yes.
11123 test "$enable_shared" = yes || enable_static=yes
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011124 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011125$as_echo "$enable_static" >&6; }
jef56a97f92012-08-20 14:35:58 -070011126
jef56a97f92012-08-20 14:35:58 -070011127
Jef Poskanzer437537f2012-11-30 12:16:17 -080011128
11129
jef56a97f92012-08-20 14:35:58 -070011130fi
jef56a97f92012-08-20 14:35:58 -070011131ac_ext=c
11132ac_cpp='$CPP $CPPFLAGS'
11133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11135ac_compiler_gnu=$ac_cv_c_compiler_gnu
11136
11137CC="$lt_save_CC"
11138
jef56a97f92012-08-20 14:35:58 -070011139
jef56a97f92012-08-20 14:35:58 -070011140
11141
jef56a97f92012-08-20 14:35:58 -070011142
jef56a97f92012-08-20 14:35:58 -070011143
jef56a97f92012-08-20 14:35:58 -070011144
jef56a97f92012-08-20 14:35:58 -070011145
jef56a97f92012-08-20 14:35:58 -070011146
jef56a97f92012-08-20 14:35:58 -070011147
jef56a97f92012-08-20 14:35:58 -070011148
jef56a97f92012-08-20 14:35:58 -070011149
11150
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011151 ac_config_commands="$ac_config_commands libtool"
jef56a97f92012-08-20 14:35:58 -070011152
jef56a97f92012-08-20 14:35:58 -070011153
11154
jef56a97f92012-08-20 14:35:58 -070011155
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080011156# Only expand once:
Jon Dugane34c20c2010-07-08 23:26:52 +000011157
11158
11159
Jon Dugane34c20c2010-07-08 23:26:52 +000011160# Checks for header files.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011161{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011162$as_echo_n "checking for ANSI C header files... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011163if test "${ac_cv_header_stdc+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011164 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011165else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011166 cat >conftest.$ac_ext <<_ACEOF
11167/* confdefs.h. */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000011171/* end confdefs.h. */
11172#include <stdlib.h>
11173#include <stdarg.h>
11174#include <string.h>
11175#include <float.h>
11176
11177int
11178main ()
11179{
11180
11181 ;
11182 return 0;
11183}
11184_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011185rm -f conftest.$ac_objext
11186if { (ac_try="$ac_compile"
11187case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190esac
11191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192$as_echo "$ac_try_echo") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011203 ac_cv_header_stdc=yes
11204else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011205 $as_echo "$as_me: failed program was:" >&5
11206sed 's/^/| /' conftest.$ac_ext >&5
11207
11208 ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011209fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011210
Jon Dugane34c20c2010-07-08 23:26:52 +000011211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212
11213if test $ac_cv_header_stdc = yes; then
11214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011215 cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000011220/* end confdefs.h. */
11221#include <string.h>
11222
11223_ACEOF
11224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011225 $EGREP "memchr" >/dev/null 2>&1; then
11226 :
Jon Dugane34c20c2010-07-08 23:26:52 +000011227else
11228 ac_cv_header_stdc=no
11229fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011230rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000011231
11232fi
11233
11234if test $ac_cv_header_stdc = yes; then
11235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011236 cat >conftest.$ac_ext <<_ACEOF
11237/* confdefs.h. */
11238_ACEOF
11239cat confdefs.h >>conftest.$ac_ext
11240cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000011241/* end confdefs.h. */
11242#include <stdlib.h>
11243
11244_ACEOF
11245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011246 $EGREP "free" >/dev/null 2>&1; then
11247 :
Jon Dugane34c20c2010-07-08 23:26:52 +000011248else
11249 ac_cv_header_stdc=no
11250fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011251rm -f conftest*
Jon Dugane34c20c2010-07-08 23:26:52 +000011252
11253fi
11254
11255if test $ac_cv_header_stdc = yes; then
11256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011257 if test "$cross_compiling" = yes; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011258 :
11259else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011260 cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h. */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000011265/* end confdefs.h. */
11266#include <ctype.h>
11267#include <stdlib.h>
11268#if ((' ' & 0x0FF) == 0x020)
11269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11271#else
11272# define ISLOWER(c) \
11273 (('a' <= (c) && (c) <= 'i') \
11274 || ('j' <= (c) && (c) <= 'r') \
11275 || ('s' <= (c) && (c) <= 'z'))
11276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11277#endif
11278
11279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11280int
11281main ()
11282{
11283 int i;
11284 for (i = 0; i < 256; i++)
11285 if (XOR (islower (i), ISLOWER (i))
11286 || toupper (i) != TOUPPER (i))
11287 return 2;
11288 return 0;
11289}
11290_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011291rm -f conftest$ac_exeext
11292if { (ac_try="$ac_link"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298$as_echo "$ac_try_echo") >&5
11299 (eval "$ac_link") 2>&5
11300 ac_status=$?
11301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11308$as_echo "$ac_try_echo") >&5
11309 (eval "$ac_try") 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 :
Jon Dugane34c20c2010-07-08 23:26:52 +000011314else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011315 $as_echo "$as_me: program exited with status $ac_status" >&5
11316$as_echo "$as_me: failed program was:" >&5
11317sed 's/^/| /' conftest.$ac_ext >&5
11318
11319( exit $ac_status )
11320ac_cv_header_stdc=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011321fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011322rm -rf conftest.dSYM
11323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Jon Dugane34c20c2010-07-08 23:26:52 +000011324fi
11325
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011326
Jon Dugane34c20c2010-07-08 23:26:52 +000011327fi
11328fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011329{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011330$as_echo "$ac_cv_header_stdc" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011331if test $ac_cv_header_stdc = yes; then
11332
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011333cat >>confdefs.h <<\_ACEOF
11334#define STDC_HEADERS 1
11335_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011336
11337fi
11338
11339
11340# Check for systems which need -lsocket and -lnsl
jef56a97f92012-08-20 14:35:58 -070011341#AX_LIB_SOCKET_NSL
Jon Dugan92864152010-09-20 21:50:12 +000011342
11343# Solaris puts nanosleep in -lrt
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011344{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011345$as_echo_n "checking for library containing nanosleep... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011346if test "${ac_cv_search_nanosleep+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011347 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +000011348else
11349 ac_func_search_save_LIBS=$LIBS
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011350cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011355/* end confdefs.h. */
11356
11357/* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360#ifdef __cplusplus
11361extern "C"
11362#endif
11363char nanosleep ();
11364int
11365main ()
11366{
11367return nanosleep ();
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372for ac_lib in '' rt; do
11373 if test -z "$ac_lib"; then
11374 ac_res="none required"
11375 else
11376 ac_res=-l$ac_lib
11377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11378 fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011379 rm -f conftest.$ac_objext conftest$ac_exeext
11380if { (ac_try="$ac_link"
11381case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384esac
11385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11386$as_echo "$ac_try_echo") >&5
11387 (eval "$ac_link") 2>conftest.er1
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
11392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest$ac_exeext && {
11397 test "$cross_compiling" = yes ||
11398 $as_test_x conftest$ac_exeext
11399 }; then
Jon Dugan92864152010-09-20 21:50:12 +000011400 ac_cv_search_nanosleep=$ac_res
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011401else
11402 $as_echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405
Jon Dugan92864152010-09-20 21:50:12 +000011406fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011407
11408rm -rf conftest.dSYM
11409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11410 conftest$ac_exeext
11411 if test "${ac_cv_search_nanosleep+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000011412 break
11413fi
11414done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011415if test "${ac_cv_search_nanosleep+set}" = set; then
11416 :
Jon Dugan92864152010-09-20 21:50:12 +000011417else
11418 ac_cv_search_nanosleep=no
11419fi
11420rm conftest.$ac_ext
11421LIBS=$ac_func_search_save_LIBS
11422fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011423{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011424$as_echo "$ac_cv_search_nanosleep" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +000011425ac_res=$ac_cv_search_nanosleep
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011426if test "$ac_res" != no; then
Jon Dugan92864152010-09-20 21:50:12 +000011427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11428
11429else
11430
11431echo "nanosleep() required for timing operations."
11432exit 1
11433
11434fi
11435
11436
11437# Solaris puts hstrerror in -lresolv
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011438{ $as_echo "$as_me:$LINENO: checking for library containing hstrerror" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011439$as_echo_n "checking for library containing hstrerror... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011440if test "${ac_cv_search_hstrerror+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011441 $as_echo_n "(cached) " >&6
Jon Dugan92864152010-09-20 21:50:12 +000011442else
11443 ac_func_search_save_LIBS=$LIBS
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011444cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
Jon Dugan92864152010-09-20 21:50:12 +000011449/* end confdefs.h. */
11450
11451/* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454#ifdef __cplusplus
11455extern "C"
11456#endif
11457char hstrerror ();
11458int
11459main ()
11460{
11461return hstrerror ();
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466for ac_lib in '' resolv; do
11467 if test -z "$ac_lib"; then
11468 ac_res="none required"
11469 else
11470 ac_res=-l$ac_lib
11471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11472 fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011473 rm -f conftest.$ac_objext conftest$ac_exeext
11474if { (ac_try="$ac_link"
11475case "(($ac_try" in
11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11477 *) ac_try_echo=$ac_try;;
11478esac
11479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11480$as_echo "$ac_try_echo") >&5
11481 (eval "$ac_link") 2>conftest.er1
11482 ac_status=$?
11483 grep -v '^ *+' conftest.er1 >conftest.err
11484 rm -f conftest.er1
11485 cat conftest.err >&5
11486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && {
11488 test -z "$ac_c_werror_flag" ||
11489 test ! -s conftest.err
11490 } && test -s conftest$ac_exeext && {
11491 test "$cross_compiling" = yes ||
11492 $as_test_x conftest$ac_exeext
11493 }; then
Jon Dugan92864152010-09-20 21:50:12 +000011494 ac_cv_search_hstrerror=$ac_res
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011495else
11496 $as_echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499
Jon Dugan92864152010-09-20 21:50:12 +000011500fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011501
11502rm -rf conftest.dSYM
11503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11504 conftest$ac_exeext
11505 if test "${ac_cv_search_hstrerror+set}" = set; then
Jon Dugan92864152010-09-20 21:50:12 +000011506 break
11507fi
11508done
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011509if test "${ac_cv_search_hstrerror+set}" = set; then
11510 :
Jon Dugan92864152010-09-20 21:50:12 +000011511else
11512 ac_cv_search_hstrerror=no
11513fi
11514rm conftest.$ac_ext
11515LIBS=$ac_func_search_save_LIBS
11516fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011517{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011518$as_echo "$ac_cv_search_hstrerror" >&6; }
Jon Dugan92864152010-09-20 21:50:12 +000011519ac_res=$ac_cv_search_hstrerror
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011520if test "$ac_res" != no; then
Jon Dugan92864152010-09-20 21:50:12 +000011521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11522
11523else
11524
11525echo "nanosleep() required for timing operations."
11526exit 1
Jon Dugane34c20c2010-07-08 23:26:52 +000011527
11528fi
11529
11530
Jon Dugane34c20c2010-07-08 23:26:52 +000011531# Checks for typedefs, structures, and compiler characteristics.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011532{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011533$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011534if test "${ac_cv_c_const+set}" = set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011535 $as_echo_n "(cached) " >&6
Jon Dugane34c20c2010-07-08 23:26:52 +000011536else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011537 cat >conftest.$ac_ext <<_ACEOF
11538/* confdefs.h. */
11539_ACEOF
11540cat confdefs.h >>conftest.$ac_ext
11541cat >>conftest.$ac_ext <<_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000011542/* end confdefs.h. */
11543
11544int
11545main ()
11546{
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011547/* FIXME: Include the comments suggested by Paul. */
Jon Dugane34c20c2010-07-08 23:26:52 +000011548#ifndef __cplusplus
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011549 /* Ultrix mips cc rejects this. */
Jon Dugane34c20c2010-07-08 23:26:52 +000011550 typedef int charset[2];
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011551 const charset cs;
Jon Dugane34c20c2010-07-08 23:26:52 +000011552 /* SunOS 4.1.1 cc rejects this. */
11553 char const *const *pcpcc;
11554 char **ppc;
11555 /* NEC SVR4.0.2 mips cc rejects this. */
11556 struct point {int x, y;};
11557 static struct point const zero = {0,0};
11558 /* AIX XL C 1.02.0.0 rejects this.
11559 It does not let you subtract one const X* pointer from another in
11560 an arm of an if-expression whose if-part is not a constant
11561 expression */
11562 const char *g = "string";
11563 pcpcc = &g + (g ? g-g : 0);
11564 /* HPUX 7.0 cc rejects these. */
11565 ++pcpcc;
11566 ppc = (char**) pcpcc;
11567 pcpcc = (char const *const *) ppc;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011568 { /* SCO 3.2v4 cc rejects this. */
11569 char *t;
Jon Dugane34c20c2010-07-08 23:26:52 +000011570 char const *s = 0 ? (char *) 0 : (char const *) 0;
11571
11572 *t++ = 0;
11573 if (s) return 0;
11574 }
11575 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11576 int x[] = {25, 17};
11577 const int *foo = &x[0];
11578 ++foo;
11579 }
11580 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11581 typedef const int *iptr;
11582 iptr p = 0;
11583 ++p;
11584 }
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011585 { /* AIX XL C 1.02.0.0 rejects this saying
Jon Dugane34c20c2010-07-08 23:26:52 +000011586 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011587 struct s { int j; const int *ap[3]; };
11588 struct s *b; b->j = 5;
Jon Dugane34c20c2010-07-08 23:26:52 +000011589 }
11590 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11591 const int foo = 10;
11592 if (!foo) return 0;
11593 }
11594 return !cs[0] && !zero.x;
11595#endif
11596
11597 ;
11598 return 0;
11599}
11600_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011601rm -f conftest.$ac_objext
11602if { (ac_try="$ac_compile"
11603case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11608$as_echo "$ac_try_echo") >&5
11609 (eval "$ac_compile") 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } && {
11616 test -z "$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 } && test -s conftest.$ac_objext; then
Jon Dugane34c20c2010-07-08 23:26:52 +000011619 ac_cv_c_const=yes
11620else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011621 $as_echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 ac_cv_c_const=no
Jon Dugane34c20c2010-07-08 23:26:52 +000011625fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011626
Jon Dugane34c20c2010-07-08 23:26:52 +000011627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628fi
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011629{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080011630$as_echo "$ac_cv_c_const" >&6; }
Jon Dugane34c20c2010-07-08 23:26:52 +000011631if test $ac_cv_c_const = no; then
11632
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011633cat >>confdefs.h <<\_ACEOF
11634#define const /**/
11635_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000011636
11637fi
11638
11639
Bruce A. Mah81f9bbb2014-04-09 10:36:32 -070011640# Check for SCTP support
11641
11642for ac_header in netinet/sctp.h
11643do
11644as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11647$as_echo_n "checking for $ac_header... " >&6; }
11648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 $as_echo_n "(cached) " >&6
11650fi
11651ac_res=`eval 'as_val=${'$as_ac_Header'}
11652 $as_echo "$as_val"'`
11653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11654$as_echo "$ac_res" >&6; }
11655else
11656 # Is the header compilable?
11657{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11658$as_echo_n "checking $ac_header usability... " >&6; }
11659cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
11665$ac_includes_default
11666#include <$ac_header>
11667_ACEOF
11668rm -f conftest.$ac_objext
11669if { (ac_try="$ac_compile"
11670case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11675$as_echo "$ac_try_echo") >&5
11676 (eval "$ac_compile") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && {
11683 test -z "$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11685 } && test -s conftest.$ac_objext; then
11686 ac_header_compiler=yes
11687else
11688 $as_echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_header_compiler=no
11692fi
11693
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11696$as_echo "$ac_header_compiler" >&6; }
11697
11698# Is the header present?
11699{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11700$as_echo_n "checking $ac_header presence... " >&6; }
11701cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h. */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h. */
11707#include <$ac_header>
11708_ACEOF
11709if { (ac_try="$ac_cpp conftest.$ac_ext"
11710case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713esac
11714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11715$as_echo "$ac_try_echo") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } >/dev/null && {
11723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 }; then
11726 ac_header_preproc=yes
11727else
11728 $as_echo "$as_me: failed program was:" >&5
11729sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 ac_header_preproc=no
11732fi
11733
11734rm -f conftest.err conftest.$ac_ext
11735{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11736$as_echo "$ac_header_preproc" >&6; }
11737
11738# So? What about this header?
11739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11740 yes:no: )
11741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11742$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11744$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11745 ac_header_preproc=yes
11746 ;;
11747 no:yes:* )
11748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11749$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11751$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11753$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11755$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11757$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11759$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11760 ( cat <<\_ASBOX
11761## --------------------------------------------- ##
11762## Report this to https://github.com/esnet/iperf ##
11763## --------------------------------------------- ##
11764_ASBOX
11765 ) | sed "s/^/$as_me: WARNING: /" >&2
11766 ;;
11767esac
11768{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11769$as_echo_n "checking for $ac_header... " >&6; }
11770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11771 $as_echo_n "(cached) " >&6
11772else
11773 eval "$as_ac_Header=\$ac_header_preproc"
11774fi
11775ac_res=`eval 'as_val=${'$as_ac_Header'}
11776 $as_echo "$as_val"'`
11777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11778$as_echo "$ac_res" >&6; }
11779
11780fi
11781as_val=`eval 'as_val=${'$as_ac_Header'}
11782 $as_echo "$as_val"'`
11783 if test "x$as_val" = x""yes; then
11784 cat >>confdefs.h <<_ACEOF
11785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11786_ACEOF
11787
11788cat >>confdefs.h <<\_ACEOF
11789#define HAVE_SCTP 1
11790_ACEOF
11791
11792fi
11793
11794done
11795
11796
Bruce A. Mah8cb96d12014-04-10 10:55:26 -070011797# Check for TCP_CONGESTION sockopt (believed to be Linux only)
11798{ $as_echo "$as_me:$LINENO: checking TCP_CONGESTION socket option" >&5
11799$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
11800if test "${iperf3_cv_header_tcp_congestion+set}" = set; then
11801 $as_echo_n "(cached) " >&6
11802else
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809#include <netinet/tcp.h>
11810#ifdef TCP_CONGESTION
11811 yes
11812#endif
11813
11814_ACEOF
11815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11816 $EGREP "yes" >/dev/null 2>&1; then
11817 iperf3_cv_header_tcp_congestion=yes
11818else
11819 iperf3_cv_header_tcp_congestion=no
11820fi
11821rm -f conftest*
11822
11823fi
11824{ $as_echo "$as_me:$LINENO: result: $iperf3_cv_header_tcp_congestion" >&5
11825$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
11826if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
11827
11828cat >>confdefs.h <<\_ACEOF
11829#define HAVE_TCP_CONGESTION 1
11830_ACEOF
11831
11832fi
11833
Bruce A. Mahb904a782014-04-10 11:22:49 -070011834# Check for IPv6 flowlabel support (believed to be Linux only)
11835# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
11836# don't use that file directly (we have our own stripped-down
11837# copy, see src/flowlabel.h for more details).
11838{ $as_echo "$as_me:$LINENO: checking IPv6 flowlabel support" >&5
11839$as_echo_n "checking IPv6 flowlabel support... " >&6; }
11840if test "${iperf3_cv_header_flowlabel+set}" = set; then
11841 $as_echo_n "(cached) " >&6
11842else
11843 cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849#include <sys/types.h>
11850#include <linux/in6.h>
11851#ifdef IPV6_FLOWLABEL_MGR
11852 yes
11853#endif
11854
11855_ACEOF
11856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11857 $EGREP "yes" >/dev/null 2>&1; then
11858 iperf3_cv_header_flowlabel=yes
11859else
11860 iperf3_cv_header_flowlabel=no
11861fi
11862rm -f conftest*
11863
11864fi
11865{ $as_echo "$as_me:$LINENO: result: $iperf3_cv_header_flowlabel" >&5
11866$as_echo "$iperf3_cv_header_flowlabel" >&6; }
11867if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
11868
11869cat >>confdefs.h <<\_ACEOF
11870#define HAVE_FLOWLABEL 1
11871_ACEOF
11872
11873fi
11874
Bruce A. Mah75ee0f42014-04-14 10:49:59 -070011875# Check for CPU affinity support. FreeBSD and Linux do this differently
11876# unfortunately so we have to check separately for each of them.
11877# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
11878# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
11879# generic concept is available.
11880
11881
11882for ac_func in cpuset_setaffinity sched_setaffinity
11883do
11884as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11886$as_echo_n "checking for $ac_func... " >&6; }
11887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11888 $as_echo_n "(cached) " >&6
11889else
11890 cat >conftest.$ac_ext <<_ACEOF
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
11896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11898#define $ac_func innocuous_$ac_func
11899
11900/* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char $ac_func (); below.
11902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903 <limits.h> exists even on freestanding compilers. */
11904
11905#ifdef __STDC__
11906# include <limits.h>
11907#else
11908# include <assert.h>
11909#endif
11910
11911#undef $ac_func
11912
11913/* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11916#ifdef __cplusplus
11917extern "C"
11918#endif
11919char $ac_func ();
11920/* The GNU C library defines this for functions which it implements
11921 to always fail with ENOSYS. Some functions are actually named
11922 something starting with __ and the normal name is an alias. */
11923#if defined __stub_$ac_func || defined __stub___$ac_func
11924choke me
11925#endif
11926
11927int
11928main ()
11929{
11930return $ac_func ();
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (ac_try="$ac_link"
11937case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942$as_echo "$ac_try_echo") >&5
11943 (eval "$ac_link") 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest$ac_exeext && {
11953 test "$cross_compiling" = yes ||
11954 $as_test_x conftest$ac_exeext
11955 }; then
11956 eval "$as_ac_var=yes"
11957else
11958 $as_echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 eval "$as_ac_var=no"
11962fi
11963
11964rm -rf conftest.dSYM
11965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11966 conftest$ac_exeext conftest.$ac_ext
11967fi
11968ac_res=`eval 'as_val=${'$as_ac_var'}
11969 $as_echo "$as_val"'`
11970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11971$as_echo "$ac_res" >&6; }
11972as_val=`eval 'as_val=${'$as_ac_var'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977_ACEOF
11978
11979cat >>confdefs.h <<\_ACEOF
11980#define HAVE_CPU_AFFINITY 1
11981_ACEOF
11982
11983fi
11984done
11985
11986
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070011987ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
Jon Dugane34c20c2010-07-08 23:26:52 +000011988
11989cat >confcache <<\_ACEOF
11990# This file is a shell script that caches the results of configure
11991# tests run on this system so they can be shared between configure
11992# scripts and configure runs, see configure's option --config-cache.
11993# It is not useful on other systems. If it contains results you don't
11994# want to keep, you may remove or edit it.
11995#
11996# config.status only pays attention to the cache file if you give it
11997# the --recheck option to rerun configure.
11998#
11999# `ac_cv_env_foo' variables (set or unset) will be overridden when
12000# loading this file, other *unset* `ac_cv_foo' will be assigned the
12001# following values.
12002
12003_ACEOF
12004
12005# The following way of writing the cache mishandles newlines in values,
12006# but we know of no workaround that is simple, portable, and efficient.
12007# So, we kill variables containing newlines.
12008# Ultrix sh set writes to stderr and can't be redirected directly,
12009# and sets the high bit in the cache file unless we assign to the vars.
12010(
12011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12012 eval ac_val=\$$ac_var
12013 case $ac_val in #(
12014 *${as_nl}*)
12015 case $ac_var in #(
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012016 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012018 esac
12019 case $ac_var in #(
12020 _ | IFS | as_nl) ;; #(
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012022 *) $as_unset $ac_var ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012023 esac ;;
12024 esac
12025 done
12026
12027 (set) 2>&1 |
12028 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12029 *${as_nl}ac_space=\ *)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012030 # `set' does not quote correctly, so add quotes (double-quote
12031 # substitution turns \\\\ into \\, and sed turns \\ into \).
Jon Dugane34c20c2010-07-08 23:26:52 +000012032 sed -n \
12033 "s/'/'\\\\''/g;
12034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12035 ;; #(
12036 *)
12037 # `set' quotes correctly as required by POSIX, so do not add quotes.
12038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12039 ;;
12040 esac |
12041 sort
12042) |
12043 sed '
12044 /^ac_cv_env_/b end
12045 t clear
12046 :clear
12047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12048 t end
12049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12050 :end' >>confcache
12051if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12052 if test -w "$cache_file"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012053 test "x$cache_file" != "x/dev/null" &&
12054 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012055$as_echo "$as_me: updating cache $cache_file" >&6;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012056 cat confcache >$cache_file
Jon Dugane34c20c2010-07-08 23:26:52 +000012057 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012058 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012059$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000012060 fi
12061fi
12062rm -f confcache
12063
12064test "x$prefix" = xNONE && prefix=$ac_default_prefix
12065# Let make expand exec_prefix.
12066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12067
12068DEFS=-DHAVE_CONFIG_H
12069
12070ac_libobjs=
12071ac_ltlibobjs=
12072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12073 # 1. Remove the extension, and $U if already installed.
12074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Jon Dugane34c20c2010-07-08 23:26:52 +000012076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12077 # will be set to the directory where LIBOBJS objects are built.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012078 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12079 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Jon Dugane34c20c2010-07-08 23:26:52 +000012080done
12081LIBOBJS=$ac_libobjs
12082
12083LTLIBOBJS=$ac_ltlibobjs
12084
12085
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012086 if test -n "$EXEEXT"; then
12087 am__EXEEXT_TRUE=
12088 am__EXEEXT_FALSE='#'
12089else
12090 am__EXEEXT_TRUE='#'
12091 am__EXEEXT_FALSE=
Jon Dugane34c20c2010-07-08 23:26:52 +000012092fi
12093
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012094if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012095 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12096Usually this means the macro was only invoked conditionally." >&5
12097$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12098Usually this means the macro was only invoked conditionally." >&2;}
12099 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012100fi
12101if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012102 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12103Usually this means the macro was only invoked conditionally." >&5
12104$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12105Usually this means the macro was only invoked conditionally." >&2;}
12106 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012107fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012108
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012109: ${CONFIG_STATUS=./config.status}
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012110ac_write_fail=0
Jon Dugane34c20c2010-07-08 23:26:52 +000012111ac_clean_files_save=$ac_clean_files
12112ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012113{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012114$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012115cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012116#! $SHELL
12117# Generated by $as_me.
12118# Run this file to recreate the current configuration.
12119# Compiler output produced by configure, useful for debugging
12120# configure, is in config.log if it exists.
12121
12122debug=false
12123ac_cs_recheck=false
12124ac_cs_silent=false
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -080012125SHELL=\${CONFIG_SHELL-$SHELL}
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012126_ACEOF
12127
12128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129## --------------------- ##
12130## M4sh Initialization. ##
12131## --------------------- ##
Jon Dugane34c20c2010-07-08 23:26:52 +000012132
12133# Be more Bourne compatible
12134DUALCASE=1; export DUALCASE # for MKS sh
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
Jon Dugane34c20c2010-07-08 23:26:52 +000012136 emulate sh
12137 NULLCMD=:
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Jon Dugane34c20c2010-07-08 23:26:52 +000012139 # is contrary to our usage. Disable this feature.
12140 alias -g '${1+"$@"}'='"$@"'
12141 setopt NO_GLOB_SUBST
12142else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012143 case `(set -o) 2>/dev/null` in
12144 *posix*) set -o posix ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012145esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012146
Jon Dugane34c20c2010-07-08 23:26:52 +000012147fi
12148
12149
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012150
12151
12152# PATH needs CR
12153# Avoid depending upon Character Ranges.
12154as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12155as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12156as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12157as_cr_digits='0123456789'
12158as_cr_alnum=$as_cr_Letters$as_cr_digits
12159
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012160as_nl='
12161'
12162export as_nl
12163# Printing a long string crashes Solaris 7 /usr/bin/printf.
12164as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012167if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012168 as_echo='printf %s\n'
12169 as_echo_n='printf %s'
12170else
12171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12172 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12173 as_echo_n='/usr/ucb/echo -n'
12174 else
12175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12176 as_echo_n_body='eval
12177 arg=$1;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012178 case $arg in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012179 *"$as_nl"*)
12180 expr "X$arg" : "X\\(.*\\)$as_nl";
12181 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12182 esac;
12183 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12184 '
12185 export as_echo_n_body
12186 as_echo_n='sh -c $as_echo_n_body as_echo'
12187 fi
12188 export as_echo_body
12189 as_echo='sh -c $as_echo_body as_echo'
12190fi
Jef Poskanzer437537f2012-11-30 12:16:17 -080012191
Jon Dugane34c20c2010-07-08 23:26:52 +000012192# The user is always right.
12193if test "${PATH_SEPARATOR+set}" != set; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012194 PATH_SEPARATOR=:
12195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12197 PATH_SEPARATOR=';'
12198 }
Jef Poskanzer437537f2012-11-30 12:16:17 -080012199fi
12200
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012201# Support unset when possible.
12202if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12203 as_unset=unset
12204else
12205 as_unset=false
12206fi
12207
Jon Dugane34c20c2010-07-08 23:26:52 +000012208
12209# IFS
12210# We need space, tab and new line, in precisely that order. Quoting is
12211# there to prevent editors from complaining about space-tab.
12212# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12213# splitting by setting IFS to empty value.)
12214IFS=" "" $as_nl"
12215
12216# Find who we are. Look in the path if we contain no directory separator.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012217case $0 in
Jon Dugane34c20c2010-07-08 23:26:52 +000012218 *[\\/]* ) as_myself=$0 ;;
12219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12225done
Jon Dugane34c20c2010-07-08 23:26:52 +000012226IFS=$as_save_IFS
12227
12228 ;;
12229esac
12230# We did not find ourselves, most probably we were run as `sh COMMAND'
12231# in which case we are not to be found in the path.
12232if test "x$as_myself" = x; then
12233 as_myself=$0
12234fi
12235if test ! -f "$as_myself"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012237 { (exit 1); exit 1; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012238fi
12239
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012240# Work around bugs in pre-3.0 UWIN ksh.
12241for as_var in ENV MAIL MAILPATH
12242do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Jon Dugane34c20c2010-07-08 23:26:52 +000012243done
12244PS1='$ '
12245PS2='> '
12246PS4='+ '
12247
12248# NLS nuisances.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012249LC_ALL=C
12250export LC_ALL
12251LANGUAGE=C
12252export LANGUAGE
Jon Dugane34c20c2010-07-08 23:26:52 +000012253
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012254# Required to use basename.
Jon Dugane34c20c2010-07-08 23:26:52 +000012255if expr a : '\(a\)' >/dev/null 2>&1 &&
12256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12257 as_expr=expr
12258else
12259 as_expr=false
12260fi
12261
12262if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12263 as_basename=basename
12264else
12265 as_basename=false
12266fi
12267
Jon Dugane34c20c2010-07-08 23:26:52 +000012268
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012269# Name of the executable.
Jon Dugane34c20c2010-07-08 23:26:52 +000012270as_me=`$as_basename -- "$0" ||
12271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12272 X"$0" : 'X\(//\)$' \| \
12273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012274$as_echo X/"$0" |
Jon Dugane34c20c2010-07-08 23:26:52 +000012275 sed '/^.*\/\([^/][^/]*\)\/*$/{
12276 s//\1/
12277 q
12278 }
12279 /^X\/\(\/\/\)$/{
12280 s//\1/
12281 q
12282 }
12283 /^X\/\(\/\).*/{
12284 s//\1/
12285 q
12286 }
12287 s/.*/./; q'`
12288
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012289# CDPATH.
12290$as_unset CDPATH
12291
12292
12293
12294 as_lineno_1=$LINENO
12295 as_lineno_2=$LINENO
12296 test "x$as_lineno_1" != "x$as_lineno_2" &&
12297 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12298
12299 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12300 # uniformly replaced by the line number. The first 'sed' inserts a
12301 # line-number line after each line using $LINENO; the second 'sed'
12302 # does the real work. The second script uses 'N' to pair each
12303 # line-number line with the line containing $LINENO, and appends
12304 # trailing '-' during substitution so that $LINENO is not a special
12305 # case at line end.
12306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12307 # scripts with optimization help from Paolo Bonzini. Blame Lee
12308 # E. McMahon (1931-1989) for sed's syntax. :-)
12309 sed -n '
12310 p
12311 /[$]LINENO/=
12312 ' <$as_myself |
12313 sed '
12314 s/[$]LINENO.*/&-/
12315 t lineno
12316 b
12317 :lineno
12318 N
12319 :loop
12320 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12321 t loop
12322 s/-\n.*//
12323 ' >$as_me.lineno &&
12324 chmod +x "$as_me.lineno" ||
12325 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12326 { (exit 1); exit 1; }; }
12327
12328 # Don't try to exec as it changes $[0], causing all sort of problems
12329 # (the dirname of $[0] is not the place where we might find the
12330 # original and so on. Autoconf is especially sensitive to this).
12331 . "./$as_me.lineno"
12332 # Exit status is that of the last command.
12333 exit
12334}
12335
12336
12337if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12338 as_dirname=dirname
12339else
12340 as_dirname=false
12341fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012342
12343ECHO_C= ECHO_N= ECHO_T=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012344case `echo -n x` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012345-n*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012346 case `echo 'x\c'` in
Jon Dugane34c20c2010-07-08 23:26:52 +000012347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012348 *) ECHO_C='\c';;
Jon Dugane34c20c2010-07-08 23:26:52 +000012349 esac;;
12350*)
12351 ECHO_N='-n';;
12352esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012353if expr a : '\(a\)' >/dev/null 2>&1 &&
12354 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12355 as_expr=expr
12356else
12357 as_expr=false
12358fi
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012359
Jon Dugane34c20c2010-07-08 23:26:52 +000012360rm -f conf$$ conf$$.exe conf$$.file
12361if test -d conf$$.dir; then
12362 rm -f conf$$.dir/conf$$.file
12363else
12364 rm -f conf$$.dir
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012365 mkdir conf$$.dir 2>/dev/null
Jon Dugane34c20c2010-07-08 23:26:52 +000012366fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012367if (echo >conf$$.file) 2>/dev/null; then
12368 if ln -s conf$$.file conf$$ 2>/dev/null; then
12369 as_ln_s='ln -s'
12370 # ... but there are two gotchas:
12371 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12372 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012373 # In both cases, we have to default to `cp -p'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012374 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012375 as_ln_s='cp -p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012376 elif ln conf$$.file conf$$ 2>/dev/null; then
12377 as_ln_s=ln
12378 else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012379 as_ln_s='cp -p'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012380 fi
Jon Dugane34c20c2010-07-08 23:26:52 +000012381else
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012382 as_ln_s='cp -p'
Jon Dugane34c20c2010-07-08 23:26:52 +000012383fi
12384rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12385rmdir conf$$.dir 2>/dev/null
12386
Jon Dugane34c20c2010-07-08 23:26:52 +000012387if mkdir -p . 2>/dev/null; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012388 as_mkdir_p=:
Jon Dugane34c20c2010-07-08 23:26:52 +000012389else
12390 test -d ./-p && rmdir ./-p
12391 as_mkdir_p=false
12392fi
12393
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012394if test -x / >/dev/null 2>&1; then
12395 as_test_x='test -x'
12396else
12397 if ls -dL / >/dev/null 2>&1; then
12398 as_ls_L_option=L
12399 else
12400 as_ls_L_option=
12401 fi
12402 as_test_x='
12403 eval sh -c '\''
12404 if test -d "$1"; then
12405 test -d "$1/.";
12406 else
12407 case $1 in
12408 -*)set "./$1";;
12409 esac;
12410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12411 ???[sx]*):;;*)false;;esac;fi
12412 '\'' sh
12413 '
12414fi
12415as_executable_p=$as_test_x
Jon Dugane34c20c2010-07-08 23:26:52 +000012416
12417# Sed expression to map a string onto a valid CPP name.
12418as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12419
12420# Sed expression to map a string onto a valid variable name.
12421as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12422
12423
12424exec 6>&1
Jon Dugane34c20c2010-07-08 23:26:52 +000012425
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012426# Save the log message, to keep $[0] and so on meaningful, and to
Jon Dugane34c20c2010-07-08 23:26:52 +000012427# report actual input values of CONFIG_FILES etc. instead of their
12428# values after options handling.
12429ac_log="
Bruce A. Mah10383812014-02-27 22:40:01 -080012430This file was extended by iperf $as_me 3.0.1, which was
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012431generated by GNU Autoconf 2.63. Invocation command line was
Jon Dugane34c20c2010-07-08 23:26:52 +000012432
12433 CONFIG_FILES = $CONFIG_FILES
12434 CONFIG_HEADERS = $CONFIG_HEADERS
12435 CONFIG_LINKS = $CONFIG_LINKS
12436 CONFIG_COMMANDS = $CONFIG_COMMANDS
12437 $ $0 $@
12438
12439on `(hostname || uname -n) 2>/dev/null | sed 1q`
12440"
12441
12442_ACEOF
12443
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012444case $ac_config_files in *"
12445"*) set x $ac_config_files; shift; ac_config_files=$*;;
12446esac
12447
12448case $ac_config_headers in *"
12449"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12450esac
12451
12452
12453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012454# Files that config.status was made for.
12455config_files="$ac_config_files"
12456config_headers="$ac_config_headers"
12457config_commands="$ac_config_commands"
12458
12459_ACEOF
12460
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012462ac_cs_usage="\
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012463\`$as_me' instantiates files from templates according to the
12464current configuration.
Jon Dugane34c20c2010-07-08 23:26:52 +000012465
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012466Usage: $0 [OPTION]... [FILE]...
Jon Dugane34c20c2010-07-08 23:26:52 +000012467
12468 -h, --help print this help, then exit
12469 -V, --version print version number and configuration settings, then exit
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012470 -q, --quiet, --silent
12471 do not print progress messages
Jon Dugane34c20c2010-07-08 23:26:52 +000012472 -d, --debug don't remove temporary files
12473 --recheck update $as_me by reconfiguring in the same conditions
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012474 --file=FILE[:TEMPLATE]
12475 instantiate the configuration file FILE
12476 --header=FILE[:TEMPLATE]
12477 instantiate the configuration header FILE
Jon Dugane34c20c2010-07-08 23:26:52 +000012478
12479Configuration files:
12480$config_files
12481
12482Configuration headers:
12483$config_headers
12484
12485Configuration commands:
12486$config_commands
12487
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012488Report bugs to <bug-autoconf@gnu.org>."
Jon Dugane34c20c2010-07-08 23:26:52 +000012489
12490_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012492ac_cs_version="\\
Bruce A. Mah10383812014-02-27 22:40:01 -080012493iperf config.status 3.0.1
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012494configured by $0, generated by GNU Autoconf 2.63,
12495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Jon Dugane34c20c2010-07-08 23:26:52 +000012496
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012497Copyright (C) 2008 Free Software Foundation, Inc.
Jon Dugane34c20c2010-07-08 23:26:52 +000012498This config.status script is free software; the Free Software Foundation
12499gives unlimited permission to copy, distribute and modify it."
12500
12501ac_pwd='$ac_pwd'
12502srcdir='$srcdir'
12503INSTALL='$INSTALL'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012504MKDIR_P='$MKDIR_P'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012505AWK='$AWK'
12506test -n "\$AWK" || AWK=awk
Jon Dugane34c20c2010-07-08 23:26:52 +000012507_ACEOF
12508
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12510# The default lists apply if the user does not specify any file.
Jon Dugane34c20c2010-07-08 23:26:52 +000012511ac_need_defaults=:
12512while test $# != 0
12513do
12514 case $1 in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012515 --*=*)
Jon Dugane34c20c2010-07-08 23:26:52 +000012516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12518 ac_shift=:
12519 ;;
12520 *)
12521 ac_option=$1
12522 ac_optarg=$2
12523 ac_shift=shift
12524 ;;
12525 esac
12526
12527 case $ac_option in
12528 # Handling of the options.
12529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12530 ac_cs_recheck=: ;;
12531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012532 $as_echo "$ac_cs_version"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012533 --debug | --debu | --deb | --de | --d | -d )
12534 debug=: ;;
12535 --file | --fil | --fi | --f )
12536 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012537 case $ac_optarg in
12538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012539 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012540 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012541 ac_need_defaults=false;;
12542 --header | --heade | --head | --hea )
12543 $ac_shift
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012544 case $ac_optarg in
12545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12546 esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012547 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Jon Dugane34c20c2010-07-08 23:26:52 +000012548 ac_need_defaults=false;;
12549 --he | --h)
12550 # Conflict between --help and --header
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012551 { $as_echo "$as_me: error: ambiguous option: $1
12552Try \`$0 --help' for more information." >&2
12553 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000012554 --help | --hel | -h )
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012555 $as_echo "$ac_cs_usage"; exit ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12557 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12558 ac_cs_silent=: ;;
12559
12560 # This is an error.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012561 -*) { $as_echo "$as_me: error: unrecognized option: $1
12562Try \`$0 --help' for more information." >&2
12563 { (exit 1); exit 1; }; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012564
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012565 *) ac_config_targets="$ac_config_targets $1"
Jon Dugane34c20c2010-07-08 23:26:52 +000012566 ac_need_defaults=false ;;
12567
12568 esac
12569 shift
12570done
12571
12572ac_configure_extra_args=
12573
12574if $ac_cs_silent; then
12575 exec 6>/dev/null
12576 ac_configure_extra_args="$ac_configure_extra_args --silent"
12577fi
12578
12579_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012581if \$ac_cs_recheck; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012582 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012583 shift
12584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12585 CONFIG_SHELL='$SHELL'
Jon Dugane34c20c2010-07-08 23:26:52 +000012586 export CONFIG_SHELL
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012587 exec "\$@"
Jon Dugane34c20c2010-07-08 23:26:52 +000012588fi
12589
12590_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012592exec 5>>config.log
12593{
12594 echo
12595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12596## Running $as_me. ##
12597_ASBOX
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012598 $as_echo "$ac_log"
Jon Dugane34c20c2010-07-08 23:26:52 +000012599} >&5
12600
12601_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012603#
12604# INIT-COMMANDS
12605#
12606AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12607
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012608
12609# The HP-UX ksh and POSIX shell print the target directory to stdout
12610# if CDPATH is set.
12611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12612
12613sed_quote_subst='$sed_quote_subst'
12614double_quote_subst='$double_quote_subst'
12615delay_variable_subst='$delay_variable_subst'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012616macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12617macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12618enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12619enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12620pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12621enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12622host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12623host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12624host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12625build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12626build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12627build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12628SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12629Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12630GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12631EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12632FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12633LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12634NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12635LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12636max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12637ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12638exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12639lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12640lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12641lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12642reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12643reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12644OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12645deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12646file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12647AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12648AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12649STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12650RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12651old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12652old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12653old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12654CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12655CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12656compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12657GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12658lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12659lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12660lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12661lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12662objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12663SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12664ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12665MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12666lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12667lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12668lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12669lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12670lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12671need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12672DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12673NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12674LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12675OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12676OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12677libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12678shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12679extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12680archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12681enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12682export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12683whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12684compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12685old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12686old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12687archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12688archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12689module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12690module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12691with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12692allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12693no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12694hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12695hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12696hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12697hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12698hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12699hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12700hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12701hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12702inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12703link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12704fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12705always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12706export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12707exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12708include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12709prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12710file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12711variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12712need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12713need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12714version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12715runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12716shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12717shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12718libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12719library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12720soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12721postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12722postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12723finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12724finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12725hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12726sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12727sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12728hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12729enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12730enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12731enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12732old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12733striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012734
12735LTCC='$LTCC'
12736LTCFLAGS='$LTCFLAGS'
12737compiler='$compiler_DEFAULT'
12738
12739# Quote evaled strings.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012740for var in SED \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012741GREP \
12742EGREP \
12743FGREP \
12744LD \
12745NM \
12746LN_S \
12747lt_SP2NL \
12748lt_NL2SP \
12749reload_flag \
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012750OBJDUMP \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012751deplibs_check_method \
12752file_magic_cmd \
12753AR \
12754AR_FLAGS \
12755STRIP \
12756RANLIB \
12757CC \
12758CFLAGS \
12759compiler \
12760lt_cv_sys_global_symbol_pipe \
12761lt_cv_sys_global_symbol_to_cdecl \
12762lt_cv_sys_global_symbol_to_c_name_address \
12763lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012764SHELL \
12765ECHO \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012766lt_prog_compiler_no_builtin_flag \
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -080012767lt_prog_compiler_wl \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012768lt_prog_compiler_pic \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012769lt_prog_compiler_static \
12770lt_cv_prog_compiler_c_o \
12771need_locks \
12772DSYMUTIL \
12773NMEDIT \
12774LIPO \
12775OTOOL \
12776OTOOL64 \
12777shrext_cmds \
12778export_dynamic_flag_spec \
12779whole_archive_flag_spec \
12780compiler_needs_object \
12781with_gnu_ld \
12782allow_undefined_flag \
12783no_undefined_flag \
12784hardcode_libdir_flag_spec \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012785hardcode_libdir_flag_spec_ld \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012786hardcode_libdir_separator \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012787fix_srcfile_path \
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012788exclude_expsyms \
12789include_expsyms \
12790file_list_spec \
12791variables_saved_for_relink \
12792libname_spec \
12793library_names_spec \
12794soname_spec \
12795finish_eval \
12796old_striplib \
12797striplib; do
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012798 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012799 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012800 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012801 ;;
12802 *)
12803 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12804 ;;
12805 esac
12806done
12807
12808# Double-quote double-evaled strings.
12809for var in reload_cmds \
12810old_postinstall_cmds \
12811old_postuninstall_cmds \
12812old_archive_cmds \
12813extract_expsyms_cmds \
12814old_archive_from_new_cmds \
12815old_archive_from_expsyms_cmds \
12816archive_cmds \
12817archive_expsym_cmds \
12818module_cmds \
12819module_expsym_cmds \
12820export_symbols_cmds \
12821prelink_cmds \
12822postinstall_cmds \
12823postuninstall_cmds \
12824finish_cmds \
12825sys_lib_search_path_spec \
12826sys_lib_dlsearch_path_spec; do
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012827 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012828 *[\\\\\\\`\\"\\\$]*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012830 ;;
12831 *)
12832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12833 ;;
12834 esac
12835done
12836
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012837# Fix-up fallback echo if it was mangled by the above quoting rules.
12838case \$lt_ECHO in
12839*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12840 ;;
12841esac
12842
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012843ac_aux_dir='$ac_aux_dir'
12844xsi_shell='$xsi_shell'
12845lt_shell_append='$lt_shell_append'
12846
12847# See if we are running on zsh, and set the options which allow our
12848# commands through without removal of \ escapes INIT.
12849if test -n "\${ZSH_VERSION+set}" ; then
12850 setopt NO_GLOB_SUBST
12851fi
12852
12853
12854 PACKAGE='$PACKAGE'
12855 VERSION='$VERSION'
12856 TIMESTAMP='$TIMESTAMP'
12857 RM='$RM'
12858 ofile='$ofile'
12859
12860
12861
12862
Jon Dugane34c20c2010-07-08 23:26:52 +000012863_ACEOF
12864
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000012866
12867# Handling of arguments.
12868for ac_config_target in $ac_config_targets
12869do
12870 case $ac_config_target in
Bruce A. Maha57bcc22014-04-14 13:37:47 -070012871 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012872 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080012873 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012874 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12875 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012876 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000012877
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012878 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12879$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12880 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000012881 esac
12882done
12883
12884
12885# If the user did not use the arguments to specify the items to instantiate,
12886# then the envvar interface is used. Set only those that are not.
12887# We use the long form for the default assignment because of an extremely
12888# bizarre bug on SunOS 4.1.3.
12889if $ac_need_defaults; then
12890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12893fi
12894
12895# Have a temporary directory for convenience. Make it in the build tree
12896# simply because there is no reason against having it here, and in addition,
12897# creating and moving files from /tmp can sometimes cause problems.
12898# Hook for its removal unless debugging.
12899# Note that there is a small window in which the directory will not be cleaned:
12900# after its creation but before its name has been assigned to `$tmp'.
12901$debug ||
12902{
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012903 tmp=
Jon Dugane34c20c2010-07-08 23:26:52 +000012904 trap 'exit_status=$?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012905 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
Jon Dugane34c20c2010-07-08 23:26:52 +000012906' 0
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012907 trap '{ (exit 1); exit 1; }' 1 2 13 15
Jon Dugane34c20c2010-07-08 23:26:52 +000012908}
12909# Create a (secure) tmp directory for tmp files.
12910
12911{
12912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012913 test -n "$tmp" && test -d "$tmp"
Jon Dugane34c20c2010-07-08 23:26:52 +000012914} ||
12915{
12916 tmp=./conf$$-$RANDOM
12917 (umask 077 && mkdir "$tmp")
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012918} ||
12919{
12920 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12921 { (exit 1); exit 1; }
12922}
Jon Dugane34c20c2010-07-08 23:26:52 +000012923
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012924# Set up the scripts for CONFIG_FILES section.
12925# No need to generate them if there are no CONFIG_FILES.
12926# This happens for instance with `./config.status config.h'.
Jon Dugane34c20c2010-07-08 23:26:52 +000012927if test -n "$CONFIG_FILES"; then
12928
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012929
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012930ac_cr=' '
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012931ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12932if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12933 ac_cs_awk_cr='\\r'
12934else
12935 ac_cs_awk_cr=$ac_cr
12936fi
12937
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012938echo 'BEGIN {' >"$tmp/subs1.awk" &&
Jon Dugane34c20c2010-07-08 23:26:52 +000012939_ACEOF
12940
12941
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012942{
12943 echo "cat >conf$$subs.awk <<_ACEOF" &&
12944 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12945 echo "_ACEOF"
12946} >conf$$subs.sh ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012947 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12948$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12949 { (exit 1); exit 1; }; }
12950ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Jon Dugane34c20c2010-07-08 23:26:52 +000012951ac_delim='%!_!# '
12952for ac_last_try in false false false false false :; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012953 . ./conf$$subs.sh ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012954 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12955$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12956 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012957
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012958 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12959 if test $ac_delim_n = $ac_delim_num; then
Jon Dugane34c20c2010-07-08 23:26:52 +000012960 break
12961 elif $ac_last_try; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012962 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12963$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12964 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000012965 else
12966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12967 fi
12968done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012969rm -f conf$$subs.sh
Jon Dugane34c20c2010-07-08 23:26:52 +000012970
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012972cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Jon Dugane34c20c2010-07-08 23:26:52 +000012973_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012974sed -n '
12975h
12976s/^/S["/; s/!.*/"]=/
12977p
12978g
12979s/^[^!]*!//
12980:repl
12981t repl
12982s/'"$ac_delim"'$//
12983t delim
12984:nl
12985h
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070012986s/\(.\{148\}\).*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080012987t more1
12988s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12989p
12990n
12991b repl
12992:more1
12993s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12994p
12995g
12996s/.\{148\}//
12997t nl
12998:delim
12999h
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013000s/\(.\{148\}\).*/\1/
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013001t more2
13002s/["\\]/\\&/g; s/^/"/; s/$/"/
13003p
13004b
13005:more2
13006s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13007p
13008g
13009s/.\{148\}//
13010t delim
13011' <conf$$subs.awk | sed '
13012/^[^""]/{
13013 N
13014 s/\n//
13015}
13016' >>$CONFIG_STATUS || ac_write_fail=1
13017rm -f conf$$subs.awk
13018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13019_ACAWK
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013020cat >>"\$tmp/subs1.awk" <<_ACAWK &&
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013021 for (key in S) S_is_set[key] = 1
13022 FS = ""
13023
13024}
13025{
13026 line = $ 0
13027 nfields = split(line, field, "@")
13028 substed = 0
13029 len = length(field[1])
13030 for (i = 2; i < nfields; i++) {
13031 key = field[i]
13032 keylen = length(key)
13033 if (S_is_set[key]) {
13034 value = S[key]
13035 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13036 len += length(value) + length(field[++i])
13037 substed = 1
13038 } else
13039 len += 1 + keylen
13040 }
13041
13042 print line
13043}
13044
13045_ACAWK
13046_ACEOF
13047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13048if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13049 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13050else
13051 cat
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013052fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13053 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13054$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13055 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013056_ACEOF
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013057
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013058# VPATH may cause trouble with some makes, so we remove $(srcdir),
13059# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
Jon Dugane34c20c2010-07-08 23:26:52 +000013060# trailing colons and then remove the whole line if VPATH becomes empty
13061# (actually we leave an empty line to preserve line numbers).
13062if test "x$srcdir" = x.; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13064s/:*\$(srcdir):*/:/
13065s/:*\${srcdir}:*/:/
13066s/:*@srcdir@:*/:/
13067s/^\([^=]*=[ ]*\):*/\1/
Jon Dugane34c20c2010-07-08 23:26:52 +000013068s/:*$//
13069s/^[^=]*=[ ]*$//
13070}'
13071fi
13072
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013074fi # test -n "$CONFIG_FILES"
13075
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013076# Set up the scripts for CONFIG_HEADERS section.
13077# No need to generate them if there are no CONFIG_HEADERS.
13078# This happens for instance with `./config.status Makefile'.
13079if test -n "$CONFIG_HEADERS"; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013080cat >"$tmp/defines.awk" <<\_ACAWK ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013081BEGIN {
13082_ACEOF
Jon Dugane34c20c2010-07-08 23:26:52 +000013083
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013084# Transform confdefs.h into an awk script `defines.awk', embedded as
13085# here-document in config.status, that substitutes the proper values into
13086# config.h.in to produce config.h.
13087
13088# Create a delimiter string that does not exist in confdefs.h, to ease
13089# handling of long lines.
13090ac_delim='%!_!# '
13091for ac_last_try in false false :; do
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013092 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13093 if test -z "$ac_t"; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013094 break
13095 elif $ac_last_try; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013096 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13097$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13098 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013099 else
13100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13101 fi
13102done
13103
13104# For the awk script, D is an array of macro values keyed by name,
13105# likewise P contains macro parameters if any. Preserve backslash
13106# newline sequences.
13107
13108ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13109sed -n '
13110s/.\{148\}/&'"$ac_delim"'/g
13111t rset
13112:rset
13113s/^[ ]*#[ ]*define[ ][ ]*/ /
13114t def
13115d
13116:def
13117s/\\$//
13118t bsnl
13119s/["\\]/\\&/g
13120s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13121D["\1"]=" \3"/p
13122s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13123d
13124:bsnl
13125s/["\\]/\\&/g
13126s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13127D["\1"]=" \3\\\\\\n"\\/p
13128t cont
13129s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13130t cont
13131d
13132:cont
13133n
13134s/.\{148\}/&'"$ac_delim"'/g
13135t clear
13136:clear
13137s/\\$//
13138t bsnlc
13139s/["\\]/\\&/g; s/^/"/; s/$/"/p
13140d
13141:bsnlc
13142s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13143b cont
13144' <confdefs.h | sed '
13145s/'"$ac_delim"'/"\\\
13146"/g' >>$CONFIG_STATUS || ac_write_fail=1
13147
13148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13149 for (key in D) D_is_set[key] = 1
13150 FS = ""
13151}
13152/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13153 line = \$ 0
13154 split(line, arg, " ")
13155 if (arg[1] == "#") {
13156 defundef = arg[2]
13157 mac1 = arg[3]
13158 } else {
13159 defundef = substr(arg[1], 2)
13160 mac1 = arg[2]
13161 }
13162 split(mac1, mac2, "(") #)
13163 macro = mac2[1]
13164 prefix = substr(line, 1, index(line, defundef) - 1)
13165 if (D_is_set[macro]) {
13166 # Preserve the white space surrounding the "#".
13167 print prefix "define", macro P[macro] D[macro]
13168 next
13169 } else {
13170 # Replace #undef with comments. This is necessary, for example,
13171 # in the case of _POSIX_SOURCE, which is predefined and required
13172 # on some systems where configure will not decide to define it.
13173 if (defundef == "undef") {
13174 print "/*", prefix defundef, macro, "*/"
13175 next
13176 }
13177 }
13178}
13179{ print }
13180_ACAWK
13181_ACEOF
13182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013183 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13184$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13185 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013186fi # test -n "$CONFIG_HEADERS"
13187
13188
13189eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13190shift
13191for ac_tag
Jon Dugane34c20c2010-07-08 23:26:52 +000013192do
13193 case $ac_tag in
13194 :[FHLC]) ac_mode=$ac_tag; continue;;
13195 esac
13196 case $ac_mode$ac_tag in
13197 :[FHL]*:*);;
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013198 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13199$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13200 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000013201 :[FH]-) ac_tag=-:-;;
13202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13203 esac
13204 ac_save_IFS=$IFS
13205 IFS=:
13206 set x $ac_tag
13207 IFS=$ac_save_IFS
13208 shift
13209 ac_file=$1
13210 shift
13211
13212 case $ac_mode in
13213 :L) ac_source=$1;;
13214 :[FH])
13215 ac_file_inputs=
13216 for ac_f
13217 do
13218 case $ac_f in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013219 -) ac_f="$tmp/stdin";;
Jon Dugane34c20c2010-07-08 23:26:52 +000013220 *) # Look for the file first in the build tree, then in the source tree
13221 # (if the path is not absolute). The absolute path cannot be DOS-style,
13222 # because $ac_f cannot contain `:'.
13223 test -f "$ac_f" ||
13224 case $ac_f in
13225 [\\/$]*) false;;
13226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13227 esac ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013228 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13229$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13230 { (exit 1); exit 1; }; };;
Jon Dugane34c20c2010-07-08 23:26:52 +000013231 esac
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013232 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013233 ac_file_inputs="$ac_file_inputs '$ac_f'"
Jon Dugane34c20c2010-07-08 23:26:52 +000013234 done
13235
13236 # Let's still pretend it is `configure' which instantiates (i.e., don't
13237 # use $as_me), people would be surprised to read:
13238 # /* config.h. Generated by config.status. */
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013239 configure_input='Generated from '`
13240 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13241 `' by configure.'
Jon Dugane34c20c2010-07-08 23:26:52 +000013242 if test x"$ac_file" != x-; then
13243 configure_input="$ac_file. $configure_input"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013244 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013245$as_echo "$as_me: creating $ac_file" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013246 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013247 # Neutralize special characters interpreted by sed in replacement strings.
13248 case $configure_input in #(
13249 *\&* | *\|* | *\\* )
13250 ac_sed_conf_input=`$as_echo "$configure_input" |
13251 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13252 *) ac_sed_conf_input=$configure_input;;
13253 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000013254
13255 case $ac_tag in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013256 *:-:* | *:-) cat >"$tmp/stdin" \
13257 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13258$as_echo "$as_me: error: could not create $ac_file" >&2;}
13259 { (exit 1); exit 1; }; } ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013260 esac
13261 ;;
13262 esac
13263
13264 ac_dir=`$as_dirname -- "$ac_file" ||
13265$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13266 X"$ac_file" : 'X\(//\)[^/]' \| \
13267 X"$ac_file" : 'X\(//\)$' \| \
13268 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013269$as_echo X"$ac_file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13271 s//\1/
13272 q
13273 }
13274 /^X\(\/\/\)[^/].*/{
13275 s//\1/
13276 q
13277 }
13278 /^X\(\/\/\)$/{
13279 s//\1/
13280 q
13281 }
13282 /^X\(\/\).*/{
13283 s//\1/
13284 q
13285 }
13286 s/.*/./; q'`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013287 { as_dir="$ac_dir"
13288 case $as_dir in #(
13289 -*) as_dir=./$as_dir;;
13290 esac
13291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13292 as_dirs=
13293 while :; do
13294 case $as_dir in #(
13295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13296 *) as_qdir=$as_dir;;
13297 esac
13298 as_dirs="'$as_qdir' $as_dirs"
13299 as_dir=`$as_dirname -- "$as_dir" ||
13300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13301 X"$as_dir" : 'X\(//\)[^/]' \| \
13302 X"$as_dir" : 'X\(//\)$' \| \
13303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13304$as_echo X"$as_dir" |
13305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13306 s//\1/
13307 q
13308 }
13309 /^X\(\/\/\)[^/].*/{
13310 s//\1/
13311 q
13312 }
13313 /^X\(\/\/\)$/{
13314 s//\1/
13315 q
13316 }
13317 /^X\(\/\).*/{
13318 s//\1/
13319 q
13320 }
13321 s/.*/./; q'`
13322 test -d "$as_dir" && break
13323 done
13324 test -z "$as_dirs" || eval "mkdir $as_dirs"
13325 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13326$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13327 { (exit 1); exit 1; }; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013328 ac_builddir=.
13329
13330case "$ac_dir" in
13331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13332*)
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013334 # A ".." for each directory in $ac_dir_suffix.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Jon Dugane34c20c2010-07-08 23:26:52 +000013336 case $ac_top_builddir_sub in
13337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13339 esac ;;
13340esac
13341ac_abs_top_builddir=$ac_pwd
13342ac_abs_builddir=$ac_pwd$ac_dir_suffix
13343# for backward compatibility:
13344ac_top_builddir=$ac_top_build_prefix
13345
13346case $srcdir in
13347 .) # We are building in place.
13348 ac_srcdir=.
13349 ac_top_srcdir=$ac_top_builddir_sub
13350 ac_abs_top_srcdir=$ac_pwd ;;
13351 [\\/]* | ?:[\\/]* ) # Absolute name.
13352 ac_srcdir=$srcdir$ac_dir_suffix;
13353 ac_top_srcdir=$srcdir
13354 ac_abs_top_srcdir=$srcdir ;;
13355 *) # Relative name.
13356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13357 ac_top_srcdir=$ac_top_build_prefix$srcdir
13358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13359esac
13360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13361
13362
13363 case $ac_mode in
13364 :F)
13365 #
13366 # CONFIG_FILE
13367 #
13368
13369 case $INSTALL in
13370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13372 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013373 ac_MKDIR_P=$MKDIR_P
13374 case $MKDIR_P in
13375 [\\/$]* | ?:[\\/]* ) ;;
13376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13377 esac
Jon Dugane34c20c2010-07-08 23:26:52 +000013378_ACEOF
13379
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013381# If the template does not know about datarootdir, expand it.
13382# FIXME: This hack should be removed a few years after 2.60.
13383ac_datarootdir_hack=; ac_datarootdir_seen=
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013384
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013385ac_sed_dataroot='
13386/datarootdir/ {
Jon Dugane34c20c2010-07-08 23:26:52 +000013387 p
13388 q
13389}
13390/@datadir@/p
13391/@docdir@/p
13392/@infodir@/p
13393/@localedir@/p
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013394/@mandir@/p
13395'
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013396case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jon Dugane34c20c2010-07-08 23:26:52 +000013397*datarootdir*) ac_datarootdir_seen=yes;;
13398*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013399 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013400$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013401_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013403 ac_datarootdir_hack='
13404 s&@datadir@&$datadir&g
13405 s&@docdir@&$docdir&g
13406 s&@infodir@&$infodir&g
13407 s&@localedir@&$localedir&g
13408 s&@mandir@&$mandir&g
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013409 s&\\\${datarootdir}&$datarootdir&g' ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000013410esac
13411_ACEOF
13412
13413# Neutralize VPATH when `$srcdir' = `.'.
13414# Shell code in configure.ac might set extrasub.
13415# FIXME: do we really want to maintain this feature?
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13417ac_sed_extra="$ac_vpsub
Jon Dugane34c20c2010-07-08 23:26:52 +000013418$extrasub
13419_ACEOF
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Jon Dugane34c20c2010-07-08 23:26:52 +000013421:t
13422/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013423s|@configure_input@|$ac_sed_conf_input|;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013424s&@top_builddir@&$ac_top_builddir_sub&;t t
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013425s&@top_build_prefix@&$ac_top_build_prefix&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013426s&@srcdir@&$ac_srcdir&;t t
13427s&@abs_srcdir@&$ac_abs_srcdir&;t t
13428s&@top_srcdir@&$ac_top_srcdir&;t t
13429s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13430s&@builddir@&$ac_builddir&;t t
13431s&@abs_builddir@&$ac_abs_builddir&;t t
13432s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13433s&@INSTALL@&$ac_INSTALL&;t t
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013434s&@MKDIR_P@&$ac_MKDIR_P&;t t
Jon Dugane34c20c2010-07-08 23:26:52 +000013435$ac_datarootdir_hack
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013436"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013437eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13438 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13439$as_echo "$as_me: error: could not create $ac_file" >&2;}
13440 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013441
13442test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013443 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13445 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13446which seems to be undefined. Please make sure it is defined." >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013447$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013448which seems to be undefined. Please make sure it is defined." >&2;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013449
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013450 rm -f "$tmp/stdin"
Jon Dugane34c20c2010-07-08 23:26:52 +000013451 case $ac_file in
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013452 -) cat "$tmp/out" && rm -f "$tmp/out";;
13453 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013454 esac \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013455 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13456$as_echo "$as_me: error: could not create $ac_file" >&2;}
13457 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013458 ;;
13459 :H)
13460 #
13461 # CONFIG_HEADER
13462 #
13463 if test x"$ac_file" != x-; then
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013464 {
13465 $as_echo "/* $configure_input */" \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013466 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13467 } >"$tmp/config.h" \
13468 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13469$as_echo "$as_me: error: could not create $ac_file" >&2;}
13470 { (exit 1); exit 1; }; }
13471 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13472 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013473$as_echo "$as_me: $ac_file is unchanged" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013474 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013475 rm -f "$ac_file"
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013476 mv "$tmp/config.h" "$ac_file" \
13477 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13478$as_echo "$as_me: error: could not create $ac_file" >&2;}
13479 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013480 fi
13481 else
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013482 $as_echo "/* $configure_input */" \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13484 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13485$as_echo "$as_me: error: could not create -" >&2;}
13486 { (exit 1); exit 1; }; }
Jon Dugane34c20c2010-07-08 23:26:52 +000013487 fi
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013488# Compute "$ac_file"'s index in $config_headers.
13489_am_arg="$ac_file"
Jon Dugane34c20c2010-07-08 23:26:52 +000013490_am_stamp_count=1
13491for _am_header in $config_headers :; do
13492 case $_am_header in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013493 $_am_arg | $_am_arg:* )
Jon Dugane34c20c2010-07-08 23:26:52 +000013494 break ;;
13495 * )
13496 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13497 esac
13498done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013499echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13500$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501 X"$_am_arg" : 'X\(//\)[^/]' \| \
13502 X"$_am_arg" : 'X\(//\)$' \| \
13503 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13504$as_echo X"$_am_arg" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13506 s//\1/
13507 q
13508 }
13509 /^X\(\/\/\)[^/].*/{
13510 s//\1/
13511 q
13512 }
13513 /^X\(\/\/\)$/{
13514 s//\1/
13515 q
13516 }
13517 /^X\(\/\).*/{
13518 s//\1/
13519 q
13520 }
13521 s/.*/./; q'`/stamp-h$_am_stamp_count
13522 ;;
13523
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013524 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013525$as_echo "$as_me: executing $ac_file commands" >&6;}
Jon Dugane34c20c2010-07-08 23:26:52 +000013526 ;;
13527 esac
13528
13529
13530 case $ac_file$ac_mode in
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013531 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013532 # Autoconf 2.62 quotes --file arguments for eval, but not when files
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013533 # are listed without --file. Let's play safe and only enable the eval
13534 # if we detect the quoting.
13535 case $CONFIG_FILES in
13536 *\'*) eval set x "$CONFIG_FILES" ;;
13537 *) set x $CONFIG_FILES ;;
13538 esac
13539 shift
13540 for mf
13541 do
13542 # Strip MF so we end up with the name of the file.
13543 mf=`echo "$mf" | sed -e 's/:.*$//'`
13544 # Check whether this is an Automake generated Makefile or not.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013545 # We used to match only the files named `Makefile.in', but
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013546 # some people rename them; so instead we look at the file content.
13547 # Grep'ing the first line is not enough: some people post-process
13548 # each Makefile.in and add a new line on top of each file to say so.
13549 # Grep'ing the whole file is not good either: AIX grep has a line
13550 # limit of 2048, but all sed's we know have understand at least 4000.
13551 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13552 dirpart=`$as_dirname -- "$mf" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013553$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13554 X"$mf" : 'X\(//\)[^/]' \| \
13555 X"$mf" : 'X\(//\)$' \| \
13556 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013557$as_echo X"$mf" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13559 s//\1/
13560 q
13561 }
13562 /^X\(\/\/\)[^/].*/{
13563 s//\1/
13564 q
13565 }
13566 /^X\(\/\/\)$/{
13567 s//\1/
13568 q
13569 }
13570 /^X\(\/\).*/{
13571 s//\1/
13572 q
13573 }
13574 s/.*/./; q'`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013575 else
13576 continue
13577 fi
13578 # Extract the definition of DEPDIR, am__include, and am__quote
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013579 # from the Makefile without running `make'.
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013580 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13581 test -z "$DEPDIR" && continue
13582 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013583 test -z "am__include" && continue
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013584 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013585 # When using ansi2knr, U may be empty or an underscore; expand it
13586 U=`sed -n 's/^U = //p' < "$mf"`
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013587 # Find all dependency output files, they are included files with
13588 # $(DEPDIR) in their names. We invoke sed twice because it is the
13589 # simplest approach to changing $(DEPDIR) to its actual value in the
13590 # expansion.
13591 for file in `sed -n "
13592 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013593 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013594 # Make sure the directory exists.
13595 test -f "$dirpart/$file" && continue
13596 fdir=`$as_dirname -- "$file" ||
Jon Dugane34c20c2010-07-08 23:26:52 +000013597$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13598 X"$file" : 'X\(//\)[^/]' \| \
13599 X"$file" : 'X\(//\)$' \| \
13600 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013601$as_echo X"$file" |
Jon Dugane34c20c2010-07-08 23:26:52 +000013602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13603 s//\1/
13604 q
13605 }
13606 /^X\(\/\/\)[^/].*/{
13607 s//\1/
13608 q
13609 }
13610 /^X\(\/\/\)$/{
13611 s//\1/
13612 q
13613 }
13614 /^X\(\/\).*/{
13615 s//\1/
13616 q
13617 }
13618 s/.*/./; q'`
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013619 { as_dir=$dirpart/$fdir
13620 case $as_dir in #(
13621 -*) as_dir=./$as_dir;;
13622 esac
13623 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13624 as_dirs=
13625 while :; do
13626 case $as_dir in #(
13627 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13628 *) as_qdir=$as_dir;;
13629 esac
13630 as_dirs="'$as_qdir' $as_dirs"
13631 as_dir=`$as_dirname -- "$as_dir" ||
13632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13633 X"$as_dir" : 'X\(//\)[^/]' \| \
13634 X"$as_dir" : 'X\(//\)$' \| \
13635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13636$as_echo X"$as_dir" |
13637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13638 s//\1/
13639 q
13640 }
13641 /^X\(\/\/\)[^/].*/{
13642 s//\1/
13643 q
13644 }
13645 /^X\(\/\/\)$/{
13646 s//\1/
13647 q
13648 }
13649 /^X\(\/\).*/{
13650 s//\1/
13651 q
13652 }
13653 s/.*/./; q'`
13654 test -d "$as_dir" && break
13655 done
13656 test -z "$as_dirs" || eval "mkdir $as_dirs"
13657 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13658$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13659 { (exit 1); exit 1; }; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013660 # echo "creating $dirpart/$file"
13661 echo '# dummy' > "$dirpart/$file"
Jef Poskanzer437537f2012-11-30 12:16:17 -080013662 done
Jon Dugane34c20c2010-07-08 23:26:52 +000013663 done
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013664}
Jon Dugane34c20c2010-07-08 23:26:52 +000013665 ;;
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013666 "libtool":C)
13667
13668 # See if we are running on zsh, and set the options which allow our
13669 # commands through without removal of \ escapes.
13670 if test -n "${ZSH_VERSION+set}" ; then
13671 setopt NO_GLOB_SUBST
13672 fi
13673
13674 cfgfile="${ofile}T"
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013675 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13676 $RM "$cfgfile"
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013677
13678 cat <<_LT_EOF >> "$cfgfile"
13679#! $SHELL
13680
13681# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13682# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13683# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13684# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13685#
13686# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013687# 2006, 2007, 2008 Free Software Foundation, Inc.
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013688# Written by Gordon Matzigkeit, 1996
13689#
13690# This file is part of GNU Libtool.
13691#
13692# GNU Libtool is free software; you can redistribute it and/or
13693# modify it under the terms of the GNU General Public License as
13694# published by the Free Software Foundation; either version 2 of
13695# the License, or (at your option) any later version.
13696#
13697# As a special exception to the GNU General Public License,
13698# if you distribute this file as part of a program or library that
13699# is built using GNU Libtool, you may include this file under the
13700# same distribution terms that you use for the rest of that program.
13701#
13702# GNU Libtool is distributed in the hope that it will be useful,
13703# but WITHOUT ANY WARRANTY; without even the implied warranty of
13704# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13705# GNU General Public License for more details.
13706#
13707# You should have received a copy of the GNU General Public License
13708# along with GNU Libtool; see the file COPYING. If not, a copy
13709# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13710# obtained by writing to the Free Software Foundation, Inc.,
13711# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13712
13713
13714# The names of the tagged configurations supported by this script.
13715available_tags=""
13716
13717# ### BEGIN LIBTOOL CONFIG
13718
13719# Which release of libtool.m4 was used?
13720macro_version=$macro_version
13721macro_revision=$macro_revision
13722
13723# Whether or not to build shared libraries.
13724build_libtool_libs=$enable_shared
13725
13726# Whether or not to build static libraries.
13727build_old_libs=$enable_static
13728
13729# What type of objects to build.
13730pic_mode=$pic_mode
13731
13732# Whether or not to optimize for fast installation.
13733fast_install=$enable_fast_install
13734
13735# The host system.
13736host_alias=$host_alias
13737host=$host
13738host_os=$host_os
13739
13740# The build system.
13741build_alias=$build_alias
13742build=$build
13743build_os=$build_os
13744
13745# A sed program that does not truncate output.
13746SED=$lt_SED
13747
13748# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13749Xsed="\$SED -e 1s/^X//"
13750
13751# A grep program that handles long lines.
13752GREP=$lt_GREP
13753
13754# An ERE matcher.
13755EGREP=$lt_EGREP
13756
13757# A literal string matcher.
13758FGREP=$lt_FGREP
13759
13760# A BSD- or MS-compatible name lister.
13761NM=$lt_NM
13762
13763# Whether we need soft or hard links.
13764LN_S=$lt_LN_S
13765
13766# What is the maximum length of a command?
13767max_cmd_len=$max_cmd_len
13768
13769# Object file suffix (normally "o").
13770objext=$ac_objext
13771
13772# Executable file suffix (normally "").
13773exeext=$exeext
13774
13775# whether the shell understands "unset".
13776lt_unset=$lt_unset
13777
13778# turn spaces into newlines.
13779SP2NL=$lt_lt_SP2NL
13780
13781# turn newlines into spaces.
13782NL2SP=$lt_lt_NL2SP
13783
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013784# How to create reloadable object files.
13785reload_flag=$lt_reload_flag
13786reload_cmds=$lt_reload_cmds
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080013787
13788# An object symbol dumper.
13789OBJDUMP=$lt_OBJDUMP
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013790
13791# Method to check whether dependent libraries are shared objects.
13792deplibs_check_method=$lt_deplibs_check_method
13793
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013794# Command to use when deplibs_check_method == "file_magic".
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013795file_magic_cmd=$lt_file_magic_cmd
13796
13797# The archiver.
13798AR=$lt_AR
13799AR_FLAGS=$lt_AR_FLAGS
13800
13801# A symbol stripping program.
13802STRIP=$lt_STRIP
13803
13804# Commands used to install an old-style archive.
13805RANLIB=$lt_RANLIB
13806old_postinstall_cmds=$lt_old_postinstall_cmds
13807old_postuninstall_cmds=$lt_old_postuninstall_cmds
13808
13809# A C compiler.
13810LTCC=$lt_CC
13811
13812# LTCC compiler flags.
13813LTCFLAGS=$lt_CFLAGS
13814
13815# Take the output of nm and produce a listing of raw symbols and C names.
13816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13817
13818# Transform the output of nm in a proper C declaration.
13819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13820
13821# Transform the output of nm in a C name address pair.
13822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13823
13824# Transform the output of nm in a C name address pair when lib prefix is needed.
13825global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13826
13827# The name of the directory that contains temporary libtool files.
13828objdir=$objdir
13829
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013830# Shell to use when invoking shell scripts.
13831SHELL=$lt_SHELL
13832
13833# An echo program that does not interpret backslashes.
13834ECHO=$lt_ECHO
13835
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013836# Used to examine libraries when file_magic_cmd begins with "file".
13837MAGIC_CMD=$MAGIC_CMD
13838
13839# Must we lock files when doing compilation?
13840need_locks=$lt_need_locks
13841
13842# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13843DSYMUTIL=$lt_DSYMUTIL
13844
13845# Tool to change global to local symbols on Mac OS X.
13846NMEDIT=$lt_NMEDIT
13847
13848# Tool to manipulate fat objects and archives on Mac OS X.
13849LIPO=$lt_LIPO
13850
13851# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13852OTOOL=$lt_OTOOL
13853
13854# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13855OTOOL64=$lt_OTOOL64
13856
13857# Old archive suffix (normally "a").
13858libext=$libext
13859
13860# Shared library suffix (normally ".so").
13861shrext_cmds=$lt_shrext_cmds
13862
13863# The commands to extract the exported symbol list from a shared archive.
13864extract_expsyms_cmds=$lt_extract_expsyms_cmds
13865
13866# Variables whose values should be saved in libtool wrapper scripts and
13867# restored at link time.
13868variables_saved_for_relink=$lt_variables_saved_for_relink
13869
13870# Do we need the "lib" prefix for modules?
13871need_lib_prefix=$need_lib_prefix
13872
13873# Do we need a version for libraries?
13874need_version=$need_version
13875
13876# Library versioning type.
13877version_type=$version_type
13878
13879# Shared library runtime path variable.
13880runpath_var=$runpath_var
13881
13882# Shared library path variable.
13883shlibpath_var=$shlibpath_var
13884
13885# Is shlibpath searched before the hard-coded library search path?
13886shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13887
13888# Format of library name prefix.
13889libname_spec=$lt_libname_spec
13890
13891# List of archive names. First name is the real one, the rest are links.
13892# The last name is the one that the linker finds with -lNAME
13893library_names_spec=$lt_library_names_spec
13894
13895# The coded name of the library, if different from the real name.
13896soname_spec=$lt_soname_spec
13897
13898# Command to use after installation of a shared archive.
13899postinstall_cmds=$lt_postinstall_cmds
13900
13901# Command to use after uninstallation of a shared archive.
13902postuninstall_cmds=$lt_postuninstall_cmds
13903
13904# Commands used to finish a libtool library installation in a directory.
13905finish_cmds=$lt_finish_cmds
13906
13907# As "finish_cmds", except a single script fragment to be evaled but
13908# not shown.
13909finish_eval=$lt_finish_eval
13910
13911# Whether we should hardcode library paths into libraries.
13912hardcode_into_libs=$hardcode_into_libs
13913
13914# Compile-time system search path for libraries.
13915sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13916
13917# Run-time system search path for libraries.
13918sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13919
13920# Whether dlopen is supported.
13921dlopen_support=$enable_dlopen
13922
13923# Whether dlopen of programs is supported.
13924dlopen_self=$enable_dlopen_self
13925
13926# Whether dlopen of statically linked programs is supported.
13927dlopen_self_static=$enable_dlopen_self_static
13928
13929# Commands to strip libraries.
13930old_striplib=$lt_old_striplib
13931striplib=$lt_striplib
13932
13933
13934# The linker used to build libraries.
13935LD=$lt_LD
13936
13937# Commands used to build an old-style archive.
13938old_archive_cmds=$lt_old_archive_cmds
13939
13940# A language specific compiler.
13941CC=$lt_compiler
13942
13943# Is the compiler the GNU compiler?
13944with_gcc=$GCC
13945
13946# Compiler flag to turn off builtin functions.
13947no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13948
Bruce A. Mahdc1dd2d2014-03-04 14:34:40 -080013949# How to pass a linker flag through the compiler.
13950wl=$lt_lt_prog_compiler_wl
13951
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070013952# Additional compiler flags for building library objects.
13953pic_flag=$lt_lt_prog_compiler_pic
13954
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080013955# Compiler flag to prevent dynamic linking.
13956link_static_flag=$lt_lt_prog_compiler_static
13957
13958# Does compiler simultaneously support -c and -o options?
13959compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13960
13961# Whether or not to add -lc for building shared libraries.
13962build_libtool_need_lc=$archive_cmds_need_lc
13963
13964# Whether or not to disallow shared libs when runtime libs are static.
13965allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13966
13967# Compiler flag to allow reflexive dlopens.
13968export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13969
13970# Compiler flag to generate shared objects directly from archives.
13971whole_archive_flag_spec=$lt_whole_archive_flag_spec
13972
13973# Whether the compiler copes with passing no objects directly.
13974compiler_needs_object=$lt_compiler_needs_object
13975
13976# Create an old-style archive from a shared archive.
13977old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13978
13979# Create a temporary old-style archive to link instead of a shared archive.
13980old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13981
13982# Commands used to build a shared archive.
13983archive_cmds=$lt_archive_cmds
13984archive_expsym_cmds=$lt_archive_expsym_cmds
13985
13986# Commands used to build a loadable module if different from building
13987# a shared archive.
13988module_cmds=$lt_module_cmds
13989module_expsym_cmds=$lt_module_expsym_cmds
13990
13991# Whether we are building with GNU ld or not.
13992with_gnu_ld=$lt_with_gnu_ld
13993
13994# Flag that allows shared libraries with undefined symbols to be built.
13995allow_undefined_flag=$lt_allow_undefined_flag
13996
13997# Flag that enforces no undefined symbols.
13998no_undefined_flag=$lt_no_undefined_flag
13999
14000# Flag to hardcode \$libdir into a binary during linking.
14001# This must work even if \$libdir does not exist
14002hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14003
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014004# If ld is used when linking, flag to hardcode \$libdir into a binary
14005# during linking. This must work even if \$libdir does not exist.
14006hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14007
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014008# Whether we need a single "-rpath" flag with a separated argument.
14009hardcode_libdir_separator=$lt_hardcode_libdir_separator
14010
14011# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14012# DIR into the resulting binary.
14013hardcode_direct=$hardcode_direct
14014
14015# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14016# DIR into the resulting binary and the resulting library dependency is
14017# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14018# library is relocated.
14019hardcode_direct_absolute=$hardcode_direct_absolute
14020
14021# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14022# into the resulting binary.
14023hardcode_minus_L=$hardcode_minus_L
14024
14025# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14026# into the resulting binary.
14027hardcode_shlibpath_var=$hardcode_shlibpath_var
14028
14029# Set to "yes" if building a shared library automatically hardcodes DIR
14030# into the library and all subsequent libraries and executables linked
14031# against it.
14032hardcode_automatic=$hardcode_automatic
14033
14034# Set to yes if linker adds runtime paths of dependent libraries
14035# to runtime path list.
14036inherit_rpath=$inherit_rpath
14037
14038# Whether libtool must link a program against all its dependency libraries.
14039link_all_deplibs=$link_all_deplibs
14040
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014041# Fix the shell variable \$srcfile for the compiler.
14042fix_srcfile_path=$lt_fix_srcfile_path
14043
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014044# Set to "yes" if exported symbols are required.
14045always_export_symbols=$always_export_symbols
14046
14047# The commands to list exported symbols.
14048export_symbols_cmds=$lt_export_symbols_cmds
14049
14050# Symbols that should not be listed in the preloaded symbols.
14051exclude_expsyms=$lt_exclude_expsyms
14052
14053# Symbols that must always be exported.
14054include_expsyms=$lt_include_expsyms
14055
14056# Commands necessary for linking programs (against libraries) with templates.
14057prelink_cmds=$lt_prelink_cmds
14058
14059# Specify filename containing input files.
14060file_list_spec=$lt_file_list_spec
14061
14062# How to hardcode a shared library path into an executable.
14063hardcode_action=$hardcode_action
14064
14065# ### END LIBTOOL CONFIG
14066
14067_LT_EOF
14068
14069 case $host_os in
14070 aix3*)
14071 cat <<\_LT_EOF >> "$cfgfile"
14072# AIX sometimes has problems with the GCC collect2 program. For some
14073# reason, if we set the COLLECT_NAMES environment variable, the problems
14074# vanish in a puff of smoke.
14075if test "X${COLLECT_NAMES+set}" != Xset; then
14076 COLLECT_NAMES=
14077 export COLLECT_NAMES
14078fi
14079_LT_EOF
14080 ;;
14081 esac
14082
14083
14084ltmain="$ac_aux_dir/ltmain.sh"
14085
14086
14087 # We use sed instead of cat because bash on DJGPP gets confused if
14088 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14089 # text mode, it properly converts lines to CR/LF. This bash problem
14090 # is reportedly fixed, but why not run on old versions too?
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014091 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14092 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014093
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014094 case $xsi_shell in
14095 yes)
14096 cat << \_LT_EOF >> "$cfgfile"
14097
14098# func_dirname file append nondir_replacement
14099# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14100# otherwise set result to NONDIR_REPLACEMENT.
14101func_dirname ()
14102{
14103 case ${1} in
14104 */*) func_dirname_result="${1%/*}${2}" ;;
14105 * ) func_dirname_result="${3}" ;;
14106 esac
14107}
14108
14109# func_basename file
14110func_basename ()
14111{
14112 func_basename_result="${1##*/}"
14113}
14114
14115# func_dirname_and_basename file append nondir_replacement
14116# perform func_basename and func_dirname in a single function
14117# call:
14118# dirname: Compute the dirname of FILE. If nonempty,
14119# add APPEND to the result, otherwise set result
14120# to NONDIR_REPLACEMENT.
14121# value returned in "$func_dirname_result"
14122# basename: Compute filename of FILE.
14123# value retuned in "$func_basename_result"
14124# Implementation must be kept synchronized with func_dirname
14125# and func_basename. For efficiency, we do not delegate to
14126# those functions but instead duplicate the functionality here.
14127func_dirname_and_basename ()
14128{
14129 case ${1} in
14130 */*) func_dirname_result="${1%/*}${2}" ;;
14131 * ) func_dirname_result="${3}" ;;
14132 esac
14133 func_basename_result="${1##*/}"
14134}
14135
14136# func_stripname prefix suffix name
14137# strip PREFIX and SUFFIX off of NAME.
14138# PREFIX and SUFFIX must not contain globbing or regex special
14139# characters, hashes, percent signs, but SUFFIX may contain a leading
14140# dot (in which case that matches only a dot).
14141func_stripname ()
14142{
14143 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14144 # positional parameters, so assign one to ordinary parameter first.
14145 func_stripname_result=${3}
14146 func_stripname_result=${func_stripname_result#"${1}"}
14147 func_stripname_result=${func_stripname_result%"${2}"}
14148}
14149
14150# func_opt_split
14151func_opt_split ()
14152{
14153 func_opt_split_opt=${1%%=*}
14154 func_opt_split_arg=${1#*=}
14155}
14156
14157# func_lo2o object
14158func_lo2o ()
14159{
14160 case ${1} in
14161 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14162 *) func_lo2o_result=${1} ;;
14163 esac
14164}
14165
14166# func_xform libobj-or-source
14167func_xform ()
14168{
14169 func_xform_result=${1%.*}.lo
14170}
14171
14172# func_arith arithmetic-term...
14173func_arith ()
14174{
14175 func_arith_result=$(( $* ))
14176}
14177
14178# func_len string
14179# STRING may not start with a hyphen.
14180func_len ()
14181{
14182 func_len_result=${#1}
14183}
14184
14185_LT_EOF
14186 ;;
14187 *) # Bourne compatible functions.
14188 cat << \_LT_EOF >> "$cfgfile"
14189
14190# func_dirname file append nondir_replacement
14191# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14192# otherwise set result to NONDIR_REPLACEMENT.
14193func_dirname ()
14194{
14195 # Extract subdirectory from the argument.
14196 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14197 if test "X$func_dirname_result" = "X${1}"; then
14198 func_dirname_result="${3}"
14199 else
14200 func_dirname_result="$func_dirname_result${2}"
14201 fi
14202}
14203
14204# func_basename file
14205func_basename ()
14206{
14207 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14208}
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014209
14210
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014211# func_stripname prefix suffix name
14212# strip PREFIX and SUFFIX off of NAME.
14213# PREFIX and SUFFIX must not contain globbing or regex special
14214# characters, hashes, percent signs, but SUFFIX may contain a leading
14215# dot (in which case that matches only a dot).
14216# func_strip_suffix prefix name
14217func_stripname ()
14218{
14219 case ${2} in
14220 .*) func_stripname_result=`$ECHO "X${3}" \
14221 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14222 *) func_stripname_result=`$ECHO "X${3}" \
14223 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14224 esac
14225}
14226
14227# sed scripts:
14228my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14229my_sed_long_arg='1s/^-[^=]*=//'
14230
14231# func_opt_split
14232func_opt_split ()
14233{
14234 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14235 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14236}
14237
14238# func_lo2o object
14239func_lo2o ()
14240{
14241 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14242}
14243
14244# func_xform libobj-or-source
14245func_xform ()
14246{
14247 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14248}
14249
14250# func_arith arithmetic-term...
14251func_arith ()
14252{
14253 func_arith_result=`expr "$@"`
14254}
14255
14256# func_len string
14257# STRING may not start with a hyphen.
14258func_len ()
14259{
14260 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14261}
14262
14263_LT_EOF
14264esac
14265
14266case $lt_shell_append in
14267 yes)
14268 cat << \_LT_EOF >> "$cfgfile"
14269
14270# func_append var value
14271# Append VALUE to the end of shell variable VAR.
14272func_append ()
14273{
14274 eval "$1+=\$2"
14275}
14276_LT_EOF
14277 ;;
14278 *)
14279 cat << \_LT_EOF >> "$cfgfile"
14280
14281# func_append var value
14282# Append VALUE to the end of shell variable VAR.
14283func_append ()
14284{
14285 eval "$1=\$$1\$2"
14286}
14287
14288_LT_EOF
14289 ;;
14290 esac
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014291
14292
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014293 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14294 || (rm -f "$cfgfile"; exit 1)
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014295
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014296 mv -f "$cfgfile" "$ofile" ||
Jef Poskanzerba7b91d2013-11-26 10:07:32 -080014297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14298 chmod +x "$ofile"
14299
14300 ;;
Jon Dugane34c20c2010-07-08 23:26:52 +000014301
14302 esac
14303done # for ac_tag
14304
14305
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014306{ (exit 0); exit 0; }
Jon Dugane34c20c2010-07-08 23:26:52 +000014307_ACEOF
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014308chmod +x $CONFIG_STATUS
Jon Dugane34c20c2010-07-08 23:26:52 +000014309ac_clean_files=$ac_clean_files_save
14310
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014311test $ac_write_fail = 0 ||
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014312 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14313$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14314 { (exit 1); exit 1; }; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014315
Jon Dugane34c20c2010-07-08 23:26:52 +000014316
14317# configure is writing to config.log, and then calls config.status.
14318# config.status does its own redirection, appending to config.log.
14319# Unfortunately, on DOS this fails, as config.log is still kept open
14320# by configure, so config.status won't be able to write to it; its
14321# output is simply discarded. So we exec the FD to /dev/null,
14322# effectively closing config.log, so it can be properly (re)opened and
14323# appended to by config.status. When coming back to configure, we
14324# need to make the FD available again.
14325if test "$no_create" != yes; then
14326 ac_cs_success=:
14327 ac_config_status_args=
14328 test "$silent" = yes &&
14329 ac_config_status_args="$ac_config_status_args --quiet"
14330 exec 5>/dev/null
14331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14332 exec 5>>config.log
14333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14334 # would make configure fail if this is the last instruction.
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014335 $ac_cs_success || { (exit 1); exit 1; }
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014336fi
14337if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Bruce A. Mah5d2f2cf2014-03-20 09:58:27 -070014338 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Bruce A. Mah60bd98a2014-02-14 11:52:16 -080014339$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
Jon Dugan92864152010-09-20 21:50:12 +000014340fi
Jon Dugane34c20c2010-07-08 23:26:52 +000014341